/* ═══════════════════════════════════════════════════
   ZAGRODA — STYLE  |  Mobile-first, v1.0
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Baloo+2:wght@400;600;700;800&display=swap');

/* ── RESET & ROOT ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sky:    #e8f4fd;
  --grass:  #d4edda;
  --sun:    #ffd93d;
  --sun2:   #ff6b35;
  --green:  #2d9e5f;
  --green2: #1a7a45;
  --blue:   #3b82f6;
  --blue2:  #1d4ed8;
  --pink:   #f472b6;
  --pink2:  #db2777;
  --purple: #a78bfa;
  --amber:  #f59e0b;
  --red:    #ef4444;
  --red2:   #dc2626;
  --white:  #ffffff;
  --cream:  #fffbf0;
  --text:   #1e293b;
  --text2:  #475569;
  --text3:  #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow2:0 8px 32px rgba(0,0,0,0.15);
  --r:      18px;
  --r2:     12px;
  --font:   'Nunito', sans-serif;
  --font2:  'Baloo 2', cursive;
}

body {
  font-family: var(--font);
  background: linear-gradient(160deg, #e0f2fe 0%, #dcfce7 50%, #fef9c3 100%);
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ── SCREENS ──────────────────────────────────────── */
.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding: 0;
  animation: fadeIn .3s ease;
}
.screen.active { display: flex; }

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

/* ── HEADER ───────────────────────────────────────── */
.header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-title {
  font-family: var(--font2);
  font-size: 20px;
  font-weight: 800;
  color: var(--green2);
}
.header-stars {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--sun);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
}

