/* ============================================================
   SCIKIQ Sales Training Platform — Design System
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
    --bg-base: #0b0f19;
    --bg-surface: #111827;
    --bg-surface-2: #1a2234;
    --bg-surface-3: #1f2b3d;
    --bg-hover: #243147;

    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --primary-glow-strong: rgba(99, 102, 241, 0.3);

    --success: #10b981;
    --success-light: #34d399;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-border: rgba(16, 185, 129, 0.3);

    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.3);

    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-border: rgba(239, 68, 68, 0.3);

    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --info-border: rgba(59, 130, 246, 0.3);

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #f1f5f9;

    --border: #1e293b;
    --border-light: #334155;
    --border-hover: #475569;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-cool: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --gradient-bg: linear-gradient(135deg, #0b0f19 0%, #111827 50%, #0f172a 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(99,102,241,0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;

    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ── Base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--text-heading); font-weight: 700; line-height: 1.3; }
a { color: var(--primary-light); transition: color var(--transition-fast); }
a:hover { color: var(--primary); text-decoration: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar-custom {
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    padding: 0.6rem 0;
}

.navbar-brand-custom {
    font-weight: 800;
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--text-primary) !important;
    background: var(--primary-glow);
}

.nav-link-custom.active { color: var(--primary-light) !important; }

.user-avatar {
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: white;
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumb-custom { background: transparent; padding: 0.75rem 0; margin-bottom: 0; font-size: 0.85rem; }
.breadcrumb-custom .breadcrumb-item { color: var(--text-muted); }
.breadcrumb-custom .breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-custom .breadcrumb-item a:hover { color: var(--primary-light); }
.breadcrumb-custom .breadcrumb-item.active { color: var(--text-primary); }
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { content: "›"; color: var(--text-muted); }

/* ── Cards ────────────────────────────────────────────────── */
.card-custom {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    overflow: hidden;
}
.card-custom:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-custom .card-body { padding: 1.25rem; }

.card-accent { border-top: 3px solid transparent; border-image: var(--gradient-primary) 1; }
.card-accent-success { border-image: var(--gradient-success) 1; }
.card-accent-warm { border-image: var(--gradient-warm) 1; }

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
    transition: all var(--transition-base);
}
.stat-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }
.stat-card .stat-label {
    font-size: 0.8rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 0.25rem;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text-heading); line-height: 1.2; }
.stat-card .stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.stat-icon-primary { background: var(--primary-glow); color: var(--primary-light); }
.stat-icon-success { background: var(--success-bg); color: var(--success); }
.stat-icon-warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon-info { background: var(--info-bg); color: var(--info); }

/* ── Progress Ring ────────────────────────────────────────── */
.progress-ring {
    width: 56px; height: 56px;
    border-radius: var(--radius-full);
    background: conic-gradient(var(--primary) calc(var(--progress) * 3.6deg), var(--bg-surface-3) 0deg);
    display: flex; align-items: center; justify-content: center;
    position: relative; flex-shrink: 0;
}
.progress-ring::after {
    content: attr(data-label);
    width: 42px; height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: var(--text-primary);
}
.progress-ring-success { background: conic-gradient(var(--success) calc(var(--progress) * 3.6deg), var(--bg-surface-3) 0deg); }
.progress-ring-sm { width: 40px; height: 40px; }
.progress-ring-sm::after { width: 30px; height: 30px; font-size: 0.65rem; }

/* ── Score Badges ─────────────────────────────────────────── */
.score-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.75rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-master { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-practitioner { background: var(--info-bg); color: var(--info); border: 1px solid var(--info-border); }
.badge-associate { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-beginner { background: rgba(100,116,139,0.1); color: var(--text-muted); border: 1px solid rgba(100,116,139,0.3); }

/* ── Module Cards ─────────────────────────────────────────── */
.module-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-base);
    position: relative; overflow: hidden;
}
.module-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--gradient-primary);
}
.module-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}
.module-card .module-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--primary-glow);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary-light); margin-bottom: 0.75rem;
}
.module-card .module-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.module-card .module-desc {
    font-size: 0.85rem; color: var(--text-secondary);
    margin-bottom: 1rem; line-height: 1.5;
}
.module-card .module-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem; color: var(--text-muted);
}

