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

/* ============================================================
   BERG AUTO CAR — DESIGN SYSTEM v3.0
   Squad: UX/UI + SaaS Admin + Landing Page Specialist
   ============================================================ */

/* --- Design Tokens --- */
:root {
    /* Brand Colors */
    --c-blue-900: #061224;
    --c-blue-800: #0A1E3D;
    --c-blue-700: #0A2A5E;
    --c-blue-600: #1A3F7A;
    --c-orange-500: #F47C20;
    --c-orange-400: #F99B50;
    --c-orange-600: #C9620D;

    /* Neutral Palette */
    --c-slate-50:  #F8FAFC;
    --c-slate-100: #F1F5F9;
    --c-slate-200: #E2E8F0;
    --c-slate-300: #CBD5E1;
    --c-slate-400: #94A3B8;
    --c-slate-500: #64748B;
    --c-slate-600: #475569;
    --c-slate-700: #334155;
    --c-slate-800: #1E293B;
    --c-slate-900: #0F172A;

    /* Semantic */
    --c-success: #10B981;
    --c-warning: #F59E0B;
    --c-danger:  #EF4444;
    --c-info:    #3B82F6;

    /* Typography */
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Radius */
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Shadows */
    --sh-xs: 0 1px 2px rgba(0,0,0,0.05);
    --sh-sm: 0 2px 8px rgba(10,42,94,0.07);
    --sh-md: 0 4px 16px rgba(10,42,94,0.10);
    --sh-lg: 0 8px 32px rgba(10,42,94,0.14);
    --sh-xl: 0 20px 48px rgba(10,42,94,0.18);
    --sh-glow: 0 0 24px rgba(244,124,32,0.25);

    /* Transitions */
    --t-fast: all 0.15s ease;
    --t-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --t-bounce: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Sidebar */
    --sidebar-w: 260px;
    --sidebar-bg: #070d1a;
    --sidebar-border: rgba(255,255,255,0.06);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-slate-700);
    background: var(--c-slate-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font);
    color: var(--c-slate-900);
    font-weight: 700;
    line-height: 1.2;
}

a { color: var(--c-blue-700); text-decoration: none; transition: var(--t-fast); }
a:hover { color: var(--c-orange-500); }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--c-slate-500); }
.text-white  { color: #fff; }
.text-accent { color: var(--c-orange-500); }
.text-primary{ color: var(--c-blue-700); }
.text-success{ color: var(--c-success); }
.text-danger { color: var(--c-danger); }
.text-warning{ color: var(--c-warning); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.fs-xs  { font-size: 0.72rem; }
.fs-sm  { font-size: 0.82rem; }
.fs-md  { font-size: 0.92rem; }
.fs-lg  { font-size: 1.1rem; }
.fs-xl  { font-size: 1.25rem; }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block{ display: block; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.5rem; }
.p-6 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.w-100 { width: 100%; }
.max-w-700 { max-width: 700px; }
.max-w-500 { max-width: 500px; }

.rounded    { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: var(--r-md);
    border: none;
    cursor: pointer;
    transition: var(--t-smooth);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--c-orange-500);
    color: #fff;
    box-shadow: 0 2px 8px rgba(244,124,32,0.3);
}
.btn-primary:hover {
    background: var(--c-orange-600);
    color: #fff;
    box-shadow: 0 4px 16px rgba(244,124,32,0.4);
    transform: translateY(-1px);
}

.btn-blue {
    background: var(--c-blue-700);
    color: #fff;
    box-shadow: var(--sh-sm);
}
.btn-blue:hover {
    background: var(--c-blue-800);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--sh-md);
}

.btn-ghost {
    background: transparent;
    color: var(--c-slate-600);
    border: 1.5px solid var(--c-slate-300);
}
.btn-ghost:hover {
    background: var(--c-slate-100);
    color: var(--c-slate-800);
    border-color: var(--c-slate-400);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}
