/* ==========================================================================
   Components — shared by every member-facing page
   ========================================================================== */

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.icon--fill { fill: currentColor; stroke: none; }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--stone); cursor: pointer; transition: color var(--dur-1), background var(--dur-1); }
.icon-btn:hover { color: var(--ivory); background: rgba(255,255,255,.045); }

/* ---------- Buttons ---------- */
.btn { --btn-h: var(--tap); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--btn-h); padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-sm); font: 500 var(--fs-sm)/1 var(--font-ui); letter-spacing: .04em; white-space: nowrap; cursor: pointer; isolation: isolate; overflow: hidden; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background-color var(--dur-2), border-color var(--dur-2), color var(--dur-2); }
.btn .icon { width: 18px; height: 18px; }
.btn--lg { --btn-h: 54px; padding: 0 30px; font-size: var(--fs-md); }
.btn--sm { --btn-h: 38px; padding: 0 16px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn--gold { background: var(--foil); color: var(--ink-0); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(90,60,20,.35), 0 12px 32px -14px rgba(226,194,122,.55); }
.btn--gold::after { /* gold shimmer, hover only */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%);
  transform: translateX(-120%);
}
.btn--gold:hover { color: var(--ink-0); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(90,60,20,.35), 0 18px 40px -14px rgba(226,194,122,.7); }
.btn--gold:hover::after { transform: translateX(120%); transition: transform 900ms var(--ease); }

.btn--ghost { background: transparent; color: var(--gold-1); border-color: var(--line-gold-2); }
.btn--ghost:hover { color: var(--gold-1); background: var(--gold-bg); border-color: rgba(226,194,122,.55); }
.btn--subtle { background: rgba(255,255,255,.04); color: var(--ivory); border-color: var(--line-2); }
.btn--subtle:hover { color: var(--ivory); background: rgba(255,255,255,.075); }
.btn--link { padding: 0 4px; min-height: var(--tap); background: none; color: var(--gold-2); border: 0; letter-spacing: .02em; }
.btn--link:hover { color: var(--gold-1); }
.btn--link .icon { transition: transform var(--dur-2) var(--ease); }
.btn--link:hover .icon { transform: translateX(3px); }

/* ---------- Chips & segmented filters ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: rgba(255,255,255,.02); color: var(--stone); font-size: var(--fs-sm); cursor: pointer; transition: color var(--dur-1), border-color var(--dur-1), background var(--dur-1); }
.chip:hover { color: var(--ivory); border-color: rgba(255,255,255,.2); }
.chip[aria-pressed="true"], .chip.is-active { color: var(--gold-1); border-color: rgba(226,194,122,.5); background: var(--gold-bg); box-shadow: inset 0 0 0 1px rgba(226,194,122,.12); }
.chip .icon { width: 16px; height: 16px; }
.chip__count { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--text-3); }
.chip[aria-pressed="true"] .chip__count { color: var(--gold-2); }
@media (pointer: coarse) { .chip { min-height: var(--tap); } }

/* ---------- Cards ---------- */
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 42%), var(--ink-2); box-shadow: var(--shadow-1); }
.card__body { padding: clamp(20px, 2.4vw, 28px); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.card__title { font: 600 var(--fs-lg)/1.3 var(--font-display); letter-spacing: .01em; }
/* Gold-foil border via gradient + mask (signature) */
.card--foil { border-color: transparent; }
.card--foil::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--foil-soft); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
/* Art-deco corner ornaments */
.card--deco::after { content: ""; position: absolute; inset: 10px; pointer-events: none; opacity: .75; background: linear-gradient(var(--gold-3), var(--gold-3)) left top / 16px 1px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) left top / 1px 16px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) right top / 16px 1px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) right top / 1px 16px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) left bottom / 16px 1px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) left bottom / 1px 16px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) right bottom / 16px 1px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) right bottom / 1px 16px no-repeat; }
.card--hover { transition: transform var(--dur-3) var(--ease), border-color var(--dur-3), box-shadow var(--dur-3) var(--ease); }
.card--hover:hover { transform: translateY(-3px); border-color: rgba(226,194,122,.26); box-shadow: var(--shadow-2), var(--shadow-gold); }

