/* ==========================================================================
   Options Trading Platform (Farsi) — Stylesheet
   Modern Financial Dark/Light Design with High-Precision Typography & RTL
   ========================================================================== */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-card: #161f30;
    --border-color: #27354a;
    --border-highlight: #3b82f6;

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-green: #10b981;
    --accent-green-bg: rgba(16, 185, 129, 0.12);
    --accent-red: #ef4444;
    --accent-red-bg: rgba(239, 68, 68, 0.12);
    --accent-yellow: #f59e0b;
    --accent-purple: #8b5cf6;

    --itm-call-bg: rgba(16, 185, 129, 0.08);
    --itm-put-bg: rgba(239, 68, 68, 0.08);

    --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-highlight: #2563eb;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-green-bg: rgba(16, 185, 129, 0.15);
    --accent-red-bg: rgba(239, 68, 68, 0.15);
    --itm-call-bg: rgba(16, 185, 129, 0.09);
    --itm-put-bg: rgba(239, 68, 68, 0.09);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    direction: rtl;
    font-family: var(--font-fa);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================================================
   Header & Navbar (Professional Financial UI)
   ========================================================================== */
.site-header {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-main-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 62px;
    padding: 0 1.5rem;
    gap: 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-title-wrap h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 0;
}

.brand-badge {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Market Strip (Center) */
.header-market-strip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    direction: ltr;
}

.ticker-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-tertiary);
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    transition: border-color 0.2s;
}

.ticker-pill:hover {
    border-color: var(--border-highlight);
}

.ticker-sym {
    font-weight: 700;
    color: var(--text-primary);
}

.ticker-val.pos {
    color: var(--accent-green);
}

.ticker-val.neg {
    color: var(--accent-red);
}

/* Header Actions (Left) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.market-status-dot {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.market-status-dot.market-open {
    color: var(--accent-green);
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
}

.market-status-dot.market-open .pulse-dot {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseDot 1.15s infinite ease-in-out;
}

.market-status-dot.market-closed {
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.1);
}

.market-status-dot.market-closed .pulse-dot {
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
    animation: none;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseDot 1.15s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(0.8); }
}

.theme-toggle-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-fa);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s;
    touch-action: manipulation;
}

.theme-toggle-btn:hover {
    background: var(--border-color);
    border-color: var(--border-highlight);
}

/* Navigation Tabs Bar */
.nav-tabs-bar {
    background: rgba(15, 23, 42, 0.75);
    border-top: 1px solid var(--border-color);
}

[data-theme="light"] .nav-tabs-bar {
    background: rgba(248, 250, 252, 0.85);
}

.nav-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding: 0.7rem 0.95rem;
    font-family: var(--font-fa);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.18s;
    touch-action: manipulation;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
}

.tab-icon {
    font-size: 1rem;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-container {
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Course Curriculum & Reader View
   ========================================================================== */
.course-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.course-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

.course-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
}

.curriculum-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.level-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.level-header {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 700;
    user-select: none;
    transition: background 0.15s, color 0.15s;
}

.level-header:hover {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
}

.level-chapters {
    list-style: none;
    padding: 0.5rem;
}

.chapter-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s;
}

.chapter-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.chapter-link.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    font-weight: 600;
}

