﻿/* ── Design Tokens ──────────────────────────────────────────────── */
:root {
    --bg: #f5f3ef;
    --bg-card: #ffffff;
    --bg-subtle: #ede9e2;
    --fg: #1a1713;
    --fg-muted: #6b6560;
    --fg-faint: #b5b0aa;
    --accent: #e8530a;
    --accent-hover: #c94208;
    --accent-light: #fdf0ea;
    --blue: #2563eb;
    --blue-light: #eff6ff;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --red: #dc2626;
    --red-light: #fef2f2;
    --yellow: #d97706;
    --yellow-light: #fffbeb;
    --border: #e2ddd6;
    --border-strong: #c9c2b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: 0.18s ease;
}

[data-theme="dark"] {
    --bg: #0f0e0d;
    --bg-card: #1a1917;
    --bg-subtle: #222019;
    --fg: #f0ede8;
    --fg-muted: #9e9990;
    --fg-faint: #4a4640;
    --accent: #f06030;
    --accent-hover: #e8530a;
    --accent-light: #2a1a12;
    --blue: #3b82f6;
    --blue-light: #0f1f3d;
    --green: #22c55e;
    --green-light: #052e16;
    --red: #ef4444;
    --red-light: #2d0d0d;
    --yellow: #f59e0b;
    --yellow-light: #2d1f00;
    --border: #2a2724;
    --border-strong: #3d3a36;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
    --shadow: 0 4px 16px rgba(0,0,0,.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
}

/* ── Reset & Base ────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    font-size: 15px;
    transition: background var(--transition), color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

input, textarea, select, button {
    font: inherit;
}

/* ── Typography ──────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.25;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -.02em;
}

h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    color: var(--fg-muted);
}

/* ── Layout ──────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    min-height: calc(100vh - 64px);
}

.d-inline {
    display: inline;
}

.page-wrapper {
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
    height: 64px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--fg);
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav-link {
    padding: 6px 14px;
    border-radius: 8px;
    color: var(--fg-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition);
}

    .nav-link:hover {
        background: var(--bg-subtle);
        color: var(--fg);
    }

.nav-link-admin {
    color: var(--accent);
}

.nav-actions {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--fg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition);
}

    .theme-toggle:hover {
        background: var(--bg-subtle);
        color: var(--fg);
    }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--accent-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(232,83,10,.3);
    }

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--fg);
}

    .btn-secondary:hover {
        background: var(--border);
    }

.btn-ghost {
    background: transparent;
    color: var(--fg-muted);
    border: 1px solid var(--border);
}

    .btn-ghost:hover {
        background: var(--bg-subtle);
        color: var(--fg);
    }

.btn-danger {
    background: var(--red);
    color: #fff;
}

    .btn-danger:hover {
        opacity: .88;
    }

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

    .card:hover {
        box-shadow: var(--shadow);
    }

.card-header {
    margin-bottom: 16px;
}

.card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--fg);
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--fg-muted);
}

/* ── Badges / Tags ───────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge-accent {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-blue {
    background: var(--blue-light);
    color: var(--blue);
}

.badge-green {
    background: var(--green-light);
    color: var(--green);
}

.badge-red {
    background: var(--red-light);
    color: var(--red);
}

.badge-yellow {
    background: var(--yellow-light);
    color: var(--yellow);
}

.badge-muted {
    background: var(--bg-subtle);
    color: var(--fg-muted);
}

/* ── Forms ───────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--fg);
    margin-bottom: 6px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--fg);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-size: 0.9rem;
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(232,83,10,.12);
    }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .form-check input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--accent);
        cursor: pointer;
    }

.text-danger {
    color: var(--red);
    font-size: 0.82rem;
}

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin: 16px 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: var(--green-light);
    color: var(--green);
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid #fecaca;
}

/* ── Stats / Metric Cards ────────────────────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--fg-muted);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 450;
    color: var(--fg);
    margin: 5px 0 2px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.num {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    letter-spacing: -.01em;
}

.num-unit {
    font-size: .7em;
    font-weight: 400;
    color: var(--fg-muted);
    margin-left: 2px;
    letter-spacing: 0;
}

.stat-sub {
    font-size: 0.82rem;
    color: var(--fg-muted);
}

.stat-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* ── Exam Cards ──────────────────────────────────────────────────── */
.exam-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
}

    .exam-card:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.exam-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.exam-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--fg);
}

