:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-elevated: rgba(15, 23, 42, 0.96);
    --border-subtle: rgba(148, 163, 184, 0.4);
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --danger-border: rgba(248, 113, 113, 0.55);
    --danger-text: #fecaca;
    --success-bg: rgba(34, 197, 94, 0.12);
    --success-border: rgba(34, 197, 94, 0.5);
    --success-text: #bbf7d0;
    /* ===== Botões: altura única em toda a UI ===== */
    --btn-h: 32px;
    --btn-font: 14px;
    --btn-radius: 10px;
    /* altura exclusiva do botão Buscar das listas */
    --search-h: 42px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 0% -20%, rgba(56, 189, 248, 0.25), transparent 55%), radial-gradient(circle at 100% 120%, rgba(14, 165, 233, 0.25), transparent 55%), var(--bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

input,
button,
select {
    font-family: inherit;
}

/* Shell geral */

.app-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

/* Card principal */

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-elevated);
    border-radius: 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8);
    padding: 1.8rem 1.5rem 1.4rem;
}

@media (min-width: 640px) {
    .auth-card {
        padding: 2rem 1.8rem 1.6rem;
    }
}

/* Header / logo */

.auth-header {
    text-align: center;
    margin-bottom: 10px;
}

.auth-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 10px;
}

.auth-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 0 auto 10px;
}

.auth-logo-img {
    height: 64px;
    width: auto;
    display: block;
    object-fit: contain;
}

.auth-subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    color: var(--text-muted);
}

/* Abas */

.auth-tabs {
    display: flex;
    border-radius: 999px;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.65);
    padding: 0.18rem;
    margin-bottom: 0.9rem;
}

.auth-tab {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.auth-tab--active {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    transform: translateY(-1px);
}

/* Header do passo */

.step-header {
    text-align: center;
    margin-bottom: 0.4rem;
}

.step-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.step-title {
    margin: 0 0 0.15rem;
    font-size: 1.15rem;
    font-weight: 600;
}

/* Form / campos */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.field-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.field-optional {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.field-input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: #020617;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

    .field-input::placeholder {
        color: rgba(148, 163, 184, 0.7);
    }

    .field-input:focus {
        border-color: var(--accent-strong);
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
        background: #020617;
    }

.field-row {
    display: flex;
    gap: 0.5rem;
}

    /* faz os .field dentro da row ocuparem bem o espaço */
    .field-row > .field {
        flex: 1;
    }

.field--half {
    flex: 1;
}

/* campos menores (número, UF etc.) */
.field--small {
    flex: 0 0 32%;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .password-input-wrapper .field-input {
        padding-right: 2.3rem; /* espaço pro olhinho */
    }

.password-toggle {
    position: absolute;
    right: 0.65rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0;
}

    .password-toggle:hover {
        color: var(--text-main);
    }

    .password-toggle:focus {
        outline: none;
    }

/* Botões no padrão do site (menos arredondados, fonte branca) */

.btn-primary {
    width: 100%;
    padding: 0.7rem 1.25rem;
    border-radius: 0.55rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(120deg, #38bdf8 0%, #0ea5e9 100%);
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(14, 165, 233, 0.12);
    transition: box-shadow 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

    .btn-primary:hover {
        box-shadow: 0 16px 40px rgba(8, 47, 73, 0.9);
        filter: brightness(1.05);
    }

    .btn-primary:active {
        box-shadow: 0 8px 24px rgba(8, 47, 73, 0.85);
        filter: brightness(0.98);
    }

    .btn-primary:disabled {
        opacity: 0.55;
        cursor: default;
        box-shadow: none;
        filter: none;
    }

.btn-secondary {
    padding: 0.6rem 0.9rem;
    border-radius: 0.55rem;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    background: #0f766e;
    color: #ecfeff;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.7);
    transition: box-shadow 0.12s ease, filter 0.12s ease;
}

    .btn-secondary:hover {
        box-shadow: 0 16px 32px rgba(15, 118, 110, 0.9);
        filter: brightness(1.05);
    }

    .btn-secondary:active {
        box-shadow: 0 8px 18px rgba(15, 118, 110, 0.9);
    }

    /* ===== aplica altura única a botões “normais” (exceto icon-button) ===== */
    .btn-primary:not(.icon-button),
    .btn-secondary:not(.icon-button),
    .btn-ghost:not(.icon-button),
    .btn-danger:not(.icon-button) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: var(--btn-h);
        min-height: var(--btn-h);
        padding: 0 14px;
        line-height: 1;
        font-size: var(--btn-font);
        border-radius: var(--btn-radius);
        gap: 8px;
    }

/* Alerts / mensagens */

.alert {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid transparent;
    margin-bottom: 0.75rem;
}

.alert--error {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
    font-weight: 500;
}

/* corrige o validation summary do Razor */
.alert ul,
.alert-validation ul,
.validation-summary-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.alert li,
.alert-validation li,
.validation-summary-errors li {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* se vier só uma mensagem, ela fica bem centrada visualmente */
.alert-validation,
.validation-summary-errors {
    width: 100%;
}


.alert--success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-text);
}

.alert--warning {
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.45);
    color: rgba(254, 243, 199, 1);
}

.alert--info {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: rgba(224, 242, 254, 1);
}

.helper-text {
    font-size: 0.86rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0.2rem 0 0.9rem;
}

/* blocos de "Corrigir e-mail / Reenviar código" */

.helper-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: -0.15rem 0 0.85rem;
}

.link-button {
    padding: 0.45rem 0.9rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.96);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

    /* sem translateY aqui pra não mexer fisicamente no botão */
    .link-button:hover {
        border-color: var(--accent-strong);
        color: #e5e7eb;
        background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.22), #020617);
        box-shadow: 0 10px 26px rgba(8, 47, 73, 0.9);
    }

    .link-button:active {
        box-shadow: 0 6px 18px rgba(8, 47, 73, 0.85);
        filter: brightness(0.98);
    }

    .link-button:disabled {
        opacity: 0.55;
        cursor: default;
        box-shadow: none;
        filter: none;
    }

/* Auth – ajustar altura do botão "Buscar CEP" para casar com o input */
.auth-form .field-row .btn-secondary {
    height: 42px;
    min-height: 42px;
    padding: 0 14px;
}

/* Final */

.success-final {
    margin-top: 0.5rem;
    text-align: left;
}

    .success-final h2 {
        font-size: 1.05rem;
        margin: 0 0 0.3rem;
    }

    .success-final p {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin: 0;
    }

/* Responsividade extra */

@media (max-width: 360px) {
    .field-row {
        flex-direction: column;
    }

    .field--small {
        width: 100%;
        flex: 1 1 100%;
    }

    .step-title {
        font-size: 1rem;
    }
}

/* ===== Forms em cards: empilhar campos no mobile ===== */
@media (max-width: 767px) {
    .dashboard-card .field-row {
        flex-direction: column;
    }

        .dashboard-card .field-row > .field,
        .dashboard-card .field-row > .field.field--half,
        .dashboard-card .field-row > .field.field--small {
            width: 100%;
            flex: 1 1 100%;
        }
}

/* ============ DASHBOARD LAYOUT ============ */

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 55%), #020617;
    color: #e5e7eb;
}

.dashboard-sidebar {
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1.5rem 1.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(180deg, #020617, #020617);
}

.dashboard-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-logo-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dashboard-logo-img,
.auth-logo-img,
.auth-logo-img--wide {
    width: auto !important;
    height: 40px !important;
    object-fit: contain;
    display: block;
}

.dashboard-logo-text-main {
    font-size: 0.95rem;
    font-weight: 600;
}

.dashboard-logo-text-sub {
    font-size: 0.75rem;
    color: #9ca3af;
}

.dashboard-nav-section {
    margin-bottom: 1.4rem;
}

.dashboard-nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.45rem;
    padding-left: 0.15rem;
}

.dashboard-nav-section + .dashboard-nav-section {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.8rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    color: #e5e7eb;
    text-decoration: none;
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

    .dashboard-nav-link:hover {
        background: rgba(15, 23, 42, 0.9);
        border-color: rgba(148, 163, 184, 0.5);
        box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
    }

.dashboard-nav-link--active {
    background: linear-gradient(120deg, #0f172a, #020617);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 10px 25px rgba(15, 23, 42, 0.9);
    color: #f9fafb;
}

.dashboard-nav-link-icon {
    font-size: 1.05rem;
}

.dashboard-nav-link-label {
    font-weight: 500;
}

.dashboard-nav-link--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.dashboard-logout-button {
    margin-top: auto;
    margin-bottom: 0.25rem;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #fecaca;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .dashboard-logout-button:hover {
        background: rgba(239, 68, 68, 0.12);
        border-color: rgba(239, 68, 68, 0.8);
        color: #fee2e2;
    }

/* Área principal */

.dashboard-main {
    padding: 1.75rem 1.75rem 2rem;
    width: 100%;
}

.dashboard-main-header {
    margin-bottom: 1.25rem;
}

.dashboard-main-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
}

.dashboard-main-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #9ca3af;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.15rem;
}

.dashboard-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    width: 100%;
}

    .dashboard-card + .dashboard-card {
        margin-top: 0;
    }

.dashboard-card-title {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.dashboard-card-text {
    font-size: 0.9rem;
    color: #e5e7eb;
    line-height: 1.5;
}

/* Responsivo */

@media (max-width: 900px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: sticky;
        top: 0;
        z-index: 30;
        padding-inline: 1rem;
        padding-bottom: 0.8rem;
        background: radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 55%), #020617;
    }

    .dashboard-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .dashboard-nav-link {
        flex: 1 1 calc(50% - 0.4rem);
        justify-content: center;
    }

    .dashboard-main {
        padding: 1.35rem 1rem 1.75rem;
    }
}