.btn-whatsapp:hover {
    background: #1EBA58;
    color: #fff;
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(239,68,68,0.1);
    color: var(--c-danger);
    border: 1.5px solid rgba(239,68,68,0.25);
}
.btn-danger:hover {
    background: var(--c-danger);
    color: #fff;
    border-color: var(--c-danger);
}

.btn-success {
    background: rgba(16,185,129,0.1);
    color: var(--c-success);
    border: 1.5px solid rgba(16,185,129,0.25);
}
.btn-success:hover {
    background: var(--c-success);
    color: #fff;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    border-radius: var(--r-sm);
}
.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}
.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    border-radius: var(--r-lg);
}
.btn-block { width: 100%; display: flex; }

.btn-icon {
    padding: 0.4rem;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
}

/* ============================================================
   CARD
   ============================================================ */
.card {
    background: #fff;
    border-radius: var(--r-lg);
    border: 1px solid var(--c-slate-200);
    box-shadow: var(--sh-sm);
    overflow: hidden;
}
.card-body { padding: 1.5rem; }
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--c-slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-slate-800);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

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

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-slate-600);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.875rem;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--c-slate-800);
    background: #fff;
    border: 1.5px solid var(--c-slate-200);
    border-radius: var(--r-md);
    transition: var(--t-smooth);
    outline: none;
    appearance: none;
}
.form-control:hover { border-color: var(--c-slate-300); }
.form-control:focus {
    border-color: var(--c-blue-700);
    box-shadow: 0 0 0 3px rgba(10,42,94,0.08);
    background: #fff;
}
.form-control::placeholder { color: var(--c-slate-400); font-weight: 400; }

.form-hint {
    font-size: 0.75rem;
    color: var(--c-slate-500);
    margin-top: 0.3rem;
    line-height: 1.4;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
    cursor: pointer;
}

textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.7; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.badge-hot     { background: rgba(239,68,68,0.12);  color: #DC2626; }
.badge-medium  { background: rgba(245,158,11,0.12); color: #D97706; }
.badge-cold    { background: rgba(16,185,129,0.12); color: #059669; }
.badge-stage   { background: rgba(59,130,246,0.1);  color: #2563EB; }
.badge-new     { background: rgba(10,42,94,0.08);   color: var(--c-blue-700); }
.badge-success { background: rgba(16,185,129,0.1);  color: var(--c-success); }
.badge-warning { background: rgba(245,158,11,0.1);  color: var(--c-warning); }
.badge-danger  { background: rgba(239,68,68,0.1);   color: var(--c-danger); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 0.875rem 1.125rem;
    border-radius: var(--r-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-success { background: rgba(16,185,129,0.08); color: #065F46; border: 1px solid rgba(16,185,129,0.2); }
.alert-danger  { background: rgba(239,68,68,0.08);  color: #991B1B; border: 1px solid rgba(239,68,68,0.2); }
.alert-info    { background: rgba(59,130,246,0.08); color: #1D4ED8; border: 1px solid rgba(59,130,246,0.2); }

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
    border: none;
    border-top: 1px solid var(--c-slate-100);
    margin: 1.5rem 0;
}

.section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--c-slate-500);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--c-slate-100);
}

/* ============================================================
   ADMIN LAYOUT — SIDEBAR + MAIN
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.admin-sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
    transition: var(--t-smooth);
}

.sidebar-inner {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
    margin-bottom: 0.5rem;
}

.sidebar-logo {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.sidebar-user {
    padding: 0.875rem 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--c-orange-500), var(--c-orange-600));
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sidebar-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav Groups */
.sidebar-nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.3);
    padding: 0.75rem 0.75rem 0.35rem;
    margin-top: 0.5rem;
}

.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 2px; }

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 0.875rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--r-md);
    transition: var(--t-smooth);
}
.sidebar-menu a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: var(--t-smooth);
}
.sidebar-menu a:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
}
.sidebar-menu a:hover svg { opacity: 1; }