/* ---------- Stat tiles ---------- */
.stat { display: grid; gap: 6px; align-content: start; }
.stat__label { font: 600 var(--fs-xs)/1.3 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.stat__value { font: 600 var(--fs-stat)/1 var(--font-display); font-feature-settings: "lnum" 1, "pnum" 1; letter-spacing: -.01em; background: var(--foil-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; min-height: 1em; }
.stat__value small { font-size: .5em; margin-left: .08em; }
.stat__meta { font: 400 var(--fs-xs)/1.4 var(--font-mono); color: var(--text-3); }
.stat--sm .stat__value { font-size: var(--fs-stat-sm); }
.stat__value.pos, .stat__value.neg { background: none; -webkit-text-fill-color: currentColor; }
.stat__value.pos { color: var(--jade); }
.stat__value.neg { color: var(--garnet); }

/* ---------- Result badges (text + colour, never colour alone) ---------- */
.result { --c: var(--stone); --bg: rgba(255,255,255,.05); display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 3px; border-radius: 7px; background: var(--bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 36%, transparent); color: var(--c); font: 600 var(--fs-xs)/1 var(--font-ui); white-space: nowrap; }
.result__k { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 3px; border-radius: 5px; background: color-mix(in srgb, var(--c) 18%, transparent); font: 700 11px/1 var(--font-mono); }
.result--win { --c: var(--jade); --bg: var(--jade-bg); }
.result--half_win { --c: var(--jade); --bg: rgba(60,196,154,.06); }
.result--loss { --c: var(--garnet); --bg: var(--garnet-bg); }
.result--half_loss { --c: var(--garnet); --bg: rgba(229,86,106,.06); }
.result--push { --c: var(--amber); --bg: var(--amber-bg); }
.result--void { --c: var(--text-3); --bg: rgba(255,255,255,.04); }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--stone); font: 600 11px/1 var(--font-ui); letter-spacing: .06em; white-space: nowrap; }
.tag--gold { color: var(--gold-1); border-color: var(--line-gold-2); background: var(--gold-bg); }
.tag--demo { color: var(--amber); border-color: rgba(240,179,74,.45); background: var(--amber-bg); }
.tag--live { color: var(--sapphire); border-color: rgba(122,162,255,.4); background: var(--sapphire-bg); }
.tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(122,162,255,.18); }
.tag--corrected { color: var(--sapphire); border-color: rgba(122,162,255,.35); }
.tag--muted { color: var(--text-3); }

/* ---------- Confidence stars ---------- */
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--gold-2); }
.stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars .is-off { color: rgba(255,255,255,.14); }
.stars__na { font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- Odds pill ---------- */
.odds { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line-gold); background: var(--gold-bg); color: var(--gold-1); font: 500 var(--fs-sm)/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.odds::before { content: "@"; color: var(--gold-3); font-size: .85em; }

/* ---------- Countdown ---------- */
.countdown { display: inline-flex; align-items: center; gap: 6px; font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--stone); white-space: nowrap; }
.countdown .icon { width: 14px; height: 14px; color: var(--text-3); }
.countdown--soon { color: var(--amber); }
.countdown--soon .icon { color: var(--amber); }
.countdown--live { color: var(--sapphire); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.table th { padding: 0 14px 12px; border-bottom: 1px solid var(--line-gold); color: var(--text-3); font: 600 11px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ivory); }
.table tbody tr { transition: background var(--dur-1); }
.table tbody tr:hover { background: rgba(255,255,255,.018); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .is-num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .is-sub { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 767px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { padding: 0; border: 0; }
  .table--stack .is-num { text-align: right; }
}

/* ---------- SVG sprite holder (never display:none — gradients must stay resolvable) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Announcement bar ---------- */
.announce { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--announce-h); padding: 6px 56px; border-bottom: 1px solid var(--line-gold); background: linear-gradient(90deg, rgba(226,194,122,.04), rgba(226,194,122,.12) 50%, rgba(226,194,122,.04)); font-size: var(--fs-sm); color: var(--ivory); text-align: center; }
.announce--warning { background: linear-gradient(90deg, rgba(240,179,74,.05), rgba(240,179,74,.14), rgba(240,179,74,.05)); border-bottom-color: rgba(240,179,74,.25); }
.announce--info { background: linear-gradient(90deg, rgba(122,162,255,.03), rgba(122,162,255,.1), rgba(122,162,255,.03)); border-bottom-color: rgba(122,162,255,.18); }
.announce__body { display: flex; align-items: center; gap: 12px; min-width: 0; }
.announce__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce__text a { color: var(--gold-1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(226,194,122,.45); }
.announce__close { position: absolute; right: 6px; top: 50%; translate: 0 -50%; }
.announce__pager { display: inline-flex; gap: 2px; font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--text-3); }
@media (max-width: 767px) { .announce { justify-content: flex-start; padding: 6px 48px 6px 16px; text-align: left; } .announce .tag { display: none; } }

