/* ============================================================
   BARBERPRO — DESIGN SYSTEM UNIFICADO (PREMIUM)
   Tema Preto & Ouro Premium com suporte a Claro / Escuro
   ============================================================ */

/* ---------- TEMA CLARO (padrão) ---------- */
:root {
    --gold:        #E8C547;
    --gold-light:  #FFE566;
    --gold-bright: #FFF4C8;
    --gold-dark:   #C9A227;
    --gold-deep:   #8B6914;
    --icon-gold-glow: rgba(255, 220, 80, 0.35);

    --bg:          #F8F7F4;
    --bg-elevated: #FFFFFF;
    --surface:     #FFFFFF;
    --surface-2:   #F3EFE9;

    --ink:         #1C1C1E;
    --ink-soft:    #505055;
    --ink-muted:   #8E8E93;

    --border:      #E5E5EA;
    --border-soft: #F2F2F7;

    --sidebar-bg:  #1C1C1E;
    --sidebar-ink: #F8F7F4;

    --success:     #34C759;
    --success-bg:  #E8F8EC;
    --danger:      #FF3B30;
    --danger-bg:   #FFEBEA;
    --warning:     #FF9500;
    --warning-bg:  #FFF4E5;
    --info:        #007AFF;
    --info-bg:     #E5F1FF;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 24px 48px rgba(0,0,0,0.12);
    --shadow-gold: 0 8px 24px rgba(212,175,55,0.3);

    --radius:    16px;
    --radius-sm: 8px;
    --radius-lg: 24px;

    --font-head: 'Poppins', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Aliases legados (landing.php e páginas antigas) */
    --cor-primaria:        #0066cc;
    --cor-primaria-dark:   #1C1C1E;
    --cor-secundaria:      var(--gold);
    --cor-fundo:           var(--bg);
    --cor-fundo-secundario: var(--surface-2);
    --cor-texto:           var(--ink);
    --cor-preto:           #1C1C1E;
    --cor-cinza-claro:     var(--border);
    --cor-cinza-medio:     var(--ink-muted);
    --cor-sucesso:         var(--success);
    --gradiente-ouro:      linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
    --gradiente-ouro-shine: linear-gradient(
        145deg,
        var(--gold-bright) 0%,
        var(--gold-light) 22%,
        #F5D442 42%,
        var(--gold) 58%,
        var(--gold-light) 74%,
        var(--gold-dark) 90%,
        var(--gold-deep) 100%
    );
    --sombra-light:        var(--shadow-sm);
    --sombra-medium:       var(--shadow-md);
    --sombra-heavy:        var(--shadow-lg);
    --sombra-ouro:         var(--shadow-gold);
}

/* ---------- TEMA ESCURO ---------- */
[data-theme="dark"] {
    --bg:          #121212;
    --bg-elevated: #1E1E1E;
    --surface:     #1E1E1E;
    --surface-2:   #2C2C2E;

    --ink:         #F8F7F4;
    --ink-soft:    #AEAEB2;
    --ink-muted:   #636366;

    --border:      #38383A;
    --border-soft: #2C2C2E;

    --sidebar-bg:  #000000;
    --sidebar-ink: #F8F7F4;

    --success-bg:  #1A3B22;
    --danger-bg:   #4A1A1A;
    --warning-bg:  #4A3211;
    --info-bg:     #112A4A;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
    --shadow-lg: 0 24px 48px rgba(0,0,0,0.8);
    --shadow-gold: 0 8px 24px rgba(212,175,55,0.15);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.02em;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* ---------- MARCA BARBERPRO (LOGO SVG) ---------- */
.bp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    line-height: 1.1;
}
.bp-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.bp-brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.bp-brand-sub {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.72;
    letter-spacing: 0.02em;
}
.bp-brand--light .bp-brand-name,
.bp-brand--light .bp-brand-sub { color: #fff; }
.bp-brand--dark .bp-brand-name { color: var(--ink); }
.bp-brand--dark .bp-brand-sub { color: var(--ink-muted); }
.bp-brand--gold .bp-brand-name {
    background: var(--gradiente-ouro-shine);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bp-brand-logo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    filter:
        drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45))
        drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.28))
        drop-shadow(0 0 10px var(--icon-gold-glow));
    transition: filter 0.25s ease, transform 0.25s ease;
}
.bp-brand-logo svg,
.bp-brand-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.bp-brand:hover .bp-brand-logo,
.navbar-brand:hover .bp-brand-logo {
    filter:
        drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5))
        drop-shadow(0 -1px 1px rgba(255, 255, 255, 0.45))
        drop-shadow(0 0 16px rgba(255, 230, 100, 0.5));
    transform: scale(1.04);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ---------- ÍCONES DOURADOS — BRILHO METÁLICO / RELEVO REFLETIVO ---------- */