/* --- Cards / botões utilitários --- */
.dashboard-card-footer {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-ghost {
    padding: 0.5rem 0.7rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    cursor: pointer;
}

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

/* ===== Drawer mobile (sidebar off-canvas) ===== */
.drawer-toggle-btn {
    position: fixed;
    top: 12px;
    left: auto !important;
    right: 12px !important;
    z-index: 1100;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    font-size: 1.05rem;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #ccfbf1;
    display: none;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 900;
}

@media (max-width: 767px) {
    .drawer-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

    .dashboard-shell {
        display: block;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 84%;
        max-width: 320px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1000;
    }

    .dashboard-main {
        padding-top: 14px;
    }

    .sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .sidebar-open .drawer-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ===== Correção mobile: título em cima, subtítulo embaixo, alinhados ao botão ===== */
@media (max-width: 767px) {
    .dashboard-main-header {
        display: block;
        min-height: 0;
        margin-top: 0;
        padding-right: 56px;
    }

    .dashboard-main-title {
        margin: 0 0 0.25rem 0;
        line-height: 1.15;
    }

    .dashboard-main-subtitle {
        display: block;
        margin: 0;
    }
}

/* ações alinhadas sob o título/subtítulo, fora de cards */
.page-actions {
    margin: 6px 0 12px 0;
    display: flex;
    gap: 8px;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 1) Botão "+ Adicionar ..." em tamanho normal */
.page-actions .btn-primary {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* toolbar de busca dentro do card (full width) */
.card-toolbar {
    display: flex;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
}

    .card-toolbar .field-input--lg {
        flex: 1 1 auto;
    }

/* Somente o botão "Buscar" na barra de ferramentas da lista */
.dashboard-card .card-toolbar .btn-secondary {
    height: var(--search-h);
    min-height: var(--search-h);
    padding: 0 14px;
    font-size: 15px;
    border-radius: var(--btn-radius);
}

/* Botões "Buscar" das listas (pareamento) com mesma altura dos inputs */
.dashboard-card .field-row .btn-secondary {
    height: var(--search-h);
    min-height: var(--search-h);
    padding: 0 14px;
    font-size: 15px;
    border-radius: var(--btn-radius);
}

/* tabela 100% */
.dashboard-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

/* cabeçalho do card de formulário e título */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-weight: 600;
    font-size: 1.05rem;
}

/* ações do card (rodapé do form) */
.card-actions {
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    text-align: left;
}

    /* Botão "Salvar" no tamanho normal dentro do rodapé do card */
    .card-actions .btn-primary {
        width: auto;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

/* Garantir tamanho “normal” dos botões dentro do form */
.dashboard-card .card-actions .btn-ghost,
.dashboard-card .card-actions .btn-primary {
    width: auto;
    height: var(--btn-h);
    min-height: var(--btn-h);
    padding: 0 14px;
}

/* botões */
.btn-danger {
    background: linear-gradient(120deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease;
}

    .btn-danger:hover {
        filter: brightness(0.92);
    }

    .btn-danger:active {
        filter: brightness(0.85);
    }

/* botão “X” genérico (fecha form e fecha modal) */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
}

.icon-button--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* modal de confirmação */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 16px; /* ✅ cria “respiro” nas bordas */
    box-sizing: border-box; /* ✅ garante que o padding não estoura */
}

.modal-card {
    width: 100%;
    max-width: 520px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    padding: 14px 16px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.modal-body {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

/* =========================================================
   TABELAS: separador + hover discreto
   ========================================================= */
.dashboard-table tbody tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

    .dashboard-table tbody tr:last-child {
        border-bottom: none;
    }

@media (hover: hover) {
    .dashboard-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.03);
    }
}

.dashboard-table th {
    text-align: left;
    vertical-align: middle;
}

.dashboard-table td {
    text-align: left;
    vertical-align: middle;
}

    .dashboard-table th:last-child,
    .dashboard-table td:last-child {
        text-align: right;
    }

/* (opcional) respiro no mobile */
@media (max-width: 900px) {
    .dashboard-table td {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }
}

/* =========================================================
   TABELAS: mais respiro nas células (evita kebab colado)
   ========================================================= */

/* padding padrão de célula (desktop) */
.dashboard-table th,
.dashboard-table td {
    padding: 10px 12px; /* 👈 aumenta o espaço vertical/horizontal */
}

/* cabeçalho um pouco mais “alto” */
.dashboard-table thead th {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* coluna de ações: mais respiro e centraliza melhor */
.dashboard-table td:last-child {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: middle;
}

/* mantém o botão bem alinhado e com área clicável “confortável” */
.row-actions-trigger {
    margin: 2px 0; /* 👈 afasta um tiquinho das bordas da linha */
}

/* (opcional) no mobile, ainda mais respiro */
@media (max-width: 900px) {
    .dashboard-table td {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* ===== Thumbnails de veículo na lista ===== */
.vehicle-thumb-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    overflow: hidden;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
}

.vehicle-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vehicle-thumb-wrapper--empty {
    border-style: dashed;
    color: rgba(148, 163, 184, 0.8);
    font-size: 11px;
}

    .vehicle-thumb-wrapper--empty span {
        white-space: nowrap;
    }

/* ===== Upload de foto (botão "Enviar foto") ===== */
.file-input-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: nowrap;
}

.upload-btn {
    white-space: nowrap;
}

.upload-filename {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 55%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .upload-filename {
        max-width: 60%;
    }
}

/* ===== Abas da página "Minha conta" (account-tabs) ===== */

.account-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .account-tabs::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

.account-tab {
    position: relative;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 0.45rem 0.85rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

    .account-tab:hover {
        color: var(--text-main);
        background: rgba(15, 23, 42, 0.85);
        border-color: rgba(148, 163, 184, 0.55);
    }

.account-tab--active {
    color: #e5e7eb;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 65%), #020617;
    border-color: rgba(56, 189, 248, 0.75);
    border-bottom-color: #020617;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.9);
    transform: translateY(1px);
    z-index: 1;
}

.dashboard-card .card-body {
    padding-top: 10px;
}

/* ===== Aba "Minha conta" - linha de endereço (CEP + Buscar + Endereço) ===== */

.address-main-row {
    align-items: flex-end;
}

    .address-main-row .field-cep-group,
    .address-main-row .field-address-group {
        flex: 1 1 0;
    }

.address-cep-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

    .address-cep-row > .field {
        flex: 1 1 auto;
    }

    .address-cep-row .btn-cep-search {
        flex: 0 0 auto;
        height: var(--btn-h);
        min-height: var(--btn-h);
        padding: 0 14px;
        font-size: var(--btn-font);
        border-radius: var(--btn-radius);
        white-space: nowrap;
    }

/* =========================================================
   MENU DE AÇÕES (Floating / Portal) — versão final limpa
   ========================================================= */

/* garante que a célula da tabela não corte o menu */
.dashboard-table td:last-child {
    overflow: visible;
}

/* botão kebab */
.row-actions-trigger {
    width: 40px;
    min-width: 40px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

    .row-actions-trigger:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(56, 189, 248, 0.35);
    }

    .row-actions-trigger:active {
        transform: translateY(1px);
    }

    .row-actions-trigger i {
        font-size: 1.05rem;
        line-height: 1;
    }

/* camada invisível para fechar ao clicar fora */
.floating-actions-layer {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: transparent;
}

/* menu flutuante */
.floating-actions-menu {
    position: fixed;
    z-index: 9999;
    /* abre sempre para a ESQUERDA do botão */
    transform: translate(calc(-100% - 12px), -50%);
    min-width: 190px;
    padding: 8px;
    border-radius: 14px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

/* itens do menu (estilo lista, não botão) */
.floating-actions-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
}

    .floating-actions-item i {
        width: 18px;
        display: inline-flex;
        justify-content: center;
    }

    .floating-actions-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .floating-actions-item:active {
        transform: translateY(1px);
    }

/* separador */
.row-actions-sep {
    height: 1px;
    margin: 6px 6px;
    background: rgba(148, 163, 184, 0.18);
}

/* ===== Passo 6: Seleção do tipo de conta ===== */

.account-type-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 6px;
}

.account-type-card {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(2, 6, 23, 0.75);
    color: var(--text-main);
    border-radius: 14px;
    padding: 12px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
}

    .account-type-card:hover {
        border-color: rgba(56, 189, 248, 0.65);
        box-shadow: 0 12px 30px rgba(8, 47, 73, 0.55);
    }

    .account-type-card:active {
        transform: translateY(1px);
    }

    .account-type-card:disabled {
        opacity: 0.65;
        cursor: default;
        box-shadow: none;
        transform: none;
    }

.account-type-card--selected {
    border-color: rgba(56, 189, 248, 0.95);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 14px 34px rgba(8, 47, 73, 0.75);
    background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.18), rgba(2, 6, 23, 0.8));
}

.account-type-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.account-type-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #e0f2fe;
    flex: 0 0 auto;
}

.account-type-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.account-type-title {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-type-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #e0f2fe;
}

.account-type-sub {
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.25;
}

/* “radio” à direita */
.account-type-right {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.radio-dot--on {
    border-color: rgba(56, 189, 248, 0.95);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
}

    .radio-dot--on::after {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    }

/* ===== Overview: cards em grid no desktop, stack no mobile ===== */

.dashboard-card-grid {
    display: grid;
    grid-template-columns: 1fr; /* mobile: 1 por linha */
    gap: 1.15rem;
    align-items: start;
}

/* desktop: 2 colunas (2 em cima + 2 embaixo) */
@media (min-width: 1024px) {
    .dashboard-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* remove o espaçamento vertical “extra” do modo lista quando vira grid */
.dashboard-card-grid .dashboard-card + .dashboard-card {
    margin-top: 0;
}

/* ===== Card "Comece agora" — versão mais visual ===== */
.welcome-first-vehicle-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.18), transparent 55%), radial-gradient(circle at 110% 80%, rgba(14, 165, 233, 0.14), transparent 55%), rgba(255, 255, 255, 0.04);
}

.welcome-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-hero-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #e0f2fe;
    flex: 0 0 auto;
}

.welcome-hero-texts {
    min-width: 0;
}

.welcome-hero-title {
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.2;
}

.welcome-hero-subtitle {
    margin-top: 2px;
    font-size: 0.86rem;
    color: rgba(148, 163, 184, 0.95);
}

.welcome-hero-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #e0f2fe;
    white-space: nowrap;
}

.welcome-hero-visual {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.welcome-hero-oval {
    width: min(320px, 100%);
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.38);
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.09), rgba(2, 6, 23, 0.25)), rgba(15, 23, 42, 0.35);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.welcome-hero-oval-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #e0f2fe;
}

.welcome-hero-oval-text {
    font-size: 0.88rem;
    color: #e5e7eb;
    line-height: 1.35;
}

.welcome-hero-oval-hint {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.95);
}

.welcome-hero-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.welcome-hero-cta {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 15px !important;
    border-radius: 14px !important;
}

@media (max-width: 480px) {
    .welcome-hero-pill {
        display: none; /* no mobile fica mais clean */
    }
}

/* ===== Card clicável (como link) — SEM deslocar no hover ===== */
.welcome-card-link {
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

    .welcome-card-link:hover {
        border-color: rgba(56, 189, 248, 0.35);
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.10), 0 18px 55px rgba(0, 0, 0, 0.40);
    }

    .welcome-card-link:active {
        /* mantém estável também */
    }

/* ===== Centro do card: stats em destaque (substitui a oval) ===== */
.welcome-hero-visual {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ===== Centro do card: stats em destaque (com ícone em linha separada) ===== */
.welcome-hero-stats {
    width: min(560px, 100%);
    display: grid;
    /* 2 linhas: ícone em cima, stats embaixo */
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 10px;
    column-gap: 14px;
    padding: 16px 16px;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.16), transparent 55%), rgba(15, 23, 42, 0.35);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

/* Ícone central (maior, sem borda) */
/* Ícone central (sem borda, carro bem grande) */
.welcome-hero-stats-icon {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent; /* remove o “círculo” como elemento visual */
    box-shadow: none; /* sem borda/halo */
    color: #e0f2fe;
    pointer-events: none;
}

    /* Carro ocupa praticamente todo o espaço do círculo */
    .welcome-hero-stats-icon i {
        font-size: 2.4rem; /* 👈 bem maior */
        line-height: 1;
    }