.badge-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.reader-area {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.reader-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.reader-header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.reader-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.reader-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reader-body p {
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    text-align: justify;
}

.callout {
    background: var(--bg-secondary);
    border-right: 4px solid var(--accent-blue);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.callout-warning {
    border-right-color: var(--accent-yellow);
    background: rgba(245, 158, 11, 0.08);
}

.callout-danger {
    border-right-color: var(--accent-red);
    background: var(--accent-red-bg);
}

.callout-success {
    border-right-color: var(--accent-green);
    background: var(--accent-green-bg);
}

.callout h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

/* Example Box */
.example-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.example-box h4 {
    color: var(--accent-green);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
    direction: ltr;
}

.stat-pill {
    background: var(--bg-tertiary);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.stat-pill .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-pill .val {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.step-list {
    margin-right: 1.25rem;
    margin-top: 1rem;
}

.step-list li {
    margin-bottom: 0.6rem;
    font-size: 0.94rem;
}

/* Data Table */
.data-table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.styled-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    text-align: right;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.styled-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.styled-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Formula Box & KaTeX Math Styling */
.formula-box {
    background: #0d131f;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    margin: 1rem 0;
    direction: ltr;
    text-align: center;
    color: #93c5fd;
    font-size: 1.1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .formula-box {
    background: #f1f5f9;
    color: #1e40af;
    border-color: #cbd5e1;
}

.katex {
    font-size: 1.12em;
    direction: ltr !important;
    text-align: left;
    unicode-bidi: isolate;
}

.katex-display {
    margin: 0.5rem 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0;
    direction: ltr !important;
}

.katex-display > .katex {
    display: inline-block;
    text-align: center;
}

.exercise-solution {
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ==========================================================================
   Option Payoff Simulator & Strategy Builder
   ========================================================================== */
.simulator-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.5rem;
}

.controls-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    width: 100%;
}

.form-control:focus {
    border-color: var(--accent-blue);
    outline: none;
}

.range-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.range-wrap input[type="range"] {
    flex: 1;
    accent-color: var(--accent-blue);
}

.range-val {
    font-family: var(--font-mono);
    font-weight: 700;
    min-width: 55px;
    text-align: left;
    font-size: 0.9rem;
    direction: ltr;
}

/* Legs List */
.legs-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
}

.leg-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-size: 0.85rem;
}

.leg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.leg-badge {
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
}

.leg-badge.buy {
    background: var(--accent-green-bg);
    color: var(--accent-green);
}

.leg-badge.sell {
    background: var(--accent-red-bg);
    color: var(--accent-red);
}

.leg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Chart Area */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.metrics-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    direction: ltr;
}

.metric-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    text-align: center;
}

.metric-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.plot-wrapper {
    height: 480px;
    width: 100%;
    position: relative;
}

/* ==========================================================================
   Option Chain Explorer
   ========================================================================== */
.chain-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ticker-search-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-fa);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
}

.quick-tickers {
    display: flex;
    gap: 0.4rem;
}

.pill-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s;
}

.pill-btn:hover, .pill-btn.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.chain-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chain-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: center;
    direction: ltr;
}

.chain-table th {
    background: var(--bg-tertiary);
    padding: 0.6rem 0.4rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-fa);
}

.chain-table td {
    padding: 0.5rem 0.3rem;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
}

.strike-col {
    background: var(--bg-secondary);
    font-weight: 800;
    color: var(--accent-yellow);
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
}

.itm-call {
    background-color: var(--itm-call-bg);
}

.itm-put {
    background-color: var(--itm-put-bg);
}

.chain-table tr:hover {
    background-color: rgba(59, 130, 246, 0.12);
}

.add-leg-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
}

.add-leg-btn:hover {
    background: var(--accent-blue);
    color: #fff;
}

/* ==========================================================================
   Quizzes & Exercises
   ========================================================================== */
.quiz-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quiz-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.quiz-score-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.question-text {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.option-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    text-align: right;
    color: var(--text-primary);
    font-family: var(--font-fa);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: var(--accent-blue);
    background: var(--bg-tertiary);
}

.option-btn.correct {
    background: var(--accent-green-bg);
    border-color: var(--accent-green);
    color: var(--accent-green);
    font-weight: 700;
}

.option-btn.wrong {
    background: var(--accent-red-bg);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.explanation-box {
    margin-top: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 3rem;
}

/* ==========================================================================
   Mobile-Friendly Enhancements & Components
   ========================================================================== */
.mobile-curriculum-bar {
    display: none;
    margin-bottom: 1.25rem;
}

.mobile-curriculum-toggle {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    color: var(--accent-blue);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-fa);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, border-color 0.2s;
    touch-action: manipulation;
}

.mobile-curriculum-toggle:hover {
    background: var(--bg-tertiary);
}

.sidebar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.btn-close-sidebar-mobile {
    display: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
}

