:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2236;
  --bg-card-hover: #1f2a42;
  --accent-gold: #009f71;
  --accent-gold-dim: rgba(0, 159, 113, 0.15);
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --accent-green: #34d399;
  --accent-purple: #a78bfa;
  --accent-orange: #f97316;
  --accent-rose: #fb7185;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(0, 159, 113, 0.25);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; font-weight: 500; }

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 4rem 2rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,159,113,0.08) 0%, transparent 70%), radial-gradient(ellipse 50% 50% at 80% 20%, rgba(59,130,246,0.06) 0%, transparent 60%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent-gold-dim); border: 1px solid var(--border-accent); padding: 0.4rem 1.2rem; border-radius: 100px; font-size: 0.8rem; font-weight: 500; color: var(--accent-gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2rem; animation: fadeDown 0.8s ease-out; }
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }
.hero h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 1.1; color: var(--text-primary); max-width: 900px; animation: fadeUp 1s ease-out; }
.hero h1 em { font-style: italic; color: var(--accent-gold); }
.hero-sub { font-size: 1.15rem; color: var(--text-secondary); max-width: 620px; margin-top: 1.5rem; font-weight: 500; animation: fadeUp 1s ease-out 0.2s both; }
.hero-meta { display: flex; gap: 1.5rem; margin-top: 3rem; flex-wrap: wrap; justify-content: center; animation: fadeUp 1s ease-out 0.4s both; }
.hero-meta-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.hero-meta-item span:first-child { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.hero-meta-item span:last-child { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; color: var(--accent-gold); font-weight: 500; }
.hero-nav { display: flex; gap: 1rem; margin-top: 3.5rem; flex-wrap: wrap; justify-content: center; animation: fadeUp 1s ease-out 0.6s both; }
.hero-nav a { padding: 0.75rem 1.6rem; border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all 0.3s; }
.hero-nav a.primary { background: var(--accent-gold); color: var(--bg-primary); }
.hero-nav a.primary:hover { background: #00b880; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,159,113,0.3); }
.hero-nav a.secondary { border: 1px solid var(--border-accent); color: var(--accent-gold); }
.hero-nav a.secondary:hover { background: var(--accent-gold-dim); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; position: relative; }
section.module-section { display: none; }
section.module-section.module-active { display: block; }
section + section { border-top: 1px solid var(--border); }
.section-label { display: inline-flex; align-items: center; gap: 0.6rem; font-family: 'Montserrat', sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1rem; }
.section-label .dot { width: 8px; height: 8px; border-radius: 50%; }
.section-label .time { margin-left: 0.5rem; padding: 0.2rem 0.6rem; background: rgba(255,255,255,0.05); border-radius: 4px; font-size: 0.7rem; color: var(--text-muted); }
.section-title { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin-bottom: 1rem; }
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 640px; margin-bottom: 3rem; font-weight: 500; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem; transition: all 0.35s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--card-accent, var(--accent-gold)), transparent); opacity: 0; transition: opacity 0.35s; }
.card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.1); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.2rem; }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.6rem; }
.card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; font-weight: 500; }

.card.bitcoin { --card-accent: #f7931a; } .card.bitcoin .card-icon { background: rgba(247,147,26,0.12); color: #f7931a; }
.card.ethereum { --card-accent: #627eea; } .card.ethereum .card-icon { background: rgba(98,126,234,0.12); color: #627eea; }
.card.defi { --card-accent: var(--accent-cyan); } .card.defi .card-icon { background: rgba(34,211,238,0.12); color: var(--accent-cyan); }
.card.nft { --card-accent: var(--accent-purple); } .card.nft .card-icon { background: rgba(167,139,250,0.12); color: var(--accent-purple); }
.card.gold { --card-accent: var(--accent-gold); } .card.gold .card-icon { background: var(--accent-gold-dim); color: var(--accent-gold); }
.card.blue { --card-accent: var(--accent-blue); } .card.blue .card-icon { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
.card.green { --card-accent: var(--accent-green); } .card.green .card-icon { background: rgba(52,211,153,0.12); color: var(--accent-green); }
.card.rose { --card-accent: var(--accent-rose); } .card.rose .card-icon { background: rgba(251,113,133,0.12); color: var(--accent-rose); }
.card.cyan { --card-accent: var(--accent-cyan); } .card.cyan .card-icon { background: rgba(34,211,238,0.12); color: var(--accent-cyan); }
.card.purple { --card-accent: var(--accent-purple); } .card.purple .card-icon { background: rgba(167,139,250,0.12); color: var(--accent-purple); }

.numbered-list { display: flex; flex-direction: column; gap: 1.25rem; counter-reset: item; }
.numbered-item { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.8rem; transition: all 0.3s; }
.numbered-item:hover { border-color: rgba(255,255,255,0.1); background: var(--bg-card-hover); }
.numbered-item .num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 500; background: var(--accent-gold-dim); color: var(--accent-gold); border: 1px solid var(--border-accent); }
.numbered-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.numbered-item p { font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

.kv-stack { display: flex; flex-direction: column; gap: 0; }
.kv-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.kv-row:last-child { border-bottom: none; }
.quiz-history-item { 
  width: 100%;
  border-top: none;
  border-left: none;
  border-right: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  padding: 10px;
}
.quiz-history-item:hover { background: rgba(255,255,255,0.03); }
.quiz-history-item.active { background: var(--accent-gold-dim); border-bottom-color: var(--border-accent); }
.quiz-history-item:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.kv-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }
.kv-value { font-family: 'Montserrat', sans-serif; font-size: 0.82rem; padding: 0.25rem 0.7rem; border-radius: 6px; font-weight: 500; }
.kv-value.gold { background: var(--accent-gold-dim); color: var(--accent-gold); }
.kv-value.blue { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
.kv-value.green { background: rgba(52,211,153,0.12); color: var(--accent-green); }
.kv-value.purple { background: rgba(167,139,250,0.12); color: var(--accent-purple); }
.kv-value.rose { background: rgba(251,113,133,0.12); color: var(--accent-rose); }
.kv-value.cyan { background: rgba(34,211,238,0.12); color: var(--accent-cyan); }

.callout { background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: 12px; padding: 2rem; margin-top: 2.5rem; position: relative; }
.callout::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent-gold), transparent); border-radius: 12px 12px 0 0; }
.callout h4 { font-size: 1rem; font-weight: 600; color: var(--accent-gold); margin-bottom: 0.6rem; }
.callout p { font-size: 0.92rem; color: var(--text-secondary); font-weight: 500; }

.reg-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 2rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.reg-table th { background: var(--bg-card); text-align: left; padding: 1rem 1.4rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.reg-table td { padding: 1rem 1.4rem; font-size: 0.9rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); background: var(--bg-secondary); transition: background 0.2s; }
.reg-table tr:last-child td { border-bottom: none; }
.reg-table tr:hover td { background: var(--bg-card); }
.reg-table .highlight-row td { background: rgba(0,159,113,0.06); color: var(--text-primary); }
.reg-table .highlight-row:hover td { background: rgba(0,159,113,0.1); }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 100px; font-size: 0.75rem; font-weight: 500; font-family: 'Montserrat', sans-serif; }
.badge.low { background: rgba(251,113,133,0.12); color: var(--accent-rose); }
.badge.mid { background: rgba(0,159,113,0.15); color: var(--accent-gold); }
.badge.high { background: rgba(52,211,153,0.12); color: var(--accent-green); }

