/* =========================================================================
   Iron & Hold — style.css
   Design-Sprache: ruhiges, dunkles Grundgerüst ("Eisen") mit zwei klaren
   Akzentfarben, die die zwei Trainingsarten repräsentieren:
     - Plank  = "Steel"  (kühles Blau, steht für ruhige Spannung/Halten)
     - Swings = "Ember"  (warmes Orange, steht für explosive Bewegung)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------------------- */
:root {
  --steel: #4EA1E8;
  --steel-dim: #2E5C82;
  --steel-light: #8FCBFF;
  --steel-light-dim: #4C7A99;
  --ember: #FF7A45;
  --ember-dim: #8C4526;
  --gold: #FFC24B;
  --danger: #FF6161;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --nav-size: 76px;
  --header-size: 60px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

:root[data-theme="dark"] {
  --bg: #0F1115;
  --bg-elevated: #15171E;
  --card: #181B23;
  --card-hover: #1E212B;
  --border: rgba(255,255,255,0.07);
  --text: #EEF0F4;
  --text-dim: #9096A6;
  --text-faint: #5B6070;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --track: rgba(255,255,255,0.08);
}

:root[data-theme="light"] {
  --bg: #F3F4F7;
  --bg-elevated: #FFFFFF;
  --card: #FFFFFF;
  --card-hover: #F7F8FA;
  --border: rgba(20,22,30,0.08);
  --text: #191B22;
  --text-dim: #676C7B;
  --text-faint: #9CA1AF;
  --shadow: 0 10px 26px rgba(20,22,30,0.08);
  --track: rgba(20,22,30,0.07);
}

/* -------------------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .35s var(--ease), color .35s var(--ease);
  overscroll-behavior-y: none;
}
h1, h2, h3, p { margin: 0; }
button, input { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
svg { display: block; }
::selection { background: var(--ember); color: #12131a; }

.tnum, .stat-mini__value, .ring-center__streak, .quick-btn__big,
.training-card__total, .stat-card__value { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   3. App Header
   ------------------------------------------------------------------------- */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(var(--header-size) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 18px;
  padding-right: 18px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.app-header__brand { display: flex; align-items: center; gap: 8px; }
.app-header__mark { color: var(--ember); display: flex; }
.app-header__title { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.app-header__title-accent { color: var(--text-faint); font-weight: 500; margin: 0 1px; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: none; border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: transform .15s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--card-hover); }
.icon-btn:active { transform: scale(.9); }

/* -------------------------------------------------------------------------
   4. Navigation (bottom on mobile, side on desktop)
   ------------------------------------------------------------------------- */
.app-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-size);
  display: flex;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 50;
}
.app-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  transition: color .2s var(--ease);
}
.app-nav__item svg { stroke: currentColor; transition: transform .25s var(--ease-spring); }
.app-nav__item.is-active { color: var(--ember); }
.app-nav__item.is-active svg { transform: translateY(-2px) scale(1.05); }
.app-nav__item:active svg { transform: scale(.88); }

/* -------------------------------------------------------------------------
   5. Layout / Main
   ------------------------------------------------------------------------- */
.app-main {
  padding: calc(var(--header-size) + env(safe-area-inset-top, 0px) + 18px) 16px calc(var(--nav-size) + 28px);
  max-width: 640px;
  margin: 0 auto;
  min-height: 100%;
}
.view { display: none; animation: viewIn .35s var(--ease); }
.view.is-active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.view-head { margin-bottom: 18px; }
.view-head__eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--text-faint);
}
.view-head__title { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 2px; }

/* -------------------------------------------------------------------------
   6. Card
   ------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card__title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }

/* -------------------------------------------------------------------------
   7. Dashboard – Ring
   ------------------------------------------------------------------------- */
