/* =====================================================================
   EzDescriptive — site design system (v4)
   Used by every student-facing page EXCEPT the test screen (test.php),
   which has its own self-contained styles and is intentionally untouched.
   Brand colours come from Admin → Settings (--brand / --accent).
   ===================================================================== */
:root {
    --brand: #4f46e5;
    --accent: #f59e0b;
    --brand-600: color-mix(in srgb, var(--brand) 88%, #000);
    --brand-700: color-mix(in srgb, var(--brand) 72%, #000);
    --brand-50: color-mix(in srgb, var(--brand) 7%, #fff);
    --brand-100: color-mix(in srgb, var(--brand) 14%, #fff);
    --brand-200: color-mix(in srgb, var(--brand) 26%, #fff);
    --accent-50: color-mix(in srgb, var(--accent) 12%, #fff);
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e5e7eb;
    --line-2: #eef0f4;
    --bg: #f7f8fc;
    --surface: #ffffff;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 4px 10px -6px rgba(15, 23, 42, .08);
    --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .25);
    --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ------------------------------------------------------------------ base */
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink-2); font-family: var(--font); font-size: 15.5px; line-height: 1.6;
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--ink); font-weight: 700; letter-spacing: -.015em; }
a { color: var(--brand); } a:hover { color: var(--brand-700); text-decoration: none; }
.text-primary { color: var(--brand) !important; }
.text-muted { color: var(--muted) !important; }
.small, small { font-size: .86em; }
hr { border-color: var(--line); }
::selection { background: var(--brand-100); color: var(--ink); }
.main-container { min-height: 70vh; }
.container-narrow { max-width: 880px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
           text-transform: uppercase; color: var(--brand); }
.text-gradient { background: linear-gradient(92deg, var(--brand) 10%, color-mix(in srgb, var(--brand) 40%, #ec4899) 90%);
                 -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 800; margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.bg-surface { background: var(--surface); }
.bg-soft { background: linear-gradient(180deg, var(--brand-50), transparent 70%); }

/* ------------------------------------------------------------------ buttons */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .55rem 1.1rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
.btn:focus, .btn.focus { box-shadow: 0 0 0 4px var(--brand-100) !important; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: .35rem .8rem; font-size: .84rem; border-radius: 8px; }
.btn-primary, .btn-primary:not(:disabled):not(.disabled):active { background: var(--brand); border-color: var(--brand); color: #fff;
               box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 65%, transparent); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand-200); background: #fff; }
.btn-outline-primary:hover, .btn-outline-primary:not(:disabled):not(.disabled):active { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand); }
.btn-outline-secondary { color: var(--ink-2); border-color: var(--line); background: #fff; }
.btn-outline-secondary:hover { background: #f1f5f9; color: var(--ink); border-color: #cbd5e1; }
.btn-light { background: #f1f5f9; border-color: #f1f5f9; color: var(--ink-2); }
.btn-light:hover { background: #e2e8f0; border-color: #e2e8f0; }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-outline-success { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, #fff); }
.btn-outline-success:hover { background: color-mix(in srgb, var(--success) 8%, #fff); color: var(--success); border-color: var(--success); }
.btn-subscribe { background: var(--accent); border-color: var(--accent); color: #1f1300; font-weight: 700;
                 box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-subscribe:hover { background: color-mix(in srgb, var(--accent) 88%, #000); border-color: color-mix(in srgb, var(--accent) 88%, #000); color: #1f1300; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: #f8fafc; color: var(--brand-700); transform: translateY(-1px); }
.btn-ghost-white { color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.btn-ghost-white:hover { color: #fff; background: rgba(255,255,255,.16); }
.btn-icon { display: inline-flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ navbar */
.navbar-custom { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .82);
                 backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
                 border-bottom: 1px solid rgba(15, 23, 42, .06); padding: .7rem 0; }
.navbar-custom .navbar-brand { font-weight: 800; color: var(--ink); font-size: 1.2rem; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; font-size: .95rem;
              background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #ec4899)); box-shadow: 0 6px 14px -6px var(--brand); }
.navbar-custom .nav-link { color: var(--ink-2); font-weight: 600; font-size: .94rem; padding: .45rem .85rem !important; border-radius: 999px; }
.navbar-custom .nav-link:hover { color: var(--ink); background: #f1f5f9; }
.navbar-custom .nav-link.active { color: var(--brand); background: var(--brand-50); }
.navbar-custom .navbar-toggler { border: 0; padding: .4rem .55rem; border-radius: 10px; }
.navbar-custom .navbar-toggler:focus { outline: none; box-shadow: 0 0 0 3px var(--brand-100); }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem;
              background: var(--brand-100); color: var(--brand-700); }
.nav-user .dropdown-toggle::after { display: none; }
.nav-user .dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: 8px; min-width: 220px; margin-top: 10px; }
.nav-user .dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-weight: 500; font-size: .93rem; }
.nav-user .dropdown-item i { width: 18px; color: var(--muted); }
.nav-user .dropdown-item:active { background: var(--brand-50); color: var(--brand-700); }
.pill-premium { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: .3rem .7rem;
                border-radius: 999px; background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse { padding: 12px 0 6px; }
    .navbar-custom .nav-link { padding: .6rem .9rem !important; }
}

/* ------------------------------------------------------------------ cards & surfaces */
.card { border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-custom { border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
.card > .card-header, .card-custom > .card-header { background: #fff; border-bottom: 1px solid var(--line-2); padding: 1rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 1.35rem; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.surface { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------------ forms */
.form-control, .custom-select { border-radius: var(--radius-sm); border: 1px solid #dbe1ea; min-height: 46px; padding: .55rem .9rem; color: var(--ink); background: #fff;
                                transition: border-color .15s, box-shadow .15s; }
textarea.form-control { min-height: 120px; }
.form-control:focus, .custom-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.form-control::placeholder { color: #9aa4b2; }
label { font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: .35rem; }
.form-text { color: var(--muted); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.input-icon > .form-control { padding-left: 2.5rem; }

/* ------------------------------------------------------------------ alerts, badges, tables */
.alert { border: 1px solid transparent; border-radius: 12px; padding: .85rem 1.1rem; }
.alert-success { background: #ecfdf5; border-color: #bbf7d0; color: #166534; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.alert-light { background: #f8fafc; color: var(--ink-2); }
.alert .close { opacity: .45; text-shadow: none; }
.flash-wrap { position: relative; z-index: 5; }
.badge { font-weight: 700; border-radius: 999px; padding: .35em .7em; letter-spacing: .01em; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-light { background: #f1f5f9; color: var(--ink-2); }
.badge-secondary { background: #e2e8f0; color: var(--ink-2); }
.table { color: var(--ink-2); }
.table thead th { border-top: 0; border-bottom: 1px solid var(--line); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.table td, .table th { border-top-color: var(--line-2); vertical-align: middle; }
.table-hover tbody tr:hover { background: #f8fafc; }

/* ------------------------------------------------------------------ page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: 44px 0 34px;
             background: radial-gradient(900px 260px at 10% -40%, var(--brand-100), transparent 60%),
                         radial-gradient(700px 240px at 100% 0%, color-mix(in srgb, #ec4899 10%, #fff), transparent 60%), var(--surface);
             border-bottom: 1px solid var(--line-2); }
.page-hero h1 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 800; margin: 6px 0 6px; }
.page-hero p { color: var(--muted); margin: 0; max-width: 680px; }
.crumbs { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--brand); }
.page-body { padding-top: 32px; padding-bottom: 24px; }

/* ------------------------------------------------------------------ prose (legal / about) */
.prose { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(22px, 4vw, 44px); }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.8rem; margin-bottom: .7rem; font-size: 1.2rem; }
.prose h2:first-child, .prose h3:first-child, .prose h4:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.75; }
.prose .lead { font-size: 1.12rem; color: var(--ink); }
.policy-container, .about-container { max-width: none !important; margin: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }

/* ------------------------------------------------------------------ stat tiles */
.stat-tile { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 18px; box-shadow: var(--shadow-sm); height: 100%; text-align: left; position: relative; }
.stat-tile .num { font-size: 1.75rem; font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
.stat-tile .lbl { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.stat-tile .ico { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
                  background: var(--brand-50); color: var(--brand); font-size: 1rem; }
.stat-tile .ico.green { background: #ecfdf5; color: var(--success); }
.stat-tile .ico.amber { background: #fffbeb; color: var(--warning); }
.stat-tile .ico.pink { background: #fdf2f8; color: #db2777; }
.text-center .stat-tile, .stat-tile.text-center { text-align: center; }

/* ------------------------------------------------------------------ dashboard */
.dash-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 30px 30px; color: #fff; margin-bottom: 24px;
             background: radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,.18), transparent 60%),
                         linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #7c3aed)); box-shadow: var(--shadow-md); }
.dash-hero::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.dash-hero h1 { color: #fff; font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 800; margin: 0 0 6px; }
.dash-hero .sub { opacity: .9; }
.dash-hero .plan-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
                        padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.dash-hero a.link-white { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dashboard-header { /* legacy class kept for compatibility */ }
.next-card { display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.next-card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.resume-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.block-title { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 14px; }
.block-title h2 { font-size: 1.15rem; margin: 0; }
.result-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line-2); color: inherit; }
.result-row:first-child { border-top: 0; }
.result-row:hover { background: #f8fafc; color: inherit; }
.result-row .title { font-weight: 600; color: var(--ink); line-height: 1.3; }
.score-pill { font-weight: 800; font-size: .9rem; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.score-pill.good { background: #dcfce7; color: #166534; } .score-pill.mid { background: #fef3c7; color: #92400e; } .score-pill.low { background: #fee2e2; color: #991b1b; }

/* ------------------------------------------------------------------ category cards */
.category-nav-card { display: flex; flex-direction: column; align-items: flex-start !important; text-align: left; gap: 2px; padding: 18px; border: 1px solid var(--line-2);
                     border-radius: var(--radius); background: var(--surface); height: 100%; color: inherit; box-shadow: var(--shadow-xs);
                     transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; }
.category-nav-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); color: inherit; }
.category-nav-card img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; margin-bottom: 12px; background: var(--brand-50); }
.category-nav-card .cat-initial { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; font-weight: 800; font-size: 1.1rem; color: #fff; }
.category-nav-card h5, .category-nav-card .h6 { font-weight: 700; color: var(--ink); font-size: 1rem; margin: 0 0 4px; line-height: 1.3; }
.category-nav-card small { color: var(--muted); }
.category-nav-card .go { position: absolute; right: 16px; top: 18px; color: #cbd5e1; transition: color .2s, transform .2s; }
.category-nav-card:hover .go { color: var(--brand); transform: translateX(3px); }
.cat-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); }
.chip.free { background: #dcfce7; color: #166534; } .chip.brand { background: var(--brand-50); color: var(--brand-700); }

/* ------------------------------------------------------------------ test list (category page) */
.filter-tabs { display: inline-flex; gap: 4px; background: #eef1f6; padding: 4px; border-radius: 12px; }
.filter-tabs button { border: 0; background: transparent; padding: .42rem .95rem; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.filter-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.test-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
             box-shadow: var(--shadow-xs); color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.test-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); color: inherit; }
.test-card.locked { background: linear-gradient(180deg, #fff, #fffbf2); }
.test-card .t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.test-card .t-num { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; background: var(--brand-50); color: var(--brand-700); font-size: .9rem; }
.test-card.locked .t-num { background: #fef3c7; color: #92400e; }
.test-card h6 { font-weight: 700; color: var(--ink); margin: 0; line-height: 1.35; font-size: .98rem; }
.test-card .t-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--muted); }
.test-card .t-meta i { margin-right: 4px; }
.test-card .t-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.test-card .best { font-size: .82rem; color: var(--muted); }
.test-card .best strong { color: var(--ink); }
.test-item { transition: background .15s; } .test-item:hover { background: #f8fafc; } .test-item.locked { background: #fffdf7; }
.premium-badge { font-size: .68rem; vertical-align: middle; margin-left: 5px; }

/* ------------------------------------------------------------------ upsell / AI panels */
.upsell { border: 1px solid #fde68a; background: linear-gradient(135deg, #fffbeb, #fff7ed); border-radius: var(--radius); padding: 18px 20px; }
.upsell strong { color: #78350f; }
.ai-panel { border: 1px solid #e9e5ff; border-left: 4px solid #7c3aed; background: linear-gradient(180deg, #faf8ff, #fff); border-radius: 14px; padding: 18px; }
.ai-badge { background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff; }

/* ------------------------------------------------------------------ results */
.score-hero { display: flex; align-items: center; gap: 22px; }
.ring { --p: 0; --ring: var(--brand); width: 132px; height: 132px; border-radius: 50%; flex: none; display: grid; place-items: center;
        background: conic-gradient(var(--ring) calc(var(--p) * 1%), #edf0f6 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.ring > div { position: relative; text-align: center; line-height: 1.1; }
.ring .pct { font-size: 1.75rem; font-weight: 800; color: var(--ink); }
.ring .of { font-size: .78rem; color: var(--muted); font-weight: 600; }
.score-ring { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.crit-bar { height: 8px; border-radius: 999px; background: #edf0f6; overflow: hidden; }
.crit-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #ec4899)); }
.answer-box { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; font-size: .95rem; color: var(--ink-2); line-height: 1.7; }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.q-badge { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 800; background: var(--brand-50); color: var(--brand-700); font-size: .85rem; margin-right: 8px; }

/* ------------------------------------------------------------------ FAQ accordion */
.faq-section .accordion .card { border: 1px solid var(--line-2) !important; border-radius: 14px !important; margin-bottom: 10px; box-shadow: none; overflow: hidden; background: #fff; }
.faq-section .card-header { background: #fff; cursor: pointer; border: 0; padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: 14px !important; }
.faq-section .card-header h3 { font-weight: 600; font-size: .98rem; color: var(--ink); }
.faq-section .card-header::after { content: '\f067'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: .8rem; color: var(--muted); transition: transform .2s; }
.faq-section .card-header:not(.collapsed)::after { content: '\f068'; color: var(--brand); }
.faq-section .card-body { padding: 0 1.2rem 1.1rem; color: var(--ink-2); font-size: .95rem; }

/* ------------------------------------------------------------------ auth pages */
.auth-wrap { min-height: calc(100vh - 70px); display: flex; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.auth-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); max-width: 980px; margin: 0 auto; }
.auth-side { position: relative; padding: 44px; color: #fff; background: radial-gradient(500px 300px at 0% 0%, rgba(255,255,255,.18), transparent 60%),
             linear-gradient(150deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #7c3aed)); display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-weight: 800; font-size: 1.7rem; line-height: 1.25; }
.auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; opacity: .95; }
.auth-side li i { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: .75rem; flex: none; margin-top: 2px; }
.auth-side .quote { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 14px 16px; font-size: .9rem; }
.auth-main { padding: 44px; }
.auth-main h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.auth-single { max-width: 460px; margin: 0 auto; }
@media (max-width: 767.98px) { .auth-card { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding: 28px 22px; } .auth-wrap { min-height: 0; padding-top: 24px; padding-bottom: 24px; } }

/* ------------------------------------------------------------------ pricing */
.pricing-card { background: var(--surface); border: 1px solid var(--line-2) !important; border-radius: 20px !important; box-shadow: var(--shadow-sm); padding: 28px; height: 100%; position: relative;
                transition: transform .2s, box-shadow .2s; text-align: left; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.best, .pricing-card.popular { border: 2px solid var(--brand) !important; box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--brand) 60%, transparent); }
.pricing-card .plan-name { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.pricing-card .price { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.pricing-card .per { color: var(--muted); font-weight: 500; }
.pricing-card ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.pricing-card li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: .93rem; }
.pricing-card li i { color: var(--success); margin-top: 4px; font-size: .8rem; }
.ribbon { position: absolute; top: -13px; left: 24px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #ec4899)); color: #fff;
          padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; }
.gw-toggle { display: inline-flex; gap: 4px; background: #eef1f6; padding: 4px; border-radius: 12px; }
.gw-toggle .btn { border: 0 !important; background: transparent; color: var(--ink-2); box-shadow: none !important; }
.gw-toggle .btn.active { background: #fff !important; color: var(--ink) !important; box-shadow: var(--shadow-sm) !important; }
.trust-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.trust-row i { color: var(--success); margin-right: 6px; }

/* ------------------------------------------------------------------ landing page */
.lp-hero { position: relative; overflow: hidden; padding: 72px 0 84px;
           background: radial-gradient(800px 420px at 85% -10%, color-mix(in srgb, var(--brand) 22%, #fff), transparent 65%),
                       radial-gradient(700px 400px at -10% 30%, color-mix(in srgb, #ec4899 12%, #fff), transparent 60%), #fbfbfe; }
.lp-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
                   background-image: linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
                   background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.lp-hero .container { position: relative; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
            box-shadow: var(--shadow-xs); font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.lp-badge span { background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: .74rem; font-weight: 700; }
.lp-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; margin: 22px 0 18px; color: var(--ink); }
.lp-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.lp-proof { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.lp-proof .avatars { display: flex; }
.lp-proof .avatars span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; }
.lp-proof .avatars span:first-child { margin-left: 0; }
.lp-proof strong { color: var(--ink); }

/* hero product preview (pure CSS, no images) */
.mock { position: relative; max-width: 500px; margin-left: auto; }
.mock-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); padding: 22px; }
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-top .dots { display: flex; gap: 6px; } .mock-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; display: block; }
.mock-score { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid var(--brand-100); }
.mock .ring { width: 96px; height: 96px; } .mock .ring::before { inset: 9px; } .mock .ring .pct { font-size: 1.35rem; }
.mock-crit { margin-top: 16px; }
.mock-crit .row-c { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin: 10px 0 5px; }
.mock-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #faf8ff; border: 1px solid #ede9fe; font-size: .84rem; color: #4c1d95; }
.mock-note b { color: #5b21b6; }
.mock-float { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-md); border: 1px solid var(--line-2); padding: 10px 14px; font-size: .82rem; font-weight: 600; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.mock-float i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.mock-float.f1 { left: -26px; top: -20px; } .mock-float.f1 i { background: #ecfdf5; color: var(--success); }
.mock-float.f2 { right: -22px; bottom: -22px; } .mock-float.f2 i { background: #fff7ed; color: #ea580c; }
.mock del { color: var(--danger); text-decoration-thickness: 2px; } .mock ins { color: var(--success); text-decoration: none; font-weight: 700; }
@media (max-width: 991.98px) { .mock { margin: 46px auto 0; } .mock-float.f1 { left: -8px; } .mock-float.f2 { right: -6px; } }
@media (max-width: 575.98px) { .mock-float { display: none; } .lp-hero { padding: 44px 0 56px; } .section { padding: 60px 0; } }

.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.logo-strip span { padding: .45rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .85rem; color: var(--ink-2); }

.steps { counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; height: 100%; box-shadow: var(--shadow-xs); position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 22px; right: 24px; font-weight: 800; font-size: 1.6rem; color: var(--line); }
.step .ico, .feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 16px; background: var(--brand-50); color: var(--brand); }
.step h3, .feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p, .feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature { grid-column: span 2; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-xs); }
.feature.wide { grid-column: span 3; }
.feature.dark { background: linear-gradient(150deg, #0f172a, #1e1b4b); color: #cbd5e1; border-color: #1e293b; }
.feature.dark h3 { color: #fff; } .feature.dark p { color: #94a3b8; } .feature.dark .ico { background: rgba(255,255,255,.08); color: #a5b4fc; }
.feature .ico.green { background: #ecfdf5; color: var(--success); } .feature .ico.amber { background: #fffbeb; color: var(--warning); } .feature .ico.pink { background: #fdf2f8; color: #db2777; }
.feature .mini-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .88rem; }
.feature .mini-list li i { color: var(--success); margin-right: 6px; }
.feature.dark .mini-list li i { color: #86efac; }
@media (max-width: 991.98px) { .bento { grid-template-columns: repeat(2, 1fr); } .feature, .feature.wide { grid-column: span 1; } }
@media (max-width: 575.98px) { .bento { grid-template-columns: 1fr; } .feature .mini-list { grid-template-columns: 1fr; } }

.cta-band { border-radius: 26px; padding: clamp(32px, 5vw, 56px); color: #fff; position: relative; overflow: hidden;
            background: radial-gradient(500px 300px at 90% 10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #7c3aed)); }
.cta-band h2 { color: #fff; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,.88); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: #0b1120; color: #94a3b8; padding: 64px 0 28px; margin-top: 72px; }
.site-footer h5, .site-footer h6 { color: #fff; }
.site-footer h6 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: #94a3b8; } .site-footer a:hover { color: #fff; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: inline-grid; place-items: center; margin-right: 8px; color: #cbd5e1; }
.site-footer .social a:hover { background: var(--brand); color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 22px; font-size: .86rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.site-footer .brand-mark { box-shadow: none; }

/* ------------------------------------------------------------------ misc */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .ico { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.5rem; }
.kbd-list { display: grid; gap: 10px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line-2); }
.info-row .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.modal-content { border-radius: 18px; border: 0; box-shadow: var(--shadow-lg); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 576px) { body { font-size: 15px; } .score-ring { font-size: 2.1rem; } .card-body { padding: 1.1rem; } .dash-hero { padding: 24px 20px; border-radius: 18px; } }
.cat-mark-lg img, .cat-mark-lg .cat-initial { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; object-fit: cover; background: #fff; box-shadow: var(--shadow-sm); }
.footer-exams { columns: 2; column-gap: 20px; }
.footer-exams li { break-inside: avoid; }