.icon-gold-shine,
.footer-brand-icon,
.hero-badge > i,
.card-title > i,
.stat-icon > i,
.feature-icon > i,
.feature-card .feature-icon > i,
.faq-question > i,
.empty-state > i,
.price-list li:not(.disabled) > i,
.pricing-plan-icon > i,
.pricing-payment > i,
.form-label-icon {
    background: var(--gradiente-ouro-shine);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter:
        drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5))
        drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.42))
        drop-shadow(0 0 8px var(--icon-gold-glow));
    transition: filter 0.25s ease, transform 0.25s ease;
}

.feature-card:hover .feature-icon > i,
.pricing-card:hover .pricing-plan-icon > i {
    filter:
        drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55))
        drop-shadow(0 -1px 1px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 14px rgba(255, 230, 100, 0.5));
    transform: scale(1.06);
}

.pricing-plan-icon.featured > i {
    background: linear-gradient(145deg, #2a2a2a 0%, #111 45%, #3d3d3d 100%);
    filter:
        drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    background: var(--gradiente-ouro-shine);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.stat-item .stat-number {
    background: var(--gradiente-ouro-shine);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)) drop-shadow(0 0 10px var(--icon-gold-glow));
}

/* ---------- CONTAINER & GRID LEGADO ---------- */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col-1, .col-2, .col-3, .col-4 {
    padding: 0 12px;
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .col-1 { flex: 1 1 33.333%; max-width: 33.333%; }
    .col-2 { flex: 1 1 50%; max-width: 50%; }
    .col-3 { flex: 1 1 25%; max-width: 25%; }
    .col-4 { flex: 1 1 25%; max-width: 25%; }
}

/* ---------- BOTÕES (PREMIUM) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
    color: #FFF;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), var(--shadow-sm);
    border: none;
}
.btn-primary:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
    color: #FFF;
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: var(--surface);
}

.btn-dark { background: var(--sidebar-bg); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); color: #fff; }

.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--surface-2); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.08); color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Botões em links — evita cor dourada global de <a> */
a.btn { text-decoration: none; }
a.btn-primary, a.btn-primary:hover, a.btn-primary:focus { color: #fff; }
a.btn-secondary, a.btn-secondary:hover { color: var(--ink); }
a.btn-dark, a.btn-dark:hover { color: #fff; }
a.btn-success, a.btn-success:hover { color: #fff; }
a.btn-danger, a.btn-danger:hover { color: #fff; }

/* Botões na navbar escura */
.navbar-menu a.btn {
    text-align: center;
    padding: 9px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}
.navbar-menu a.btn-primary { color: #fff; }
.navbar-menu a.btn-outline { color: var(--gold); border-color: var(--gold); }
.navbar-menu a.btn-outline:hover { color: var(--gold-light); background: rgba(212,175,55,0.1); }

/* Botões em seções escuras (hero, CTA) */
.hero .btn-outline,
.cta-banner .btn-outline {
    border-color: rgba(255,255,255,0.45);
    color: #fff;
}
.hero .btn-outline:hover,
.cta-banner .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212,175,55,0.12);
}

/* ---------- FORMULÁRIOS ---------- */
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; color: var(--ink); }

input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--surface);
    color: var(--ink);
    transition: var(--transition);
}

input::placeholder, textarea::placeholder { color: var(--ink-muted); }

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
    background: var(--bg-elevated);
}

textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }
.form-control { width: 100%; }

