/* =========================================================
   SC RHEINFELD – Spieltags-App
   Modernes Dark-UI in Vereinsfarben, mobile-first App-Layout
   ========================================================= */

:root {
  --navy-900: #060e22;
  --navy-800: #0d1b3d;
  --navy-700: #142752;
  --navy-600: #1c3568;
  --gold: #f4b400;
  --gold-soft: #f7c74d;
  --red-live: #e63946;
  --green-ok: #2ecc71;
  --text-main: #eef2fb;
  --text-dim: #9fb0d1;
  --card-bg: #101f45;
  --card-border: #22335e;
  --radius: 16px;
  --app-max: 480px;
  --nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #04070f;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
}

a { color: inherit; }

.app-shell {
  max-width: var(--app-max);
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--navy-900) 0%, #060c1c 100%);
  position: relative;
  padding-bottom: calc(var(--nav-h) + 18px + var(--safe-bottom));
  box-shadow: 0 0 60px rgba(0,0,0,.6);
  overflow-x: hidden;
}

/* ---------- Header ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(6, 14, 34, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand .crest { width: 34px; height: 34px; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: .3px; }
.brand-sub { font-size: 11px; color: var(--text-dim); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  background: var(--navy-700);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
}

.points-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #211500;
  font-weight: 800;
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Matchday demo toggle ---------- */
.demo-toggle {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  background: #050b1a;
  border-bottom: 1px dashed var(--card-border);
  font-size: 11px;
  color: var(--text-dim);
  align-items: center;
  flex-wrap: wrap;
}
.demo-toggle button {
  background: var(--navy-700);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
}
.demo-toggle button.active { background: var(--gold); color: #211500; border-color: var(--gold); font-weight: 700; }

/* ---------- Views ---------- */
.view { display: none; padding: 14px 16px 8px; animation: fadeIn .25s ease; }
.view.active { display: block; }

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

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-dim);
  margin: 22px 2px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title .link { color: var(--gold); font-size: 12px; text-transform: none; letter-spacing: 0; cursor: pointer; }

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

/* ---------- Hero / Matchday ---------- */
.hero {
  border-radius: 20px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(244,180,0,.25), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--card-border);
}
.hero.matchday {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(230,57,70,.35), transparent 55%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #211500;
  font-weight: 800;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero-badge.live { background: var(--red-live); color: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(230,57,70,.6);} 70% { box-shadow: 0 0 0 8px rgba(230,57,70,0);} }

.match-row { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 6px; }
.team-block { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 38%; }
.team-crest {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}
.team-name { font-size: 12.5px; text-align: center; font-weight: 600; line-height: 1.2; }
.match-vs { font-size: 20px; font-weight: 800; color: var(--text-dim); }

.match-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: 12.5px; color: var(--text-dim); margin-top: 10px;
}
.match-meta span b { color: var(--text-main); }

.countdown {
  display: flex; gap: 8px; margin-top: 14px;
}
.countdown .box {
  flex: 1;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
}
.countdown .num { font-size: 22px; font-weight: 800; }
.countdown .lbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }

.scoreboard { text-align: center; margin: 6px 0; }
.scoreboard .score { font-size: 40px; font-weight: 900; letter-spacing: 1px; }
.scoreboard .minute { color: var(--red-live); font-weight: 700; font-size: 13px; }

.cta-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 13px;
  flex: 1;
  min-width: 120px;
  text-align: center;
}
.btn.primary { background: var(--gold); color: #211500; }
.btn.ghost { background: rgba(255,255,255,.08); color: var(--text-main); border: 1px solid var(--card-border); }
.btn.danger { background: var(--red-live); color: #fff; }
.btn.small { padding: 8px 10px; font-size: 12px; flex: none; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }

.quicklinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.quicklink {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
}
.quicklink .qi { font-size: 20px; display: block; margin-bottom: 6px; }

/* ---------- Info list rows ---------- */
.info-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--card-border);
  font-size: 13.5px;
}
.info-row:last-child { border-bottom: none; }
.info-row .ico { font-size: 18px; width: 26px; text-align: center; }
.info-row .txt { flex: 1; }
.info-row .txt small { display: block; color: var(--text-dim); font-size: 11.5px; }