/* ── Learning Path ────────────────────────────────────────── */
.learning-path { display: flex; align-items: center; gap: 0; padding: 1.5rem 0; overflow-x: auto; }
.path-node {
    display: flex; flex-direction: column; align-items: center;
    min-width: 100px; cursor: pointer; text-decoration: none;
    position: relative; z-index: 1;
}
.path-dot {
    width: 36px; height: 36px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; transition: all var(--transition-base);
    border: 2px solid var(--border-light); background: var(--bg-surface); color: var(--text-muted);
}
.path-node.completed .path-dot { background: var(--success); border-color: var(--success); color: white; }
.path-node.current .path-dot { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 0 12px rgba(99,102,241,0.4); }
.path-node:hover .path-dot { transform: scale(1.15); }
.path-label {
    font-size: 0.7rem; color: var(--text-muted);
    text-align: center; margin-top: 0.5rem; max-width: 90px; line-height: 1.3;
}
.path-node.completed .path-label { color: var(--success); }
.path-node.current .path-label { color: var(--primary-light); font-weight: 600; }
.path-connector { flex: 1; height: 2px; background: var(--border-light); min-width: 20px; }
.path-connector.completed { background: var(--success); }

/* ── Welcome Banner ───────────────────────────────────────── */
.welcome-banner {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg); padding: 2rem 2.5rem;
    position: relative; overflow: hidden; margin-bottom: 1.5rem;
}
.welcome-banner::after {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05); border-radius: var(--radius-full);
}
.welcome-banner h2 { font-size: 1.5rem; color: white; margin-bottom: 0.3rem; }
.welcome-banner p { color: rgba(255,255,255,0.8); margin-bottom: 0; font-size: 0.95rem; }