/* Mobile: ajusta proporcional */
@media (max-width: 520px) {
    .welcome-hero-stats-icon {
        width: 52px;
        height: 52px;
    }

        .welcome-hero-stats-icon i {
            font-size: 2.2rem;
        }
}

/* Coloca os stats na segunda linha */
.welcome-hero-stat {
    grid-row: 2;
}

.welcome-hero-stat-sep {
    grid-row: 2;
    width: 1px;
    height: 46px;
    background: rgba(148, 163, 184, 0.22);
    align-self: center;
}

/* Mobile: empilha tudo, separador vira horizontal */
@media (max-width: 520px) {
    .welcome-hero-stats {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        row-gap: 10px;
        padding: 14px 14px;
    }

    .welcome-hero-stats-icon {
        width: 52px;
        height: 52px;
    }

        .welcome-hero-stats-icon i {
            font-size: 1.35rem;
        }

    .welcome-hero-stat,
    .welcome-hero-stat-sep {
        grid-row: auto;
    }

    .welcome-hero-stat-sep {
        width: 100%;
        height: 1px;
    }
}

.welcome-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.welcome-hero-stat-number {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #e0f2fe;
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}

.welcome-hero-stat-label {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.92);
}

.welcome-hero-stat-sep {
    width: 1px;
    height: 46px;
    background: rgba(148, 163, 184, 0.22);
}

/* frase de chamada */
.welcome-hero-hint {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.95);
}

/* pill do topo um pouco mais chamativa */
.welcome-hero-pill {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Mobile: mantém bom, empilha e deixa separador horizontal */
@media (max-width: 520px) {
    .welcome-hero-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 14px;
    }

    .welcome-hero-stat-sep {
        width: 100%;
        height: 1px;
    }

    .welcome-hero-stat-number {
        font-size: 2.05rem;
    }
}

/* centraliza o box de stats quando ele não ocupa 100% da largura */
.welcome-hero-stats {
    margin: 0 auto;
}

/* centraliza o “Clique aqui…” */
.welcome-hero-hint {
    width: 100%;
    text-align: center;
}

/* ===== Centro do card: stats em destaque (com ícone em linha separada) ===== */
.welcome-hero-stats {
    width: min(560px, 100%);
    margin: 0 auto; /* ✅ centraliza o box no card */
    display: grid;
    /* 2 linhas: ícone em cima, stats embaixo */
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 10px;
    column-gap: 14px;
    padding: 16px 16px;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.16), transparent 55%), rgba(15, 23, 42, 0.35);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

/* frase de chamada */
.welcome-hero-hint {
    width: 100%; /* ✅ garante ocupar a linha toda */
    text-align: center; /* ✅ centraliza o texto */
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.95);
}

/* =========================================================
   PATCH — Overview (somente 2 ajustes do print)
   1) tirar o minHeight inline do section (remove área em branco)
   2) alinhar os 2 cards internos (zerar margin-top do 2º card)
   ========================================================= */

section.dashboard-card.welcome-first-vehicle-card {
    min-height: 0 !important; /* sobrescreve minHeight inline */
    height: auto !important;
    justify-content: flex-start !important;
}

    section.dashboard-card.welcome-first-vehicle-card .dashboard-card + .dashboard-card {
        margin-top: 0 !important; /* anula o .dashboard-card + .dashboard-card global */
    }

/* =========================================================
   AUTH v2 (mobile-first, cara de app)
   Cole este bloco NO FINAL do CSS atual
   ========================================================= */

/* melhora toque e "cara de app" */
:root {
    --tap: rgba(56, 189, 248, 0.14);
}

/* mobile: tela inteira, sem “card flutuante de site” */
.app-shell.auth-shell {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    min-height: 100svh;
}

/* card vira "tela" no mobile */
@media (max-width: 640px) {
    body {
        background: #020617; /* mais “app”, menos “landing” */
    }

    .auth-card {
        width: 100%;
        max-width: none;
        min-height: 100svh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 0;
        background: #020617;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* desktop mantém card centralizado (mas mais clean) */
@media (min-width: 641px) {
    .auth-card {
        border: 1px solid rgba(148, 163, 184, 0.28);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
    }

    .auth-logo-img {
        height: 76px;
    }

    .auth-subtitle {
        font-size: 1.08rem;
    }
}

/* wrapper interno para padding consistente (e safe-area) */
.auth-card-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
}

/* header mais “app bar” */
.auth-header {
    text-align: left;
    margin-bottom: 2px;
}

.auth-logo-row {
    justify-content: flex-start;
    gap: 10px;
}

.auth-logo-img {
    height: 44px;
    width: 44px;
    border-radius: 14px;
}

.auth-logo-text-main {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.auth-logo-text-sub {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    opacity: 0.9;
}

/* subtítulo mais “app” */
.auth-subtitle {
    margin-top: 6px;
    font-size: 0.88rem;
    line-height: 1.35;
}

/* tabs estilo “segmented control” mais robusto */
.auth-tabs {
    margin-top: 6px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.auth-tab {
    padding: 10px 10px;
    font-size: 0.95rem;
    border-radius: 14px;
}

    .auth-tab:active {
        background: rgba(255, 255, 255, 0.06);
    }

.auth-tab--active {
    transform: none; /* sem “pular” */
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* step header + progress bar */
.step-header {
    text-align: left;
    margin: 2px 0 0;
}

.step-counter {
    margin: 0 0 10px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.step-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.20);
    overflow: hidden;
}

.step-progress-bar {
    height: 100%;
    width: var(--step-pct, 0%);
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    border-radius: 999px;
}

/* inputs com tamanho de app (touch target) */
.auth-card .field-label {
    font-size: 0.84rem;
}

.auth-card .field-input {
    font-size: 16px; /* evita zoom no iOS */
    height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(2, 6, 23, 0.9);
}

    .auth-card .field-input:focus {
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
    }

/* botões principais com cara de app */
.auth-card .btn-primary:not(.icon-button) {
    height: 48px;
    min-height: 48px;
    width: 100%;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 34px rgba(14, 165, 233, 0.18);
}

.auth-card .btn-primary:active {
    filter: brightness(0.98);
}

/* helper links viram “chips” */
.helper-links {
    gap: 8px;
}

.link-button {
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.75);
}

    .link-button:active {
        background: rgba(255, 255, 255, 0.06);
    }

/* toggle de senha com área clicável melhor */
.password-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

    .password-toggle:active {
        background: rgba(255, 255, 255, 0.06);
    }

/* “voltar para o site” com cara de link do app */
.back-to-site-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(15, 23, 42, 0.45);
}

    .back-to-site-link:active {
        background: rgba(255, 255, 255, 0.06);
    }

/* =========================================================
   OVERVIEW — BLOCO ÚNICO (LIMPO)
   (Header em banner + Mini-menu inalterado)
   ========================================================= */

.overview-page {
    width: 100%;
}

/* ===== Banner full-width (só afeta o header) ===== */
.overview-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 14px;
}

/* ocupa a largura toda da tela (anula o padding lateral do .dashboard-main) */
.overview-topbar--banner {
    position: relative;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-top: -1rem;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 1rem 12px;
    /* fundo “glass” leve pra não virar faixa preta sólida */
    background: radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.14), transparent 55%), radial-gradient(circle at 110% 85%, rgba(14, 165, 233, 0.10), transparent 55%), rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

/* desktop (padding do main é maior, então anula mais) */
@media (min-width: 901px) {
    .overview-topbar--banner {
        margin-left: -1.75rem;
        margin-right: -1.75rem;
        padding: 16px 1.75rem 14px;
    }
}

/* logo + hello (um pouco menores) */
.overview-brand {
    --ov-logo: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 0px 5px;
}

.overview-logo {
    width: var(--ov-logo);
    height: var(--ov-logo);
    border-radius: 12px;
    display: block;
    flex: 0 0 auto;
}

.overview-hello {
    font-size: 1.08rem;
    font-weight: 900;
    color: #e5e7eb;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* legibilidade sem “faixa sólida” */
    text-shadow: 0 10px 24px rgba(0,0,0,0.35);
    padding: 1px 0px;
    margin-left: -4px;
}

/* bem estreito: reduz de leve */
@media (max-width: 420px) {
    .overview-brand {
        --ov-logo: 32px;
    }

    .overview-hello {
        font-size: 1.02rem;
    }
}

/* =========================================================
   MINI-MENU — mantém o estilo atual (não mexer)
   ========================================================= */

.overview-menu-card {
    padding: 16px;
}

.overview-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 360px) {
    .overview-quick-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 980px) {
    .overview-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1220px) {
    .overview-quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.overview-quick-card {
    cursor: pointer;
    user-select: none;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.30);
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .overview-quick-card:hover {
        border-color: rgba(56, 189, 248, 0.35);
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.10), 0 18px 55px rgba(0, 0, 0, 0.35);
    }

    .overview-quick-card:active {
        filter: brightness(0.98);
    }

.overview-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.30);
    color: #e0f2fe;
}

    .overview-quick-icon i {
        font-size: 1.25rem;
        line-height: 1;
    }

.overview-quick-title {
    font-weight: 900;
    font-size: 0.98rem;
    color: #e5e7eb;
}

.overview-quick-sub {
    font-size: 0.84rem;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.25;
}

.overview-quick-card--disabled {
    opacity: 0.65;
    cursor: default;
}

    .overview-quick-card--disabled:hover {
        box-shadow: none;
        border-color: rgba(148, 163, 184, 0.18);
    }

/* =========================================================
   OVERVIEW — Banner fixo (full width) + card sobrepondo
   (não altera o mini-menu; só posiciona o card por cima)
   Cole NO FINAL do index.css
   ========================================================= */

/* Banner/faixa no topo — “fixo” via sticky (fica sempre no topo ao rolar) */
.overview-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    /* full-bleed (largura da tela inteira mesmo dentro do .dashboard-main) */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* espaço interno alinhando com o padding do dashboard */
    padding: calc(env(safe-area-inset-top, 0px) + 12px) clamp(16px, 3vw, 28px) 26px; /* 👈 “base” do banner para o card invadir sem pegar no texto */
    /* cor diferenciada do banner (ajuste aqui se quiser mais/menos azul) */
    background: radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.22), transparent 55%), linear-gradient(180deg, rgba(8, 30, 48, 0.92), rgba(6, 22, 36, 0.82));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 55px rgba(0,0,0,0.35);
    /* sem cantos arredondados pra parecer “faixa” */
    border-radius: 0;
    /* remove qualquer “faixa preta” antiga */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Logo + Olá menores (só no header) */
