/* ═══════════════════════════════════════════
   LUMIA PAPERS — shared.css
   Used by every page on the platform
═══════════════════════════════════════════ */
:root {
  --purple:#534AB7;--purple-light:#EEEDFE;--purple-dark:#3C3489;
  --teal:#0F6E56;--teal-light:#E1F5EE;
  --coral:#993C1D;--coral-light:#FAECE7;
  --blue:#185FA5;--blue-light:#E6F1FB;
  --green:#3B6D11;--green-light:#EAF3DE;
  --pink:#72243E;--pink-light:#FBEAF0;
  --amber:#BA7517;--amber-light:#FAEEDA;
  --gray:#5F5E5A;--gray-light:#F1EFE8;
  --text-primary:#1a1a1a;--text-secondary:#6b6b6b;--text-muted:#9b9b9b;
  --bg:#ffffff;--bg-secondary:#f7f7f5;
  --border:rgba(0,0,0,0.1);--border-strong:rgba(0,0,0,0.2);
  --radius-sm:6px;--radius-md:10px;--radius-lg:14px;
  --shadow-sm:0 1px 3px rgba(0,0,0,0.06);
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'DM Sans',sans-serif;background:var(--bg);color:var(--text-primary);min-height:100vh;display:flex;flex-direction:column}

/* TOPBAR */
.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 32px;border-bottom:0.5px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:100}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;cursor:pointer}
.logo-mark{width:32px;height:32px;border-radius:9px;background:var(--purple);display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;font-weight:500;font-family:'DM Serif Display',serif}
.logo-name{font-size:16px;font-weight:500;color:var(--text-primary)}
.logo-name span{color:var(--purple)}
.streak-pill{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:500;color:#BA7517;background:#FAEEDA;padding:4px 12px;border-radius:20px}
.topbar-right{font-size:12px;color:var(--text-muted)}
.topbar-right a{color:var(--purple);text-decoration:none}

/* CONTENT */
.content{max-width:780px;margin:0 auto;padding:0 24px;width:100%;flex:1}

/* BREADCRUMB */
.breadcrumb{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-muted);padding:1.25rem 0 0;margin-bottom:1rem;flex-wrap:wrap}
.breadcrumb a{color:var(--purple);text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb .sep{color:var(--border-strong)}

/* HERO */
.hero{text-align:center;padding:2.5rem 0 1.75rem;border-bottom:0.5px solid var(--border);margin-bottom:1.75rem}
.hero-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:4px 12px;border-radius:20px;background:var(--purple-light);color:var(--purple-dark);margin-bottom:14px;font-weight:500}
.hero-title{font-family:'DM Serif Display',serif;font-size:36px;line-height:1.2;color:var(--text-primary);margin-bottom:10px}
.hero-title span{color:var(--purple)}
.hero-sub{font-size:14px;color:var(--text-secondary);max-width:440px;margin:0 auto 1.5rem;line-height:1.7}
.hero-cta{display:inline-flex;align-items:center;gap:8px;background:var(--purple);color:#fff;padding:10px 22px;border-radius:var(--radius-md);font-size:14px;font-weight:500;border:none;cursor:pointer;font-family:inherit;transition:background .15s;text-decoration:none}
.hero-cta:hover{background:var(--purple-dark)}

/* SEC LABEL */
.sec-label{font-size:11px;font-weight:500;color:var(--text-muted);text-transform:uppercase;letter-spacing:.07em;margin-bottom:10px}

/* BOARDS */
.boards-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:1.75rem}
.board-card{border:0.5px solid var(--border);border-radius:var(--radius-lg);padding:16px;cursor:pointer;transition:border-color .15s;position:relative;background:var(--bg);text-decoration:none;display:block}
.board-card:hover:not(.coming){border-color:var(--purple)}
.board-card.selected{border:2px solid var(--purple)}
.board-card.coming{opacity:.5;cursor:default;pointer-events:none}
.board-icon{width:36px;height:36px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:18px;margin-bottom:10px}
.board-name{font-size:14px;font-weight:500;color:var(--text-primary);margin-bottom:2px}
.board-sub{font-size:12px;color:var(--text-secondary)}
.board-badge{position:absolute;top:10px;right:10px;font-size:10px;padding:2px 8px;border-radius:20px;font-weight:500}
.badge-live{background:var(--teal-light);color:#085041}
.badge-soon{background:var(--gray-light);color:var(--gray)}

/* ROADMAP */
.roadmap{background:var(--bg-secondary);border-radius:var(--radius-lg);padding:1.25rem 1.5rem;margin-bottom:1.75rem;border:0.5px solid var(--border)}
.roadmap-title{font-size:13px;font-weight:500;color:var(--text-primary);margin-bottom:12px}
.roadmap-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.rm-item{background:var(--bg);border:0.5px solid var(--border);border-radius:var(--radius-md);padding:9px 12px;display:flex;align-items:flex-start;gap:9px}
.rm-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;margin-top:4px}
.rm-dot.live{background:#1D9E75}.rm-dot.soon{background:#EF9F27}.rm-dot.plan{background:#ccc}
.rm-text{font-size:12px;color:var(--text-primary);font-weight:500}
.rm-sub{font-size:11px;color:var(--text-muted);margin-top:1px}

/* SUBJECTS */
.subjects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-bottom:1.75rem}
.subj-card{background:var(--bg);border:0.5px solid var(--border);border-radius:var(--radius-lg);padding:14px;text-decoration:none;display:block;transition:border-color .15s}
.subj-card:hover:not(.coming){border-color:var(--purple)}
.subj-card.coming{opacity:.45;pointer-events:none}
.subj-icon{font-size:20px;margin-bottom:8px}
.subj-name{font-size:13px;font-weight:500;color:var(--text-primary)}
.subj-meta{font-size:11px;color:var(--text-muted);margin-top:3px}
.subj-bar{height:3px;border-radius:2px;background:var(--border);margin-top:8px;overflow:hidden}
.subj-fill{height:100%;border-radius:2px}