/* ---------- Floating glass navigation ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-nav); padding: 12px var(--gutter) 0; pointer-events: none; }
.nav { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 20px; max-width: var(--container-wide); height: var(--nav-h); margin-inline: auto; padding: 0 10px 0 18px; border-radius: var(--r-lg); background: rgba(13,14,19,.66); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 24px 50px -30px rgba(0,0,0,.9); transition: height var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
.nav::before { /* gold hairline frame */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(226,194,122,.36), rgba(226,194,122,.07) 45%, rgba(226,194,122,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.nav::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 1px; background: var(--foil-hair); opacity: .65; pointer-events: none; }
.is-scrolled .nav { height: 60px; background: rgba(10,11,15,.84); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: var(--tap); color: var(--ivory); flex: none; }
.brand:hover { color: var(--ivory); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font: 600 1.125rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.nav__primary { margin-inline: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 15px; border: 0; border-radius: var(--r-sm); background: none; color: var(--stone); font: 500 var(--fs-sm)/1 var(--font-ui); letter-spacing: .04em; cursor: pointer; transition: color var(--dur-1); }
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--ivory); }
.nav__link[aria-current="page"] { color: var(--gold-1); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 9px; height: 1px; background: var(--foil); }
.nav__link .icon { transition: transform var(--dur-2) var(--ease); }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__more, .nav__lang, .nav__member { position: relative; }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__auth { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; }
.lang-btn { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; }
.lang-btn__code { font: 600 11px/1 var(--font-ui); letter-spacing: .12em; }
@media (max-width: 1023px) {
  .nav { gap: 8px; padding: 0 6px 0 14px; }
  .nav__primary, .nav__auth, .nav__member { display: none !important; }
  .nav__burger { display: inline-grid; }
}
@media (max-width: 420px) { .brand__name { font-size: 1rem; letter-spacing: .12em; } .lang-btn__code { display: none; } }

/* ---------- Popovers: language, member, mega menu ---------- */
.pop { position: absolute; top: calc(100% + 12px); right: 0; z-index: var(--z-dropdown); min-width: 232px; padding: 8px; border: 1px solid var(--line-gold); border-radius: var(--r-md); background: rgba(16,18,24,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow-3); animation: pop-in var(--dur-2) var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
.pop__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--tap); padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--stone); font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.pop__item:hover, .pop__item:focus-visible { background: rgba(255,255,255,.045); color: var(--ivory); }
.pop__item[aria-current="true"] { color: var(--gold-1); }
.pop__item[aria-current="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-2); }
.pop__sep { height: 1px; margin: 6px 4px; background: var(--line); }
.mega { left: 50%; right: auto; translate: -50% 0; width: min(780px, calc(100vw - 48px)); padding: 18px; display: grid; grid-template-columns: 1fr 1fr 1.08fr; gap: 4px 16px; }
.mega__col { display: grid; align-content: start; gap: 2px; }
.mega__heading { padding: 6px 12px 8px; font: 600 11px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.mega__link { display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; align-items: start; padding: 10px 12px; border-radius: var(--r-md); }
.mega__link:hover { background: rgba(255,255,255,.035); }
.mega__ic { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-gold); background: var(--gold-bg); color: var(--gold-2); }
.mega__title { font-size: var(--fs-sm); font-weight: 500; color: var(--ivory); }
.mega__desc { font-size: var(--fs-xs); line-height: 1.5; color: var(--text-3); }
.mega__feature { position: relative; display: grid; align-content: end; gap: 8px; padding: 20px; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, rgba(226,194,122,.16), transparent 60%), var(--ink-3); border: 1px solid var(--line-gold); min-height: 200px; }
.mega__feature-k { font: 600 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
.mega__feature-t { font: 600 1.375rem/1.2 var(--font-display); color: var(--ivory); }
.mega__feature-d { font-size: var(--fs-xs); color: var(--stone); line-height: 1.6; }
.member-btn { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 10px 0 5px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: rgba(255,255,255,.03); color: var(--ivory); cursor: pointer; font-size: var(--fs-sm); }
.member-btn:hover { border-color: var(--line-gold-2); }
.member-btn__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #2a2518, var(--ink-3)); box-shadow: inset 0 0 0 1px var(--line-gold-2); color: var(--gold-1); font: 600 .95rem/1 var(--font-display); text-transform: uppercase; }
.avatar--lg { width: 44px; height: 44px; font-size: 1.2rem; }
.member-pop { width: 290px; }
.member-pop__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.member-pop__name { font-weight: 600; }
.member-pop__mail { font-size: var(--fs-xs); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; max-width: 190px; white-space: nowrap; }
.member-pop__sub { margin: 0 4px 4px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ink-3); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--stone); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.member-pop__sub.is-active { border-color: var(--line-gold); color: var(--gold-1); }