/* ---------- Live Ticker ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px; }
.tabs button {
  background: var(--navy-700);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
}
.tabs button.active { background: var(--gold); color: #211500; font-weight: 700; border-color: var(--gold); }

.ticker-event {
  display: flex; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--card-border);
  animation: slideIn .3s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px);} to { opacity: 1; transform: translateX(0);} }
.ticker-event .min { width: 34px; font-weight: 800; color: var(--gold); font-size: 12.5px; flex-shrink: 0; }
.ticker-event .ico { width: 22px; text-align: center; flex-shrink: 0; }
.ticker-event .txt { font-size: 13px; line-height: 1.4; }
.ticker-event.goal .txt { font-weight: 700; color: var(--green-ok); }

.pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background:
    repeating-linear-gradient(0deg, #1c5b33, #1c5b33 10%, #1a5430 10%, #1a5430 20%);
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.25);
  overflow: hidden;
  margin-bottom: 10px;
}
.pitch::before {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid rgba(255,255,255,.25);
  margin: 6px;
  border-radius: 8px;
}
.pitch .midline { position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: rgba(255,255,255,.25); }
.pitch .circle { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; transform: translate(-50%,-50%); }
.player-dot {
  position: absolute;
  width: 30px; height: 30px;
  background: var(--navy-800);
  border: 2px solid var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  transform: translate(-50%, -50%);
}
.player-dot span.pname {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  font-size: 8.5px; color: #fff; background: rgba(0,0,0,.55);
  padding: 1px 4px; border-radius: 4px; white-space: nowrap; margin-top: 2px; font-weight: 600;
}

.stat-bar-row { margin-bottom: 12px; font-size: 12px; }
.stat-bar-row .labels { display: flex; justify-content: space-between; margin-bottom: 4px; color: var(--text-dim); }
.stat-bar-row .labels b { color: var(--text-main); }
.stat-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--navy-700); }
.stat-bar .home { background: var(--gold); }
.stat-bar .away { background: var(--red-live); }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* ---------- Player card ---------- */
.player-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  position: relative;
}
.player-card .status-flag {
  position: absolute; top: 6px; right: 6px; font-size: 13px;
}
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
  background: linear-gradient(150deg, var(--navy-600), var(--navy-800));
  border: 2px solid var(--gold);
}
.player-card .pname { font-size: 12px; font-weight: 700; line-height: 1.2; }
.player-card .pmeta { font-size: 10.5px; color: var(--text-dim); }
.player-card .pnum { position: absolute; top: 6px; left: 8px; font-weight: 800; color: var(--gold); font-size: 13px; }

.pos-filter-bar { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }

/* ---------- Table (Tabelle) ---------- */
.league-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.league-table th, .league-table td { padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--card-border); }
.league-table th { color: var(--text-dim); font-weight: 600; font-size: 10.5px; text-transform: uppercase; }
.league-table td.team { text-align: left; font-weight: 600; }
.league-table tr.self { background: rgba(244,180,0,.12); }
.league-table tr.self td.team { color: var(--gold); }
.form-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; line-height: 16px; color: #fff; font-weight: 800; margin: 0 1px; }
.form-dot.S { background: var(--green-ok); }
.form-dot.U { background: #999; }
.form-dot.N { background: var(--red-live); }

.result-row, .fixture-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--card-border); font-size: 12.5px; }
.result-row:last-child, .fixture-row:last-child { border-bottom: none; }
.result-row .score-chip, .fixture-row .time-chip { background: var(--navy-700); border-radius: 8px; padding: 3px 9px; font-weight: 800; font-size: 12px; }
.fixture-row.featured { background: rgba(244,180,0,.08); border-radius: 10px; padding: 9px 8px; }

/* ---------- Filter chips ---------- */
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  background: var(--navy-700); border: 1px solid var(--card-border);
  color: var(--text-dim); font-size: 11.5px; padding: 6px 11px; border-radius: 999px;
}
.chip.active { background: var(--gold); color: #211500; font-weight: 700; border-color: var(--gold); }

/* ---------- Fan zone ---------- */
.vote-option {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-700); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 10px; margin-bottom: 8px; position: relative; overflow: hidden;
}
.vote-option .vfill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(244,180,0,.18); z-index: 0; }
.vote-option .vcontent { position: relative; z-index: 1; display: flex; justify-content: space-between; width: 100%; align-items: center; }
.vote-option.voted { border-color: var(--gold); }