/* ── Section Content ──────────────────────────────────────── */
.section-content h4 {
    color: var(--text-heading); font-weight: 700;
    margin-top: 1.5rem; margin-bottom: 0.75rem;
    padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.section-content h5 { color: var(--primary-light); font-weight: 600; margin-top: 1.25rem; }
.section-content table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border-radius: var(--radius-sm); overflow: hidden; margin: 1rem 0; border: 1px solid var(--border);
}
.section-content table th {
    background: var(--bg-surface-2); color: var(--primary-light);
    font-weight: 600; padding: 0.75rem 1rem; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.section-content table td { padding: 0.65rem 1rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
.section-content table tr:hover td { background: var(--bg-hover); }
.section-content ul, .section-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.section-content li { margin-bottom: 0.4rem; line-height: 1.6; }
.section-content strong { color: var(--text-heading); }

.key-points {
    background: var(--primary-glow); border: 1px solid rgba(99,102,241,0.2);
    border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.25rem 1.5rem; margin: 1.25rem 0;
}
.key-points h5 { color: var(--primary-light); font-size: 0.9rem; margin-top: 0; margin-bottom: 0.75rem; }

.sales-tip {
    background: var(--success-bg); border: 1px solid var(--success-border);
    border-left: 4px solid var(--success); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.25rem 1.5rem; margin: 1.25rem 0;
}
.sales-tip h5 { color: var(--success); font-size: 0.9rem; margin-top: 0; margin-bottom: 0.75rem; }

.key-takeaway {
    background: var(--warning-bg); border: 1px solid var(--warning-border);
    border-left: 4px solid var(--warning); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.25rem 1.5rem; margin: 1.25rem 0;
}
.key-takeaway h5 { color: var(--warning); font-size: 0.9rem; margin-top: 0; margin-bottom: 0.75rem; }

.concept-card {
    background: var(--bg-surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 1.25rem; margin: 1rem 0;
}
.concept-card h5 { color: var(--text-heading); margin-top: 0; font-size: 1rem; }

.comparison-table .feature-yes { color: var(--success); font-weight: 600; }
.comparison-table .feature-partial { color: var(--warning); font-weight: 600; }
.comparison-table .feature-no { color: var(--danger); font-weight: 600; }

.architecture-layer {
    background: var(--bg-surface-2); border: 1px solid var(--border);
    border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem; margin: 0.5rem 0; transition: all var(--transition-base);
}
.architecture-layer:hover { border-left-color: var(--primary-light); background: var(--bg-hover); }
.architecture-layer h5 { margin-top: 0; color: var(--primary-light); }

.metric-highlight {
    text-align: center; padding: 1.5rem;
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.metric-highlight .metric-value { font-size: 2rem; font-weight: 800; color: var(--primary-light); line-height: 1; }
.metric-highlight .metric-label {
    font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.35rem;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.template-box {
    background: var(--bg-base); border: 1px solid var(--border);
    padding: 1rem; border-radius: var(--radius-sm); font-style: italic;
}

/* ── Case Study Cards ─────────────────────────────────────── */
.case-study-card {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.5rem;
    transition: all var(--transition-base); height: 100%;
    display: flex; flex-direction: column;
}
.case-study-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.case-study-card .industry-badge {
    display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 0.75rem;
    background: var(--primary-glow); color: var(--primary-light);
}
.case-study-card .key-metric { font-size: 1.35rem; font-weight: 800; color: var(--success); margin: 0.75rem 0 0.25rem; }
.case-study-card .key-metric-label { font-size: 0.8rem; color: var(--text-secondary); }

/* Impact Cards */
.impact-card {
    text-align: center; background: var(--bg-surface);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 1.25rem; transition: all var(--transition-base);
}
.impact-card:hover { border-color: var(--primary); background: var(--bg-surface-2); }
.impact-card .impact-icon { font-size: 1.5rem; color: var(--primary-light); margin-bottom: 0.5rem; }
.impact-card .impact-value { font-size: 1.4rem; font-weight: 800; color: var(--text-heading); }
.impact-card .impact-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

/* Testimonial */
.testimonial-card {
    background: var(--bg-surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 2rem; position: relative; margin: 1.5rem 0;
}
.testimonial-card::before {
    content: '\201C'; font-size: 4rem; color: var(--primary); opacity: 0.3;
    position: absolute; top: 0.5rem; left: 1rem; font-family: Georgia, serif; line-height: 1;
}
.testimonial-card .testimonial-text { font-style: italic; font-size: 1.05rem; line-height: 1.7; padding-left: 1.5rem; }
.testimonial-card .testimonial-author { font-size: 0.85rem; color: var(--text-secondary); margin-top: 1rem; padding-left: 1.5rem; }

/* ── Quiz ─────────────────────────────────────────────────── */
.quiz-container { max-width: 720px; margin: 0 auto; }
.quiz-progress-bar { height: 4px; background: var(--bg-surface-3); border-radius: 2px; overflow: hidden; margin-bottom: 1.5rem; }
.quiz-progress-fill { height: 100%; background: var(--gradient-primary); transition: width var(--transition-slow); border-radius: 2px; }

.quiz-question-card {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
}
.quiz-question-number {
    font-size: 0.8rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 0.75rem;
}
.quiz-question-text { font-size: 1.15rem; font-weight: 600; color: var(--text-heading); margin-bottom: 1.5rem; line-height: 1.5; }

.quiz-option {
    display: block; width: 100%;
    background: var(--bg-surface-2); border: 2px solid var(--border);
    border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 0.75rem;
    color: var(--text-primary); font-size: 0.95rem;
    cursor: pointer; transition: all var(--transition-fast); text-align: left;
}
.quiz-option:hover { border-color: var(--primary); background: var(--primary-glow); }
.quiz-option.selected { border-color: var(--primary); background: var(--primary-glow-strong); color: white; }
.quiz-option.correct { border-color: var(--success) !important; background: var(--success-bg) !important; color: var(--success-light) !important; }
.quiz-option.incorrect { border-color: var(--danger) !important; background: var(--danger-bg) !important; color: var(--danger-light) !important; }
.quiz-option.disabled { pointer-events: none; opacity: 0.9; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }

.quiz-results { text-align: center; padding: 2rem; }
.quiz-score-display { font-size: 4rem; font-weight: 800; line-height: 1; margin: 1rem 0 0.5rem; }
.quiz-score-display.pass { color: var(--success); }
.quiz-score-display.fail { color: var(--danger); }
.quiz-explanation {
    background: var(--bg-surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 1rem 1.25rem;
    margin-top: 1rem; font-size: 0.9rem; color: var(--text-secondary); text-align: left;
}

.question-nav-dots { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.q-dot {
    width: 32px; height: 32px; border-radius: var(--radius-full);
    border: 2px solid var(--border); background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
    cursor: pointer; transition: all var(--transition-fast);
}
.q-dot:hover { border-color: var(--primary); }
.q-dot.answered { background: var(--primary-glow); border-color: var(--primary); color: var(--primary-light); }
.q-dot.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary-custom {
    background: var(--gradient-primary); color: white; border: none;
    border-radius: var(--radius-sm); padding: 0.6rem 1.5rem;
    font-weight: 600; font-size: 0.9rem; transition: all var(--transition-base);
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary-custom:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(99,102,241,0.4); color: white; }

.btn-outline-custom {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border-light); border-radius: var(--radius-sm);
    padding: 0.6rem 1.5rem; font-weight: 600; font-size: 0.9rem;
    transition: all var(--transition-base); display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-outline-custom:hover { background: var(--bg-hover); border-color: var(--border-hover); color: var(--text-primary); }

.btn-success-custom {
    background: var(--success); color: white; border: none;
    border-radius: var(--radius-sm); padding: 0.6rem 1.5rem;
    font-weight: 600; font-size: 0.9rem; transition: all var(--transition-base);
}
.btn-success-custom:hover { background: var(--success-light); color: white; box-shadow: 0 4px 15px rgba(16,185,129,0.3); }

/* ── Progress Bars ────────────────────────────────────────── */
.progress-custom { height: 6px; background: var(--bg-surface-3); border-radius: 3px; overflow: hidden; }
.progress-custom .progress-bar { background: var(--gradient-primary); border-radius: 3px; transition: width var(--transition-slow); }
.progress-custom .progress-bar.bg-success { background: var(--gradient-success); }

/* ── Leaderboard ──────────────────────────────────────────── */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.podium-place {
    text-align: center; padding: 1.5rem; border-radius: var(--radius-md);
    background: var(--bg-surface); border: 1px solid var(--border); transition: all var(--transition-base);
    width: 180px;
}
.podium-place:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.podium-1 { border-color: #fbbf24; min-height: 200px; order: 2; }
.podium-2 { border-color: #94a3b8; min-height: 170px; order: 1; }
.podium-3 { border-color: #d97706; min-height: 150px; order: 3; }
.podium-avatar {
    width: 56px; height: 56px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; color: white; margin: 0 auto 0.75rem;
}
.podium-1 .podium-avatar { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.podium-2 .podium-avatar { background: linear-gradient(135deg, #94a3b8, #64748b); }
.podium-3 .podium-avatar { background: linear-gradient(135deg, #d97706, #b45309); }
.rank-badge { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* ── Playbook ─────────────────────────────────────────────── */
.playbook-tabs .nav-link {
    color: var(--text-secondary); border: 1px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 0.75rem 1.25rem; font-weight: 600; font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.playbook-tabs .nav-link:hover { color: var(--text-primary); border-color: var(--border); background: var(--bg-surface); }
.playbook-tabs .nav-link.active { color: var(--primary-light); background: var(--bg-surface); border-color: var(--border); border-bottom-color: var(--bg-surface); }

.copy-btn {
    background: var(--bg-surface-2); border: 1px solid var(--border);
    color: var(--text-muted); padding: 0.3rem 0.65rem; border-radius: var(--radius-sm);
    font-size: 0.75rem; cursor: pointer; transition: all var(--transition-fast);
}
.copy-btn:hover { color: var(--primary-light); border-color: var(--primary); }
.copy-btn.copied { color: var(--success); border-color: var(--success); }

/* ── Filter Pills ─────────────────────────────────────────── */
.filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-pill {
    padding: 0.35rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    background: var(--bg-surface); border: 1px solid var(--border);
    color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary-light); }
.filter-pill.active { background: var(--primary-glow); border-color: var(--primary); color: var(--primary-light); }

/* ── Login/Register ───────────────────────────────────────── */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--gradient-bg); position: relative;
}
.auth-page::before {
    content: ''; position: absolute; top: 20%; left: 10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    border-radius: var(--radius-full);
}
.auth-card {
    background: rgba(17, 24, 39, 0.8); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.auth-card .auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; }
.auth-card .auth-subtitle { color: var(--text-secondary); text-align: center; font-size: 0.9rem; margin-bottom: 2rem; }

.form-control-custom {
    background: var(--bg-surface-2); border: 1px solid var(--border);
    color: var(--text-primary); border-radius: var(--radius-sm);
    padding: 0.75rem 1rem; font-size: 0.95rem; transition: all var(--transition-fast);
}
.form-control-custom:focus { background: var(--bg-surface-3); border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); color: var(--text-primary); }
.form-control-custom::placeholder { color: var(--text-muted); }

/* ── Accordion ────────────────────────────────────────────── */
.accordion-custom .accordion-item {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm) !important; margin-bottom: 0.5rem; overflow: hidden;
}
.accordion-custom .accordion-button { background: var(--bg-surface); color: var(--text-primary); font-weight: 600; padding: 1rem 1.25rem; box-shadow: none; }
.accordion-custom .accordion-button:not(.collapsed) { background: var(--bg-surface-2); color: var(--primary-light); }
.accordion-custom .accordion-button::after { filter: invert(0.7); }
.accordion-custom .accordion-body { background: var(--bg-surface); color: var(--text-primary); padding: 1.25rem; }

/* ── Toasts ───────────────────────────────────────────────── */
#toast-container {
    position: fixed; top: 1rem; right: 1rem; z-index: 9999;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.toast-notification {
    padding: 0.85rem 1.25rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500; color: white;
    box-shadow: var(--shadow-lg); max-width: 350px;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

/* ── Section Sidebar ──────────────────────────────────────── */
.section-sidebar .section-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 1rem; border-radius: var(--radius-sm);
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.85rem; transition: all var(--transition-fast); margin-bottom: 0.25rem;
}
.section-sidebar .section-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.section-sidebar .section-link.active { background: var(--primary-glow); color: var(--primary-light); font-weight: 600; }
.section-sidebar .section-link.completed { color: var(--success); }
.section-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--border-light); flex-shrink: 0; }
.section-link.completed .section-dot { background: var(--success); }
.section-link.active .section-dot { background: var(--primary); box-shadow: 0 0 6px var(--primary); }

/* ── Reading Progress ─────────────────────────────────────── */
.reading-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--gradient-primary); z-index: 9999; transition: width 50ms linear;
}

/* ── Empty States ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state .empty-text { font-size: 1.1rem; font-weight: 500; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes countUp { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }

.animate-fade-in { animation: fadeInUp 0.4s ease forwards; }
.animate-pulse { animation: pulse 2s ease infinite; }
.confetti-piece { position: fixed; width: 10px; height: 10px; top: -10px; z-index: 9999; animation: confettiFall 3s ease-in forwards; }

/* ── ROI Calculator ───────────────────────────────────────── */
.roi-input {
    background: var(--bg-surface-2); border: 1px solid var(--border);
    color: var(--text-primary); border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem; width: 100%; font-size: 0.9rem;
}
.roi-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(99,102,241,0.2); }
.roi-input-group { margin-bottom: 1.25rem; }
.roi-input-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; display: block; }
.roi-range-value { font-size: 1.1rem; font-weight: 700; color: var(--primary-light); }
.roi-result-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; text-align: center; }
.roi-result-card .result-value { font-size: 2rem; font-weight: 800; }
.roi-result-card .result-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.roi-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.roi-before { border-left: 4px solid var(--danger); padding-left: 1rem; }
.roi-after { border-left: 4px solid var(--success); padding-left: 1rem; }

/* ── Simulator ───────────────────────────────────────────── */
.sim-container { max-width: 720px; margin: 0 auto; }
.sim-context { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }

.difficulty-beginner { background: var(--success-bg); color: var(--success-light); padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 600; }
.difficulty-intermediate { background: var(--warning-bg); color: var(--warning-light); padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 600; }
.difficulty-advanced { background: var(--danger-bg); color: var(--danger-light); padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 600; }

/* ── Admin Dashboard ─────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    background: var(--bg-surface-2); color: var(--text-muted); font-weight: 600;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
    user-select: none; white-space: nowrap;
}
.admin-table th.sortable-header { cursor: pointer; }
.admin-table th.sortable-header:hover { color: var(--primary-light); }
.admin-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg-hover); }

.activity-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; }
.activity-item:not(:last-child) { border-bottom: 1px solid var(--border); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .stat-card { padding: 1rem; }
    .stat-card .stat-value { font-size: 1.3rem; }
    .welcome-banner { padding: 1.5rem; }
    .welcome-banner h2 { font-size: 1.2rem; }
    .podium { flex-direction: column; align-items: center; }
    .podium-place { min-height: auto !important; width: 100%; max-width: 300px; order: unset !important; }
    .learning-path { padding: 1rem 0; }
    .quiz-question-card { padding: 1.25rem; }
    .quiz-question-text { font-size: 1rem; }
}
@media (max-width: 576px) {
    .module-card { padding: 1rem; }
    .auth-card { padding: 1.5rem; margin: 1rem; }
}
