/* Thirty6 — Adaptive ACT Practice */
/* Color palette: dark navy + electric blue */
:root {
  --bg: #0a0f1e;
  --bg-card: #111827;
  --bg-card-hover: #1a2536;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-glow: rgba(0, 212, 255, 0.25);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --radius: 12px;
  --transition: 0.2s ease;
}

/* ── LIGHT THEME ───────────────────────────────── */
body[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-card: #ffffff;
  --bg-card-hover: #eef2f7;
  --accent: #0077b6;
  --accent-dim: rgba(0, 119, 182, 0.1);
  --accent-glow: rgba(0, 119, 182, 0.2);
  --text: #1a1a2e;
  --text-dim: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

body[data-theme="light"] .header { border-bottom-color: var(--border); }
body[data-theme="light"] .logo { color: #0077b6; }
body[data-theme="light"] .logo span { color: #1a1a2e; }
body[data-theme="light"] .stat-chip { background: #fff; border-color: var(--border); color: var(--text-muted); }
body[data-theme="light"] .stat-chip .val { color: #0077b6; }
body[data-theme="light"] .free-counter { color: var(--text-muted); }
body[data-theme="light"] .free-counter.urgent { color: var(--yellow); }
body[data-theme="light"] .free-counter.done { color: #0077b6; }
body[data-theme="light"] .section-card { background: #fff; border-color: var(--border); }
body[data-theme="light"] .section-card:hover { background: #eef2f7; border-color: #0077b6; }
body[data-theme="light"] .section-name { color: var(--text); }
body[data-theme="light"] .section-count { color: var(--text-muted); }
body[data-theme="light"] .section-picker-title { color: #1a1a2e; }
body[data-theme="light"] .section-picker-sub { color: var(--text-muted); }
body[data-theme="light"] .practice-header { color: var(--text-dim); }
body[data-theme="light"] .timer { background: var(--accent-dim); border-color: var(--accent-glow); color: #0077b6; }
body[data-theme="light"] .timer.warning { color: var(--yellow); background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); }
body[data-theme="light"] .timer.danger { color: var(--red); background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25); }
body[data-theme="light"] .question-card { background: #fff; border-color: var(--border); }
body[data-theme="light"] .question-text { color: #1a1a2e; }
body[data-theme="light"] .option { background: #fff; border-color: var(--border); color: #1a1a2e; }
body[data-theme="light"] .option:hover { border-color: #0077b6; background: rgba(0,119,182,0.05); }
body[data-theme="light"] .option.selected { border-color: #0077b6; background: rgba(0,119,182,0.08); }
body[data-theme="light"] .option-letter { background: var(--border); color: var(--text-muted); }
body[data-theme="light"] .option:hover .option-letter,
body[data-theme="light"] .option.selected .option-letter { background: #0077b6; color: #fff; }
body[data-theme="light"] .btn-primary { background: #0077b6; color: #fff !important; }
body[data-theme="light"] .btn-primary:hover { background: #0096c7; }
body[data-theme="light"] .btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
body[data-theme="light"] .btn-secondary:hover { border-color: #0077b6; }
body[data-theme="light"] .btn-ghost { color: var(--text-muted); }
body[data-theme="light"] .btn-ghost:hover { color: #0077b6; }
body[data-theme="light"] .btn-gs { background: #4285f4; color: #fff; }
body[data-theme="light"] .btn-apple { background: #000; color: #fff; }
body[data-theme="light"] .feedback { background: var(--bg-card); border-color: var(--border); }
body[data-theme="light"] .feedback-explanation { color: var(--text-dim); }
body[data-theme="light"] .dashboard-card { background: #fff; border-color: var(--border); }
body[data-theme="light"] .dashboard-card .value { color: #0077b6; }
body[data-theme="light"] .section-breakdown { background: #fff; border-color: var(--border); }
body[data-theme="light"] .section-row { border-color: var(--border); }
body[data-theme="light"] .section-row .sname { color: var(--text); }
body[data-theme="light"] .progress-bar-wrap { background: var(--bg); }
body[data-theme="light"] .session-summary .summary-item { background: #fff; border-color: var(--border); }
body[data-theme="light"] .session-summary .summary-item .si-label { color: var(--text-muted); }
body[data-theme="light"] .session-summary .summary-item .si-val { color: var(--text); }
body[data-theme="light"] .complete-score .big-number { color: #0077b6; }
body[data-theme="light"] .complete-score .score-label { color: var(--text-muted); }
body[data-theme="light"] .calc-toggle { color: var(--text-muted); }
body[data-theme="light"] .calc-toggle:hover { color: #0077b6; }
body[data-theme="light"] .calc-container { background: #fff; border-color: var(--border); }
body[data-theme="light"] .user-chip { background: #fff; border-color: var(--border); }
body[data-theme="light"] .user-chip .user-name { color: var(--text); }
body[data-theme="light"] .user-chip:hover { border-color: #0077b6; }
body[data-theme="light"] .user-chip .avatar { background: #0077b6; }
body[data-theme="light"] .app-footer { background: var(--bg); border-color: var(--border); }
body[data-theme="light"] .app-footer a { color: var(--text-muted); }
body[data-theme="light"] .app-footer a:hover { color: #0077b6; }
body[data-theme="light"] .modal-overlay { background: rgba(245,247,250,0.85); }
body[data-theme="light"] .modal-box { background: #fff; border-color: var(--border); }
body[data-theme="light"] .modal-box h2 { color: var(--text); }
body[data-theme="light"] .modal-sub { color: var(--text-muted); }
body[data-theme="light"] .toast { background: #fff; border-color: #0077b6; color: var(--text); }
body[data-theme="light"] .welcome-banner { background: var(--accent-dim); border-color: var(--accent-glow); color: #0077b6; }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); transition: all 0.2s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }

/* ── BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── LAYOUT ─────────────────────────────────────── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  padding-bottom: 80px; /* space for fixed footer */
}

.screen { display: none; }
.screen.active { display: block; }

/* ─── HEADER ─────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.logo span { color: var(--text); }

.header-stats {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
}

.stat-chip .val {
  color: var(--accent);
  font-weight: 600;
}

/* ─── SECTION PICKER ──────────────────────────────── */
.section-picker-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.section-picker-sub {
  color: var(--text-dim);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: var(--transition);
}

.section-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.section-card:hover::before { opacity: 1; }

.section-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.section-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.section-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ─── PRACTICE SCREEN ─────────────────────────────── */
.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 600;
}

.practice-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ─── TIMER ──────────────────────────────────────── */
.timer {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  padding: 8px 18px;
  border-radius: 8px;
  letter-spacing: 2px;
  min-width: 100px;
  text-align: center;
}

.timer.warning { color: var(--yellow); background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.3); }
.timer.danger { color: var(--red); background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); animation: pulse-red 1s infinite; }

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ─── QUESTION CARD ───────────────────────────────── */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.question-text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text);
}

.question-number {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ─── ANSWER OPTIONS ──────────────────────────────── */
.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.option:hover { border-color: var(--accent); background: var(--accent-dim); }

.option.selected { border-color: var(--accent); background: var(--accent-dim); }

.option.correct {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.12);
}

.option.incorrect {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.12);
}

.option.show-correct {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.option:hover .option-letter,
.option.selected .option-letter { background: var(--accent); color: var(--bg); }
.option.correct .option-letter { background: var(--green); color: white; }
.option.incorrect .option-letter { background: var(--red); color: white; }

.option-text { flex: 1; padding-top: 3px; }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover { background: #00bde6; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  padding: 8px 12px;
}

.btn-ghost:hover { color: var(--accent); }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.btn-submit { width: 100%; margin-top: 16px; }

/* ─── FEEDBACK ───────────────────────────────────── */
.feedback {
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid;
}

.feedback.correct {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.feedback.incorrect {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.feedback.correct .feedback-header { color: var(--green); }
.feedback.incorrect .feedback-header { color: var(--red); }

.feedback-explanation {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.feedback-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ─── PROGRESS DASHBOARD ─────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.dashboard-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.dashboard-card .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.dashboard-card .sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.section-breakdown {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.section-breakdown h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.section-row:last-child { border-bottom: none; }

.section-row .sname { font-weight: 600; width: 80px; }

.progress-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.5s ease;
}

.section-row .sacc { font-size: 0.8rem; color: var(--text-dim); width: 40px; text-align: right; }

.streak-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ─── CALCULATOR ─────────────────────────────────── */
.calc-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  margin-bottom: 12px;
  padding: 6px 0;
}

.calc-toggle:hover { color: var(--accent); }

.calc-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  display: none;
}

.calc-container.open { display: block; }

.calc-iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  background: white;
}

/* ─── LOADING STATE ──────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  height: 20px;
  margin-bottom: 12px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── DIFFICULTY BADGES ──────────────────────────── */
.diff-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 8px;
}

.diff-badge.easy { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.diff-badge.medium { background: rgba(245, 158, 11, 0.15); color: var(--yellow); }
.diff-badge.hard { background: rgba(239, 68, 68, 0.15); color: var(--red); }

/* ─── SESSION COMPLETE ────────────────────────────── */
.complete-score {
  text-align: center;
  padding: 40px 20px;
}

.complete-score .big-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.complete-score .score-label {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.session-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.summary-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.summary-item .si-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-item .si-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.complete-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── MOBILE RESPONSIVE ───────────────────────────── */
@media (max-width: 480px) {
  .section-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .session-summary { grid-template-columns: 1fr; }
  .timer { font-size: 1.25rem; padding: 6px 14px; }
  .question-card { padding: 20px; }
  .complete-score .big-number { font-size: 3rem; }
}

/* ─── TRANSITIONS ─────────────────────────────────── */
.screen {
  animation: fadeIn 0.25s ease;
}

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

/* ─── TOAST ───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 1000;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── NO QUESTIONS ────────────────────────────────── */
.no-questions {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.no-questions h2 { font-size: 1.25rem; margin-bottom: 8px; color: var(--text); }

/* ─── STREAK ICON ────────────────────────────────── */
.streak-fire { font-size: 1.25rem; }

/* ─── AUTH MODAL ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 16px;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal-box h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.modal-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-gs {
  background: #4285f4;
  color: white;
}

.btn-gs:hover { background: #3367d6; }

.btn-apple {
  background: #000;
  color: white;
}

.btn-apple:hover { background: #1a1a1a; }

.modal-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.modal-guest-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── USER CHIP IN HEADER ──────────────────────────── */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: var(--transition);
}

.user-chip:hover { border-color: var(--accent); }

.user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--bg);
}

.user-chip .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-chip .user-name {
  font-weight: 600;
  color: var(--text);
}

/* ─── WELCOME BANNER ──────────────────────────────── */
.welcome-banner {
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── FREE QUESTIONS COUNTER ─────────────────────── */
.free-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.free-counter.urgent {
  color: var(--yellow);
}

.free-counter.done {
  color: var(--accent);
}

/* ─── APP FOOTER ────────────────────────────────── */
.app-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 44px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 50;
}

.app-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.app-footer a:hover {
  color: var(--accent);
}