.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color 0.3s; }
.accordion-item.active { border-color: rgba(0,159,113,0.2); }
.accordion-trigger { width: 100%; background: none; border: none; padding: 1.2rem 1.6rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: var(--text-primary); font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 500; transition: background 0.2s; }
.accordion-trigger:hover { background: rgba(255,255,255,0.02); }
.accordion-trigger .arrow { width: 20px; height: 20px; transition: transform 0.3s; color: var(--text-muted); }
.accordion-item.active .accordion-trigger .arrow { transform: rotate(180deg); color: var(--accent-gold); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-body { padding: 0 1.6rem 1.4rem; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; font-weight: 500; }

/* ── STAT CARDS ── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; text-align: center; transition: all 0.3s; }
.stat-card:hover { border-color: rgba(255,255,255,0.1); transform: translateY(-2px); }
.stat-card .stat-value { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; line-height: 1.2; margin-bottom: 0.3rem; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.stat-card .stat-change { font-family: 'Montserrat', sans-serif; font-size: 0.72rem; margin-top: 0.4rem; padding: 0.15rem 0.5rem; border-radius: 4px; display: inline-block; }
.stat-change.up { background: rgba(0,159,113,0.12); color: var(--accent-gold); }
.stat-change.neutral { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* ── CHART CONTAINERS ── */
.chart-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; margin-bottom: 2rem; }
.chart-wrapper h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.chart-wrapper .chart-sub { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.chart-canvas { width: 100%; position: relative; }

/* Bar chart */
.bar-chart { display: flex; align-items: flex-end; height: 240px; padding-bottom: 2.2rem; position: relative; border-bottom: 1px solid var(--border); }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; height: 100%; justify-content: flex-end; }
.bar { width: 60%; max-width: 55px; border-radius: 6px 6px 0 0; transition: height 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.bar:hover { filter: brightness(1.2); }
.bar-label { font-size: 0.7rem; color: var(--text-muted); text-align: center; position: absolute; bottom: -1.8rem; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.bar-value { font-family: 'Montserrat', sans-serif; font-size: 0.68rem; color: var(--text-secondary); text-align: center; margin-bottom: 0.35rem; }

/* Horizontal bar chart */
.h-bar-chart { display: flex; flex-direction: column; gap: 1rem; }
.h-bar-row { display: flex; align-items: center; gap: 1rem; }
.h-bar-label { width: 120px; flex-shrink: 0; font-size: 0.82rem; color: var(--text-secondary); text-align: right; }
.h-bar-track { flex: 1; height: 28px; background: rgba(255,255,255,0.04); border-radius: 6px; overflow: hidden; position: relative; }
.h-bar-fill { height: 100%; border-radius: 6px; transition: width 1.2s ease-out; display: flex; align-items: center; justify-content: flex-end; padding-right: 0.6rem; }
.h-bar-fill span { font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 500; color: var(--bg-primary); }

/* Donut chart */
.donut-container { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.donut-svg { width: 180px; height: 180px; }
.donut-legend { display: flex; flex-direction: column; gap: 0.6rem; }
.donut-legend-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--text-secondary); }
.donut-legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* ── TOP NAV BAR ── */
.top-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10,14,23,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); display: flex; align-items: center; min-height: 42px; padding: 0 1rem 0 3.5rem; gap: 0.75rem;padding-top: 5px;padding-bottom: 10px;}
.top-nav-nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5rem; overflow: hidden; }
.top-nav-inner { flex: 1; max-width: none; margin: 0; padding: 0 0.5rem 0 0; display: flex; align-items: center; flex-wrap: nowrap; justify-content: flex-start; gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.top-nav-inner::-webkit-scrollbar { display: none; }
.top-nav-label { flex-shrink: 0; padding: 0.75rem 1rem; font-family: 'Montserrat', sans-serif; font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.02em; transition: color 0.3s; white-space: nowrap; cursor: default; }
.top-nav-label[data-section="hero"] { cursor: pointer; }
.top-nav-label.active { color: var(--accent-gold); cursor: pointer; }
.top-nav-label.completed { color: var(--text-secondary); cursor: pointer; }
.top-nav-label.completed.active { color: var(--accent-gold); }
.top-nav-label.completed:hover { color: var(--accent-gold); }
.top-nav-more { display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.04); color: var(--text-secondary); font-family: 'Montserrat', sans-serif; font-size: 1.2rem; line-height: 1; cursor: pointer; transition: all 0.25s ease; }
.top-nav-more:hover { border-color: var(--border-accent); color: var(--text-primary); background: rgba(255,255,255,0.08); }
.top-nav-more.visible { display: inline-flex; }
.top-nav-more-left { order: -1; }
.top-nav-progress { height: 3px; background: rgba(255,255,255,0.04); position: absolute; bottom: 0; left: 0; right: 0; }
.top-nav-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-gold), #00c98e); width: 0%; transition: width 0.4s ease; }
.top-nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; padding-right: 0.25rem; }
.top-nav-admin-link { display: inline-flex; align-items: center; justify-content: center; padding: 0.55rem 0.9rem; border-radius: 8px; border: 1px solid var(--border-accent); background: var(--accent-gold-dim); color: var(--accent-gold); text-decoration: none; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 600; transition: all 0.25s ease; }
.top-nav-admin-link:hover { background: rgba(0, 159, 113, 0.22); transform: translateY(-1px); }
.top-nav-user { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; min-width: 180px; padding: 0.45rem 0.8rem; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text-primary); font-family: inherit; cursor: pointer; transition: border-color 0.25s ease, background 0.25s ease; }
.top-nav-user:hover { border-color: var(--border-accent); background: rgba(255,255,255,0.05); }
.top-nav-user:disabled { cursor: default; opacity: 0.6; }
.top-nav-user-name { font-size: 0.82rem; font-weight: 600; }
.top-nav-user-email { font-size: 0.68rem; color: var(--text-muted); font-family: 'Montserrat', sans-serif; }
.top-nav-logout { padding: 0.55rem 0.9rem; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.25s ease; }
.top-nav-logout:hover { border-color: rgba(251,113,133,0.35); color: var(--accent-rose); background: rgba(251,113,133,0.08); }

.next-module { display: flex; justify-content: center; margin-top: 3rem; }
.next-module a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.8rem; border-radius: 8px; background: var(--accent-gold); color: var(--bg-primary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all 0.3s; }
.next-module a:hover { background: #00b880; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,159,113,0.25); }
.next-module a.locked { pointer-events: none; opacity: 0.3; filter: grayscale(0.5); }
.next-module a.locked:hover { transform: none; box-shadow: none; background: var(--accent-gold); }
/* ── MODULE MINI QUIZ ── */
.module-quiz { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; margin-top: 2.5rem; }
.module-quiz h4 { font-size: 1rem; font-weight: 600; color: var(--accent-gold); margin-bottom: 1.5rem; }
.mq-question { margin-bottom: 1.5rem; }
.mq-question:last-child { margin-bottom: 0; }
.mq-text { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.75rem; }
.mq-options { display: flex; flex-direction: column; gap: 0.4rem; }
.mq-opt { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-secondary); cursor: pointer; font-size: 0.88rem; color: var(--text-secondary); transition: all 0.25s; }
.mq-opt:hover:not(.mq-disabled) { border-color: rgba(255,255,255,0.12); background: var(--bg-card-hover); color: var(--text-primary); }
.mq-opt .mq-radio { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--text-muted); transition: all 0.25s; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; }
.mq-opt.mq-correct { border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.06); color: var(--accent-green); }
.mq-opt.mq-correct .mq-radio { border-color: var(--accent-green); background: var(--accent-green); color: var(--bg-primary); }
.mq-opt.mq-wrong { border-color: rgba(251,113,133,0.4); background: rgba(251,113,133,0.06); color: var(--accent-rose); }
.mq-opt.mq-wrong .mq-radio { border-color: var(--accent-rose); background: var(--accent-rose); color: var(--bg-primary); }
.mq-opt.mq-disabled { cursor: default; opacity: 0.5; }
.mq-opt.mq-correct.mq-disabled, .mq-opt.mq-wrong.mq-disabled { opacity: 1; }
.mq-feedback { margin-top: 0.5rem; padding: 0.6rem 0.8rem; border-radius: 6px; font-size: 0.82rem; line-height: 1.5; display: none; }
.mq-feedback.mq-show { display: block; animation: fadeUp 0.3s ease-out; }
.mq-feedback.mq-fb-correct { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.15); color: var(--accent-green); }
.mq-feedback.mq-fb-wrong { background: rgba(251,113,133,0.08); border: 1px solid rgba(251,113,133,0.15); color: var(--accent-rose); }