/* ---------- CARDS & STATS ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--gold-dark); }
.card-title { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.card-title > i { font-size: 1.05em; }

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card::after {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 3px;
    background: var(--gold);
}
.stat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(232, 197, 71, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.stat-card:hover .stat-icon > i {
    filter:
        drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55))
        drop-shadow(0 -1px 1px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 14px rgba(255, 230, 100, 0.5));
    transform: scale(1.08);
}
.stat-value { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-label { color: var(--ink-muted); font-size: 13px; margin-top: 6px; }

/* ---------- BADGES ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-gold    { background: rgba(212,175,55,0.16); color: var(--gold-dark); }

/* ---------- TABELAS RESPONSIVAS ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: var(--surface); white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
thead th {
    background: var(--surface-2);
    color: var(--ink-muted);
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 16px;
    border-bottom: 2px solid var(--border);
}
tbody td { padding: 16px; border-bottom: 1px solid var(--border-soft); font-size: 14px; color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
tbody td strong { color: var(--ink); font-weight: 600; }

/* ---------- NAVBAR ---------- */
.navbar {
    background: var(--sidebar-bg);
    color: var(--sidebar-ink);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid rgba(212,175,55,0.12);
}
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
}
.navbar-brand { flex-shrink: 0; }
.navbar-brand .bp-brand-name {
    font-size: 1.2rem;
    color: var(--sidebar-ink);
}
.navbar-menu {
    list-style: none;
    display: flex;
    gap: clamp(10px, 1.4vw, 20px);
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-end;
}
.navbar-menu > li > a:not(.btn) {
    color: rgba(255,255,255,0.78);
    font-size: clamp(12px, 1.1vw, 14px);
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    padding: 8px 2px;
    transition: color 0.2s;
}
.navbar-menu > li > a:not(.btn):hover { color: var(--gold); }
.navbar-menu-divider { display: none; }
.navbar-menu-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}
section[id] { scroll-margin-top: 88px; }
body.nav-open { overflow: hidden; }

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 17px;
    transition: var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); transform: rotate(-15deg); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- GRID HELPERS (RESPONSIVO - MOBILE FIRST) ---------- */
.grid { display: grid; gap: 24px; }
.grid-stats { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 769px) {
    .grid-stats { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- MODAL (GLASSMORPHISM) ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.3s ease; }
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h3 { font-size: 20px; }
.modal-close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink-muted); line-height: 1; }
.modal-close:hover { color: var(--danger); }

@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: none; }
}