.exam-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.exam-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exam-locked {
    opacity: 0.7;
}

    .exam-locked .exam-card:hover {
        border-color: var(--border);
        transform: none;
    }

.lock-overlay {
    font-size: 0.82rem;
    color: var(--fg-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Exam Taking UI ──────────────────────────────────────────────── */
.exam-shell {
    display: flex;
    height: calc(100vh - 64px);
}

.exam-sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.exam-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.exam-timer {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--fg);
    text-align: center;
}

    .exam-timer.danger {
        color: var(--red);
        animation: pulse 1s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}

.q-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--fg-muted);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .q-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

    .q-btn.answered {
        background: var(--blue);
        border-color: var(--blue);
        color: #fff;
    }

    .q-btn.flagged {
        background: var(--yellow);
        border-color: var(--yellow);
        color: #fff;
    }

    .q-btn.active {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(232,83,10,.2);
    }

.exam-submit-area {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.exam-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.exam-top-bar {
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--fg-muted);
}

.exam-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.question-panel {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    max-width: 700px;
}

.passage-panel {
    width: 380px;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    padding: 24px;
    background: var(--bg-subtle);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--fg-muted);
}

.question-number {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 12px;
}

.question-stem {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 24px;
    line-height: 1.65;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.choice-item {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

    .choice-item:hover {
        border-color: var(--accent);
        background: var(--accent-light);
    }

    .choice-item.selected {
        border-color: var(--blue);
        background: var(--blue-light);
    }

    .choice-item.correct {
        border-color: var(--green);
        background: var(--green-light);
    }

    .choice-item.incorrect {
        border-color: var(--red);
        background: var(--red-light);
    }

.choice-label {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.choice-item.selected .choice-label {
    background: var(--blue);
    color: #fff;
}

.choice-text {
    flex: 1;
    font-size: 0.95rem;
    padding-top: 2px;
}

.grid-in-input {
    max-width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    text-align: center;
    background: var(--bg);
    color: var(--fg);
}

    .grid-in-input:focus {
        border-color: var(--accent);
        outline: none;
        box-shadow: 0 0 0 3px rgba(232,83,10,.12);
    }

.question-nav {
    padding: 16px 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flag-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fg-muted);
    transition: all var(--transition);
}

    .flag-btn:hover, .flag-btn.active {
        border-color: var(--yellow);
        background: var(--yellow-light);
        color: var(--yellow);
    }

.desmos-container {
    height: 300px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

.explanation-box {
    margin-top: 24px;
    padding: 20px;
    background: var(--blue-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.65;
}

.explanation-title {
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Results ─────────────────────────────────────────────────────── */
.score-hero {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.score-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--bg-subtle) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
}

    .score-ring::before {
        content: '';
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: var(--bg-card);
        position: absolute;
    }

.score-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.score-pct {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--fg);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.score-label {
    font-size: 0.75rem;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.sat-score-estimate {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 450;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.topic-bar {
    margin-bottom: 12px;
}

.topic-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    margin-bottom: 5px;
    color: var(--fg-muted);
}

.topic-bar-track {
    height: 8px;
    background: var(--bg-subtle);
    border-radius: 4px;
    overflow: hidden;
}

.topic-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width .5s ease;
}

.review-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
}

.review-item-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--bg-card);
}

    .review-item-header:hover {
        background: var(--bg-subtle);
    }

.review-item-body {
    padding: 16px;
    background: var(--bg);
    display: none;
}

    .review-item-body.open {
        display: block;
    }

/* ── Table ───────────────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-subtle);
}

th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fg-muted);
}

td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--fg);
}

tr:hover td {
    background: var(--bg-subtle);
}

/* ── Landing ─────────────────────────────────────────────────────── */
.landing-hero {
    padding: 96px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--fg);
    margin-bottom: 24px;
}

    .hero-headline em {
        color: var(--accent);
        font-style: normal;
    }