/* ── QUIZ ── */
.quiz-container { display: flex; flex-direction: column; gap: 1.5rem; }
.quiz-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden; margin-bottom: 1rem; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-gold), #00c98e); border-radius: 100px; width: 0%; transition: width 0.5s ease; }
.quiz-score-banner { display: none; background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: 16px; padding: 2.5rem; text-align: center; position: relative; overflow: hidden; margin-top: 1rem; }
.quiz-score-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-gold), var(--accent-green), var(--accent-blue)); }
.quiz-score-banner.visible { display: block; animation: fadeUp 0.6s ease-out; }
.quiz-score-circle { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; font-family: 'Montserrat', sans-serif; font-size: 1.8rem; }
.quiz-score-circle.pass { background: rgba(52,211,153,0.12); border: 2px solid rgba(52,211,153,0.3); color: var(--accent-green); }
.quiz-score-circle.fail { background: rgba(251,113,133,0.12); border: 2px solid rgba(251,113,133,0.3); color: var(--accent-rose); }
.quiz-score-banner h3 { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; margin-bottom: 0.5rem; }
.quiz-score-banner p { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.quiz-reset-btn { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 0.7rem 1.6rem; border-radius: 8px; border: 1px solid var(--border-accent); background: transparent; color: var(--accent-gold); font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.quiz-reset-btn:hover { background: var(--accent-gold-dim); }
.quiz-question { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem; transition: border-color 0.35s; }
.quiz-question.answered-correct { border-color: rgba(52,211,153,0.3); }
.quiz-question.answered-wrong { border-color: rgba(251,113,133,0.3); }
.quiz-q-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.quiz-q-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 500; background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); transition: all 0.3s; }
.answered-correct .quiz-q-num { background: rgba(52,211,153,0.12); color: var(--accent-green); border-color: rgba(52,211,153,0.25); }
.answered-wrong .quiz-q-num { background: rgba(251,113,133,0.12); color: var(--accent-rose); border-color: rgba(251,113,133,0.25); }
.quiz-q-text { font-size: 1rem; font-weight: 500; line-height: 1.5; }
.quiz-q-module { font-family: 'Montserrat', sans-serif; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-left: auto; flex-shrink: 0; padding: 0.15rem 0.5rem; background: rgba(255,255,255,0.04); border-radius: 4px; }
.quiz-options { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.quiz-option { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1.2rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-secondary); cursor: pointer; transition: all 0.25s; font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }
.quiz-option:hover:not(.disabled) { border-color: rgba(255,255,255,0.12); background: var(--bg-card-hover); color: var(--text-primary); }
.quiz-option .radio { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-muted); transition: all 0.25s; display: flex; align-items: center; justify-content: center; }
.quiz-option .checkbox { flex-shrink: 0; width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--text-muted); transition: all 0.25s; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; }
.quiz-option.selected .checkbox { border-color: var(--accent-gold); background: var(--accent-gold); color: var(--bg-primary); }
.quiz-option.correct .checkbox { border-color: var(--accent-green); background: var(--accent-green); color: var(--bg-primary); }
.quiz-option.wrong .checkbox { border-color: var(--accent-rose); background: var(--accent-rose); color: var(--bg-primary); }
.quiz-option.missed .checkbox { border-color: var(--accent-green); background: transparent; }
.quiz-option.missed { border-color: rgba(52,211,153,0.3); color: var(--accent-green); opacity: 0.7; }
.quiz-multi-hint { font-size: 0.78rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.5rem; }
.quiz-submit-btn { margin-top: 0.75rem; padding: 0.5rem 1.2rem; border-radius: 6px; border: 1px solid var(--accent-gold); background: transparent; color: var(--accent-gold); font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.quiz-submit-btn:hover { background: var(--accent-gold); color: var(--bg-primary); }
.quiz-option.selected .radio { border-color: var(--accent-gold); background: var(--accent-gold); }
.quiz-option.selected .radio::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--bg-primary); }
.quiz-option.correct { border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.06); color: var(--accent-green); }
.quiz-option.correct .radio { border-color: var(--accent-green); background: var(--accent-green); }
.quiz-option.correct .radio::after { content: '✓'; font-size: 0.65rem; color: var(--bg-primary); font-weight: 700; }
.quiz-option.wrong { border-color: rgba(251,113,133,0.4); background: rgba(251,113,133,0.06); color: var(--accent-rose); }
.quiz-option.wrong .radio { border-color: var(--accent-rose); background: var(--accent-rose); }
.quiz-option.wrong .radio::after { content: '✗'; font-size: 0.7rem; color: var(--bg-primary); font-weight: 700; }
.quiz-option.disabled { cursor: default; opacity: 0.55; }
.quiz-option.correct.disabled, .quiz-option.wrong.disabled { opacity: 1; }
.quiz-feedback { margin-top: 0.75rem; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500; line-height: 1.6; display: none; }
.quiz-feedback.visible { display: block; animation: fadeUp 0.3s ease-out; }
.quiz-feedback.correct { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.15); color: var(--accent-green); }
.quiz-feedback.wrong { background: rgba(251,113,133,0.08); border: 1px solid rgba(251,113,133,0.15); color: var(--accent-rose); }