/* STATS */
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:1.5rem}
.stat{background:var(--bg-secondary);border-radius:var(--radius-md);padding:12px;text-align:center}
.stat-n{font-size:22px;font-weight:500;color:var(--text-primary)}
.stat-l{font-size:11px;color:var(--text-muted);margin-top:2px}

/* BANNERS */
.streak-banner{display:flex;align-items:center;gap:14px;background:#FAEEDA;border:0.5px solid #EF9F27;border-radius:var(--radius-md);padding:12px 16px;margin-bottom:1.25rem}
.streak-banner-num{font-size:24px;font-weight:500;color:#BA7517}
.streak-banner-sub{font-size:11px;color:#854F0B;margin-top:1px}
.weak-banner{display:flex;align-items:flex-start;gap:10px;background:#FCEBEB;border:0.5px solid #F09595;border-radius:var(--radius-md);padding:11px 16px;margin-bottom:1.25rem;font-size:13px;color:#501313}

/* TOPICS GRID */
.topics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px;margin-bottom:1.75rem}
.tc{background:var(--bg);border:0.5px solid var(--border);border-radius:var(--radius-lg);padding:14px;text-decoration:none;display:block;transition:border-color .15s}
.tc:hover{border-color:var(--purple)}
.tc.weak{border-color:#F09595}
.tc-num{font-size:11px;color:var(--text-muted);margin-bottom:3px;display:flex;align-items:center;justify-content:space-between}
.tc-weak-tag{font-size:10px;background:#FCEBEB;color:#A32D2D;padding:1px 7px;border-radius:10px;font-weight:500}
.tc-name{font-size:13px;font-weight:500;color:var(--text-primary);line-height:1.4}
.tc-meta{font-size:11px;color:var(--text-muted);margin-top:4px}
.tc-bar{height:3px;border-radius:2px;background:var(--border);margin-top:8px;overflow:hidden}
.tc-fill{height:100%;border-radius:2px;transition:width .4s}

/* PRACTICE */
.prac-header{display:flex;align-items:center;gap:10px;padding:1rem 0;border-bottom:0.5px solid var(--border);margin-bottom:1.25rem;flex-wrap:wrap}
.back-btn{background:none;border:0.5px solid var(--border);border-radius:var(--radius-md);padding:6px 14px;font-size:13px;color:var(--text-secondary);cursor:pointer;font-family:inherit;transition:background .1s;text-decoration:none;display:inline-block}
.back-btn:hover{background:var(--bg-secondary)}
.prac-title{font-size:15px;font-weight:500;color:var(--text-primary);flex:1}
.prac-right{display:flex;align-items:center;gap:8px}
.q-prog{font-size:12px;color:var(--text-muted)}
.timer-btn{background:none;border:0.5px solid var(--border);border-radius:var(--radius-sm);padding:5px 12px;font-size:12px;color:var(--text-secondary);cursor:pointer;font-family:inherit;transition:background .1s}
.timer-btn:hover{background:var(--bg-secondary)}
.timer-btn.active{background:var(--purple-light);color:var(--purple-dark);border-color:var(--purple)}
.timer-display{font-size:13px;font-weight:500;padding:4px 12px;border-radius:20px;background:var(--bg-secondary);border:0.5px solid var(--border);display:none;min-width:65px;text-align:center}
.timer-display.warn{background:#FCEBEB;color:#A32D2D;border-color:#F09595}
.prog-bar{height:4px;background:var(--border);border-radius:3px;overflow:hidden;margin-bottom:1.25rem}
.prog-fill{height:100%;background:var(--purple);border-radius:3px;transition:width .4s}

/* QUESTION */
.q-card{background:var(--bg);border:0.5px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;margin-bottom:1rem;box-shadow:var(--shadow-sm)}
.q-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:1rem}
.tag{font-size:11px;padding:3px 10px;border-radius:20px;font-weight:500}
.tag-paper{background:var(--purple-light);color:var(--purple-dark)}
.tag-marks{background:var(--amber-light);color:#633806}
.tag-q{background:var(--bg-secondary);color:var(--text-muted)}
.q-text{font-size:15px;color:var(--text-primary);line-height:1.75;margin-bottom:1.25rem}
.options{display:flex;flex-direction:column;gap:8px;margin-bottom:1.25rem}
.opt{display:flex;align-items:flex-start;gap:12px;padding:11px 16px;border:0.5px solid var(--border);border-radius:var(--radius-md);cursor:pointer;font-size:14px;color:var(--text-primary);transition:background .1s,border-color .1s;text-align:left;background:var(--bg);width:100%;font-family:inherit;line-height:1.5}
.opt:hover:not([disabled]){background:var(--bg-secondary);border-color:var(--border-strong)}
.opt.sel{border-color:var(--purple);background:var(--purple-light);color:var(--purple-dark)}
.opt.right{border-color:#1D9E75;background:var(--teal-light);color:#085041}
.opt.wrong{border-color:#A32D2D;background:#FCEBEB;color:#501313}
.opt-k{font-weight:500;min-width:20px;flex-shrink:0;font-size:13px}
.feedback-box{border-radius:var(--radius-md);padding:14px 18px;font-size:14px;line-height:1.65;margin-bottom:1.25rem;display:none}
.feedback-box.show{display:block}
.feedback-box.ok{background:var(--teal-light);color:#085041;border:0.5px solid #5DCAA5}
.feedback-box.no{background:#FCEBEB;color:#501313;border:0.5px solid #F09595}
.feedback-box.ai{background:var(--bg-secondary);color:var(--text-primary);border:0.5px solid var(--border)}

/* BUTTONS */
.btn-row{display:flex;gap:8px;flex-wrap:wrap}
button.primary{background:var(--purple);color:#fff;border:none;border-radius:var(--radius-md);padding:9px 18px;font-size:14px;font-weight:500;cursor:pointer;font-family:inherit;transition:background .15s}
button.primary:hover{background:var(--purple-dark)}
button.secondary{background:none;border:0.5px solid var(--border);border-radius:var(--radius-md);padding:9px 18px;font-size:14px;color:var(--text-secondary);cursor:pointer;font-family:inherit;transition:background .1s}
button.secondary:hover{background:var(--bg-secondary)}
button.ai-btn{background:var(--purple-light);color:var(--purple-dark);border:0.5px solid var(--purple);border-radius:var(--radius-md);padding:9px 18px;font-size:14px;font-weight:500;cursor:pointer;font-family:inherit}
button.ai-btn:hover{background:#CECBF6}

/* TOAST */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(80px);background:#1a1a1a;color:#fff;padding:12px 22px;border-radius:var(--radius-lg);font-size:14px;font-weight:500;z-index:999;opacity:0;transition:all .3s;white-space:nowrap;pointer-events:none}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* FOOTER */
footer{border-top:0.5px solid var(--border);padding:1.25rem 32px;margin-top:auto}
.footer-inner{max-width:780px;margin:0 auto}
.footer-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;flex-wrap:wrap;gap:8px}
.footer-logo{display:flex;align-items:center;gap:8px}
.footer-logo-mark{width:22px;height:22px;border-radius:5px;background:var(--purple);display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-family:'DM Serif Display',serif}
.footer-logo-name{font-size:13px;font-weight:500}
.footer-logo-name span{color:var(--purple)}
.footer-links{display:flex;gap:16px}
.footer-links a{font-size:12px;color:var(--text-muted);text-decoration:none}
.footer-links a:hover{color:var(--text-primary)}
.footer-copy{font-size:11px;color:var(--text-muted);line-height:1.7}

/* RESPONSIVE */
@media(max-width:600px){
  .topbar{padding:10px 16px}
  .content{padding:0 16px}
  .boards-row{grid-template-columns:1fr}
  .stats-row{grid-template-columns:repeat(2,1fr)}
  .hero-title{font-size:26px}
  footer{padding:1rem 16px}
  .streak-pill .streak-label{display:none}
}