.chat-window { max-height: 260px; overflow-y: auto; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { background: var(--navy-700); border-radius: 12px; padding: 8px 11px; font-size: 12.5px; max-width: 85%; }
.chat-msg.me { align-self: flex-end; background: var(--gold); color: #211500; }
.chat-msg .who { font-size: 10.5px; color: var(--text-dim); margin-bottom: 2px; font-weight: 700; }
.chat-msg.me .who { color: #4a3400; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input {
  flex: 1; background: var(--navy-700); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 10px 14px; color: var(--text-main); font-size: 13px;
}

.reaction-row { display: flex; gap: 8px; flex-wrap: wrap; }
.reaction-btn {
  background: var(--navy-700); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 7px 12px; font-size: 15px; display: flex; gap: 5px; align-items: center;
}
.reaction-btn .cnt { font-size: 11px; color: var(--text-dim); }

.social-post { border-bottom: 1px solid var(--card-border); padding: 10px 0; font-size: 12.5px; }
.social-post:last-child { border-bottom: none; }
.social-post .handle { font-weight: 700; color: var(--gold); }
.social-post .meta { color: var(--text-dim); font-size: 11px; margin-top: 4px; display: flex; gap: 10px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-tile {
  aspect-ratio: 1; border-radius: 10px; background: var(--navy-700);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-dim);
  border: 1px dashed var(--card-border); overflow: hidden;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

.tip-form { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 10px 0; }
.tip-form input {
  width: 52px; text-align: center; font-size: 22px; font-weight: 800;
  background: var(--navy-700); border: 1px solid var(--card-border); border-radius: 10px;
  color: var(--text-main); padding: 8px 0;
}

/* ---------- Stadium plan ---------- */
.stadium-plan { position: relative; width: 100%; aspect-ratio: 1.4/1; background: #0a2a15; border-radius: 16px; border: 2px solid rgba(255,255,255,.15); margin-bottom: 12px; }
.stadium-plan .pitch-mini { position: absolute; left: 30%; top: 30%; width: 40%; height: 40%; background: #1c5b33; border: 2px solid rgba(255,255,255,.3); border-radius: 6px; }
.block-tile {
  position: absolute; transform: translate(-50%,-50%);
  background: var(--navy-700); border: 1px solid var(--gold); border-radius: 8px;
  font-size: 10px; font-weight: 700; color: var(--text-main); text-align: center;
  display: flex; align-items: center; justify-content: center; padding: 2px;
}

/* ---------- Shop ---------- */
.product-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 10px; position: relative; }
.jersey-thumb { width: 100%; aspect-ratio: 1; border-radius: 10px; margin-bottom: 8px; }
.product-card .tag { position: absolute; top: 8px; left: 8px; background: var(--red-live); color: #fff; font-size: 9.5px; font-weight: 800; padding: 3px 6px; border-radius: 6px; }
.product-card .pname { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.product-card .price { font-size: 13px; font-weight: 800; color: var(--gold); }
.product-card .price .old { color: var(--text-dim); text-decoration: line-through; font-weight: 500; margin-right: 5px; font-size: 11px; }

.cart-fab {
  position: fixed; right: calc(50% - var(--app-max)/2 + 16px); bottom: calc(var(--nav-h) + 16px + var(--safe-bottom));
  background: var(--gold); color: #211500; border-radius: 999px; padding: 12px 16px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,.4); z-index: 45; display: none; font-size: 13px;
}
@media (max-width: 480px) { .cart-fab { right: 16px; } }
.cart-fab.show { display: block; }

/* ---------- News ---------- */
.news-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--card-border); }
.news-item:last-child { border-bottom: none; }
.news-thumb { width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; background: linear-gradient(150deg, var(--navy-600), var(--navy-800)); }
.news-cat { font-size: 10px; text-transform: uppercase; color: var(--gold); font-weight: 700; letter-spacing: .4px; }
.news-title { font-size: 13px; font-weight: 700; margin: 2px 0; line-height: 1.3; }
.news-date { font-size: 10.5px; color: var(--text-dim); }

/* ---------- Leaderboard ---------- */
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--card-border); font-size: 13px; }
.lb-row:last-child { border-bottom: none; }
.lb-row .rank { width: 22px; font-weight: 800; color: var(--text-dim); }
.lb-row.me { background: rgba(244,180,0,.1); border-radius: 10px; padding: 8px; }
.lb-row .lname { flex: 1; font-weight: 600; }
.lb-row .lpts { font-weight: 800; color: var(--gold); }

.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge-item { text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--card-bg); border: 1px solid var(--card-border); font-size: 10.5px; }
.badge-item.locked { opacity: .35; filter: grayscale(1); }
.badge-item .bicon { font-size: 26px; display: block; margin-bottom: 4px; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--card-border); font-size: 13px; }
.toggle-row:last-child { border-bottom: none; }
.switch { width: 42px; height: 24px; border-radius: 999px; background: var(--navy-700); border: 1px solid var(--card-border); position: relative; flex-shrink: 0; }
.switch::after { content:""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--text-dim); top: 2px; left: 2px; transition: all .2s; }
.switch.on { background: var(--gold); }
.switch.on::after { background: #211500; left: 21px; }

/* ---------- QR / Ticket ---------- */
.ticket-card { background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); border: 1px solid var(--gold); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.ticket-card .tt-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.qr-canvas { background: #fff; border-radius: 8px; padding: 6px; display: block; margin: 8px auto; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100;
  display: none; align-items: flex-end; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-sheet {
  background: var(--navy-800); border: 1px solid var(--card-border);
  border-radius: 20px 20px 0 0; width: 100%; max-width: var(--app-max);
  padding: 18px; max-height: 85vh; overflow-y: auto;
  animation: sheetUp .25s ease;
}
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0;} to { transform: translateY(0); opacity: 1;} }
.modal-close { float: right; background: var(--navy-700); border: 1px solid var(--card-border); color: var(--text-main); border-radius: 10px; width: 30px; height: 30px; }