.overview-brand {
    --ov-logo: 32px; /* 👈 tamanho do logo no header */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.overview-logo {
    width: var(--ov-logo);
    height: var(--ov-logo);
    border-radius: 12px;
    display: block;
    flex: 0 0 auto;
}

.overview-hello {
    height: var(--ov-logo);
    line-height: var(--ov-logo);
    font-size: calc(var(--ov-logo) * 0.72); /* ~23px */
    font-weight: 900;
    letter-spacing: 0.01em;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* ✅ O truque do “card por cima do banner”
   - não muda tamanho/altura do card
   - só reposiciona para subir e sobrepor
*/
.overview-menu-card {
    position: relative;
    z-index: 60; /* acima do banner */
    margin-top: -18px; /* 👈 quanto ele “entra” no banner (ajuste fino aqui) */
}

/* no celular bem estreito: reduz um tiquinho */
@media (max-width: 420px) {
    .overview-brand {
        --ov-logo: 30px;
    }

    .overview-hello {
        font-size: calc(var(--ov-logo) * 0.70);
    }

    .overview-menu-card {
        margin-top: -16px;
    }
}

/* =========================================================
   OVERVIEW — Header mais destacado (glow + faixa neon + título premium)
   Cole NO FINAL do CSS
   ========================================================= */

.overview-topbar--banner {
    position: sticky;
    top: 0;
    z-index: 50;
    isolation: isolate; /* permite pseudo-elements atrás sem vazar */
    /* um pouco mais “presença” */
    border-top: 1px solid rgba(56, 189, 248, 0.28);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

    /* garante que o conteúdo fique acima dos efeitos */
    .overview-topbar--banner > * {
        position: relative;
        z-index: 2;
    }

    /* “spotlights” e brilho diagonal bem sutil */
    .overview-topbar--banner::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background: radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.38), transparent 56%), radial-gradient(circle at 88% 25%, rgba(14, 165, 233, 0.22), transparent 60%), linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.06) 48%, transparent 62%);
        opacity: 0.95;
    }

    /* faixa “neon” no rodapé do banner */
    .overview-topbar--banner::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        pointer-events: none;
        z-index: 1;
        background: linear-gradient( 90deg, transparent, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.70), transparent );
        box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
    }

/* dá um “halo” elegante no logo sem mudar layout */
.overview-logo {
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* título com gradiente (quando suportado) */
@supports (-webkit-background-clip: text) {
    .overview-hello {
        background: linear-gradient( 180deg, #ffffff 0%, rgba(224, 242, 254, 0.92) 55%, rgba(148, 163, 184, 0.95) 100% );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

/* =========================================================
   PATCH — Overview header (logo nítido + alinhamento vertical)
   + mini-menu fora do header
   Cole NO FINAL do CSS
   ========================================================= */

/* 1) Banner vira “barra” com alinhamento vertical perfeito */
.overview-topbar--banner {
    display: flex;
    align-items: center; /* ✅ centraliza verticalmente o conteúdo */
    justify-content: flex-start;
    /* deixa a altura do banner mais “equilibrada” */
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
    padding-bottom: 14px; /* ✅ reduz “afundamento” visual do conteúdo */
}

/* 2) Linha logo + Olá centralizada e sem puxar por line-height */
.overview-brand {
    display: inline-flex;
    align-items: center; /* ✅ centraliza logo e texto na mesma linha */
    gap: 10px;
    padding: 0; /* remove qualquer offset */
}

/* 3) Remove o “círculo/caixa” ao redor do logo e deixa mais definido */
.overview-logo {
    border-radius: 0 !important; /* ✅ tira sensação de “círculo” */
    box-shadow: none !important; /* ✅ remove halo/anel */
    background: transparent !important;
    /* ✅ deixa o logo mais “nítido” / definido */
    opacity: 1 !important;
    filter: saturate(1.15) contrast(1.10) drop-shadow(0 10px 18px rgba(0,0,0,0.35));
    image-rendering: -webkit-optimize-contrast;
}

/* 4) Texto “Olá, …” sem altura fixa (era o que quebrava o alinhamento) */
.overview-hello {
    height: auto !important;
    line-height: 1.1 !important; /* ✅ evita “subir/descer” */
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

/* 5) Card do mini-menu: DESCE e fica FORA do header (sem sobrepor) */
.overview-menu-card {
    margin-top: 12px !important; /* ✅ empurra pra baixo, fora do banner */
    position: relative;
    z-index: 1; /* normal */
}

/* =========================================================
   PATCH MINIMAL — mais definição no logo (PNG) e no "Olá"
   (sem criar elementos, sem fundo extra, só contraste/sombra)
   ========================================================= */

/* 1) Texto: mais branco + sombra mais “nítida” */
.overview-hello {
    color: #eef5ff !important;
    text-shadow: 0 2px 0 rgba(0,0,0,0.55), 0 10px 24px rgba(0,0,0,0.55);
}

.overview-logo {
    opacity: 1 !important;
    filter: brightness(1.04) drop-shadow(0 1px 0 rgba(0,0,0,0.80)) drop-shadow(0 10px 22px rgba(0,0,0,0.55));
}

.overview-topbar--banner {
    background: linear-gradient(180deg, rgba(4, 16, 26, 0.95), rgba(6, 22, 36, 0.86)), radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.16), transparent 60%);
}

/* =========================================================
   CRUD UI KIT (reutilizável)
   Use as classes .crud-* em TODOS os CRUDs
   ========================================================= */

/* ---------- Topbar (título + subtítulo + botão ícone opcional) ---------- */
.crud-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.crud-topbar-text {
    flex: 1;
    min-width: 0;
}

.crud-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.crud-subtitle {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-muted);
}

/* botão ícone com “cara de app” (p/ +, back, etc.) */
.icon-button--primary {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: var(--text-main);
}

    .icon-button--primary:hover {
        background: rgba(56, 189, 248, 0.22);
    }

    .icon-button--primary:active {
        transform: translateY(1px);
    }

/* ---------- Cabeçalho de seção (ícone + título + meta) ---------- */
.crud-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 8px;
}

.crud-section-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.crud-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crud-section-title {
    font-weight: 800;
}

.crud-section-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---------- Busca / Toolbar ---------- */
.crud-search {
    padding: 0 12px 12px;
}

    .crud-search .field-input {
        width: 100%;
    }

/* ---------- Lista + Row (item clicável) ---------- */
.crud-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 12px 12px;
}

.crud-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    text-align: left;
    cursor: pointer;
}

    .crud-row:hover {
        border-color: rgba(56, 189, 248, 0.28);
        background: rgba(2, 6, 23, 0.62);
    }

    .crud-row:active {
        background: rgba(2, 6, 23, 0.66);
    }

    .crud-row:focus {
        outline: none;
    }

    .crud-row:focus-visible {
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
    }

.crud-row-left {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    flex: 1;
}

.crud-row-text {
    min-width: 0;
    flex: 1;
}

.crud-row-name {
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crud-row-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crud-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.crud-row-chevron {
    opacity: 0.6;
}

/* “dot” reutilizável */
.crud-dot {
    opacity: 0.6;
    padding: 0 6px;
}

/* ---------- Leading (thumb/avatar) ---------- */
/* base comum (serve para thumb de foto e avatar com iniciais) */
.crud-leading {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
    color: var(--text-main);
}

.crud-leading--lg {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

/* thumb com imagem */
.crud-thumb {
    overflow: hidden;
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.crud-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* avatar (iniciais) */
.crud-avatar {
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* ---------- Detalhe (hero + grid) ---------- */
.crud-detail-hero {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.crud-detail-name {
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crud-detail-sub {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.crud-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
}

.crud-kv .k {
    font-size: 11px;
    color: var(--text-muted);
}

.crud-kv .v {
    margin-top: 4px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Ações (cards de ação) ---------- */
.crud-actions {
    padding: 0 12px 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.crud-actions--single {
    grid-template-columns: 1fr;
}

.crud-action {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: var(--text-main);
    text-align: left;
}

    .crud-action:hover {
        border-color: rgba(56, 189, 248, 0.32);
    }

    .crud-action:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

    .crud-action span {
        font-weight: 900;
        display: block;
        line-height: 1.05;
    }

    .crud-action small {
        display: block;
        font-size: 12px;
        color: var(--text-muted);
        margin-top: 3px;
        font-weight: 600;
    }

/* ---------- Empty state ---------- */
.crud-empty {
    padding: 18px 14px 16px;
    text-align: center;
}

.crud-empty-ico {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.crud-empty-title {
    font-weight: 900;
    margin-top: 2px;
}

.crud-empty-sub {
    color: var(--text-muted);
    font-size: 12px;
    margin: 6px auto 12px;
    max-width: 280px;
}

/* ---------- Gate / bloqueio de fluxo (ex: precisa ter veículo) ---------- */
.crud-gate {
    padding: 0 12px 12px;
}

/* Banner: logo à esquerda e menu do usuário à direita */
.overview-topbar--banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Container do menu */
.overview-user {
    position: relative;
}

/* Botão "Olá, ..." com cara de texto */
.overview-hello--menu {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 12px;
}

    .overview-hello--menu:hover {
        background: rgba(56, 189, 248, 0.10);
    }

    .overview-hello--menu:focus-visible {
        outline: 2px solid var(--accent, #38bdf8);
        outline-offset: 2px;
    }

.overview-hello-caret {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Dropdown */
.overview-user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    padding: 6px;
    border-radius: 14px;
    background: var(--bg-elevated, rgba(15, 23, 42, 0.96));
    border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.4));
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    z-index: 50;
}

/* Item do menu */
.overview-user-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border: 0;
    background: transparent;
    color: inherit;
    border-radius: 10px;
    cursor: pointer;
}

    .overview-user-menu-item:hover {
        background: rgba(56, 189, 248, 0.10);
    }

/* remove highlight do navegador em toque/click */
.overview-topbar--banner .overview-brand,
.overview-topbar--banner .overview-hello--menu {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

    /* LOGO: nunca muda fundo/box/outline em nenhum estado */
    .overview-topbar--banner .overview-brand,
    .overview-topbar--banner .overview-brand:hover,
    .overview-topbar--banner .overview-brand:active,
    .overview-topbar--banner .overview-brand:focus,
    .overview-topbar--banner .overview-brand:focus-visible {
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
    }

/* OLÁ (botão do menu): sempre transparente em qualquer estado */
.overview-hello--menu,
.overview-hello--menu:hover,
.overview-hello--menu:active,
.overview-hello--menu:focus,
.overview-hello--menu:focus-visible,
.overview-hello--menu[aria-expanded="true"] {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* evita “efeito botão” do browser */
.overview-hello--menu {
    border: 0 !important;
    appearance: none;
    -webkit-appearance: none;
}



/* ===== OldLink custom ===== */

.auth-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 0.7rem 0.95rem;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.85rem;
}

.auth-logo-img--oldlink {
    height: 44px;
    width: auto;
    max-width: min(240px, 100%);
}

.auth-step-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: -0.1rem;
}

.rule-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.75);
    color: var(--text-muted);
}

.rule-chip--ok {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}

.auth-footnote {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
    text-align: center;
    margin: 0.25rem 0 0;
}

.auth-referral-box {
    padding: 0.75rem 0.85rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
    color: #e0f2fe;
    font-size: 0.84rem;
    line-height: 1.45;
}

.auth-step-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

    .auth-step-actions .btn-primary,
    .auth-step-actions .link-button {
        flex: 1 1 0;
    }

    .auth-step-actions .btn-primary {
        width: auto;
    }

.auth-inline-code {
    letter-spacing: 0.28em;
    font-size: 1rem;
    text-align: center;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.dashboard-stat {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.55);
}

.dashboard-stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.dashboard-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-list-item {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.55);
    padding: 0.95rem 1rem;
}

.dashboard-list-item-title {
    font-weight: 600;
    margin: 0 0 0.15rem;
}

.dashboard-list-item-text {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.45;
}

.dashboard-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 0.75rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #e0f2fe;
    font-size: 0.78rem;
    font-weight: 600;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.dashboard-userbox {
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

    .dashboard-userbox p {
        margin: 0;
        color: #cbd5e1;
        font-size: 0.9rem;
    }

@media (max-width: 640px) {
    .auth-step-actions {
        flex-direction: column;
    }
}

@media (min-width: 641px) {
    .app-shell.auth-shell {
        min-height: calc(100vh - 72px);
        padding: 24px 16px;
        align-items: center;
        justify-content: center;
    }

    .auth-card {
        width: 100%;
        max-width: 460px;
        min-height: auto;
    }

    .auth-card-inner {
        min-height: auto;
        justify-content: center;
    }
}

.auth-logo-img--wide {
    width: auto !important;
    height: 40px !important;
    max-width: 180px;
    border-radius: 0 !important;
    object-fit: contain;
    display: block;
}

@media (max-width: 640px) {
    .dashboard-logo-img,
    .auth-logo-img,
    .auth-logo-img--wide {
        height: 34px !important;
    }
}

/* =========================================================
   OLDLINK HOME
   ========================================================= */

.ol-home-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    padding: 72px 0 56px;
    background: linear-gradient(90deg, rgba(8, 25, 53, 0.88) 0%, rgba(2, 9, 27, 0.82) 45%, rgba(1, 6, 18, 0.88) 100%), url('/img/home-hero-bg.jpg') center center / cover no-repeat;
}

    .ol-home-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(38, 182, 255, 0.12), transparent 28%), radial-gradient(circle at 85% 30%, rgba(30, 144, 255, 0.10), transparent 24%), radial-gradient(circle at 70% 80%, rgba(0, 221, 255, 0.08), transparent 24%);
        pointer-events: none;
    }

.ol-home-hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.ol-home-hero__content {
    max-width: 650px;
}

.ol-home-hero__eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: #6cbfff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ol-home-hero__title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.2rem, 4.2vw, 4.25rem);
    line-height: 1.08;
    font-weight: 800;
}

    .ol-home-hero__title span {
        display: block;
        color: #47bfff;
    }

.ol-home-hero__subtitle {
    margin: 0 0 28px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.7;
}

.ol-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.ol-home-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .ol-home-hero__tags span {
        padding: 10px 14px;
        border: 1px solid rgba(112, 170, 255, 0.22);
        background: rgba(255, 255, 255, 0.05);
        color: #dcecff;
        border-radius: 999px;
        font-size: 0.9rem;
        backdrop-filter: blur(8px);
    }

.ol-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
    border: 1px solid transparent;
}

    .ol-btn:hover {
        transform: translateY(-1px);
        text-decoration: none;
    }