.chain-mobile-filter {
    display: none;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.filter-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.filter-pill-group {
    display: flex;
    gap: 0.35rem;
    background: var(--bg-tertiary);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    flex: 1;
}

.chain-filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-fa);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.15s;
    touch-action: manipulation;
}

.chain-filter-btn.active {
    background: var(--accent-blue);
    color: #fff;
}

.chain-exp-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
    align-items: center;
}

.chain-exp-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.chain-exp-pills {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.chain-exp-pills::-webkit-scrollbar {
    display: none;
}

/* Touch-optimized inputs & buttons */
button, input, select {
    touch-action: manipulation;
}

input[type="range"] {
    -webkit-appearance: none;
    height: 7px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
    border: 2px solid #fff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1080px) {
    .header-market-strip {
        display: none;
    }
}

/* Tablet & Smaller Desktops */
@media (max-width: 1024px) {
    .course-layout,
    .simulator-layout {
        grid-template-columns: 1fr;
    }

    .mobile-curriculum-bar {
        display: block;
    }

    .course-sidebar {
        display: none;
        position: static;
        max-height: 480px;
        margin-bottom: 1.5rem;
    }

    .course-sidebar.mobile-open {
        display: block;
        animation: fadeIn 0.2s ease-in-out;
    }

    .btn-close-sidebar-mobile {
        display: block;
    }

    .plot-wrapper {
        height: 400px;
    }

    .brand-subtitle {
        display: none;
    }
}

/* Mobile Devices (Smartphones) */
@media (max-width: 768px) {
    .header-main-bar {
        height: 52px;
        padding: 0 0.85rem;
        gap: 0.5rem;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
        font-size: 1.05rem;
    }

    .brand-title-wrap h1 {
        font-size: 0.98rem;
    }

    .brand-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.35rem;
    }

    .brand-subtitle {
        display: none;
    }

    .header-market-strip {
        display: none;
    }

    .market-status-dot {
        display: none;
    }

    .theme-toggle-btn {
        padding: 0.32rem 0.6rem;
    }

    .theme-text {
        display: none;
    }

    .nav-tabs {
        padding: 0 0.4rem;
        gap: 0.2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 0.65rem 0.65rem;
        font-size: 0.82rem;
        min-height: 42px;
    }

    .tab-icon {
        font-size: 0.92rem;
    }

    .main-container {
        padding: 0.75rem 0.6rem;
    }

    /* Reader adjustments */
    .reader-area {
        padding: 1.25rem 0.85rem;
        border-radius: var(--radius-md);
    }

    .reader-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .reader-header h2 {
        font-size: 1.25rem;
        line-height: 1.45;
    }

    .reader-meta {
        flex-direction: column;
        gap: 0.35rem;
        font-size: 0.78rem;
    }

    .reader-body h3 {
        font-size: 1.05rem;
        margin: 1.5rem 0 0.65rem 0;
    }

    .reader-body p {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .callout {
        padding: 1rem 1.1rem;
        margin: 1.1rem 0;
    }

    .callout h4 {
        font-size: 0.98rem;
    }

    .example-box {
        padding: 1rem 0.85rem;
        margin: 1rem 0;
    }

    .example-box h4 {
        font-size: 0.98rem;
    }

    .example-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-pill {
        padding: 0.5rem 0.4rem;
    }

    .stat-pill .val {
        font-size: 0.88rem;
    }

    .formula-box {
        font-size: 0.88rem;
        padding: 0.85rem 0.5rem;
    }

    /* Simulator Controls on Mobile */
    .controls-panel {
        padding: 1.1rem 0.9rem;
        border-radius: var(--radius-md);
        gap: 1rem;
    }

    .chart-container {
        padding: 1rem 0.75rem;
        border-radius: var(--radius-md);
    }

    .metrics-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .metric-card {
        padding: 0.6rem 0.35rem;
    }

    .metric-title {
        font-size: 0.68rem;
    }

    .metric-value {
        font-size: 0.95rem;
    }

    #metric-net-greeks {
        grid-column: span 2;
        font-size: 0.75rem !important;
    }

    .plot-wrapper {
        height: 350px;
    }

    /* Option Chain Table Mobile Mode */
    .chain-header {
        padding: 0.85rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .ticker-search-group {
        flex-wrap: wrap;
        width: 100%;
    }

    #chain-ticker-input {
        width: 90px;
    }

    .quick-tickers {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .chain-exp-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .chain-mobile-filter {
        display: flex;
    }

    .chain-table {
        font-size: 0.72rem;
    }

    .chain-table th, .chain-table td {
        padding: 0.45rem 0.2rem;
    }

    /* Column Hiding based on Mobile Filter */
    .chain-table.view-calls .put-col {
        display: none !important;
    }

    .chain-table.view-puts .call-col {
        display: none !important;
    }

    .chain-table.view-calls .call-col,
    .chain-table.view-puts .put-col {
        display: table-cell !important;
    }

    /* Sticky Strike column during horizontal scroll */
    .chain-table .strike-col {
        position: sticky;
        left: 0;
        z-index: 2;
        box-shadow: 2px 0 6px rgba(0, 0, 0, 0.4);
    }

    /* Quizzes on Mobile */
    .quiz-card {
        padding: 1.1rem 0.85rem;
        border-radius: var(--radius-md);
    }

    .quiz-score-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.1rem 1rem;
    }

    .question-text {
        font-size: 0.95rem;
    }

    .option-btn {
        padding: 0.75rem 0.9rem;
        font-size: 0.85rem;
        min-height: 48px;
    }
}