footer { border-top: 1px solid var(--border); padding: 3rem 0; text-align: center; }
footer p { font-size: 0.8rem; color: var(--text-muted); }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--bg-primary); } ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
a.src { color: var(--accent-gold); text-decoration: none; font-size: 0.75rem; font-family: 'Montserrat', sans-serif; opacity: 0.7; transition: opacity 0.2s; border-bottom: 1px dotted rgba(0,159,113,0.3); }
a.src:hover { opacity: 1; }
.stat-card a.src { display: block; margin-top: 0.3rem; font-size: 0.65rem; }
/* ── AUTH SCREEN ── */
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; position: relative; }
.auth-screen::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,159,113,0.06) 0%, transparent 70%); pointer-events: none; }
.auth-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 3rem; width: 100%; max-width: 440px; position: relative; }
.auth-box h2 { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; margin-bottom: 0.5rem; text-align: center; }
.auth-box .auth-sub { font-size: 0.9rem; color: var(--text-secondary); text-align: center; margin-bottom: 2rem; font-weight: 500; }
.auth-field { margin-bottom: 1.2rem; }
.auth-field label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; font-family: 'Montserrat', sans-serif; letter-spacing: 0.03em; }
.auth-field input { width: 100%; padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font-family: 'Montserrat', sans-serif; font-size: 0.9rem; outline: none; transition: border-color 0.3s; }
.auth-field input:focus { border-color: var(--accent-gold); }
.auth-field input::placeholder { color: var(--text-muted); }
.auth-field input[readonly] { color: var(--text-secondary); background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); cursor: default; }
.auth-field-note { margin-top: 0.45rem; font-size: 0.76rem; color: var(--text-muted); line-height: 1.5; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-btn { width: 100%; padding: 0.8rem; border-radius: 8px; border: none; background: var(--accent-gold); color: var(--bg-primary); font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s; margin-top: 0.5rem; }
.auth-btn:hover { background: #00b880; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,159,113,0.25); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.auth-toggle { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-secondary); }
.auth-toggle a { color: var(--accent-gold); text-decoration: none; cursor: pointer; font-weight: 500; }
.auth-toggle a:hover { text-decoration: underline; }
.auth-error { background: rgba(251,113,133,0.08); border: 1px solid rgba(251,113,133,0.2); color: var(--accent-rose); padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.85rem; margin-bottom: 1rem; display: none; }
.auth-error.show { display: block; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-welcome { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; padding: 0.6rem 1rem; background: rgba(0,159,113,0.06); border: 1px solid rgba(0,159,113,0.15); border-radius: 8px; display: none; }
.auth-welcome.show { display: block; }
.profile-modal { position: fixed; inset: 0; z-index: 240; display: none; align-items: center; justify-content: center; padding: 2rem; }
.profile-modal.open { display: flex; }
.profile-modal-backdrop { position: absolute; inset: 0; background: rgba(10,14,23,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.profile-modal-card { position: relative; width: 100%; max-width: 520px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; box-shadow: 0 20px 80px rgba(0,0,0,0.35); }
.profile-modal-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text-secondary); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.profile-modal-close:hover { border-color: var(--border-accent); color: var(--text-primary); }
.profile-modal-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.profile-avatar { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-gold-dim); color: var(--accent-gold); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 600; }
.profile-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-family: 'Montserrat', sans-serif; margin-bottom: 0.15rem; }
.profile-modal-header h3 { font-family: 'Montserrat', sans-serif; font-size: 1.7rem; line-height: 1.1; }
.profile-email { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }
.profile-modal-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; }
.profile-secondary-btn { padding: 0.8rem 1.1rem; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-family: 'Montserrat', sans-serif; font-size: 0.9rem; cursor: pointer; transition: all 0.25s ease; }
.profile-secondary-btn:hover { border-color: var(--border-accent); color: var(--text-primary); }
.profile-save-btn { width: auto; margin-top: 0; }
@media (max-width: 980px) {
  .top-nav { padding-right: 0.75rem; }
  .top-nav-nav { gap: 0.35rem; }
  .top-nav-inner { padding-right: 0.25rem; }
  .top-nav-actions { gap: 0.5rem; }
  .top-nav-user { min-width: 140px; }
}
@media (max-width: 720px) {
  .top-nav { padding-top: 0.35rem; padding-bottom: 0.35rem; }
  .top-nav-nav { min-width: 0; }
  .top-nav-inner { padding-right: 0; }
  .top-nav-actions { justify-content: flex-end; padding-bottom: 0.3rem; }
  .top-nav-admin-link { order: -1; }
  .top-nav-user { min-width: 0; max-width: 160px; }
  .profile-modal { padding: 1rem; }
  .profile-modal-card { padding: 1.5rem; }
  .profile-modal-actions { flex-direction: column-reverse; }
  .profile-secondary-btn, .profile-save-btn { width: 100%; }
}

.admin-body { min-height: 100vh; background: linear-gradient(180deg, rgba(10,14,23,1) 0%, rgba(10,14,23,0.96) 100%); }
.admin-shell { max-width: 1440px; margin: 0 auto; padding: 0 2rem 4rem; }
.admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
.admin-header-copy h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; margin-bottom: 0.5rem; }
.admin-header-copy p { color: var(--text-secondary); max-width: 720px; }
.admin-header-actions { display: flex; align-items: center; gap: 0.75rem; }
.admin-header-link, .admin-header-logout { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1rem; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-primary); text-decoration: none; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; cursor: pointer; transition: all 0.25s ease; }
.admin-header-link:hover, .admin-header-logout:hover { border-color: var(--border-accent); background: rgba(255,255,255,0.04); }
.admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-metric { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.35rem; }
.admin-metric-label { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-family: 'Montserrat', sans-serif; }
.admin-metric-value { font-family: 'Montserrat', sans-serif; font-size: 2rem; line-height: 1.1; margin-top: 0.45rem; }
.admin-layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.admin-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; }
.admin-panel h2 { font-size: 1rem; margin-bottom: 1rem; }
.admin-users-toolbar { margin-bottom: 1rem; }
.admin-users-search { display: flex; flex-direction: column; gap: 0.4rem; }
.admin-users-search-label { color: var(--text-muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: 'Montserrat', sans-serif; }
.admin-users-search-input { width: 100%; padding: 0.7rem 0.85rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font-family: 'Montserrat', sans-serif; font-size: 0.88rem; }
.admin-users-search-input::placeholder { color: var(--text-muted); }
.admin-users-search-input:focus { outline: 2px solid rgba(0, 159, 113, 0.28); outline-offset: 2px; border-color: var(--border-accent); }
.admin-users-list { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-users-pagination { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.admin-users-page-summary { color: var(--text-muted); font-size: 0.76rem; font-family: 'Montserrat', sans-serif; }
.admin-users-page-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.admin-users-page-control { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text-secondary); font-size: 0.82rem; }
.admin-users-page-select { min-width: 72px; padding: 0.55rem 0.75rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font-family: 'Montserrat', sans-serif; font-size: 0.84rem; }
.admin-users-page-select:focus { outline: 2px solid rgba(0, 159, 113, 0.28); outline-offset: 2px; border-color: var(--border-accent); }
.admin-users-page-button { display: inline-flex; align-items: center; justify-content: center; padding: 0.55rem 0.8rem; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text-primary); font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.25s ease; }
.admin-users-page-button-icon { min-width: 40px; padding: 0.55rem; font-size: 1rem; line-height: 1; }
.admin-users-page-button:hover:not(:disabled) { border-color: var(--border-accent); background: rgba(255,255,255,0.05); }
.admin-users-page-button:disabled { opacity: 0.45; cursor: not-allowed; }
.admin-user-item { width: 100%; border: 1px solid var(--border); background: var(--bg-secondary); border-radius: 12px; padding: 0.95rem 1rem; text-align: left; color: var(--text-primary); cursor: pointer; transition: all 0.25s ease; }
.admin-user-item:hover { border-color: rgba(255,255,255,0.12); background: var(--bg-card-hover); }
.admin-user-item.active { border-color: var(--border-accent); background: rgba(0,159,113,0.08); }
.admin-user-name { display: block; font-size: 0.95rem; font-weight: 600; }
.admin-user-meta { display: block; margin-top: 0.2rem; color: var(--text-muted); font-size: 0.76rem; font-family: 'Montserrat', sans-serif; }
.admin-user-stats { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.75rem; }
.admin-chip { display: inline-flex; align-items: center; padding: 0.2rem 0.5rem; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--text-secondary); font-size: 0.72rem; font-family: 'Montserrat', sans-serif; }
.admin-empty, .admin-loading, .admin-error-banner, .admin-placeholder { border-radius: 12px; padding: 1rem 1.1rem; font-size: 0.9rem; }
.admin-loading, .admin-placeholder { background: rgba(255,255,255,0.04); color: var(--text-secondary); }
.admin-empty { background: rgba(255,255,255,0.04); color: var(--text-muted); }
.admin-error-banner { background: rgba(251,113,133,0.08); border: 1px solid rgba(251,113,133,0.15); color: var(--accent-rose); }
.admin-user-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.admin-user-header h2 { font-family: 'Montserrat', sans-serif; font-size: 2rem; line-height: 1.05; margin-bottom: 0.3rem; }
.admin-user-header p { color: var(--text-secondary); }
.admin-detail-tabs { margin-top: 1rem; }
.admin-tab-list { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-tab { display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text-secondary); font-family: 'Montserrat', sans-serif; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.25s ease; }
.admin-tab:hover { border-color: rgba(255,255,255,0.12); color: var(--text-primary); }
.admin-tab.active { border-color: var(--border-accent); background: var(--accent-gold-dim); color: var(--accent-gold); }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }
.admin-section { margin-top: 1.5rem; }
.admin-section:first-child { margin-top: 0; }
.admin-section h3 { font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.8rem; font-family: 'Montserrat', sans-serif; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.admin-table th, .admin-table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { background: rgba(255,255,255,0.03); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-family: 'Montserrat', sans-serif; }
.admin-table td { font-size: 0.88rem; color: var(--text-secondary); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-cell-title { color: var(--text-primary); font-weight: 500; line-height: 1.45; }
.admin-cell-meta { margin-top: 0.3rem; color: var(--text-muted); font-size: 0.72rem; font-family: 'Montserrat', sans-serif; }
.admin-answer-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.admin-answer-pill { display: inline-flex; align-items: center; padding: 0.2rem 0.45rem; border-radius: 999px; color: var(--text-primary); font-size: 0.72rem; font-family: 'Montserrat', sans-serif; }
.admin-answer-pill.correct { background: rgba(52,211,153,0.12); color: var(--accent-green); border: 1px solid rgba(52,211,153,0.2); }
.admin-answer-pill.wrong { background: rgba(251,113,133,0.12); color: var(--accent-rose); border: 1px solid rgba(251,113,133,0.2); }
.admin-view-answers-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.55rem 0.8rem; border-radius: 8px; border: 1px solid var(--border-accent); background: var(--accent-gold-dim); color: var(--accent-gold); font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.25s ease; }
.admin-view-answers-btn:hover { background: rgba(0,159,113,0.22); transform: translateY(-1px); }
.admin-table td.admin-status-pass { color: var(--accent-green); font-weight: 600; }
.admin-table td.admin-status-fail { color: var(--accent-rose); font-weight: 600; }
.admin-unauthorized { max-width: 720px; margin: 6rem auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; text-align: center; }
.admin-unauthorized h1 { font-family: 'Montserrat', sans-serif; font-size: 2rem; margin-bottom: 0.6rem; }
.admin-unauthorized p { color: var(--text-secondary); margin-bottom: 1rem; }
.admin-answer-modal { position: fixed; inset: 0; z-index: 260; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.admin-answer-modal.open { display: flex; }
.admin-answer-modal-backdrop { position: absolute; inset: 0; background: rgba(10,14,23,0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.admin-answer-modal-card { position: relative; width: 100%; max-width: 900px; max-height: min(90vh, 920px); overflow: hidden; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 90px rgba(0,0,0,0.38); }
.admin-answer-modal-close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text-secondary); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 1; }
.admin-answer-modal-close:hover { border-color: var(--border-accent); color: var(--text-primary); }
.admin-answer-modal-header { padding: 1.5rem 1.75rem 1rem; border-bottom: 1px solid var(--border); }
.admin-answer-modal-header h2 { font-family: 'Montserrat', sans-serif; font-size: 2rem; line-height: 1.05; margin-bottom: 0.35rem; }
.admin-answer-modal-header p { color: var(--text-secondary); }
.admin-answer-modal-body { padding: 1.25rem 1.75rem 1.75rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.admin-answer-question { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-secondary); }
.admin-answer-question-head { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.admin-answer-group { margin-top: 0.85rem; }
@media (max-width: 1080px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .admin-shell { padding: 0 1rem 3rem; }
  .admin-header { flex-direction: column; }
  .admin-header-actions { width: 100%; flex-wrap: wrap; }
  .admin-header-link, .admin-header-logout { width: 100%; }
  .admin-answer-modal { padding: 0.75rem; }
  .admin-answer-modal-header { padding: 1.25rem 1rem 0.85rem; }
  .admin-answer-modal-body { padding: 1rem; }
}

.admin-body section {
  padding: 1rem 0;
}

/* ── COMPANY LIST ── */
.admin-company-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 0.9rem 1rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 0.6rem; }
.admin-company-item:last-child { margin-bottom: 0; }
.admin-company-info { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-company-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.admin-company-meta { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.2rem; }
.admin-company-code { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; padding: 0.2rem 0.6rem; background: var(--accent-gold-dim); border: 1px solid var(--border-accent); border-radius: 6px; color: var(--accent-gold); }
.admin-copy-code-btn { padding: 0.2rem 0.55rem; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-size: 0.72rem; cursor: pointer; transition: all 0.2s; }
.admin-copy-code-btn:hover { border-color: var(--border-accent); color: var(--accent-gold); }
.admin-delete-company-btn { flex-shrink: 0; padding: 0.4rem 0.7rem; border-radius: 8px; border: 1px solid rgba(251,113,133,0.2); background: transparent; color: var(--accent-rose); font-size: 0.78rem; cursor: pointer; transition: all 0.2s; }
.admin-delete-company-btn:hover { background: rgba(251,113,133,0.08); border-color: rgba(251,113,133,0.4); }
.admin-delete-user-btn { padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid rgba(251,113,133,0.25); background: transparent; color: var(--accent-rose); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: 'Montserrat', sans-serif; }
.admin-delete-user-btn:hover { background: rgba(251,113,133,0.08); border-color: rgba(251,113,133,0.5); }
.admin-confirm-modal { position: fixed; inset: 0; z-index: 270; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.admin-confirm-modal.open { display: flex; }
.admin-confirm-modal-backdrop { position: absolute; inset: 0; background: rgba(10,14,23,0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.admin-confirm-modal-card { position: relative; z-index: 1; width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid rgba(251,113,133,0.3); border-radius: 18px; box-shadow: 0 24px 90px rgba(0,0,0,0.45); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.admin-confirm-modal-card h2 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; color: var(--accent-rose); margin: 0; }
.admin-confirm-modal-card p { color: var(--text-secondary); margin: 0; font-size: 0.88rem; line-height: 1.5; }
.admin-confirm-warning { color: var(--text-primary) !important; }
.admin-confirm-warning strong { color: var(--accent-rose); }
.admin-confirm-footer { display: flex; gap: 0.75rem; justify-content: flex-end; padding-top: 0.25rem; }
.admin-confirm-footer button { padding: 0.5rem 1.1rem; border-radius: 8px; font-size: 0.88rem; font-family: 'Montserrat', sans-serif; font-weight: 500; cursor: pointer; transition: all 0.2s; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); }
.admin-confirm-footer button:hover { border-color: var(--border-accent); color: var(--text-primary); }
.admin-confirm-footer #adminDeleteUserConfirmBtn { border-color: rgba(251,113,133,0.25); color: var(--accent-rose); }
.admin-confirm-footer #adminDeleteUserConfirmBtn:not([disabled]):hover { background: rgba(251,113,133,0.1); border-color: rgba(251,113,133,0.5); }
.admin-confirm-footer #adminDeleteUserConfirmBtn[disabled] { opacity: 0.35; cursor: not-allowed; }
.admin-set-role-btn { padding: 0.3rem 0.75rem; border-radius: 6px; border: 1px solid var(--border-accent); background: var(--accent-gold-dim); color: var(--accent-gold); font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.admin-set-role-btn:hover { background: rgba(0,159,113,0.22); }

/* ── DASHBOARD ── */
.dashboard-view { min-height: calc(100vh - 42px); display: flex; align-items: flex-start; justify-content: center; padding: 3.5rem 2rem 5rem; }
.dashboard-container { width: 100%; max-width: 1060px; }

.dashboard-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.admin-shell .dashboard-topbar { padding-top: 2rem; }
.topbar-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: 1rem; margin-right: auto; }
.topbar-nav-link { color: var(--text-primary); text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.4rem 0.75rem; border-radius: 8px; transition: background 0.2s; }
.topbar-nav-link:hover { background: rgba(255,255,255,0.07); }
.light-mode .topbar-nav-link:hover { background: rgba(0,0,0,0.05); }
.dashboard-admin-link { background: var(--accent-gold) !important; border-color: var(--accent-gold) !important; color: var(--bg-primary) !important; font-weight: 600; }
.dashboard-admin-link:hover { background: #00b880 !important; border-color: #00b880 !important; }
.dashboard-header { margin-bottom: 2.8rem; animation: fadeUp 0.7s ease-out both; }
.dashboard-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-gold); font-weight: 500; margin-bottom: 0.6rem; }
.dashboard-greeting { font-family: 'Montserrat', sans-serif; font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 500; color: var(--text-secondary); margin-bottom: 0.4rem; }
.dashboard-course-title { font-family: 'Montserrat', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.dashboard-course-title em { font-style: italic; color: var(--accent-gold); font-weight: 500; }
.home-description { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-top: 1rem; max-width: 560px; }

/* Module grid */
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; animation: fadeUp 0.7s ease-out 0.12s both; }

/* Module card base */
.module-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem 1.7rem; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s; position: relative; overflow: hidden; outline: none; display: flex; flex-direction: column; gap: 1.1rem; }
.module-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--mc-accent, var(--accent-gold)); opacity: 0; transition: opacity 0.25s; border-radius: 14px 14px 0 0; }
.module-card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.1); transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.module-card:hover::after { opacity: 1; }
.module-card:focus-visible { border-color: var(--mc-accent, var(--accent-gold)); box-shadow: 0 0 0 3px rgba(0,159,113,0.2); }