/* ---------- Drawer (mobile menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer__scrim { position: absolute; inset: 0; background: rgba(3,3,5,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); display: flex; flex-direction: column; background: var(--ink-1); border-left: 1px solid var(--line-gold); box-shadow: var(--shadow-3); transform: translateX(100%); transition: transform var(--dur-3) var(--ease); overflow-y: auto; overscroll-behavior: contain; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer__member { display: flex; align-items: center; gap: 12px; margin: 16px 20px 0; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-gold); background: var(--ink-2); }
.drawer__member-sub { font-size: var(--fs-xs); color: var(--stone); }
.drawer__nav { padding: 8px 12px; display: grid; }
.drawer__group { padding: 18px 12px 6px; font: 600 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.drawer__link { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 12px; border-radius: var(--r-sm); color: var(--ivory); font-size: var(--fs-md); }
.drawer__link .icon { color: var(--gold-3); }
.drawer__link:hover, .drawer__link[aria-current="page"] { background: rgba(255,255,255,.04); color: var(--gold-1); }
.drawer__foot { margin-top: auto; display: grid; gap: 10px; padding: 20px; border-top: 1px solid var(--line); }
.drawer__langs { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: var(--z-toast); display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { --c: var(--gold-2); pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-left: 2px solid var(--c); border-radius: var(--r-md); background: rgba(16,18,24,.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-3); font-size: var(--fs-sm); animation: toast-in var(--dur-3) var(--ease); }
.toast .icon { color: var(--c); margin-top: 1px; }
.toast--ok { --c: var(--jade); }
.toast--err { --c: var(--garnet); }
.toast--info { --c: var(--sapphire); }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity var(--dur-2), transform var(--dur-2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 767px) { .toasts { left: 16px; right: 16px; width: auto; } }

/* ---------- Skeletons ---------- */
.skel { display: block; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.085) 45%, rgba(255,255,255,.04) 90%) 0 0 / 200% 100%, var(--ink-3); animation: skel 1.6s var(--ease-io) infinite; }
.skel--line { height: 12px; }
.skel--num { display: inline-block; width: 4.2ch; height: .78em; vertical-align: -.05em; border-radius: 8px; }
.skel--block { height: 100%; min-height: 120px; border-radius: var(--r-md); }
@keyframes skel { to { background-position: -200% 0, 0 0; } }