.ol-btn--primary {
    background: linear-gradient(90deg, #2ec8ff 0%, #1da1f2 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(30, 161, 242, 0.22);
}

.ol-btn--outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(90, 170, 255, 0.28);
    color: #d7ecff;
}

.ol-home-hero__visual {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ol-hero-card {
    border-radius: 28px;
    border: 1px solid rgba(107, 165, 255, 0.18);
    background: linear-gradient(180deg, rgba(10, 22, 48, 0.92) 0%, rgba(7, 18, 40, 0.95) 100%);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.ol-hero-card--main {
    width: min(100%, 460px);
    padding: 28px;
}

.ol-hero-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

    .ol-hero-card__header small {
        display: block;
        color: #8fbce8;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        margin-bottom: 6px;
    }

    .ol-hero-card__header h3 {
        margin: 0;
        color: #fff;
        font-size: 1.45rem;
        font-weight: 700;
    }

.ol-status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #39d98a;
    box-shadow: 0 0 0 8px rgba(57, 217, 138, 0.12);
}

.ol-hero-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.ol-hero-metric {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(127, 180, 255, 0.10);
}

    .ol-hero-metric span {
        display: block;
        color: #8eb5d9;
        font-size: 0.88rem;
        margin-bottom: 6px;
    }

    .ol-hero-metric strong {
        color: #fff;
        font-size: 1.4rem;
        font-weight: 800;
    }

.ol-hero-progress__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #d9edff;
    font-size: 0.95rem;
}

    .ol-hero-progress__label strong {
        color: #47bfff;
    }

.ol-hero-progress__bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

    .ol-hero-progress__bar span {
        display: block;
        width: 87%;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #29c7ff 0%, #1e90ff 100%);
    }

.ol-hero-floating {
    position: absolute;
    width: 220px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(8, 21, 45, 0.88);
    border: 1px solid rgba(105, 162, 255, 0.15);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

    .ol-hero-floating strong {
        display: block;
        color: #ffffff;
        margin-bottom: 6px;
        font-size: 0.98rem;
    }

    .ol-hero-floating span {
        color: #a9cae8;
        font-size: 0.88rem;
        line-height: 1.45;
    }

.ol-hero-floating--one {
    top: 40px;
    right: -8px;
}

.ol-hero-floating--two {
    bottom: 42px;
    left: -12px;
}

/* Highlights */

.ol-home-highlights {
    padding: 72px 0 88px;
    background: linear-gradient(180deg, #071227 0%, #081a35 100%);
}

.ol-section-header {
    max-width: 740px;
    margin: 0 auto 36px;
    text-align: center;
}

.ol-section-header__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #69c7ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ol-section-header h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    line-height: 1.18;
}

.ol-section-header p {
    margin: 0;
    color: rgba(230, 241, 255, 0.78);
    font-size: 1rem;
    line-height: 1.7;
}

.ol-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ol-highlight-card {
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(11, 25, 52, 0.95) 0%, rgba(8, 19, 41, 0.95) 100%);
    border: 1px solid rgba(104, 162, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.ol-highlight-card__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 16px;
    background: rgba(44, 189, 255, 0.12);
    font-size: 1.4rem;
}

.ol-highlight-card h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.2rem;
}

.ol-highlight-card p {
    margin: 0;
    color: rgba(225, 238, 255, 0.76);
    line-height: 1.7;
}

/* Responsive */

@media (max-width: 1100px) {
    .ol-home-hero__container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ol-home-hero__content {
        max-width: 100%;
        text-align: center;
    }

    .ol-home-hero__actions,
    .ol-home-hero__tags {
        justify-content: center;
    }

    .ol-home-hero__visual {
        min-height: auto;
    }

    .ol-hero-floating--one {
        top: 10px;
        right: 10px;
    }

    .ol-hero-floating--two {
        bottom: 10px;
        left: 10px;
    }

    .ol-highlight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ol-home-hero {
        min-height: auto;
        padding: 44px 0 40px;
    }

    .ol-home-hero__title {
        font-size: 2.25rem;
    }

    .ol-hero-card--main {
        padding: 22px;
    }

    .ol-hero-metric-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ol-hero-floating {
        position: static;
        width: 100%;
        margin-top: 14px;
    }

    .ol-home-hero__visual {
        display: block;
    }
}

@media (max-width: 540px) {
    .ol-home-hero__actions {
        flex-direction: column;
    }

    .ol-btn {
        width: 100%;
    }

    .ol-hero-metric-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   HOME / LANDING
   ========================================================= */

.home-page {
    overflow-x: hidden;
}

    .home-page footer {
        display: none;
    }

    .home-page main,
    .home-page .container,
    .home-page .container-fluid {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

.landing-hero {
    position: relative;
    min-height: 100svh;
    width: 100%;
    background-image: url('/img/home-hero-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    overflow: hidden;
}

.landing-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 8, 24, 0.14) 0%, rgba(2, 8, 24, 0.20) 42%, rgba(2, 8, 24, 0.38) 100%);
    z-index: 1;
}

.landing-stack {
    position: relative;
    z-index: 2;
    width: min(100%, 1120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: translateY(-10px);
}

.landing-card {
    width: 100%;
    max-width: 560px;
    padding: 26px 20px 22px;
    border-radius: 28px;
    background: rgba(7, 18, 41, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.landing-card__logo {
    width: auto;
    height: 64px;
    margin-bottom: 8px;
    display: block;
    object-fit: contain;
}

.landing-card__title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.landing-card__actions {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.home-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

    .home-btn:hover {
        text-decoration: none;
        transform: translateY(-1px);
        filter: brightness(1.04);
    }

.home-btn--primary {
    color: #ffffff;
    background: linear-gradient(90deg, #35c5ff 0%, #1ea7ff 100%);
    box-shadow: 0 12px 30px rgba(30, 167, 255, 0.22);
}

.home-btn--secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.landing-stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.landing-stat-card {
    position: relative;
    padding: 16px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(7, 18, 41, 0.44) 0%, rgba(5, 14, 33, 0.34) 100%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    .landing-stat-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    }

.landing-stat-card__glow {
    position: absolute;
    width: 120px;
    height: 120px;
    right: -30px;
    top: -34px;
    border-radius: 999px;
    filter: blur(36px);
    opacity: 0.22;
    pointer-events: none;
}

.landing-stat-card--contracts .landing-stat-card__glow {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.95) 0%, rgba(56, 189, 248, 0) 70%);
}

.landing-stat-card--running .landing-stat-card__glow {
    background: radial-gradient(circle, rgba(34, 211, 238, 0.95) 0%, rgba(34, 211, 238, 0) 70%);
}

.landing-stat-card--happy .landing-stat-card__glow {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.95) 0%, rgba(96, 165, 250, 0) 70%);
}

.landing-stat-card__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.landing-stat-card__icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    margin: 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.landing-stat-card--contracts .landing-stat-card__icon {
    color: #86e4ff;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.20) 0%, rgba(14, 165, 233, 0.10) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.landing-stat-card--running .landing-stat-card__icon {
    color: #7df9ff;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.20) 0%, rgba(6, 182, 212, 0.10) 100%);
    border: 1px solid rgba(34, 211, 238, 0.35);
}

.landing-stat-card--happy .landing-stat-card__icon {
    color: #9ec5ff;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.20) 0%, rgba(59, 130, 246, 0.10) 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
}

.landing-stat-card__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    text-align: left;
}

