:root {
    --bg-dark: #080d1a;
    --bg-sidebar: #0b132b;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-card-border: rgba(59, 130, 246, 0.16);
    --bg-card-hover: rgba(30, 41, 59, 0.95);
    
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.35);
    
    --accent-facebook: #1877f2;
    --accent-instagram: #e1306c;
    --gradient-ig: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --status-scheduled: #f59e0b;
    --status-published: #10b981;
    --status-failed: #ef4444;
    
    /* Arestas retas e elegantes */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--bg-card-border);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-card-border);
}

.brand-icon {
    font-size: 24px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px var(--primary-glow);
}

.brand-text h2 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.brand-text span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.nav-item:hover {
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-main);
    transform: translateX(2px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.04) 100%);
    border-left-color: #3b82f6;
    border-top-color: rgba(59, 130, 246, 0.2);
    border-right-color: rgba(59, 130, 246, 0.2);
    border-bottom-color: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.system-status-box {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--status-published);
    box-shadow: 0 0 8px var(--status-published);
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.status-details {
    display: flex;
    flex-direction: column;
}

.status-title {
    font-size: 12.5px;
    font-weight: 600;
}

.status-sub {
    font-size: 10.5px;
    color: var(--text-dim);
}

/* Main Content */
.content-area {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.header-title h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-title p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--bg-card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-facebook {
    background: var(--accent-facebook);
    color: #ffffff;
}

.btn-facebook:hover {
    background: #166fe5;
}

.btn-lg {
    padding: 12px 22px;
    font-size: 15px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Tabs Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 26px;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.max-w-600 {
    max-width: 600px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--bg-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

.filter-group {
    display: flex;
    gap: 6px;
}

.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: var(--bg-card-border);
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.post-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.post-media-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
}

.post-media-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.post-content-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-caption {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.post-targets-list {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.target-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.target-badge.published {
    border: 1px solid var(--status-published);
    color: var(--status-published);
}

.target-badge.failed {
    border: 1px solid var(--status-failed);
    color: var(--status-failed);
}

.target-badge.pending {
    border: 1px solid var(--status-scheduled);
    color: var(--status-scheduled);
}

.badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

/* Accounts Grid */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.account-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-card-border);
}

.account-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.account-name {
    font-size: 14px;
    font-weight: 600;
}

.account-platform {
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
}

.platform-fb {
    color: var(--accent-facebook);
}

.platform-ig {
    color: #f472b6;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

input[type="text"],
input[type="password"],
input[type="datetime-local"],
textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

input[type="datetime-local"] {
    color-scheme: dark;
    cursor: pointer;
    position: relative;
}

/* Botão de ícone do Calendário destacado com brilho roxo/indigo */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    background-color: #6366f1;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    filter: invert(1) brightness(1.5);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    background-color: #818cf8;
    transform: scale(1.12);
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.9);
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Dropzone */
.media-upload-dropzone {
    border: 2px dashed var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.2);
}

.media-upload-dropzone:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.dropzone-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.dropzone-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: var(--bg-dark);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--bg-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
    max-height: 75vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.accounts-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
}

.account-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-dim);
    font-size: 14px;
}

.info-note {
    margin-top: 20px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    font-size: 12px;
}

.info-note code {
    display: block;
    margin-top: 6px;
    color: var(--primary);
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.alert-banner {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-banner.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--status-published);
    color: #6ee7b7;
}

.alert-banner.info {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--primary);
    color: #a5b4fc;
}

.bm-badge {
    font-size: 11px;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
}

.health-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
}

.health-badge.valid {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.health-badge.invalid {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.health-badge.invalid a {
    color: #ffffff;
    text-decoration: underline;
    margin-left: 4px;
}

.health-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.health-badge.blocked {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.health-badge.info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.card-invalid-token {
    border-color: rgba(239, 68, 68, 0.5) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.card-warning-permissions {
    border-color: rgba(245, 158, 11, 0.5) !important;
    background: rgba(245, 158, 11, 0.04) !important;
}

.card-inactive-account {
    opacity: 0.65;
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.01) !important;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
}

.btn-success-outline {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.btn-success-outline:hover {
    background: rgba(16, 185, 129, 0.25);
}

.btn-secondary-dim {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary-dim:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.perm-alert-box {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.4;
}

.perm-alert-box.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

.perm-alert-box.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.perm-status-box {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.perm-status-box.valid {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.perm-alert-title {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 2px;
}

.perm-alert-sub {
    font-size: 11px;
    opacity: 0.9;
}

.perm-scopes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.scope-tag {
    font-family: monospace;
    font-size: 10.5px;
    padding: 2px 6px;
    border-radius: 4px;
}

.scope-tag.warning {
    background: rgba(245, 158, 11, 0.25);
    color: #fef08a;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-mini {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
    margin-left: 6px;
}

.badge-mini.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-mini.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}


select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

select option {
    background: var(--bg-dark);
    color: #ffffff;
}

.code-output {
    width: 100%;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.5);
    color: #a7f3d0;
    line-height: 1.5;
    resize: none;
}

.instruction-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instruction-box h4 {
    font-size: 14px;
    color: var(--primary);
    margin-top: 8px;
}

.instruction-box pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-card-border);
    overflow-x: auto;
    font-size: 12px;
    color: #93c5fd;
}

.sync-status-box {
    margin-top: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    font-size: 13px;
}

.row-inline {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.hidden {
    display: none !important;
}

/* User Profile Header Badge */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    padding: 6px 14px;
    border-radius: var(--radius-md);
}

.user-icon {
    font-size: 18px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.user-role {
    font-size: 10px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--status-failed);
    color: #fca5a5;
}

/* Modal / Overlay de Login */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 20, 0.88);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: inline-block;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.login-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-dim);
    font-size: 12px;
}