.sidebar-menu li.active a {
    background: rgba(244,124,32,0.15);
    color: var(--c-orange-400);
    font-weight: 600;
}
.sidebar-menu li.active a svg { opacity: 1; color: var(--c-orange-400); }

.sidebar-menu li.sidebar-logout a {
    color: rgba(239,68,68,0.7);
    margin-top: 0.5rem;
}
.sidebar-menu li.sidebar-logout a:hover {
    background: rgba(239,68,68,0.1);
    color: #f87171;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--sidebar-border);
}
.sidebar-version {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    text-align: center;
    padding: 0.5rem;
}

/* --- Mobile Top Bar --- */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--sidebar-border);
    z-index: 200;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
}
.mobile-topbar-logo { max-height: 32px; }
.mobile-menu-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--r-sm);
    transition: var(--t-fast);
    display: flex;
    align-items: center;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.08); }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* --- Main Content Area --- */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    background: var(--c-slate-50);
}

.page-header {
    padding: 2rem 2.5rem 0;
    margin-bottom: 1.75rem;
}
.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--c-slate-900);
    line-height: 1.2;
}
.page-subtitle {
    font-size: 0.875rem;
    color: var(--c-slate-500);
    margin-top: 0.25rem;
    font-weight: 400;
}

.page-content {
    padding: 0 2.5rem 2.5rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--c-slate-400);
    margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--c-slate-400); }
.breadcrumb a:hover { color: var(--c-orange-500); }
.breadcrumb-sep { opacity: 0.5; }

/* ============================================================
   METRICS / KPI CARDS
   ============================================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.metric-card {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--t-smooth);
    position: relative;
    overflow: hidden;
}
.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--c-slate-200);
    transition: var(--t-smooth);
}
.metric-card:hover {
    box-shadow: var(--sh-lg);
    transform: translateY(-2px);
    border-color: var(--c-slate-300);
}
.metric-card:hover::before { background: var(--c-orange-500); }

.metric-card-accent { border-color: rgba(244,124,32,0.2); }
.metric-card-accent::before { background: var(--c-orange-500); }

.metric-card-blue { border-color: rgba(10,42,94,0.15); }
.metric-card-blue::before { background: var(--c-blue-700); }

.metric-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.metric-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.metric-icon-orange { background: rgba(244,124,32,0.1); }
.metric-icon-blue   { background: rgba(10,42,94,0.08); }
.metric-icon-green  { background: rgba(16,185,129,0.1); }
.metric-icon-red    { background: rgba(239,68,68,0.08); }

.metric-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--c-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.metric-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--c-slate-900);
    line-height: 1;
    margin-top: 0.25rem;
}
.metric-sub {
    font-size: 0.75rem;
    color: var(--c-slate-400);
    margin-top: 0.35rem;
    font-weight: 400;
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
}

.table-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--c-slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-leads {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}
.table-leads th {
    background: var(--c-slate-50);
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--c-slate-500);
    white-space: nowrap;
    border-bottom: 1px solid var(--c-slate-200);
    text-align: left;
}
.table-leads td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--c-slate-100);
    font-size: 0.875rem;
    vertical-align: middle;
}
.table-leads tbody tr:last-child td { border-bottom: none; }
.table-leads tbody tr:hover { background: var(--c-slate-50); }

.lead-name-cell strong {
    font-weight: 700;
    color: var(--c-slate-900);
    display: block;
    font-size: 0.875rem;
}
.lead-name-cell span {
    font-size: 0.775rem;
    color: var(--c-slate-500);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

/* ============================================================
   FILTERS BAR
   ============================================================ */
.filters-wrap {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--sh-xs);
}
.filters-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--c-slate-500);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    align-items: end;
}
.filters-grid .form-label { font-size: 0.72rem; margin-bottom: 0.3rem; }
.filters-grid .form-control { font-size: 0.82rem; padding: 0.5rem 0.75rem; }

/* ============================================================
   KANBAN
   ============================================================ */
