/* ============================================================
   MATCHIQ DESIGN SYSTEM · Stadium Control 3
   One system for every screen. Oswald for scoreboard display,
   Inter for reading, JetBrains Mono for prices and numbers.
   The floodlit confidence ring is the signature element.
   ============================================================ */
:root {
  --bg: #050b14;
  --bg-2: #08111f;
  --surface: rgba(14, 23, 40, 0.82);
  --surface-solid: #0e1728;
  --surface-raised: #13203a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f3f7fc;
  --soft: #cbd6e3;
  --muted: #93a4b8;
  --dim: #66788e;
  --pick: #10b981;
  --pick-deep: #059669;
  --pick-glow: rgba(16, 185, 129, 0.28);
  --cyan: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.25);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --rose: #fb7185;
  --violet: #c4b5fd;
  --other: rgba(148, 163, 184, 0.3);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  --display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --nav-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px; font: 15px/1.55 var(--body); color: var(--ink); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 520px at 50% -40px, rgba(56, 189, 248, 0.13), transparent 72%),
    radial-gradient(900px 600px at 90% 12%, rgba(16, 185, 129, 0.08), transparent 60%),
    radial-gradient(750px 500px at 10% 28%, rgba(99, 102, 241, 0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pick); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- App frame ---------- */
.app-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 11, 20, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.app-header-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pick-deep), var(--cyan)); box-shadow: 0 0 18px var(--pick-glow); }
.brand-panda-img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 16px rgba(16, 185, 129, 0.35); display: block; }
.brand-mark svg { width: 20px; height: 20px; fill: #04140d; }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.02em; }
.brand-word b { color: var(--pick); font-weight: 600; }
.header-tools { margin-left: auto; display: flex; align-items: center; }
.odds-toggle { display: inline-flex; align-items: center; gap: 3px; padding: 3px 5px; min-height: 36px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(14, 23, 40, 0.75); backdrop-filter: blur(10px); font-size: 13px; font-weight: 500; color: var(--muted); box-shadow: 0 2px 10px rgba(0,0,0,0.25); cursor: pointer; }
.odds-toggle:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(56, 189, 248, 0.25); }
.odds-segment { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; color: var(--muted); transition: all .2s cubic-bezier(0.16, 1, 0.3, 1); user-select: none; }
.odds-toggle[data-active-mode="fractional"] .odds-segment[data-seg="fractional"],
.odds-toggle[data-active-mode="decimal"] .odds-segment[data-seg="decimal"] { background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(16, 185, 129, 0.24)); color: #fff; border: 1px solid rgba(56, 189, 248, 0.4); box-shadow: 0 0 10px rgba(56, 189, 248, 0.2); }
.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(52, 211, 153, 0.12); }
.nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav .count { font-size: 11px; font-family: var(--mono); color: var(--pick); }
main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; }
.view.enter { animation: viewIn .28s ease-out both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.site-foot { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; color: var(--dim); font-size: 12.5px; }

/* ---------- Type ---------- */
.page-title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; color: #fff; }
.page-sub { color: var(--soft); max-width: 64ch; margin-top: 6px; font-size: 15px; line-height: 1.55; }
.section { margin-top: 32px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.section-title { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: #fff; }
.section-note { color: var(--dim); font-size: 13px; max-width: 64ch; }
.muted { color: var(--muted); } .dim { color: var(--dim); }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1), border-color .18s, box-shadow .18s; }
.card:hover { border-color: rgba(255, 255, 255, 0.14); }
.card-tight { padding: 14px; }
.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; }
.table .badge { white-space: normal; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.notice { border: 1px solid rgba(251, 191, 36, 0.32); background: var(--amber-soft); color: #fde68a; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; }
.notice.error { border-color: rgba(251, 113, 133, 0.4); background: rgba(251, 113, 133, 0.1); color: #fecdd3; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Chips & badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 600; color: var(--soft); background: rgba(255, 255, 255, 0.03); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.chip.ok .dot { background: var(--pick); } .chip.warn { color: #fde68a; border-color: rgba(251, 191, 36, 0.35); } .chip.warn .dot { background: var(--amber); }
.chip.bad { color: #fecdd3; border-color: rgba(251, 113, 133, 0.4); } .chip.bad .dot { background: var(--rose); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.validated { color: #a7f3d0; background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.4); }
.badge.provisional { color: #fde68a; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.38); }
.badge.market { color: var(--violet); background: rgba(196, 181, 253, 0.12); border: 1px solid rgba(196, 181, 253, 0.4); }
.badge.unavailable, .badge.frozen, .badge.shadow { color: var(--muted); background: rgba(148, 163, 184, 0.1); border: 1px solid var(--line-strong); }
.badge.won { color: #a7f3d0; background: rgba(52, 211, 153, 0.14); } .badge.lost { color: #fecdd3; background: rgba(251, 113, 133, 0.14); } .badge.pending { color: var(--soft); background: rgba(148, 163, 184, 0.14); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); color: #fff; text-decoration: none; }
.btn:hover { border-color: var(--pick); }
.btn.primary { background: var(--pick); border-color: transparent; color: #03140d; }
.btn.small { min-height: 36px; padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.danger { color: #fecdd3; border-color: rgba(251, 113, 133, 0.4); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn { color: var(--pick); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Crests & teams ---------- */
.crest { flex: none; display: block; filter: drop-shadow(0 0 8px var(--crest-glow, rgba(56, 189, 248, 0.25))) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); transition: transform .22s cubic-bezier(0.34, 1.56, 0.64, 1), filter .22s ease; }
.crest:hover { transform: scale(1.12); filter: drop-shadow(0 0 14px var(--crest-glow, rgba(56, 189, 248, 0.45))) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7)); }
.btn, .legpick, .win-chip, .odds-toggle { transition: transform .12s cubic-bezier(0.34, 1.56, 0.64, 1), background .15s, border-color .15s, box-shadow .15s; }
.btn:active, .legpick:active, .win-chip:active, .odds-toggle:active { transform: scale(0.95); }
.teams-line { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.teams-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Probability graphics ---------- */
.ring { display: block; }
.ring .track { fill: none; stroke: rgba(255, 255, 255, 0.09); }
.ring .arc { fill: none; stroke: var(--pick); stroke-linecap: round; }
.ring .glow { fill: none; stroke: var(--pick); opacity: 0.16; stroke-linecap: round; }
.ring.provisional .glow { stroke: var(--amber); }
.ring.big .arc, .ring.big .glow { animation: ringFill 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.ring.big .arc { stroke: url(#ringGrad); }
.ring.big.provisional .arc { stroke: var(--amber); }
.ring.provisional .arc { stroke: var(--amber); } .ring.limited .arc { stroke: var(--dim); }
.ring .val { font-family: var(--display); font-weight: 600; fill: #fff; }
.ring .lbl { font-size: 10px; fill: var(--muted); font-family: var(--body); }
@keyframes ringFill { from { stroke-dashoffset: var(--circ); } }
.way { margin-top: 14px; }
.way-track { display: flex; height: 12px; gap: 2px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.04); }
.way-seg { background: var(--other); }
.way-seg.draw { background: rgba(203, 213, 225, 0.28); }
.way-seg.picked { background: linear-gradient(90deg, var(--pick-deep), var(--pick)); }
.way.provisional .way-seg.picked { background: linear-gradient(90deg, #b45309, var(--amber)); }
.way-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.way-labels b { color: #fff; }
.way.compact .way-track { height: 6px; }
.meter { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.meter i { width: 16px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.meter i.on { background: var(--pick); } .meter.weak i.on { background: var(--amber); } .meter.none i.on { background: var(--dim); }
.bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--pick); border-radius: inherit; }
.bar.provisional > span { background: var(--amber); }

/* ---------- Hero signal ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 28px 30px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; isolation: isolate;
  background: linear-gradient(100deg, rgba(5, 12, 22, 0.97) 0%, rgba(5, 12, 22, 0.86) 50%, rgba(5, 18, 14, 0.6) 100%), url('assets/stadium_hero.jpg') center 30% / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--pick-deep), var(--pick), transparent); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.hero-meta strong { color: #fff; font-weight: 600; }
.hero-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 4px; }
.hero-team { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3.4vw, 36px); line-height: 1.1; text-transform: uppercase; color: #fff; }
.hero-v { font-family: var(--display); color: var(--dim); font-size: 18px; }
.hero-pick { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.8vw, 30px); color: var(--pick); margin-top: 8px; }
.hero.provisional .hero-pick { color: var(--amber); }
.hero-plain { color: var(--soft); max-width: 60ch; margin-top: 2px; }
.hero-side { display: grid; justify-items: center; gap: 10px; }
.odds-pair { display: grid; gap: 2px; text-align: center; font-size: 12.5px; color: var(--muted); }
.odds-pair strong { font-family: var(--mono); color: #fff; font-size: 14px; }
.evidence-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }

/* ---------- Signal cards ---------- */
.sig-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; min-height: 44px; }
.sig-card:hover { border-color: rgba(52, 211, 153, 0.45); }
.sig-card .fixture { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sig-card .pick { font-family: var(--display); font-weight: 500; font-size: 18px; color: #fff; margin: 2px 0; }
.sig-card .meta { font-size: 12.5px; color: var(--dim); }

/* ---------- Fixture rows ---------- */
.day-label { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--soft); margin: 18px 0 8px; }
.fx { display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(150px, 230px) 20px; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(14, 23, 40, 0.7); text-decoration: none; color: inherit; margin-bottom: 8px; min-height: 60px; }
.fx:hover { border-color: var(--line-strong); background: rgba(19, 32, 58, 0.9); }
.fx-time { font-family: var(--mono); font-size: 14px; color: #fff; }
.fx-time small { display: block; font-family: var(--body); font-size: 11px; color: var(--dim); }
.fx-teams { display: grid; gap: 5px; font-weight: 600; min-width: 0; }
.fx-lean { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.fx-lean b { color: #fff; font-weight: 600; }
.fx-chev { color: var(--dim); font-size: 20px; }
.score { font-family: var(--display); font-size: 18px; color: #fff; }

/* ---------- Match analysis ---------- */
.match-head { display: grid; gap: 18px; padding: 24px; border-radius: 22px; border: 1px solid var(--line-strong); overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 12, 22, 0.78), rgba(5, 12, 22, 0.97)), url('assets/stadium_hero.jpg') center 35% / cover no-repeat; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; }
.match-team { display: grid; justify-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 3.6vw, 34px); text-transform: uppercase; line-height: 1.05; }
.match-team small { font-family: var(--body); font-weight: 600; font-size: 11px; color: var(--amber); text-transform: none; letter-spacing: 0; }
.match-centre { font-family: var(--display); color: var(--muted); font-size: 16px; }
.match-centre .score { font-size: clamp(30px, 6vw, 48px); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.facts b { color: var(--soft); font-weight: 600; }
.market { display: grid; gap: 12px; align-content: start; }
.market-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.market-name { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.market-name svg { width: 18px; height: 18px; stroke: var(--soft); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.market-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.market-pick { font-family: var(--display); font-weight: 500; font-size: 22px; color: #fff; line-height: 1.15; }
.market-odds { font-size: 12.5px; color: var(--muted); }
.market-odds b { font-family: var(--mono); color: #fff; }
.explain { display: grid; gap: 6px; padding-left: 18px; font-size: 13.5px; color: var(--soft); }
.compare { border-top: 1px solid var(--line); padding-top: 8px; }
.compare > summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.compare > summary::-webkit-details-marker { display: none; }
.compare > summary::before { content: '+'; width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); }
.compare[open] > summary::before { content: '–'; }
.alt { width: 100%; border-collapse: collapse; font-size: 13px; }
.alt td, .alt th { padding: 8px 4px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.alt th { font-size: 11.5px; color: var(--dim); font-weight: 600; }
.alt td.num { font-family: var(--mono); text-align: right; white-space: nowrap; color: var(--soft); }
.alt td.act { text-align: right; width: 1%; white-space: nowrap; }
.ref-note { font-size: 12.5px; color: var(--dim); border-left: 2px solid var(--line-strong); padding-left: 10px; }
.form-strip { display: inline-flex; gap: 3px; vertical-align: middle; }
.form-strip i { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; color: #04110b; }
.form-strip i.W { background: var(--pick); } .form-strip i.D { background: #cbd5e1; } .form-strip i.L { background: var(--rose); }

/* ---------- Results & performance ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.tile .k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tile .v { font-family: var(--display); font-size: 30px; color: #fff; line-height: 1.2; margin-top: 4px; }
.tile .s { font-size: 12px; color: var(--dim); }
.calib { display: grid; gap: 10px; }
.calib-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 90px; gap: 12px; align-items: center; font-size: 13px; }
.calib-bars { position: relative; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.calib-bars .pred { position: absolute; inset: 0 auto 0 0; background: rgba(103, 232, 249, 0.25); }
.calib-bars .obs { position: absolute; top: 6px; bottom: 6px; left: 0; background: var(--pick); border-radius: 3px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; color: var(--dim); font-weight: 600; padding: 8px 6px; }
.table td { padding: 10px 6px; border-top: 1px solid var(--line); }
.table td.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.log-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.log-row:hover { background: rgba(255, 255, 255, 0.02); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { min-height: 36px; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: rgba(52, 211, 153, 0.16); color: #fff; }

/* ---------- Bet Diary ---------- */
.bet { display: grid; gap: 10px; }
.bet-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bet-sel { font-family: var(--display); font-size: 19px; color: #fff; line-height: 1.2; }
.bet-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 14px; font-size: 13px; }
.bet-facts span { display: block; font-size: 11.5px; color: var(--dim); font-weight: 600; }
.bet-facts b { font-family: var(--mono); font-weight: 600; color: #fff; }
.leg { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); font-size: 13.5px; }
.pos { color: var(--pick); } .neg { color: var(--rose); }

/* ---------- Forms & modal ---------- */
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ctl { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-solid); color: #fff; font-size: 15px; }
textarea.ctl { min-height: 96px; resize: vertical; }
.ctl:focus { outline: 2px solid var(--pick); border-color: transparent; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.preview-box { padding: 12px 14px; border-radius: 12px; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.25); color: #a7f3d0; font-size: 13.5px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { min-height: 32px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; color: var(--soft); }
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(2, 6, 12, 0.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); }
.modal-head, .modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.modal-head { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface-solid); z-index: 1; }
.modal-foot { border-top: 1px solid var(--line); justify-content: flex-end; position: sticky; bottom: 0; background: var(--surface-solid); }
.modal-body { padding: 18px 20px; display: grid; gap: 14px; }
.modal h2 { font-family: var(--display); font-weight: 500; font-size: 22px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--muted); }
.stars { display: flex; flex-wrap: wrap; gap: 6px; }
.stars button, .opt { min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 13.5px; color: var(--soft); }
.stars button[aria-pressed="true"], .opt[aria-pressed="true"] { background: rgba(52, 211, 153, 0.16); border-color: var(--pick); color: #fff; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1100; display: grid; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--surface-raised); border: 1px solid var(--pick); box-shadow: var(--shadow); font-size: 14px; animation: viewIn .2s ease-out; }
.toast.error { border-color: var(--rose); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  main { padding: 18px 16px 40px; }
  .hero { grid-template-columns: 1fr; padding: 20px 18px; gap: 16px; border-radius: 18px;
    background: linear-gradient(180deg, rgba(5, 12, 22, 0.78), rgba(5, 12, 22, 0.97) 55%), url('assets/stadium_hero.jpg') center top / cover no-repeat; }
  .hero-side { order: -1; grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 14px; }
  .hero-side .ring { width: 120px; height: 120px; }
  .odds-pair { text-align: left; }
  .fx { grid-template-columns: 48px minmax(0, 1fr) 16px; }
  .fx-lean { grid-column: 2; grid-row: 2; }
  .fx-chev { grid-column: 3; grid-row: 1; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .match-head { padding: 18px 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .calib-row { grid-template-columns: 58px minmax(0, 1fr) 72px; }
  .tile { padding: 12px; } .tile .v { font-size: 24px; }
}
@media (max-width: 860px) {
  body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  /* backdrop-filter would make the header the containing block of the fixed tab bar */
  .app-header { backdrop-filter: none; background: rgba(5, 11, 20, 0.97); }
  .app-header-inner { height: 56px; }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    z-index: 60;
    gap: 0;
    padding: 2px 0 env(safe-area-inset-bottom);
    background: rgba(8, 14, 26, 0.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-strong);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: stretch;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .nav a {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    flex-direction: column;
    gap: 2px;
    padding: 6px 1px 5px;
    min-height: 52px;
    font-size: 10px;
    line-height: 1.1;
    border-radius: 0;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }
  .nav a[aria-current="page"] { background: none; color: #fff; }
  .nav a[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 16%; right: 16%; height: 3px; border-radius: 0 0 3px 3px; background: var(--pick); }
  .nav svg { width: 19px; height: 19px; flex-shrink: 0; }
  .nav .count { position: absolute; top: 4px; right: calc(50% - 18px); font-size: 9px; }
  .toasts { left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); }
}

/* ---------- Most Likely / Best Value / No Bet (Mission 065) ---------- */
.rec-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rec-card { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(52, 211, 153, 0.35); background: linear-gradient(160deg, rgba(5, 150, 105, 0.14), rgba(14, 23, 40, 0.92) 55%); }
.rec-card.value { border-color: rgba(52, 211, 153, 0.6); }
.rec-card.nobet { border-color: var(--line-strong); background: var(--surface); }
.hero .rec-card { background: rgba(5, 12, 22, 0.55); margin-top: 12px; }
.rec-kicker { font-size: 12.5px; font-weight: 700; color: var(--pick); }
.rec-card.nobet .rec-kicker { color: var(--muted); }
.rec-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.rec-market { font-size: 13px; color: var(--muted); font-weight: 600; }
.rec-pick { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.15; color: #fff; }
.rec-card.big .rec-pick { font-size: clamp(24px, 3vw, 32px); }
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px 14px; font-size: 13px; }
.value-grid span { display: block; font-size: 11.5px; color: var(--dim); font-weight: 600; }
.value-grid b { font-family: var(--mono); color: #fff; }
.rec-row { display: grid; grid-template-columns: 78px minmax(0, 1.25fr) minmax(0, 1.2fr) minmax(0, 1fr) 22px; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-decoration: none; color: inherit; margin-bottom: 10px; min-height: 72px; box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.5); transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1), border-color .18s, box-shadow .18s; }
.rec-row:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.35); background: rgba(19, 30, 52, 0.9); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.65), 0 0 20px -6px var(--cyan-glow); }
.rec-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rec-row-pick { font-family: var(--display); font-weight: 700; font-size: 16.5px; color: #fff; letter-spacing: -0.015em; }
.rec-row-side { display: grid; gap: 6px; justify-items: start; font-size: 12.5px; }
.match-dist-bar { display: flex; height: 5px; border-radius: 9999px; overflow: hidden; background: rgba(255, 255, 255, 0.08); margin-top: 7px; gap: 2px; }
.bar-seg.home { background: var(--cyan); }
.bar-seg.draw { background: rgba(148, 163, 184, 0.45); }
.bar-seg.away { background: var(--amber); }
@media (max-width: 760px) {
  .rec-pair { grid-template-columns: 1fr; }
  .rec-row { grid-template-columns: 48px minmax(0, 1fr) 16px; }
  .rec-row-main, .rec-row-side { grid-column: 2; }
  .rec-row .fx-chev { grid-column: 3; grid-row: 1; }
}

/* ---------- Top six (Mission 065) ---------- */
.top-card { display: grid; gap: 10px; align-content: start; }
.top-card.unsupported { border-style: dashed; }
.top-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top-rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-raised); font-weight: 700; font-size: 13px; color: #fff; }
.badge.unsupported { color: #fecaca; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); }
.badge.awaiting { color: var(--muted); background: rgba(148, 163, 184, 0.08); border: 1px dashed var(--line-strong); }
.rec-card.awaiting { border-color: var(--line-strong); border-style: dashed; background: var(--surface); }
.rec-card.awaiting .rec-kicker { color: var(--muted); }
.top-card .field .lbl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Results scorecards: cards, not wide tables (Mission 065) ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.stat-card { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-raised); }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stat-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.stat-bar { position: relative; height: 10px; border-radius: 6px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.stat-bar .pred, .stat-bar .obs { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.stat-bar .pred { background: rgba(148, 163, 184, 0.45); }
.stat-bar .obs { background: var(--pick); height: 50%; top: 25%; }
.stat-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--dim); margin-top: -4px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.stat-grid dt { font-size: 12px; color: var(--dim); font-weight: 600; }
.stat-grid dd { margin: 2px 0 0; font-family: var(--mono); font-size: 16px; color: #fff; }
.stat-grid dd.pos { color: var(--pick); }
.stat-grid dd.neg { color: #fca5a5; }
@media (max-width: 760px) { .stat-cards { grid-template-columns: 1fr; } }

/* Competition filter */
.comp-bar { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; margin: 12px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.comp-bar::-webkit-scrollbar { display: none; }
.comp-bar button { flex: 0 0 auto; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.comp-bar button[aria-pressed="true"] { background: rgba(52, 211, 153, 0.16); color: #fff; border-color: rgba(52, 211, 153, 0.5); }
.lg-tag { display: block; margin-top: 2px; font-size: 10.5px; letter-spacing: 0.06em; color: var(--dim); }

/* ---------- Bet Builder (home hero) ---------- */
.builder { position: relative; padding: 30px 32px 26px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; isolation: isolate;
  background: radial-gradient(800px 360px at 90% -10%, rgba(16, 185, 129, 0.18), transparent 65%), radial-gradient(600px 300px at 10% 110%, rgba(56, 189, 248, 0.12), transparent 60%), linear-gradient(160deg, #0c182c, #070e1b);
  box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.75), 0 0 30px -15px rgba(16, 185, 129, 0.2); }
.builder::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--pick-deep), var(--pick), transparent); }
.builder-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pick); margin-bottom: 6px; }
.builder .page-sub { max-width: 62ch; margin-top: 8px; color: var(--soft); }
.builder-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 22px; margin-top: 20px; }
.builder-form .full { grid-column: 1 / -1; }
.legpicks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.legpick { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--soft); font-family: var(--mono); font-weight: 600; }
.legpick[aria-pressed="true"] { background: var(--pick); border-color: transparent; color: #03140d; }
.legs-input { width: 76px; text-align: center; }
.win-input-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.win-input { max-width: 170px; font-size: 16px; }
.win-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.win-chip { min-height: 44px; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--soft); font-family: var(--mono); font-size: 14px; font-weight: 600; transition: all .15s ease; }
.win-chip:hover { border-color: var(--pick); color: #fff; background: rgba(52, 211, 153, 0.1); }
.win-chip[aria-pressed="true"] { background: var(--pick); border-color: transparent; color: #03140d; }
.builder-range { width: 100%; height: 44px; accent-color: var(--pick); cursor: pointer; }
.search-bar { position: relative; margin: 18px 0 10px; max-width: 480px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 2; pointer-events: none; }
.search-input { width: 100%; padding-left: 42px; min-height: 44px; border-radius: 12px; font-size: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); }
.search-input:focus { border-color: var(--pick); }
.builder-out { margin-top: 18px; display: grid; gap: 14px; }
.builder-need { color: var(--soft); }
.builder-need b { color: #fff; }
.slip { padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line); background: rgba(9, 16, 30, 0.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative; }
.slip.primary { border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2), 0 20px 44px -20px var(--pick-glow); background: linear-gradient(165deg, rgba(16, 185, 129, 0.08), rgba(9, 16, 30, 0.88) 45%); }
.slip-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: flex-end; }
.slip-kicker { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.slip-odds { font-size: 30px; font-weight: 600; color: var(--pick); line-height: 1.15; }
.slip-odds small { font-size: 14px; color: var(--muted); font-weight: 500; }
.slip-chance { text-align: right; }
.slip-chance b { display: block; font-size: 28px; color: #fff; line-height: 1.1; }
.slip-chance small { color: var(--muted); font-size: 12px; }
.slip-legs { list-style: none; margin: 12px 0 4px; display: grid; }
.slip-leg { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.slip-teams { display: flex; align-items: center; gap: 10px; min-width: 0; }
.slip-match { display: grid; min-width: 0; font-weight: 600; color: #fff; }
.slip-match small, .slip-pick small, .slip-price small { color: var(--muted); font-size: 12px; font-weight: 500; }
.slip-pick { display: grid; }
.slip-pick b { color: #fff; }
.slip-price { display: grid; justify-items: end; font-family: var(--mono); font-weight: 600; color: #fff; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line-strong); min-width: 76px; }
.slip-price.live { border-color: rgba(52, 211, 153, 0.5); color: #a7f3d0; }
.slip-price.est { border-style: dashed; border-color: rgba(251, 191, 36, 0.5); color: #fde68a; }
.slip-sum { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); }
.slip-sum b { color: #fff; margin-left: 4px; }
.slip-warn, .slip-note { margin-top: 10px; font-size: 13.5px; padding: 9px 12px; border-radius: 10px; color: #fde68a; background: var(--amber-soft); border: 1px solid rgba(251, 191, 36, 0.3); }
.slip-note { color: var(--soft); background: rgba(148, 163, 184, 0.08); border-color: var(--line); }
.builder-out > .slip-warn { margin-top: 0; }
.slip .btn-row { margin-top: 12px; }
.builder-fine, .builder-foot { font-size: 12.5px; color: var(--muted); max-width: 72ch; }
.builder-foot { margin-top: 14px; }
.builder-foot a { color: var(--soft); }
@media (max-width: 760px) {
  .builder { padding: 20px 16px 18px; }
  .builder-form { grid-template-columns: 1fr; }
  .slip-leg { grid-template-columns: minmax(0, 1fr) auto; }
  .slip-pick { grid-column: 1; }
  .slip-price { grid-column: 2; grid-row: 1 / span 2; }
  .slip-odds { font-size: 26px; }
}

/* Floating currency symbol and celebration */
.currency-input-wrap { position: relative; display: inline-flex; align-items: center; }
.currency-symbol { position: absolute; left: 14px; font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--pick); pointer-events: none; z-index: 2; }
.currency-input-wrap .win-input { padding-left: 32px !important; max-width: 170px; font-size: 16px; }

.celebration-wrap { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.celebration-ring { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--pick); box-shadow: 0 0 30px var(--pick), inset 0 0 20px var(--pick); animation: ringBurst 0.75s cubic-bezier(0.1, 0.9, 0.2, 1) forwards; }
@keyframes ringBurst { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(5.5); opacity: 0; } }
.celebration-sparkle { position: absolute; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; animation: sparkleFly 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes sparkleFly { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; } }

/* Beginner Explainer Bento Cards */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.bento-card { background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; position: relative; overflow: hidden; transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), border-color .2s, box-shadow .2s; }
.bento-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.3); box-shadow: 0 12px 28px -10px rgba(56, 189, 248, 0.15); }
.bento-icon { font-size: 24px; line-height: 1; }
.bento-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.bento-title { font-family: var(--display); font-weight: 600; font-size: 18px; color: #fff; margin-top: 2px; }
.bento-desc { font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.bento-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; font-size: 11px; font-weight: 600; background: rgba(56, 189, 248, 0.1); color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.25); }
.bento-badge.emerald { background: rgba(16, 185, 129, 0.1); color: #34d399; border-color: rgba(16, 185, 129, 0.25); }
.bento-badge.amber { background: var(--amber-soft); color: #fde68a; border-color: rgba(245, 158, 11, 0.3); }

/* Commercial & Partnership styles */
.partner-cta { background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(16, 185, 129, 0.15)); border-color: rgba(56, 189, 248, 0.35); color: #fff; }
.partner-cta:hover { border-color: var(--cyan); background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(16, 185, 129, 0.25)); box-shadow: 0 0 12px rgba(56, 189, 248, 0.2); }
.commercial-card { border-color: rgba(56, 189, 248, 0.3); background: radial-gradient(800px 300px at 100% 0%, rgba(56, 189, 248, 0.08), transparent 60%), var(--surface); }
.commercial-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 9999px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(56, 189, 248, 0.12); color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.3); }

/* Regulatory Compliance Footer */
.compliance-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.compliance-seal { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--amber); color: var(--amber); font-weight: 800; font-size: 11px; }
.compliance-link { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.compliance-link:hover { color: #fff; }

/* Phase 1 Social: Panda Mood Badge */
.builder-top-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.panda-mood-card { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(14, 23, 40, 0.7); backdrop-filter: blur(10px); }
.panda-mood-card.emerald { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.1); }
.panda-mood-card.cyan { border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.1); }
.panda-mood-card.amber { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); }
.panda-mood-card.rose { border-color: rgba(251, 113, 133, 0.4); background: rgba(251, 113, 133, 0.12); }
.panda-mood-icon { width: 34px; height: 34px; flex: none; }
.panda-mood-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.panda-mood-card.emerald .panda-mood-kicker { color: #34d399; }
.panda-mood-card.cyan .panda-mood-kicker { color: var(--cyan); }
.panda-mood-card.amber .panda-mood-kicker { color: #fbbf24; }
.panda-mood-card.rose .panda-mood-kicker { color: #fb7185; }
.panda-mood-desc { font-size: 12.5px; color: var(--soft); max-width: 28ch; }

/* Phase 1 Social: P&L Performance Chart & Market Breakdown */
.diary-chart-card { border-color: rgba(255, 255, 255, 0.1); background: linear-gradient(160deg, rgba(14, 23, 42, 0.9), rgba(6, 11, 19, 0.95)); }
.chart-legend { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #fff; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-dot.pos { background: #10b981; box-shadow: 0 0 8px #10b981; }
.legend-dot.neg { background: #fb7185; box-shadow: 0 0 8px #fb7185; }
.svg-chart-wrap { width: 100%; height: 160px; margin-top: 10px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.pnl-svg-chart { width: 100%; height: 100%; display: block; }
.mkt-stat-row { display: grid; grid-template-columns: minmax(110px, 1.4fr) minmax(80px, 1fr) 75px 85px; gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mkt-name { font-weight: 600; color: #fff; }
.mkt-bar-wrap { height: 6px; border-radius: 9999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mkt-bar-fill { height: 100%; border-radius: 9999px; }
.mkt-bar-fill.pos { background: var(--pick); }
.mkt-bar-fill.neg { background: var(--rose); }
.mkt-win-rate { font-family: var(--mono); color: var(--soft); text-align: right; }
.mkt-profit { font-family: var(--mono); font-weight: 600; text-align: right; }

/* Phase 2: Buddy Leagues */
.fair-play-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(56, 189, 248, 0.3); background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(16, 185, 129, 0.08)); color: #fff; margin-bottom: 22px; }
.fair-play-banner b { color: var(--cyan); }
.user-profile-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(14px); margin-bottom: 24px; }
.profile-pill { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #fff; }
.profile-avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(16, 185, 129, 0.25)); border: 1px solid rgba(56, 189, 248, 0.4); }
.league-selector-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; margin-bottom: 12px; scrollbar-width: none; }
.league-selector-bar::-webkit-scrollbar { display: none; }
.league-tab-btn { flex: 0 0 auto; min-height: 42px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s ease; }
.league-tab-btn:hover { border-color: var(--cyan); color: #fff; }
.league-tab-btn.active { background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(16, 185, 129, 0.2)); border-color: var(--cyan); color: #fff; box-shadow: 0 0 14px rgba(56, 189, 248, 0.2); }
.more-nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 20px; }
@media (min-width: 640px) { .more-nav-grid { grid-template-columns: repeat(4, 1fr); } }
.more-nav-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s ease; text-align: center; }
.more-nav-btn:hover { border-color: var(--cyan); color: #fff; }
.more-nav-btn.active { background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(16, 185, 129, 0.2)); border-color: var(--cyan); color: #fff; box-shadow: 0 0 14px rgba(56, 189, 248, 0.2); }


.leaderboard-card { padding: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(14px); }
.lb-table { width: 100%; border-collapse: collapse; text-align: left; }
.lb-table th { padding: 14px 16px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--line-strong); background: rgba(6, 11, 20, 0.6); }
.lb-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.lb-row:hover { background: rgba(255, 255, 255, 0.02); }
.lb-row.user-row { background: rgba(56, 189, 248, 0.06); font-weight: 600; }
.lb-row.user-row td { color: #fff; border-top: 1px solid rgba(56, 189, 248, 0.2); border-bottom: 1px solid rgba(56, 189, 248, 0.2); }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 700; font-family: var(--mono); font-size: 13px; }
.rank-badge.gold { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.rank-badge.silver { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }
.rank-badge.bronze { background: rgba(180, 83, 9, 0.2); color: #f97316; border: 1px solid rgba(180, 83, 9, 0.4); }
.rank-badge.standard { color: var(--muted); }
.form-chips { display: flex; gap: 4px; }
.form-chip { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; font-size: 10px; font-weight: 800; font-family: var(--mono); }
.form-chip.w { background: #10b981; color: #04140d; }
.form-chip.l { background: #fb7185; color: #350810; }
.form-chip.v { background: #64748b; color: #fff; }
.win-pct-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 9999px; font-family: var(--mono); font-weight: 700; font-size: 13px; background: rgba(56, 189, 248, 0.12); color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.roi-pct-pill { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.roi-pct-pill.pos { color: #34d399; }
.roi-pct-pill.neg { color: #fb7185; }

.league-modal-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.league-modal-tabs .opt { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--muted); }
.league-modal-tabs .opt.active { background: rgba(56, 189, 248, 0.15); color: #fff; border: 1px solid rgba(56, 189, 248, 0.3); }
.full-width { width: 100%; justify-content: center; }
.uppercase { text-transform: uppercase; }

/* Header Actions: Install & Google Sign In */
/* Slim Header & Tools */
.header-tools { display: flex; align-items: center; gap: 6px; }
.pwa-install-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.22));
  border: 1px solid var(--emerald);
  color: #fff; font-weight: 700; font-size: 13px;
  padding: 6px 12px; min-height: 32px; border-radius: 9999px; transition: all .15s ease;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  cursor: pointer;
}
.pwa-install-btn:hover {
  background: var(--emerald);
  color: #000;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
}
@media (max-width: 600px) {
  .app-header-inner { padding: 0 8px; gap: 4px; }
  .brand-word { font-size: 17px; }
  .header-tools { gap: 4px; flex-shrink: 0; margin-left: auto; }
  .odds-toggle { padding: 2px 4px; min-height: 28px; font-size: 11px; }
  .odds-segment { padding: 3px 6px; font-size: 11px; }
  .pwa-install-btn { padding: 5px 8px; min-height: 28px; min-width: 28px; border-radius: 9999px; }
  .pwa-install-btn .install-label { display: none !important; }
  .sync-refresh-btn { padding: 5px 8px; min-height: 28px; min-width: 28px; border-radius: 9999px; }
  .sync-refresh-btn .sync-label { display: none !important; }
  .brand-panda-img { width: 28px; height: 28px; }
}

/* Sub-Header Banner (Below Bet Buddy logo banner) */
.sub-header-bar {
  background: rgba(6, 11, 20, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.sub-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 6px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 38px;
}
.sub-header-left { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.badge-dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--pick); box-shadow: 0 0 6px var(--pick); }
.sub-header-tagline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-header-auth-wrap { display: flex; align-items: center; }

.google-sub-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9; font-weight: 500; font-size: 12px;
  padding: 3px 10px; border-radius: 9999px; transition: all .15s ease;
}
.google-sub-btn:hover {
  background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: #fff;
}
.header-user-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px 2px 4px; border-radius: 9999px; color: #fff; font-weight: 600; font-size: 11.5px;
}
.header-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #059669, #38bdf8);
  display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #04140d;
}

@media (max-width: 600px) {
  .sub-header-inner { padding: 5px 14px; }
  .sub-header-tagline { display: none; }
}

/* Google Sign-in Modal & Profile styles */
.auth-modal { max-width: 440px; }
.auth-modal-brand { display: flex; align-items: center; gap: 10px; }
.auth-modal-brand h2 { margin: 0; font-size: 1.25rem; font-family: var(--display); }
.auth-sub { font-size: 13.5px; color: var(--soft); line-height: 1.5; margin-bottom: 16px; }
.auth-flow-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.google-primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #ffffff; color: #1f2937; font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 12px; margin-top: 14px; transition: all .15s ease;
}
.google-primary-btn:hover { background: #f3f4f6; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.signed-in-profile {
  display: flex; align-items: center; gap: 16px; padding: 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 14px;
}
.profile-avatar-large {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #38bdf8);
  display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #04140d;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}
.profile-details { display: flex; flex-direction: column; gap: 3px; }
.profile-details strong { font-size: 16px; color: #fff; }
.badge-status-green {
  display: inline-block; width: fit-content; padding: 2px 8px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; background: rgba(16, 185, 129, 0.15); color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35); margin-top: 4px;
}

/* Install Modal styling */
.install-modal-box { max-width: 480px; }
.install-head-badge { display: flex; align-items: center; gap: 12px; }
.install-logo-thumb { border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.install-guide-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.install-step-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); border-radius: 14px;
}
.install-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-raised); border: 1px solid var(--cyan);
  color: var(--cyan); font-family: var(--mono); font-weight: 800; font-size: 13px;
  display: grid; place-items: center; flex-shrink: 0;
}
.install-step-body strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.install-step-body span { font-size: 13px; color: var(--soft); }
.install-badge-preview {
  display: flex; align-items: center; gap: 14px; padding: 14px; margin-top: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(56, 189, 248, 0.1));
  border: 1px dashed rgba(56, 189, 248, 0.35); border-radius: 14px;
}

/* Bookmaker Selector Modal */
.bookie-modal-card { max-width: 480px; }
.bookie-summary-box {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 12px;
}
.bookie-list-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bookie-choice-btn {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: 12px; text-decoration: none; color: inherit; transition: all .15s ease;
}
.bookie-choice-btn:hover {
  background: rgba(255, 255, 255, 0.07); border-color: var(--cyan);
  transform: translateX(3px);
}
.bookie-tag {
  width: 42px; height: 32px; border-radius: 6px; display: grid; place-items: center;
  font-weight: 800; font-size: 11px; font-family: var(--display); text-transform: uppercase;
}
.bookie-tag.b365 { background: #00733c; color: #ffdf1b; }
.bookie-tag.skybet { background: #0b1f3a; color: #e11438; border: 1px solid #e11438; }
.bookie-tag.pp { background: #004b2c; color: #fff; }
.bookie-tag.bf { background: #ffb80c; color: #000; }
.bookie-tag.wh { background: #0a1e41; color: #ecd000; border: 1px solid #ecd000; }
.bookie-choice-btn strong { display: block; font-size: 14px; color: #fff; }
.bookie-go-arrow { margin-left: auto; font-size: 18px; color: var(--dim); }

/* Commercial Admin & Affiliation Tracking Dashboard */
.admin-metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.admin-metric-card {
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); backdrop-filter: blur(14px);
}
.admin-metric-val { font-family: var(--mono); font-size: 28px; font-weight: 700; color: #fff; margin: 4px 0 2px; }
.admin-metric-val.emerald { color: #34d399; }
.admin-metric-val.cyan { color: var(--cyan); }
.admin-metric-val.amber { color: #fbbf24; }
.admin-metric-sub { font-size: 12px; color: var(--muted); }
.admin-table-card { margin-top: 18px; padding: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 12px 16px; font-size: 11.5px; text-transform: uppercase; color: var(--muted); background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--line-strong); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.btn-place-bet-inline {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.35); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 8px; margin-left: 6px; cursor: pointer;
}
.btn-place-bet-inline:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(16, 185, 129, 0.28));
  border-color: var(--cyan);
}

/* Copyright and Bug Report Bar */
.copyright-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--soft); font-weight: 500;
}
.report-bug-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fecdd3; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px;
  transition: all .15s ease;
}
.report-bug-btn:hover {
  background: rgba(251, 113, 133, 0.2); border-color: var(--rose); color: #fff;
}

/* Auto-Updating Admin Dashboard Chart styling */
.admin-chart-box {
  background: linear-gradient(160deg, rgba(14, 23, 40, 0.95), rgba(6, 11, 19, 0.98));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 18px;
}
.admin-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.admin-pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 10px #10b981; display: inline-block; margin-right: 6px;
}

/* Sub-header admin link */
.sub-admin-link {
  color: var(--cyan); text-decoration: none; font-size: 11.5px; font-weight: 600;
  padding: 1px 6px; border-radius: 4px; background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.sub-admin-link:hover { background: rgba(56, 189, 248, 0.2); color: #fff; }

/* Ladbrokes & Coral Bookmaker Badges */
.bookie-tag.ladbrokes { background: #d31e1e; color: #fff; }
.bookie-tag.coral { background: #004c97; color: #ffeb3b; }

/* Compliance text button */
.compliance-link-btn {
  color: var(--soft); text-decoration: underline; text-underline-offset: 3px;
  background: none; border: none; padding: 0; font: inherit; font-size: 12px; cursor: pointer;
}
.compliance-link-btn:hover { color: #fff; }

/* Auth Modal Benefits Grid */
.auth-benefits-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px;
}
.auth-benefit-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.benefit-icon { font-size: 20px; line-height: 1.2; flex-shrink: 0; }
.auth-benefit-item strong { display: block; font-size: 13.5px; color: #fff; font-weight: 600; margin-bottom: 2px; }
.auth-benefit-item span { font-size: 12px; color: var(--soft); line-height: 1.4; display: block; }

/* Universal Share Sheet Modal */
.share-modal-box { max-width: 480px; }
.share-preview-card {
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 12px; margin-bottom: 16px; max-height: 120px; overflow-y: auto;
}
.share-text-box {
  font-family: var(--mono); font-size: 12px; color: var(--soft);
  white-space: pre-wrap; word-break: break-word; line-height: 1.5; margin: 0;
}
.share-channels-grid { display: flex; flex-direction: column; gap: 8px; }
.share-channel-btn {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  text-decoration: none; color: #fff; font-size: 14px; transition: all .15s ease;
}
.share-channel-btn:hover {
  background: rgba(255, 255, 255, 0.08); border-color: var(--cyan); transform: translateX(3px);
}
.share-channel-btn.whatsapp svg { color: #25d366; }
.share-channel-btn.whatsapp:hover { border-color: #25d366; }
.share-channel-btn.sms svg { color: #38bdf8; }
.share-channel-btn.email svg { color: #fbbf24; }
.share-channel-btn.copy svg { color: #a7f3d0; }
.share-channel-btn strong { display: block; font-size: 14px; color: #fff; }
.share-channel-btn span { font-size: 12px; color: var(--muted); }
.share-arrow { margin-left: auto; font-size: 18px; color: var(--dim); }

/* GDPR Privacy Notice Modal */
.gdpr-modal-box { max-width: 620px; max-height: 85vh; overflow-y: auto; }
.gdpr-body-content { font-size: 13.5px; line-height: 1.6; color: var(--soft); }
.gdpr-section { margin-bottom: 16px; }
.gdpr-section h3 { font-size: 15px; color: #fff; font-weight: 700; margin-bottom: 4px; }
.gdpr-list { margin: 8px 0 8px 20px; display: grid; gap: 6px; }
.gdpr-list b { color: #fff; }

/* ------------------------------------------------------------ Multi-Sport Filter & Event Cards */
.sport-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: visible;
  padding: 4px 0 8px 0;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.sport-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.sport-pill:hover {
  background: var(--surface-light);
  color: #fff;
  border-color: var(--border-hover);
}
.sport-pill.active {
  background: rgba(6, 182, 212, 0.14);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}
.sport-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.sport-event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sport-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.sport-event-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.sport-tournament-sub {
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}
.sport-odds-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sport-selection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 8px;
}
.sport-sel-info {
  display: flex;
  flex-direction: column;
}
.sport-sel-name {
  font-weight: 600;
  font-size: 13.5px;
  color: #fff;
}
.sport-sel-bookie {
  font-size: 11px;
  color: var(--dim);
}
.sport-sel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sport-odds-btn {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: monospace;
  font-weight: 700;
  font-size: 13.5px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.sport-odds-btn:hover {
  background: var(--cyan);
  color: #000;
}
.btn-add-cross-acca {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--emerald);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-add-cross-acca:hover {
  background: var(--emerald);
  color: #000;
}

/* ------------------------------------------------------------ 6-Tier Geo Ladders & Silverware */
.geo-ladder-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.geo-tier-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.geo-tier-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-light);
}
.geo-tier-btn.active {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}
.geo-tier-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.geo-tier-scope {
  font-size: 11px;
  color: var(--dim);
}

.frequency-toggle-bar {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.freq-btn {
  background: transparent;
  border: none;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.freq-btn:hover {
  color: #fff;
}
.freq-btn.active {
  background: var(--surface-light);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ------------------------------------------------------------ Trophy Cabinet & Showcase */
.trophy-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
  cursor: pointer;
}
.trophy-summary-pill:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.trophy-cabinet-box {
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
}
.trophy-haul-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}
.trophy-haul-val {
  font-size: 24px;
  font-weight: 800;
  font-family: monospace;
}
.trophy-haul-val.gold { color: #f59e0b; }
.trophy-haul-val.silver { color: #e2e8f0; }
.trophy-haul-val.bronze { color: #d97706; }
.trophy-haul-lbl {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.trophy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.trophy-card.tier-worldwide {
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.08) 0%, var(--surface) 100%);
}
.trophy-card.tier-europe {
  border-color: rgba(234, 179, 8, 0.4);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.08) 0%, var(--surface) 100%);
}
.trophy-card.tier-uk {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, var(--surface) 100%);
}
.trophy-card.tier-country {
  border-color: rgba(2, 132, 199, 0.4);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.08) 0%, var(--surface) 100%);
}
.trophy-card.tier-region {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--surface) 100%);
}
.trophy-card.tier-town {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--surface) 100%);
}

.trophy-icon-large {
  font-size: 38px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.trophy-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.trophy-period {
  font-size: 11px;
  color: var(--dim);
}
.trophy-rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}
.trophy-rank-tag.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}
.trophy-rank-tag.silver {
  background: rgba(226, 232, 240, 0.2);
  color: #e2e8f0;
  border: 1px solid #cbd5e1;
}
.trophy-rank-tag.bronze {
  background: rgba(217, 119, 6, 0.2);
  color: #d97706;
  border: 1px solid #d97706;
}

/* Emoji picker in league modal */
.emoji-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.emoji-opt-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.emoji-opt-btn:hover, .emoji-opt-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan);
  transform: scale(1.1);
}


/* ============================================================
   Bet Buddy Welcome Hero & 5-Card Bento Portal Layout
   ============================================================ */
.welcome-hero-wrap {
  margin: 10px 0 28px 0;
}

.welcome-hero-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.08);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.welcome-hero-banner::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-mascot-col {
  flex-shrink: 0;
}

.welcome-panda-avatar {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: #0b1526;
  border: 2px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.welcome-panda-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.welcome-hero-banner:hover .welcome-panda-avatar img {
  transform: scale(1.08) rotate(3deg);
}

.mascot-online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pick, #10b981);
  border: 2px solid #060d19;
  box-shadow: 0 0 8px #10b981;
}

.welcome-text-col {
  flex: 1;
}

.welcome-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.welcome-badge-tag .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.welcome-hero-title {
  margin: 0 0 8px 0;
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--font-display, inherit);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.welcome-hero-narrative {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted, #94a3b8);
  max-width: 820px;
}

/* Bento Portal Cards */
.portal-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card 1: Top Large Hero Card */
.portal-card-hero {
  background: linear-gradient(145deg, #0f1c30 0%, #070e1b 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: 18px;
  padding: 24px 28px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.5), 0 0 16px rgba(16, 185, 129, 0.12);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.portal-card-hero:hover {
  transform: translateY(-2px);
  border-color: #10b981;
  box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.6), 0 0 28px rgba(16, 185, 129, 0.22);
}

.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.portal-pill.highlight {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.portal-odds-badge {
  font-size: 0.78rem;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
}

.portal-hero-body {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.portal-icon-large {
  font-size: 2.8rem;
  line-height: 1;
  flex-shrink: 0;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.portal-hero-heading {
  margin: 0 0 6px 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.portal-hero-desc {
  margin: 0;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.portal-card-action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.portal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.portal-sub-action-hint {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Bento Subgrid: 4 cards */
.portal-subgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.portal-subcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  background: #0a1322;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 16px;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 190px;
}

.portal-subcard:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.portal-subcard.bento-leagues:hover {
  border-color: #f59e0b;
  box-shadow: 0 10px 24px -6px rgba(245, 158, 11, 0.25);
}

.portal-subcard.bento-fixtures:hover {
  border-color: #38bdf8;
  box-shadow: 0 10px 24px -6px rgba(56, 189, 248, 0.25);
}

.portal-subcard.bento-results:hover {
  border-color: #a855f7;
  box-shadow: 0 10px 24px -6px rgba(168, 85, 247, 0.25);
}

.portal-subcard.bento-diary:hover {
  border-color: #10b981;
  box-shadow: 0 10px 24px -6px rgba(16, 185, 129, 0.25);
}

.portal-subcard-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.trophy-glow {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.calendar-glow {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.chart-glow {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.diary-glow {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.portal-subcard-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.portal-subcard-title {
  margin: 0 0 6px 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.portal-subcard-desc {
  margin: 0 0 12px 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

.portal-subcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  margin-top: auto;
}

.portal-link-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.portal-arrow {
  font-size: 1.1rem;
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease;
}

.portal-subcard:hover .portal-arrow {
  transform: translateX(3px);
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .portal-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .welcome-hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px 18px;
  }
  .welcome-badge-tag {
    margin: 0 auto 10px auto;
  }
  .portal-hero-body {
    flex-direction: column;
    text-align: center;
  }
  .portal-card-action {
    justify-content: center;
  }
}

@media (max-width: 580px) {
  .portal-subgrid {
    grid-template-columns: 1fr;
  }
  .welcome-hero-title {
    font-size: 1.35rem;
  }
  .portal-hero-heading {
    font-size: 1.2rem;
  }
  .welcome-panda-avatar {
    width: 64px;
    height: 64px;
  }
}


/* Multi-Sport Toggle Header & Indicator */
.sport-filter-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.sport-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.sport-filter-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
}
.sport-filter-hint {
  font-size: 0.76rem;
  color: #94a3b8;
}
.sport-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
  transition: all 0.2s ease;
}
.sport-toggle-dot.on {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.sport-pill.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}


/* Compact No-Scroll League Table */
.lb-table-wrap {
  width: 100%;
  overflow-x: hidden;
}
.compact-lb {
  table-layout: fixed;
  width: 100%;
}
.compact-lb th, .compact-lb td {
  padding: 10px 6px;
  white-space: nowrap;
}
.lb-col-rank { width: 36px; text-align: center; }
.lb-col-player { width: auto; overflow: hidden; text-overflow: ellipsis; }
.lb-col-pts { width: 64px; text-align: right; }
.lb-col-win { width: 58px; text-align: right; }
.lb-col-roi { width: 58px; text-align: right; }
.lb-col-bets { width: 42px; text-align: right; }

.lb-player-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
  text-align: left;
  max-width: 100%;
}
.lb-handle {
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.lb-you-tag {
  font-size: 9px;
  padding: 1px 4px;
}
.lb-form-indicator {
  font-size: 11px;
  opacity: 0.75;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.lb-player-btn:hover .lb-form-indicator {
  opacity: 1;
  transform: scale(1.2);
}

.lb-pts-val {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13.5px;
}
.compact-lb .win-pct-pill {
  padding: 2px 5px;
  font-size: 11px;
}
.compact-lb .roi-pct-pill {
  font-size: 11px;
}

.lb-member-form-drawer {
  margin-top: 4px;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  display: flex;
}
.lb-drawer-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lb-drawer-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 480px) {
  .compact-lb th, .compact-lb td {
    padding: 8px 3px;
    font-size: 11.5px;
  }
  .lb-col-rank { width: 30px; }
  .lb-col-pts { width: 50px; }
  .lb-col-win { width: 48px; }
  .lb-col-roi { width: 48px; }
  .lb-col-bets { width: 34px; }
  .lb-handle { max-width: 75px; font-size: 11.5px; }
}


/* Header Live Sync Button */
.sync-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  min-height: 32px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sync-refresh-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--cyan);
  color: #fff;
}
.sync-refresh-btn:active svg {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* ------------------------------------------------------------ Commercial & Sponsorship */
.commercial-pitch-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: rgba(14, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: transform .18s ease, border-color .18s ease;
}
.commercial-pitch-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}


/* Header & Subtle Share App Buttons */
.header-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0; font-weight: 600; font-size: 13px;
  padding: 5px 11px; min-height: 32px; border-radius: 9999px;
  transition: all .15s ease; cursor: pointer;
}
.header-share-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
@media (max-width: 600px) {
  .header-share-btn { padding: 5px 8px; min-height: 28px; min-width: 28px; }
  .header-share-btn .share-label { display: none !important; }
}
.subtle-share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--soft);
  padding: 4px 10px; border-radius: 6px; font-size: 12px;
  cursor: pointer; transition: all .15s ease;
}
.subtle-share-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
  color: #fff;
}
.share-channel-btn.facebook svg { color: #1877f2; }
.share-channel-btn.facebook:hover { border-color: #1877f2; }
.share-channel-btn.x-twitter svg { color: #f3f4f6; }
.share-channel-btn.x-twitter:hover { border-color: #f3f4f6; }


/* League Creator Controls */
.lb-col-action { width: 70px; text-align: center; }
.kick-player-btn {
  padding: 3px 8px; font-size: 11px; min-height: 24px; border-radius: 6px;
  background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5; cursor: pointer; transition: all .15s ease;
}
.kick-player-btn:hover {
  background: #ef4444; color: #fff; border-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}


/* --- Compact Above-The-Fold Home Dashboard --- */
.welcome-hero-wrap.compact-home {
  margin-bottom: 24px;
}

.welcome-hero-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.welcome-panda-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0b1526;
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.welcome-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.welcome-hero-title {
  margin: 0 0 2px 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.welcome-hero-narrative {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted, #94a3b8);
}

.portal-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-card-hero {
  background: linear-gradient(145deg, #0f1c30 0%, #070e1b 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.portal-hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.portal-icon-large {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  padding: 8px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.portal-hero-text {
  flex: 1;
}

.portal-hero-heading {
  margin: 0 0 3px 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.portal-hero-desc {
  margin: 0;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.portal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

/* 4 Compact Subcards - 2x2 grid on mobile & tablet, 4x1 on desktop */
.portal-subgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .portal-subgrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.portal-subcard {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-decoration: none;
  background: #0a1322;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
  min-height: 74px;
}

.portal-subcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.portal-subcard-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.portal-subcard-tag {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.portal-subcard-title {
  margin: 0 0 2px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.portal-subcard-desc {
  margin: 0;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
}

@media (max-width: 580px) {
  .welcome-hero-banner {
    flex-direction: row !important;
    text-align: left !important;
    padding: 10px 12px !important;
    gap: 10px !important;
  }
  .welcome-panda-avatar {
    width: 38px !important;
    height: 38px !important;
  }
  .welcome-hero-title {
    font-size: 0.98rem !important;
  }
  .welcome-hero-narrative {
    font-size: 0.74rem !important;
  }
  .portal-hero-body {
    flex-direction: row !important;
    text-align: left !important;
    gap: 10px !important;
  }
  .portal-icon-large {
    font-size: 1.5rem !important;
    padding: 6px !important;
  }
  .portal-hero-heading {
    font-size: 0.98rem !important;
  }
  .portal-hero-desc {
    font-size: 0.72rem !important;
  }
  .portal-cta-btn {
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
  }
  .portal-subgrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .portal-subcard {
    padding: 8px 10px !important;
  }
  .portal-subcard-title {
    font-size: 0.82rem !important;
  }
  .portal-subcard-desc {
    font-size: 0.68rem !important;
  }
}

/* --- ACCA VOLATILITY & RISK GAUGE STYLES (UKGC Compliant) --- */
.acca-volatility-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm, 10px);
  background: var(--surface, #1e293b);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  margin: 10px 0 16px;
  transition: all 0.25s ease;
}
.acca-volatility-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.acca-volatility-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.acca-volatility-desc {
  font-size: 0.82rem;
  color: var(--dim, #94a3b8);
  line-height: 1.3;
}
.acca-volatility-prob {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
}
.acca-volatility-prob .acca-volatility-kicker { color: #10b981; }
.acca-volatility-balanced {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.06);
}
.acca-volatility-balanced .acca-volatility-kicker { color: #38bdf8; }
.acca-volatility-high {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}
.acca-volatility-high .acca-volatility-kicker { color: #fbbf24; }
.acca-volatility-longshot {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}
.acca-volatility-longshot .acca-volatility-kicker { color: #f43f5e; }
.acca-volatility-calibrating {
  border-color: var(--border, rgba(255,255,255,0.1));
}
.acca-volatility-calibrating .acca-volatility-kicker { color: var(--dim, #94a3b8); }
.brand-logo-img, .welcome-brand-avatar img {
  border-radius: 8px;
  object-fit: contain;
}


/* ---------- Builder Scope / Timing Selector (Today vs Next 7 Days) ---------- */
.builder-scope-bar {
  margin-top: 20px;
  margin-bottom: 8px;
  background: rgba(11, 20, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.scope-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.scope-icon { font-size: 16px; color: var(--pick); }
.scope-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; }
.scope-hint { font-size: 12px; color: var(--muted); margin-left: auto; }
.scope-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.scope-pill {
  appearance: none;
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  outline: none;
}
.scope-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.scope-pill.active {
  border-color: var(--pick) !important;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.18), rgba(6, 78, 59, 0.32)) !important;
  box-shadow: 0 0 24px -4px rgba(16, 185, 129, 0.4), inset 0 0 0 1px rgba(16, 185, 129, 0.5) !important;
}
.scope-pill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scope-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}
.scope-badge.today {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.scope-badge.all {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.scope-count {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
}
.scope-pill-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.scope-pill-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.today-slip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald);
  color: #10b981;
  margin-bottom: 10px;
}
@media (max-width: 680px) {
  .scope-pills { grid-template-columns: 1fr; gap: 8px; }
  .scope-hint { display: none; }
}


/* ---------- Phase 3: 1-Click Bookmaker Launcher Bar on Slip Cards ---------- */
.slip-bookie-bar {
  margin: 14px 0 10px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.slip-bookie-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.slip-bookie-bolt { font-size: 13px; color: var(--emerald); }
.slip-bookie-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; }
.slip-bookie-hint { font-size: 11px; color: var(--muted); margin-left: auto; }
.slip-bookie-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.bookie-pill {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.bookie-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.bookie-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.bookie-pill.b365:hover { background: rgba(16, 185, 129, 0.18); border-color: #10b981; color: #34d399; }
.bookie-pill.sky:hover { background: rgba(56, 189, 248, 0.18); border-color: #38bdf8; color: #38bdf8; }
.bookie-pill.lv:hover { background: rgba(249, 115, 22, 0.18); border-color: #f97316; color: #fb923c; }
.bookie-pill.bf:hover { background: rgba(251, 191, 36, 0.18); border-color: #fbbf24; color: #fde68a; }

@media (max-width: 600px) {
  .slip-bookie-buttons { grid-template-columns: 1fr 1fr; gap: 6px; }
  .slip-bookie-hint { display: none; }
}


/* ------------------------------------------------------------ Bet Butler Styles */
.butler-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  min-height: 32px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.22), rgba(16, 185, 129, 0.16));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all .15s ease;
}
.butler-pill-btn:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(16, 185, 129, 0.25));
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}
.butler-pill-btn .butler-icon { font-size: 14px; }
.butler-pill-btn b { color: var(--cyan); font-weight: 700; }
.butler-pill-btn .butler-caret { font-size: 10px; color: var(--muted); margin-left: 2px; }

.butler-intro-box {
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 14px;
}
.butler-bookie-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0 16px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}
.butler-choice-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
}
.butler-choice-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--cyan);
  transform: translateX(3px);
}
.butler-choice-card.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(16, 185, 129, 0.12));
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
}
.butler-choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.butler-active-check {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--emerald);
  display: none;
}
.butler-choice-card.active .butler-active-check {
  display: inline-block;
}
.bookie-tag.coral { background: #0284c7; color: #fff; }
.bookie-pill.coral:hover { background: rgba(2, 132, 199, 0.22); border-color: #0284c7; color: #38bdf8; }

.butler-perks-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--soft);
}
.butler-perk-item strong { color: #fff; }

.btn-place-bet-inline.butler-btn {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(16, 185, 129, 0.2));
  border-color: rgba(56, 189, 248, 0.45);
}
.btn-place-bet-inline.butler-btn:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(16, 185, 129, 0.3));
  border-color: var(--cyan);
}
