@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@700;800&display=swap');

/* ============================================================
   VARIÁVEIS
   ============================================================ */
:root {
    --bg:          #0d0f1a;
    --surface:     #161927;
    --surface-2:   #1d2135;
    --surface-3:   #252840;
    --border:      rgba(255,255,255,0.06);
    --border-md:   rgba(255,255,255,0.10);
    --text:        #dde1f0;
    --text-muted:  #7c88a2;
    --text-faint:  #404660;

    --accent:       #6366f1;
    --accent-light: rgba(99,102,241,0.15);
    --accent-hover: #4f52e8;

    --green:        #22c55e;
    --green-light:  rgba(34,197,94,0.12);

    --danger:       #ef4444;
    --danger-light: rgba(239,68,68,0.12);

    --magic:        #8b5cf6;
    --magic-hover:  #7c3aed;
    --magic-light:  rgba(139,92,246,0.15);

    --radius:    10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --sidebar-w: 240px;
    --shadow:    0 8px 32px rgba(0,0,0,0.4);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.25);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    overflow: hidden;
    height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 0 var(--accent-light);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.btn-success {
    background: var(--green);
    color: #fff;
    font-size: 0.9rem;
    padding: 0.65rem 1.4rem;
}
.btn-success:hover { filter: brightness(1.1); }

.btn-magic {
    background: var(--magic);
    color: #fff;
    width: 100%;
    justify-content: center;
    padding: 0.65rem;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    box-shadow: 0 4px 16px var(--magic-light);
}
.btn-magic:hover { background: var(--magic-hover); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-md);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s, color 0.15s;
}
.btn-icon:hover { background: var(--surface-3); color: var(--text); }
.btn-icon.danger:hover { background: var(--danger-light); color: var(--danger); }

.btn-secondary {
    background: var(--surface-3);
    color: var(--text-muted);
    border: 1px solid var(--border-md);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }

.btn-danger-text {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger-light);
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
}
.btn-danger-text:hover { background: var(--danger-light); }

/* ============================================================
   LAYOUT
   ============================================================ */
.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-logo {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-logo-title .logo-icon {
    width: 28px; height: 28px;
    background: var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-logo-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.15rem;
    padding-left: 0.35rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 0.75rem 0.5rem 0.4rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}
.sidebar-link svg { flex-shrink: 0; opacity: 0.7; }
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link:hover svg { opacity: 1; }
.sidebar-link.active {
    background: var(--accent-light);
    color: #fff;
    font-weight: 600;
}
.sidebar-link.active svg { opacity: 1; }

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.sidebar-bottom {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.view { display: none; }
.view.active-view { display: block; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

.content-header-left h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}
.content-header-left p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* ============================================================
   TABELA DE POSTS
   ============================================================ */
.table-container {
    padding: 1.5rem 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.data-table th {
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--surface-2); }

.post-title-cell strong {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 600;
    display: block;
    margin-bottom: 0.15rem;
}
.post-slug-cell {
    font-size: 0.78rem;
    color: var(--text-faint);
    font-family: monospace;
}

.cat-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--accent-light);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,0.2);
}

.actions-cell {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

/* ============================================================
   FORMULÁRIO DE CATEGORIA
   ============================================================ */
.cat-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 0 2rem 1.5rem;
}

.cat-form-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.cat-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cat-form-row .form-group { flex: 1; margin: 0; }

.cat-form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.8rem;
    background: var(--surface-2);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%237c88a2' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-hint {
    font-size: 0.74rem;
    color: var(--text-faint);
    margin-top: 0.3rem;
}

/* ============================================================
   EDITOR LAYOUT
   ============================================================ */
.editor-container {
    display: none;
    flex: 1;
    min-height: 0;
    height: 100%;
}

/* Editor principal (esquerda) */
.editor-workspace {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.editor-toolbar button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.editor-toolbar button:hover {
    background: var(--surface-3);
    color: var(--text);
    border-color: var(--border-md);
}

.toolbar-sep {
    width: 1px;
    height: 20px;
    background: var(--border-md);
    margin: 0 0.25rem;
}

.editor-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem 4rem;
}