.kanban-outer {
    overflow-x: auto;
    padding-bottom: 1.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.kanban-container {
    display: flex;
    gap: 1rem;
    min-height: calc(100vh - 200px);
    width: max-content;
    min-width: 100%;
}

.kanban-column {
    background: var(--c-slate-100);
    border-radius: var(--r-lg);
    border: 1px solid var(--c-slate-200);
    padding: 1rem;
    min-width: 270px;
    max-width: 290px;
    flex: 0 0 270px;
    display: flex;
    flex-direction: column;
    transition: var(--t-smooth);
}
.kanban-column.drag-over {
    background: rgba(244,124,32,0.05);
    border-color: rgba(244,124,32,0.3);
}

.kanban-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
    padding: 0 0.25rem;
}
.kanban-col-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--c-slate-600);
}
.kanban-col-count {
    background: var(--c-slate-200);
    color: var(--c-slate-600);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--r-full);
}

.kanban-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    overflow-y: auto;
    min-height: 80px;
    max-height: calc(100vh - 280px);
    padding-right: 2px;
}
.kanban-cards-wrap::-webkit-scrollbar { width: 4px; }
.kanban-cards-wrap::-webkit-scrollbar-track { background: transparent; }
.kanban-cards-wrap::-webkit-scrollbar-thumb { background: var(--c-slate-300); border-radius: 2px; }

.kanban-card {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-left: 3px solid var(--c-slate-300);
    border-radius: var(--r-md);
    padding: 0.875rem;
    cursor: grab;
    transition: var(--t-smooth);
    position: relative;
}
.kanban-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-1px);
    border-color: var(--c-slate-300);
}
.kanban-card:active { cursor: grabbing; }
.kanban-card-hot    { border-left-color: var(--c-danger); }
.kanban-card-medium { border-left-color: var(--c-warning); }
.kanban-card-cold   { border-left-color: var(--c-success); }

.kanban-card-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--c-slate-900);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kanban-card-info {
    font-size: 0.75rem;
    color: var(--c-slate-500);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}
.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--c-slate-100);
    padding-top: 0.6rem;
    margin-top: 0.4rem;
    gap: 4px;
}
.kanban-card-actions {
    display: flex;
    gap: 3px;
}

.kanban-empty {
    text-align: center;
    padding: 1.5rem 0.5rem;
    color: var(--c-slate-400);
    font-size: 0.78rem;
    font-weight: 500;
}
.kanban-empty-icon { font-size: 1.5rem; margin-bottom: 0.4rem; opacity: 0.4; }

/* ============================================================
   LEAD DETAIL VIEW
   ============================================================ */
.lead-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .lead-grid { grid-template-columns: 3fr 2fr; }
}

.detail-field {
    margin-bottom: 1rem;
}
.detail-field-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--c-slate-400);
    margin-bottom: 0.25rem;
}
.detail-field-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-slate-800);
}

.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) {
    .field-grid-2, .field-grid-3 { grid-template-columns: 1fr; }
}

/* Notes */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 1rem;
}
.note-item {
    background: var(--c-slate-50);
    border-left: 3px solid var(--c-blue-700);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 0.6rem 0.875rem;
}
.note-meta {
    font-size: 0.7rem;
    color: var(--c-slate-400);
    margin-bottom: 0.2rem;
}
.note-text {
    font-size: 0.82rem;
    color: var(--c-slate-700);
    white-space: pre-wrap;
    line-height: 1.5;
}

/* Simulator */
.simulator-box {
    background: var(--c-slate-50);
    border: 1px solid var(--c-slate-200);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}
.simulator-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}
@media (max-width: 500px) { .simulator-row { grid-template-columns: 1fr; } }