/* Per-module accent colours */
.module-card[data-accent="blue"]   { --mc-accent: var(--accent-blue); }
.module-card[data-accent="purple"] { --mc-accent: var(--accent-purple); }
.module-card[data-accent="cyan"]   { --mc-accent: var(--accent-cyan); }
.module-card[data-accent="orange"] { --mc-accent: var(--accent-orange); }
.module-card[data-accent="gold"]   { --mc-accent: var(--accent-gold); }
.module-card[data-accent="green"]  { --mc-accent: var(--accent-green); }
.module-card[data-accent="rose"]   { --mc-accent: var(--accent-rose); }

/* Module number badge */
.module-card-num { display: flex; flex-direction: column; gap: 0.1rem; }
.module-num-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 500; }
.module-num-value { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1; color: var(--mc-accent, var(--accent-gold)); opacity: 0.85; }

/* Module card body */
.module-card-body { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; justify-content: space-between; }
.module-card-title { font-family: 'Montserrat', sans-serif; font-size: 0.92rem; font-weight: 600; line-height: 1.4; color: var(--text-primary); }

/* Status badge */
.module-card-status { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 500; padding: 0.2rem 0.65rem; border-radius: 100px; width: fit-content; }
.module-card-status.coming-soon { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--text-muted); }
.module-card-status.available { background: var(--accent-gold-dim); border: 1px solid var(--border-accent); color: var(--accent-gold); }
.module-card-status.in-progress { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: var(--accent-blue); }
.module-card-status.completed { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25); color: var(--accent-green); }
.module-card-status.incomplete { background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.25); color: var(--accent-orange); }

@media (max-width: 580px) {
  .dashboard-view { padding: 2.5rem 1.2rem 4rem; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { padding: 1.3rem 1.4rem; }
}

/* ── MODULE OVERVIEW ── */
.module-overview-view { --mov-accent: var(--accent-blue); min-height: 100vh; padding: 3.5rem 2rem 5rem; }
.module-overview-container { max-width: 1060px; margin: 0 auto; }


.module-overview-header { margin-bottom: 2.5rem; animation: fadeUp 0.6s ease-out both; }
.module-overview-badge { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.75rem; }
.module-overview-num-value { font-family: 'Montserrat', sans-serif; font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--mov-accent); }
.module-overview-title { font-family: 'Montserrat', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.15; color: var(--text-primary); }

.module-overview-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 1.25rem; align-items: start; animation: fadeUp 0.6s ease-out 0.1s both; }

.module-overview-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem 2.2rem; position: relative; overflow: hidden; }
.module-overview-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--mov-accent); opacity: 0.7; }
.module-overview-card-heading { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 600; color: var(--mov-accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.6rem; }

.mov-block { margin-bottom: 1.5rem; }
.mov-block:last-child { margin-bottom: 0; }
.mov-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.55rem; }
.mov-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; font-weight: 500; }
.mov-outcome { padding-top: 1.5rem; border-top: 1px solid var(--border); }

