/* ══════════════════════════════════════════════════════════════════
   MedMint Web — Components (ported from JavaFX light.css/dark.css)
   ══════════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--mm-font);
  font-size: 14px;
  color: var(--mm-text);
  background: var(--mm-bg);
  -webkit-font-smoothing: antialiased;
  /* Allow vertical scroll on body as a safety net — internal .scroll-area still
     handles scrolling on app-shell screens, but this prevents body from
     accidentally clipping content. */
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--mm-border-2); border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }

/* ── App shell (sidebar + main) ──
   BUG 2 FIX (mobile scroll):
   - Use 100dvh (dynamic viewport height) where supported, falling back to 100vh.
     100dvh accounts for mobile browser chrome (URL bar / toolbar) that appears
     and disappears on scroll, so the visible viewport matches the layout viewport.
   - .main-pane and .scroll-area now have `min-height: 0`. Without this, flex
     items default to `min-height: auto` (= content's intrinsic height), which
     prevents the scroll-area from ever being constrained to a smaller box —
     so overflow-y: auto never triggers and the page can't scroll. This is the
     classic "flexbox child won't scroll" bug.
   - `-webkit-overflow-scrolling: touch` enables momentum scrolling on iOS.
*/
.app-shell {
  display: flex;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height — adjusts to mobile browser chrome */
  overflow: hidden;
  background: var(--mm-bg);
}
.main-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0; /* CRITICAL: allows .scroll-area to actually scroll inside flex column */
  background: var(--mm-bg);
}
.scroll-area {
  flex: 1;
  overflow-y: auto;
  min-height: 0; /* CRITICAL: enables scroll within bounded flex parent */
  -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
}
.content-area { padding: 22px 26px 30px; max-width: 1120px; margin: 0 auto; width: 100%; }