.hero-sub {
    font-size: 1.2rem;
    color: var(--fg-muted);
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.features-section {
    padding: 96px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 16px;
}

.feature-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

    .feature-card:hover {
        border-color: var(--accent);
        transform: translateY(-3px);
        box-shadow: var(--shadow);
    }

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.feature-name {
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--fg);
    margin-bottom: 8px;
}

.pricing-section {
    padding: 96px 32px;
    background: var(--bg-subtle);
}

.pricing-inner {
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
}

    .pricing-card.featured {
        border-color: var(--accent);
        box-shadow: var(--shadow-lg);
    }

.price-amount {
    font-size: 2rem;
    font-weight: 350;
    color: var(--fg);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
}

.price-period {
    font-size: 0.9rem;
    color: var(--fg-muted);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .pricing-features li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9rem;
        color: var(--fg-muted);
    }

        .pricing-features li::before {
            content: '✓';
            color: var(--green);
            font-weight: 700;
        }

/* ── Admin ───────────────────────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.admin-sidebar {
    width: 220px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-item {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--fg-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .admin-nav-item:hover, .admin-nav-item.active {
        background: var(--accent-light);
        color: var(--accent);
    }

.admin-content {
    flex: 1;
    padding: 32px;
    overflow-x: auto;
}

.admin-header {
    margin-bottom: 32px;
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -.01em;
}

/* ── Source Pills ────────────────────────────────────────────────── */
.source-sat {
    background: #fff3e0;
    color: #e65100;
}

.source-panda {
    background: #fce4ec;
    color: #c62828;
}

.source-kaplan {
    background: #e3f2fd;
    color: #1565c0;
}

.source-custom {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* ── Utilities ─────────────*/

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--fg-muted);
}

.text-accent {
    color: var(--accent);
}

.text-green {
    color: var(--green);
}

.text-red {
    color: var(--red);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none;
}

/* ── Page transitions ────────────────────────────────────────────── */
.page-enter {
    animation: fadeUp .3s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ── Notification Bell ───────────────────────────────────────────── */
.notif-bell {
    position: relative;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    transition: background .18s;
    user-select: none;
}

    .notif-bell:hover {
        background: var(--bg-subtle);
    }

.notif-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.notif-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    background: var(--red, #dc2626);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
    border: 2px solid var(--bg);
}

/* ── Dropdown ───────────────────────────────────────────────────── */
.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.13);
    z-index: 9999;
    overflow: hidden;
}

    .notif-dropdown.open {
        display: block;
    }

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: .9rem;
    color: var(--fg);
}

.notif-mark-all {
    background: none;
    border: none;
    font-size: .78rem;
    color: var(--accent);
    cursor: pointer;
    padding: 0;
    font-weight: 500;
}

    .notif-mark-all:hover {
        text-decoration: underline;
    }

.notif-list {
    max-height: 360px;
    overflow-y: auto;
}

.notif-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--fg-muted);
    font-size: .88rem;
}

/* ── Individual item ────────────────────────────────────────────── */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
    position: relative;
}

    .notif-item:last-child {
        border-bottom: none;
    }

    .notif-item:hover {
        background: var(--bg-subtle);
    }

    .notif-item.notif-unread {
        background: var(--accent-light, rgba(232,83,10,.05));
    }

        .notif-item.notif-unread:hover {
            background: var(--accent-light, rgba(232,83,10,.09));
        }

.notif-item-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-weight: 600;
    font-size: .85rem;
    color: var(--fg);
    margin-bottom: 3px;
}

.notif-item-msg {
    font-size: .8rem;
    color: var(--fg-muted);
    line-height: 1.45;
    margin-bottom: 4px;
    white-space: normal;
}

.notif-item-time {
    font-size: .72rem;
    color: var(--fg-faint, #b5b0aa);
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}