.ring-card { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ring-wrap { position: relative; width: 180px; height: 180px; }
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--track); stroke-width: 12; }
.ring-progress {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset .7s var(--ease-spring);
}
.ring-progress--plank { stroke: var(--steel); }
.ring-progress--swings { stroke: var(--ember); }
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-center__streak { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ring-center__label { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; font-weight: 600; }

.ring-legend { display: flex; gap: 24px; }
.ring-legend__item { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.ring-legend__item strong { color: var(--text); font-size: 15px; margin-left: 2px; }
.muted { color: var(--text-faint); font-weight: 500; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--plank { background: var(--steel); }
.dot--swings { background: var(--ember); }
.dot--sideplank { background: var(--steel-light); }

/* Plank-Timer auf dem Dashboard */
.timer-card { text-align: center; }
.timer-card__head { margin-bottom: 6px; }
.timer-card__head h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.timer-display {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 10px 0 18px;
  transition: color .3s var(--ease);
}
.timer-display.is-running {
  color: var(--steel);
  animation: timerPulse 1.6s ease-in-out infinite;
}
@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .72; }
}
.timer-controls { display: flex; align-items: center; gap: 10px; }
.timer-btn { flex: 1; }
.timer-btn--main { flex: 1.6; }
.timer-btn--reset { flex: 0 0 44px; width: 44px; height: 44px; }
.timer-btn--reset:disabled, .timer-btn:disabled {
  opacity: .4; cursor: not-allowed;
}

.quick-btn--wide { width: 100%; flex-direction: row; justify-content: center; gap: 10px; margin-bottom: 16px; }
.quick-btn--wide .quick-btn__big { font-size: 22px; }

/* Quick actions on dashboard */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.quick-btn {
  border: none;
  border-radius: var(--radius-lg);
  padding: 22px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-weight: 700; font-size: 13px;
  color: #fff;
  transition: transform .15s var(--ease-spring), filter .2s var(--ease);
  box-shadow: var(--shadow);
}
.quick-btn__big { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.quick-btn--plank { background: linear-gradient(155deg, var(--steel), var(--steel-dim)); }
.quick-btn--swings { background: linear-gradient(155deg, var(--ember), var(--ember-dim)); }
.quick-btn:active { transform: scale(.95); filter: brightness(1.08); }

.stat-mini-row { display: flex; justify-content: space-between; gap: 8px; }
.stat-mini { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; text-align: center; }
.stat-mini__value { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.stat-mini__label { font-size: 10.5px; color: var(--text-dim); font-weight: 600; line-height: 1.3; }

/* -------------------------------------------------------------------------
   8. Training view
   ------------------------------------------------------------------------- */
.training-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.training-card__head h2 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.training-card__total { font-size: 15px; font-weight: 800; color: var(--text); }

.btn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 6px;
  font-weight: 700;
  font-size: 13.5px;
  transition: transform .12s var(--ease-spring), filter .2s var(--ease), background .2s var(--ease);
}
.btn:active { transform: scale(.93); }
.btn--plank { background: color-mix(in srgb, var(--steel) 18%, var(--card)); color: var(--steel); }
.btn--plank:active { background: color-mix(in srgb, var(--steel) 32%, var(--card)); }
.btn--swings { background: color-mix(in srgb, var(--ember) 18%, var(--card)); color: var(--ember); }
.btn--swings:active { background: color-mix(in srgb, var(--ember) 32%, var(--card)); }
.btn--sideplank { background: color-mix(in srgb, var(--steel-light) 20%, var(--card)); color: var(--steel-light); }
.btn--sideplank:active { background: color-mix(in srgb, var(--steel-light) 35%, var(--card)); }
.btn--ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--text); border-color: var(--text-faint); }
.btn--primary { background: linear-gradient(135deg, var(--ember), var(--ember-dim)); color: #fff; }
.btn--primary-plank { background: linear-gradient(135deg, var(--steel), var(--steel-dim)); color: #fff; }
.btn--primary-sideplank { background: linear-gradient(135deg, var(--steel-light), var(--steel-light-dim)); color: #fff; }
.btn--full { width: 100%; padding: 15px; border-radius: var(--radius-md); margin-top: 4px; }
.file-btn { display: block; text-align: center; }

.weight-toggle { display: flex; gap: 8px; margin-bottom: 14px; background: var(--track); padding: 4px; border-radius: var(--radius-pill); }
.weight-toggle__btn {
  flex: 1; border: none; background: transparent; padding: 10px 0;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 13px; color: var(--text-dim);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.weight-toggle__btn.is-active { background: var(--card); color: var(--ember); box-shadow: 0 2px 8px rgba(0,0,0,.15); }

.entry-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.entry-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px;
  animation: rowIn .25s var(--ease);
}
.entry-row--plank { border-left-color: var(--steel); }
.entry-row--sideplank { border-left-color: var(--steel-light); }
.entry-row--swings { border-left-color: var(--ember); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-6px);} to { opacity:1; transform: translateX(0);} }
.entry-row__meta { color: var(--text-dim); font-size: 12px; }
.entry-row__delete {
  border: none; background: transparent; color: var(--text-faint);
  font-size: 15px; padding: 4px 8px; border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.entry-row__delete:hover { color: var(--danger); background: rgba(255,97,97,.1); }
.entry-list-empty { color: var(--text-faint); font-size: 13px; text-align: center; padding: 14px 0; }

/* -------------------------------------------------------------------------
   9. Statistik
   ------------------------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; box-shadow: var(--shadow);
}
.stat-card__value { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.stat-card__label { font-size: 11.5px; color: var(--text-dim); font-weight: 600; margin-top: 3px; }
.stat-card__icon { font-size: 15px; margin-bottom: 6px; opacity: .85; }

.chart-canvas { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--text-dim); font-weight: 600; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }

.year-compare-list { display: flex; flex-direction: column; gap: 10px; }
.year-compare-row { display: flex; align-items: center; gap: 12px; }
.year-compare-row__label { width: 46px; font-weight: 800; font-size: 13.5px; }
.year-compare-row .progress-track { flex: 1; }
.year-compare-row__value { width: 76px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--text-dim); }

/* -------------------------------------------------------------------------
   10. Kalender
   ------------------------------------------------------------------------- */
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.calendar-nav__label { font-weight: 800; font-size: 15.5px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--text-faint); font-weight: 700; margin-bottom: 6px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: var(--text-dim);
  background: var(--bg-elevated);
  border: 1px solid transparent;
  transition: transform .15s var(--ease), border-color .2s var(--ease);
  position: relative;
}
.cal-day:active { transform: scale(.92); }
.cal-day.is-empty { background: transparent; }
.cal-day.is-today { border-color: var(--ember); }
.cal-day.is-trained { color: #fff; }
.cal-day.is-trained::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ember);
  position: absolute; bottom: 5px;
}
.cal-day.is-trained { background: color-mix(in srgb, var(--ember) 20%, var(--bg-elevated)); }