.landing-stat-card__value {
    margin: 0 0 4px;
    font-size: 2.15rem;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.landing-stat-card__label {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.28;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: lowercase;
}

@media (min-width: 768px) {
    .landing-stack {
        gap: 18px;
        transform: translateY(-34px);
    }

    .landing-card {
        max-width: 680px;
        padding: 32px 30px 26px;
    }

    .landing-card__logo {
        height: 82px;
        margin-bottom: 4px;
    }

    .landing-card__title {
        font-size: 4rem;
        white-space: nowrap;
        margin-bottom: 22px;
    }

    .landing-card__actions {
        max-width: none;
        flex-direction: row;
        justify-content: center;
        gap: 14px;
    }

    .home-btn {
        width: 180px;
        min-height: 52px;
    }

    .landing-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .landing-stat-card {
        min-height: 190px;
        padding: 24px 20px 22px;
    }

        .landing-stat-card:hover {
            transform: translateY(-4px);
            border-color: rgba(255, 255, 255, 0.16);
            box-shadow: 0 20px 46px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

    .landing-stat-card__top {
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        text-align: center;
    }

    .landing-stat-card__icon {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
        border-radius: 20px;
        font-size: 1.6rem;
    }

    .landing-stat-card__text {
        align-items: center;
        text-align: center;
    }

    .landing-stat-card__value {
        margin-bottom: 8px;
        font-size: 2.65rem;
    }

    .landing-stat-card__label {
        font-size: 1.08rem;
        line-height: 1.35;
    }
}

@media (min-width: 1200px) {
    .landing-stack {
        transform: translateY(-56px);
    }

    .landing-card {
        max-width: 720px;
        padding: 34px 34px 28px;
    }

    .landing-card__title {
        font-size: 4.35rem;
    }

    .landing-stat-card {
        min-height: 198px;
    }

    .landing-stat-card__value {
        font-size: 2.8rem;
    }

    .landing-stat-card__label {
        font-size: 1.1rem;
    }
}

/* ===== FIX FINAL DO LOGIN ===== */
.auth-card .auth-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 0px !important;
}

.auth-card .auth-logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    text-decoration: none !important;
}

.auth-card .auth-logo-img,
.auth-card .auth-logo-img--wide {
    display: block !important;
    width: auto !important;
    height: 72px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
}

.auth-card .auth-subtitle {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 1.08rem !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

@media (min-width: 768px) {
    .auth-card .auth-logo-img,
    .auth-card .auth-logo-img--wide {
        height: 88px !important;
    }

    .auth-card .auth-subtitle {
        font-size: 1.16rem !important;
    }
}

/* ===== Sidebar profile / menu upgrade ===== */

.dashboard-logo-row--profile {
    align-items: center;
    gap: 0.9rem;
    padding: 0.15rem 0 0.1rem;
}

.dashboard-profile-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.dashboard-logo-img {
    height: 52px !important;
    width: auto !important;
    border-radius: 16px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.dashboard-logo-text-sub {
    font-size: 0.86rem;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.05;
}

.dashboard-logo-text-main {
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-nav-link {
    gap: 0.72rem;
    padding: 0.68rem 0.9rem;
    font-size: 0.95rem;
}

.dashboard-nav-link-icon {
    width: 1.35rem;
    min-width: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
    color: #7dd3fc;
}

.dashboard-nav-link-label {
    font-weight: 600;
}

@media (max-width: 767px) {
    .dashboard-logo-img {
        height: 48px !important;
        border-radius: 15px;
    }

    .dashboard-logo-text-sub {
        font-size: 0.82rem;
    }

    .dashboard-logo-text-main {
        font-size: 1.08rem;
    }

    .dashboard-nav-link {
        gap: 0.65rem;
        padding: 0.64rem 0.82rem;
    }

    .dashboard-nav-link-icon {
        font-size: 0.98rem;
    }
}

/* ===== Investor dashboard - 2 cards ===== */

.investor-overview-stack {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.investor-feature-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.14);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 38%), linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.investor-feature-card__glow {
    position: absolute;
    inset: auto -60px -60px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 70%);
    pointer-events: none;
}

.investor-feature-card__top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.2rem 0.35rem;
}

.investor-feature-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.10));
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    flex: 0 0 auto;
}

    .investor-feature-card__icon i {
        font-size: 1.35rem;
        line-height: 1;
    }

.investor-feature-card__eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.investor-feature-card__body {
    padding: 0.2rem 1.2rem 1.25rem;
}

.investor-feature-card__value {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #f8fafc;
    margin-top: 0.1rem;
}

.investor-feature-card__title {
    margin-top: 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #e2e8f0;
}

.investor-feature-card__text {
    margin: 0.55rem 0 0;
    max-width: 560px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #94a3b8;
}

.investor-feature-card__linkbox {
    margin-top: 0.95rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    background: rgba(2, 6, 23, 0.72);
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-all;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.investor-feature-card__actions {
    margin-top: 0.95rem;
    display: flex;
    justify-content: flex-start;
}

.investor-feature-card__copy-btn {
    width: auto !important;
    min-width: 180px;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    border-radius: 14px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    box-shadow: 0 14px 34px rgba(14, 165, 233, 0.18);
}

    .investor-feature-card__copy-btn i {
        font-size: 0.95rem;
    }

@media (max-width: 767px) {
    .investor-overview-stack {
        max-width: none;
        gap: 0.95rem;
    }

    .investor-feature-card__top {
        padding: 1rem 1rem 0.3rem;
    }

    .investor-feature-card__body {
        padding: 0.15rem 1rem 1rem;
    }

    .investor-feature-card__icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

        .investor-feature-card__icon i {
            font-size: 1.2rem;
        }

    .investor-feature-card__value {
        font-size: 2.25rem;
    }

    .investor-feature-card__title {
        font-size: 1rem;
    }

    .investor-feature-card__text,
    .investor-feature-card__linkbox {
        font-size: 0.88rem;
    }

    .investor-feature-card__copy-btn {
        width: 100% !important;
        min-width: 0;
    }
}

/* ===== Layout final do dashboard ===== */

.dashboard-main-content {
    width: 100%;
    min-width: 0;
}

.dashboard-main-content--wide {
    width: 100%;
    max-width: none;
}

.dashboard-logo-row--profile {
    align-items: center;
    gap: 0.9rem;
    padding: 0.15rem 0 0.1rem;
}

.dashboard-profile-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.dashboard-logo-img {
    height: 52px !important;
    width: auto !important;
    border-radius: 16px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.dashboard-logo-text-sub {
    font-size: 0.86rem;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.05;
}

.dashboard-logo-text-main {
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-nav-link {
    gap: 0.72rem;
    padding: 0.68rem 0.9rem;
    font-size: 0.95rem;
}

.dashboard-nav-link-icon {
    width: 1.35rem;
    min-width: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
    color: #7dd3fc;
}

.dashboard-nav-link-label {
    font-weight: 600;
}

@media (max-width: 767px) {
    .dashboard-logo-img {
        height: 48px !important;
        border-radius: 15px;
    }

    .dashboard-logo-text-sub {
        font-size: 0.82rem;
    }

    .dashboard-logo-text-main {
        font-size: 1.08rem;
    }

    .dashboard-nav-link {
        gap: 0.65rem;
        padding: 0.64rem 0.82rem;
    }

    .dashboard-nav-link-icon {
        font-size: 0.98rem;
    }
}

/* ===== FORÇA FINAL - menu mobile only ===== */
.drawer-toggle-btn {
    display: none !important;
}

@media (max-width: 767px) {
    .drawer-toggle-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 0.4rem;
    }
}

/* ===== DASHBOARD INVESTOR - largura total ===== */
.dashboard-main-content,
.dashboard-main-content--wide,
.investor-dashboard-shell,
.investor-dashboard-grid {
    width: 100% !important;
    max-width: none !important;
}

.investor-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.investor-dashboard-card {
    width: 100%;
    max-width: none;
}

/* ===== COPY TOAST ===== */
.copy-toast {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    background: rgba(7, 19, 43, 0.96);
    color: #ffffff;
    border: 1px solid rgba(71, 196, 255, 0.22);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

    .copy-toast i {
        color: #39d98a;
        font-size: 1rem;
    }

    .copy-toast.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.referral-copy-box__button.is-copied {
    background: linear-gradient(90deg, #1bc68b 0%, #14b57c 100%);
    box-shadow: 0 16px 30px rgba(26, 182, 124, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

@media (max-width: 767px) {
    .copy-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        justify-content: center;
    }
}

/* =========================================================
   INVESTOR DASHBOARD — cards principais
   Cole NO FINAL do site.css
   ========================================================= */

.investor-dashboard-shell {
    width: 100%;
    max-width: none;
}

.investor-dashboard-grid {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.investor-dashboard-card {
    position: relative;
    width: 100%;
    border-radius: 22px;
    padding: 1.35rem 1.35rem 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.14);
    background: radial-gradient(circle at 88% 78%, rgba(56, 189, 248, 0.14), transparent 18%), linear-gradient(135deg, rgba(28, 63, 100, 0.34) 0%, rgba(5, 16, 45, 0.96) 58%, rgba(2, 7, 24, 1) 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.investor-dashboard-card__top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.95rem;
}

.investor-dashboard-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.10));
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
    flex: 0 0 auto;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

    .investor-dashboard-card__icon i {
        font-size: 1.15rem;
        line-height: 1;
    }

.investor-dashboard-card__eyebrow {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6fd5ff;
}

.investor-dashboard-card__number {
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #f8fafc;
    margin-bottom: 0.4rem;
}

.investor-dashboard-card__title {
    font-size: 1.4rem;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.65rem;
}

.investor-dashboard-card__title--link {
    font-size: 1.32rem;
}

.investor-dashboard-card__text {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    color: rgba(218, 234, 255, 0.80);
}

.referral-copy-box {
    margin-top: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.referral-copy-box__input {
    width: 100%;
    min-height: 50px;
    border-radius: 15px;
    border: 1px solid rgba(49, 136, 222, 0.20);
    background: rgba(2, 10, 30, 0.82);
    color: #ffffff;
    padding: 0.9rem 1rem;
    outline: none;
    font-size: 0.96rem;
    box-shadow: inset 0 0 0 1px rgba(32, 80, 150, 0.06);
}

.referral-copy-box__button {
    align-self: flex-start;
    min-width: 176px;
    min-height: 48px;
    border: none;
    border-radius: 15px;
    padding: 0 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(90deg, #42b8f5 0%, #2ea8e8 100%);
    box-shadow: 0 14px 28px rgba(39, 169, 240, 0.20), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

    .referral-copy-box__button:hover {
        transform: translateY(-1px);
        filter: brightness(1.04);
    }

    .referral-copy-box__button:active {
        transform: translateY(0);
    }

    .referral-copy-box__button.is-copied {
        background: linear-gradient(90deg, #1bc68b 0%, #14b57c 100%);
        box-shadow: 0 14px 28px rgba(26, 182, 124, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    }

.copy-toast {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.92rem 1.08rem;
    border-radius: 16px;
    background: rgba(7, 19, 43, 0.96);
    color: #ffffff;
    border: 1px solid rgba(71, 196, 255, 0.22);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

    .copy-toast i {
        color: #39d98a;
        font-size: 1rem;
    }

    .copy-toast.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

@media (max-width: 767px) {
    .investor-dashboard-card {
        border-radius: 19px;
        padding: 1.05rem 1rem 1.12rem;
    }

    .investor-dashboard-card__top {
        gap: 0.8rem;
        margin-bottom: 0.85rem;
    }

    .investor-dashboard-card__icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

        .investor-dashboard-card__icon i {
            font-size: 1.05rem;
        }

    .investor-dashboard-card__eyebrow {
        font-size: 0.78rem;
    }

    .investor-dashboard-card__number {
        font-size: 2.45rem;
    }

    .investor-dashboard-card__title {
        font-size: 1.18rem;
    }

    .investor-dashboard-card__title--link {
        font-size: 1.14rem;
    }

    .investor-dashboard-card__text,
    .referral-copy-box__input {
        font-size: 0.9rem;
    }

    .referral-copy-box__button {
        width: 100%;
        align-self: stretch;
    }

    .copy-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        justify-content: center;
    }
}

/* ===== Contract Simulator ===== */

.contract-sim-grid {
    display: grid;
    grid-template-columns: minmax(340px, 520px) minmax(360px, 1fr);
    gap: 1.25rem;
    align-items: start;
    width: 100%;
}

.contract-sim-card {
    border-radius: 22px;
    padding: 1.25rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 38%), linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
    border: 1px solid rgba(56, 189, 248, 0.14);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.contract-sim-card__header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.contract-sim-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.10));
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

    .contract-sim-card__icon i {
        font-size: 1.2rem;
    }

.contract-sim-card__eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6fd5ff;
}

.contract-sim-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
}

.contract-sim-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contract-sim-help {
    margin-top: 0.15rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(218, 234, 255, 0.72);
}

.contract-sim-empty {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: center;
    color: rgba(218, 234, 255, 0.72);
}

    .contract-sim-empty i {
        font-size: 2rem;
        color: #6fd5ff;
    }

.contract-sim-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.contract-sim-stat {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.contract-sim-stat__label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.contract-sim-stat__value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.contract-sim-highlight {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.contract-sim-highlight__item {
    padding: 1.1rem 1.1rem;
    border-radius: 18px;
    background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 45%), rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(56, 189, 248, 0.18);
}

.contract-sim-highlight__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.contract-sim-highlight__value {
    display: block;
    font-size: 1.65rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
}

.contract-sim-highlight__value--profit {
    color: #86efac;
}

@media (max-width: 980px) {
    .contract-sim-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contract-sim-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .contract-sim-stats {
        grid-template-columns: 1fr;
    }

    .contract-sim-highlight__value {
        font-size: 1.35rem;
    }
}

/* ===== Admin quick card - simulador ===== */

.admin-quick-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 420px);
    gap: 1rem;
}

.admin-quick-card {
    text-decoration: none;
    color: inherit;
    position: relative;
    display: block;
    border-radius: 22px;
    padding: 1.35rem 1.35rem 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.14);
    background: radial-gradient(circle at 88% 78%, rgba(56, 189, 248, 0.14), transparent 18%), linear-gradient(135deg, rgba(28, 63, 100, 0.34) 0%, rgba(5, 16, 45, 0.96) 58%, rgba(2, 7, 24, 1) 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .admin-quick-card:hover {
        transform: translateY(0px);
        border-color: rgba(56, 189, 248, 0.28);
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(56, 189, 248, 0.10) inset;
    }

.admin-quick-card__top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.95rem;
}

.admin-quick-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.10));
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
    flex: 0 0 auto;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

    .admin-quick-card__icon i {
        font-size: 1.15rem;
        line-height: 1;
    }

.admin-quick-card__eyebrow {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6fd5ff;
}

.admin-quick-card__title {
    font-size: 1.32rem;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.admin-quick-card__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(218, 234, 255, 0.80);
}

.admin-quick-card__footer {
    margin-top: 1rem;
}

.admin-quick-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.93rem;
    font-weight: 800;
    color: #7dd3fc;
}

@media (max-width: 767px) {
    .admin-quick-grid {
        grid-template-columns: 1fr;
    }

    .admin-quick-card {
        border-radius: 19px;
        padding: 1.05rem 1rem 1.12rem;
    }

    .admin-quick-card__title {
        font-size: 1.18rem;
    }

    .admin-quick-card__text {
        font-size: 0.9rem;
    }
}

/* ===== Contract Simulator - advanced v1 ===== */

.field--third {
    flex: 1 1 0;
    min-width: 0;
}

.contract-sim-warning {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.22);
    color: #fde68a;
    font-size: 0.92rem;
    line-height: 1.5;
}

