/* css/03-refinements.css — override passes: premium density, identity, pass 3 (MUST stay after base+components) */
/* =====================================================================
   PREMIUM DENSITY LAYER
   Restrained rounding, small controls, tighter rows, calmer shadows,
   clear scan paths. Leans bet365 — deliberately not SaaS-round.
   (Loaded last so single-class rules win by source order.)
   ===================================================================== */
:root{ --r:3px; --r-md:4px; --r-sm:2px; }
body{font-size:13px}

/* rounding — sharp and controlled */
.nav-btn,.btn-deposit,.topbar-search,.side-search,.side-item,.nation,.league,.tf,.sport-tab,.mkt-tab,
.mkt-viewtab,.tool-btn,.odd,.mkt-pick,.dd-actions .mini,.dd-item,.amt-opt,.plan-check,.bs-modes button,
.bs-tools button,.bs-sel .stake input,.bs-sel .chip,.btn-bet,.pred-cat,.pred-search,.live-sportchip,
.pred-select,.pd-buy,.pd-yn button,.pd-field input,.pd-payout,.pd-trade-btn,.modal-btn,.toast,
.tabs2 button,.cashout,.sort-opt,.pd-range,.pd-back{border-radius:var(--r)}
.comp,.modal,.dropdown,.dd-bal,.offers,.sort-menu,.pred-card,.pred-hold,.pd-main,.pd-trade,.pd-outcome,
.pd-rules,.pd-chart-box,.bet-card,.bs-sel,.bs-multi,#betslip,.pd-side .pd-trade,.avatar,.rail-ico .glyph{border-radius:var(--r-md)}
.count,.badge,.league .cbx,.soon,.demo-badge,.pc-yes,.pc-no,.rail-ico .cnt,.bs-head .cnt,.live-sportchip .cnt,
.match-drop,.tabs2,.bs-modes,.stat-bar,.stat-bar .a,.stat-bar .b,.pc-single .bar,.pc-single .bar .fill{border-radius:var(--r-sm)}

/* top bar — tight controls, no glow, no bounce */
#topbar{height:56px;background-image:linear-gradient(90deg,rgba(28,135,91,.10),transparent 60%)}
.logo{font-size:23px}
.nav-btn{padding:8px 13px;font-size:13px;font-weight:600}
.nav-btn.active::after{height:2px;left:9px;right:9px;bottom:-1px}
.btn-deposit{padding:8px 14px;font-size:12px;font-weight:700;box-shadow:none;border:1px solid rgba(255,255,255,.10)}
.btn-deposit:hover{transform:none;filter:brightness(1.06)}
.bal-pill .amt{font-size:13.5px}.bal-pill .lbl{font-size:8.5px}
.topbar-search{padding:6px 10px;width:186px}.topbar-search:focus-within{width:216px}
.avatar{width:33px;height:33px;font-size:12.5px;border-width:1px}
.topbar-right{gap:10px}

/* sticky offsets follow the shorter bar */
.sidebar,.right-side,.pd-side{top:56px}
.sidebar,.right-side{max-height:calc(100vh - 56px);min-height:calc(100vh - 56px)}
#app{min-height:calc(100vh - 56px)}

/* sidebar — denser */
.sidebar{padding:8px 7px}
.side-item{padding:8px 9px;font-size:13px;font-weight:600}
.side-item .ico{font-size:16px;width:20px}
.side-item.active::before{width:2px}
.side-item .count,.count{font-size:10px;padding:1px 6px;font-weight:700}
.nation{padding:6px 9px 6px 26px;font-size:12px}
.league{padding:5px 9px 5px 42px;font-size:11.5px}
.side-label{margin:6px 8px 3px}

/* match rows — compact, gridded, sharp */
.main{padding:12px 14px}
.feed-head h1{font-size:16px}
.comp{margin-bottom:9px}
.comp-head{padding:8px 12px;font-size:12px;font-weight:700}
.col-head{padding:4px 12px;font-size:10px}
.match-main{padding:7px 12px}
.match-teams .t{font-size:12.5px;line-height:1.45;font-weight:600}
.match-meta{font-size:10.5px;margin-top:1px}
.match-drop{width:20px;height:20px;font-size:10px}
.odd{padding:7px 3px;font-size:12.5px;border:1px solid var(--line);gap:0}
.odd:hover{background:var(--odds-hover);border-color:var(--green-2);transform:none}
.odd .k{font-size:8.5px}
.match-fav{font-size:13px}

