/* fbscores — Fenerbahçe-branded mobile-first design system.
   One stylesheet for every page. Light + dark aware. Large tap targets. */

:root {
  --navy: #0a1f44;
  --navy-2: #12295a;
  --navy-3: #1c3a78;
  --yellow: #ffd200;
  --yellow-2: #ffde3d;

  --stripe-navy: rgba(10, 31, 68, .12);
  --stripe-yellow: rgba(255, 210, 0, .15);

  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --text: #14181f;
  --muted: #5b6472;
  --border: #e2e7f0;

  --success: #1f9d55;
  --danger: #d64545;
  --warning: #b7791f;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(10, 31, 68, .08);
  --shadow-lg: 0 8px 28px rgba(10, 31, 68, .16);
  --nav-h: 66px;
  --header-h: 56px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12192f;
    --surface: #1d2748;
    --surface-2: #263258;
    --text: #f1f4fa;
    --muted: #aab4c7;
    --border: #38446b;
    --stripe-navy: rgba(120, 150, 225, .12);
    --stripe-yellow: rgba(255, 210, 0, .10);
    --shadow: 0 2px 10px rgba(0, 0, 0, .35);
    --shadow-lg: 0 8px 28px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="light"] {
  --bg: #eef1f6; --surface: #fff; --surface-2: #f6f8fc; --text: #14181f;
  --muted: #5b6472; --border: #e2e7f0;
  --stripe-navy: rgba(10, 31, 68, .12); --stripe-yellow: rgba(255, 210, 0, .15);
}
:root[data-theme="dark"] {
  --bg: #12192f; --surface: #1d2748; --surface-2: #263258; --text: #f1f4fa;
  --muted: #aab4c7; --border: #38446b;
  --stripe-navy: rgba(120, 150, 225, .12); --stripe-yellow: rgba(255, 210, 0, .10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
/* Faint Fenerbahçe kit stripes (navy + yellow vertical bands) behind the content on
   every page — ~7 columns across. Fixed so it stays put while scrolling;
   pointer-events:none so it never blocks taps; z-index -1 keeps it above the page
   background but behind all content. Kept low-alpha so text stays readable. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(90deg,
    var(--stripe-navy) 0, var(--stripe-navy) 11.11vw,
    var(--stripe-yellow) 11.11vw, var(--stripe-yellow) 22.22vw);
}
a { color: var(--navy-3); text-decoration: none; }

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 40;
  /* Height = content height PLUS the iPhone safe-area inset, so the status bar/notch sits
     in the top padding and the content keeps its full height (not crushed into it). */
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--yellow);
}
.app-header .crest { height: 30px; width: 30px; object-fit: contain; flex: 0 0 auto; }
/* Keep the brand and season badge on a single line so they match the pill heights
   (wrapping to 2 lines was what made them taller than Profilim/Admin). */
.app-header .brand { font-weight: 800; letter-spacing: .3px; font-size: 17px;
  white-space: nowrap; flex: 0 0 auto; }
.app-header .brand b { color: var(--yellow); }
.app-header .season {
  font-size: 12px; font-weight: 700; white-space: nowrap; flex: 0 0 auto; line-height: 1.1;
  background: rgba(255,255,255,.12); color: var(--yellow-2);
  padding: 5px 10px; border-radius: 999px;
}
/* Right-side header controls (unread comments + profile + account switch), grouped right. */
.app-header .hactions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
/* Unread-comments badge — draws the eye to new banter, links to the newest one. */
.app-header .hcomments { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
  background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 9px 4px 8px;
  text-decoration: none; color: #fff; font-weight: 800; animation: hcPulse 2s ease-in-out 4; }
.app-header .hcomments:active { transform: scale(.94); }
.app-header .hcomments .hc-ico { font-size: 15px; line-height: 1; }
.app-header .hcomments .hc-n { background: var(--yellow); color: var(--navy); border-radius: 999px;
  min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px; font-size: 11px; font-weight: 900; }
@keyframes hcPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,210,0,0); }
  50% { box-shadow: 0 0 0 4px rgba(255,210,0,.35); } }
.app-header .hswitch-form { margin: 0; display: inline-flex; }
/* One-tap account switch (owner accounts) — a gold button so it clearly reads as tappable. */
.app-header .hswitch { display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800;
  color: var(--navy); background: var(--yellow); border: none; white-space: nowrap;
  transition: transform .08s ease, filter .15s ease; }