/* ---------- Locked content (frosted + gold lock + CTA) ---------- */
.locked { position: relative; border-radius: var(--r-md); overflow: hidden; isolation: isolate; border: 1px solid var(--line-gold); background: var(--ink-3); }
.locked__decoy { display: flex; align-items: center; gap: 10px; padding: 16px; filter: blur(5px); opacity: .7; }
.locked__decoy i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(246,231,184,.5), rgba(226,194,122,.25)); }
.locked__decoy i:nth-child(1) { width: 38%; }
.locked__decoy i:nth-child(2) { width: 16%; }
.locked__decoy i:nth-child(3) { width: 12%; margin-left: auto; }
.locked__veil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; background: linear-gradient(90deg, rgba(10,11,15,.35), rgba(10,11,15,.6)); -webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%); }
.lock { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--gold-1); background: radial-gradient(circle at 35% 30%, rgba(246,231,184,.28), rgba(138,106,46,.18)); box-shadow: inset 0 0 0 1px rgba(226,194,122,.55), 0 0 18px -4px rgba(226,194,122,.5); }
.lock .icon { width: 15px; height: 15px; }
.locked__cta { font: 600 var(--fs-sm)/1 var(--font-ui); letter-spacing: .06em; color: var(--gold-1); display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); }
.locked__cta:hover { color: #fff; }

/* ---------- Art-deco section divider ---------- */
.deco-rule { display: flex; align-items: center; gap: 14px; width: min(560px, 70%); margin-inline: auto; color: var(--gold-3); }
.deco-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(226,194,122,.45)); }
.deco-rule span:last-child { background: linear-gradient(90deg, rgba(226,194,122,.45), transparent); }
.deco-rule i { position: relative; width: 11px; height: 11px; transform: rotate(45deg); border: 1px solid var(--gold-2); flex: none; }
.deco-rule i::after { content: ""; position: absolute; inset: 3px; background: var(--gold-2); }
.deco-rule i::before { content: ""; position: absolute; width: 5px; height: 5px; border: 1px solid var(--gold-3); left: -16px; top: 12px; }
.deco-rule--wide { width: min(var(--container), calc(100% - var(--gutter) * 2)); }

/* ---------- Empty state ---------- */
.empty { display: grid; justify-items: center; gap: 12px; padding: clamp(32px, 5vw, 56px) 24px; text-align: center; border: 1px dashed var(--line-gold); border-radius: var(--r-lg); background: rgba(255,255,255,.012); }
.empty__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--line-gold-2); }
.empty__title { font: 600 var(--fs-xl)/1.3 var(--font-display); }
.empty__text { max-width: 46ch; color: var(--stone); font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: var(--s-16); padding: 0 0 calc(40px + var(--safe-b)); background: linear-gradient(180deg, transparent, rgba(5,5,7,.8) 30%); }
.site-footer > .deco-rule { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-bottom: clamp(48px, 6vw, 80px); }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__tagline { margin-top: 16px; max-width: 34ch; color: var(--stone); font-size: var(--fs-sm); line-height: 1.8; }
.footer__cs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer__title { margin-bottom: 14px; font: 600 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
.footer__links { list-style: none; display: grid; gap: 2px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--stone); font-size: var(--fs-sm); }
.footer__links a:hover { color: var(--gold-1); }
.footer__legal { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer__disclaimer { font-size: var(--fs-xs); line-height: 1.8; color: var(--text-3); max-width: 92ch; }
.footer__rg { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); color: var(--gold-2); font-size: var(--fs-sm); white-space: nowrap; }
.age-badge { display: flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold-3); color: var(--gold-1); font: 600 1.05rem/1 var(--font-display); letter-spacing: .02em; box-shadow: inset 0 0 0 3px var(--ink-1), inset 0 0 0 4px rgba(226,194,122,.35); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 24px; font-size: var(--fs-xs); color: var(--text-3); }
.cs-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--ivory); font-size: var(--fs-sm); }
.cs-pill .icon { color: var(--gold-2); width: 18px; height: 18px; }
.cs-pill:hover { border-color: var(--line-gold-2); color: var(--gold-1); }
@media (max-width: 1023px) { .footer__top { grid-template-columns: 1fr 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__legal { grid-template-columns: auto 1fr; }
  .footer__rg { grid-column: 1 / -1; }
  .site-footer { padding-bottom: calc(var(--tabbar-h) + 40px + var(--safe-b)); }
}

/* ---------- Demo-data tag (in the nav bar; never floats over content) ---------- */
.nav__demo { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid rgba(240,179,74,.45); background: var(--amber-bg); color: var(--amber); font: 600 11px/1 var(--font-ui); letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 420px) { .nav__demo { padding: 0 8px; } .nav__demo-txt { display: none; } }
.demo-flag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(240,179,74,.2); flex: none; }