/* Small Smartphone Screens (<= 480px) */
@media (max-width: 480px) {
    .brand-text h1 {
        font-size: 0.92rem;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }

    .tab-btn {
        padding: 0.65rem 0.55rem;
        font-size: 0.78rem;
    }

    .plot-wrapper {
        height: 310px;
    }

    .btn-primary {
        padding: 0.55rem 0.95rem;
        font-size: 0.84rem;
    }

    .styled-table th, .styled-table td {
        padding: 0.55rem 0.5rem;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   200 Option Trading Secrets Tab Styles
   ========================================================================== */
.secrets-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.secrets-hero {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.secrets-hero-text {
    flex: 1;
    min-width: 280px;
}

.secrets-badge-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.secrets-hero-text h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.secrets-hero-text p {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

.secrets-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.secrets-counter-pill {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.secrets-counter-pill strong {
    color: var(--accent-blue);
    font-weight: 800;
}

.secret-spotlight-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(59, 130, 246, 0.08));
    border: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.25s ease;
}

.spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.btn-close-spotlight {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-spotlight:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.secrets-controls {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.secrets-cat-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
}

.secret-cat-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-family: var(--font-fa);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.secret-cat-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.secret-cat-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.secrets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.secret-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.secret-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.secret-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.secret-num-badge {
    background: rgba(59, 130, 246, 0.16);
    color: var(--accent-blue);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.secret-cat-tag {
    font-size: 0.76rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.secret-title {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0.15rem 0 0 0;
}

.secret-en-title {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent-purple);
    direction: ltr;
    text-align: left;
    opacity: 0.9;
}

.secret-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.78;
    margin: 0.25rem 0;
    flex: 1;
}

.secret-rule-box {
    background: rgba(16, 185, 129, 0.1);
    border-right: 3px solid var(--accent-green);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.8rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.65;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.rule-icon {
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .secrets-hero {
        padding: 1.25rem;
        flex-direction: column;
        align-items: stretch;
    }

    .secrets-hero-actions {
        align-items: stretch;
    }

    .secrets-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Friday Payday & Weekly Income Tab Styles
   ========================================================================== */
.friday-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.friday-hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, var(--bg-card) 55%, rgba(59, 130, 246, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.friday-hero-content h2 {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.55rem;
}

.friday-hero-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.friday-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.friday-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.friday-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-green);
}

.friday-stat-icon {
    font-size: 1.55rem;
}

.friday-stat-val {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--accent-green);
}

.friday-stat-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.friday-stat-sub {
    font-size: 0.77rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.friday-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
}

.friday-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.25rem;
}

.friday-section-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.friday-metaphors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
}

.metaphor-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.metaphor-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.metaphor-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metaphor-icon {
    font-size: 1.75rem;
}

.metaphor-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--bg-tertiary);
    color: var(--accent-amber);
}