.login-footer code {
    color: var(--primary);
}

/* ─── Input with Button Layout ─── */
.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button input {
    flex: 1;
}

/* ─── OAuth Status Card ─── */
.oauth-status-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
}

.oauth-status-icon {
    font-size: 22px;
}

.oauth-status-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oauth-status-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.oauth-status-sub {
    font-size: 12px;
    color: var(--text-dim);
}

.mb-4 {
    margin-bottom: 20px;
}

/* ─── Accounts Header Row & Filter Toolbar (Gerador .MD) ─── */
.accounts-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.account-counter-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
}

.accounts-filter-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.filter-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    color: #ffffff;
    outline: none;
}

.filter-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.btn-clear-search {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

.filter-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    gap: 6px;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.pill-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.batch-btns {
    display: flex;
    gap: 6px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.scrollable-accounts {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 8px;
    background: rgba(0, 0, 0, 0.15);
}

.account-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.account-select-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.account-select-item.selected {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

/* ─── Modal Seleção Visual de Drive / Pasta ─── */
.modal-lg {
    max-width: 780px !important;
}

.picker-shortcuts-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-card-border);
}

.shortcuts-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.shortcuts-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.shortcut-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.shortcut-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.picker-breadcrumbs-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.breadcrumbs-container {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bg-card-border);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    flex: 1;
    font-size: 13px;
    overflow-x: auto;
}

.breadcrumb-link {
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--text-dim);
    margin: 0 2px;
}

.picker-search-bar {
    margin-bottom: 14px;
}

.picker-folder-view {
    min-height: 240px;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.25);
    padding: 12px;
}

.folder-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.folder-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.folder-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.folder-card.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.folder-icon {
    font-size: 20px;
}

.folder-name-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.folder-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-sub {
    font-size: 10px;
    color: var(--text-dim);
}

.picker-selected-path-box {
    margin-top: 14px;
    padding: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px dashed rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-md);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-path-text {
    font-family: monospace;
    color: #a7f3d0;
    word-break: break-all;
}

/* Tokens & Connected Facebook Profiles Grid */
.tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.token-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    position: relative;
}

.token-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--shadow-subtle);
}

.token-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.token-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1877f2, #0d5cb6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.token-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.token-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-user-id {
    font-size: 11px;
    color: var(--text-muted);
}

.token-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.15);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.token-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.token-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.token-card-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 10px;
    justify-content: center;
}

/* ─── Visão Calendário por Dia e Modal de Detalhes ──────────────────────────── */

.view-mode-group {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-bottom: 20px;
}

.calendar-nav-btns {
    display: flex;
    gap: 8px;
}

.calendar-month-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.calendar-grid-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-weekdays-bar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-card-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

@media (max-width: 992px) {
    .calendar-days-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calendar-weekdays-bar {
        display: none;
    }
}

@media (max-width: 600px) {
    .calendar-days-grid {
        grid-template-columns: 1fr;
    }
}

.day-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    height: 150px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.day-card.other-month {
    opacity: 0.35;
    background: rgba(0, 0, 0, 0.2);
}

.day-card.today {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.day-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.day-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.day-card.today .day-number {
    background: var(--primary);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.day-post-count {
    font-size: 10px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 10px;
}

.day-posts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.day-posts-list::-webkit-scrollbar {
    width: 4px;
}

.day-posts-list::-webkit-scrollbar-track {
    background: transparent;
}

.day-posts-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.day-posts-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.day-post-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.day-post-item:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.day-post-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    background: #000;
    flex-shrink: 0;
}

.day-post-thumb-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.day-post-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.day-post-time {
    font-size: 10px;
    color: var(--primary-glow);
    font-weight: 600;
}

.day-post-caption {
    font-size: 11px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-post-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.day-post-status.scheduled { background-color: var(--status-scheduled); }
.day-post-status.published { background-color: var(--status-published); }
.day-post-status.failed { background-color: var(--status-failed); }

/* Modal Detalhes do Post */
.modal-lg {
    max-width: 800px !important;
}

.post-details-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .post-details-grid {
        grid-template-columns: 1fr;
    }
}

.post-details-media-container {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 360px;
    border: 1px solid var(--bg-card-border);
}

.post-details-media-container img,
.post-details-media-container video {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: contain;
}

.post-details-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-details-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.caption-display-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    max-height: 140px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: #e5e7eb;
}