.mov-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.mov-list > li { font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; padding-left: 1.1rem; position: relative; line-height: 1.5; }
.mov-list > li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--mov-accent); opacity: 0.7; flex-shrink: 0; }
.mov-sublist { list-style: none; padding: 0; margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.mov-sublist li { font-size: 0.83rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.mov-sublist li::before { content: '—'; position: absolute; left: 0; color: var(--text-muted); opacity: 0.5; font-size: 0.75rem; }

.mov-objectives-intro { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; margin-bottom: 1.1rem; line-height: 1.6; }
.mov-objectives-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.mov-objectives-list li { font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; padding: 0.7rem 0.9rem 0.7rem 2.4rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; position: relative; line-height: 1.5; }
.mov-objectives-list li::before { content: '✓'; position: absolute; left: 0.8rem; top: 0.65rem; color: var(--mov-accent); font-size: 0.8rem; font-weight: 600; }

.module-overview-actions { margin-top: 2.5rem; display: flex; justify-content: flex-end; }
.module-start-btn { background: var(--mov-accent); color: var(--bg-primary); border: none; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 600; padding: 0.85rem 2rem; border-radius: 10px; cursor: pointer; transition: all 0.25s; }
.module-start-btn:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.module-overview-disclaimer { margin-top: 2.5rem; font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; padding: 0.85rem 1.1rem; border: 1px solid var(--border); border-radius: 8px; }
.module-overview-disclaimer-label { font-weight: 600; color: var(--text-secondary); margin-right: 0.4rem; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; }

@media (max-width: 780px) { .module-overview-grid { grid-template-columns: 1fr; } }

/* ── LESSON VIEW ── */
.module-lesson-view { --lesson-accent: var(--accent-blue); min-height: 100vh; padding: 0; }
.lesson-page { max-width: 1200px; margin: 0 auto; padding: 3.5rem 2rem 5rem; }

.lesson-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; margin-top: 2.5rem; }

/* Sidebar */
.lesson-sidebar { position: sticky; top: 2rem; }
.lesson-sidebar-module { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.lesson-sidebar-title { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin-top: 0.25rem; line-height: 1.3; }
.lesson-subject-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.lesson-subject-item { background: transparent; border: none; text-align: left; padding: 0.55rem 0.75rem; border-radius: 8px; font-family: 'Montserrat', sans-serif; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; transition: all 0.2s; line-height: 1.4; }
.lesson-subject-item:hover { background: rgba(255,255,255,0.04); color: var(--text-secondary); }
.lesson-subject-item.active { background: rgba(255,255,255,0.06); color: var(--lesson-accent); font-weight: 600; border-left: 2px solid var(--lesson-accent); padding-left: calc(0.75rem - 2px); }
.lesson-subject-item.locked { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* Main content */
.lesson-main { min-width: 0; }
.lesson-subject-header { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.lesson-subject-id { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--lesson-accent); font-weight: 600; display: block; margin-bottom: 0.4rem; }
.lesson-subject-title { font-family: 'Montserrat', sans-serif; font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; color: var(--text-primary); line-height: 1.2; }

/* Content typography */
.lesson-subject-body { display: flex; flex-direction: column; gap: 1rem; }

/* Restyle mq-* quiz elements inside the lesson view to match lesson-cyu look */
.lesson-subject-body .module-quiz { background: transparent; border: none; border-top: 1px solid var(--border); border-radius: 0; padding: 2rem 0 0; margin-top: 1rem; }
.lesson-subject-body .module-quiz h4 { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.75rem; }
.lesson-subject-body .mq-question { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.4rem; margin-bottom: 0.75rem; }
.lesson-subject-body .mq-question:last-child { margin-bottom: 0; }
.lesson-subject-body .mq-text { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); line-height: 1.6; margin-bottom: 1rem; }
.lesson-subject-body .mq-radio { display: none; }
.lesson-subject-body .mq-opt { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 7px; padding: 0.6rem 1rem; font-size: 0.84rem; color: var(--text-secondary); }
.lesson-subject-body .mq-opt:hover:not(.mq-disabled) { border-color: var(--lesson-accent); color: var(--text-primary); background: rgba(255,255,255,0.06); }
.lesson-subject-body .mq-opt.mq-correct { background: rgba(52,211,153,0.1); border-color: #34d399; color: #34d399; font-weight: 600; }
.lesson-subject-body .mq-opt.mq-wrong { background: rgba(251,113,133,0.1); border-color: #fb7185; color: #fb7185; font-weight: 400; }
.lesson-subject-body .mq-feedback { font-size: 0.8rem; margin-top: 0.65rem; padding: 0.45rem 0.7rem; border-radius: 6px; line-height: 1.5; }
.lesson-subject-body .mq-feedback.mq-fb-correct { display: block; background: rgba(52,211,153,0.08); border: none; color: #34d399; }
.lesson-subject-body .mq-feedback.mq-fb-wrong { display: block; background: rgba(251,113,133,0.08); border: none; color: #fb7185; }

.lesson-p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; font-weight: 500; }
.lesson-h3 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-top: 0.5rem; }
.lesson-list-intro { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; font-weight: 500; margin-bottom: 0.25rem; }
.lesson-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.lesson-list li { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; padding-left: 1.2rem; position: relative; line-height: 1.6; }
.lesson-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--lesson-accent); opacity: 0.7; }
.lesson-sublist { list-style: none; padding: 0; margin-top: 0.35rem; display: flex; flex-direction: column; gap: 0.25rem; }
.lesson-sublist li { font-size: 0.84rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.lesson-sublist li::before { content: '—'; position: absolute; left: 0; color: var(--text-muted); opacity: 0.5; font-size: 0.75rem; }
.lesson-definition { margin: 0; padding: 1rem 1.4rem; border-left: 3px solid var(--lesson-accent); background: rgba(255,255,255,0.03); border-radius: 0 8px 8px 0; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; font-weight: 500; font-style: italic; }
.lesson-note { padding: 1rem 1.25rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-left: 3px solid var(--lesson-accent); border-radius: 0 8px 8px 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* Feature list */
.lesson-feature-list { display: flex; flex-direction: column; gap: 1rem; }
.lesson-feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.3rem; }
.lesson-feature-heading { font-family: 'Montserrat', sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--lesson-accent); margin-bottom: 0.4rem; }
.lesson-feature-body { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; font-weight: 500; margin: 0; }

/* Asset blocks */
.lesson-asset-blocks { display: flex; flex-direction: column; gap: 1rem; }
.lesson-asset-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.4rem; }
.lesson-asset-heading { font-family: 'Montserrat', sans-serif; font-size: 0.92rem; font-weight: 600; color: var(--lesson-accent); margin-bottom: 0.5rem; }
.lesson-asset-detail { color: var(--text-muted) !important; font-size: 0.85rem !important; margin-top: 0.5rem; }

/* Stats row */
.lesson-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lesson-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; }
.lesson-stat-value { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--lesson-accent); margin-bottom: 0.25rem; }
.lesson-stat-label { font-size: 0.78rem; color: var(--text-primary); font-weight: 500; margin-bottom: 0.2rem; }
.lesson-stat-note { font-size: 0.72rem; color: var(--text-muted); }

/* Table */
.lesson-table-wrap { overflow-x: auto; }
.lesson-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.lesson-table thead th { text-align: left; padding: 0.65rem 1rem; background: rgba(255,255,255,0.04); color: var(--lesson-accent); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.lesson-table tbody td { padding: 0.65rem 1rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); line-height: 1.6; font-weight: 500; vertical-align: top; }
.lesson-table tbody tr:last-child td { border-bottom: none; }
.lesson-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.lesson-table tbody td:first-child { font-weight: 500; color: var(--text-primary); white-space: nowrap; }

/* Takeaway list */
.lesson-takeaway-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.lesson-takeaway-list li { padding: 0.8rem 1rem 0.8rem 2.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; position: relative; line-height: 1.6; }
.lesson-takeaway-list li::before { content: '✓'; position: absolute; left: 0.9rem; color: var(--lesson-accent); font-weight: 700; }