.title-input {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.title-input::placeholder { color: var(--text-faint); }

.content-editor {
    min-height: 60vh;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    outline: none;
    caret-color: var(--accent);
}
.content-editor:empty::before {
    content: attr(placeholder);
    color: var(--text-faint);
    pointer-events: none;
}
.content-editor h2, .content-editor h3 {
    font-family: 'Outfit', sans-serif;
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
}
.content-editor p { margin-bottom: 1rem; }
.content-editor a { color: #818cf8; text-decoration: underline; }

/* Imagens no Editor */
.content-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1.5rem auto;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.content-editor img:hover {
    border-color: var(--accent);
    cursor: pointer;
}

/* Barra de status do editor */
.editor-statusbar {
    padding: 0.5rem 1.5rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-faint);
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* ============================================================
   SETTINGS SIDEBAR (direita no editor)
   ============================================================ */
.post-settings {
    width: 300px;
    flex-shrink: 0;
    background: var(--surface);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.settings-section {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.settings-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1rem;
}

/* Publish section */
.publish-section {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.publish-section .btn-publish-main {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    background: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    transition: filter 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.publish-section .btn-publish-main:hover { filter: brightness(1.1); }
.publish-section .btn-publish-main:active { transform: scale(0.98); }
.publish-section .btn-publish-main:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Image dropzone */
.image-dropzone {
    display: block;
    border: 1.5px dashed var(--border-md);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.image-dropzone:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: #a5b4fc;
}
.image-dropzone svg { margin-bottom: 0.4rem; opacity: 0.5; }

.image-preview {
    margin-top: 0.75rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.image-preview img {
    width: 100%;
    display: none;
    border-radius: var(--radius-sm);
}

/* SEO Accordion */
.settings-accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.settings-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    background: var(--surface-2);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    list-style: none;
    user-select: none;
    gap: 0.5rem;
}
.settings-accordion summary::-webkit-details-marker { display: none; }
.settings-accordion summary:hover { color: var(--text); }

.settings-accordion[open] summary { color: var(--text); border-bottom: 1px solid var(--border); }

.accordion-body {
    padding: 1rem;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.accordion-body .form-group { margin: 0; }

/* AI Tools */
.ai-section {
    padding: 1.25rem;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--magic);
    background: var(--magic-light);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.ai-prompt-box textarea {
    min-height: 90px;
    resize: vertical;
    background: var(--surface-2);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    width: 100%;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.ai-prompt-box textarea:focus {
    border-color: var(--magic);
    box-shadow: 0 0 0 3px var(--magic-light);
}

/* ============================================================
   LOADER OVERLAY
   ============================================================ */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,15,26,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.loader-overlay.hidden { display: none; }

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    padding: 2rem 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-md);
    box-shadow: var(--shadow);
}

.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border-md);
    border-top-color: var(--magic);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.88rem;
    color: var(--text);
    pointer-events: all;
    animation: toastIn 0.25s ease;
    max-width: 340px;
    border-left: 3px solid transparent;
}
.toast.success { border-left-color: var(--green); }
.toast.error   { border-left-color: var(--danger); }
.toast.info    { border-left-color: var(--accent); }

.toast-icon { flex-shrink: 0; }
.toast-icon.success { color: var(--green); }
.toast-icon.error   { color: var(--danger); }
.toast-icon.info    { color: var(--accent); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-faint);
}
.empty-state svg { margin-bottom: 1rem; opacity: 0.3; }
.empty-state p { font-size: 0.9rem; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 900px) {
    body { overflow: auto; }

    .admin-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: stretch;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-logo {
        padding: 0.85rem 1rem;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }

    .sidebar-nav {
        flex-direction: row;
        padding: 0;
        flex: 1;
        overflow-x: auto;
        gap: 0;
    }

    .sidebar-section-label { display: none; }
    .sidebar-divider { display: none; }

    .sidebar-link {
        padding: 0.75rem 1rem;
        border-radius: 0;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
    }
    .sidebar-link.active {
        background: transparent;
        border-bottom-color: var(--accent);
        color: #a5b4fc;
    }

    .sidebar-bottom {
        flex-direction: row;
        border-top: none;
        border-left: 1px solid var(--border);
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .main-content { overflow-y: auto; }

    .editor-container { flex-direction: column-reverse; height: auto; }

    .post-settings {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .editor-scroll { padding: 1.5rem; }

    .title-input { font-size: 1.6rem; }

    .content-header { padding: 1rem 1.25rem; }
    .table-container { padding: 1rem 1.25rem; }

    .cat-form-card { margin: 0 1.25rem 1rem; }
    .cat-form-row { flex-direction: column; }
}

/* ============================================================
   MANUTENÇÃO
   ============================================================ */
.maint-card {
    max-width: 620px;
    margin: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.maint-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.maint-status-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.maint-status-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input { display: none; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--surface-3);
    border-radius: 50px;
    border: 1px solid var(--border-md);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--danger);
    border-color: var(--danger);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
    background: #fff;
}

/* Countdown display */
.maint-countdown {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--danger-light);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: #fca5a5;
    font-size: 0.88rem;
}
.maint-countdown strong { color: var(--danger); font-variant-numeric: tabular-nums; }

.maint-divider {
    height: 1px;
    background: var(--border);
    margin: 0 -.5rem;
}

/* ============================================================
   LOGIN PAGE (carregado em login.html)
   ============================================================ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.06) 0%, transparent 50%);
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.login-logo-icon {
    width: 38px; height: 38px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.login-logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.05rem;
}

.login-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.login-card > p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.75rem;
}

.login-step { display: flex; flex-direction: column; gap: 0.75rem; }
.login-step.hidden { display: none; }

.login-step input {
    width: 100%;
    padding: 0.7rem 0.95rem;
    background: var(--surface-2);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.login-step input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
}

.otp-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.login-message {
    font-size: 0.82rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    display: none;
}
.login-message.error {
    display: block;
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.2);
}
.login-message.success {
    display: block;
    background: var(--green-light);
    color: var(--green);
    border: 1px solid rgba(34,197,94,0.2);
}