.simulator-result {
    margin-top: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--r-lg);
    text-align: center;
}
.simulator-profit {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--c-slate-900);
}
.margin-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.4rem;
}
.margin-badge-good    { background: rgba(16,185,129,0.12); color: #059669; }
.margin-badge-warning { background: rgba(245,158,11,0.12); color: #D97706; }
.margin-badge-danger  { background: rgba(239,68,68,0.12);  color: #DC2626; }

/* Checklist */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--c-slate-700);
    padding: 0.4rem 0;
    user-select: none;
}
.checklist-item input[type="checkbox"] {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    appearance: none;
    background: var(--c-slate-300);
    border-radius: 11px;
    cursor: pointer;
    transition: var(--t-smooth);
}
.checklist-item input[type="checkbox"]:checked { background: var(--c-success); }
.checklist-item input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: var(--t-smooth);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.checklist-item input[type="checkbox"]:checked::before { left: 20px; }

/* ============================================================
   SETTINGS PAGE
   ============================================================ */
.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 768px) { .settings-layout { grid-template-columns: 1fr; } }

.settings-nav {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    position: sticky;
    top: 1.5rem;
}
.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-slate-600);
    border-bottom: 1px solid var(--c-slate-100);
    text-decoration: none;
    transition: var(--t-fast);
    cursor: pointer;
}
.settings-nav-item:hover {
    background: var(--c-slate-50);
    color: var(--c-orange-500);
}
.settings-nav-item.active {
    background: rgba(244,124,32,0.06);
    color: var(--c-orange-500);
    border-left: 3px solid var(--c-orange-500);
    padding-left: calc(1rem - 3px);
}
.settings-nav-item:last-child { border-bottom: none; }

.settings-section {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-xs);
    margin-bottom: 1.25rem;
}
.settings-section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--c-slate-100);
    display: flex;
    align-items: center;
    gap: 10px;
}
.settings-section-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(244,124,32,0.1);
    flex-shrink: 0;
}
.settings-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-slate-900);
}
.settings-section-sub {
    font-size: 0.78rem;
    color: var(--c-slate-400);
    margin-top: 1px;
}
.settings-section-body { padding: 1.5rem; }

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--c-slate-100);
    gap: 1rem;
}
.settings-toggle-row:last-child { border-bottom: none; }
.settings-toggle-info { flex: 1; }
.settings-toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-slate-800);
}
.settings-toggle-desc {
    font-size: 0.775rem;
    color: var(--c-slate-500);
    margin-top: 2px;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--c-slate-300);
    border-radius: 13px;
    cursor: pointer;
    transition: var(--t-smooth);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--t-smooth);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--c-success); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        linear-gradient(135deg, rgba(6,18,36,0.97) 0%, rgba(10,42,94,0.94) 100%),
        url('../img/07_bergautocar_fundo_abstrato_azul_laranja.png') center/cover no-repeat fixed;
    position: relative;
    overflow: hidden;
}
.login-body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244,124,32,0.15), transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
.login-body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(10,42,94,0.3), transparent 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
}

.login-logo-wrap { text-align: center; margin-bottom: 2rem; }
.login-logo { max-height: 52px; margin: 0 auto; }

.login-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
    text-align: center;
}
.login-subtitle {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-body .form-label {
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}
.login-body .form-control {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.9rem;
}
.login-body .form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--c-orange-500);
    box-shadow: 0 0 0 3px rgba(244,124,32,0.2);
}
.login-body .form-control::placeholder { color: rgba(255,255,255,0.3); }

/* ============================================================
   PUBLIC PAGES — AVALIAÇÃO (QUIZ)
   ============================================================ */
.public-body {
    min-height: 100vh;
    background:
        linear-gradient(160deg, rgba(6,18,36,0.96) 0%, rgba(10,30,70,0.93) 60%, rgba(15,40,80,0.97) 100%),
        url('../img/07_bergautocar_fundo_abstrato_azul_laranja.png') center/cover no-repeat fixed;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
}

.public-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.public-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.public-logo { max-height: 48px; }
.public-header-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.25);
    color: #6EE7B7;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-full);
}