/* Footer nav */
.lesson-footer-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.lesson-nav-btn { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 500; padding: 0.65rem 1.2rem; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.lesson-nav-btn:hover { border-color: var(--lesson-accent); color: var(--lesson-accent); }
.lesson-nav-next { background: var(--lesson-accent); border-color: var(--lesson-accent); color: var(--bg-primary); font-weight: 600; }
.lesson-nav-next:hover { opacity: 0.88; color: var(--bg-primary); transform: translateY(-1px); }
.lesson-nav-progress { font-size: 0.78rem; color: var(--text-muted); }

@media (max-width: 860px) { .lesson-layout { grid-template-columns: 1fr; } .lesson-sidebar { position: static; } .lesson-stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .lesson-page { padding: 2.5rem 1.2rem 4rem; } .lesson-stats-row { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .module-overview-view { padding: 0 1.2rem 4rem; } .module-overview-card { padding: 1.5rem 1.4rem; } }

/* ── LESSON DIAGRAMS ──*/
.lesson-diagram { margin: 0.5rem 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.5rem 2rem; }
.lesson-diagram-title { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1.5rem; }
.lesson-diagram-source { font-size: 0.7rem; color: var(--text-muted); margin-top: 1.25rem; font-style: italic; }
.lesson-taxonomy { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.lesson-taxonomy-root { background: var(--lesson-accent); color: var(--bg-primary); padding: 0.45rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: 0.88rem; }
.lesson-taxonomy-connector { width: 2px; height: 1.2rem; background: var(--border); }
.lesson-taxonomy-branches { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; max-width: 600px; }
.lesson-taxonomy-node { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.8rem; color: var(--text-secondary); }
.lesson-chain { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 0.25rem 0; }
.lesson-block { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.1rem; min-width: 155px; flex-shrink: 0; }
.lesson-block-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lesson-accent); font-weight: 600; margin-bottom: 0.5rem; }
.lesson-block-hash { font-family: 'Courier New', monospace; font-size: 0.68rem; color: var(--lesson-accent); opacity: 0.8; margin-bottom: 0.3rem; }
.lesson-block-prev { font-family: 'Courier New', monospace; font-size: 0.68rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.lesson-block-data { font-size: 0.75rem; color: var(--text-secondary); border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.5rem; line-height: 1.5; }
.lesson-chain-arrow { display: flex; align-items: center; padding: 0 0.5rem; color: var(--lesson-accent); font-size: 1.2rem; flex-shrink: 0; align-self: center; }
.lesson-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lesson-compare-col { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem 1.2rem; }
.lesson-compare-heading { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--lesson-accent); margin-bottom: 0.9rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.lesson-compare-row { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; padding: 0.25rem 0; }
.lesson-compare-row::before { content: '•'; color: var(--lesson-accent); flex-shrink: 0; }
.lesson-wallet-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lesson-wallet-cell { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.1rem; }
.lesson-wallet-cell-tag { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lesson-accent); font-weight: 600; margin-bottom: 0.3rem; }
.lesson-wallet-cell-title { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.4rem; }
.lesson-wallet-cell-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.lesson-risk-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.lesson-risk-row { display: flex; align-items: center; gap: 1rem; }
.lesson-risk-label { width: 160px; flex-shrink: 0; font-size: 0.78rem; color: var(--text-secondary); text-align: right; }
.lesson-risk-track { flex: 1; height: 22px; background: rgba(255,255,255,0.04); border-radius: 5px; overflow: hidden; }
.lesson-risk-fill { height: 100%; border-radius: 5px; background: var(--lesson-accent); opacity: 0.85; transition: width 1.2s ease-out; display: flex; align-items: center; justify-content: flex-end; padding-right: 0.5rem; }
.lesson-risk-fill span { font-size: 0.68rem; font-weight: 600; color: var(--bg-primary); }
@media (max-width: 640px) { .lesson-compare { grid-template-columns: 1fr; } .lesson-wallet-matrix { grid-template-columns: 1fr; } .lesson-risk-label { width: 110px; font-size: 0.72rem; } }

/* ── DIAGRAM: Regulator grid ── */
.lesson-reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.lesson-reg-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem 1rem; }
.lesson-reg-card-name { font-size: 1rem; font-weight: 700; color: var(--lesson-accent); margin-bottom: 0.2rem; font-family: 'Montserrat', sans-serif; }
.lesson-reg-card-role { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.3rem; }
.lesson-reg-card-law { font-size: 0.71rem; color: var(--text-muted); font-style: italic; }

/* ── DIAGRAM: Step flow ── */
.lesson-flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 0.25rem 0; }
.lesson-flow-step { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 0.85rem 1rem; min-width: 110px; flex: 1; }
.lesson-flow-step-num { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lesson-accent); font-weight: 700; margin-bottom: 0.2rem; }
.lesson-flow-step-title { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; }
.lesson-flow-step-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }
.lesson-flow-arrow { display: flex; align-items: center; padding: 0 0.4rem; color: var(--lesson-accent); font-size: 1.1rem; flex-shrink: 0; }

/* ── DIAGRAM: Numbered cards (MIS elements, financial product pathways) ── */
.lesson-mis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.lesson-mis-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem 1rem; text-align: center; }
.lesson-mis-num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--lesson-accent); color: var(--bg-primary); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.65rem; }
.lesson-mis-card-title { font-size: 0.83rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; }
.lesson-mis-card-desc { font-size: 0.73rem; color: var(--text-muted); line-height: 1.4; }

/* ── DIAGRAM: Checklist ── */
.lesson-checklist { display: flex; flex-direction: column; gap: 0.5rem; }
.lesson-checklist-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.65rem 0.9rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; }
.lesson-checklist-icon { flex-shrink: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--lesson-accent); color: var(--bg-primary); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; margin-top: 0.05rem; }
.lesson-checklist-body { flex: 1; }
.lesson-checklist-title { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.1rem; }
.lesson-checklist-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }

/* ── DIAGRAM: Licensing table ── */
.lesson-lic-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.lesson-lic-table th { text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lesson-accent); font-weight: 700; padding: 0 0.75rem 0.6rem; border-bottom: 1px solid var(--border); }
.lesson-lic-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-secondary); line-height: 1.4; vertical-align: top; }
.lesson-lic-table tr:last-child td { border-bottom: none; }
.lesson-lic-table td:first-child { color: var(--text-primary); font-weight: 500; }

@media (max-width: 640px) { .lesson-reg-grid { grid-template-columns: 1fr 1fr; } .lesson-flow { flex-direction: column; } .lesson-flow-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 1rem; } .lesson-mis-grid { grid-template-columns: 1fr; } }