.contract-sim-section-title {
    margin-top: 1.2rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.contract-sim-table-wrap {
    margin-top: 0.4rem;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.contract-sim-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

    .contract-sim-table thead th {
        padding: 0.95rem 1rem;
        text-align: left;
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #94a3b8;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    .contract-sim-table tbody td {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        color: #f8fafc;
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    }

    .contract-sim-table tbody tr:last-child td {
        border-bottom: none;
    }

    .contract-sim-table tbody tr:hover td {
        background: rgba(255, 255, 255, 0.025);
    }

@media (max-width: 980px) {
    .field--third {
        flex: 1 1 100%;
    }
}

.field-input::placeholder {
    color: rgba(203, 213, 225, 0.45);
}

.row-actions {
    position: relative;
    display: inline-block;
}

    .row-actions summary {
        list-style: none;
    }

        .row-actions summary::-webkit-details-marker {
            display: none;
        }

.row-actions__button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(80, 170, 255, 0.22);
    background: rgba(18, 31, 63, 0.9);
    color: #d8ecff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s ease;
}

    .row-actions__button:hover {
        border-color: rgba(80, 170, 255, 0.5);
        box-shadow: 0 0 0 1px rgba(80, 170, 255, 0.12), 0 10px 25px rgba(0,0,0,.18);
    }

.row-actions__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    border-radius: 14px;
    border: 1px solid rgba(80, 170, 255, 0.16);
    background: linear-gradient(180deg, rgba(15,28,58,.98), rgba(8,17,37,.98));
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    padding: 8px;
    z-index: 50;
}

.row-actions__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #e7f3ff;
    text-decoration: none;
    transition: .2s ease;
}

    .row-actions__item:hover {
        background: rgba(61, 177, 255, 0.12);
        color: #ffffff;
    }

    .row-actions__item i {
        width: 16px;
        text-align: center;
        color: #63c8ff;
    }

.contract-readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.readonly-field {
    border: 1px solid rgba(80, 170, 255, 0.12);
    background: rgba(18, 31, 63, 0.75);
    border-radius: 16px;
    padding: 14px 16px;
}

.readonly-field__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #83bde6;
    margin-bottom: 8px;
}

.readonly-field__value {
    font-size: 16px;
    font-weight: 700;
    color: #f4fbff;
    word-break: break-word;
}

.contract-client-grid {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contract-client-card {
    border-radius: 22px;
}

.contract-client-card--summary {
    margin-top: 0;
}

.contract-client-card__header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.contract-client-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.10));
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

    .contract-client-card__icon i {
        font-size: 1.2rem;
    }

.contract-client-card__eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6fd5ff;
}

.contract-client-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.timeline-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    align-items: center;
}

.timeline-card__ring-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-card__ring {
    --progress: 0%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(#63c8ff var(--progress), rgba(255,255,255,0.08) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 36px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(255,255,255,0.03);
}

.timeline-card__ring-inner {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(15, 28, 58, 0.98), rgba(8, 17, 37, 0.98));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
}

.timeline-card__ring-value {
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.timeline-card__ring-label {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #97b6d3;
}

.timeline-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.timeline-card__stat {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.timeline-card__stat-label {
    display: block;
    font-size: 0.76rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.timeline-card__stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.balance-chart-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.balance-chart-card__pill {
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.balance-chart-card__pill-label {
    display: block;
    font-size: 0.72rem;
    color: #8aa7c1;
    margin-bottom: 0.2rem;
}

.balance-chart-card__pill-value {
    display: block;
    font-size: 0.96rem;
    font-weight: 700;
    color: #f8fafc;
}

.balance-chart-card__canvas-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.balance-chart-card__svg {
    width: 100%;
    height: 320px;
    display: block;
}

.balance-chart-card__legend {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.balance-chart-card__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: #e6f4ff;
}

.balance-chart-card__legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #63c8ff;
    box-shadow: 0 0 0 4px rgba(99, 200, 255, 0.12);
}

.balance-chart-card__legend-note {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #89a8c4;
}

.chart-grid-line {
    stroke: rgba(148, 163, 184, 0.18);
    stroke-width: 1;
}

.chart-axis-line {
    stroke: rgba(148, 163, 184, 0.28);
    stroke-width: 1;
}

.chart-axis-label {
    fill: #89a8c4;
    font-size: 11px;
    font-weight: 500;
}

.chart-last-value {
    fill: #dff3ff;
    font-size: 11px;
    font-weight: 700;
}

.contract-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.contract-summary-item {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.contract-summary-item__label {
    display: block;
    font-size: 0.76rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.contract-summary-item__value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.45;
}

.contract-summary-item__value--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

@media (max-width: 1100px) {
    .contract-client-grid {
        grid-template-columns: 1fr;
    }

    .timeline-card {
        grid-template-columns: 1fr;
    }

    .timeline-card__ring-wrap {
        justify-content: flex-start;
    }

    .contract-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .timeline-card__stats,
    .contract-summary-grid {
        grid-template-columns: 1fr;
    }

    .timeline-card__ring {
        width: 160px;
        height: 160px;
    }

    .timeline-card__ring-inner {
        width: 118px;
        height: 118px;
    }

    .balance-chart-card__svg {
        height: 280px;
    }
}

/* =========================================================
   PATCH — Layout logado sem sidebar
   Header full width + botão voltar
   Cole NO FINAL do site.css
   ========================================================= */

.dashboard-shell,
.dashboard-sidebar,
.drawer-toggle-btn,
.drawer-backdrop {
    display: none !important;
}

/* app logado */
.dashboard-app {
    min-height: 100vh;
    background: radial-gradient(circle at 0% -20%, rgba(56, 189, 248, 0.18), transparent 55%), radial-gradient(circle at 100% 120%, rgba(14, 165, 233, 0.16), transparent 55%), #020617;
    color: #e5e7eb;
}

/* header global */
.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.18), transparent 56%), radial-gradient(circle at 88% 25%, rgba(14, 165, 233, 0.10), transparent 60%), rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
}

.dashboard-topbar__inner {
    min-height: 74px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-topbar__left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.dashboard-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

    .dashboard-topbar__brand:hover {
        color: inherit;
        text-decoration: none;
    }

.dashboard-topbar__logo {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
    filter: saturate(1.12) contrast(1.08) drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

.dashboard-topbar__profile {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-topbar__hello-label {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.05;
}

.dashboard-topbar__hello-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-back-button {
    height: 38px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .dashboard-back-button:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(56, 189, 248, 0.34);
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08);
    }

.dashboard-topbar__logout-form {
    margin: 0;
    flex: 0 0 auto;
}

.dashboard-topbar__logout-button {
    height: 38px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.42);
    background: rgba(255, 255, 255, 0.03);
    color: #fecaca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .dashboard-topbar__logout-button:hover {
        background: rgba(239, 68, 68, 0.10);
        border-color: rgba(239, 68, 68, 0.65);
        color: #fee2e2;
    }

/* área principal */
.dashboard-main {
    width: 100%;
    padding: 1.35rem 1rem 2rem !important;
}

.dashboard-main-content {
    width: 100%;
    max-width: 100%;
}

.dashboard-main-content--wide {
    width: 100%;
    max-width: 100%;
}

/* header das páginas internas */
.dashboard-main-header {
    margin-bottom: 1.25rem;
}

.dashboard-main-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
}

.dashboard-main-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #9ca3af;
}

