/* OddlyAI — a Cerevision product. Bright, clean sports-app UI (365scores-inspired):
   white surfaces, blue / sky / turquoise accents, crisp cards, real-product polish. */
@property --p { syntax: '<number>'; initial-value: 0; inherits: false; }

:root {
  --bg:        #eef3f9;   /* page */
  --bg-grad:   linear-gradient(180deg, #f3f8fe, #eaf1f9);
  --surface:   #ffffff;   /* cards */
  --surface-2: #f5f8fc;   /* insets / tracks */
  --surface-3: #eef3f9;
  --line:      #e2e9f2;   /* borders */
  --line-2:    #eef2f8;
  --ink:       #14213a;   /* primary text */
  --ink-2:     #5a6b84;   /* muted */
  --ink-3:     #93a1b5;   /* faint */
  --blue:      #1f6bff;   /* primary */
  --blue-600:  #1358e6;
  --sky:       #38bdf8;   /* light blue / תכלת */
  --teal:      #12c2c2;   /* turquoise */
  --grad:      linear-gradient(100deg, #1f6bff, #12c2c2);
  --grad-soft: linear-gradient(100deg, rgba(31,107,255,.12), rgba(18,194,194,.12));
  --live:      #ff3b3b;
  --win:       #12a150;   --ok: #12a150;
  --loss:      #e5484d;   --bad: #e5484d;
  --warn:      #e8930c;
  --amber:     #f5a623;
  --r:         16px; --r-lg: 22px; --r-sm: 12px;
  --sh-sm:     0 1px 2px rgba(23,49,99,.06), 0 2px 8px rgba(23,49,99,.05);
  --sh:        0 6px 18px rgba(23,49,99,.08), 0 2px 6px rgba(23,49,99,.05);
  --sh-lg:     0 24px 60px rgba(23,49,99,.16);
  --ease:      cubic-bezier(.2,.9,.3,1.15);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --sidebar:   248px;
  --font:      'Inter', system-ui, -apple-system, 'Heebo', 'Segoe UI', sans-serif;
  --mono:      'Space Grotesk', 'Inter', system-ui, sans-serif;
  --safe-b:    env(safe-area-inset-bottom, 0px);
  /* legacy aliases so any leftover refs still resolve sanely */
  --green:#1f6bff; --gold:#1f6bff; --gold-deep:#1358e6; --tx:#14213a; --tx-2:#5a6b84; --tx-3:#93a1b5;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; background: var(--bg-grad); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
#app { height: 100dvh; position: relative; z-index: 1; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input { border: 0; }
a { color: var(--blue); }
.ic { flex: none; display: block; }
.mono { font-family: var(--mono); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mut { color: var(--ink-2); } .sm { font-size: 13px; } .xs { font-size: 11.5px; } .center { text-align: center; }
.pos { color: var(--win); } .neg { color: var(--loss); }
.aurora { display: none; }              /* kept in DOM, removed visually — cleaner, less "AI" */
.boot { height: 100dvh; display: grid; place-items: center; }
.link { color: var(--blue); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- shell ---------- */
.shell { display: flex; height: 100dvh; }
.sidebar { flex: none; width: var(--sidebar); display: flex; flex-direction: column; gap: 6px; padding: 20px 14px calc(16px + var(--safe-b)); background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand svg { border-radius: 13px; box-shadow: 0 6px 16px rgba(31,107,255,.28); }
.brand-tx { display: flex; flex-direction: column; line-height: 1.12; }
.brand-tx b { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand-tx i { font-style: normal; font-size: 10.5px; color: var(--teal); letter-spacing: .02em; font-weight: 600; }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; transition: background .18s, color .18s; }
.side-item:hover { background: var(--surface-2); color: var(--ink); }
.side-item.on { background: var(--grad-soft); color: var(--blue); }
.side-item.on .ic { color: var(--blue); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 9px; }
.side-live { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.side-live div { display: flex; flex-direction: column; line-height: 1.2; }
.side-live b { font-size: 12.5px; color: var(--ink); } .side-live span { font-size: 11px; color: var(--ink-2); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; width: 100%; transition: border-color .2s, box-shadow .2s; }
[dir='rtl'] .side-user { text-align: right; }
.side-user:hover { border-color: var(--blue); box-shadow: var(--sh-sm); }
.su-av { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--mono); font-weight: 800; font-size: 13px; }
.su-av.lg { width: 48px; height: 48px; font-size: 17px; border-radius: 13px; }
.su-t { min-width: 0; line-height: 1.25; } .su-t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .su-t span { font-size: 11px; color: var(--ink-2); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 0 rgba(18,161,80,.4); animation: pulse 2s infinite; flex: none; }
.dot-off { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px rgba(18,161,80,0); } 100% { box-shadow: 0 0 0 0 rgba(18,161,80,0); } }

.main { flex: 1; min-width: 0; overflow-y: auto; padding: 30px clamp(18px, 4vw, 48px) 60px; }
.main::-webkit-scrollbar { width: 10px; }
.main::-webkit-scrollbar-thumb { background: #d3deea; border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- type ---------- */
h1 { font-weight: 800; letter-spacing: -0.03em; margin: 0; font-size: clamp(1.5rem, 2.6vw, 1.95rem); color: var(--ink); }
h2 { font-weight: 800; letter-spacing: -0.02em; margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 9px; color: var(--ink); }
h3 { font-weight: 700; margin: 0; font-size: 1rem; color: var(--ink); }
.grad-h { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: var(--grad); }
.page-head { margin-bottom: 22px; } .page-head p { color: var(--ink-2); margin: 7px 0 0; }
.sect-h { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.sect-h h2::before { content: ''; width: 4px; height: 18px; border-radius: 4px; background: var(--grad); }
.count { font-family: var(--mono); font-size: .8rem; background: var(--blue); color: #fff; border-radius: 999px; padding: 1px 9px; font-weight: 800; }

/* ---------- cards / buttons / segmented ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: 13px; font-weight: 700; font-size: 15px; transition: transform .12s, box-shadow .2s, background .2s, filter .2s; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn:active { transform: scale(.97); } .btn:disabled { opacity: .45; pointer-events: none; }
.btn.gold { background: var(--grad); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(31,107,255,.28); }
.btn.gold:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.btn.ghost:hover { color: var(--blue); border-color: var(--blue); }
.btn.wide { width: 100%; } .btn.sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 3px; }
.seg button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); transition: color .18s, background .2s, box-shadow .2s; }
.seg button.on { background: var(--surface); color: var(--blue); box-shadow: var(--sh-sm); }
.seg button:not(.on):hover { color: var(--ink); }

/* dashboard CTA */
.cta { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .16s var(--ease), box-shadow .25s, border-color .2s; }
.cta:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: #cfe0ff; }
.cta-ic { width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(31,107,255,.28); }
.cta-tx { flex: 1; } .cta-tx b { display: block; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); } .cta-tx span { color: var(--ink-2); font-size: 13.5px; }
.cta-go { color: var(--blue); }

/* stat tiles */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; }
.stat .k { font-size: 12px; color: var(--ink-2); font-weight: 600; } .stat .stat-sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.stat .v { font-family: var(--mono); font-size: 1.55rem; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; margin-top: 4px; }

/* ---------- home ---------- */
.home-actions { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 8px; }
.tg-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 13px; box-shadow: var(--sh-sm); transition: all .2s; }
.tg-btn:hover { border-color: var(--blue); color: var(--blue); }
.tg-btn.on { color: var(--win); border-color: rgba(18,161,80,.4); background: rgba(18,161,80,.06); }
.tg-btn .ic { color: currentColor; }

/* competition-grouped feed (365scores style) */
.comp { margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); overflow: hidden; }
.comp-head { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.comp-crest { width: 26px; height: 26px; flex: none; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 11px; color: #fff; }
.comp-crest.img { background: #fff; border: 1px solid var(--line); padding: 2px; object-fit: contain; }
.lcard-crest.img { background: #fff; border: 1px solid var(--line); padding: 6px; object-fit: contain; }
.comp-name { font-weight: 800; font-size: 13.5px; color: var(--ink); flex: 1; }
.comp-country { font-size: 11.5px; color: var(--ink-3); }
.m-row { padding: 10px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .15s; }
.m-row:last-child { border-bottom: 0; } .m-row:hover { background: var(--surface-2); }
.m-teams { display: grid; grid-template-columns: 1fr 74px 1fr; align-items: center; gap: 8px; }
.m-foot { display: flex; justify-content: center; padding-top: 8px; margin-top: 8px; border-top: 1px dashed var(--line); }
.m-tv-btn { color: var(--live); font-weight: 700; cursor: pointer; background: rgba(255,59,59,.07); border: 1px solid rgba(255,59,59,.22); padding: 5px 12px; border-radius: 8px; transition: all .15s; }
.m-tv-btn:hover { background: var(--live); color: #fff; }
.m-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m-side.away { flex-direction: row-reverse; text-align: right; } [dir='rtl'] .m-side.away { text-align: left; }
.m-side b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.m-mid { text-align: center; } .m-time { font-size: 12.5px; color: var(--ink-2); font-weight: 700; font-family: var(--mono); }
.m-score { font-size: 16px; font-weight: 800; color: var(--ink); font-family: var(--mono); }
.m-live { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; } .m-live .m-min { font-size: 11px; color: var(--live); font-weight: 800; }
.m-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.m-tv { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ink-3); justify-content: center; margin-top: 3px; }
.m-foot { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.m-watch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--live); background: rgba(255,59,59,.08); border: 1px solid rgba(255,59,59,.25); padding: 5px 11px; border-radius: 8px; }
.m-watch:hover { background: var(--live); color: #fff; }
.badge { width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.badge img { width: 34px; height: 34px; object-fit: contain; }
.badge.sm, .badge.sm img { width: 26px; height: 26px; }
.badge-mono { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-weight: 800; font-size: 11px; color: var(--blue); }
.badge.sm .badge-mono { width: 26px; height: 26px; border-radius: 7px; font-size: 10px; }

/* post-match cards */
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pm-card { padding: 15px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.pm-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.pm-head b { font-size: 18px; color: var(--ink); font-family: var(--mono); }
.pm-teams { text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.pm-scorers { text-align: center; font-size: 11.5px; color: var(--ink-2); margin: 6px 0; }
.pm-news { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); padding: 6px 0; border-top: 1px solid var(--line-2); text-decoration: none; }
.pm-news:hover { color: var(--blue); } .pm-news .ic { color: var(--teal); flex: none; }

/* ---------- funnel ---------- */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); }
.step.on { color: var(--blue); border-color: #cfe0ff; background: rgba(31,107,255,.07); }
.step.done { color: var(--win); }
.step-n { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--surface-2); color: var(--ink-2); }
.step.on .step-n { background: var(--blue); color: #fff; } .step.done .step-n { background: var(--win); color: #fff; }
.step-sep { color: var(--ink-3); }

.toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.src-tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); }
.inp { height: 46px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); outline: none; color: var(--ink); width: 100%; transition: border-color .18s, box-shadow .18s; }
.inp:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,107,255,.12); }
.inp::placeholder { color: var(--ink-3); }
.search-wrap { position: relative; flex: 1; min-width: 220px; }
.search-wrap.big { width: 100%; margin-bottom: 18px; }
.search-wrap.big .inp { height: 54px; font-size: 16px; padding-left: 46px; box-shadow: var(--sh-sm); }
.sw-ic { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
[dir='rtl'] .sw-ic { left: auto; right: 15px; } [dir='rtl'] .search-wrap.big .inp { padding-left: 14px; padding-right: 46px; }
.pick-tabs { margin-bottom: 18px; }

/* league crest grid */
.league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lcard { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: var(--r); text-align: left; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .15s var(--ease), border-color .2s, box-shadow .25s; }
.lcard:hover { transform: translateY(-2px); border-color: #cfe0ff; box-shadow: var(--sh); }
.lcard-crest { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(160deg, var(--c2), var(--c1)); box-shadow: 0 6px 14px rgba(23,49,99,.18); }
.lcard-crest b { font-family: var(--mono); font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -0.02em; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.lcard-t { flex: 1; min-width: 0; } .lcard-t b { display: block; font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lcard-t span { display: block; font-size: 12px; color: var(--ink-2); }
.lcard-go { color: var(--ink-3); }
[dir='rtl'] .lcard, [dir='rtl'] .side-item, [dir='rtl'] .cta { text-align: right; }
[dir='rtl'] .lcard-go .ic, [dir='rtl'] .cta-go, [dir='rtl'] .row > .ic:last-child { transform: scaleX(-1); }

/* generic rows (teams, history) */
.list { display: grid; gap: 10px; } .list.cols { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .12s, border-color .2s, box-shadow .2s; }
.row:hover { border-color: #cfe0ff; box-shadow: var(--sh); transform: translateY(-1px); }
.row-crest { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.row-crest.img { padding: 5px; object-fit: contain; }
.crest-mono { font-family: var(--mono); font-weight: 800; font-size: 13px; color: var(--blue); }
.row-t { flex: 1; min-width: 0; } .row-t b { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .row-t span { display: block; font-size: 12px; color: var(--ink-2); }
.row-tag { font-size: 13px; color: var(--blue); font-weight: 800; } .row .ic { color: var(--ink-3); }

/* fixtures (match step) */
.fx-list { display: grid; gap: 10px; }
.fx { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .14s, border-color .2s, box-shadow .2s; }
.fx:hover { transform: translateY(-1px); border-color: #cfe0ff; box-shadow: var(--sh); }
.fx-side { display: flex; align-items: center; gap: 11px; min-width: 0; }
.fx-side.away { flex-direction: row-reverse; text-align: right; } [dir='rtl'] .fx-side.away { text-align: left; }
.fx-side b { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; padding: 0 4px; }
.fx-vs { font-family: var(--mono); font-weight: 700; font-size: 11px; color: var(--ink-3); }
.fx-when { font-size: 12px; color: var(--blue); font-weight: 700; white-space: nowrap; }
.fx-score { font-size: 15px; font-weight: 800; color: var(--ink); font-family: var(--mono); background: var(--surface-2); padding: 2px 9px; border-radius: 8px; }
.fx-tv { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ink-3); }

/* ---------- build ---------- */
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 24px 18px; border-radius: var(--r-lg); background: linear-gradient(160deg, #fff, var(--surface-2)); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.mu-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.mu-badge { width: 60px; height: 60px; display: grid; place-items: center; } .mu-badge img { width: 60px; height: 60px; object-fit: contain; }
.mu-badge .badge-mono { width: 60px; height: 60px; border-radius: 16px; font-size: 18px; }
.mu-team b { font-weight: 700; font-size: 15px; color: var(--ink); }
.mu-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mu-vs { font-family: var(--mono); font-weight: 800; font-size: 18px; color: var(--blue); }
.mu-venue { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); white-space: nowrap; }

.how { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--grad-soft); border: 1px solid #d7e6ff; flex-wrap: wrap; }
.how-step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink); font-weight: 600; flex: 1; min-width: 150px; }
.how-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 12px; }
.how-arrow { color: var(--ink-3); flex: none; } [dir='rtl'] .how-arrow .ic { transform: scaleX(-1); }

.pre { margin: 18px 0 0; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.pre-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pre-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.pre-col { text-align: center; } .pre-team { font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frm-row { display: flex; gap: 5px; justify-content: center; }
.frm { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; font-family: var(--mono); }
.frm.W { background: rgba(18,161,80,.14); color: var(--win); } .frm.D { background: rgba(232,147,12,.16); color: var(--warn); } .frm.L { background: rgba(229,72,77,.13); color: var(--loss); }
.pre-nums { display: flex; gap: 12px; justify-content: center; margin-top: 8px; font-size: 12px; color: var(--ink-2); } .pre-nums b { color: var(--blue); font-family: var(--mono); }
.pre-mid { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }

.builder { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.bld-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: all .15s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on { background: var(--grad-soft); border-color: #bcd6ff; color: var(--blue); }
.chip.pill { border-radius: 999px; } .chip.xs { padding: 7px 12px; font-size: 12.5px; font-family: var(--mono); }
.add-btn { scroll-margin-bottom: 150px; }
.live-odds-btn { background: linear-gradient(100deg, var(--win), #0fb59a); box-shadow: 0 8px 20px rgba(18,161,80,.28); }
.odds-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--win); background: rgba(18,161,80,.1); border: 1px solid rgba(18,161,80,.28); padding: 5px 12px; border-radius: 999px; } .odds-src .ic { color: var(--win); }

.stepper { display: inline-flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 9px; font-size: 20px; font-weight: 700; color: var(--blue); background: var(--surface); border: 1px solid var(--line); transition: background .15s, transform .1s; }
.stepper button:hover { background: var(--grad-soft); } .stepper button:active { transform: scale(.92); }
.stepper-val { width: 88px; height: 40px; text-align: center; background: transparent; font-family: var(--mono); font-weight: 800; font-size: 19px; color: var(--ink); outline: none; }
.stepper.budget .stepper-val { width: 104px; }

.score-pick { display: inline-flex; align-items: center; gap: 16px; padding: 8px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.sp-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sp-b { width: 38px; height: 30px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--blue); font-size: 18px; font-weight: 700; }
.sp-b:hover { background: var(--grad-soft); }
.sp-n { font-size: 28px; font-weight: 800; color: var(--ink); min-width: 32px; text-align: center; font-family: var(--mono); }
.sp-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; }
.sp-dash { font-size: 26px; color: var(--ink-3); font-weight: 700; }

.slip { display: grid; gap: 9px; }
.pos { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); animation: reveal .3s var(--ease-out) both; }
.pos-mk { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; flex: none; }
.pos-sel { font-weight: 700; color: var(--ink); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-odds { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.odds-edit { width: 56px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--blue); font-weight: 800; text-align: center; padding: 5px 4px; outline: none; font-family: var(--mono); }
.odds-edit:focus { border-color: var(--blue); }
.pos-x { width: 28px; height: 28px; border-radius: 8px; color: var(--ink-3); display: grid; place-items: center; flex: none; transition: background .15s, color .15s; }
.pos-x:hover { background: rgba(229,72,77,.12); color: var(--loss); }

.upload { margin-top: 18px; border: 1.5px dashed var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s, background .2s; }
.upload:hover { border-color: var(--blue); background: var(--surface-2); }
.upload-in { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; text-align: center; cursor: pointer; }
.upload-in .ic { color: var(--teal); } .upload-in b { font-size: 14px; color: var(--ink); } .upload-in span { font-size: 12px; color: var(--ink-2); max-width: 420px; }
.spin.sm { width: 26px; height: 26px; border-width: 3px; margin: 0 0 4px; }

.rc-bar { display: grid; grid-template-columns: 1fr auto; gap: 18px; margin-top: 20px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); align-items: end; }
.risk-seg { width: 100%; } .risk-seg button { flex: 1; flex-direction: column; gap: 1px; padding: 8px; } .risk-seg button b { font-size: 13px; } .risk-seg button i { font-style: normal; font-size: 10px; opacity: .7; }
.rc-money { display: flex; align-items: center; gap: 10px; }
.cur-seg button { width: 42px; justify-content: center; font-family: var(--mono); font-size: 16px; padding: 9px 0; }

/* the plain plan */
.plan { margin: 6px 0 14px; padding: 18px; border-radius: var(--r); background: var(--grad-soft); border: 1px solid #d7e6ff; }
.plan-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; color: var(--blue); margin-bottom: 12px; } .plan-h .ic { color: var(--blue); }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan-list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.plan-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--mono); font-weight: 800; font-size: 14px; }
.plan-b { flex: 1; min-width: 0; } .plan-line { font-size: 14.5px; line-height: 1.45; color: var(--ink); } .plan-line > b { color: var(--ink); }
.plan-stake { color: var(--blue) !important; font-family: var(--mono); }
.plan-mk { font-size: 11px; color: var(--ink-3); margin-top: 2px; } .plan-odds { color: var(--ink-2); font-size: 12.5px; }
.plan-ret { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 12px; border-radius: 10px; background: rgba(18,161,80,.08); border: 1px solid rgba(18,161,80,.22); }
.plan-ret span { font-size: 9.5px; color: var(--ink-2); white-space: nowrap; } .plan-ret b { font-size: 15px; }
.plan-sum { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(18,161,80,.08); border: 1px solid rgba(18,161,80,.25); font-size: 13.5px; line-height: 1.5; color: var(--ink); } .plan-sum .ic { color: var(--win); flex: none; margin-top: 2px; }

.details { margin: 2px 0 0; }
.details > summary { cursor: pointer; font-size: 12.5px; color: var(--blue); font-weight: 700; padding: 8px 0; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.details > summary::-webkit-details-marker { display: none; }
.details > summary::before { content: '▸'; color: var(--blue); transition: transform .2s; display: inline-block; }
.details[open] > summary::before { transform: rotate(90deg); } [dir='rtl'] .details > summary::before { content: '◂'; }

.lhedge { margin-top: 18px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.lh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.lh-prof { font-size: 12px; color: var(--blue); background: var(--grad-soft); border: 1px solid #bcd6ff; padding: 4px 11px; border-radius: 999px; font-weight: 700; }
.lh-actions { margin-top: 14px; } .consult-wrap { margin-top: 18px; } .consult-btn { height: 54px; }
.dr-tag { display: flex; width: fit-content; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--teal); margin-bottom: 8px; } .dr-tag .ic { color: var(--teal); }

.empty { text-align: center; padding: 42px 20px; color: var(--ink-2); } .empty .ic { margin: 0 auto 12px; color: var(--ink-3); }
.empty.soft { padding: 32px 20px; } .empty.slim { padding: 22px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); }
.spin { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--blue); animation: spin .9s linear infinite; margin: 44px auto; }

/* ---------- tables (placements / leaderboard) ---------- */
.plc-wrap { overflow-x: auto; }
.plc { width: 100%; border-collapse: separate; border-spacing: 0 8px; min-width: 460px; }
.plc th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; padding: 0 12px; }
.plc th.num, .plc td.num { text-align: right; font-family: var(--mono); }
.plc td { background: var(--surface-2); padding: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); }
.plc td:first-child { border-left: 1px solid var(--line); border-radius: 10px 0 0 10px; }
.plc td:last-child { border-right: 1px solid var(--line); border-radius: 0 10px 10px 0; }
.plc .sel { font-weight: 700; } .plc td.num { font-weight: 700; color: var(--blue); } .plc td.pos { color: var(--win); }
[dir='rtl'] .plc th, [dir='rtl'] .plc td { text-align: right; } [dir='rtl'] .plc th.num, [dir='rtl'] .plc td.num { text-align: left; }
[dir='rtl'] .plc td:first-child { border-radius: 0 10px 10px 0; } [dir='rtl'] .plc td:last-child { border-radius: 10px 0 0 10px; }
.case-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.case { padding: 15px; border-radius: var(--r); text-align: center; background: var(--surface-2); border: 1px solid var(--line); }
.case .k { font-size: 11.5px; color: var(--ink-2); } .case .v { font-family: var(--mono); font-size: 1.45rem; font-weight: 800; margin-top: 5px; }
.case.worst .v { color: var(--warn); } .case.best .v { color: var(--win); } .case.total .v { color: var(--blue); }
.case-roi { font-size: 11px; font-weight: 800; margin-top: 4px; } .case-roi.up { color: var(--win); } .case-roi.down { color: var(--loss); }

/* ---------- AI deck ---------- */
.deck-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(20,33,58,.42); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s ease; }
.deck { width: 100%; max-width: 860px; max-height: 92vh; overflow-y: auto; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-lg); animation: deckIn .45s var(--ease-out); }
.deck-top { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 3; }
.deck-top .brand-tx b { font-size: 15px; }
.deck-x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; transition: all .15s; } .deck-x:hover { background: var(--surface-3); color: var(--ink); }
[dir='rtl'] .deck-x { margin-left: 0; margin-right: auto; }
.deck-body { padding: 24px; }
.compile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 0 30px; }
.compile-logo { position: relative; width: 90px; height: 90px; display: grid; place-items: center; margin-bottom: 18px; } .compile-logo svg { animation: floaty 2.6s ease-in-out infinite; }
.compile-ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid transparent; border-top-color: var(--blue); border-right-color: var(--teal); animation: spin 1.1s linear infinite; }
.compile-match { font-size: 15px; color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.compile-status { font-weight: 700; color: var(--blue); font-size: 15px; min-height: 22px; animation: statusPulse 1.4s ease-in-out infinite; }
.compile-bar { width: min(320px, 80%); height: 5px; border-radius: 5px; background: var(--surface-2); margin-top: 18px; overflow: hidden; }
.compile-bar span { display: block; height: 100%; width: 40%; border-radius: 5px; background: var(--grad); animation: slide 1.3s var(--ease-out) infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } } @keyframes statusPulse { 50% { opacity: .55; } } @keyframes slide { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
.deck-hero { text-align: center; padding: 6px 0 8px; }
.dh-badges { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 12px; }
.dh-badge { width: 62px; height: 62px; display: grid; place-items: center; animation: badgeIn .6s var(--ease) both; } .dh-badge:last-child { animation-delay: .1s; }
.dh-badge img { width: 62px; height: 62px; object-fit: contain; } .dh-badge .badge-mono { width: 62px; height: 62px; border-radius: 16px; font-size: 18px; }
.dh-vs { font-size: 14px; color: var(--ink-3); font-weight: 700; } .dh-teams { font-size: 14px; color: var(--ink-2); font-weight: 600; } .dh-venue { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.deck-headline { font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.65rem); letter-spacing: -0.02em; line-height: 1.15; margin-top: 12px; }
.conf { display: inline-flex; align-items: center; gap: 13px; margin-top: 16px; }
.conf-ring { --p: 0; width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--blue) calc(var(--p) * 1%), var(--surface-3) 0); transition: --p 1.1s var(--ease-out); }
.conf-ring i { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--mono); font-weight: 800; color: var(--blue); font-size: 16px; font-style: normal; }
.conf-tx { font-size: 12px; color: var(--ink-2); text-align: left; line-height: 1.3; } .conf-tx b { color: var(--ink); font-size: 14px; } [dir='rtl'] .conf-tx { text-align: right; }
.deck-read { margin: 18px 0 4px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; }
.kstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kstat { padding: 15px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); } .kstat .k { font-size: 11.5px; color: var(--ink-2); } .kstat .v { font-family: var(--mono); font-size: 1.4rem; font-weight: 800; color: var(--blue); margin-top: 4px; letter-spacing: -0.02em; }
.hedge-strat { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-radius: var(--r); background: var(--grad-soft); border: 1px solid #d7e6ff; margin-bottom: 12px; color: var(--ink); } .hedge-strat .ic { color: var(--blue); flex: none; }
.verdict { margin-top: 12px; padding: 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); display: flex; gap: 12px; color: var(--ink); } .verdict .ic { color: var(--blue); flex: none; }
.deck-news { display: grid; gap: 8px; }
.dn { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; } .dn:hover { border-color: var(--blue); }
.dn-src { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--teal); } .dn-t { font-size: 13px; color: var(--ink); }
.deck-actions { display: flex; gap: 10px; margin-top: 20px; }
/* result modal (full-time highlights + news) */
.res-score { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 8px 0 16px; }
.res-score b { font-size: 2rem; color: var(--ink); } .res-score .badge, .res-score .badge img { width: 54px; height: 54px; } .res-score .badge .badge-mono { width: 54px; height: 54px; border-radius: 14px; font-size: 16px; }
.res-scorers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.res-scorers span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; } .res-scorers .ic { color: var(--amber); }
.res-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000; }
.res-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* team follow + my teams */
.team-row { display: flex; align-items: center; gap: 8px; }
.team-row .tr-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.star { flex: none; display: inline-flex; align-items: center; gap: 6px; width: 40px; height: 40px; justify-content: center; border-radius: 10px; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); transition: all .15s; }
.star:hover { color: var(--amber); border-color: var(--amber); } .star.on { color: #fff; background: var(--amber); border-color: var(--amber); }
.star .ic { fill: none; } .star.on .ic { fill: #fff; }
.star.sm { width: auto; height: 30px; padding: 0 12px; font-size: 12px; font-weight: 700; border-radius: 999px; margin-top: 6px; }
.deck-star { width: 40px; height: 40px; margin-left: auto; } [dir='rtl'] .deck-star { margin-left: 0; margin-right: auto; } .deck-star + .deck-x { margin-left: 8px; } [dir='rtl'] .deck-star + .deck-x { margin-left: 0; margin-right: 8px; }
.myteams { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 4px; }
.mt-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); font-weight: 700; font-size: 13px; color: var(--ink); transition: all .15s; }
[dir='rtl'] .mt-chip { padding: 7px 8px 7px 14px; }
.mt-chip:hover { border-color: var(--blue); transform: translateY(-1px); }