/* ── LESSON QUIZ (Check Your Understanding) ──*/
.lesson-cyu { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.75rem; }
.lesson-cyu-header { margin-bottom: 0.25rem; }
.lesson-cyu-label { font-family: 'Montserrat', sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.lesson-cyu-q { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.4rem; }
.lesson-cyu-qtext { font-size: 0.88rem; color: var(--text-primary); font-weight: 500; line-height: 1.6; margin-bottom: 1rem; display: flex; gap: 0.7rem; align-items: flex-start; }
.lesson-cyu-qnum { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--lesson-accent); color: var(--bg-primary); font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 0.1rem; }
.lesson-cyu-opts { display: flex; flex-direction: column; gap: 0.4rem; }
.lesson-cyu-opt { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 7px; padding: 0.6rem 1rem; text-align: left; font-family: 'Montserrat', sans-serif; font-size: 0.84rem; color: var(--text-secondary); cursor: pointer; transition: all 0.18s; line-height: 1.4; }
.lesson-cyu-opt:hover:not(:disabled) { border-color: var(--lesson-accent); color: var(--text-primary); background: rgba(255,255,255,0.06); }
.lesson-cyu-opt.lcyu-correct { background: rgba(52,211,153,0.1); border-color: #34d399; color: #34d399; font-weight: 600; }
.lesson-cyu-opt.lcyu-wrong { background: rgba(251,113,133,0.1); border-color: #fb7185; color: #fb7185; }
.lesson-cyu-opt:disabled { cursor: default; }
.lesson-cyu-fb { font-size: 0.8rem; margin-top: 0.65rem; padding: 0.45rem 0.7rem; border-radius: 6px; display: none; line-height: 1.5; }
.lesson-cyu-fb.lcyu-fb-correct { display: block; background: rgba(52,211,153,0.08); color: #34d399; }
.lesson-cyu-fb.lcyu-fb-wrong { display: block; background: rgba(251,113,133,0.08); color: #fb7185; }
.lesson-nav-next:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none; }
.lesson-cyu-assessment { border-top-color: var(--lesson-accent); }
.lesson-cyu-assessment .lesson-cyu-label { font-size: 1rem; }
.lesson-cyu-multi-hint { font-size: 0.72rem; font-weight: 500; color: var(--text-muted); margin-left: 0.3rem; font-style: italic; }
.lesson-cyu-opt.lcyu-selected { border-color: var(--lesson-accent); color: var(--text-primary); background: rgba(255,255,255,0.07); }
.lesson-cyu-opt.lcyu-missed { background: rgba(52,211,153,0.06); border-color: rgba(52,211,153,0.4); color: rgba(52,211,153,0.7); }
.lesson-cyu-submit { margin-top: 0.6rem; padding: 0.5rem 1.2rem; border-radius: 7px; border: 1px solid var(--lesson-accent); background: transparent; color: var(--lesson-accent); font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.lesson-cyu-submit:hover { background: var(--lesson-accent); color: var(--bg-primary); }
.lesson-quiz-result { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.lqr { display: flex; align-items: center; gap: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 2rem; }
.lqr-circle { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 700; flex-shrink: 0; }
.lqr-pass { background: rgba(52,211,153,0.12); color: #34d399; border: 2px solid #34d399; }
.lqr-fail { background: rgba(251,113,133,0.12); color: #fb7185; border: 2px solid #fb7185; }
.lqr-body { display: flex; flex-direction: column; gap: 0.25rem; }
.lqr-status { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 700; }
.lqr-status-pass { color: #34d399; }
.lqr-status-fail { color: #fb7185; }
.lqr-detail { font-size: 0.88rem; color: var(--text-secondary); }
.lqr-threshold { font-size: 0.78rem; color: var(--text-muted); }
.lqr-cert-btn { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.1rem; border-radius: 8px; border: 1.5px solid #009f71; background: rgba(0,159,113,0.08); color: #009f71; font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.18s, color 0.18s; }
.lqr-cert-btn:hover { background: rgba(0,159,113,0.18); }
.module-cert-btn { width: 100%; padding: 0.5rem; border-radius: 8px; border: 1px solid rgba(52,211,153,0.3); background: transparent; color: #34d399; font-family: 'Montserrat', sans-serif; font-size: 0.76rem; font-weight: 600; cursor: pointer; transition: background 0.18s, border-color 0.18s; text-align: center; }
.module-cert-btn:hover { background: rgba(52,211,153,0.08); border-color: #34d399; }
.course-cert-section { margin-top: 1.5rem; text-align: center; }
.course-cert-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 2rem; border-radius: 10px; border: 1.5px solid #009f71; background: rgba(0,159,113,0.1); color: #009f71; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 700; cursor: pointer; letter-spacing: 0.02em; transition: background 0.18s, box-shadow 0.18s; }
.course-cert-btn:hover { background: rgba(0,159,113,0.2); box-shadow: 0 4px 20px rgba(0,159,113,0.2); }
.lesson-cyu-retry-row { margin-top: 1rem; display: flex; justify-content: flex-end; }
.lesson-cyu-retry-btn { padding: 0.45rem 1.1rem; border-radius: 7px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.lesson-cyu-retry-btn:hover { border-color: var(--lesson-accent); color: var(--lesson-accent); background: rgba(255,255,255,0.04); }

/* ═══════════════════ THEME TOGGLE ═══════════════════ */
.profile-theme-row { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px solid var(--border); margin-bottom: 0.25rem; }
.profile-theme-label { font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }
.theme-toggle { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle-option { font-size: 0.8rem; color: var(--text-muted); }
.theme-toggle-switch { position: relative; width: 44px; height: 24px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); border-radius: 100px; cursor: pointer; padding: 0; flex-shrink: 0; transition: background 0.25s, border-color 0.25s; }
.theme-toggle-switch[aria-checked="true"] { background: var(--accent-gold); border-color: var(--accent-gold); }
.theme-toggle-thumb { display: block; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform 0.25s; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.theme-toggle-switch[aria-checked="true"] .theme-toggle-thumb { transform: translateX(20px); }

/* ═══════════════════ LIGHT MODE ═══════════════════ */
html.light-mode {
  --bg-primary: #FAFAF7;
  --bg-secondary: #EFEFE9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F5F5F0;
  --text-primary: #111111;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: rgba(0,0,0,0.09);
  --border-accent: rgba(0,159,113,0.3);
}
html.light-mode body { background: var(--bg-primary); color: var(--text-primary); }
html.light-mode .top-nav { background: rgba(250,250,247,0.92); }
html.light-mode .top-nav-user { background: rgba(0,0,0,0.03); }
html.light-mode .top-nav-user:hover { background: rgba(0,0,0,0.05); }
html.light-mode .top-nav-more { background: rgba(0,0,0,0.03); }
html.light-mode .top-nav-more:hover { background: rgba(0,0,0,0.06); }
html.light-mode .top-nav-progress { background: rgba(0,0,0,0.06); }
html.light-mode .profile-modal-backdrop { background: rgba(0,0,0,0.45); }
html.light-mode .auth-field input[readonly] { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
html.light-mode .card:hover,
html.light-mode .numbered-item:hover,
html.light-mode .stat-card:hover { border-color: rgba(0,0,0,0.1); }
html.light-mode .quiz-option:hover:not(.disabled),
html.light-mode .mq-opt:hover:not(.mq-disabled) { border-color: rgba(0,0,0,0.12); }
html.light-mode .quiz-history-item:hover { background: rgba(0,0,0,0.03); }
html.light-mode .lesson-subject-item:hover { background: rgba(0,0,0,0.04); }
html.light-mode .lesson-subject-item.active { background: rgba(0,0,0,0.06); }
html.light-mode .lesson-definition,
html.light-mode .lesson-note { background: rgba(0,0,0,0.02); }
html.light-mode .lesson-cyu-retry-btn:hover { background: rgba(0,0,0,0.04); }
html.light-mode .quiz-progress-bar { background: rgba(0,0,0,0.08); }
html.light-mode .h-bar-track { background: rgba(0,0,0,0.06); }
html.light-mode .stat-change.neutral { background: rgba(0,0,0,0.05); }
html.light-mode .quiz-q-num { background: rgba(0,0,0,0.05); }
html.light-mode .quiz-q-module { background: rgba(0,0,0,0.04); }
html.light-mode .section-label .time { background: rgba(0,0,0,0.05); }
html.light-mode .accordion-trigger:hover { background: rgba(0,0,0,0.02); }
html.light-mode .hero-grid { background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px); }
html.light-mode .theme-toggle-switch:not([aria-checked="true"]) { background: rgba(0,0,0,0.1); border-color: rgba(0,0,0,0.15); }
html.light-mode ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
html.light-mode ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

#landing .admin-header-logout,
#courses-view #coursesUnauthActions .admin-header-logout {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}
#landing .admin-header-logout:hover,
#courses-view #coursesUnauthActions .admin-header-logout:hover {
  background: rgba(0, 159, 113, 0.8);
  border-color: rgba(0, 159, 113, 0.8);
}

/* ── LANDING HERO CONTENT ── */
.landing-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 2rem 5rem; }
.landing-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent-gold-dim); border: 1px solid var(--border-accent); padding: 0.4rem 1.2rem; border-radius: 100px; font-size: 0.75rem; font-weight: 500; color: var(--accent-gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2rem; animation: fadeDown 0.6s ease-out both; }
.landing-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-gold); animation: pulse 2s infinite; }
.landing-headline { font-family: "Montserrat", sans-serif; font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 700; line-height: 1.1; color: var(--text-primary); max-width: 820px; animation: fadeUp 0.7s ease-out 0.1s both; }
.landing-headline em { font-style: italic; color: var(--accent-gold); font-weight: 400; }
.landing-sub { font-size: 1.05rem; color: var(--text-secondary); max-width: 560px; margin-top: 1.5rem; font-weight: 400; line-height: 1.75; animation: fadeUp 0.7s ease-out 0.2s both; }
.landing-ctas { display: flex; gap: 1rem; margin-top: 2.5rem; animation: fadeUp 0.7s ease-out 0.3s both; }
.landing-cta-primary { display: inline-flex; align-items: center; padding: 0.75rem 1.8rem; border-radius: 8px; background: var(--accent-gold); color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.landing-cta-primary:hover { background: rgba(0, 159, 113, 0.8); }
.landing-cta-secondary { display: inline-flex; align-items: center; padding: 0.75rem 1.8rem; border-radius: 8px; background: rgba(255,255,255,0.06); color: var(--text-primary); text-decoration: none; font-size: 0.9rem; font-weight: 500; border: 1px solid var(--border); transition: all 0.2s; }
.landing-cta-secondary:hover { background: rgba(255,255,255,0.1); }
.landing-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; max-width: 820px; width: 100%; margin-top: 4rem; animation: fadeUp 0.7s ease-out 0.4s both; }
.landing-module-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; text-align: left; }
.landing-module-num { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-gold); font-weight: 500; margin-bottom: 0.3rem; }
.landing-module-title { font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); line-height: 1.4; }
@media (max-width: 640px) { .landing-modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .landing-modules { grid-template-columns: 1fr; } }

/* ── HOME NAV & COURSES PAGE ── */
/* Home nav cards (dashboard at /) */
.home-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeUp 0.7s ease-out 0.12s both;
}
.home-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.9rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s,
    background 0.25s;
  position: relative;
  overflow: hidden;
}
.home-nav-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 14px 14px 0 0;
}
.home-nav-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}
.home-nav-card:hover::after {
  opacity: 1;
}
.home-nav-card-body h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.home-nav-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.home-nav-arrow {
  font-size: 1.3rem;
  color: var(--accent-gold);
  opacity: 0.8;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.home-nav-card:hover .home-nav-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── COURSES PAGE ── */
.courses-page-header {
  margin-bottom: 2.5rem;
}
.courses-page-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}
.courses-page-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.course-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  width: fit-content;
}
.course-card-badge.free {
  background: rgba(0, 159, 113, 0.15);
  color: var(--accent-gold);
}
.course-card-badge.premium {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}
.course-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}
.course-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.course-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.course-card-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  width: fit-content;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.course-card-cta:hover {
  background: rgba(255, 255, 255, 0.1);
}
.course-card-cta.primary {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}
.course-card-cta.primary:hover {
  background: rgba(0, 159, 113, 0.8);
  border-color: rgba(0, 159, 113, 0.8);
}

@media (max-width: 640px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .dashboard-view {
    padding: 2.5rem 1.2rem 4rem;
  }
  .module-grid {
    grid-template-columns: 1fr;
  }
  .module-card {
    padding: 1.3rem 1.4rem;
  }
}