.targets-detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
}

.target-detail-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.target-detail-name {
    font-weight: 600;
    color: #ffffff;
}

.target-detail-error {
    font-size: 11px;
    color: #f87171;
    margin-top: 2px;
}

/* ─── Mockup Visualizador (Live Preview) ─── */
.mockup-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.mockup-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.mockup-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Viewport Simulator Frame (Phone-like) */
.mockup-viewport {
    width: 320px;
    height: 500px;
    background: #000000;
    border-radius: 28px;
    border: 8px solid #2e2e2e;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 0 2px #444444;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Facebook Feed Mockup */
.mockup-facebook-feed {
    background: #18191a;
    color: #e4e6eb;
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mockup-facebook-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.mockup-facebook-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #444;
    object-fit: cover;
}

.mockup-facebook-author-info {
    display: flex;
    flex-direction: column;
}

.mockup-facebook-author {
    font-size: 14px;
    font-weight: bold;
    color: #e4e6eb;
}

.mockup-facebook-time {
    font-size: 11px;
    color: #b0b3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mockup-facebook-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mockup-facebook-caption {
    font-size: 13px;
    padding: 0 12px 10px 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.mockup-facebook-media-box {
    background: #000;
    width: 100%;
    aspect-ratio: 16/9; /* Facebook Feed */
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.mockup-facebook-media-box.carousel-mode {
    aspect-ratio: 1/1;
    max-height: 240px;
}

.mockup-facebook-media-box img,
.mockup-facebook-media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-facebook-actions {
    display: flex;
    border-top: 1px solid #3e4042;
    border-bottom: 1px solid #3e4042;
    padding: 4px 0;
    margin-top: auto;
}

.mockup-facebook-action-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #b0b3b8;
    font-size: 12px;
    padding: 8px 0;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Instagram Feed Mockup */
.mockup-instagram-feed {
    background: #000000;
    color: #ffffff;
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mockup-instagram-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
}

.mockup-instagram-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-instagram-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    object-fit: cover;
}

.mockup-instagram-author {
    font-size: 13px;
    font-weight: 600;
}

.mockup-instagram-dots {
    font-size: 14px;
    color: #aaa;
}

.mockup-instagram-media-box {
    background: #111;
    width: 100%;
    aspect-ratio: 1/1; /* IG feed 1:1 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.mockup-instagram-media-box img,
.mockup-instagram-media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-instagram-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 18px;
}

.mockup-instagram-left-icons {
    display: flex;
    gap: 14px;
}

.mockup-instagram-caption-box {
    padding: 0 12px 12px 12px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.mockup-instagram-username {
    font-weight: bold;
    margin-right: 6px;
}

/* Instagram Reels Mockup */
.mockup-instagram-reels {
    background: #000000;
    color: #ffffff;
    height: 100%;
    width: 100%;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
}

.mockup-instagram-reels-media {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.mockup-instagram-reels-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 2;
    pointer-events: none;
}

.mockup-instagram-reels-content {
    position: absolute;
    bottom: 20px;
    left: 12px;
    right: 50px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-instagram-reels-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-instagram-reels-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: #333;
    object-fit: cover;
}

.mockup-instagram-reels-author {
    font-size: 13px;
    font-weight: 600;
}

.mockup-instagram-reels-caption {
    font-size: 12px;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    white-space: pre-wrap;
    word-break: break-word;
}

.mockup-instagram-reels-sidebar {
    position: absolute;
    bottom: 30px;
    right: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mockup-instagram-reels-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 18px;
    gap: 2px;
}

.mockup-instagram-reels-icon-item span:last-child {
    font-size: 10px;
    color: #eee;
}

/* Instagram Stories Mockup */
.mockup-instagram-stories {
    background: #000000;
    color: #ffffff;
    height: 100%;
    width: 100%;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
}

.mockup-instagram-stories-media {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.mockup-instagram-stories-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    z-index: 3;
    background: linear-gradient(rgba(0,0,0,0.5), transparent);
}

.mockup-instagram-stories-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.mockup-instagram-stories-bar-item {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
    position: relative;
}

.mockup-instagram-stories-bar-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #ffffff;
}

.mockup-instagram-stories-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-instagram-stories-profile-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-instagram-stories-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #333;
    object-fit: cover;
}

.mockup-instagram-stories-author {
    font-size: 12px;
    font-weight: 600;
}

.mockup-instagram-stories-time {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.mockup-instagram-stories-close {
    font-size: 16px;
    color: #fff;
    cursor: pointer;
}

.mockup-instagram-stories-caption-box {
    position: absolute;
    bottom: 70px;
    left: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 3;
    max-height: 120px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.mockup-instagram-stories-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    z-index: 3;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-instagram-stories-input {
    flex: 1;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    color: #fff;
    background: rgba(0,0,0,0.3);
}

.mockup-instagram-stories-send {
    font-size: 18px;
}

/* Carousel dots navigation in previews */
.mockup-carousel-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    z-index: 2;
}

.mockup-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.mockup-carousel-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}

.mockup-carousel-dot.active {
    background: var(--primary);
}

/* Upload styles inside form */
.media-preview-container {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--bg-card-border);
    flex-shrink: 0;
}