/* desktop */
@media (min-width: 901px) {
    .dashboard-topbar__inner {
        padding: 0 1.75rem;
    }

    .dashboard-main {
        padding: 1.75rem 1.75rem 2rem !important;
    }
}

/* mobile */
@media (max-width: 767px) {
    .dashboard-topbar__inner {
        min-height: 68px;
        padding: max(10px, env(safe-area-inset-top, 0px)) 1rem 10px;
        align-items: center;
    }

    .dashboard-topbar__left {
        gap: 0.65rem;
        min-width: 0;
    }

    .dashboard-topbar__logo {
        width: 36px;
        height: 36px;
    }

    .dashboard-topbar__hello-name {
        font-size: 0.98rem;
    }

    .dashboard-back-button,
    .dashboard-topbar__logout-button {
        height: 36px;
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.85rem;
    }

    .dashboard-main {
        padding-top: 1rem !important;
    }

    .dashboard-main-header {
        padding-right: 0 !important;
        margin-top: 0;
    }
}

/* mobile bem estreito */
@media (max-width: 520px) {
    .dashboard-topbar__inner {
        gap: 0.75rem;
    }

    .dashboard-topbar__logout-button span,
    .dashboard-back-button span {
        display: none;
    }

    .dashboard-back-button,
    .dashboard-topbar__logout-button {
        width: 38px;
        min-width: 38px;
        padding: 0;
    }
}

/* =========================================================
   PATCH — Header logado mais destacado
   Menu do usuário com logout
   Botão voltar na extremidade direita
   Cole NO FINAL do site.css
   ========================================================= */

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    width: 100%;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.18), transparent 52%), radial-gradient(circle at 92% 35%, rgba(14, 165, 233, 0.12), transparent 58%), rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
}

.dashboard-topbar__inner {
    min-height: 92px;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-topbar__left,
.dashboard-topbar__right {
    display: flex;
    align-items: center;
}

.dashboard-topbar__right {
    margin-left: auto;
}

.dashboard-user-menu {
    position: relative;
}

.dashboard-user-menu__trigger {
    min-height: 64px;
    padding: 10px 14px 10px 10px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/*    .dashboard-user-menu__trigger:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(56, 189, 248, 0.34);
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.10);
    }*/

/*.dashboard-user-menu.is-open .dashboard-user-menu__trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.14);
}*/

.dashboard-topbar__logo {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
    filter: saturate(1.12) contrast(1.08) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.dashboard-topbar__profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    min-width: 0;
}

.dashboard-topbar__hello-label {
    font-size: 0.84rem;
    color: #9ca3af;
}

.dashboard-topbar__hello-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-user-menu__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    font-size: 0.82rem;
    margin-left: 0.2rem;
}

.dashboard-user-menu__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 260px;
    padding: 0.55rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 55%), rgba(2, 6, 23, 0.98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    display: none;
}

.dashboard-user-menu.is-open .dashboard-user-menu__dropdown {
    display: block;
}

.dashboard-user-menu__dropdown-header {
    padding: 0.7rem 0.8rem 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 0.35rem;
}

.dashboard-user-menu__dropdown-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f8fafc;
}

.dashboard-user-menu__dropdown-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

.dashboard-user-menu__form {
    margin: 0;
}

.dashboard-user-menu__item {
    width: 100%;
    min-height: 46px;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

    .dashboard-user-menu__item:hover {
        background: rgba(255, 255, 255, 0.06);
    }

.dashboard-user-menu__item--danger {
    color: #fecaca;
}

    .dashboard-user-menu__item--danger:hover {
        background: rgba(239, 68, 68, 0.10);
        color: #fee2e2;
    }

.dashboard-back-button {
    height: 50px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

    .dashboard-back-button:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(56, 189, 248, 0.34);
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08);
    }

.dashboard-main {
    width: 100%;
    padding: 1.75rem 1rem 2rem !important;
}

@media (min-width: 901px) {
    .dashboard-topbar__inner {
        padding: 0 1.75rem;
    }

    .dashboard-main {
        padding: 2rem 1.75rem 2rem !important;
    }
}

@media (max-width: 767px) {
    .dashboard-topbar__inner {
        min-height: 84px;
        padding: max(10px, env(safe-area-inset-top, 0px)) 1rem 10px;
        gap: 0.75rem;
    }

    .dashboard-user-menu__trigger {
        min-height: 56px;
        padding: 8px 12px 8px 8px;
        gap: 0.65rem;
        border-radius: 16px;
    }

    .dashboard-topbar__logo {
        width: 42px;
        height: 42px;
    }

    .dashboard-topbar__hello-label {
        font-size: 0.78rem;
    }

    .dashboard-topbar__hello-name {
        font-size: 1.08rem;
    }

    .dashboard-back-button {
        height: 44px;
        min-height: 44px;
        padding: 0 14px;
        font-size: 0.92rem;
    }

    .dashboard-user-menu__dropdown {
        left: 0;
        right: auto;
        min-width: 235px;
    }
}

@media (max-width: 520px) {
    .dashboard-topbar__inner {
        align-items: center;
    }

    .dashboard-user-menu__trigger {
        min-height: 52px;
        padding-right: 10px;
    }

    .dashboard-topbar__hello-name {
        font-size: 1rem;
    }

    .dashboard-topbar__hello-label {
        font-size: 0.74rem;
    }

    .dashboard-back-button span {
        display: none;
    }

    .dashboard-back-button {
        width: 44px;
        min-width: 44px;
        padding: 0;
    }

    .dashboard-user-menu__dropdown {
        min-width: 220px;
    }
}

/* =========================================================
   PATCH — Header mais limpo
   Logo e saudação sem card
   Voltar como ícone puro à direita
   ========================================================= */

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    width: 100%;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.16), transparent 52%), radial-gradient(circle at 92% 35%, rgba(14, 165, 233, 0.10), transparent 58%), rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.dashboard-topbar__inner {
    min-height: 92px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-topbar__left,
.dashboard-topbar__right {
    display: flex;
    align-items: center;
}

.dashboard-topbar__right {
    margin-left: auto;
}

.dashboard-user-menu {
    position: relative;
}

.dashboard-user-menu__trigger--plain {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f8fafc;
    cursor: pointer;
    box-shadow: none;
}

    .dashboard-user-menu__trigger--plain:hover {
        opacity: 0.92;
    }

.dashboard-topbar__logo {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
    filter: saturate(1.12) contrast(1.08) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.dashboard-topbar__profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    min-width: 0;
}

.dashboard-topbar__hello-label {
    font-size: 0.84rem;
    color: #9ca3af;
}

.dashboard-topbar__hello-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-user-menu__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    font-size: 0.82rem;
    margin-left: 0.2rem;
}

.dashboard-user-menu__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 260px;
    padding: 0.55rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 55%), rgba(2, 6, 23, 0.98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    display: none;
}

.dashboard-user-menu.is-open .dashboard-user-menu__dropdown {
    display: block;
}

.dashboard-user-menu__dropdown-header {
    padding: 0.7rem 0.8rem 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 0.35rem;
}

.dashboard-user-menu__dropdown-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f8fafc;
}

.dashboard-user-menu__dropdown-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

.dashboard-user-menu__form {
    margin: 0;
}

.dashboard-user-menu__item {
    width: 100%;
    min-height: 46px;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

    .dashboard-user-menu__item:hover {
        background: rgba(255, 255, 255, 0.06);
    }

.dashboard-user-menu__item--danger {
    color: #fecaca;
}

    .dashboard-user-menu__item--danger:hover {
        background: rgba(239, 68, 68, 0.10);
        color: #fee2e2;
    }

.dashboard-back-link {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    border-radius: 999px;
    transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

/*    .dashboard-back-link:hover {
        color: #ffffff;
        transform: translateX(-2px);
        background: rgba(255, 255, 255, 0.04);
    }*/

.dashboard-main {
    width: 100%;
    padding: 1.8rem 1rem 2rem !important;
}

@media (min-width: 901px) {
    .dashboard-topbar__inner {
        padding: 0 1.75rem;
    }

    .dashboard-main {
        padding: 2rem 1.75rem 2rem !important;
    }
}

@media (max-width: 767px) {
    .dashboard-topbar__inner {
        min-height: 84px;
        padding: max(10px, env(safe-area-inset-top, 0px)) 1rem 10px;
        gap: 0.75rem;
    }

    .dashboard-topbar__logo {
        width: 42px;
        height: 42px;
    }

    .dashboard-topbar__hello-label {
        font-size: 0.78rem;
    }

    .dashboard-topbar__hello-name {
        font-size: 1.08rem;
    }

    .dashboard-back-link {
        width: 46px;
        height: 46px;
        font-size: 1.35rem;
    }

    .dashboard-user-menu__dropdown {
        min-width: 230px;
    }
}

@media (max-width: 520px) {
    .dashboard-topbar__hello-name {
        font-size: 1rem;
    }

    .dashboard-topbar__hello-label {
        font-size: 0.74rem;
    }

    .dashboard-user-menu__dropdown {
        min-width: 220px;
        left: 0;
        right: auto;
    }
}

.dashboard-topbar__inner {
    min-height: 92px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.dashboard-topbar__left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.dashboard-topbar__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex: 1 1 auto;
}

.dashboard-back-link {
    margin-left: auto;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 3px solid rgba(148, 163, 184, 0.28);
    background: transparent;
    color: #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    cursor: pointer;
    border-radius: 999px;
    transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08);
}

/*.dashboard-back-link:hover {
    color: #ffffff;
    transform: translateX(-2px);
    background: rgba(255, 255, 255, 0.04);
}*/

.timeline-progress-ring {
    --progress: 0;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient( #52c8ff calc(var(--progress) * 1%), rgba(255, 255, 255, 0.08) 0 );
    box-shadow: 0 0 0 1px rgba(82, 200, 255, 0.08), inset 0 0 30px rgba(82, 200, 255, 0.05);
}

    .timeline-progress-ring::before {
        content: "";
        position: absolute;
        inset: 12px;
        border-radius: 50%;
        background: linear-gradient(180deg, rgba(7, 20, 44, 0.98), rgba(4, 14, 34, 0.98));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

.timeline-progress-ring__inner {
    position: relative;
    z-index: 1;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(19, 50, 100, 0.35), rgba(5, 15, 35, 0.96));
    box-shadow: inset 0 0 0 1px rgba(82, 200, 255, 0.08);
    text-align: center;
}

.timeline-progress-ring__value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.timeline-progress-ring__label {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    color: #6fcfff;
    line-height: 1.1;
}

.balance-chart-card__canvas-wrap {
    padding: 0.25rem 0.85rem 0.4rem 0.35rem;
}

.balance-chart-card__svg {
    width: 100%;
    height: 320px;
    display: block;
}