.public-main { flex: 1; display: flex; align-items: center; padding: 2.5rem 0; }
.public-main-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Split layout: quiz + sidebar visual */
.quiz-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 960px) {
    .quiz-layout { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

/* Quiz info column */
.quiz-info h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.quiz-info h1 .accent { color: var(--c-orange-400); }
.quiz-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.42rem 0.8rem;
    border: 1px solid rgba(244,124,32,0.35);
    border-radius: var(--r-full);
    background: rgba(244,124,32,0.12);
    color: #ffc08f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.quiz-info-sub {
    max-width: 580px;
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.quiz-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.35rem 0.75rem;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.quiz-benefits {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    list-style: none;
}
.quiz-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
}
.benefit-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(16,185,129,0.14);
    color: #6ee7b7;
    font-size: 0.75rem;
    font-weight: 800;
}

.quiz-visual {
    display: none;
    position: relative;
}
@media (min-width: 960px) { .quiz-visual { display: block; } }

.floating-car {
    width: 100%;
    max-width: 480px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    animation: floatCar 7s ease-in-out infinite;
}
@keyframes floatCar {
    0%,100% { transform: translateY(0) rotate(-0.5deg); }
    50% { transform: translateY(-16px) rotate(0.5deg); }
}

/* Quiz Card */
.quiz-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-xl);
    padding: 2rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    width: 100%;
    max-width: 520px;
    margin-left: auto;
}

/* Progress */
.quiz-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.quiz-progress-bar-bg {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--r-full);
    overflow: hidden;
}
.quiz-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c-orange-500), var(--c-orange-400));
    border-radius: var(--r-full);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(244,124,32,0.5);
}
.quiz-progress-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

/* Steps */
.quiz-step { display: none; }
.quiz-step.active {
    display: block;
    animation: stepIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes stepIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.quiz-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--c-orange-400);
    margin-bottom: 0.5rem;
}
.quiz-step-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.quiz-step-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
}

/* Option cards */
.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}
@media (min-width: 480px) { .option-grid-2 { grid-template-columns: 1fr 1fr; } }

.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: var(--t-smooth);
    position: relative;
    user-select: none;
}
.option-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(244,124,32,0.5);
    transform: translateY(-1px);
}
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card:focus-within {
    outline: 3px solid rgba(244,124,32,0.28);
    outline-offset: 2px;
}
.option-card.selected {
    background: rgba(244,124,32,0.12);
    border-color: var(--c-orange-500);
    box-shadow: 0 0 0 1px rgba(244,124,32,0.2), 0 4px 16px rgba(244,124,32,0.15);
}
.option-emoji { font-size: 1.25rem; flex-shrink: 0; line-height: 1; }
.option-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.3;
}
.option-card.selected .option-text { color: #fff; }
.option-check {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--r-full);
    margin-left: auto;
    flex-shrink: 0;
    transition: var(--t-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}
.option-card.selected .option-check {
    background: var(--c-orange-500);
    border-color: var(--c-orange-500);
}
.option-card.selected .option-check::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: var(--r-full);
}

/* Text inputs in quiz */
.public-body .form-control {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    min-height: 50px;
}
.public-body .form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--c-orange-500);
    box-shadow: 0 0 0 3px rgba(244,124,32,0.2);
}
.public-body .form-control::placeholder { color: rgba(255,255,255,0.3); }
.public-body .form-label {
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem;
}

/* Consent */
.consent-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 1rem;
    cursor: pointer;
    padding: 0.875rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-md);
}
.consent-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--c-orange-500);
    cursor: pointer;
}
.consent-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}
.consent-text a { color: var(--c-orange-400); text-decoration: underline; }

/* Nav */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.quiz-nav-end { justify-content: flex-end; }
.quiz-nav .btn-quiz-cta { width: auto; min-width: 150px; }

.form-error {
    display: none;
    margin-top: 0.55rem;
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}
.form-error.is-visible { display: block; }
.public-body .form-control.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248,113,113,0.14);
}

/* CTA button */
.btn-quiz-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--c-orange-500), var(--c-orange-600));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border-radius: var(--r-md);
    border: none;
    cursor: pointer;
    transition: var(--t-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(244,124,32,0.35);
}
.btn-quiz-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244,124,32,0.45);
}