/* ── MAIN CONTENT ─────────────────────────────────── */
.content {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── CARDS ────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}
.card.green  { border-color: #86efac; background: #f0fdf4; }
.card.blue   { border-color: #93c5fd; background: #eff6ff; }
.card.amber  { border-color: #fcd34d; background: #fffbeb; }
.card.pink   { border-color: #f9a8d4; background: #fdf2f8; }

/* ── TITLES ───────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font2); }
.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--green2);
  text-align: center;
  margin-bottom: 4px;
}
.page-sub {
  font-size: 14px;
  color: var(--text2);
  text-align: center;
  margin-bottom: 8px;
}
.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── WELCOME SCREEN ───────────────────────────────── */
.welcome-hero {
  text-align: center;
  padding: 32px 20px 16px;
}
.welcome-logo {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.welcome-title {
  font-family: var(--font2);
  font-size: 36px;
  font-weight: 900;
  color: var(--green2);
  text-shadow: 3px 3px 0 rgba(45,158,95,.15);
  margin-bottom: 6px;
}
.welcome-sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.5;
}
.welcome-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.stat-box {
  background: var(--white);
  border-radius: var(--r2);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-num {
  font-family: var(--font2);
  font-size: 28px;
  font-weight: 900;
  color: var(--green);
}
.stat-label {
  font-size: 11px;
  color: var(--text2);
  font-weight: 700;
  margin-top: 2px;
}

/* ── ANIMAL PICKER ────────────────────────────────── */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.animal-card {
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: var(--r);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  box-shadow: var(--shadow);
}
.animal-card:active { transform: scale(.95); }
.animal-card.selected {
  border-color: var(--green);
  background: var(--grass);
  box-shadow: 0 0 0 4px rgba(45,158,95,.2), var(--shadow);
}
.animal-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  background: var(--green);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}
.animal-emoji {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(2px 4px 4px rgba(0,0,0,.1));
  transition: transform .3s;
}
.animal-card.selected .animal-emoji { transform: scale(1.1) rotate(-5deg); }
.animal-card:active .animal-emoji   { transform: scale(.9); }
.animal-name {
  font-family: var(--font2);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.animal-opis {
  font-size: 11px;
  color: var(--text2);
  text-align: center;
  line-height: 1.3;
}

/* ── ANIMAL DISPLAY (during task) ────────────────── */
.animal-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 16px;
  position: relative;
}
.animal-big {
  font-size: 90px;
  line-height: 1;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(4px 8px 8px rgba(0,0,0,.12));
}
.animal-big.happy  { transform: scale(1.15) rotate(-8deg); animation: happyBounce .5s ease; }
.animal-big.sad    { transform: scale(.9);  filter: grayscale(40%) drop-shadow(4px 8px 8px rgba(0,0,0,.12)); animation: sadShake .4s ease; }
.animal-big.normal { transform: scale(1) rotate(0deg); }

@keyframes happyBounce {
  0%   { transform: scale(1) rotate(0); }
  30%  { transform: scale(1.2) rotate(-12deg); }
  60%  { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1.15) rotate(-8deg); }
}
@keyframes sadShake {
  0%,100% { transform: scale(.9) translateX(0); }
  25%     { transform: scale(.9) translateX(-6px); }
  75%     { transform: scale(.9) translateX(6px); }
}

.animal-speech {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
  position: relative;
  max-width: 220px;
  text-align: center;
  opacity: 0;
  transition: opacity .3s;
  box-shadow: var(--shadow);
}
.animal-speech::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--border);
}
.animal-speech.visible { opacity: 1; }
.animal-speech.happy { border-color: #86efac; background: #f0fdf4; }
.animal-speech.sad   { border-color: #fca5a5; background: #fef2f2; }

/* ── HEALTH BARS ──────────────────────────────────── */
.bars-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bar-icon { font-size: 18px; flex-shrink: 0; width: 24px; text-align: center; }
.bar-label { font-size: 12px; font-weight: 700; color: var(--text2); width: 72px; flex-shrink: 0; }
.bar-track {
  flex: 1;
  height: 16px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width .6s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
.bar-fill::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: rgba(255,255,255,.4);
  border-radius: 4px;
}
.bar-fill.zdrowie     { background: linear-gradient(90deg, #ef4444, #f87171); }
.bar-fill.matematyka  { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.bar-fill.polski      { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.bar-fill.koncentracja{ background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar-val { font-size: 12px; font-weight: 800; color: var(--text2); width: 28px; text-align: right; }

/* ── PROGRESS BAR (session) ──────────────────────── */
.progress-wrap {
  padding: 0 4px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 6px;
}
.progress-track {
  height: 20px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #4ade80);
  border-radius: 12px;
  transition: width .5s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  right: 6px;
  height: 5px;
  background: rgba(255,255,255,.4);
  border-radius: 4px;
}
.progress-dots {
  display: flex;
  justify-content: space-around;
  margin-top: 8px;
}
.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all .3s;
}
.progress-dot.done  { background: var(--sun); border-color: var(--amber); transform: scale(1.1); }
.progress-dot.active{ border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,158,95,.3); animation: pulse 1.5s infinite; }

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(45,158,95,.3); }
  50%      { box-shadow: 0 0 0 6px rgba(45,158,95,.1); }
}

/* ── TASK CARD ────────────────────────────────────── */
.task-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.task-question {
  font-family: var(--font2);
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin: 12px 0;
  line-height: 1.2;
  letter-spacing: -.5px;
}
.task-question .unknown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--sun);
  border-radius: 12px;
  border: 3px dashed var(--amber);
  font-size: 28px;
  color: var(--amber);
  margin: 0 4px;
  vertical-align: middle;
}
.task-hint {
  font-size: 13px;
  color: var(--text2);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
  background: var(--sky);
  padding: 8px 14px;
  border-radius: 10px;
}

/* ── ANSWER INPUT ─────────────────────────────────── */
.answer-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.answer-input-wrap {
  position: relative;
}
.answer-input {
  width: 100%;
  font-family: var(--font2);
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  padding: 16px;
  border: 3px solid var(--border);
  border-radius: var(--r2);
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.answer-input:focus  { border-color: var(--blue); background: #eff6ff; }
.answer-input.correct{ border-color: var(--green); background: #f0fdf4; color: var(--green2); }
.answer-input.wrong  { border-color: var(--red); background: #fef2f2; animation: wrongShake .4s; }

@keyframes wrongShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-8px); }
  60%     { transform: translateX(8px); }
}

/* ── CHOICE BUTTONS (ortografia) ─────────────────── */
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice-btn {
  padding: 18px 12px;
  border: 3px solid var(--border);
  border-radius: var(--r2);
  background: var(--white);
  font-family: var(--font2);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  box-shadow: var(--shadow);
}
.choice-btn:active   { transform: scale(.94); }
.choice-btn.correct  { background: #f0fdf4; border-color: var(--green); color: var(--green2); }
.choice-btn.wrong    { background: #fef2f2; border-color: var(--red);   color: var(--red2); }
.choice-btn.disabled { pointer-events: none; opacity: .5; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r2);
  font-family: var(--font);
  font-weight: 800;
  cursor: pointer;
  transition: all .15s;
  padding: 16px 24px;
  font-size: 17px;
  width: 100%;
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--green), #4ade80);
  color: white;
  font-size: 20px;
  padding: 20px;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--green2), var(--green)); }

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-confirm {
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  color: white;
  font-size: 19px;
  padding: 18px;
}
.btn-confirm:disabled {
  background: var(--border);
  color: var(--text3);
  pointer-events: none;
}
.btn-next {
  background: linear-gradient(135deg, var(--amber), #fbbf24);
  color: #78350f;
  font-size: 18px;
}
.btn-danger {
  background: var(--rl, #fff5f5);
  color: var(--red);
  border: 2px solid #fecaca;
}
.btn-sm {
  padding: 10px 16px;
  font-size: 14px;
  width: auto;
}
.btn-icon { font-size: 20px; }

/* ── NUMPAD ───────────────────────────────────────── */
.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.numpad-btn {
  padding: 18px;
  border: 2px solid var(--border);
  border-radius: var(--r2);
  background: var(--white);
  font-family: var(--font2);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: all .12s;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,.08);
}
.numpad-btn:active { transform: scale(.9); background: var(--sky); }
.numpad-btn.del    { background: #fff1f2; color: var(--red); border-color: #fecaca; }
.numpad-btn.confirm{ background: linear-gradient(135deg, var(--green), #4ade80); color: white; border: none; }

/* ── FEEDBACK OVERLAY ─────────────────────────────── */
.feedback-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.feedback-overlay.visible { opacity: 1; pointer-events: auto; }
.feedback-blob {
  background: var(--white);
  border-radius: 24px;
  padding: 32px 40px;
  text-align: center;
  box-shadow: var(--shadow2);
  border: 4px solid transparent;
  transform: scale(.8);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.feedback-overlay.visible .feedback-blob { transform: scale(1); }
.feedback-blob.correct { border-color: var(--green); }
.feedback-blob.wrong   { border-color: var(--red); }
.feedback-emoji { font-size: 64px; margin-bottom: 12px; }
.feedback-text  { font-family: var(--font2); font-size: 28px; font-weight: 900; }
.feedback-text.correct { color: var(--green2); }
.feedback-text.wrong   { color: var(--red2); }
.feedback-sub   { font-size: 14px; color: var(--text2); margin-top: 6px; }

/* ── CONFETTI ─────────────────────────────────────── */
.confetti-piece {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  animation: confettiFall 1.2s ease-out forwards;
  z-index: 300;
  pointer-events: none;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(60vh) rotate(720deg); opacity: 0; }
}

/* ── STARS DISPLAY ────────────────────────────────── */
.stars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.star {
  font-size: 28px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.star.earned { animation: starPop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes starPop {
  0%   { transform: scale(0) rotate(-20deg); }
  60%  { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ── BOTTOM NAV ───────────────────────────────────── */
.bottom-nav {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 2px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  z-index: 100;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  transition: color .15s;
  font-family: var(--font);
}
.nav-btn .nav-icon { font-size: 22px; }
.nav-btn.active    { color: var(--green2); }
.nav-btn:active    { transform: scale(.92); }

/* ── SESSION COMPLETE ─────────────────────────────── */
.session-complete {
  text-align: center;
  padding: 20px 0;
}
.complete-emoji {
  font-size: 80px;
  animation: happyBounce 1s ease infinite;
  margin-bottom: 12px;
}
.complete-title {
  font-family: var(--font2);
  font-size: 30px;
  font-weight: 900;
  color: var(--green2);
  margin-bottom: 8px;
}
.complete-stars {
  font-size: 40px;
  margin: 12px 0;
  letter-spacing: 6px;
}
.earned-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sun);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 16px;
  font-weight: 800;
  color: #78350f;
  margin: 8px 4px;
}

/* ── PORTFEL (wallet) ─────────────────────────────── */
.wallet-card {
  background: linear-gradient(135deg, #ffd93d, #ff6b35);
  border-radius: var(--r);
  padding: 24px;
  color: white;
  text-align: center;
  box-shadow: var(--shadow2);
}
.wallet-amount {
  font-family: var(--font2);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}
.wallet-label {
  font-size: 14px;
  font-weight: 700;
  opacity: .85;
  margin-top: 4px;
}
.wallet-stars-sub {
  font-size: 13px;
  opacity: .75;
  margin-top: 8px;
}

/* ── HISTORY TABLE ────────────────────────────────── */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--r2);
  border: 2px solid var(--border);
}
.history-date { font-size: 13px; color: var(--text2); font-weight: 600; }
.history-stars{ font-size: 14px; font-weight: 800; color: var(--amber); }
.history-animal{ font-size: 22px; }

/* ── PARENT PIN ───────────────────────────────────── */
.pin-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}
.pin-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: var(--white);
  transition: all .2s;
}
.pin-dot.filled { background: var(--green); border-color: var(--green); }

/* ── SETTINGS ─────────────────────────────────────── */
.settings-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--r2);
  border: 2px solid var(--border);
}
.setting-label { font-size: 14px; font-weight: 700; }
.setting-sub   { font-size: 11px; color: var(--text2); margin-top: 2px; }
.toggle {
  position: relative;
  width: 50px;
  height: 28px;
  background: var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.toggle.on { background: var(--green); }
.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  transition: transform .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.toggle.on::after { transform: translateX(22px); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  background: var(--white);
  cursor: pointer;
  transition: all .15s;
}
.chip.active { background: var(--green); border-color: var(--green); color: white; }

/* ── STREAK BADGE ─────────────────────────────────── */
.streak-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff6b35, #ffd93d);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

/* ── UTILITY ──────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.gap-8 { gap: 8px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ── SAFE AREA ────────────────────────────────────── */
.safe-bottom { padding-bottom: max(16px, env(safe-area-inset-bottom)); }

/* ── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