/* ---------- LOADING ---------- */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}
.loading-screen.hidden { opacity: 0; pointer-events: none; }
.bp-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.bp-loading-logo { margin-bottom: 4px; }
.bp-loading-brand {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.04em;
}
.bp-loading-text {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}
.spinner, .loading-spinner {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(212,175,55,0.25);
    border-top-color: var(--gold);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- TOAST BOX (todas as mensagens) ---------- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: min(400px, calc(100vw - 32px));
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    font-size: 14px;
    line-height: 1.45;
    min-width: 280px;
    max-width: 100%;
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.toast--visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.toast-body { flex: 1; min-width: 0; padding-top: 2px; }
.toast-title { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; opacity: 0.85; }
.toast-text { display: block; font-weight: 500; word-break: break-word; }
.toast-close {
    background: none;
    border: none;
    color: var(--ink-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 4px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.toast-close:hover { opacity: 1; }
.toast--success .toast-icon { background: rgba(34,197,94,0.12); color: #16a34a; }
.toast--error .toast-icon { background: rgba(239,68,68,0.12); color: #dc2626; }
.toast--info .toast-icon { background: rgba(59,130,246,0.12); color: #2563eb; }
.toast--warning .toast-icon { background: rgba(245,158,11,0.15); color: #d97706; }
.toast--chat .toast-icon { background: rgba(212,175,55,0.15); color: #AA8A2A; }
.toast.success, .toast--success { border-left: 4px solid var(--success); }
.toast.error, .toast--error { border-left: 4px solid var(--danger); }
.toast.info, .toast--info { border-left: 4px solid var(--info, #2563eb); }
.toast.warning, .toast--warning { border-left: 4px solid #d97706; }
.toast.chat, .toast--chat { border-left: 4px solid var(--gold); }

/* ---------- UTILIDADES ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.text-gold { color: var(--gold-dark); }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1{gap:8px}.gap-2{gap:16px}.gap-3{gap:24px}
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-muted); }
.empty-state > i { font-size: 42px; opacity: 0.85; margin-bottom: 14px; display: block; }

.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--ink-muted); margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- RESPONSIVIDADE MOBILE-FIRST ---------- */
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .card, .stat-card { padding: 16px; }
    h1 { font-size: 1.8rem; }
    .navbar-content { padding: 12px 16px; }
    #toast-container { left: 16px; right: 16px; }
    .toast { min-width: auto; max-width: 100%; }
    .footer-grid + div {
        flex-direction: column;
        text-align: center;
    }
    .hero-badges { gap: 12px; }
    .auth-tabs { flex-direction: column; }
}

@media (max-width: 500px) {
    .modal { padding: 24px; border-radius: var(--radius); }
    .btn { padding: 11px 18px; font-size: 14px; }
}

/* ---------- LANDING PAGE ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    text-align: center;
}
.stat-item .stat-number {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item .stat-desc { font-size: 14px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.step-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}
.step-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.step-number {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--gradiente-ouro);
    color: var(--cor-preto);
    font-weight: 800;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.45),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12),
        0 4px 14px var(--icon-gold-glow);
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    font-family: inherit;
}
.faq-question > i { transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.6;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 20px 18px; }

.glassmorphic {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
}

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.testimonial-text { font-size: 15px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gradiente-ouro);
    color: var(--cor-preto);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1160;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav-overlay[hidden] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
.mobile-nav-overlay {
    display: none !important;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1140;
    pointer-events: none !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mobile-nav-overlay.open {
    display: block !important;
    pointer-events: auto !important;
    visibility: visible;
    opacity: 1;
}

@media (min-width: 1025px) {
    .mobile-nav-overlay,
    .mobile-nav-overlay.open {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    body.nav-open { overflow: auto !important; }
}

@media (max-width: 1024px) {
    .hamburger { display: flex; }
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        background: var(--sidebar-bg);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 72px 20px 24px;
        gap: 0;
        transition: right 0.32s ease;
        z-index: 1150;
        box-shadow: -8px 0 32px rgba(0,0,0,0.35);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .navbar-menu.open { right: 0; }
    .navbar-menu > li:not(.navbar-menu-actions):not(.navbar-menu-divider) {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .navbar-menu > li > a:not(.btn) {
        display: block;
        width: 100%;
        padding: 14px 4px;
        font-size: 15px;
        white-space: normal;
    }
    .navbar-menu-divider {
        display: block;
        width: 100%;
        height: 1px;
        margin: 12px 0;
        background: rgba(255,255,255,0.1);
        border: none;
    }
    .navbar-menu-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 4px;
    }
    .navbar-menu-actions .btn {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* ---------- FEATURES GRID (landing) ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}
.feature-card .feature-icon,
.feature-icon {
    width: 72px; height: 72px;
    background: rgba(232, 197, 71, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    transition: var(--transition);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.feature-card:hover .feature-icon,
.card:hover .feature-icon {
    background: rgba(232, 197, 71, 0.16);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 6px 20px var(--icon-gold-glow);
}

.pricing-plan-icon {
    width: 56px; height: 56px;
    border-radius: 1rem;
    background: rgba(232, 197, 71, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.22);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}
.pricing-plan-icon.featured {
    background: var(--gradiente-ouro);
    border-color: transparent;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.45),
        0 6px 18px var(--icon-gold-glow);
}
.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--ink);
}
.feature-card p {
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ---------- FOOTER ---------- */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 481px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 769px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
}

.footer-col h4 {
    background: var(--gradiente-ouro-shine);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.footer-col p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.55); font-size: 14px; }
.footer-col ul a:hover { color: var(--gold); }

/* ---------- SENHA COM OLHO ---------- */
.pw-field { position: relative; }
.pw-field input { padding-right: 48px; }
.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ink-muted);
    cursor: pointer;
    padding: 6px;
    font-size: 16px;
    line-height: 1;
}
.pw-toggle:hover { color: var(--gold); }

/* ---------- LGPD ---------- */
.lgpd-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: 12px 0 4px;
    cursor: pointer;
}
.lgpd-check input { width: auto; margin-top: 3px; flex-shrink: 0; accent-color: var(--gold); }
.lgpd-check a { color: var(--gold-dark); text-decoration: underline; }

/* ---------- MODAL LEGAL ---------- */
.legal-modal { max-width: 560px; }
.legal-body { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.legal-body ul { margin: 12px 0 12px 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body p { margin-bottom: 12px; }

/* ---------- MODAL DE CONFIRMAÇÃO ---------- */
.bp-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    animation: bpFadeIn .2s ease;
}
.bp-confirm-overlay.open { display: flex !important; }
.bp-confirm-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: bpSlideUp .25s ease;
}
.bp-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}
.bp-confirm-warning { background: var(--warning-bg); color: var(--warning); }
.bp-confirm-danger { background: var(--danger-bg); color: var(--danger); }
.bp-confirm-info { background: var(--info-bg); color: var(--info); }
.bp-confirm-box h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    margin: 0 0 10px;
    color: var(--ink);
}
.bp-confirm-box p {
    margin: 0 0 24px;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.6;
}
.bp-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.bp-confirm-actions .btn { min-width: 120px; }
@keyframes bpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bpSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