.btn-quiz-back {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: var(--t-fast);
    font-family: var(--font);
}
.btn-quiz-back:hover { color: rgba(255,255,255,0.85); }

/* Public footer */
.public-footer {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.public-footer p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}
.public-footer p + p { margin-top: 0.25rem; }
.public-footer a { color: rgba(255,255,255,0.45); }
.public-footer a:hover { color: var(--c-orange-400); }

/* ============================================================
   OBRIGADO PAGE
   ============================================================ */
.obrigado-card {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-xl);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 24px 64px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.07);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}
.obrigado-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(16,185,129,0.28);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.obrigado-title {
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}
.obrigado-sub {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.thanks-main { padding-top: 2rem; padding-bottom: 2rem; }
.thanks-eyebrow {
    margin-bottom: 0.55rem;
    color: #6ee7b7;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.obrigado-steps {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
    margin-bottom: 1.25rem;
}
.obrigado-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-md);
    padding: 0.875rem;
}
.obrigado-step.is-complete {
    border-color: rgba(16,185,129,0.22);
    background: rgba(16,185,129,0.06);
}
.obrigado-step.is-complete .obrigado-step-num {
    border-color: rgba(16,185,129,0.35);
    background: rgba(16,185,129,0.16);
    color: #6ee7b7;
}
.obrigado-step.is-current {
    border-color: rgba(244,124,32,0.38);
    background: rgba(244,124,32,0.09);
    box-shadow: 0 0 0 1px rgba(244,124,32,0.08);
}
.obrigado-step-num {
    width: 28px;
    height: 28px;
    background: rgba(244,124,32,0.15);
    border: 1px solid rgba(244,124,32,0.3);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--c-orange-400);
    flex-shrink: 0;
    margin-top: 1px;
}
.obrigado-step-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}
.obrigado-step-text strong { color: #fff; }

.thanks-whatsapp-cta {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.25rem;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(34,197,94,0.28);
    transition: var(--t-smooth);
}
.thanks-whatsapp-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(34,197,94,0.36);
}
.thanks-whatsapp-cta:focus-visible {
    outline: 3px solid rgba(134,239,172,0.45);
    outline-offset: 3px;
}
.thanks-cta-note {
    margin: 0.65rem 0 1.25rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
}
.thanks-summary {
    margin-top: 0.5rem;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.025);
    text-align: left;
    overflow: hidden;
}
.thanks-summary summary {
    padding: 0.9rem 1rem;
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}
.thanks-summary dl {
    padding: 0 1rem 0.9rem;
}
.thanks-summary dl div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8rem;
}
.thanks-summary dt { color: rgba(255,255,255,0.45); }
.thanks-summary dd { margin: 0; color: rgba(255,255,255,0.85); font-weight: 600; }
.thanks-help {
    margin-top: 1rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.72rem;
    line-height: 1.55;
}