/* -------------------------------------------------------------------------
   11. Ziele
   ------------------------------------------------------------------------- */
.goal-list { display: flex; flex-direction: column; gap: 12px; }
.goal-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow); }
.goal-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.goal-card__title { font-weight: 700; font-size: 14.5px; }
.goal-card__progress-text { font-size: 12.5px; color: var(--text-dim); font-weight: 700; }
.progress-track { height: 9px; border-radius: var(--radius-pill); background: var(--track); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--steel), var(--ember)); transition: width .6s var(--ease-spring); }
.goal-card.is-complete .progress-fill { background: var(--gold); }
.goal-card.is-complete .goal-card__title::after { content: " ✓"; color: var(--gold); }

/* -------------------------------------------------------------------------
   12. Erfolge / Badges
   ------------------------------------------------------------------------- */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease-spring);
}
.badge__icon { font-size: 26px; filter: grayscale(1); opacity: .35; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.badge.is-unlocked .badge__icon { filter: none; opacity: 1; }
.badge.is-unlocked { animation: badgePop .4s var(--ease-spring); }
@keyframes badgePop { from { transform: scale(.85); } to { transform: scale(1); } }
.badge__title { font-size: 11.5px; font-weight: 700; line-height: 1.25; }
.badge__desc { font-size: 10px; color: var(--text-faint); line-height: 1.3; }

/* -------------------------------------------------------------------------
   13. Einstellungen
   ------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field input {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px; color: var(--text); font-weight: 700;
  transition: border-color .2s var(--ease);
}
.field input:focus { outline: none; border-color: var(--ember); }
.field-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; min-height: 14px; }

.switch-row { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 14px; }
.switch { position: relative; width: 46px; height: 27px; display: inline-block; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; background: var(--track); border-radius: var(--radius-pill); transition: background .2s var(--ease); }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-spring); box-shadow: 0 2px 5px rgba(0,0,0,.25); }
.switch input:checked + .switch__track { background: var(--ember); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(19px); }

.app-version { text-align: center; color: var(--text-faint); font-size: 11.5px; margin-top: 18px; }

/* -------------------------------------------------------------------------
   14. Modal
   ------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,7,10,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100; animation: fadeIn .2s var(--ease);
}
/* WICHTIG: das HTML-Attribut "hidden" muss display:none erzwingen können.
   Ohne diese Regel gewinnt die .modal-overlay-Klasse (display:flex) gegen
   das UA-Standardverhalten von [hidden] -> Modal wäre immer sichtbar. */
.modal-overlay[hidden] {
  display: none;
}
:root[data-theme="light"] .modal-overlay { background: rgba(20,22,30,.35); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-elevated); border-radius: 24px 24px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0));
  width: 100%; max-width: 480px; position: relative;
  animation: modalUp .3s var(--ease-spring);
  max-height: 82vh; overflow-y: auto;
}
@keyframes modalUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal__close {
  position: absolute; top: 16px; right: 16px; border: none; background: var(--track);
  width: 30px; height: 30px; border-radius: 50%; color: var(--text-dim); font-size: 13px;
}
.modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.modal .field input { font-size: 20px; text-align: center; }

@media (min-width: 641px) {
  .modal-overlay { align-items: center; }
  .modal { border-radius: 24px; }
}

/* -------------------------------------------------------------------------
   15. Toast
   ------------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-size) + 16px);
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow);
  z-index: 200; opacity: 0; transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* -------------------------------------------------------------------------
   16. Desktop layout (>= 900px): side navigation instead of bottom nav
   ------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .app-nav {
    top: var(--header-size); bottom: 0; left: 0; right: auto;
    width: 220px; height: auto;
    flex-direction: column;
    border-top: none; border-right: 1px solid var(--border);
    padding: 20px 12px;
    gap: 4px;
  }
  .app-nav__item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
  }
  .app-nav__item.is-active { background: color-mix(in srgb, var(--ember) 14%, transparent); }
  .app-nav__item.is-active svg { transform: none; }

  .app-main {
    margin-left: 220px;
    max-width: 760px;
    padding-top: calc(var(--header-size) + env(safe-area-inset-top, 0px) + 28px);
    padding-bottom: 40px;
  }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .badge-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
  .app-main { max-width: 900px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