/* ---------- More menu ---------- */
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.more-item {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px;
  padding: 16px 10px; text-align: center; font-size: 12.5px; font-weight: 600;
}
.more-item .mi { font-size: 26px; display: block; margin-bottom: 8px; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-max);
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(6, 14, 34, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--card-border);
  display: flex;
  z-index: 50;
}
.nav-btn {
  flex: 1; background: none; border: none; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10px; position: relative;
}
.nav-btn .ni { font-size: 19px; }
.nav-btn.active { color: var(--gold); }
.nav-btn .live-dot { position: absolute; top: 4px; right: 24%; width: 7px; height: 7px; border-radius: 50%; background: var(--red-live); display: none; }
.nav-btn .live-dot.show { display: block; animation: pulse 1.4s infinite; }

/* ---------- Toasts ---------- */
.toast-wrap {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: calc(var(--app-max) - 32px);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--navy-700); border: 1px solid var(--gold); border-radius: 12px;
  padding: 10px 14px; font-size: 12.5px; box-shadow: 0 6px 20px rgba(0,0,0,.4);
  animation: toastIn .3s ease, toastOut .3s ease 3.2s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px);} to { opacity: 1; transform: translateY(0);} }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px);} }

.goal-flash {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: radial-gradient(circle, rgba(244,180,0,.35), transparent 70%);
  opacity: 0; animation: flashIn .9s ease;
}
@keyframes flashIn { 0% { opacity: 0;} 15% { opacity: 1;} 100% { opacity: 0;} }
.goal-flash .emoji-burst { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); font-size: 50px; animation: burst .9s ease; }
@keyframes burst { 0% { transform: translate(-50%,-50%) scale(.4); opacity: 0;} 30% { transform: translate(-50%,-50%) scale(1.3); opacity: 1;} 100% { transform: translate(-50%,-50%) scale(1); opacity: 0;} }

.empty-hint { color: var(--text-dim); font-size: 12.5px; text-align: center; padding: 14px 0; }

/* Scrollbars minimal */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }

.subtle { color: var(--text-dim); font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.small-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