/* ---------- Customer-service button + keyword chat ---------- */
.cs-fab { position: fixed; right: 20px; bottom: calc(20px + var(--safe-b)); z-index: var(--z-fab); display: grid; place-items: center; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--foil); color: var(--ink-0); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 6px rgba(226,194,122,.08), 0 18px 40px -12px rgba(226,194,122,.55); cursor: pointer; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2); }
.cs-fab:hover { transform: translateY(-2px); }
.cs-fab[aria-expanded="true"] .icon { display: none; }
.cs-fab[aria-expanded="true"]::after { content: ""; width: 18px; height: 18px; background: linear-gradient(45deg, transparent 45%, var(--ink-0) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--ink-0) 45% 55%, transparent 55%); }
@media (max-width: 1023px) {
  .cs-fab { right: 14px; bottom: calc(var(--tabbar-h) + 14px + var(--safe-b)); width: 52px; height: 52px; }
}

/* ---------- Mobile bottom tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar); display: none; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(10,11,15,.88); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.tabbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--foil-hair); opacity: .55; }
.tabbar__item { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--text-3); font-size: 11px; letter-spacing: .04em; }
.tabbar__item .icon { width: 22px; height: 22px; }
.tabbar__item[aria-current="page"] { color: var(--gold-1); }
.tabbar__item[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 2px; translate: -50% 0; border-radius: 0 0 2px 2px; background: var(--foil); }
@media (max-width: 1023px) { .tabbar { display: grid; } }

/* ---------- Charts (hand-written SVG, see core/charts.js) ---------- */
.chart { position: relative; display: grid; gap: 10px; margin: 0; }
.chart__plot { position: relative; height: var(--chart-h, 220px); padding-left: 48px; }
.chart__plot svg { width: 100%; height: 100%; overflow: visible; }
.chart__grid line { stroke: var(--line); vector-effect: non-scaling-stroke; }
.chart__zero { stroke: rgba(226,194,122,.4); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart__ylab { position: absolute; left: 0; top: var(--y); translate: 0 -50%; font: 500 11px/1 var(--font-mono); color: var(--text-3); white-space: nowrap; }
.chart__dot { position: absolute; left: calc(48px + (100% - 48px) * var(--x)); top: var(--y); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gold-1); box-shadow: 0 0 0 4px rgba(226,194,122,.18), 0 0 18px rgba(226,194,122,.7); }
.chart__x { display: flex; justify-content: space-between; padding-left: 48px; font: 500 11px/1 var(--font-mono); color: var(--text-3); }
.chart__bar { fill: rgba(255,255,255,.1); }
.chart__bar.is-win { fill: var(--jade); fill-opacity: .8; }
.chart__bar.is-loss { fill: var(--garnet); fill-opacity: .8; }
.chart__bar.is-empty { fill: rgba(255,255,255,.1); }
.chart__ref { stroke: rgba(243,238,227,.22); stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.gauge { width: var(--gauge, 116px); height: var(--gauge, 116px); flex: none; overflow: visible; }
.gauge__ring { fill: none; stroke: rgba(226,194,122,.14); }
.gauge__tick { fill: none; stroke: rgba(226,194,122,.32); }
.gauge__tick--major { stroke: var(--gold-2); }
.gauge__track { fill: none; stroke: rgba(255,255,255,.07); }
.gauge__val { fill: none; stroke-linecap: round; }
.gauge__cap { fill: var(--gold-1); font: 600 17px var(--font-display); text-anchor: middle; }
.gauge__sub { fill: var(--text-3); font: 600 7.5px var(--font-ui); letter-spacing: .22em; text-anchor: middle; }
.spark { width: 100%; height: var(--spark-h, 56px); overflow: visible; }
.spark__line { fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hbars { list-style: none; display: grid; gap: 20px; }
.hbar__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.hbar__name { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); }
.hbar__name .icon { width: 16px; height: 16px; color: var(--gold-3); }
.hbar__val { font: 500 var(--fs-sm)/1 var(--font-mono); color: var(--gold-1); }
.hbar__track { position: relative; height: 6px; margin-top: 10px; border-radius: 6px; background: rgba(255,255,255,.06); }
.hbar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--gold-4), var(--gold-2) 70%, var(--gold-1)); }
.hbar__mark { position: absolute; top: -4px; bottom: -4px; left: var(--x); width: 1px; background: rgba(243,238,227,.4); }
.hbar__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font: 400 var(--fs-xs)/1.3 var(--font-mono); color: var(--text-3); }