.metaphor-card h4 {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.metaphor-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.78;
    margin: 0;
}

/* 4-Step KaChing Stepper */
.friday-stepper-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.friday-step-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-fa);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.friday-step-btn:hover {
    border-color: var(--accent-green);
    color: var(--text-primary);
}

.friday-step-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(59, 130, 246, 0.16));
    border-color: var(--accent-green);
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.step-btn-icon {
    font-size: 1.2rem;
}

.friday-step-detail {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--accent-green);
    border-radius: var(--radius-md);
    padding: 1.4rem;
}

.step-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-big-icon {
    font-size: 2.2rem;
    background: var(--bg-tertiary);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-detail-header h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.step-summary-text {
    font-size: 0.88rem;
    color: var(--accent-green);
    font-weight: 600;
    margin: 0;
}

.step-bullets {
    margin: 0;
    padding-right: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.step-bullets li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Interactive KaChing Calculator */
.friday-preset-pills,
.friday-case-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.kaching-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
}

.kaching-inputs-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.calc-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.calc-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.calc-divider-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent-blue);
    padding-top: 0.4rem;
    border-top: 1px dashed var(--border-color);
}

.mono-badge {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(59, 130, 246, 0.16);
    color: var(--accent-blue);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-sm);
}

.kaching-results-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kaching-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.kaching-kpi-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kaching-kpi-box.kpi-green { border-right: 4px solid var(--accent-green); }
.kaching-kpi-box.kpi-blue { border-right: 4px solid var(--accent-blue); }
.kaching-kpi-box.kpi-purple { border-right: 4px solid var(--accent-purple); }
.kaching-kpi-box.kpi-amber { border-right: 4px solid var(--accent-amber); }

.kpi-icon {
    font-size: 1.3rem;
}

.kpi-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.kpi-val {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-primary);
    direction: ltr;
    text-align: right;
}

.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.friday-risk-meter-card,
.weekly-vs-monthly-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem;
}

.risk-meter-track,
.checklist-progress-track {
    width: 100%;
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
}

.risk-meter-fill,
.checklist-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease, background 0.3s ease;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.wvm-bars {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.wvm-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wvm-label {
    width: 155px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.wvm-bar-wrap {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.wvm-bar {
    padding: 0.35rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.wvm-bar-weekly {
    background: linear-gradient(90deg, #10b981, #059669);
}

.wvm-bar-monthly {
    background: linear-gradient(90deg, #64748b, #475569);
}

/* Case Studies */
.case-study-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.case-meta-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.case-meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.case-study-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Adjustments Grid */
.friday-adjustments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.friday-adj-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.friday-adj-icon {
    font-size: 1.65rem;
    flex-shrink: 0;
}

.friday-adj-card h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
}

.friday-adj-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.72;
    margin: 0;
}

/* Checklist */
.checklist-progress-pill {
    font-size: 0.85rem;
    font-weight: 800;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}

.friday-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.friday-chk-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.friday-chk-item:hover {
    border-color: var(--accent-green);
}

.friday-chk-item.checked {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-green);
}

.friday-chk-input {
    display: none;
}

.friday-chk-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    color: transparent;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.friday-chk-item.checked .friday-chk-box {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #fff;
}

.friday-chk-text {
    font-size: 0.86rem;
    color: var(--text-primary);
    line-height: 1.65;
}

@media (max-width: 992px) {
    .friday-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kaching-calc-grid {
        grid-template-columns: 1fr;
    }

    .friday-stepper-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .friday-metaphors-grid,
    .friday-adjustments-grid,
    .friday-checklist-grid,
    .case-study-meta-grid,
    .calc-row-2col,
    .kaching-kpi-grid {
        grid-template-columns: 1fr;
    }

    .friday-stats-grid,
    .friday-stepper-tabs {
        grid-template-columns: 1fr;
    }

    .wvm-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
}