/* top pick */
.toppick { margin: 18px 0 4px; padding: 16px 18px; border-radius: var(--r); background: linear-gradient(120deg, rgba(31,107,255,.1), rgba(18,194,194,.08)); border: 1px solid #cfe0ff; }
.tp-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); margin-bottom: 8px; } .tp-tag .ic { color: var(--blue); }
.tp-main { font-size: 1.12rem; font-weight: 800; color: var(--ink); } .tp-mk { font-size: 12px; color: var(--ink-3); font-weight: 600; } .tp-odds { color: var(--blue); }
.tp-reason { font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }

/* THE VERDICT card — the clear "best bet", always works (local, no AI) */
.verdict-card { margin: 18px 0; padding: 22px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(31,107,255,.1), rgba(18,194,194,.07)); border: 1px solid #cfe0ff; box-shadow: var(--sh-sm); }
.verdict-card.high { border-color: rgba(18,161,80,.4); background: linear-gradient(135deg, rgba(18,161,80,.1), rgba(18,194,194,.06)); }
.vc-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 10px; } .verdict-card.high .vc-tag { color: var(--win); } .vc-tag .ic { color: currentColor; }
.vc-pick { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vc-sel { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.vc-odds { font-size: 1.2rem; font-weight: 800; color: var(--blue); }
.vc-conf { display: flex; align-items: center; gap: 10px; margin: 13px 0; }
.vc-bar { flex: 1; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; max-width: 240px; }
.vc-bar span { display: block; height: 100%; border-radius: 8px; background: var(--grad); transition: width .6s var(--ease-out); } .verdict-card.high .vc-bar span { background: linear-gradient(100deg, var(--win), #0fb59a); }
.vc-conf b { color: var(--ink); font-size: 15px; }
.vc-reason { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.vc-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* collapsible hedge section (secondary) */
.hedge-section { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-sm); overflow: hidden; }
.hs-sum { display: flex; align-items: center; gap: 10px; padding: 15px 18px; cursor: pointer; list-style: none; }
.hs-sum::-webkit-details-marker { display: none; }
.hs-sum h2 { font-size: 1.02rem; } .hs-sum .ic { color: var(--ink-2); }
.hs-hint { font-size: 12px; color: var(--ink-3); } .hs-sum::after { content: '▾'; margin-left: auto; color: var(--ink-3); font-size: 12px; transition: transform .2s; }
[dir='rtl'] .hs-sum::after { margin-left: 0; margin-right: auto; }
.hedge-section[open] .hs-sum::after { transform: rotate(180deg); }
.hs-body { padding: 0 18px 18px; }
.hs-body .builder { border: 0; box-shadow: none; padding: 0; }
.hs-body .odds-src { margin-left: 8px; } [dir='rtl'] .hs-body .odds-src { margin-left: 0; margin-right: 8px; }

/* legal doc */
.legal-doc { max-width: 640px; } .legal-body p { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; margin: 0 0 12px; } .legal-body p:first-child { color: var(--ink); font-weight: 600; }
.legal-link { color: var(--ink-2); font: inherit; font-size: 12px; text-decoration: none; padding: 0; cursor: pointer; } .legal-link:hover { color: var(--blue); }
.sk { border-radius: var(--r); background: linear-gradient(100deg, var(--surface-2) 30%, #eef4fb 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 12px; } .sk-tile { height: 76px; } .sk-row { height: 44px; margin: 8px 0; }

/* ---------- ledger / wallet ---------- */
.wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wallet-card { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); position: relative; }
.wallet-card.on { border-color: var(--blue); box-shadow: 0 8px 22px rgba(31,107,255,.18); }
.wallet-card .k { font-size: 12px; color: var(--ink-2); } .wallet-card .v { font-family: var(--mono); font-size: 1.9rem; font-weight: 800; color: var(--blue); margin-top: 5px; }
.wc-cur { position: absolute; top: 16px; right: 18px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); } [dir='rtl'] .wc-cur { right: auto; left: 18px; }
.bets { display: grid; gap: 11px; }
.bet { padding: 15px 17px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); border-left: 3px solid var(--ink-3); }
[dir='rtl'] .bet { border-left: 1px solid var(--line); border-right: 3px solid var(--ink-3); }
.bet.won { border-left-color: var(--win); } .bet.part { border-left-color: var(--warn); } .bet.lost { border-left-color: var(--loss); } .bet.wait { border-left-color: var(--blue); }
.bet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .bet-top b { font-weight: 700; color: var(--ink); }
.bet-badge { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.bet-badge.wait { background: var(--grad-soft); color: var(--blue); } .bet-badge.won { background: rgba(18,161,80,.14); color: var(--win); } .bet-badge.part { background: rgba(232,147,12,.16); color: var(--warn); } .bet-badge.lost { background: rgba(229,72,77,.13); color: var(--loss); }
.bet-sels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } .bet-sel { font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; color: var(--ink); } .bet-sel i { color: var(--blue); font-style: normal; }
.bet-foot { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--ink-2); } .bet-foot b { color: var(--ink); }

/* ---------- social leagues ---------- */
.lg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.lg-create, .lg-join { display: flex; gap: 8px; } .lg-create .inp, .lg-join .inp { flex: 1; }
.lg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.lg-card { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; padding: 15px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); text-align: left; transition: border-color .2s; }
[dir='rtl'] .lg-card { text-align: right; align-items: flex-end; }
.lg-card:hover, .lg-card.on { border-color: var(--blue); } .lg-card b { font-weight: 700; color: var(--ink); } .lg-card span { font-size: 11.5px; color: var(--ink-2); }
.lb { margin-top: 8px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.lb-title { font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 6px 10px; }
.lb-table th.num, .lb-table td.num { text-align: right; font-family: var(--mono); }
.lb-table td { padding: 10px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink); }
.lb-table tr.me td { background: var(--grad-soft); } .lb-table .rk { font-family: var(--mono); font-weight: 800; color: var(--blue); }
.lb-table .pos { color: var(--win); } .lb-table .neg { color: var(--loss); }
[dir='rtl'] .lb-table th, [dir='rtl'] .lb-table td { text-align: right; } [dir='rtl'] .lb-table th.num, [dir='rtl'] .lb-table td.num { text-align: left; }

/* ---------- settings ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.set-acct { display: flex; align-items: center; gap: 14px; margin-top: 12px; } .set-acct b { display: block; color: var(--ink); } .set-acct span { display: block; font-size: 12.5px; }
.badge-role { display: inline-block; margin-top: 5px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); background: var(--grad-soft); padding: 2px 8px; border-radius: 6px; }
.tg-row { display: flex; gap: 8px; } .tg-row .inp { flex: 1; }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; position: relative; background: var(--bg-grad); }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 30px 26px; text-align: center; animation: deckIn .5s var(--ease-out); }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; } .auth-brand b { font-size: 20px; display: block; letter-spacing: -.02em; color: var(--ink); } .auth-brand i { font-style: normal; font-size: 11px; color: var(--teal); }
.auth-brand div { text-align: left; } [dir='rtl'] .auth-brand div { text-align: right; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 11px; margin: 22px 0 16px; }
.auth-err { background: rgba(229,72,77,.1); border: 1px solid rgba(229,72,77,.3); color: var(--loss); border-radius: 11px; padding: 10px 13px; font-size: 13px; }
.auth-switch { font-size: 13.5px; color: var(--ink-2); }
.auth-note { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-3); } .auth-note .ic { color: var(--teal); }

/* ---------- ad ---------- */
.adbanner { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--r); background: linear-gradient(110deg, color-mix(in srgb, var(--g1) 14%, #fff), #fff); border: 1px solid var(--line); box-shadow: var(--sh-sm); position: relative; overflow: hidden; transition: transform .16s, box-shadow .2s; }
[dir='rtl'] .adbanner { text-align: right; } .adbanner:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.adbanner-label { position: absolute; top: 8px; right: 12px; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; } [dir='rtl'] .adbanner-label { right: auto; left: 12px; }
.adbanner-mock { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(160deg, var(--g2), var(--g1)); box-shadow: 0 6px 14px rgba(23,49,99,.2); }
.adbanner-copy { flex: 1; min-width: 0; } .adbanner-copy b { display: block; font-size: 15px; color: var(--ink); } .adbanner-copy span { font-size: 12.5px; color: var(--ink-2); }
.adbanner-cta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--blue); flex: none; } [dir='rtl'] .adbanner-cta .ic { transform: scaleX(-1); }

.ad-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(20,33,58,.5); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade .25s ease; }
.ad { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 14px; animation: deckIn .5s var(--ease-out); overflow: hidden; text-align: initial; }
.ad-topbar { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.ad-label { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); padding: 2px 8px; border-radius: 5px; }
.ad-brand-sm { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.ad-creative { border-radius: 18px; padding: 30px 24px; background: linear-gradient(150deg, var(--g1), color-mix(in srgb, var(--g2) 70%, #000)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; position: relative; overflow: hidden; }
.ad-creative::after { content: ''; position: absolute; inset: 0; background: radial-gradient(300px 120px at 70% 0, rgba(255,255,255,.2), transparent 70%); pointer-events: none; }
.ad-sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-120%); animation: adSheen 2.8s var(--ease-out) infinite; pointer-events: none; }
@keyframes adSheen { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.ad-mock { animation: adFloat 2.4s ease-in-out infinite; }
@keyframes adFloat { 50% { transform: translateY(-7px) rotate(-4deg); } }
.ad-brand { animation: adIn .55s var(--ease-out) both .1s; }
.ad-creative-copy p { animation: adIn .55s var(--ease-out) both .25s; }
.ad-cta { animation: adIn .55s var(--ease-out) both .4s, adPulse 1.8s ease-in-out 1.2s infinite; }
@keyframes adIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes adPulse { 50% { transform: scale(1.06); } }
.adbanner-mock { animation: adFloat 3s ease-in-out infinite; }
.ad-mock { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 40px; background: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px rgba(0,0,0,.25); position: relative; }
.ad-creative-copy { position: relative; } .ad-brand { font-family: var(--mono); font-weight: 800; font-size: 1.8rem; color: #fff; letter-spacing: -.02em; display: block; } .ad-creative-copy p { color: rgba(255,255,255,.94); font-size: 14px; margin: 6px 0 14px; }
.ad-cta { display: inline-block; background: #fff; color: #111; font-weight: 800; font-size: 13px; padding: 9px 20px; border-radius: 999px; }
.ad-progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 14px 2px 0; }
.ad-fill { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 4px; }
.ad-fill.run { animation: adFill 6s linear forwards; } .ad-fill.done { width: 100%; }
@keyframes adFill { to { width: 100%; } }
.ad-lock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.2s infinite; display: inline-block; }
.ad-ready.playing { color: var(--live); font-weight: 700; }
.ad-view:disabled { opacity: .7; } .ad-count-t { font-variant-numeric: tabular-nums; }
.ad-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 2px; }
.ad-ready { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); } .ad-ready .ic { color: var(--win); }
.ad-foot .btn { height: 46px; } [dir='rtl'] .ad-foot .btn .ic { transform: scaleX(-1); }

/* ---------- IPTV ---------- */
.iptv { width: 100%; max-width: 900px; border-radius: var(--r-lg); background: #06121f; border: 1px solid var(--line); box-shadow: var(--sh-lg); overflow: hidden; animation: deckIn .5s var(--ease-out); }
.iptv .deck-top { background: #0a1826; border-color: rgba(255,255,255,.08); } .iptv .deck-top .brand-tx b, .iptv .deck-top .brand-tx i { color: #fff; }
.iptv-body { padding: 0; display: grid; place-items: center; min-height: 300px; } .iptv-body video { width: 100%; max-height: 70vh; background: #000; display: block; }
.iptv-meta { padding: 12px 18px; font-size: 12.5px; color: #b8c4d4; width: 100%; background: #0a1826; } .iptv-meta b { color: #fff; }

/* ---------- footer / toast ---------- */
.legal { margin-top: 36px; padding: 20px 0 10px; border-top: 1px solid var(--line); }
.auth .legal { position: relative; z-index: 1; width: 100%; max-width: 620px; text-align: center; }
.legal-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; font-size: 12px; color: var(--ink-3); }
.legal-in a { color: var(--ink-2); text-decoration: none; } .legal-in a:hover { color: var(--blue); } .legal-in .ga { color: var(--teal); font-weight: 700; } .legal-sep { opacity: .5; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--sh-lg); animation: rise .3s var(--ease); }

/* ---------- animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) translateX(-50%); } }
@keyframes deckIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } }
@keyframes badgeIn { from { opacity: 0; transform: scale(.6) translateY(8px); } }
.view { animation: viewIn .3s var(--ease-out); } @keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.reveal { animation: reveal .45s var(--ease-out) both; animation-delay: var(--d, 0s); }
.reveal2 { animation: reveal .4s var(--ease-out) both; animation-delay: var(--d, 0s); }

/* ---------- mobile ---------- */
.mtop { display: none; }
@media (max-width: 860px) {
  .shell { flex-direction: column; } .sidebar { display: none; }
  .mtop { display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-top,0px)); border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
  .mtop .brand-tx i { display: none; } .mtop-bal { margin-left: auto; color: var(--blue); font-weight: 800; } [dir='rtl'] .mtop-bal { margin-left: 0; margin-right: auto; }
  .mtop .m-lang { margin-left: 8px; } [dir='rtl'] .mtop .m-lang { margin-left: 0; margin-right: 8px; }
  .main { padding: 18px 14px calc(94px + var(--safe-b)); overflow-x: hidden; }
  .mbar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 8px; right: 8px; bottom: max(8px, var(--safe-b)); z-index: 30; height: 60px; padding: 6px 3px; gap: 1px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(23,49,99,.16); }
  .mbar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; color: var(--ink-3); font-size: 9px; font-weight: 700; min-width: 0; }
  .mbar-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mbar-item .ic { width: 19px; height: 19px; } .mbar-item.on { color: var(--blue); background: var(--grad-soft); }
  .home-actions { grid-template-columns: 1fr; } .tg-btn { flex-direction: row; padding: 14px; }
  .rc-bar { grid-template-columns: 1fr; } .lg-actions { grid-template-columns: 1fr; } .wallet { grid-template-columns: 1fr; } .set-grid { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 1fr; } .sk-grid { grid-template-columns: 1fr 1fr; }
  .deck-body { padding: 18px; } .consult-btn { width: 100%; } .league-grid { grid-template-columns: 1fr; }
  .matchup { padding: 20px 12px; gap: 6px; } .mu-team b { font-size: 13px; } .m-side b { font-size: 13px; }
  .lb-table th:nth-child(4), .lb-table td:nth-child(4) { display: none; }
  .ad-brand { font-size: 1.5rem; } .plan-line { font-size: 14px; }
}
@media (min-width: 861px) { .mbar { display: none; } }
#app, .shell, .auth { max-width: 100vw; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { *, *::after, *::before { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