/* ---------- Pick card (core/ui.js pickCard — home teaser, picks, match) ---------- */
.pick { display: grid; align-content: start; gap: 18px; padding: 22px 22px 20px; min-height: 262px; }
.pick--skel { gap: 14px; }
.pick--skel .skel--line:nth-child(2) { width: 62%; }
.pick__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); color: var(--stone); }
.pick__league { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pick__league .icon { color: var(--gold-3); }
.pick__league b { font: 600 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--gold-2); }
.pick__league span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__time { display: grid; justify-items: end; gap: 6px; flex: none; }
.pick__time > .num { font-size: var(--fs-sm); color: var(--ivory); }
.pick__teams { display: grid; gap: 10px; color: var(--ivory); border-radius: var(--r-xs); }
.pick__teams:hover { color: var(--gold-1); }
.pick__team { display: flex; align-items: center; gap: 12px; font: 500 var(--fs-lg)/1.3 var(--font-ui); min-width: 0; }
.pick__team > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__side { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); font: 600 10px/1 var(--font-ui); color: var(--text-3); }
.pick__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--stone); }
.pick__market { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pick__market b { font-weight: 500; color: var(--ivory); white-space: nowrap; }
.pick__market .faint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); }
.pick__sel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--gold-bg); border: 1px solid var(--line-gold); }
.pick__label { font-weight: 600; color: var(--gold-1); }
.pick__nums { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-xs); }
.pick .locked { display: block; }
.stars--na { gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.stars--na .icon { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 767px) { .pick { min-height: 0; } }

/* ---------- Settled picks table (core/ui.js settledTable — home, record, match) ---------- */
.match-cell { display: grid; gap: 4px; color: var(--ivory); }
.match-cell:hover b { color: var(--gold-1); }
.match-cell b { font-weight: 500; }
.match-cell small { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.match-cell small .icon { width: 14px; height: 14px; color: var(--gold-4); }
.settled__pick { color: var(--gold-1); }
.settled .is-void td { color: var(--text-3); }
.settled .is-void .settled__pick { color: var(--stone); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
@media (max-width: 767px) {
  .settled tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "match result" "pick profit" "date odds"; }
  .settled .settled__match { grid-area: match; }
  .settled .settled__res { grid-area: result; text-align: right; }
  .settled .settled__pick { grid-area: pick; }
  .settled .settled__pl { grid-area: profit; }
  .settled .settled__date { grid-area: date; }
  .settled .settled__odds { grid-area: odds; }
}

/* ---------- Plan card (core/ui.js planCard — home, plans) ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 34px 28px 28px; }
.plan--featured { background: radial-gradient(120% 60% at 50% 0%, rgba(226,194,122,.13), transparent 62%), var(--ink-2); box-shadow: var(--shadow-2), var(--shadow-gold); }
.plan__badge { position: absolute; top: -13px; left: 28px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--foil); color: var(--ink-0); font: 600 11px/1 var(--font-ui); letter-spacing: .12em; box-shadow: 0 8px 20px -8px rgba(226,194,122,.6); }
.plan__cycle { font: 600 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.plan__current { color: var(--gold-2); }
.plan__name { margin-top: 10px; font-size: var(--fs-h4); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.plan__amt { font: 600 clamp(2.25rem, 1.9rem + 1vw, 2.875rem)/1 var(--font-display); }
.plan__per { font-size: var(--fs-sm); color: var(--stone); }
.plan__sub { display: flex; flex-wrap: wrap; gap: 6px 14px; min-height: 1.4em; margin-top: -8px; }
.plan__orig { font: 400 var(--fs-sm)/1.4 var(--font-mono); color: var(--text-3); text-decoration: line-through; }
.plan__daily { font: 500 var(--fs-sm)/1.4 var(--font-mono); color: var(--gold-2); }
.plan__feats { flex: 1; display: grid; align-content: start; gap: 12px; padding-top: 20px; list-style: none; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--stone); }
.plan__feats li { display: flex; gap: 10px; line-height: 1.6; }
.plan__feats .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--gold-2); }
.plan .btn { width: 100%; }
.plan__note { margin-top: -6px; text-align: center; font-size: var(--fs-xs); line-height: 1.5; color: var(--text-3); }