.app-header .hswitch:active { transform: scale(.93); filter: brightness(.94); }
.app-header .hswitch svg { flex: 0 0 auto; }
/* Tap-your-avatar → your own profile (players). A pill so it clearly reads as a
   button, with a brief attention pulse on load to teach the tap. */
.app-header .me { display: inline-flex; align-items: center; gap: 6px;
  flex: 0 0 auto; padding: 3px 8px 3px 3px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,210,0,.45);
  transition: transform .08s ease, background .15s ease;
  animation: mePulse 2.2s ease-in-out 3; }
.app-header .me:active { transform: scale(.94); background: rgba(255,255,255,.22); }
.app-header .me img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,210,0,.85); background: var(--surface-2); display: block; flex: 0 0 auto; }
.app-header .me-lbl { font-size: 12px; font-weight: 800; color: var(--yellow-2); white-space: nowrap; }
.app-header .me-chev { color: rgba(255,255,255,.65); flex: 0 0 auto; }
@keyframes mePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,210,0,0); }
  50% { box-shadow: 0 0 0 5px rgba(255,210,0,.35); }
}
/* Keep the header uncramped on phones — collapse the "Profilim" text (avatar+chevron
   remain) so the gold account-switch button always has room. */
/* Free header space as it gets tight: drop the "Profilim" text (avatar+chevron stay),
   then the account-switch text (icon stays) on the narrowest screens. */
@media (max-width: 480px) { .app-header .me-lbl { display: none; } }
@media (max-width: 380px) { .app-header .hswitch-lbl { display: none; } }

/* ---------- Layout ---------- */
.app-main { max-width: 680px; margin: 0 auto; padding: 16px 14px 24px; }
.page-title { font-size: 20px; font-weight: 800; margin: 4px 2px 14px; }
.section-title { display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 800; color: var(--text);
  text-transform: uppercase; letter-spacing: .6px; margin: 22px 2px 10px; }
/* Fenerbahçe gold tab before every section heading. */
.section-title::before { content: ""; width: 6px; height: 15px; border-radius: 3px; flex: 0 0 auto;
  background: linear-gradient(180deg, var(--yellow), #ffb300); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 14px;
}
.card.tight { padding: 12px; }

/* ---------- Toast / flash ---------- */
.toasts { position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px);
  z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; padding: 0 12px; }