@media (max-width: 560px) {
    .thanks-main { padding-top: 1.25rem; padding-bottom: 1.25rem; }
    .obrigado-card { padding: 1.25rem; }
    .obrigado-icon { width: 58px; height: 58px; font-size: 1.5rem; }
    .obrigado-sub { font-size: 0.86rem; line-height: 1.6; }
    .obrigado-step { padding: 0.75rem; }
    .obrigado-step-text { font-size: 0.8rem; }
    .thanks-whatsapp-cta { font-size: 0.92rem; }
    .thanks-summary dl div { grid-template-columns: 76px 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE ADMIN
   ============================================================ */
@media (max-width: 768px) {
    .mobile-topbar { display: flex; }
    .admin-sidebar {
        left: calc(-1 * var(--sidebar-w) - 10px);
        top: 0;
    }
    .admin-sidebar.open { left: 0; box-shadow: 8px 0 32px rgba(0,0,0,0.5); }
    .admin-main { margin-left: 0; padding-top: 56px; }
    .page-header { padding: 1.5rem 1rem 0; }
    .page-content { padding: 0 1rem 1.5rem; }
    .kanban-outer { padding-left: 1rem; padding-right: 1rem; }
    .metrics-grid { grid-template-columns: 1fr 1fr; gap: 0.875rem; }
}
@media (max-width: 959px) {
    .public-main { align-items: flex-start; padding: 2rem 0; }
    .quiz-layout { gap: 2rem; }
    .quiz-info { text-align: center; }
    .quiz-info-sub { margin-left: auto; margin-right: auto; }
    .quiz-trust-badges { justify-content: center; }
    .quiz-benefits { max-width: 520px; margin-left: auto; margin-right: auto; text-align: left; }
    .quiz-card { margin: 0 auto; }
}
@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 1.2rem; }
    .quiz-card { padding: 1.25rem; }
    .public-header { padding: 1rem 0; }
    .public-header-inner, .public-main-inner { padding-left: 1rem; padding-right: 1rem; }
    .public-logo { max-height: 38px; max-width: 170px; }
    .public-header-badge { font-size: 0.65rem; padding: 0.28rem 0.55rem; }
    .public-main { padding: 1.5rem 0; }
    .quiz-info h1 { font-size: 1.75rem; }
    .quiz-info-sub { font-size: 0.9rem; }
    .quiz-trust-badges { gap: 0.4rem; margin-bottom: 1.25rem; }
    .trust-badge { font-size: 0.68rem; padding: 0.3rem 0.55rem; }
    .quiz-benefits li { font-size: 0.82rem; }
    .option-grid-2 { grid-template-columns: 1fr; }
    .option-card { min-height: 50px; padding: 0.75rem 0.85rem; }
    .quiz-step-question { font-size: 1.05rem; }
    .quiz-nav { align-items: stretch; }
    .quiz-nav .btn-quiz-cta { min-width: 0; flex: 1; }
    .btn-quiz-back { padding: 0.75rem 0.25rem; }
    .consent-wrap { padding: 0.75rem; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--c-slate-100); }
::-webkit-scrollbar-thumb { background: var(--c-slate-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-slate-400); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.fade-in { animation: fadeIn 0.4s ease; }

/* ============================================================
   DELETE CONFIRMATION MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}
.modal-box {
    background: #fff;
    border-radius: var(--r-xl);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.modal-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.modal-title { font-size: 1.1rem; font-weight: 800; color: var(--c-slate-900); margin-bottom: 0.5rem; }
.modal-sub { font-size: 0.85rem; color: var(--c-slate-500); margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: center; }

/* ============================================================
   img-fluid
   ============================================================ */
.img-fluid { max-width: 100%; height: auto; }

/* ============================================================
   SETTINGS PAGE
   ============================================================ */
.settings-section {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-xs);
}
.settings-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--c-slate-100);
    background: var(--c-slate-50);
}
.settings-section-icon {
    font-size: 1.35rem;
    width: 44px;
    height: 44px;
    background: rgba(10,42,94,0.06);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.settings-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-slate-900);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}
.settings-section-sub {
    font-size: 0.8rem;
    color: var(--c-slate-500);
    font-weight: 400;
}
.settings-section-body {
    padding: 1.5rem;
}

/* Toggle Switch */
.settings-toggle-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--c-slate-50);
    border: 1px solid var(--c-slate-200);
    border-radius: var(--r-md);
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}
.settings-toggle-info { flex: 1; min-width: 180px; }
.settings-toggle-label { font-size: 0.9rem; font-weight: 700; color: var(--c-slate-900); margin-bottom: 0.25rem; }
.settings-toggle-desc { font-size: 0.78rem; color: var(--c-slate-500); line-height: 1.4; }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--c-slate-300);
    border-radius: var(--r-full);
    transition: var(--t-smooth);
}
.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: var(--t-smooth);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background-color: var(--c-success); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ============================================================
   UTILITIES — MISSING
   ============================================================ */
.justify-between { justify-content: space-between; }
.lead-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-slate-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--c-slate-100);
}