/* ── Sidebar ── */
.sidebar {
  width: 264px; min-width: 264px;
  background: var(--mm-surface);
  border-right: 1px solid var(--mm-border);
  padding: 20px 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.sidebar-logo-row { display: flex; align-items: center; gap: 12px; padding: 2px 6px 0; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--mm-teal-50); border: 1px solid var(--mm-teal-100);
  display: flex; align-items: center; justify-content: center;
}
.brand-badge img { width: 32px; height: 32px; object-fit: contain; }
.sidebar-brand { font-size: 22px; font-weight: 700; color: var(--mm-teal-600); }
.sidebar-brand-sub { font-size: 10px; font-weight: 700; color: var(--mm-text-3); letter-spacing: 1.5px; padding: 0 0 14px 10px; }
.sidebar-section { font-size: 10px; font-weight: 700; color: var(--mm-text-4); letter-spacing: 1px; padding: 12px 0 4px 12px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  font-size: 13.5px; font-weight: 700; color: var(--mm-text-2);
  border-radius: 10px; padding: 0 14px; height: 42px;
  transition: background .2s, color .2s;
}
.nav-item svg { width: 19px; height: 19px; fill: var(--mm-text-3); flex-shrink: 0; }
.nav-item:hover { background: var(--mm-teal-50); color: var(--mm-teal-600); }
.nav-item:hover svg { fill: var(--mm-teal-600); }
.nav-item.active { background: var(--mm-teal-600); color: #fff; }
.nav-item.active svg { fill: #fff; }
.nav-item.active:hover { background: var(--mm-teal-700); }
.nav-item.danger { color: var(--mm-red-500); }
.nav-item.danger svg { fill: var(--mm-red-500); }
.nav-item.danger:hover { background: var(--mm-red-50); color: var(--mm-red-500); }
.sidebar-spacer { flex: 1; }
.sidebar-user-status { padding: 4px 6px 8px; }
.tier-badge { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; display: inline-block; }
.tier-free { background: var(--mm-teal-50); color: var(--mm-teal-600); }
.tier-premium { background: var(--mm-gold-50); color: var(--mm-gold-700); }
.tier-aipremium { background: var(--mm-purple-50); color: var(--mm-purple-500); }
.sidebar-version { padding: 8px 6px 4px; font-size: 10px; color: var(--mm-text-4); text-align: center; }
.sidebar-divider { height: 1px; background: var(--mm-border); margin: 2px 4px; }

/* ── Top bar (flow screens) ── */
.main-topbar {
  display: flex; align-items: center; gap: 12px;
  background: var(--mm-surface);
  padding: 0 24px; min-height: 60px;
  border-bottom: 1px solid var(--mm-border);
  flex-shrink: 0; /* BUG 2: don't compress topbar inside flex column */
}
.main-title { font-size: 18px; font-weight: 700; color: var(--mm-text); }
.main-subtitle { font-size: 12px; color: var(--mm-text-3); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 20px;
  background: var(--mm-teal-50); color: var(--mm-teal-600);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.icon-btn:hover { background: var(--mm-teal-100); }
.icon-btn.ghost { background: transparent; color: var(--mm-text-2); }
.icon-btn.ghost:hover { background: var(--mm-teal-50); color: var(--mm-teal-600); }

/* ── Buttons ── */
.btn-primary {
  background: var(--mm-teal-600); color: #fff; font-weight: 700; font-size: 14px;
  border-radius: 12px; padding: 0 24px; height: 44px; transition: background .15s;
}
.btn-primary:hover { background: var(--mm-teal-700); }
.btn-primary:disabled { background: var(--mm-text-4); cursor: default; }
.btn-primary-lg { height: 52px; font-size: 15px; border-radius: 14px; padding: 0 32px;
  background: var(--mm-teal-600); color: #fff; font-weight: 700; }
.btn-primary-lg:hover { background: var(--mm-teal-700); }
.btn-outline {
  background: var(--mm-surface); color: var(--mm-teal-600); font-weight: 700; font-size: 13px;
  border: 1px solid var(--mm-teal-600); border-radius: 12px; padding: 0 20px; height: 44px;
}
.btn-outline:hover { background: var(--mm-teal-50); }
.btn-outline-red {
  background: var(--mm-red-50); color: var(--mm-red-500); font-weight: 700; font-size: 13px;
  border: 1px solid var(--mm-red-100); border-radius: 12px; padding: 0 20px; height: 44px;
}
.btn-outline-red:hover { background: var(--mm-red-100); }
.btn-text { background: transparent; color: var(--mm-text-3); font-weight: 700; font-size: 14px; padding: 0 16px; height: 44px; }
.btn-text:hover { color: var(--mm-teal-600); }
.btn-full { width: 100%; }

/* v3: Enhanced generate button (gradient + bounce) */
.gen-btn {
  background: linear-gradient(135deg, var(--mm-teal-600), var(--mm-teal-500)) !important;
  background-size: 200% 200% !important;
  animation: genShine 3s ease infinite;
  position: relative;
  overflow: hidden;
}
.gen-btn:hover {
  background: linear-gradient(135deg, var(--mm-teal-700), var(--mm-teal-600)) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,109,114,0.3);
}
.gen-btn:active { transform: scale(0.98); }
.gen-btn:disabled { background: var(--mm-text-4) !important; animation: none; transform: none; box-shadow: none; }
@keyframes genShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* v3: Template chips — slightly larger, with icon */
.template-chip {
  font-size: 13px !important;
  padding: 10px 16px !important;
  min-height: 42px !important;
  border-color: var(--mm-teal-200) !important;
  background: var(--mm-teal-50) !important;
  color: var(--mm-teal-700) !important;
}
.template-chip:hover {
  border-color: var(--mm-teal-400) !important;
  background: var(--mm-teal-100) !important;
  transform: translateY(-1px);
}

/* v3: Clinical card enhanced */
.clin-card { border-left: 4px solid var(--mm-mint-400); }

/* v3: Chip selected with checkmark animation */
.chip.selected { background: var(--mm-teal-600); color: #fff; border-color: var(--mm-teal-600); transform: scale(1.02); }
.chip { transition: all .15s ease; }
.chip:active { transform: scale(0.96); }

/* ── Inputs ── */
.input, .textarea {
  width: 100%; background: var(--mm-surface); color: var(--mm-text);
  border: 1px solid var(--mm-border); border-radius: 10px; padding: 11px 14px; font-size: 14px;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--mm-teal-600); }
.input.error { border-color: var(--mm-red-500); }
.textarea { min-height: 84px; resize: vertical; }
.field-label { font-size: 11px; font-weight: 700; color: var(--mm-text-3); letter-spacing: .5px; margin-bottom: 8px; display: block; }

/* ── Chips / pills ── */
.chip {
  background: var(--mm-surface); color: var(--mm-text);
  border: 1px solid var(--mm-border); border-radius: 20px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; min-height: 36px;
}
.chip:hover { border-color: var(--mm-teal-300); }
.chip.selected { background: var(--mm-teal-600); color: #fff; border-color: var(--mm-teal-600); }
.pill-teal { background: var(--mm-teal-50); color: var(--mm-teal-600); font-size: 10px; font-weight: 700; border-radius: 6px; padding: 5px 11px; letter-spacing: .3px; }
.badge { font-size: 10px; font-weight: 700; border-radius: 6px; padding: 4px 10px; letter-spacing: .3px; display: inline-block; }
.badge-easy   { color: var(--mm-green-500); background: var(--mm-green-50); }
.badge-medium { color: var(--mm-gold-700);  background: var(--mm-gold-50); }
.badge-hard   { color: var(--mm-red-500);   background: var(--mm-red-50); }
.badge-mixed  { color: var(--mm-purple-500); background: var(--mm-purple-50); }

/* ── Cards / panels ── */
.card {
  background: var(--mm-surface); border-radius: 16px;
  border: 1px solid var(--mm-border); padding: 22px; box-shadow: var(--mm-shadow-sm);
}
.panel {
  background: var(--mm-surface); border-radius: 16px;
  border: 1px solid var(--mm-border); padding: 22px; box-shadow: var(--mm-shadow-sm);
}
.panel-title { font-size: 12px; font-weight: 700; color: var(--mm-text-3); letter-spacing: .6px; }
.panel-subtitle { font-size: 12px; color: var(--mm-text-3); }
.panel-strong { font-size: 15px; font-weight: 700; color: var(--mm-text); }
.section-header { font-size: 11px; font-weight: 700; color: var(--mm-text-3); letter-spacing: .5px; padding-bottom: 14px; }

/* ── Dashboard header ── */
.dash-header {
  display: flex; align-items: center; gap: 16px;
  background: var(--mm-surface); padding: 18px 28px; min-height: 84px;
  border-bottom: 1px solid var(--mm-border);
  flex-shrink: 0;
}
.dash-greeting { font-size: 26px; font-weight: 700; color: var(--mm-text); }
.dash-greeting .wave { display: inline-block; animation: wave 2.5s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
}
.dash-greeting-sub { font-size: 14px; color: var(--mm-text-3); }
.grow { flex: 1; }
.header-streak {
  display: flex; align-items: center; gap: 6px;
  background: var(--mm-gold-50); border: 1px solid var(--mm-gold-100);
  border-radius: 20px; padding: 7px 14px;
}
.header-streak .txt { font-size: 13px; font-weight: 700; color: var(--mm-gold-700); }
.header-icon-btn {
  width: 42px; height: 42px; border-radius: 12px; background: var(--mm-surface-2);
  display: flex; align-items: center; justify-content: center;
}
.header-icon-btn svg { width: 20px; height: 20px; fill: var(--mm-text-3); }
.header-icon-btn:hover { background: var(--mm-teal-50); }
.header-icon-btn:hover svg { fill: var(--mm-teal-600); }
.header-avatar {
  width: 42px; height: 42px; border-radius: 21px; background: var(--mm-teal-600);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 700;
}

/* ── Stat cards ── */
.stats-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--mm-surface); border-radius: 16px; border: 1px solid var(--mm-border);
  padding: 20px; box-shadow: var(--mm-shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.stat-card:hover { border-color: var(--mm-teal-200); box-shadow: var(--mm-shadow-md); transform: translateY(-2px); }
.stat-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ic-teal { background: var(--mm-teal-50); } .ic-accent { background: var(--mm-mint-50); }
.ic-gold { background: var(--mm-gold-50); } .ic-error { background: var(--mm-red-50); }
.ic-purple { background: var(--mm-purple-50); }
.stat-value { font-size: 34px; font-weight: 700; color: var(--mm-text); line-height: 1.1; }
.stat-label { font-size: 11px; font-weight: 700; color: var(--mm-text-3); letter-spacing: .6px; margin-top: 2px; }
.trend { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 4px 9px; margin-left: auto; }
.trend.up { color: var(--mm-green-500); background: var(--mm-green-50); }
.trend.down { color: var(--mm-red-500); background: var(--mm-red-50); }

/* ── Progress bars ── */
.bar { height: 12px; border-radius: 6px; background: var(--mm-surface-2); border: 1px solid var(--mm-border); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(to right, var(--mm-teal-600), var(--mm-mint-400)); }
.bar.thin { height: 9px; } .bar.thin > i { background: var(--mm-teal-600); }
.bar.red > i { background: var(--mm-red-500); }

/* ── AI insight ── */
.ai-insight { display: flex; align-items: center; gap: 8px; background: var(--mm-mint-50); border: 1px solid var(--mm-mint-200); border-radius: 12px; padding: 10px 14px; }
.ai-insight .spark { color: var(--mm-mint-500); font-size: 14px; font-weight: 700; }
.ai-insight .txt { font-size: 12.5px; color: var(--mm-text-2); }

/* ── Grid helpers ── */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { min-width: 0; }
.col { flex: 1; min-width: 0; }
.mt { margin-top: 18px; }
.stack { display: flex; flex-direction: column; }

/* ── Difficulty / subject / weak / activity / achievement / calendar ── */
.perf-name { font-size: 14px; font-weight: 700; color: var(--mm-text-2); }
.perf-count { font-size: 12px; color: var(--mm-text-4); }
.perf-pct { font-size: 14px; font-weight: 700; color: var(--mm-teal-600); }
.legend-name { font-size: 13px; color: var(--mm-text-2); }
.legend-pct { font-size: 13px; font-weight: 700; color: var(--mm-text); }
.legend-dot { width: 12px; height: 12px; border-radius: 6px; flex-shrink: 0; }

.subject-card { background: var(--mm-surface-2); border: 1px solid var(--mm-border); border-radius: 14px; padding: 16px; }
.subject-card:hover { border-color: var(--mm-teal-200); }
.subject-dot { width: 10px; height: 10px; border-radius: 5px; }
.subject-name { font-size: 14px; font-weight: 700; color: var(--mm-text); }
.subject-pct { font-size: 15px; font-weight: 700; color: var(--mm-teal-600); }
.subject-meta { font-size: 11px; color: var(--mm-text-4); }

.reco-panel { background: linear-gradient(135deg, var(--mm-teal-600), var(--mm-teal-800)); border-radius: 16px; padding: 22px; box-shadow: var(--mm-shadow-md); color: #fff; }
.reco-title { font-size: 12px; font-weight: 700; color: var(--mm-mint-300); letter-spacing: 1px; }
.reco-reason { font-size: 15px; color: #fff; line-height: 1.5; }
.reco-topic-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 14px 16px; }
.reco-eyebrow { font-size: 9px; font-weight: 700; color: var(--mm-mint-300); letter-spacing: 1.2px; }
.reco-topic { font-size: 20px; font-weight: 700; color: #fff; }
.reco-meta { font-size: 13px; color: #CDE7E3; font-weight: 700; }
.reco-btn { background: #fff; color: var(--mm-teal-700); font-weight: 700; font-size: 14px; border-radius: 12px; height: 44px; width: 100%; }
.reco-btn:hover { background: var(--mm-mint-50); }

.weak-row { display: flex; align-items: center; gap: 12px; background: var(--mm-surface-2); border: 1px solid var(--mm-border); border-radius: 12px; padding: 12px 14px; }
.weak-priority { width: 4px; align-self: stretch; border-radius: 2px; }
.weak-name { font-size: 14px; font-weight: 700; color: var(--mm-text); }
.weak-badge { font-size: 11px; font-weight: 700; color: var(--mm-red-500); background: var(--mm-red-50); border-radius: 8px; padding: 4px 10px; white-space: nowrap; }

.activity-row { display: flex; align-items: center; gap: 12px; background: var(--mm-surface-2); border: 1px solid var(--mm-border); border-radius: 12px; padding: 12px 14px; }
.activity-row:hover { border-color: var(--mm-teal-200); }
.activity-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--mm-teal-50); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.activity-name { font-size: 14px; font-weight: 700; color: var(--mm-text); }
.activity-date { font-size: 11px; color: var(--mm-text-4); }
.activity-score-good { font-size: 17px; font-weight: 700; color: var(--mm-green-500); }
.activity-score-bad { font-size: 17px; font-weight: 700; color: var(--mm-red-500); }

.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.achievement { border-radius: 12px; padding: 14px 8px; text-align: center; border: 1px solid var(--mm-border); }
.achievement.on { background: var(--mm-gold-50); border-color: var(--mm-gold-100); }
.achievement.off { background: var(--mm-surface-2); opacity: .55; }
.achievement .emoji { font-size: 26px; }
.achievement .title { font-size: 11px; font-weight: 700; color: var(--mm-text-2); margin-top: 4px; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-size: 10px; font-weight: 700; color: var(--mm-text-4); text-align: center; }
.cal-cell { font-size: 12px; color: var(--mm-text-2); height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.cal-studied { background: var(--mm-teal-100); color: var(--mm-teal-700); font-weight: 700; }
.cal-today { border: 1.5px solid var(--mm-teal-600); font-weight: 700; }

/* ── Resume banner ── */
.resume-banner { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--mm-teal-600), var(--mm-teal-700)); border-radius: 14px; padding: 14px 18px; box-shadow: var(--mm-shadow-md); }
.resume-icon { width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.resume-eyebrow { font-size: 9px; font-weight: 700; color: var(--mm-mint-300); letter-spacing: 1.2px; }
.resume-title { font-size: 16px; font-weight: 700; color: #fff; }
.resume-subtitle { font-size: 11px; color: #CDE7E3; }
.resume-banner .btn-text { color: #CDE7E3; }
.resume-banner .btn-primary { background: #fff; color: var(--mm-teal-700); }

/* ── Empty state ── */
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 40px 20px; }
.empty-title { font-size: 16px; font-weight: 700; color: var(--mm-text); }
.empty-subtitle { font-size: 13px; color: var(--mm-text-3); max-width: 480px; }
.empty-illustration { font-size: 48px; }
.empty .btn-primary-lg { margin-top: 8px; }

/* v3: Search bar */
.search-bar { margin-bottom: 16px; }
.search-input { height: 46px; font-size: 15px; padding-left: 14px; }

/* v3: Weak spot question text */
.weak-q-text { line-height: 1.4; max-height: 2.8em; }

/* ── Stat tiles (weak spots / history headers) ── */
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-tile { border-radius: 14px; padding: 18px 16px; text-align: center; border: 1px solid var(--mm-border); }
.stat-tile.teal { background: var(--mm-teal-50); border-color: var(--mm-teal-100); }
.stat-tile.gold { background: var(--mm-gold-50); border-color: var(--mm-gold-100); }
.stat-tile.red { background: var(--mm-red-50); border-color: var(--mm-red-100); }
.stat-num { font-size: 26px; font-weight: 700; color: var(--mm-text); }
.stat-tile-label { font-size: 10px; font-weight: 700; color: var(--mm-text-3); letter-spacing: .6px; }

/* ── Login / Splash ──
   BUG 2 FIX: use min-height with dvh fallback so the page can grow taller
   than the viewport AND center properly. */
.login-root { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; background: var(--mm-bg); padding: 40px; }

/* v3: Split-screen login — left hero panel + right card */
.login-split {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--mm-bg);
}
.login-hero {
  flex: 1;
  background: linear-gradient(135deg, var(--mm-teal-700), var(--mm-teal-900));
  color: #fff;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.login-hero::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(43, 197, 180, 0.08);
}
.login-hero::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(43, 197, 180, 0.06);
}
.login-hero-logo {
  width: 72px; height: 72px; border-radius: 18px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  position: relative; z-index: 1;
}
.login-hero-logo img { width: 52px; height: 52px; }
.login-hero-title { font-size: 36px; font-weight: 700; letter-spacing: 0.5px; position: relative; z-index: 1; }
.login-hero-tagline { font-size: 15px; color: var(--mm-mint-200); font-weight: 600; position: relative; z-index: 1; }
.login-hero-features { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; position: relative; z-index: 1; }
.login-hero-feat { display: flex; align-items: flex-start; gap: 14px; }
.login-hero-feat .feat-ic {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.login-hero-feat .feat-title { font-size: 14px; font-weight: 700; color: #fff; }
.login-hero-feat .feat-desc { font-size: 12px; color: var(--mm-mint-200); margin-top: 2px; }
.login-hero-foot { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 1px; font-weight: 700; position: relative; z-index: 1; margin-top: 8px; }

.login-card-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(22,109,114,0.12);
  text-align: center;
  max-width: 420px;
  width: 100%;
}
.login-logo { width: 80px; height: 80px; border-radius: 20px; background: var(--mm-teal-50); border: 1px solid var(--mm-teal-100); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; box-shadow: var(--mm-shadow-md); }
.login-logo img { width: 60px; height: 60px; object-fit: contain; }
.app-title { font-size: 24px; font-weight: 700; color: var(--mm-text); margin-top: 4px; }
.app-subtitle { font-size: 13px; color: var(--mm-text-3); margin-bottom: 24px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--mm-border-2); background: var(--mm-surface); color: var(--mm-text); font-weight: 700; font-size: 15px; transition: all .15s ease; }
.google-btn:hover { background: var(--mm-surface-2); border-color: var(--mm-teal-400); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,109,114,0.1); }
.google-btn:active { transform: scale(0.98); }
.google-btn img { width: 20px; height: 20px; }
.google-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--mm-text-4); font-size: 12px; font-weight: 700; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--mm-border); }

.login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-field { }
.login-field .field-label { margin-bottom: 6px; }
.login-field .input { height: 46px; }
.login-forgot { font-size: 12px; color: var(--mm-teal-600); font-weight: 700; padding: 4px 0; align-self: flex-end; }
.login-forgot:hover { text-decoration: underline; }
.login-submit { margin-top: 16px; background: linear-gradient(135deg, var(--mm-teal-600), var(--mm-teal-500)); }
.login-submit:hover { background: linear-gradient(135deg, var(--mm-teal-700), var(--mm-teal-600)); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,109,114,0.25); }
.login-toggle { font-size: 13px; color: var(--mm-text-3); margin-top: 18px; }
.login-toggle-btn { color: var(--mm-teal-600); font-weight: 700; font-size: 13px; }
.login-toggle-btn:hover { text-decoration: underline; }
.login-trust { margin-top: 20px; }

.error-text { color: var(--mm-red-500); font-size: 12px; }
.hint-text { font-size: 11px; color: var(--mm-text-4); }

.splash-root { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: linear-gradient(135deg, var(--mm-teal-600), var(--mm-teal-800)); }
.splash-logo { width: 120px; height: 120px; border-radius: 32px; background: rgba(255,255,255,.10); border: 1.5px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; box-shadow: 0 24px 60px rgba(0,0,0,.30); }
.splash-logo img { width: 88px; height: 88px; object-fit: contain; }
.splash-title { font-size: 38px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.splash-title .mint { color: #2BC5B4; }
.splash-tagline { font-size: 13px; color: var(--mm-mint-200); letter-spacing: 2px; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.25); border-top-color: #2BC5B4; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Quiz screen ──
   BUG 2 FIX: 100dvh with 100vh fallback + min-height:0 on flex children
   so quiz-left/quiz-right can scroll on mobile. */
.quiz-root { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--mm-bg); position: relative; }

/* v3: Full-width progress bar at the very top of the quiz */
.quiz-progress-bar {
  width: 100%;
  height: 5px;
  background: var(--mm-surface-2);
  flex-shrink: 0;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--mm-teal-600), var(--mm-mint-400));
  border-radius: 0 3px 3px 0;
  transition: width .5s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0%;
}

.quiz-top { display: flex; align-items: center; gap: 10px; background: var(--mm-surface); padding: 10px 20px; border-bottom: 1px solid var(--mm-border); }
.exit-btn { background: var(--mm-red-50); color: var(--mm-red-500); font-weight: 700; font-size: 13px; border-radius: 10px; border: 1px solid var(--mm-red-100); padding: 0 14px; height: 36px; }
.exit-btn:hover { background: var(--mm-red-100); }
.score-chip { background: var(--mm-teal-50); border: 1px solid var(--mm-teal-100); border-radius: 10px; padding: 6px 12px; color: var(--mm-teal-700); font-weight: 700; font-size: 13px; }
.q-counter { background: var(--mm-surface); border: 1px solid var(--mm-border-2); border-radius: 10px; padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--mm-teal-600); }
/* v2: Single-column quiz layout — no right panel */
.quiz-body { flex: 1; overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; padding: 16px 20px; }
.quiz-scroll-content { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.quiz-feedback { min-height: 0; }
/* Legacy: keep .quiz-left / .quiz-right for backward compat but they're unused now */
.quiz-left { display: none; }
.quiz-right { display: none; }
.quiz-content { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.question-card { background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 14px; padding: 20px 22px; box-shadow: var(--mm-shadow-sm); border-left: 4px solid var(--mm-teal-600); }
.question-text { font-size: 19px; font-weight: 700; color: var(--mm-text); line-height: 1.55; }
.option-row { display: flex; align-items: center; gap: 10px; background: var(--mm-surface); border: 1.5px solid var(--mm-border); border-radius: 12px; padding: 11px 14px; min-height: 48px; box-shadow: var(--mm-shadow-sm); transition: border-color .15s, background .15s, transform .1s; }
.option-row.clickable { cursor: pointer; }
.option-row.clickable:hover, .option-row.hovered { border-color: var(--mm-teal-400); background: var(--mm-teal-50); transform: translateX(3px); }
.option-row.clickable:active { transform: scale(0.99); }
.option-row.selected { background: var(--mm-teal-50); border-color: var(--mm-teal-600); border-width: 2px; transform: translateX(3px); }
.option-row.correct { background: var(--mm-green-50); border-color: var(--mm-green-500); border-width: 2px; }
.option-row.wrong { background: var(--mm-red-50); border-color: var(--mm-red-500); border-width: 2px; }
.option-letter { width: 28px; height: 28px; border-radius: 8px; background: var(--mm-surface-2); color: var(--mm-text-3); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s, color .15s; }
.option-row.selected .option-letter, .option-row.hovered .option-letter { background: var(--mm-teal-600); color: #fff; }
.option-row.correct .option-letter { background: var(--mm-green-500); color: #fff; }
.option-row.wrong .option-letter { background: var(--mm-red-500); color: #fff; }
.option-text { font-size: 15px; color: var(--mm-text); flex: 1; }
.option-trailing { font-size: 18px; font-weight: 700; min-width: 24px; text-align: center; }
.t-correct { color: var(--mm-green-500); } .t-wrong { color: var(--mm-red-500); } .t-dot { color: var(--mm-teal-600); }

/* v3: Confetti particles for correct answers */
.confetti-wrap {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}
.confetti-particle {
  position: absolute;
  top: 30%;
  width: 8px; height: 8px;
  border-radius: 2px;
  animation: confettiFall 1.2s ease-out forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}
.quiz-action-bar { display: flex; gap: 12px; align-items: center; background: var(--mm-surface); padding: 12px 20px; border-top: 1px solid var(--mm-border); }
.feedback-card { background: var(--mm-surface-2); border: 1px solid var(--mm-border); border-radius: 16px; padding: 18px; border-left: 4px solid var(--mm-text-4); }
.feedback-card .feedback-title.correct { border-left-color: var(--mm-green-500); }
.feedback-card:has(.feedback-title.correct) { border-left-color: var(--mm-green-500); }
.feedback-card:has(.feedback-title.wrong) { border-left-color: var(--mm-red-500); }
.feedback-card:has(.feedback-title.skipped) { border-left-color: var(--mm-text-4); }
.feedback-title { font-size: 17px; font-weight: 700; }
.feedback-title.correct { color: var(--mm-green-500); } .feedback-title.wrong { color: var(--mm-red-500); } .feedback-title.skipped { color: var(--mm-text-4); }
.explanation-header { font-size: 10px; font-weight: 700; color: var(--mm-text-3); letter-spacing: .6px; margin: 12px 0 6px; }
.explanation-text { color: var(--mm-text-2); font-size: 14px; line-height: 1.55; }
.quiz-placeholder { text-align: center; padding: 24px 8px; color: var(--mm-text-3); }
.nav-arrow { width: 44px; height: 44px; border-radius: 22px; background: var(--mm-teal-50); color: var(--mm-teal-600); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.nav-arrow:hover { background: var(--mm-teal-100); }
.nav-arrow:disabled { background: var(--mm-surface-2); color: var(--mm-text-4); cursor: default; }
.nav-pos { font-weight: 700; font-size: 13px; color: var(--mm-text-2); min-width: 60px; text-align: center; }

/* ── Results ──
   BUG 2 FIX: 100dvh fallback + min-height:0 + touch scrolling. */
.results-root { min-height: 100vh; min-height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--mm-bg); }

/* v3: Results hero with animated score ring */
.results-hero {
  text-align: center;
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.results-hero canvas { display: block; }
.results-emoji {
  position: absolute;
  top: 56px;
  font-size: 36px;
  z-index: 2;
}
.results-score-text {
  position: absolute;
  top: 104px;
  font-size: 32px;
  font-weight: 700;
  color: var(--mm-text);
  z-index: 2;
}
.results-pct-text {
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
}
.results-msg {
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
}
.share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }

.big-score { font-size: 56px; font-weight: 700; color: var(--mm-teal-600); text-align: center; }
.big-percent { font-size: 18px; font-weight: 700; color: var(--mm-text-3); text-align: center; }
.score-message { font-size: 14px; text-align: center; padding-top: 6px; }
.detail-row { display: flex; align-items: center; padding: 8px 0; }
.detail-key { font-size: 13px; color: var(--mm-text-3); flex: 1; }
.detail-value { font-size: 13px; font-weight: 700; color: var(--mm-text); }
.divider { height: 1px; background: var(--mm-border); }
.breakdown-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cell { width: 44px; height: 44px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cell.correct { background: var(--mm-green-50); } .cell.wrong { background: var(--mm-red-50); } .cell.skipped { background: var(--mm-surface-2); }
.cell .sym { font-size: 16px; font-weight: 700; }
.cell.correct .sym { color: var(--mm-green-500); } .cell.wrong .sym { color: var(--mm-red-500); } .cell.skipped .sym { color: var(--mm-text-4); }
.cell .num { font-size: 9px; color: var(--mm-text-3); }

/* ── History / weak lists ── */
.history-card { background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 14px; padding: 16px 18px; cursor: pointer; }
.history-card:hover { border-color: var(--mm-teal-300); background: var(--mm-surface-2); }
.history-topic { font-size: 15px; font-weight: 700; color: var(--mm-text); }
.history-score { font-size: 15px; font-weight: 700; color: var(--mm-teal-600); }
.history-meta { font-size: 11px; color: var(--mm-text-3); }
.history-date { font-size: 11px; color: var(--mm-text-4); }
.status-good { color: var(--mm-green-500); font-weight: 700; }
.status-bad { color: var(--mm-red-500); font-weight: 700; }
.filter-chip { background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--mm-text); }
.filter-chip.active { background: var(--mm-teal-600); color: #fff; border-color: var(--mm-teal-600); }

/* ── Profile ── */
.profile-hero { background: var(--mm-teal-600); border-radius: 20px; padding: 28px; text-align: center; color: #fff; }
.profile-avatar { width: 80px; height: 80px; border-radius: 24px; background: rgba(255,255,255,.10); border: 1.5px solid rgba(255,255,255,.20); display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto; overflow: hidden; font-weight: 700; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.profile-name { font-size: 20px; font-weight: 700; color: #fff; margin-top: 8px; }
.profile-role { display: inline-block; background: var(--mm-gold-500); color: var(--mm-text); font-size: 11px; font-weight: 700; border-radius: 20px; padding: 4px 14px; margin-top: 6px; }

/* v3: Profile stats grid */
.profile-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.profile-stat { text-align: center; padding: 10px 6px; background: var(--mm-surface-2); border-radius: 12px; }
.profile-stat-num { font-size: 22px; font-weight: 700; color: var(--mm-teal-600); }
.profile-stat-label { font-size: 9px; font-weight: 700; color: var(--mm-text-3); letter-spacing: .5px; margin-top: 2px; }
.detail-icon { margin-right: 4px; }

/* v3: Premium page */
.premium-hero { background: linear-gradient(135deg, var(--mm-teal-600), var(--mm-teal-800)); padding: 32px 28px; }
.premium-price { margin-top: 10px; }
.premium-price-main { font-size: 42px; font-weight: 700; color: var(--mm-gold-500); }
.premium-price-per { font-size: 16px; color: #CDE7E3; margin-left: 4px; }
.premium-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.premium-col { background: var(--mm-surface); border: 2px solid var(--mm-border); border-radius: 16px; padding: 20px; position: relative; }
.premium-col-pro { border-color: var(--mm-teal-600); box-shadow: 0 8px 24px rgba(22,109,114,0.15); }
.premium-badge-pop { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--mm-gold-500); color: var(--mm-text); font-size: 10px; font-weight: 700; padding: 4px 12px; border-radius: 20px; letter-spacing: .5px; }
.premium-col-title { font-size: 18px; font-weight: 700; color: var(--mm-text); }
.premium-col-price { font-size: 26px; font-weight: 700; color: var(--mm-teal-600); margin: 6px 0 12px; }
.premium-features { display: flex; flex-direction: column; gap: 8px; }
.premium-feat { font-size: 13px; color: var(--mm-text-2); padding: 4px 0; }
.premium-feat.on { color: var(--mm-green-500); font-weight: 600; }
.premium-feat.off { color: var(--mm-text-4); }
.premium-trust { }
.premium-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.premium-step { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--mm-text-2); }
.premium-step-num { width: 28px; height: 28px; border-radius: 14px; background: var(--mm-teal-600); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.premium-phone { font-weight: 700; color: var(--mm-teal-600); }
.premium-cta { background: linear-gradient(135deg, var(--mm-gold-500), var(--mm-gold-700)) !important; font-size: 16px !important; }
.premium-cta:hover { background: linear-gradient(135deg, var(--mm-gold-700), var(--mm-gold-500)) !important; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.3); }

/* ── Toast ── */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 12px; box-shadow: var(--mm-shadow-lg); padding: 14px 18px; max-width: 360px; animation: slideIn .2s ease; }
.toast .t-title { font-size: 14px; font-weight: 700; color: var(--mm-text); }
.toast .t-msg { font-size: 12.5px; color: var(--mm-text-3); margin-top: 3px; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Modal ── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 9998; }
.modal { background: var(--mm-surface); border-radius: 18px; padding: 26px; max-width: 420px; width: 90%; box-shadow: var(--mm-shadow-lg); }
.modal h3 { font-size: 18px; color: var(--mm-text); }
.modal p { font-size: 14px; color: var(--mm-text-2); margin: 10px 0 18px; line-height: 1.5; }

/* ── Toggle switch ── */
.switch { width: 44px; height: 24px; border-radius: 12px; background: var(--mm-border-2); position: relative; cursor: pointer; flex-shrink: 0; }
.switch.on { background: var(--mm-teal-600); }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 8px; background: #fff; transition: left .15s; }
.switch.on::after { left: 24px; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE LAYOUT — Full responsive refactor
   Breakpoints: 320 / 375 / 425 / 576 / 768 / 992 / 1024 / 1200 / 1400
   Strategy:
     • ≥1024px: Permanent left sidebar (existing desktop layout, untouched)
     • 768–1023px: Overlay sidebar via hamburger, slides from left
     • <768px: Hidden sidebar, hamburger in sticky top bar, backdrop blur
   ══════════════════════════════════════════════════════════════════ */

/* ── Prevent horizontal scroll globally ── */
html, body { overflow-x: hidden; }
.results-root { overflow-x: hidden; }

/* ── Focus styles (accessibility — keyboard nav) ── */
:focus-visible {
  outline: 2px solid var(--mm-teal-600);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn-primary:focus-visible, .btn-primary-lg:focus-visible,
.btn-outline:focus-visible, .nav-item:focus-visible,
.hamburger-btn:focus-visible, .icon-btn:focus-visible,
.google-btn:focus-visible, .chip:focus-visible,
.filter-chip:focus-visible, .nav-arrow:focus-visible {
  outline: 2px solid var(--mm-teal-600);
  outline-offset: 2px;
}

/* ── Mobile top bar (hidden on desktop, shown ≤1023px) ── */
.mobile-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--mm-surface);
  padding: 0 14px;
  height: 56px;
  min-height: 56px;
  border-bottom: 1px solid var(--mm-border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}
.hamburger-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--mm-teal-50);
  color: var(--mm-teal-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.hamburger-btn:hover { background: var(--mm-teal-100); }
.hamburger-btn svg { width: 22px; height: 22px; fill: currentColor; }
.mobile-brand { display: flex; align-items: center; gap: 10px; }
.mobile-brand .brand-badge { width: 32px; height: 32px; border-radius: 9px; }
.mobile-brand .brand-badge img { width: 24px; height: 24px; }
.mobile-brand .sidebar-brand { font-size: 18px; }

/* ── Sidebar backdrop (overlay — shown when sidebar is open on mobile) ── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  transition: opacity .25s ease;
}
.sidebar-backdrop.show { display: block; opacity: 1; }

/* ── Responsive helper: stack rows vertically on mobile ── */
.stack-on-mobile > * { min-width: 0; }

/* ── Dashboard fixed-width panels (desktop only, full width on mobile) ── */
.dist-panel { flex-shrink: 0; }
.side-stack { flex-shrink: 0; }
@media (min-width: 1024px) {
  .dist-panel { width: 340px; }
  .side-stack { width: 360px; }
}

/* ── Extra large desktop (≥1400px) — slightly wider content ── */
@media (min-width: 1400px) {
  .content-area { max-width: 1280px; }
  .sidebar { width: 280px; min-width: 280px; }
}

/* ══════════════════════════════════════════════════════════════════
   TABLET / SMALL LAPTOP (768px–1023px) — overlay sidebar
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  /* App shell switches to column: mobile-topbar on top, main below */
  .app-shell { flex-direction: column; }
  .mobile-topbar { display: flex; }

  /* Sidebar becomes a fixed overlay that slides in from the left */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px; min-width: 280px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 300;
    box-shadow: var(--mm-shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }

  /* Content adjustments */
  .content-area { padding: 16px 18px 24px; }
  .dash-header { padding: 14px 18px; min-height: 64px; }
  .dash-greeting { font-size: 22px; }
  .main-topbar { padding: 0 16px; }

  /* Dashboard rows stack vertically */
  .stack-on-mobile { flex-direction: column; }
  .stack-on-mobile > * { width: 100%; }

  /* Quiz body stacks (question on top, feedback below) */
  /* v2: single-column on mobile too — no changes needed since it's already single-column */
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE (<768px) — compact everything, single-column layout
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Content padding */
  .content-area { padding: 12px 14px 20px; }

  /* Dashboard header — compact + wrap */
  .dash-header { padding: 12px 14px; min-height: 56px; flex-wrap: wrap; gap: 10px; }
  .dash-greeting { font-size: clamp(16px, 5vw, 20px); }
  .dash-greeting-sub { font-size: 12px; }
  .header-streak { padding: 5px 10px; }
  .header-streak .txt { font-size: 12px; }
  .header-icon-btn, .header-avatar { width: 36px; height: 36px; font-size: 15px; }

  /* Top bars */
  .main-topbar { padding: 0 14px; min-height: 52px; gap: 10px; }
  .main-title { font-size: 16px; }
  .main-subtitle { font-size: 11px; }
  .icon-btn { width: 36px; height: 36px; font-size: 14px; }

  /* Login */
  .login-root { padding: 20px; }
  .login-split { flex-direction: column; }
  .login-hero { display: none; }
  .login-card-col { padding: 20px; }
  .login-card { padding: 32px 24px; border-radius: 16px; }
  .login-logo { width: 72px; height: 72px; border-radius: 18px; }
  .login-logo img { width: 54px; height: 54px; }
  .app-title { font-size: 22px; }
  .app-subtitle { font-size: 12px; }
  .google-btn { height: 46px; font-size: 14px; }
  .login-field .input { font-size: 16px; }

  /* Splash */
  .splash-logo { width: 90px; height: 90px; border-radius: 24px; }
  .splash-logo img { width: 66px; height: 66px; }
  .splash-title { font-size: 30px; }
  .splash-tagline { font-size: 11px; letter-spacing: 1.5px; }

  /* Cards / panels — less padding on mobile */
  .card, .panel { padding: 16px; border-radius: 14px; }
  .section-header { padding-bottom: 10px; }

  /* Stat tiles: 1 column on mobile */
  .stat-tiles { grid-template-columns: 1fr; gap: 10px; }
  .stat-num { font-size: 22px; }

  /* Stats flow: single column on small screens */
  .stats-flow { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 28px; }
  .stat-ic { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }

  /* Achievements: 2 columns on mobile */
  .ach-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .achievement { padding: 12px 6px; }
  .achievement .emoji { font-size: 22px; }
  .achievement .title { font-size: 10px; }

  /* Calendar */
  .cal-grid { gap: 4px; }
  .cal-cell { height: 28px; font-size: 11px; border-radius: 6px; }
  .cal-dow { font-size: 9px; }

  /* Big score (results) */
  .big-score { font-size: clamp(36px, 12vw, 48px); }
  .big-percent { font-size: 16px; }

  /* Quiz screen */
  .quiz-top { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .quiz-top .grow { display: none; }
  .score-chip { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
  .q-counter { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
  .exit-btn { height: 34px; font-size: 12px; padding: 0 12px; }
  .quiz-body { padding: 12px 14px; }
  .quiz-content { gap: 10px; }
  .question-card { padding: 16px; border-radius: 12px; }
  .question-text { font-size: 16px; line-height: 1.45; }
  .option-row { padding: 10px 12px; min-height: 44px; gap: 8px; border-radius: 10px; }
  .option-text { font-size: 14px; }
  .option-letter { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }

  /* Quiz action bar — wrap on mobile, hide spacer */
  .quiz-action-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .quiz-action-bar .grow { display: none; }
  .nav-arrow { width: 40px; height: 40px; font-size: 16px; border-radius: 20px; }
  .nav-pos { font-size: 12px; min-width: 50px; }
  .quiz-action-bar .btn-outline,
  .quiz-action-bar .btn-primary { height: 40px; font-size: 13px; padding: 0 16px; border-radius: 10px; }

  /* Breakdown grid */
  .breakdown-grid { gap: 6px; }
  .cell { width: 38px; height: 38px; border-radius: 7px; }
  .cell .sym { font-size: 14px; }

  /* Recommendation panel */
  .reco-panel { padding: 18px; border-radius: 14px; }
  .reco-topic { font-size: 18px; }
  .reco-reason { font-size: 14px; }

  /* Profile hero */
  .profile-hero { padding: 22px 18px; border-radius: 16px; }
  .profile-avatar { width: 64px; height: 64px; font-size: 30px; border-radius: 20px; }
  .profile-avatar img { border-radius: 20px; }
  .profile-name { font-size: 18px; }

  /* v3: Profile stats → 2 columns on mobile */
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* v3: Premium comparison → 1 column on mobile */
  .premium-comparison { grid-template-columns: 1fr; }
  .premium-col-pro { order: -1; }

  /* Toast — full width on mobile */
  .toast-wrap { top: 10px; right: 10px; left: 10px; }
  .toast { max-width: none; padding: 12px 14px; }

  /* Modal */
  .modal { width: calc(100% - 24px); padding: 20px; border-radius: 16px; }
  .modal h3 { font-size: 16px; }

  /* Resume banner */
  .resume-banner { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .resume-banner .btn-text { font-size: 12px; }
  .resume-banner .btn-primary { font-size: 13px; height: 40px; padding: 0 18px; }

  /* Detail rows */
  .detail-key { font-size: 12px; }
  .detail-value { font-size: 12px; }

  /* Buttons — minimum touch target 44px, full width when .btn-full */
  .btn-primary, .btn-outline, .btn-outline-red { min-height: 44px; }
  .btn-primary-lg { min-height: 48px; }

  /* Inputs */
  .input, .textarea { font-size: 16px; padding: 12px 14px; }
  /* 16px font prevents iOS Safari auto-zoom on focus */

  /* Subject cards */
  .subject-card { padding: 14px; }

  /* History / weak spot cards */
  .history-card { padding: 14px; }
  .history-topic { font-size: 14px; }

  /* Chips */
  .chip { padding: 8px 14px; min-height: 40px; font-size: 12px; }
  .filter-chip { padding: 7px 14px; min-height: 38px; font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════════════
   VERY SMALL PHONES (≤374px) — even more compact
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 374px) {
  .content-area { padding: 10px 10px 16px; }
  .login-card { padding: 24px 16px; }
  .login-card-col { padding: 12px; }
  .ach-grid { grid-template-columns: 1fr; }
  .dash-greeting { font-size: 15px; }
  .question-text { font-size: 15px; }
  .stat-value { font-size: 24px; }
  .mobile-brand .sidebar-brand { font-size: 16px; }
  .mobile-brand .brand-badge { width: 28px; height: 28px; }
  .mobile-brand .brand-badge img { width: 20px; height: 20px; }
  .hamburger-btn { width: 40px; height: 40px; }
  .card, .panel { padding: 14px; }
  .breakdown-grid { gap: 4px; }
  .cell { width: 34px; height: 34px; }
}

/* ══════════════════════════════════════════════════════════════════
   PRINT — hide nav, show content only
   ══════════════════════════════════════════════════════════════════ */
@media print {
  .sidebar, .mobile-topbar, .sidebar-backdrop { display: none !important; }
  .app-shell { flex-direction: column; height: auto; overflow: visible; }
  .scroll-area { overflow: visible; }
}

/* ── Reduced motion: respect user preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sidebar { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════
   PRODUCTION POLISH — Animations, Skeletons, Transitions
   ══════════════════════════════════════════════════════════════════ */

/* ── Page transition (fade + slide) ── */
#app > * {
  animation: pageEnter .3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Card hover elevation ── */
.card, .panel, .history-card, .stat-card, .subject-card {
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.history-card:hover, .subject-card:hover {
  box-shadow: var(--mm-shadow-md);
  transform: translateY(-2px);
  border-color: var(--mm-teal-300);
}

/* ── Button transitions ── */
.btn-primary, .btn-outline, .btn-outline-red, .btn-text, .btn-primary-lg {
  transition: background .15s ease, transform .1s ease, box-shadow .2s ease;
}
.btn-primary:active, .btn-primary-lg:active { transform: scale(0.97); }
.btn-outline:active, .btn-outline-red:active { transform: scale(0.97); }
.btn-primary:focus-visible, .btn-outline:focus-visible, .btn-primary-lg:focus-visible {
  outline: 2px solid var(--mm-teal-400);
  outline-offset: 2px;
}

/* ── Skeleton loaders ── */
.skeleton {
  background: linear-gradient(90deg, var(--mm-surface-2) 25%, var(--mm-border) 50%, var(--mm-surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 120px;
  margin-bottom: 14px;
  border-radius: 16px;
}
.skeleton-stat {
  height: 90px;
  border-radius: 14px;
}

/* ── Toast animation ── */
.toast {
  animation: toastSlide .3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes toastSlide {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Modal animation ── */
.modal-backdrop { animation: fadeIn .2s ease; }
.modal { animation: modalScale .25s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Scrollbar polish ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--mm-border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--mm-teal-400); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Focus visible for all interactive elements ── */
button:focus-visible, .nav-item:focus-visible, .chip:focus-visible,
.option-row:focus-visible, .filter-chip:focus-visible {
  outline: 2px solid var(--mm-teal-400);
  outline-offset: 2px;
}

/* ── Feedback card smooth appearance ── */
.quiz-feedback .feedback-card {
  animation: feedbackAppear .35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes feedbackAppear {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Resume banner pulse ── */
.resume-banner {
  animation: resumeGlow 3s ease-in-out infinite;
}
@keyframes resumeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 109, 114, 0); }
  50% { box-shadow: 0 0 20px 2px rgba(22, 109, 114, 0.1); }
}

/* ── Stat card hover ── */
.stat-card {
  transition: box-shadow .2s ease, transform .2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mm-shadow-md);
}

/* ── Empty state fade-in ── */
.empty {
  animation: emptyFade .4s ease;
}
@keyframes emptyFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Progress bar fill animation ── */
.bar > i {
  transition: width .6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════════════════════════════════
   v3 GLOBAL POLISH — FAB, sidebar gradient, nav active, button press
   ══════════════════════════════════════════════════════════════════ */

/* ── Floating Action Button (mobile only) — quick New Quiz ── */
.fab {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--mm-teal-600), var(--mm-teal-500));
  color: #fff;
  font-size: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(22,109,114,0.35);
  z-index: 90;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fab:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(22,109,114,0.45); }
.fab:active { transform: scale(0.95); }
@media (max-width: 1023px) {
  .fab { display: flex; }
}

/* ── Sidebar nav active gradient ── */
.nav-item.active {
  background: linear-gradient(135deg, var(--mm-teal-600), var(--mm-teal-500));
  color: #fff;
  box-shadow: 0 4px 12px rgba(22,109,114,0.25);
}
.nav-item.active svg { fill: #fff; }
.nav-item { position: relative; transition: all .15s ease; }
.nav-item:not(.active):hover { transform: translateX(2px); }

/* ── Global button press feedback ── */
button:active { transform: scale(0.97); }
button:disabled { transform: none !important; }

/* ── Enhanced shadow tiers (for depth) ── */
:root {
  --mm-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
}

/* ── Input focus glow ── */
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--mm-teal-600);
  box-shadow: 0 0 0 3px rgba(22,109,114,0.12);
}

/* ── History card hover lift (enhanced) ── */
.history-card {
  transition: all .2s ease;
}
.history-card:hover {
  box-shadow: var(--mm-shadow-md);
  transform: translateY(-2px);
}

/* ── Edit profile modal ── */
.edit-profile-modal {
  max-width: 480px !important;
  width: 90% !important;
  max-height: 85vh;
  overflow-y: auto;
}
.edit-profile-modal .input {
  margin-bottom: 10px;
}


/* ════════════════════════════════════════════════════════════════
   Dashboard top-bar "Get Premium" CTA (free users only)
   ════════════════════════════════════════════════════════════════ */
.header-premium-cta {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 18px;
  border: none; border-radius: 20px;
  background: linear-gradient(135deg, var(--mm-gold-500), var(--mm-gold-700));
  color: #1f1b0a; font-weight: 700; font-size: 13.5px;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.32);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  animation: premiumCtaPulse 2.6s ease-in-out infinite;
}
.header-premium-cta .hp-star { font-size: 15px; line-height: 1; }
.header-premium-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.42);
}
.header-premium-cta:active { transform: scale(0.97); }
.header-premium-cta:focus-visible {
  outline: 3px solid #fcd34d;
  outline-offset: 2px;
}
@keyframes premiumCtaPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(245, 158, 11, 0.32); }
  50%      { box-shadow: 0 6px 22px rgba(245, 158, 11, 0.55); }
}
@media (max-width: 768px) {
  .header-premium-cta { height: 36px; padding: 0 14px; font-size: 12.5px; border-radius: 18px; }
  .header-premium-cta .hp-star { font-size: 13px; }
}
@media (max-width: 480px) {
  .header-premium-cta { padding: 0 12px; font-size: 12px; }
}

/* ════════════════════════════════════════════════════════════════
   Cold-start premium upsell dialog (free users, once per session)
   ════════════════════════════════════════════════════════════════ */
.coldstart-premium-backdrop { z-index: 10000; }
.coldstart-premium {
  max-width: 440px !important;
  width: 92% !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--mm-border);
}
.coldstart-premium .cs-premium-hero {
  background: linear-gradient(135deg, var(--mm-teal-600), var(--mm-teal-800));
  padding: 28px 26px 22px;
  text-align: center;
  color: #fff;
}
.coldstart-premium .cs-premium-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px;
  color: #A7E8E0;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 12px; border-radius: 14px;
  margin-bottom: 12px;
}
.coldstart-premium .cs-premium-title {
  font-size: 22px; font-weight: 700; color: #fff; line-height: 1.25;
}
.coldstart-premium .cs-premium-price {
  margin-top: 14px; display: flex; align-items: baseline; justify-content: center; gap: 8px;
}
.coldstart-premium .cs-premium-amount {
  font-size: 40px; font-weight: 800; color: var(--mm-gold-500, #F59E0B);
  line-height: 1;
}
.coldstart-premium .cs-premium-suffix {
  font-size: 15px; font-weight: 600; color: #CDE7E3;
}
.coldstart-premium .cs-premium-tagline {
  margin-top: 8px; font-size: 12px; color: #CDE7E3;
}
.coldstart-premium .cs-premium-features {
  background: var(--mm-surface);
  padding: 18px 26px 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.coldstart-premium .cs-feat {
  font-size: 13.5px; color: var(--mm-text-2); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.coldstart-premium .cs-feat::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--mm-teal-600); flex-shrink: 0;
}
.coldstart-premium .cs-premium-actions {
  background: var(--mm-surface);
  padding: 14px 26px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.coldstart-premium .cs-premium-cta {
  background: linear-gradient(135deg, var(--mm-gold-500), var(--mm-gold-700)) !important;
  color: #1f1b0a !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
.coldstart-premium .cs-premium-cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}
.coldstart-premium .cs-premium-later {
  height: 40px; font-size: 13px;
  color: var(--mm-text-3);
}
@media (max-width: 480px) {
  .coldstart-premium { width: 94% !important; }
  .coldstart-premium .cs-premium-hero { padding: 22px 20px 18px; }
  .coldstart-premium .cs-premium-title { font-size: 19px; }
  .coldstart-premium .cs-premium-amount { font-size: 34px; }
  .coldstart-premium .cs-premium-features { padding: 14px 20px 6px; }
  .coldstart-premium .cs-premium-actions { padding: 12px 20px 20px; }
}


/* ════════════════════════════════════════════════════════════════
   Course confirmation dialog (profile setup + edit profile)
   ════════════════════════════════════════════════════════════════ */
.course-confirm-modal {
  max-width: 460px !important;
  width: 92% !important;
}
.course-confirm-modal h3 {
  font-size: 19px;
  color: var(--mm-text);
  margin-bottom: 4px;
}
.course-confirm-modal p {
  font-size: 14px;
  color: var(--mm-text-2);
  margin: 12px 0 18px;
  line-height: 1.55;
}
.course-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.course-confirm-actions .btn-text {
  flex: 0 0 auto;
  padding: 0 18px;
  height: 44px;
}
.course-confirm-actions .btn-primary {
  flex: 1 1 auto;
  height: 44px;
  border-radius: 12px;
  font-weight: 700;
}
@media (max-width: 480px) {
  .course-confirm-modal { width: 94% !important; padding: 22px; }
  .course-confirm-actions { flex-direction: column-reverse; }
  .course-confirm-actions .btn-text,
  .course-confirm-actions .btn-primary { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════
   New Quiz setup — course pill badge (MBBS / BDS)
   ════════════════════════════════════════════════════════════════ */
.course-pill-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: 14px;
}
.course-pill-bar .cp-label {
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
  color: var(--mm-text-3);
}
.course-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .3px;
}
.course-pill.cp-mbbs {
  background: var(--mm-teal-50);
  color: var(--mm-teal-700);
  border: 1px solid var(--mm-teal-200);
}
.course-pill.cp-bds {
  background: var(--mm-purple-50, #F3E8FF);
  color: var(--mm-purple-600, #7C3AED);
  border: 1px solid var(--mm-purple-200, #DDD6FE);
}
.course-pill .cp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}
.course-pill-bar .cp-hint {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--mm-text-3);
  font-style: italic;
}
@media (max-width: 480px) {
  .course-pill-bar { padding: 10px 12px; gap: 8px; }
  .course-pill-bar .cp-hint { display: none; }
  .course-pill { font-size: 12px; padding: 4px 12px; }
}


/* ════════════════════════════════════════════════════════════════
   Daily-limit countdown timer (New Quiz setup page, free users only)
   Shows a live HH:MM:SS countdown to 12 AM Pakistan time.
   ════════════════════════════════════════════════════════════════ */
.limit-reset-card {
  background: linear-gradient(135deg, var(--mm-gold-50, #FFFBEB), var(--mm-gold-100, #FEF3C7));
  border: 1.5px solid var(--mm-gold-200, #FDE68A);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-weight: 400;
  font-size: 13px;
  color: var(--mm-text);
  line-height: 1.4;
}
.limit-reset-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.limit-reset-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  animation: limitClockTick 1s ease-in-out infinite alternate;
}
@keyframes limitClockTick {
  from { transform: rotate(-8deg); }
  to   { transform: rotate(8deg); }
}
.limit-reset-body {
  flex: 1;
  min-width: 0;
}
.limit-reset-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--mm-gold-700, #B45309);
  margin-bottom: 2px;
}
.limit-reset-sub {
  font-size: 11.5px;
  color: var(--mm-text-3);
  line-height: 1.4;
}
.limit-reset-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--mm-surface);
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid var(--mm-gold-200, #FDE68A);
}
.limit-reset-timer-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--mm-text-3);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.limit-reset-timer {
  font-size: 20px;
  font-weight: 800;
  color: var(--mm-gold-700, #B45309);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  font-family: "Inter", "SF Mono", "Consolas", monospace;
}
@media (max-width: 480px) {
  .limit-reset-card { padding: 12px 14px; gap: 8px; }
  .limit-reset-icon { font-size: 22px; }
  .limit-reset-title { font-size: 13px; }
  .limit-reset-sub { font-size: 11px; }
  .limit-reset-timer { font-size: 18px; }
  .limit-reset-timer-label { font-size: 10px; }
}