.toast {
  pointer-events: auto; max-width: 640px; width: 100%;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-left: 5px solid var(--navy-3);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 12px 14px; font-weight: 600;
  animation: toastIn .25s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 18px; width: 100%;
  font-size: 17px; font-weight: 800; font-family: var(--font);
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--yellow); color: var(--navy);
  transition: transform .06s ease, filter .15s ease;
}
.btn:active { transform: scale(.985); }
.btn:hover { filter: brightness(.96); }
.btn.secondary { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy-3); border: 1.5px solid var(--border); }
:root[data-theme="dark"] .btn.ghost { color: var(--yellow-2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { min-height: 40px; font-size: 15px; padding: 8px 14px; width: auto; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; color: var(--muted); }
input[type=text], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 16px; font-family: var(--font); color: var(--text);
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(28,58,120,.15);
}
.field { margin-bottom: 14px; }
.pw-wrap { position: relative; }
.pw-wrap .toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); font-size: 20px;
  width: 44px; height: 44px; cursor: pointer;
}
.checkbox { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.checkbox input { width: 22px; height: 22px; }

/* ---------- Auth card (login/register) ---------- */
.auth-wrap { display: flex; align-items: center; justify-content: center; padding: 20px 14px; }
/* Auth pages (login/register): lock the body to exactly one screen (100vh fallback, then
   100dvh where supported) and hide its overflow, so the page — header included — never
   scrolls. Only the card area scrolls internally, and only if a very short screen forces it. */
body.auth-page { height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; }
body.auth-page .app-main { flex: 1 1 auto; min-height: 0; padding: 0; display: flex; overflow-y: auto; }
body.auth-page .auth-wrap { flex: 1 1 auto; min-height: 0; margin: 0; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .crest-big { display: block; margin: 0 auto 10px; height: 64px; }
.auth-card h1 { text-align: center; font-size: 22px; margin: 0 0 4px; }
.auth-card .subtitle { text-align: center; color: var(--muted); margin: 0 0 18px; font-size: 14px; }

/* ---------- Match / prediction ---------- */
.match-hero { text-align: center; }
.match-hero .teams { display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 20px; font-weight: 800; }
.match-hero .teams .vs { color: var(--muted); font-weight: 700; }
.match-hero .team { display: inline-flex; align-items: center; gap: 6px; }
.match-hero .team img { height: 26px; }
/* General cap so a crest never renders full-size outside the hero (e.g. proposals). */
.team { display: inline-flex; align-items: center; gap: 6px; }
.team img { height: 24px; width: auto; vertical-align: middle; }
/* Generic teams row (e.g. proposals). The hero has its own more specific rule; this
   keeps both names the same size and vertically centered so the crest can't push one
   name off the baseline. */
.teams { display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; font-size: 18px; font-weight: 800; line-height: 1.25; }
.teams .team, .teams .vs { font-size: inherit; }
.teams .vs { color: var(--muted); font-weight: 700; }
/* Person avatar (illustrated SVG) shown next to a player's name. */
.ava { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle;
       margin-right: 6px; background: var(--surface-2); flex: none; }
/* Player identity block: avatar stacked ABOVE the name, centered — used uniformly
   in the prediction list, match detail, standings and the stats table. */
.player { display: inline-flex; flex-direction: column; align-items: center;
          gap: 3px; text-align: center; line-height: 1.15; vertical-align: middle; }
.player .ava { width: 34px; height: 34px; margin: 0; }
.player .pname { font-weight: inherit; }

/* Haberler (news) page */
.info-row { display: flex; justify-content: space-between; gap: 12px;
            padding: 10px 4px; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: 0; }
.info-row .k { color: var(--muted); font-weight: 600; white-space: nowrap; }
.info-row .v { text-align: right; font-weight: 700; }
.info-row .v .sub { display: block; color: var(--muted); font-weight: 400;
                    font-size: 12px; margin-top: 2px; }
/* Compact quick-info: tighter rows + a single small facts line at the bottom. */
.qinfo .info-row { padding: 7px 2px; }
.qinfo .qfacts { padding: 8px 2px 2px; color: var(--muted); font-size: 12px;
                 line-height: 1.5; border-top: 1px solid var(--border); margin-top: 2px; }
.news-scroll { max-height: 62vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.news-item { border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: 0; }
.news-item > summary { list-style: none; cursor: pointer; padding: 11px 4px;
                       display: flex; flex-direction: column; gap: 3px; }
.news-item > summary::-webkit-details-marker { display: none; }
.news-item .nt { font-weight: 600; line-height: 1.35; }
.news-item .nm { color: var(--muted); font-size: 12px; }
.news-item[open] .nt { text-decoration: underline; text-decoration-color: var(--yellow);
                       text-underline-offset: 3px; }
.news-item .nd { padding: 2px 4px 12px; }
.news-item .ns { margin: 2px 0 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.match-hero .meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
.match-hero .finalscore { font-size: 30px; font-weight: 900; margin-top: 6px; letter-spacing: 1px; }

.pill-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.pill .k { color: var(--muted); font-weight: 600; }
.pill.gold { background: var(--yellow); color: var(--navy); border-color: transparent; }

/* Score stepper — fluid sizing so both steppers + divider fit even on narrow phones
   (the vw term shrinks buttons/value/gaps below the max as the screen gets smaller). */
.stepper { display: inline-flex; align-items: center; gap: clamp(4px, 2vw, 10px); }
.stepper button {
  width: clamp(36px, 11vw, 46px); height: clamp(36px, 11vw, 46px); flex: 0 0 auto;
  border-radius: 50%; border: none; cursor: pointer;
  font-size: clamp(20px, 6vw, 26px); font-weight: 800; line-height: 1;
  background: var(--navy); color: #fff;
}
.stepper button:active { transform: scale(.94); }
.stepper .val { min-width: clamp(24px, 8vw, 44px); text-align: center;
  font-size: clamp(24px, 7vw, 30px); font-weight: 900; font-variant-numeric: tabular-nums; }

.predict-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(4px, 2vw, 10px); margin: 8px 0 4px; }
.predict-grid .side { text-align: center; min-width: 0; }
.predict-grid .side .name { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.predict-grid .dash { font-size: clamp(20px, 6vw, 28px); font-weight: 900; color: var(--muted); }

/* ---------- Prediction list (others) ---------- */
.pred-list { display: flex; flex-direction: column; gap: 8px; }
.pred-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pred-row .who { font-weight: 700; flex: 1; }
.pred-row .score { font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.pred-row .score.muted { color: var(--muted); font-weight: 700; font-size: 15px; }
.pred-row.me { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.pred-row .tag { font-size: 11px; font-weight: 800; color: var(--navy); background: var(--yellow);
  padding: 2px 8px; border-radius: 999px; }

/* ---------- Tables (stats, history) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { background: var(--navy); color: #fff; font-size: 13px; text-transform: uppercase;
  letter-spacing: .4px; position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: none; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.pos { color: var(--success); font-weight: 800; }
.neg { color: var(--navy-3); font-weight: 800; }
.rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--surface-2); font-weight: 800; font-size: 13px; }
.rank.g1 { background: var(--yellow); color: var(--navy); }

.ok  { color: var(--success); font-weight: 900; }
.bad { color: var(--muted); font-weight: 900; }
.wait { color: var(--warning); font-weight: 900; }

/* ---------- Stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; box-shadow: var(--shadow); }
.tile .label { font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.tile .value { font-size: 19px; font-weight: 900; margin-top: 3px; }
.tile .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tile .emoji { font-size: 16px; }

/* ---------- Diverging net-jeton bar ---------- */
.lead-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 4px; border-bottom: 1px solid var(--border); }
.lead-row:last-child { border-bottom: none; }
.lead-row .name { font-weight: 700; }
.lead-row .name .sub { font-size: 12px; color: var(--muted); font-weight: 600; }
.lead-row .amt { font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; min-width: 62px; }
.netbar { position: relative; height: 12px; background: var(--surface-2); border-radius: 6px; margin-top: 4px; }
.netbar .center { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--border); }
.netbar .fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
/* Fenerbahçe palette: gold for positive net, navy/blue for negative (no red). */
.netbar .fill.pos { left: 50%; background: linear-gradient(90deg, var(--yellow), #ffb300); }
.netbar .fill.neg { right: 50%; background: var(--navy-3); }
:root[data-theme="light"] .netbar .fill.neg { background: var(--navy-3); }
:root[data-theme="dark"]  .netbar .fill.neg { background: #6d8fd6; }
@media (prefers-color-scheme: dark) { .netbar .fill.neg { background: #6d8fd6; } }

/* Growing jackpot banner (home) — navy card, gold amount, pulses when the pot is big. */
.jp-collapse { margin-bottom: 14px; }
.jackpot { display: block; width: 100%; text-align: center; border-radius: 16px; padding: 14px 16px;
  margin: 0; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(135deg, var(--navy), #123067 60%, var(--navy-3));
  color: #fff; position: relative; overflow: hidden;
  border: 2px solid var(--yellow); box-shadow: 0 4px 16px rgba(10,31,68,.28); }
.jackpot:active { transform: scale(.995); }
.jackpot > * { position: relative; z-index: 1; }
.jp-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--yellow-2); display: inline-flex; align-items: center; gap: 5px; }
.jp-chevron { transition: transform .35s cubic-bezier(.4,0,.2,1); }
.jp-collapse.open .jp-chevron { transform: rotate(180deg); }
.jp-amount { font-size: 32px; font-weight: 900; color: var(--yellow); line-height: 1.1; margin-top: 2px; }
.jp-unit { font-size: 16px; font-weight: 800; }
.jp-sub { font-size: 12px; opacity: .85; margin-top: 3px; }
.jackpot.big { animation: jpPulse 2.2s ease-in-out infinite; }
@keyframes jpPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(10,31,68,.28); }
  50% { box-shadow: 0 4px 26px rgba(255,210,0,.55); } }
/* Pot-breakdown panel (slides open under the banner). */
.jp-panel { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4,0,.2,1); }
.jp-layer { padding: 9px 2px; border-bottom: 1px solid var(--border); }
.jp-layer:last-child { border-bottom: 0; }
.jp-layer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.jp-layer-match { font-weight: 800; font-size: 14px; }
.jp-layer-amt { font-weight: 900; color: var(--navy-3); white-space: nowrap; }
.jp-layer-who { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }

/* Prediction & match-summary rows (TAHMİNLER, Tahminlerim, match list): negative jeton
   in Fenerbahçe blue instead of red, and a neutral (non-red) miss mark. */
.pred-row .neg { color: var(--navy-3); }
:root[data-theme="light"] .pred-row .neg { color: var(--navy-3); }
:root[data-theme="dark"]  .pred-row .neg { color: #6d8fd6; }
@media (prefers-color-scheme: dark) { .pred-row .neg { color: #6d8fd6; } }
.pred-row .bad { color: var(--muted); }

/* Notification preference toggles (Ayarlar). */
.notif-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif-row:last-child { border-bottom: 0; }
.notif-txt { min-width: 0; }
.notif-name { font-weight: 700; display: block; }
.notif-desc { font-size: 12px; color: var(--muted); display: block; margin-top: 1px; }
.switch { -webkit-appearance: none; appearance: none; width: 46px; height: 26px; border-radius: 999px;
  background: var(--border); position: relative; cursor: pointer; flex: 0 0 auto;
  transition: background .2s ease; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: left .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch:checked { background: var(--success); }
.switch:checked::after { left: 23px; }

/* Double-down (2× kupon) button. */
.dd-card { text-align: center; }
.dd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; min-height: 46px; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  font-weight: 900; font-size: 15px; border: 2px solid var(--yellow);
  background: transparent; color: var(--navy-3); transition: background .15s ease, transform .08s ease; }
.dd-btn .dd-icon { font-size: 18px; line-height: 1; }
.dd-btn.on { background: var(--yellow); color: var(--navy); box-shadow: 0 2px 12px rgba(255,210,0,.45); }
.dd-btn:active { transform: scale(.96); }
.dd-btn:disabled { opacity: .6; }
/* Small 2× badge shown next to doubled matches in lists. */
.dd-badge { display: inline-flex; align-items: center; background: var(--yellow); color: var(--navy);
  font-weight: 900; font-size: 11px; padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
/* "If you win: ~X" hint under your name in Herkesin Tahmini. */
.pred-row .who-col { display: inline-flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pred-row .win-hint { font-size: 11px; font-weight: 800; color: var(--navy-3); }
.pred-row .poke-btn { flex: 0 0 auto; border: 1px solid var(--yellow); background: rgba(255,210,0,.16);
  color: var(--navy-3); font-weight: 800; font-size: 12px; padding: 6px 11px; border-radius: 999px;
  cursor: pointer; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.pred-row .poke-btn:active { transform: scale(.94); }
.pred-row .poke-btn.done { border-color: var(--border); background: var(--surface-2);
  color: var(--muted); cursor: default; }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(10,31,68,.06);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none;
}
.bottom-nav a .ico { width: 25px; height: 25px; line-height: 1; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
/* Inline monochrome icon (Tabler, MIT) — follows the surrounding text colour & size. */
.ic { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.17em; flex: none;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.bottom-nav a.active { color: var(--navy); }
.bottom-nav a.active .ico { transform: translateY(-1px); }

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 13px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge.open { background: #d7f2df; color: #15703b; }
.badge.closed { background: #ffe6c2; color: #8a4b00; }

/* Modal popup (e.g. change-password) — a large, centered dialog over a dimmed page. */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(6, 12, 26, .55); }
.modal-overlay.open { display: flex; }
.modal { width: 100%; max-width: 460px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 24px; max-height: 88vh; overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-title { font-weight: 800; font-size: 19px; color: var(--text); }
.modal-close { background: none; border: none; font-size: 28px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal .field input { min-height: 50px; font-size: 16px; }
.modal .btn { margin-top: 4px; }

/* Weekly recap card (home) */
.recap-row { display: flex; justify-content: space-between; align-items: center;
  padding: 9px 4px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.recap-fact { display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 9px 4px; font-size: 14px; border-bottom: 1px solid var(--border); }
.recap-row:last-child, .recap-fact:last-child { border-bottom: 0; }
.recap-fact .ava { width: 22px; height: 22px; margin: 0 1px; }