.media-preview-container img,
.media-preview-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 68, 68, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.scrollable-accounts {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 4px;
    background: rgba(0, 0, 0, 0.2);
}

/* ─── Posts por Conta Grid e Cards ─── */
.posts-grid-by-account {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.account-post-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.account-post-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.account-post-media-header {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-post-media-header img,
.account-post-media-header video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-post-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
}

.account-post-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
}

.account-post-status-badge.published {
    background: rgba(16, 185, 129, 0.85);
    color: #fff;
}

.account-post-status-badge.failed {
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
}

.account-post-status-badge.pending {
    background: rgba(245, 158, 11, 0.85);
    color: #fff;
}

.account-post-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.account-post-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.account-post-caption {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-wrap;
    height: 56px; /* 3 lines roughly */
}

.account-post-error-msg {
    font-size: 11px;
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid #ef4444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-post-actions {
    border-top: 1px solid var(--bg-card-border);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.1);
}

.account-post-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
    flex: 1;
    justify-content: center;
/* Sub-menu Lateral (Item filho) */
.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-sub-menu {
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.nav-item.nav-sub-item {
    font-size: 13px;
    padding: 8px 14px;
    color: var(--text-muted);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.nav-item.nav-sub-item:hover {
    background: var(--bg-card);
    color: var(--text-main);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.nav-item.nav-sub-item.active {
    background: var(--primary);
    color: #ffffff;
    border-left-color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Fotos de Contas Sociais na Seleção */
.account-inline-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* ─── Issue #1: Calendário Day Cards & Day Posts Modal ─── */
.day-card.has-posts {
    cursor: pointer;
}

.day-card.has-posts:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.day-card.has-posts .day-card-header {
    cursor: pointer;
}

.day-card.has-posts .day-card-header:hover .day-number {
    color: #818cf8;
    font-weight: 700;
}

.day-posts-modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.day-modal-post-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.day-modal-post-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

.day-modal-post-thumb-box {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    border-radius: var(--radius-sm, 6px);
    background: #111;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-card-border, rgba(255, 255, 255, 0.1));
}

.day-modal-post-thumb-box img,
.day-modal-post-thumb-box video {
    width: 100% !important;
    height: 100% !important;
    max-width: 64px !important;
    max-height: 64px !important;
    object-fit: cover !important;
    pointer-events: none;
}

.day-modal-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.day-modal-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.day-modal-post-time {
    font-size: 12px;
    font-weight: 600;
    color: #818cf8;
}

.day-modal-post-caption {
    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-modal-post-targets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.day-modal-post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================
   Estilização do Chat Assistente IA (.MD)
   ========================================== */
.ai-chat-card {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
    min-height: 550px;
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.ai-chat-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 20px;
    overflow: hidden;
}

.ai-prompt-hints {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.hint-title {
    font-size: 12px;
    font-weight: 600;
    color: #a5b4fc;
}

.chip-btn {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.6);
    color: #ffffff;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 8px;
    margin-bottom: 16px;
}

.chat-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 14px;
    animation: fadeIn 0.2s ease;
}

.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.chat-bubble.assistant {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border-bottom-left-radius: 2px;
}

.chat-bubble.assistant.loading {
    color: #94a3b8;
    font-style: italic;
}

.chat-sender {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.chat-text {
    word-break: break-word;
}

.chat-text code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: #818cf8;
}

.ai-md-result-box {
    margin-top: 14px;
    background: #0f172a;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.ai-md-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(30, 41, 59, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-md-title {
    font-size: 13px;
    font-weight: 600;
    color: #a7f3d0;
}

.ai-md-code {
    padding: 14px;
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: #e2e8f0;
    background: #090d16;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-chat-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-input-container textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    resize: none;
    font-family: inherit;
}

.ai-chat-input-container textarea::placeholder {
    color: #64748b;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}