/* controls — small, restrained */
.tf{padding:5px 11px;font-size:11.5px}
.sport-tab{padding:7px 12px;font-size:12.5px}
.mkt-viewtab,.tool-btn{padding:6px 11px;font-size:12px}
.mkt-tab{padding:5px 11px;font-size:11.5px}
.mkt-pick{padding:9px 11px;font-size:12px}
.mkt-block h4{font-size:11px}

/* LIVE — horizontal sport bar on top (below funded.bet bar, above feed) */
.live-main{padding:12px 14px}
.live-sportsbar{display:flex;gap:6px;overflow-x:auto;align-items:center;padding:9px 14px;
  border-bottom:1px solid var(--line);background:var(--bg-2);position:sticky;top:56px;z-index:25}
.live-sportchip{display:flex;align-items:center;gap:7px;padding:7px 12px;background:var(--panel);
  border:1px solid var(--line);font-size:12.5px;font-weight:600;color:var(--txt-2);white-space:nowrap;
  cursor:pointer;transition:.12s;flex:none}
.live-sportchip:hover{border-color:var(--green-2);color:var(--txt)}
.live-sportchip.active{background:var(--green);color:#fff;border-color:var(--green)}
.live-sportchip .g{font-size:15px}
.live-sportchip .cnt{background:var(--live);color:#fff;font-size:9px;font-weight:800;padding:0 5px;min-width:15px;text-align:center}
.live-toolbar h1{font-size:15px}

/* right sidebar / my bets — denser */
.mybets{padding:12px 14px;border-top-width:5px}
.mybets h3{font-size:12.5px}
.bet-card{padding:10px;font-size:12px}
.tabs2 button{padding:6px;font-size:12px}
.rs-scoreboard{padding:12px 14px 8px}
.rs-tab{padding:8px;font-size:11.5px}
.offers{margin:0 14px 14px;padding:12px}

/* betslip — accessible, not dominating; flat serious header w/ green accent */
#betslip{width:318px;box-shadow:0 10px 28px rgba(0,0,0,.42)}
.bs-head{background:var(--panel-3);color:var(--txt);border-top:2px solid var(--green-2);padding:10px 12px}
.bs-head .ic{font-size:16px}.bs-head .odds{color:var(--green-2);font-size:15px}
.bs-head .mn button{color:var(--txt-2)}
.bs-modes{margin:10px;padding:3px}
.bs-modes button{padding:7px;font-size:12px}
.bs-tools{padding:0 10px 9px}.bs-tools button{padding:7px;font-size:11px}
.bs-body{padding:0 10px}.bs-sel{padding:10px}
.btn-bet{padding:11px;font-size:14px;box-shadow:none}

/* dropdown / modal — calmer */
.dropdown{box-shadow:0 12px 32px rgba(0,0,0,.42);padding:12px}
.dd-item{padding:8px 10px;font-size:12.5px}
.modal{padding:20px}.modal h2{font-size:17px}
.amt-opt{padding:12px;font-size:14px}
.modal-btn,.pd-trade-btn{box-shadow:none}

/* predictions — keep identity but calmer, denser, no bounce */
.pred-wrap{padding:16px 18px 50px}
.pred-hold{padding:14px 16px}.pred-hold .amt{font-size:23px}
.pred-cat{padding:7px 13px;font-size:12.5px}
.pred-card{padding:13px}
.pred-card:hover{transform:none;box-shadow:none;border-color:var(--line-2)}
.pc-icon{width:40px;height:40px;font-size:20px}
.pc-title{font-size:13.5px}
.pc-yes,.pc-no{padding:6px 0}
.pd-buy,.pd-yn button{box-shadow:none}
.pd-head h2{font-size:20px}
.pd-outcome{padding:12px 14px}
.odd .up,.odd .down{animation-duration:.5s}

/* =====================================================================
   IDENTITY REFINEMENT
   funded.bet look (emerald-noir), roomier rows, softer/bigger controls,
   clean toggle-style live bar, real flags + team shirts, Asian combo view.
   ===================================================================== */
:root{ --r:6px; --r-md:9px; --r-sm:4px; }
/* premium neutral near-black — cool, restrained; green is an ACCENT only */
html[data-theme="dark"]{
  --bg:#0a0c10; --bg-2:#0e1116; --panel:#13161c; --panel-2:#171b22; --panel-3:#1e232c;
  --line:#232932; --line-2:#323945; --txt:#f0f2f6; --txt-2:#a4aab7; --txt-3:#6b7280;
  --odds-bg:#181c24; --odds-hover:#222834; --topbar:#0b0d12; --shadow:rgba(0,0,0,.55);
}
/* clean top bar — no colour wash */
#topbar{background-image:none;border-bottom:1px solid var(--line)}

/* rounding — comfortable medium (not pill, not sharp) */
.comp,.modal,.dropdown,.pred-card,.pred-hold,.pd-main,.pd-trade,.pd-outcome,.pd-rules,.pd-chart-box,
.bet-card,.bs-sel,.bs-multi,#betslip,.offers,.sort-menu,.dd-bal{border-radius:var(--r-md)}
.nav-btn,.btn-deposit,.odd,.mkt-pick,.tf,.sport-tab,.mkt-viewtab,.tool-btn,.mkt-tab,.pred-cat,
.amt-opt,.btn-bet,.modal-btn,.pd-buy,.pd-trade-btn,.bs-modes button,.side-item,.dd-item,
.pred-search,.pred-select,.pd-field input,.pd-yn button{border-radius:var(--r)}

/* bigger, cleaner controls */
.nav-btn{padding:9px 16px;font-size:13.5px}
.btn-deposit{padding:9px 17px;font-size:13px}
.odd{padding:9px 5px;font-size:13px}
.tf{padding:7px 13px;font-size:12px}
.sport-tab{padding:9px 14px;font-size:13px}
.mkt-viewtab{padding:8px 14px;font-size:12.5px}
.tool-btn{padding:8px 13px;font-size:12.5px}
.mkt-pick{padding:11px 13px;font-size:12.5px}

/* roomier match rows — breaks the "crammed on the left" feel */
.comp{margin-bottom:11px}
.col-head,.match-main{gap:8px}
.col-head{padding:6px 16px}
.match-main{padding:12px 16px}
.match-info{gap:13px}
.match-teams{flex:1;min-width:0}
.match-teams .t{display:grid;grid-template-columns:18px 1fr;align-items:center;gap:7px;font-size:13.5px;line-height:1.75}
.match-teams .t .tn{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.match-meta{margin-top:3px;font-size:11px}
.match-drop{width:22px;height:22px}

/* real flags + team shirts */
.flag{width:22px;height:16px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(0,0,0,.3);
  flex:none;display:inline-block;vertical-align:-3px}
.flag-badge{width:auto;height:auto;box-shadow:none;font-size:15px;vertical-align:-1px}
.shirt{flex:none;vertical-align:-3px}

/* competition header — clean, no coloured strip */
.comp-head{border-left:none}
/* keep the side-item active highlight neutral, not green-washed */
.side-item.active{background:var(--panel-3)}
.side-item.active::before{background:var(--green-2)}

/* LIVE sports bar — clean toggle strip: icon on top, label below, no fill, no badge */
.live-sportsbar{gap:0;padding:0 6px;align-items:stretch}
.live-sportchip{flex-direction:column;align-items:center;gap:4px;padding:9px 15px 7px;background:none;
  border:none;border-bottom:2px solid transparent;color:var(--txt-3);font-size:10.5px;font-weight:600}
.live-sportchip .g{font-size:23px;line-height:1;filter:grayscale(1);opacity:.68;transition:.14s}
.live-sportchip:hover{color:var(--txt-2);background:none}
.live-sportchip:hover .g{opacity:.95;filter:grayscale(.3)}
.live-sportchip.active{color:var(--txt);border-bottom-color:var(--green-2);background:none}
.live-sportchip.active .g{filter:none;opacity:1}

/* collapse + sort pushed to the right of the live toolbar */
.live-toolbar h1{margin-right:auto}

/* Asian view — Handicap + Goal Line together (4 price cells) */
.col-head.asian5,.match-main.asian5{grid-template-columns:1fr repeat(4,58px) 22px}
/* ---- CONTAIN THE PAGE on large screens (breathing room both sides, like Predictions) ---- */
/* single content width for the whole app — wider, closer to bet365 */
:root{--page:1600px}
.layout,.live-grid,.live-sportsbar,.home,.pred-wrap,.topbar-inner{max-width:var(--page);margin:0 auto}
/* minmax(0,1fr) lets the main column SHRINK instead of overflowing past the box */
.layout{grid-template-columns:280px minmax(0,1fr)}
.main,#sportsMain,.home,.live-main,#liveInner{min-width:0}
.live-grid{grid-template-columns:minmax(0,1fr) 340px !important}
/* top bar content shares the SAME centred width as the page:
   logo left · nav dead-centre · account pinned to the right edge */
#topbar{padding:0;gap:0}
.topbar-inner{position:relative;width:100%;height:100%;display:flex;align-items:center;gap:16px;padding:0 20px}
.nav-center{position:absolute;left:50%;transform:translateX(-50%);margin:0}
.topbar-right{margin-left:auto}
.dropdown{right:calc(max(0px,(100vw - var(--page))/2) + 20px)}
@media(max-width:900px){.nav-center{position:static;transform:none;margin:0 auto}.topbar-search{margin-left:0}}

/* row grid: teams | SCORE (sits by the odds) | 1 X 2 | fav */
.col-head,.match-main{grid-template-columns:1fr 32px repeat(3,72px) 26px}
.odd{padding:9px 4px}
.match-score{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;
  font-weight:800;font-variant-numeric:tabular-nums;color:var(--txt);font-size:14px;line-height:1}
.match-score b{color:var(--txt)}

/* Asian view — Asian Handicap + Goal Line as two STACKED columns; odds coloured */
.col-head.asian2,.match-main.asian2{grid-template-columns:1fr 32px 122px 122px 26px}
.col-head.asian2 span:nth-child(3),.col-head.asian2 span:nth-child(4){text-align:center;font-size:10px}
/* Basketball main — Spread | Total | Money as three stacked columns */
.col-head.stk3,.match-main.stk3{grid-template-columns:1fr 32px repeat(3,86px) 26px}
.col-head.stk3 span:nth-child(3),.col-head.stk3 span:nth-child(4),.col-head.stk3 span:nth-child(5){text-align:center;font-size:10px}
.stk-col{display:flex;flex-direction:column;gap:6px}
.odd.stk{flex-direction:column;gap:1px;align-items:center;padding:6px 6px}
.odd.stk .k{font-size:9.5px;color:var(--txt-3);font-weight:600}
.odd.stk .ov{color:var(--gold);font-weight:800;font-size:13.5px}
.odd.stk.sel .k,.odd.stk.sel .ov{color:#fff}

@media(max-width:700px){
  .col-head,.match-main{grid-template-columns:1fr repeat(3,1fr) 20px}
  .col-head.asian2,.match-main.asian2{grid-template-columns:1fr 1fr 1fr 16px}
  .match-score{display:none}
  .col-head span:nth-child(2){display:none}
  .odd{padding:6px 2px;font-size:11.5px}
  .match-teams .t{font-size:12px}
  .match-main{padding:8px 10px;gap:4px}
  .match-info{gap:8px}
  .match-drop{display:none}
  .match-fav{font-size:12px}
}

/* =====================================================================
   PASS 3 — toggle tabs, coloured odds, compact + monochrome controls,
   shirt-tinted stats, All-Sports lobby
   ===================================================================== */
/* live market row → toggle tabs (like In-Play / Predictions nav), not buttons */
.mkt-viewtabs{border-bottom:1px solid var(--line);gap:0;margin-bottom:10px}
.mkt-viewtab{background:none;border:none;border-radius:0;border-bottom:2px solid transparent;
  padding:9px 13px;color:var(--txt-3);font-weight:600}
.mkt-viewtab:hover{background:none;color:var(--txt-2);border-color:transparent}
.mkt-viewtab.active{background:none;color:var(--txt);border-bottom-color:var(--green-2)}

/* ALL odds numbers in a distinct colour (label stays muted) */
.odd,.mkt-pick .o{color:var(--gold-2)}
.odd .k{color:var(--txt-3)}
.odd.sel{color:#fff}.odd.sel .k{color:rgba(255,255,255,.85)}
.mkt-pick.sel .o{color:#fff}
.b-odd .now{color:var(--gold-2)}
/* 2-outcome markets (no draw): two larger buttons spanning the odds area, no blank middle */
.odds2{grid-column:span 3;display:flex;gap:6px}
.odds2 .odd{flex:1}

/* compact, premium controls */
.nav-btn{padding:7px 12px;font-size:13px}
.btn-deposit{padding:7px 14px;font-size:12.5px}
.tf{padding:6px 11px;font-size:11.5px}
.sport-tab{padding:7px 11px;font-size:12.5px}
.tool-btn{padding:7px 10px;font-size:12px}
.tool-btn.ico{width:34px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:15px}
.pred-cat{padding:7px 13px;font-size:12.5px}

/* monochrome sport icons (sidebar + live bar) for a premium, restrained feel */
.side-item .ico{filter:grayscale(1);opacity:.7;transition:.12s}
.side-item:hover .ico,.side-item.active .ico{filter:grayscale(.15);opacity:1}
.live-sportchip{padding:8px 13px 6px}
.live-sportchip .g{font-size:21px}

/* stats legend + tighter bars */
.rs-legend{display:flex;justify-content:space-between;font-size:10.5px;color:rgba(255,255,255,.7);margin-bottom:10px}
.rs-legend i{display:inline-block;width:9px;height:9px;border-radius:2px;margin:0 5px;vertical-align:middle}
/* basketball court (wood) + quarter box-score */
.rs-court{height:96px;margin:12px 12px 0;border-radius:var(--r);position:relative;overflow:hidden;
  background:repeating-linear-gradient(90deg,#4d3620 0 26px,#473019 26px 52px);border:1px solid rgba(255,255,255,.12)}
.rs-court::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:rgba(255,255,255,.35)}
.rs-court .cc{position:absolute;left:50%;top:50%;width:30px;height:30px;border:1px solid rgba(255,255,255,.4);border-radius:50%;transform:translate(-50%,-50%)}
.rs-court .key{position:absolute;top:28%;bottom:28%;width:26px;border:1px solid rgba(255,255,255,.35)}
.rs-court .kl{left:0;border-left:none}.rs-court .kr{right:0;border-right:none}
.rs-court .hoop{position:absolute;top:50%;width:7px;height:7px;border:2px solid #e8863b;border-radius:50%;transform:translateY(-50%)}
.rs-court .hoop.l{left:7px}.rs-court .hoop.r{right:7px}
.rs-court .ball{position:absolute;width:8px;height:8px;background:#e8863b;border-radius:50%;top:50%;left:58%;box-shadow:0 0 7px #e8863b}
.bk-q{width:100%;border-collapse:collapse;margin:6px 0 12px;font-size:12px;color:rgba(255,255,255,.85)}
.bk-q th{color:var(--txt-3);font-weight:600;font-size:10px;padding:4px 0;text-align:center}
.bk-q th.nm,.bk-q td.nm{text-align:left}
.bk-q td{text-align:center;padding:5px 0}
.bk-q td.nm{font-weight:600;color:#fff}
.bk-q td.nm i{width:8px;height:8px;border-radius:2px;display:inline-block;margin-right:6px;vertical-align:middle}
.bk-q td.tt{color:var(--gold);font-weight:800}
/* tennis court */
.rs-tennis{height:96px;margin:12px 12px 0;border-radius:var(--r);position:relative;overflow:hidden;
  background:linear-gradient(180deg,#1f5f8a,#1a5075);border:1px solid rgba(255,255,255,.14)}
.rs-tennis::before,.rs-tennis::after{content:"";position:absolute;top:8px;bottom:8px;border:1px solid rgba(255,255,255,.5)}
.rs-tennis::before{left:14px;right:14px}
.rs-tennis::after{left:50%;top:50%;width:0;height:0;border:none}
.rs-tennis .net{position:absolute;left:50%;top:4px;bottom:4px;width:2px;background:rgba(255,255,255,.8);transform:translateX(-50%)}
.rs-tennis .svc{position:absolute;top:30%;bottom:30%;width:1px;background:rgba(255,255,255,.45)}
.rs-tennis .sl{left:32%}.rs-tennis .sr{right:32%}
.rs-tennis .ball{position:absolute;width:7px;height:7px;background:#d7f542;border-radius:50%;top:46%;left:44%;box-shadow:0 0 7px #d7f542}
/* neutral arena for other sports */
.rs-arena{height:78px;margin:12px 12px 0;border-radius:var(--r);display:flex;align-items:center;justify-content:center;
  font-size:34px;filter:grayscale(.4);background:radial-gradient(circle at 50% 35%,var(--panel-3),var(--panel));
  border:1px solid var(--line)}

/* ---- ALL SPORTS LOBBY ---- */
.home{max-width:var(--page);margin:0 auto;padding:16px 20px 50px}
.home-search{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line);
  border-radius:var(--r-md);padding:13px 16px;margin-bottom:14px;color:var(--txt-3)}
.home-search input{background:none;border:none;outline:none;color:var(--txt);width:100%;font-size:15px}
.home-chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:12px;margin-bottom:16px}
.home-chip{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:74px;padding:11px 10px;
  background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md);font-size:11px;font-weight:600;
  color:var(--txt-2);cursor:pointer;transition:.12s;flex:none}
.home-chip:hover{border-color:var(--green-2);color:var(--txt)}
.home-chip .g{font-size:21px;filter:grayscale(1);opacity:.8}
.home-chip:hover .g{filter:grayscale(.1);opacity:1}
.promos{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}
.promo{border-radius:var(--r-md);padding:18px;min-height:126px;border:1px solid var(--line);
  display:flex;flex-direction:column;justify-content:space-between}
.promo.p1{background:linear-gradient(135deg,#123420,#0c1c13)}
.promo.p2{background:linear-gradient(135deg,#182640,#0e1626)}
.promo.p3{background:linear-gradient(135deg,#392913,#1e1509)}
.promo h3{font-size:17px;font-weight:800;margin-bottom:4px}
.promo p{font-size:12px;color:var(--txt-2);line-height:1.5}
.promo .cta{align-self:flex-start;margin-top:12px;background:var(--gold);color:#191919;font-weight:800;
  font-size:12px;padding:8px 15px;border-radius:var(--r)}
.home-h{display:flex;align-items:center;justify-content:space-between;margin:6px 0 12px}
.home-h h2{font-size:16px;font-weight:800}
.home-h a{font-size:12px;color:var(--green-2);font-weight:600;cursor:pointer}
.boost-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}
.boost{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md);padding:14px}
.boost .boost-tag{display:inline-flex;align-items:center;gap:5px;color:var(--gold);font-size:10.5px;font-weight:800;
  letter-spacing:.4px;margin-bottom:9px}
.boost .lg{font-size:11px;color:var(--txt-3);font-weight:600;margin-bottom:7px;display:flex;align-items:center;gap:7px}
.boost .mt{font-weight:700;font-size:13.5px;margin-bottom:12px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.boost .odds-row{display:flex;gap:8px}
.b-odd{flex:1;background:var(--odds-bg);border:1px solid var(--line);border-radius:var(--r);padding:8px 6px;
  text-align:center;transition:.1s}
.b-odd:hover{border-color:var(--green-2)}
.b-odd .k{font-size:10px;color:var(--txt-3);display:block;margin-bottom:3px}
.b-odd .was{font-size:10px;color:var(--txt-3);text-decoration:line-through;margin-right:5px}
.b-odd .now{font-weight:800}
/* Top Matches — slim premium cards with horizontal odds bars */
.tm-row{display:flex;gap:12px;overflow-x:auto;padding-bottom:10px;margin-bottom:20px}
.tm-card{min-width:250px;flex:none;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md);
  padding:12px 13px;display:flex;flex-direction:column;gap:11px;transition:.12s}
.tm-card:hover{border-color:var(--line-2)}
.tm-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--txt-3);gap:8px}
.tm-top .cmp{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.tm-top .tm-time{flex:none}
.tm-teams{display:flex;align-items:center;gap:8px}
.tm-team{flex:1;min-width:0;display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700}
.tm-team:last-of-type{flex-direction:row-reverse;text-align:right}
.tm-team span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-vs{flex:none;font-size:10px;font-weight:800;color:var(--txt-3);letter-spacing:.5px}
.tm-odds{display:flex;gap:6px}
.tm-odd{flex:1;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px 10px;
  background:var(--odds-bg);border:1px solid var(--line);border-radius:var(--r);font-size:12.5px;transition:.1s}
.tm-odd .k{color:var(--txt-3);font-weight:600}
.tm-odd .v{color:var(--gold-2);font-weight:800}
.tm-odd:hover{border-color:var(--green-2);background:var(--odds-hover)}
.tm-odd.sel{background:var(--green);border-color:var(--green)}.tm-odd.sel .k,.tm-odd.sel .v{color:#fff}
/* more compact table odds */
.odd{padding:6px 4px}
.odd.stk{padding:5px 6px}
/* monochrome line icons — crisp, colour via currentColor (no grayscale blur) */
.ic-svg{width:1.3em;height:1.3em;display:inline-block;vertical-align:-.2em}
.side-item .ico{filter:none;opacity:1;color:var(--txt-3);width:26px}
.side-item .ico .ic-svg{width:24px;height:24px}
.side-item:hover .ico{color:var(--txt-2)}
.side-item.active .ico{color:var(--green-2)}
.live-sportchip .g{filter:none;opacity:1}
.live-sportchip .g .ic-svg{width:28px;height:28px}
.live-sportchip.active .g{color:var(--green-2)}
.home-chip .g{filter:none;opacity:1;color:var(--txt-3)}
.home-chip .g .ic-svg{width:27px;height:27px}
.home-chip:hover .g{color:var(--green-2)}
.sport-tab .ic-svg{width:17px;height:17px;vertical-align:-3px}
.rs-arena .ic-svg{width:38px;height:38px}
.live-toolbar h1 .ic-svg{width:18px;height:18px;vertical-align:-3px;color:var(--txt-2)}
/* icons do ONE spin when their sport is selected (no continuous motion) */
.ic-svg{transform-origin:center}
@keyframes icoSpin{from{transform:rotate(0)}to{transform:rotate(360deg)}}
.ic-svg.spin{animation:icoSpin .55s ease}
/* A stick, a paddle and a controller all have a clear "up" — tumbling them like
   a ball reads as broken. Flip those about the vertical axis instead. */
@keyframes icoFlip{from{transform:perspective(220px) rotateY(0)}to{transform:perspective(220px) rotateY(360deg)}}
.ic-svg.ico-hockey.spin,.ic-svg.ico-tabletennis.spin,.ic-svg.ico-esports.spin{animation:icoFlip .6s ease}
@media(prefers-reduced-motion:reduce){.ic-svg.spin,
  .ic-svg.ico-hockey.spin,.ic-svg.ico-tabletennis.spin,.ic-svg.ico-esports.spin{animation:none}}
/* SHARPER buttons — crisp corners (raise specificity so they actually apply) */
.btn-deposit,#topbar .btn-deposit,.promo .cta,.cta,.nav-btn,.tf,.sport-tab,.mkt-viewtab,.tool-btn,
.pred-cat,.pred-select,.amt-opt,.modal-btn,.pd-buy,.pd-trade-btn,.bs-modes button,.tm-odd,.odd,
.b-odd,.mkt-pick,.tabs2 button,.cashout,.btn-bet,.pd-yn button,.pd-range,.pd-back,.mkt-tab,
.acca-add,.home-chip,.side-search,.home-search{border-radius:4px}
.promo .cta,.cta{padding:6px 15px;font-size:11.5px;font-weight:800;letter-spacing:.2px;border-radius:3px}
#topbar .btn-deposit{padding:6px 14px;font-size:12px;border-radius:3px}
/* LIGHT THEME: gold odds are unreadable on white → dark emerald */
html[data-theme="light"] .odd,
html[data-theme="light"] .tm-odd .v,
html[data-theme="light"] .odd.stk .ov,
html[data-theme="light"] .b-odd .now,
html[data-theme="light"] .mkt-pick .o,
html[data-theme="light"] .acca-leg .o{color:#0b6e46}
html[data-theme="light"] .odd.sel,html[data-theme="light"] .odd.sel .k,
html[data-theme="light"] .mkt-pick.sel .o,
html[data-theme="light"] .odd.stk.sel .ov,html[data-theme="light"] .odd.stk.sel .k{color:#fff}
/* the top bar and the promo cards are DARK in both themes → force light text on them */
#topbar .nav-btn{color:rgba(255,255,255,.72)}
#topbar .nav-btn:hover,#topbar .nav-btn.active{color:#fff}
#topbar .bal-pill .lbl{color:rgba(255,255,255,.5)}
.promo h3{color:#fff}
.promo p{color:rgba(255,255,255,.72)}
/* light-theme readability fixes */
html[data-theme="light"] .side-item.active{color:#12141a}
html[data-theme="light"] .side-item.active .ico{color:var(--green)}
html[data-theme="light"] .acca-tag{color:#8a6d00;background:rgba(180,140,0,.15)}
html[data-theme="light"] .pc-foot .new{color:#8a6d00}
/* betting suggestions (accas) */
.acca-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}
.acca-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;display:flex;flex-direction:column}
.acca-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:var(--panel-2);
  font-weight:800;font-size:13.5px;border-bottom:1px solid var(--line)}
.acca-tag{font-size:10.5px;font-weight:700;color:var(--gold);background:rgba(253,214,46,.12);padding:3px 8px;border-radius:20px}
.acca-legs{padding:6px 14px;flex:1}
.acca-leg{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.acca-leg:last-child{border-bottom:none}
.acca-leg .lft{flex:1;min-width:0}
.acca-leg .pk{font-weight:700;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acca-leg .mt{font-size:11px;color:var(--txt-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acca-leg .o{font-weight:800;color:var(--gold-2);flex:none}
.acca-add{margin:0;background:var(--panel-2);border-top:1px solid var(--line);color:var(--txt);font-weight:800;
  font-size:12.5px;padding:12px;transition:.12s}
.acca-add:hover{background:var(--green);color:#fff}
@media(max-width:900px){.promos,.boost-grid,.acca-grid{grid-template-columns:1fr}}

/* =====================================================================
   MOBILE SHELL & BOTTOM TAB BAR
   ===================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--topbar);
  border-top: 1px solid var(--line);
  display: none;
  grid-template-columns: repeat(5, 1fr);
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.bot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--txt-3);
  font-size: 10.5px;
  font-weight: 700;
  transition: color 0.12s;
  padding: 6px 0;
  cursor: pointer;
}
.bot-btn .bot-ico {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.bot-btn.active {
  color: var(--green-2);
}
.bot-btn.active .bot-ico {
  color: var(--green-2);
}

@media(max-width:1024px) {
  .bottom-nav {
    display: grid;
  }
  body {
    padding-bottom: 56px;
  }
  #liveChat {
    display: none !important;
  }
  .nav-center {
    display: none !important;
  }
  .sidebar {
    display: none !important;
  }
  .layout {
    grid-template-columns: 1fr !important;
  }
  .layout.with-right {
    grid-template-columns: 1fr !important;
  }
  .live-grid {
    grid-template-columns: 1fr !important;
  }
  .right-side {
    display: none; /* hidden on mobile view; can toggle or view in dedicated My Bets */
  }
  /* Readable match rows on mobile — wide team names, compact odds (bet365-style).
     score column collapses to 0 so the 1/X/2 header still aligns with the cells. */
  .col-head, .match-main { grid-template-columns: minmax(0,1fr) 50px 50px 50px 16px !important; gap: 5px; }
  .col-head.asian2, .match-main.asian2 { grid-template-columns: minmax(0,1fr) 1fr 1fr 16px !important; }
  .match-score { display: none; }
  .match-drop { display: none; }
  .col-head > span:nth-child(2) { display: none; } /* empty score header — keeps 1/X/2 aligned over the odds */
  .odd .k { display: none; }                        /* 1/X/2 already shown in the column header */
  .match-teams .t .tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Mobile Betslip Bottom Sheet */
  #betslip {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 56px !important; /* sit above the bottom-nav */
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.4) !important;
    z-index: 101 !important;
    height: auto !important;
    max-height: 80vh !important;
    margin: 0 !important;
  }
  #betslip.is-min {
    height: 44px !important;
  }
  #betslip.is-min .bs-body, 
  #betslip.is-min .bs-modes, 
  #betslip.is-min .bs-tools, 
  #betslip.is-min .bs-foot {
    display: none !important;
  }
  #betslip .bs-head {
    border-radius: 12px 12px 0 0 !important;
    cursor: pointer !important;
    height: 44px !important;
    padding: 8px 16px !important;
  }
  #betslip .bs-body {
    max-height: 40vh !important;
    overflow-y: auto !important;
  }
}
@media(max-width:700px) {
  .topbar-right .btn-deposit {
    padding: 6px 10px;
    font-size: 11px;
  }
  .avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .bal-pill .amt {
    font-size: 12px;
  }
}

/* Visualization styling inside Match Page */
.mp-viz {
  display: none;
}
@media(max-width:1024px) {
  .mp-viz {
    display: block;
    margin: 12px 14px 16px;
  }
  .mp-viz .rs-pitch,
  .mp-viz .rs-court,
  .mp-viz .rs-tennis,
  .mp-viz .rs-arena {
    margin: 0 !important;
    border-radius: var(--r-md) !important;
  }
}


