@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
/* PlayExchange styles. HOW THE LOOK IS LAYERED (read before changing colours):
   1. :root below = the base tokens. Names are historical: --violet is the
      ACCENT colour (green), --coral the negative / lay colour, --gold a
      highlight - use them by role, not by name.
   2. The ROYAL block near the end of this file (black/maroon + gold, back =
      deep blue, lay = deep ruby) is the default PlayExchange look for every
      role; its !important rules win over the base rules above them.
   3. themes.css (built: node scripts/build-themes.cjs) re-colours everything
      under html[data-theme=...] for the player themes and the staff light mode.
   4. Phone rules sit in @media blocks next to the feature they change.
   Smallest text anywhere is 11px (2026-11-16 design review). */
* { box-sizing: border-box; margin: 0; font-family: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif; }
body { font-size: 13px; }
a { text-decoration: none; }
button { cursor: pointer; }

/* banners */
.overcap-banner { border: 1px solid #b91c1c; border-radius: 8px; font-size: 12.5px; padding: 8px 10px; margin: 8px 0; font-weight: 600; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 14px; padding: 8px 14px; position: sticky; top: 0; z-index: 50; }
.brand { font-size: 20px; white-space: nowrap; border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.brand em { display: block; font-size: 11px; color: var(--faint); font-style: normal; font-weight: 400; }
.sports-strip { gap: 6px; overflow-x: auto; flex: 1; }
.sports-strip button { background: transparent; border: 1px solid var(--card-border); border-radius: 999px; padding: 6px 14px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.wallet-chip { display: flex; align-items: center; border-radius: 8px; font-size: 12px; cursor: pointer; }
.wallet-chip .lbl { opacity: 1; font-size: 10.5px; display: block; font-weight: 800; letter-spacing: .2px; line-height: 1.15; } /* labels must stay legible on small/high-zoom screens (owner iPhone defect, 2026-11-02) */
.wallet-chip b { font-size: 13.5px; line-height: 1.15; display: block; }
.btn { border: 0; border-radius: 8px; padding: 7px 13px; font-weight: 700; font-size: 12px; }
.btn.tiny { padding: 4px 8px; font-size: 11px; }
.btn:disabled { cursor: default; }

/* layout */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 10px; padding: 10px 14px; max-width: 1500px; margin: 0 auto; }
.layout > * { min-width: 0; } /* grid items default to min-width:auto - wide middle content pushed the 300px bet slip past the viewport edge at ~1280px */
.sidebar { border: 1px solid var(--card-border); border-radius: 12px; padding: 8px; min-height: calc(100dvh - 74px); position: sticky; top: 58px; }
.side-sport { font-size: 11px; text-transform: uppercase; color: var(--faint); margin: 8px 6px 4px; font-weight: 700; }
.side-fixture { display: block; width: 100%; text-align: left; border: 0; padding: 7px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.side-fixture:hover, .side-fixture.active { background: var(--card2); }
.side-fixture small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }


/* odds table (home) */
.section-title { font-size: 15px; margin: 6px 0 8px; }
.tag { font-size: 11px; border-radius: 4px; padding: 2px 6px; vertical-align: middle; font-weight: 600; }
.live-tag { font-weight: 800; letter-spacing: .5px; }
.odds-row { display: grid; grid-template-columns: 1.5fr repeat(6, 1fr); gap: 3px; align-items: center; }
.odds-row { background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; margin-bottom: 4px; padding: 6px 8px; }
.odds-row .teams { font-size: 12px; font-weight: 700; }
.odds-row .teams a { color: var(--text); }
.odds-row .teams a:hover { color: var(--gold); }
.odds-row .meta { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.odd { border: 0; border-radius: 6px; padding: 7px 2px; font-size: 12px; font-weight: 800; line-height: 1.15; }
.odd small { display: block; font-size: 11px; font-weight: 600; opacity: .85; }
.odd.back:hover { background: var(--violet); }
.odd.lay:hover { background: var(--coral); }
.odd.off { background: var(--card2); color: var(--faint); cursor: default; }

/* match page */
.panel-card { border: 1px solid var(--card-border); padding: 10px 12px; margin-bottom: 10px; overflow-x: auto; /* wide tables scroll inside the card instead of clipping on small screens */ }
.small-note { font-size: 11px; margin-top: 6px; }
.muted { color: var(--muted); }
.panel-label { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.chip.matched { font-weight: 700; }
.ladder-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; background: var(--card2); border-radius: 10px; padding: 5px; margin-bottom: 5px; }
.lcell { display: flex; flex-direction: column; align-items: center; border: 0; border-radius: 6px; padding: 6px 1px; font-size: 12px; font-weight: 800; background: var(--card); color: var(--faint); }
.lcell small { font-size: 11px; font-weight: 600; opacity: .85; }
.bm-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4px; align-items: center; margin-bottom: 5px; }
.lcell.bm { padding: 8px 1px; font-size: 14px; }
.fancy-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 4px; align-items: center; background: var(--card2); border-radius: 10px; padding: 5px; margin-bottom: 5px; }
.fancy-row.suspended { opacity: .55; }
.susp-tag { text-align: center; padding: 6px; }

/* bet slip */
.betslip { border: 1px solid var(--card-border); border-radius: 12px; height: fit-content; position: sticky; top: 58px; }
.slip-tabs { display: flex; border-bottom: 1px solid var(--card-border); }
.slip-tabs span { flex: 1; text-align: center; padding: 9px; font-size: 12px; color: var(--muted); cursor: pointer; }
.slip-tabs .active { border-bottom: 2px solid var(--gold); font-weight: 700; }
.slip-body { padding: 12px; font-size: 12px; color: var(--muted); }
.slip-sidehead { font-weight: 800; font-size: 12px; padding: 7px 10px; border-radius: 8px 8px 0 0; color: #fff; margin: -4px -4px 8px; }
.slip-form { background: var(--card2); border-radius: 10px; padding: 8px; color: var(--text); }
.slip-form .row { display: flex; justify-content: space-between; margin: 5px 0; font-size: 12px; }
.slip-form .pos { color: var(--green); }
.slip-form .neg { color: var(--coral); }
.slip-oddsbox { background: var(--screen); border: 1px solid var(--card-border); border-radius: 6px; padding: 7px 10px; font-weight: 800; color: var(--text); font-size: 14px; text-align: center; }
.slip-stake { width: 100%; border: 1px solid var(--card-border); border-radius: 6px; padding: 8px; font-size: 14px; font-weight: 700; margin: 6px 0; }
.slip-msg { font-size: 11px; margin-top: 6px; min-height: 14px; }
.slip-msg.ok { color: var(--green); }
.slip-msg.err { color: var(--coral); }

/* my bets */
.bet-card { border: 1px solid var(--card-border); border-radius: 10px; padding: 9px 10px; margin-bottom: 6px; color: var(--text); }
.bet-filter { display: flex; }
.bet-filter button { flex: 1; border: 1px solid var(--card-border); border-radius: 999px; font-weight: 700; }

/* tables */
.ptable { width: 100%; border-collapse: collapse; font-size: 12px; }
.ptable th { text-align: left; font-size: 11px; text-transform: uppercase; padding: 5px 6px; border-bottom: 1px solid var(--card-border); }
.ptable td { padding: 7px 6px; border-bottom: 1px solid var(--card-border); vertical-align: top; }
.pos { color: var(--green); } .neg { color: var(--coral); } .ok { color: var(--green); }

/* forms */
.form-row { margin-bottom: 8px; }
.form-row label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.field { width: 100%; border: 1px solid var(--card-border); border-radius: 8px; padding: 8px; font-size: 16px; } /* >=16px: iOS auto-zooms the page on focus below 16px and never zooms back */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.stat { border: 1px solid var(--card-border); border-radius: 10px; padding: 7px; text-align: center; }
.stat-num { font-size: 15px; font-weight: 800; }
.stat-cap { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.stat-hero { grid-column: 1 / -1; }
.stat-hero .stat-num { font-size: 20px; }
.qr-box { height: auto; border: 1px dashed var(--card-border); flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--faint); font-size: 11px; line-height: 1.35; margin: 6px 0; box-sizing: border-box; }
.payopt { padding: 5px 12px; border-radius: 999px; background: var(--screen); font-size: 12px; cursor: pointer; border: 1px solid var(--card-border); color: var(--muted); }
.payopt.active { border-color: var(--gold); color: var(--gold); }
.payopt-box { background: var(--screen); border: 1px solid var(--card-border); padding: 10px; margin-bottom: 6px; }
.or-divider { text-align: center; color: var(--faint); font-size: 11px; margin: 6px 0; }

/* modal */
.modal { position: fixed; inset: 0; display: flex; justify-content: center; z-index: 100; }
.modal.hidden { display: none; }
.hidden { display: none !important; }
.modal-box { border: 1px solid var(--card-border); border-radius: 14px; padding: 20px; width: 310px; display: flex; flex-direction: column; gap: 9px; position: relative; }
.modal-box h3 { font-size: 16px; }
.modal-close { position: absolute; top: 8px; right: 12px; }
.auth-msg { font-size: 11px; min-height: 14px; color: var(--coral); }
.auth-msg.ok { color: var(--green); }

.toast { pointer-events: none; position: fixed; bottom: 58px; left: 50%; transform: translateX(-50%); border: 1px solid var(--violet); padding: 10px 16px; border-radius: 10px; font-size: 12px; z-index: 200; display: none; }

.footer { border-top: 1px solid var(--card-border); padding: 10px; text-align: center; font-size: 11px; margin-top: 10px; }

@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  /* no clipped horizontal strip: fixtures wrap in a 2-col grid, names ellipsize inside their own cell */
  .sidebar { display: none; }
  .side-sport { display: none; }
  .side-fixture { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: auto; }
  .side-fixture small { overflow: hidden; text-overflow: ellipsis; }
  .betslip:not(.armed) { display: none; }
}
@media (max-width: 640px) {
  .brand { font-size: 16px; }
  .wallet-chip { font-size: 11px; padding: 5px 10px; }
}

/* responsive: fit every phone, no zoom needed */
input, select, textarea { font-size: 16px; } /* prevents iOS form-focus zoom */
html, body { overflow-x: hidden; touch-action: manipulation; -webkit-text-size-adjust: 100%; } /* iOS Safari honors ONLY manipulation/none (pan-x pan-y is invalid there -> falls back to auto and double-tap zoom survives); manipulation kills double-tap zoom on every element with zero effect on taps/scroll; pinch is handled by the gesture-event blocker + viewport meta (user 2026-11-04: 'lock kardo isko jisse zoom na ho') */
@media (max-width: 980px) {
  .layout { padding: 8px; gap: 8px; } /* single column comes from the 1024px rule */
  /* account links live in the left drawer - no bottom tab bar */
  .betslip:not(.armed) { display: none; }
  .content { order: 0; min-width: 0; }
  /* owner 2026-11-03 header cleanup: row 1 brand + chip + auth actions,
     row 2 full-width menu bar below the brand, wallet chip right of it */
  .topbar { flex-wrap: wrap; gap: 6px; padding: 8px; align-items: center; }
  .brand { font-size: 16px; order: 1; }
  .top-actions { order: 3; margin-left: auto; gap: 6px; }
  .top-actions .btn { padding: 6px 9px; font-size: 12.5px; }
  .nav-menu-btn { order: 4; flex: 0 0 100%; align-items: center; gap: 7px; background: var(--card2); border: 1px solid var(--card-border); border-radius: 10px; padding: 8px 10px; color: var(--text); }
  .nav-menu-btn::after { content: 'Menu'; font-size: 12.5px; font-weight: 600; }
  /* owner 2026-11-03: wallet chip back on the top row opposite the brand,
     Deposit/Withdraw back as their own full-width bar below the menu bar */
  .wallet-chip { order: 3; margin-left: auto; }
  body[data-role="player"] .top-actions, body[data-role="agent"] .top-actions, body[data-role="admin"] .top-actions { width: 100%; margin-left: 0; }
  .sports-strip { order: 6; flex-basis: 100%; gap: 0; background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; padding: 3px; } /* segmented strip (demo S1, 2026-11-02) */
  .sports-strip button { flex: 1; border: 0; border-radius: 8px; background: transparent; padding: 8px 0; text-align: center; }
  .sports-strip button.active { background: var(--violet); color: #fff; }
}
@media (max-width: 640px) {
  .odds-row { grid-template-columns: 1.2fr repeat(6, 1fr); gap: 2px; }
  .odd { font-size: 12px; min-width: 0; border-radius: 4px; }
  .odd small { display: none; } /* volumes hidden on small screens; prices stay readable+tappable */
  .teams .meta { display: none; }
  .teams a { font-size: 12px; }
  .lcell { font-size: 12px; min-width: 0; }
  .lcell small { display: none; }
  .mc-odd small { display: block; } /* session/fancy rate (90/100/110) must stay visible on mobile - line alone is not a complete quote */
  .ladder-row { grid-template-columns: 1.1fr 1.35fr 1.35fr; }
  .bm-row, .fancy-row { grid-template-columns: 1.2fr 1fr 1fr; }
  .bm-btn, .ladder-row button { padding: 8px 2px; font-size: 12px; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .form-row { flex-direction: column; align-items: stretch !important; }
  .slip-stake { font-size: 16px; }
  .panel-card { padding: 8px; }
  .ptable { font-size: 11px; }
}

/* research-grounded: quick stakes + selected-price highlight (iDesy/Wndeer bet-slip conventions) */
.quick-stakes { display: flex; gap: 6px; margin: 4px 0 8px; }
.quick-stakes .qs { background: var(--screen); color: var(--muted); border: 1px solid var(--card-border); border-radius: 6px; padding: 9px 4px; font-size: 13px; font-weight: 700; }
.odd.selected, .lcell.selected { outline: 2px solid var(--gold); outline-offset: -2px; }

/* mobile bet slip: bottom sheet after tap (iDesy/Wndeer: slip one tap away, never hunting) */
#slipClose { display: none; cursor: pointer; }
@media (max-width: 980px) {
  /* User 2026-11-05: "cross chhota hai bahut idhar button banao, poora
     bada" - a real 44px button, not a bare glyph. The .slip-tabs span rule
     sets flex:1 on every tab child, so the close button pins its own size. */
  #slipClose { display: flex; align-items: center; justify-content: center; margin-left: auto; flex: 0 0 44px; min-width: 44px; min-height: 44px; align-self: center; margin-right: 6px; font-size: 24px; font-weight: 700; line-height: 1; color: #7a4a12; background: #f3e7d0; border: 1px solid #d8c9ae; border-radius: 10px; }
  .betslip.armed { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 120; max-height: 55vh; overflow-y: auto; border-radius: 14px 14px 0 0; border: 1px solid var(--card-border); box-shadow: 0 -8px 28px rgba(15,23,42,.22); }
  .betslip.armed .slip-tabs { position: sticky; top: 0; background: var(--card); z-index: 2; padding-top: 6px; }
  /* action stays reachable when the browser toolbar/keyboard shrinks the
     visual viewport: the sheet scrolls, the button sticks to its bottom */
  .betslip.armed .slip-body { padding-bottom: 92px; } /* scroll slack: rows clear the sticky action at short visual heights */
  /* Owner 2026-11-06: 'Bet lagao thoda upar and thoda bada karo' - raised off the sheet edge, larger tap target (mobile only) */
  .betslip.armed #slipPlace { position: sticky; bottom: 12px; margin-bottom: 12px; padding: 13px 16px; font-size: 15px; border-radius: 10px; z-index: 3; box-shadow: 0 -6px 12px rgba(15,23,42,.15); }
  /* tap-outside scrim: keeps the page (incl. nav) clearly dismissable while the sheet is open */
  #slipScrim { display: none; }
  .betslip.armed ~ #slipScrim { display: block; position: fixed; inset: 0; z-index: 119; background: rgba(15,23,42,.45); }
}
@media (max-width: 640px) {
  .odd { padding: 11px 2px; } /* taller tap targets */
  .lcell { padding: 11px 2px; }
}

/* QR gallery + modal */
.qr-gallery{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}
.qr-thumb{width:112px;text-align:center;cursor:pointer}
.qr-thumb img{width:112px;height:112px;object-fit:cover;border-radius:8px;border:1px solid var(--card-border);background:#fff}
.qr-thumb span{display:block;font-size:11px;color:var(--muted);margin:4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qr-thumb .btn.tiny{cursor:pointer}
.qr-modal{position:fixed;inset:0;background:rgba(0,0,0,.88);display:flex;flex-direction:column;align-items:center;z-index:450;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:58px 12px 16px}
.qr-modal-bar{position:fixed;top:0;left:0;right:0;height:50px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;background:#111;color:#fff;font-size:14px;font-weight:600;z-index:451;box-shadow:0 2px 8px rgba(0,0,0,.5)}
.qr-modal-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qr-modal-x{flex:none;background:#e5484d;color:#fff;border:0;border-radius:8px;padding:8px 14px;font-size:14px;font-weight:700;cursor:pointer}
.qr-modal-box{max-width:min(92vw,420px);margin:auto 0;text-align:center}
.qr-modal-box img{display:block;max-width:100%;max-height:calc(100vh - 140px);max-height:calc(100dvh - 140px);width:auto;height:auto;margin:0 auto;object-fit:contain;border-radius:12px;background:#fff;padding:6px;cursor:zoom-out}
body.qr-open{overflow:hidden}
input[type="file"].field, .form-row input[type="file"]{color:var(--muted);font-size:12px}

/* settled market: visibly closed, taps explain instead of arming the slip */
.odd.closed, .lcell.closed { opacity: .4; filter: grayscale(.5); cursor: not-allowed; }
/* Bet slip drawer is a player surface: agent/admin manage coins and players,
   they never bet, so the whole drawer (and its scrim) stays hidden for them. */
body[data-role="agent"] .betslip, body[data-role="admin"] .betslip,
body[data-role="agent"] #slipScrim, body[data-role="admin"] #slipScrim { display: none !important; }

/* boot gate: blocks all taps until the app has hydrated (no dead clicks) */
.boot-gate { position: fixed; inset: 0; z-index: 500; background: var(--bg); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; letter-spacing: .3px; }
/* dedicated My Bets view reuses slip bet cards in the content column */
.bets-view .bet-card { margin-bottom: 8px; }
.slip-msg.warn { color: var(--gold); }

/* ---- approved Nov 2026 row redesign: ticket bet cards + transaction row-cards ---- */
.bx-bet { background: var(--card2); border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; margin-bottom: 6px; }
.bx-bet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 10px 12px; background: rgba(124,92,255,.08); border-bottom: 1px solid var(--card-border); }
.bx-bet-id { min-width: 0; }
.bx-sel { font-size: 13px; font-weight: 800; }
.bx-match { font-size: 11px; color: var(--muted); margin-top: 2px; }
.bx-pill { white-space: nowrap; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 10px; }
.bx-pill.won { background: rgba(61,220,151,.15); color: var(--green); border: 1px solid rgba(61,220,151,.4); }
.bx-pill.lost { background: rgba(255,92,122,.12); color: var(--coral); border: 1px solid rgba(255,92,122,.4); }
.bx-pill.open { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.bx-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--card-border); }
.bx-row:last-child { border-bottom: 0; }
.bx-row .bx-k { color: var(--muted); font-size: 11px; flex: none; }
.bx-row .bx-v { font-size: 12px; font-weight: 600; text-align: right; min-width: 0; }
.bx-chip { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 3px 8px; }
.bx-chip.back { color: #fff; }
.bx-chip.lay { color: #fff; }

/* transaction row-cards (wallet transactions + account statement) */
.bx-txn { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "kind amt" "reason reason" "when bal"; row-gap: 4px; column-gap: 12px; align-items: center; border: 1px solid var(--card-border); padding: 8px 12px; margin-bottom: 6px; }
.bx-kind { grid-area: kind; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; text-transform: capitalize; min-width: 0; }
.bx-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.bx-dot.in { background: var(--green); }
.bx-dot.out { background: var(--coral); }
.bx-amt { grid-area: amt; font-size: 13px; font-weight: 800; white-space: nowrap; text-align: right; }
.bx-reason { grid-area: reason; font-size: 11.5px; line-height: 1.45; }
.bx-lead { display: block; font-weight: 650; font-size: 12px; }
.bx-sub { display: block; font-size: 10.5px; margin-top: 1px; }
.bx-when { grid-area: when; font-size: 11px; }
.bx-bal { grid-area: bal; font-size: 11px; text-align: right; }
.bx-bal b { color: var(--text); font-weight: 600; }
.bx-txn-head { display: none; }
.bx-txn > span { min-width: 0; }
.bx-reason { overflow-wrap: anywhere; }
/* single-row layout only when the viewport is wide enough that the content
   column (after sidebar + bet slip) still fits all five tracks */
@media (min-width: 1400px) {
  .bx-txn { grid-template-columns: 130px minmax(0,1fr) 175px 125px 100px; grid-template-areas: "kind reason when bal amt"; }
  .bx-txn-head { display: grid; grid-template-columns: 130px minmax(0,1fr) 175px 125px 100px; column-gap: 12px; padding: 4px 12px; font-size: 11px; color: var(--faint); text-transform: uppercase; font-weight: 700; }
  .bx-txn-head span:nth-child(4), .bx-txn-head span:nth-child(5) { text-align: right; }
}

/* data tables -> labelled row-cards on phones (same table stays aligned on desktop) */
@media (max-width: 980px) {
  .ptable, .ptable tbody { display: block; width: 100%; }
  .ptable tr:has(th) { display: none; }
  .ptable tr { display: block; background: var(--card2); border: 1px solid var(--card-border); border-radius: 10px; padding: 4px 12px; margin-bottom: 8px; }
  .ptable td { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; border-bottom: 1px solid var(--card-border); padding: 8px 0; font-size: 12px; }
  .ptable td:last-child { border-bottom: 0; }
  .ptable td::before { content: attr(data-label); color: var(--muted); font-size: 11px; flex: none; }
  .ptable td:not([data-label])::before, .ptable td[data-label=""]::before { display: none; }
  .ptable td[colspan] { display: block; text-align: left; }
  /* ax-table: compact collapsed rows, secondary fields only in expansion */
  .ax-table tr.ax-row { display: grid; align-items: center; margin: 0; border-bottom: 1px solid var(--card-border); }
  .ax-table tr.ax-row td { display: block; padding: 0; border: 0; font-size: 12px; text-align: right; }
  .ax-table tr.ax-row td:first-child { text-align: left; }
  .ax-table tr.ax-row td::before { font-size: 8.5px; text-transform: uppercase; letter-spacing: .05em; }
  .ax-table tr.ax-row td.ax-sec { display: none; }
  .ax-table tr.ax-kids { display: block; padding: 0; margin: 0 0 8px; background: var(--card2); border: 0; border-bottom: 1px solid var(--card-border); border-radius: 0; }
  .ax-table tr.ax-kids > td { padding: 4px 10px 8px; }
  .ax-secgrid { display: none; }
  .ax-table tr.ax-kids .ax-secgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 6px 0 8px; font-size: 11.5px; }
  .ax-secgrid span { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; display: block; }
  .ax-secgrid b { font-weight: 600; }

  .ptable tr.ax-kids { display: block; background: none; border: 0; border-radius: 0; padding: 0 0 0 14px; margin: -4px 0 8px; }
  .ptable tr.ax-kids > td { display: block; padding: 6px 0 0; border: 0; }
  .ptable tr.ax-kids .ax-sub tr { display: block; margin-bottom: 6px; padding: 2px 10px; }
  .ptable tr.ax-kids .ax-sub tr:has(th) { display: none; }
}

/* approved compact match cards + dense match detail (Nov 2026, user-approved preview) */
.mc-pill { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mc-live { border: 1px solid var(--coral); }
.mc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 5px var(--coral); }
.mc-today { border: 1px solid rgba(242,176,61,0.4); }
.mc-settled { background: rgba(169,158,199,0.15); color: var(--muted); border: 1px solid var(--card-border); }
.mc-oddshead { display: grid; font-weight: 700; text-align: center; }
.mc-row { display: grid; align-items: center; }
.mc-rname { color: var(--text); }
.mc-odd { border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 2px; }
.mc-odd small { font-weight: 600; }
.md-strip { justify-content: space-between; border: 1px solid var(--card-border); border-radius: 9px; padding: 5px 10px; margin: 8px 0 6px; }
.md-title { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-title a.md-back { color: var(--violet-dim-text); margin-right: 2px; }
.md-score { padding: 0 2px 4px; }
.md-head { padding: 0 2px; }
.md-sec { border-top: 1px solid var(--card-border); padding: 5px 2px 2px; display: flex; flex-direction: column; }
.md-secline { display: flex; justify-content: space-between; gap: 8px; }
.md-label { font-size: 11px; font-weight: 800; }
.md-secmeta { white-space: nowrap; }
.md-disabled { opacity: 0.55; }

/* truthful fail-closed state when closure status cannot be loaded */
.status-warn { border: 1px solid var(--coral); border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.status-warn .btn { font-size: 11px; padding: 4px 10px; }
.mc-pill.mc-unknown { background: var(--card2); color: var(--faint); border: 1px dashed var(--card-border); }

.mc-row.row-closed { opacity: .6; }

.deficit-note { border: 1px solid var(--coral); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 8px; line-height: 1.4; }
#chipBal.neg { color: var(--coral); }
.stat-hero .stat-num.neg { color: var(--coral); }

/* --- auth screens (owner-approved mockup design, 2026-11-02) --- */
#authModal .modal-box, #joinModal .modal-box{position:relative;max-width:352px;width:100%;background:var(--card);color:var(--text);border:1px solid var(--card-border);border-radius:16px;box-shadow:0 24px 64px rgba(15,23,42,.28);padding:22px 20px 20px;}
@media (min-width:768px){ #authModal .modal-box, #joinModal .modal-box{max-width:380px;padding:26px 26px 22px;} }
.am-close{position:absolute;top:10px;right:10px;}
.am-brand{font-size:19px;font-weight:800;letter-spacing:.2px;}
.am-h1{font-size:20px;font-weight:700;margin:14px 0 0;}
.am-sub{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.45;}
.am-field{margin-top:14px;}
.am-field label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:6px;letter-spacing:.02em;}
.am-label-dim{font-weight:400;color:var(--faint);}
.am-wrap{position:relative;}
.am-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--faint);display:flex;pointer-events:none;}
.am-wrap input{width:100%;height:48px;border:1px solid var(--card-border);border-radius:10px;padding:0 44px 0 38px;font-size:16px;outline:none;font-family:inherit;transition:border-color .15s,box-shadow .15s;}
.am-wrap input::placeholder{color:var(--faint);}
.am-wrap input:focus{border-color:var(--violet);box-shadow:0 0 0 3px rgba(37,99,235,.15);}
.am-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:8px;border:none;background:transparent;color:var(--faint);display:flex;align-items:center;justify-content:center;cursor:pointer;}
.am-eye:hover{color:var(--muted);background:var(--card-border);}
.am-seg{display:flex;background:var(--card2);border:1px solid var(--card-border);border-radius:10px;padding:4px;gap:4px;}
.am-seg button{flex:1;height:38px;border:none;border-radius:8px;background:transparent;color:var(--muted);font-size:13.5px;font-weight:600;cursor:pointer;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:6px;transition:background .15s,color .15s;}
.am-seg button:not(.on):hover{color:var(--text);}
.am-cta{margin-top:18px;width:100%;height:48px;border-radius:10px;cursor:pointer;font-size:15px;font-weight:800;font-family:inherit;letter-spacing:.01em;transition:filter .15s,transform .05s;}
.am-cta:hover{filter:brightness(1.06);}
.am-cta:active{transform:translateY(1px);}
.am-otp-row{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.am-otp-note{font-size:12.5px;color:var(--muted);line-height:1.45}
.am-otp-row input{width:100%;height:48px;background:var(--card2);color:var(--text);border:1px solid var(--card-border);border-radius:10px;padding:0 14px;font-size:17px;font-weight:700;letter-spacing:6px;text-align:center;outline:none;font-family:inherit;transition:border-color .15s,box-shadow .15s;box-sizing:border-box;}
.am-otp-row input::placeholder{letter-spacing:1px;font-weight:500;}
.am-otp-row input:focus{border-color:var(--violet);box-shadow:0 0 0 3px rgba(37,99,235,.15);}
.am-otp-row .btn{align-self:flex-start;padding:6px 12px;font: 34px; height: 32px; padding: 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.dlx-act button.d { background: #1d6fb8; border-color: #1d6fb8; color: #fff; }
.dlx-act button.w { background: #c2185b; border-color: #c2185b; color: #fff; }
/* players list: one slim summary line (owner 2026-11-17) */
.dlx-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 10px 12px; margin: 8px 0 4px; border: 1px solid rgba(127,127,127,.32); border-radius: 6px; font-size: 13px; opacity: .95; }
.dlx-sum span { white-space: nowrap; }
.dlx-sum b { font-size: 15px; margin-left: 4px; }
.dlx-sum .neg { color: #e53935; } .dlx-sum .pos { color: #2e9d57; }
/* match page top: back + match name (owner 2026-11-17) */
.pv-nav { display: flex; align-items: center; gap: 10px; }
.pv-nav .pv-ntitle { font-weight: 800; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tl-on .pv-nav .pv-ntitle { display: none; } /* player themes name the match in their own bar */
/* the match name is in the top bar now - not again inside the card */
body:not(.tl-on) .pv-matchview .pv-row .mc2-title { display: none; }



/* ==========================================================================
   Full-width flat layout on phones (owner 2026-11-17, approved demo:
   "har jagah full use karo same isi tarah clean"). Edge-to-edge market bars
   and rows, nested cards dissolved into the page, wider odds cells using
   the freed width. Theme colors, BACK/LAY + NO/YES order, suspended strips
   and cell heights unchanged. Desktop (>1024px) unchanged.
   ========================================================================== */
@media (max-width: 1024px) {
  /* page column uses the whole screen */
  .layout { padding-left: 0 !important; padding-right: 0 !important; }

  /* match page: the outer match card dissolves; its markets are the blocks */
  .ml-row.mc2.pv-row.pv-card { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .pv-row > .mc2-head, .pv-row > .mc2-title { padding-left: 10px; padding-right: 10px; }
  .pv-row > .mc2-head { margin-top: 6px; }
  .pv-nav { margin-left: 10px !important; margin-right: 10px !important; }
  .pv-score iframe { border-radius: 0 !important; }

  /* every market block: edge-to-edge, flat, one hairline between */
  html body:not(.tl-on) .pv-mkt { margin: 0 0 8px !important; padding: 0 0 2px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; border-bottom: 0 !important; }
  .pv-mkt .pv-hrow { border-radius: 0 !important; }
  html body:not(.tl-on) .ml-row.mc2 .pv-hrow { padding: 5px 10px !important; }

  /* section band (BAAKI MARKETS): full-width bar */
  .pv-fancy { margin: 0 !important; padding: 0 !important; border: 0 !important; }
  .pv-fancy-hd { margin: 0 0 8px !important; padding: 9px 10px !important; opacity: 1 !important; background: var(--t-bar, var(--card2)); color: var(--t-bar-ink, var(--gold)) !important; }

  /* runner rows: taller, hairlines, text inset 10px */
  html body:not(.tl-on) .ml-row.mc2 .mc2-team { padding: 8px 10px !important; }

  /* odds cells use the freed width */
  .pv-row .mc2-cells { gap: 6px !important; }
  .pv-row .mc2-cell, .pv-row .mc2-cell.pv-off { width: 92px !important; }

  /* fancy category tabs full width */
  .pv-fcwrap { margin: 0 0 8px !important; }
  .ff-tabs.pv-fctabs { padding: 6px 8px !important; }

  /* home / match list */
  .ml-table { background: transparent !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; }
  html body:not(.tl-on) .ml-table .ml-row.mc2 { margin: 0 0 8px !important; padding: 2px 0 4px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; border-bottom: 1px solid var(--card-border) !important; }
  .ml-table .mc2-head, .ml-table .mc2-title, .ml-table .mc2-foot { padding-left: 10px; padding-right: 10px; }
  .ml-table .mc2-cell { width: 92px !important; }
  .ml-table .mc2-lbls span { width: 92px !important; }
  .ml-group { margin: 4px 0 6px !important; padding: 6px 10px !important; }
  .sp-tabs { margin: 4px 0 8px !important; padding: 0 8px !important; }

  /* live-now match list cards */
  .pv-match-list { max-width: none !important; }
  html body:not(.tl-on) .pvml-card { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; margin: 0 0 8px !important; }
  html body:not(.tl-on) .pvml-card .pvml-odds .mc2-team { padding: 8px 10px !important; }
  html body:not(.tl-on) .pvml-card .pvml-odds .mc2-cell { width: 92px !important; }

  /* agent / admin panels: accordions, request cards, tables flat */
  .pf-acc-item { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; margin: 0 0 8px !important; }
  .pf-acc-body { padding: 0 0 12px !important; }
  .pf-acc-item.open .pf-acc-body { padding-top: 0 !important; }
  .section-title { padding: 0 10px; }
  .stat-grid { padding: 0 8px; grid-template-columns: repeat(3, 1fr) !important; }
  .ptable tr { border: 0 !important; border-radius: 0 !important; margin-bottom: 0 !important; padding: 4px 10px !important; border-bottom: 1px solid var(--card-border) !important; }
  .rq-card { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; }
}

/* Compact menu redesign (owner pick 2026-11-17, "Compact List" demo):
   dense single-line rows, no subtitles, slim drawer. Same for admin/agent/player. */
#sidebar .side-head { border-bottom: 1px solid var(--card-border); padding: 2px 4px 10px; margin-bottom: 6px; }
#sidebar .side-head .side-title { color: var(--gold, #e9c568); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 800; }
#sidebar .side-sport.side-acc { font-size: 10px; letter-spacing: .2em; margin: 14px 6px 2px; }
#sidebar .side-card, #sidebar .side-card.sc-sub { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--card-border) !important; border-radius: 0 !important; box-shadow: none !important; flex-direction: row !important; align-items: center !important; gap: 11px !important; padding: 9px 4px !important; margin: 0 !important; }
#sidebar .side-card:hover, #sidebar .side-card:active { background: var(--card2) !important; }
#sidebar .side-subgrid { display: block !important; margin: 0 !important; }
#sidebar .side-subgrid .side-card { width: 100% !important; }
#sidebar .side-card .sc-ic { width: 30px !important; height: 30px !important; border-radius: 8px !important; background: var(--card2) !important; color: var(--green, #49b356) !important; box-shadow: none !important; }
#sidebar .side-card .sc-ic svg { width: 17px !important; height: 17px !important; }
#sidebar .side-card .sc-tx { flex-direction: row !important; align-items: baseline !important; gap: 8px !important; }
#sidebar .side-card .sc-s { display: none !important; }
#sidebar .side-card .sc-t { font-size: 13.5px !important; font-weight: 600 !important; }
#sidebar .side-card .sc-go { display: block !important; color: var(--faint) !important; width: 14px !important; height: 14px !important; }
#sidebar .side-card.sc-live .sc-ic { background: rgba(240,83,107,.14) !important; color: #f0536b !important; }
@media (max-width: 900px) { #sidebar.sidebar { width: min(264px, 74vw) !important; max-width: min(264px, 74vw) !important; } }

/* Compact menu: blend into light player themes (owner feedback 2026-11-17 - no solid strips) */
#sidebar .side-head { background: transparent !important; border-bottom: 1px solid var(--card-border, rgba(128,128,128,.3)) !important; }
#sidebar .side-head .side-title { color: var(--t-side-ink, var(--gold, #e9c568)) !important; }
#sidebar .side-head .side-close { border: 1px solid var(--card-border, #d4d4d4) !important; color: var(--t-side-ink, inherit) !important; }
#sidebar .side-sport.side-acc { background: transparent !important; color: var(--t-side-mut, #8d8272) !important; padding: 0 !important; margin: 14px 6px 4px !important; }

/* Profile page: compact-list style, same as menu (owner ask 2026-11-17) */
.profile-view .sec-h { font-size: 10px !important; letter-spacing: .2em !important; color: var(--gold, #e9c568) !important; font-family: inherit !important; font-weight: 800 !important; margin: 10px 4px 6px !important; }
.profile-view .sec-h::after { opacity: .35; }
.profile-view .dash-tiles { display: block !important; margin: 0 0 8px !important; }
.profile-view .dash-tiles .side-card { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--card-border) !important; border-radius: 0 !important; box-shadow: none !important; flex-direction: row !important; align-items: center !important; gap: 11px !important; padding: 9px 4px !important; margin: 0 !important; width: 100% !important; text-align: left !important; }
.profile-view .dash-tiles .side-card .sc-ic { width: 30px !important; height: 30px !important; border-radius: 8px !important; background: var(--card2) !important; color: var(--green, #49b356) !important; box-shadow: none !important; }
.profile-view .dash-tiles .side-card .sc-ic svg { width: 17px !important; height: 17px !important; }
.profile-view .dash-tiles .side-card .sc-t { font-size: 13.5px !important; font-weight: 600 !important; font-family: inherit !important; color: var(--text) !important; }
.profile-view .dash-tiles .side-card .sc-s { display: none !important; }
.profile-view .pf-acc-item { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--card-border) !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; }
.profile-view .pf-acc-head { padding: 10px 4px !important; gap: 11px !important; }
.profile-view .pf-acc-head .sc-ic { width: 30px !important; height: 30px !important; border-radius: 8px !important; background: var(--card2) !important; color: var(--green, #49b356) !important; box-shadow: none !important; }
.profile-view .pf-acc-head .sc-ic svg { width: 17px !important; height: 17px !important; }
.profile-view .pf-acc-head .t { font-size: 13.5px !important; font-weight: 600 !important; font-family: inherit !important; color: var(--text) !important; letter-spacing: 0 !important; }
.profile-view .pf-acc-head .s { font-size: 11.5px !important; color: var(--muted) !important; }

/* ===== Settled/void groups: collapsed by default (owner 2026-11-17) ===== */
.stl-grp .stl-grp-h { cursor: pointer; user-select: none; }
.stl-grp .stl-grp-h .stl-chev { margin-left: auto; font-size: 14px; color: var(--muted); transition: transform .15s ease; }
.stl-grp.stl-open .stl-grp-h .stl-chev { transform: rotate(90deg); }
.stl-grp:not(.stl-open) .stl-row { display: none !important; }
.stl-grp:not(.stl-open) .stl-grp-h { border-bottom-color: transparent; }

/* Withdrawal payout proof (2026-11-17): approver attaches the payment screenshot */
.rq-proof { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; border: 1px dashed currentColor; color: #b07d1a; cursor: pointer; }
.rq-proof:active { opacity: .7; }
.rq-proof-pick { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #8a8270; }
.rq-proof-pick input[type=file] { font-size: 12px; max-width: 100%; }
/* Agent copies / shares a player's payout detail (2026-11-17) */
.rq-cp { margin-left: 5px; padding: 1px 6px; font-size: 12px; line-height: 1.3; border-radius: 6px; border: 1px solid #b07d1a; background: transparent; color: #b07d1a; cursor: pointer; vertical-align: 1px; }
.rq-cp:active, .rq-sbtn:active { opacity: .6; }
.rq-share { display: flex; gap: 8px; }
.rq-sbtn { flex: 1; padding: 7px 8px; font-size: 12px; font-weight: 700; border-radius: 8px; border: 1px solid #b07d1a; background: transparent; color: #b07d1a; cursor: pointer; }
/* Just-approved withdrawals waiting for the payout screenshot (2026-11-17) */
.rq-just { border: 1px dashed #b07d1a; border-radius: 12px; padding: 8px; margin-bottom: 12px; }
.rq-just-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; color: #b07d1a; margin-bottom: 8px; }
.rq-just-x { flex: 0 0 auto; padding: 4px 10px; font-size: 11.5px; border-radius: 8px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
/* Floating WhatsApp button: a player's agent support number (2026-11-17).
   Bottom-left: the theme's Aviator button sits on the right edge; bottom
   navs are ~64px tall. Under the bet slip (120) and modals (100). */
.wa-fab { position: fixed; left: 12px; bottom: 84px; z-index: 58; width: 52px; height: 52px; border-radius: 50%; background: #25d366; box-shadow: 0 4px 14px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.wa-fab svg { width: 32px; height: 32px; display: block; }
.wa-fab:active { transform: scale(.94); }
@media (min-width: 900px) { .wa-fab { bottom: 24px; } }
.tg-fab { position: fixed; left: 76px; bottom: 84px; z-index: 58; width: 52px; height: 52px; border-radius: 50%; background: #229ed9; box-shadow: 0 4px 14px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.tg-fab svg { width: 28px; height: 28px; display: block; }
.tg-fab:active { transform: scale(.94); }
@media (min-width: 900px) { .tg-fab { bottom: 24px; } }
/* Deposit / Withdraw in the header for players and agents (owner 2026-11-18).
   Phone: a full-width row under the top line; desktop: inline in the bar. */
.hdr-pay { display: flex; gap: 8px; }
.hdr-pay[hidden] { display: none; }
.hdr-pay button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; font: 800 13px/1 inherit; font-family: inherit; letter-spacing: .3px; text-transform: uppercase; color: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.hdr-pay button:active { transform: scale(.97); }
.hdr-pay .hp-dep { background: linear-gradient(180deg, #22a35a, #14803f); }
.hdr-pay .hp-wd { background: linear-gradient(180deg, #e0453a, #b52a21); }
.tl-pay { padding: 7px 10px; }
.tl-pay button { flex: 1; height: 38px; }
@media (max-width: 980px) {
  .topbar .hdr-pay { order: 99; flex: 0 0 100%; padding: 2px 2px 0; }
  .topbar .hdr-pay button { flex: 1; height: 38px; }
}
@media (min-width: 981px) {
  .tl-pay { justify-content: flex-end; }
  .tl-pay button { flex: 0 0 180px; height: 36px; }
}

/* Master panel (2026-11-19) */
.ms-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:8px}
.ms-filters .field{margin:0;min-width:0}
@media (max-width:640px){.ms-filters{grid-template-columns:1fr 1fr}}
.ms-login{white-space:pre-wrap;word-break:break-all;font:600 13px/1.5 ui-monospace,Consolas,monospace;background:rgba(127,127,127,.12);border-radius:8px;padding:8px 10px;margin:8px 0}
/* master = staff look, like referral (2026-11-19) */
body[data-role="master"] .betslip, body[data-role="master"] #slipScrim { display: none !important; }
body[data-role="master"] #staffThemeBtn { display: flex; }
@media (max-width: 440px) { body[data-role="master"] .notif-bell { width: 30px !important; height: 32px !important; } body[data-role="master"] .brand { font-size: 14px !important; padding: 3px 6px !important; } }

.am-otp-row .btn{align-self:flex-start;padding:6px 12px;font-size:12.5px;}
.am-note{margin-top:12px;font-size:11.5px;color:var(--faint);text-align:center;line-height:1.5;}
.am-switch{margin-top:16px;padding-top:16px;border-top:1px solid var(--card-border);text-align:center;font-size:13px;color:var(--muted);}
.am-switch a{font-weight:700;text-decoration:none;}
.am-switch a:hover{text-decoration:underline;}
.am-warn{display:flex;gap:8px;align-items:flex-start;background:rgba(180,83,9,.08);border:1px solid rgba(180,83,9,.25);border-radius:10px;padding:10px 12px;font-size:12px;line-height:1.5;color:var(--gold);margin-top:14px;}
.am-warn svg{flex:none;margin-top:1px;}
.agent-code-hero{font-size:18px;font-weight:800;letter-spacing:3px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;margin:4px 0 6px;}

/* ---------- compact match table (Allpanel arrangement, clean-minimal look) ---------- */
.ml-table { background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; }
.ml-row { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--card-border); cursor: pointer; }
.ml-row:last-child { border-bottom: 0; }
.ml-row:hover { background: var(--card2); }
.ml-row.ml-done { opacity: .72; }
.ml-info { display: flex; flex-direction: column; gap: 1px; }
.ml-meta { color: var(--faint); font-weight: 600; flex-wrap: wrap; }
.ml-meta .mc-pill { font-size: 8.5px; padding: 1px 6px; }
.ml-title { font-weight: 700; color: var(--text); text-overflow: ellipsis; }
.ml-result { font-size: 11.5px; font-weight: 700; color: var(--green); text-align: right; }
.ml-cells { display: flex; flex-shrink: 0; }
.ml-pair { display: flex; }
.ml-cell { border: 0; padding: 0; }
.ml-cell.closed { opacity: .5; pointer-events: none; }
.ml-empty { padding: 14px; font-size: 12px; text-align: center; }
@media (max-width: 430px) {
  .ml-row { padding: 6px 8px; gap: 4px; }
}
/* match header: title line + one compact meta/score line */
.md-strip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.md-strip .md-title { font-weight: 800; min-width: 140px; }
.md-score { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* expandable agent rows (admin hierarchy) */
.ax-row { cursor: pointer; }
.ax-row:hover { background: var(--card2); }
.ax-chev { display: inline-block; transition: transform .15s; color: var(--faint); font-size: 11px; }
.ax-row.ax-open .ax-chev { transform: rotate(90deg); color: var(--accent, var(--violet)); }
.ax-row.ax-open { background: var(--card2); }
.ax-kids td { background: var(--card2); padding: 4px 8px 8px 28px; }
.ax-sub { margin: 0; }
@keyframes flashSec { 0%, 100% { box-shadow: none; } 20% { box-shadow: 0 0 0 2px var(--violet); } }

/* group header inside compact match table: sport + 1/X/2 pair mapping */
.ml-group { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px 3px; background: var(--card2); border-bottom: 1px solid var(--card-border); }
.ml-gname { font-size: 9.5px; font-weight: 800; letter-spacing: .07em; color: var(--faint); display: inline-flex; align-items: center; gap: 4px; }
.ml-glabels { display: flex; gap: 6px; }
.ml-glab { text-align: center; font-weight: 800; color: var(--faint); letter-spacing: .05em; }

/* auth modal: page-level scroll, never clipped; close always visible */
.modal { overflow-y: auto; padding: 12px 10px; align-items: flex-start; }
.modal .modal-box { margin: auto; }
.modal-close { background: var(--card2); border: 1px solid var(--card-border); border-radius: 8px; color: var(--muted); width: 28px; height: 28px; font-size: 13px; line-height: 1; cursor: pointer; }

/* disclosure-based help: help stays one tap away, page stays compact */
details.hint { margin-top: 6px; }
details.hint > summary { font-size: 11px; font-weight: 600; color: var(--blue); cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
details.hint > summary::before { content: '\25B8'; font-size: 11px; }
details.hint[open] > summary::before { content: '\25BE'; }
details.hint > summary::-webkit-details-marker { display: none; }
details.hint .small-note { margin-top: 4px; }

/* consistent file upload control */
input[type='file'] { font-size: 12px; color: var(--muted); max-width: 100%; }
input[type='file']::file-selector-button { font: inherit; font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-bg); border: 1px solid var(--card-border); border-radius: 8px; padding: 7px 12px; margin-right: 10px; cursor: pointer; }

/* 4-up key stats */
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .stat-grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* match title: two-line wrap on small screens, never drop the second team */
@media (max-width: 560px) {
  .ml-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
}
@media (max-width: 560px) {
  .md-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
}

/* === Allpanel bold formatting pass (revision of rejected preview) === */
/* home: big solid price cells, white bold numbers */
.ml-cell { font-weight: 800; }
.ml-cells { gap: 8px; }
.ml-glab { font-size: 9.5px; }
@media (max-width: 430px) {
  .ml-cells { gap: 6px; }
}
/* match odds: Allpanel-style runner rows, large solid Back/Lay cells */
.mc-oddshead { grid-template-columns: 1fr 74px 74px; letter-spacing: .06em; }
.mc-row { grid-template-columns: 1fr 74px 74px; }
.md-sec .mc-row { border: 0; }
.mc-rname { font-weight: 600; white-space: normal; overflow: visible; }
.md-sec .mc-rname { white-space: normal; overflow: visible; text-overflow: clip; }
.mc-odd, .md-sec .mc-odd { font-weight: 800; }
/* suspended: full-width gray bar across the price cells */
.susp-tag { display: flex; align-items: center; justify-content: center; grid-column: 2 / 4; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; }
.susp-tag + span { display: none; }
/* section headers slightly bolder */
/* legacy odd/lcell back-lay classes used elsewhere: match the solid style */
.odd.back:hover, .odd.lay:hover { color: #fff; }

/* === composition/density pass 2 (Allpanel arrangement, not colors) === */
body.on-match .sports-strip { display: none; }
body.on-match .topbar { padding-top: 6px; padding-bottom: 6px; }
.md-strip { margin-bottom: 0; }
.md-strip .md-title { font-size: 14px; }
.md-score { font-size: 11px; padding-bottom: 2px; }
.lcell.mc-odd { height: 44px; }
.lcell.mc-odd small { font-size: 9.5px; }
/* home: full fixture names, no clipped badges */
.ml-row { gap: 8px; }
.ml-info { flex: 1 1 auto; min-width: 0; }
.ml-title { font-size: 12.5px; line-height: 1.25; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ml-meta { max-width: 100%; font-size: 9.5px; }
.ml-meta .mc-pill { flex-shrink: 0; }
.ml-cell { width: 38px; }
.ml-glab { width: 80px; }
@media (min-width: 700px) {
  .ml-cell { width: 46px; height: 32px; font-size: 13px; }
  .ml-glab { width: 96px; }
}

/* === pass 3: home row fits full names, badge never clips === */
.ml-meta { display: flex; align-items: center; gap: 4px; overflow: hidden; }
.ml-comp { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-meta .mc-pill { flex: 0 0 auto; }
@media (max-width: 430px) {
  .ml-cell { width: 34px; height: 28px; font-size: 12px; }
  .ml-glab { width: 72px; }
  .ml-title { font-size: 12px; }
}

/* === pass 4: reference-true cells (light cells, dark bold numbers) + density === */
.ml-cell { height: 32px; font-size: 13px; color: var(--back-ink); }
.ml-cell.ml-back:hover, .ml-cell.ml-lay:hover { filter: brightness(1.05); }
.mc-odd, .md-sec .mc-odd { font-size: 15px; color: var(--back-ink); }
.mc-odd small { font-size: 9.5px; opacity: .8; }
/* density to match reference packing */
.md-sec { margin-top: 4px; padding-top: 4px; gap: 2px; }
.mc-rname { font-size: 13px; }
.md-score { margin-bottom: 2px; }

/* === pass 5: Allpanel table structure - neutral bands + contiguous white runner blocks === */
.md-secline { padding: 5px 8px; align-items: center; }
.md-secline .md-label { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.md-secmeta { font-size: 11px; }
.mc-oddshead { font-size: 11px; }
.md-sec .mc-row { border-bottom: 1px solid #EDF0F4; border-radius: 0; padding: 5px 8px; gap: 6px; }
.md-sec .mc-row:first-of-type { border-radius: 4px 4px 0 0; }
.md-sec .mc-row:last-of-type { border-radius: 0 0 4px 4px; border-bottom: 0; }
.md-sec .mc-row:last-child { border-bottom: 0; }
.mc-odd, .md-sec .mc-odd { border-radius: 3px; height: 46px; }
.mc-row { gap: 6px; }
.mc-odd + .mc-odd { margin-left: -3px; }
.susp-tag { border-radius: 3px; height: 46px; }
.lcell.mc-odd { border-radius: 3px; }
/* home: contiguous cells */
.ml-pair { gap: 2px; }
.ml-cell { border-radius: 3px; }

/* === pass 5.1: band absorbs Back/Lay labels (one neutral header unit) === */
.md-secline { border-radius: 3px 3px 0 0; padding-bottom: 3px; }
.mc-oddshead { border-radius: 0 0 3px 3px; padding: 0 8px 4px; margin-top: -4px; }

/* position overlay + search + fancy filters (approved adds 2026-11-02) */
.mc-pl { display: block; font-size: 11px; font-weight: 600; line-height: 1.2; }
.md-openbets { margin-left: auto; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ff-tabs { display: flex; gap: 6px; padding: 4px 10px; }
.ff-tab { border-radius: 4px; font-size: 11px; font-weight: 700; padding: 3px 10px; cursor: pointer; }

/* fixed-odds fancy cells: two-line outcome labels must fit, never clip */
.mc-fixed { padding: 7px 2px; min-height: 44px; justify-content: center; }
.mc-fixed .fx { font-size: 11px; line-height: 1.15; font-weight: 800; text-align: center; }

/* Auth modal: fixed card height, scrollable field region, always-visible footer CTA */
#authModal .modal-box{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:hidden;}
#authForm{display:contents;}
#authModal .am-fields{display:flex;flex-direction:column;gap:9px;overflow-y:auto;min-height:0;scrollbar-width:thin;padding-right:2px;}
#authModal .am-foot{flex:none;background:var(--card);border-top:1px solid var(--card-border);padding-top:6px;}
#authModal .am-foot .am-cta{margin-top:8px;}

/* ---------- profile information design ---------- */
.pf-summary{display:flex;gap:12px;align-items:center}
.pf-avatar{width:46px;height:46px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px}
.pf-name{font-weight:800;font-size:15.5px}
.pf-meta{display:flex;gap:6px;margin-top:5px;flex-wrap:wrap}
.chip{font-size:10.5px;font-weight:700;padding:2px 9px;border-radius:999px;border:1px solid var(--card-border)}
.chip.ok{border-color:#39d98a55}
.pf-acc-item{border:1px solid var(--card-border);margin-bottom:10px;overflow:hidden}
.pf-acc-head{justify-content:space-between;padding:13px 14px;cursor:pointer}
.pf-acc-head .t{font-weight:700;font-size:13.5px}
.pf-acc-head .s{font-size:11px;color:var(--muted);margin-top:2px}
.pf-acc-chev{flex:none;color:var(--faint);transition:transform .15s}
.pf-acc-item.open .pf-acc-chev{transform:rotate(180deg)}
.pf-acc-body{display:none;padding:0 14px 14px}
.pf-acc-item.open .pf-acc-body{display:block;padding-top:12px;border-top:1px solid var(--card-border)}

/* copyable agent code on Profile (owner 2026-11-02) */
.pf-code-row{display:flex;align-items:center;gap:10px;margin-top:6px;flex-wrap:wrap}
.pf-code{font-size:15px;font-weight:800;letter-spacing:2px;color:var(--gold)}

/* Player list rows: name left, actions at row end (owner layout, 2026-11-02) */
/* Fancy/session tap-to-open plus/minus breakdown (owner 2026-11-03) */
.mc-fancybtn { cursor: pointer; text-decoration: underline dotted; }
.mc-fancypl { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 10px 8px 14px; background: #f6f7f9; border-radius: 8px; margin: 2px 0 6px; font-size: 11px; }
.mc-fpl { display: inline-flex; gap: 5px; align-items: baseline; }
.mc-fpl-l { color: #6b7280; font-weight: 600; }
.mc-fancypl .mc-pl { display: inline; font-size: 11px; }

/* status-closed rows: no opacity dimming - the status tag must stay readable */
.md-statusclosed { opacity: 1; }
.md-statusclosed .susp-tag.ball-run { border: none; }

.payout-lines { display: flex; flex-direction: column; gap: 2px; }
.payout-label { display: inline-block; min-width: 58px; color: var(--muted, #8892a4); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

/* left navigation: drawer on small screens (opens from the header button),
   fixed side column on desktop (owner 2026-11-03: whole-app left menu) */
.nav-menu-btn { display: none; border: 1px solid var(--card-border); border-radius: 8px; padding: 6px 8px; }
.side-head { display: none; align-items: center; justify-content: space-between; margin: 0 2px 6px; }
.side-head .side-title { font-size: 13px; font-weight: 800; }
.side-close { background: none; border: 1px solid var(--card-border); border-radius: 8px; color: var(--text); width: 30px; height: 30px; font-size: 15px; line-height: 1; cursor: pointer; }
.nav-scrim { display: none; }
@media (max-width: 980px) {
  .nav-menu-btn { display: flex; } /* order/look owned by the 980px header block */
  .sidebar { display: block; position: fixed; left: 0; top: 0; bottom: 0; width: fit-content; min-width: 200px; max-width: min(300px, 84vw); height: 100dvh; min-height: 100dvh; z-index: 130; overflow-y: auto; border-radius: 0; border-left: 0; transform: translateX(-105%); transition: transform .18s ease; padding: 12px 10px; }
  .sidebar.open { transform: none; }
  .sidebar .side-sport { display: block; }
  .sidebar .side-fixture[data-view] { display: block; }
  .sidebar .side-fixture { white-space: normal; overflow: visible; text-overflow: clip; width: 100%; }
  .sidebar .side-fixture small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; max-width: 190px; }
  .sidebar .side-head { display: flex; }
  .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 120; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
  .nav-scrim.show { opacity: 1; pointer-events: auto; }
}

/* full deposit page: large featured QR + switchable thumbnails */
.pageqr-feature { display: flex; justify-content: center; padding: 8px 0 4px; }
.pageqr-feature img { width: min(300px, 78vw); height: auto; border-radius: 12px; border: 1px solid var(--card-border); background: #fff; padding: 8px; }
.pageqr-label { text-align: center; font-weight: 700; font-size: 13px; margin: 2px 0 6px; }
.pageqr-thumbs { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }
.pageqr-thumb { background: none; border: 2px solid var(--card-border); border-radius: 8px; padding: 2px; width: 52px; }
.pageqr-thumb img { width: 100%; border-radius: 5px; display: block; }
.pageqr-thumb.active { border-color: var(--violet); }

/* request history status pills */

/* panel sections reachable directly from the menu */

/* account/work pages are focused: no sports list, no bet slip column */
/* owner 2026-11-03: menu is identical on every page - categories stay */
body.acct-view .betslip, body.acct-view #slipScrim { display: none; }
@media (min-width: 1025px) {
  body.acct-view .layout { grid-template-columns: 220px minmax(0, 1fr); }
  body.acct-view .betslip { display: none; }
}

/* dedicated section page: title link back to the full panel */
.sec-back { text-decoration: none; margin-left: 8px; }

/* always-visible preview marker: every price/coin on this build is test data */

/* Provider board (watch-only feed rows on category pages) */
.pv-src { margin: 10px 4px; padding: 8px 10px; border: 1px solid var(--line, #2a2f3a); border-radius: 8px; font-size: 12px; line-height: 1.45; opacity: .85; }
.pv-row .pv-cell { cursor: default; pointer-events: none; opacity: .8; }
.pv-row .ml-title { font-weight: 600; }
.pv-more summary { font-size: 11px; cursor: pointer; opacity: .75; }
.amc-stage { font-weight: 700; font-size: 12px; margin: 10px 2px 4px; letter-spacing: .02em; }
.amc-match { margin: 4px 0; border: 1px solid var(--line, #2a2f3a); border-radius: 8px; padding: 6px 10px; }
.amc-match summary { cursor: pointer; font-weight: 600; font-size: 13px; }


/* ===== approved redesign 2026-11-03: dark grey + green, photo sport entry ===== */
.sports-strip { display: none !important; } /* sport choice lives on the photo entry cards */

/* menu bar below brand: hamburger + common links (owner flow 09:54: menu = common things) */
.menu-bar { display: none; }
.mb-link { border: 0; font-weight: 700; }
@media (max-width: 980px) {
  .menu-bar { order: 5; flex: 0 0 100%; display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--card-border); padding-top: 6px; margin-top: 2px; }
  .menu-bar .nav-menu-btn { order: 0; flex: 0 0 auto; width: 38px; height: 34px; justify-content: center; padding: 0; margin-right: 4px; }
  .menu-bar .nav-menu-btn::after { content: none; }
  .menu-bar-links { display: flex; flex: 1; align-items: stretch; }
  .mb-link { flex: 1; font-size: 12px; padding: 8px 0; text-align: center; border-radius: 8px; }
  .mb-link.live { color: var(--green); }
  body[data-role="player"] .top-actions, body[data-role="agent"] .top-actions, body[data-role="admin"] .top-actions { order: 4; }
}

/* photo sport entry */
.entry { padding: 4px 0 8px; }
.entry-title { font-size: 15px; font-weight: 800; margin: 4px 0 2px; }
.entry-card { position: relative; display: block; width: 100%; height: 150px; border-radius: 14px; overflow: hidden; margin-bottom: 12px; background-size: cover; background-position: center 30%; text-align: left; padding: 0; cursor: pointer; background-color: var(--card2); }
.entry-name { margin-bottom: 10px; font-size: 16px; font-weight: 800; }
.entry-chip { position: absolute; left: 0; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; width: max-content; }
.entry-chip .dot { width: 6px; height: 6px; border-radius: 50%; }
@media (min-width: 981px) { .entry-card { height: 180px; } .entry { max-width: 760px; } }

/* back row inside a sport */
.backrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; margin: 2px 0 10px; }
.backrow .bk-btn { width: 26px; height: 26px; border-radius: 8px; background: var(--card); border: 1px solid var(--card-border); color: var(--text); font-size: 14px; }
.backrow b { color: var(--text); }

/* dark section headers on match page */
.md-sec .mc-row { border-bottom-color: var(--card-border); }

/* wallet hero tile: dark surface, green number */
.stat-hero { border-color: var(--card-border); }
.stat-hero .stat-num { color: var(--green); }

/* unify accent: gold -> green in the dark theme */

/* === v3 sport page: per-team back/lay cards === */
.ml-row.mc2 { display: block; background: var(--card2); border: 1px solid var(--card-border); margin: 10px 0; cursor: pointer; }
.mc2-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mc2-meta { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mc2-lbls { display: inline-flex; gap: 6px; font-size: 11px; color: var(--faint); font-weight: 700; letter-spacing: .5px; }
.mc2-lbls span { width: 44px; text-align: center; }
.mc2-team { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mc2-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mc2-name { font-size: 15px; font-weight: 800; }
.mc2-sub { font-size: 12px; color: var(--green); font-weight: 600; }
.mc2-cells { display: inline-flex; gap: 6px; flex-shrink: 0; }
.mc2-cell { width: 44px; font-size: 13px; font-weight: 800; border: 0; cursor: pointer; }
.mc2-cell.closed { cursor: default; }
.mc2-foot { font-size: 11px; margin-top: 6px; }
.mc2.ml-done { opacity: .8; }

/* sport view: frozen-sample qualifier visible beyond the entry page */

/* sport page lifecycle tabs */
.sp-tabs { display: flex; gap: 6px; margin: 4px 0 8px; overflow-x: auto; }
.sp-tab { flex: 1; white-space: nowrap; padding: 7px 10px; border-radius: 999px; background: var(--card2); border: 1px solid var(--card-border); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }

/* match history panel */
.mh-box { margin-top: 12px; }
.mh-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mh-row { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--card-border); }
.mh-amt { flex-shrink: 0; }

/* r8: fixture identity stays readable once settled / on narrow strips */
.mc2-title { font-weight: 800; color: var(--text); margin: 2px 0 4px; line-height: 1.25; }
.md-strip .md-title { white-space: normal; overflow: visible; text-overflow: clip; display: block; -webkit-line-clamp: unset; flex: 1 1 100%; line-height: 1.25; }

/* r8 palette: feed cells with no price are dark inset (like Sportsbet.io locked cells), never faded pastel */
.pv-row .pv-cell.pv-off { opacity: 1; text-align: center; }

/* r10 preview: card-style menu */
.side-card { display: flex !important; align-items: center; gap: 12px; padding: 11px 12px !important; margin: 0 0 8px; border: 1px solid var(--card-border) !important; border-radius: 14px !important; white-space: normal !important; }
.side-card:active, .side-card:hover { border-color: var(--green) !important; background: var(--card2); }
.side-card .sc-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(73,179,86,.14); color: var(--green); }
.side-card .sc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.side-card .sc-t { font-size: 14px; font-weight: 700; color: var(--text); }
.side-card .sc-s { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.side-card .sc-go { flex: none; color: var(--faint); }
.side-card.sc-live { border-color: rgba(240,83,107,.45) !important; }
.side-card.sc-live .sc-ic { background: rgba(240,83,107,.16); color: #f0536b; }
.side-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.side-card.sc-sub { flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; padding: 10px !important; }
.side-card.sc-sub .sc-go { display: none; }
.side-card.sc-sub .sc-ic { width: 32px; height: 32px; border-radius: 9px; }
.side-card.sc-sub .sc-t { font-size: 13px; }
.side-card.sc-sub .sc-s { font-size: 11px; }
.sidebar .side-sport.side-acc { margin: 12px 4px 8px; letter-spacing: .08em; }
@media (max-width: 900px) { .sidebar { width: min(330px, 88vw) !important; max-width: min(330px, 88vw) !important; } }

/* r10: cohesive card system across panels, forms, empty states */
.pf-acc-head { display: flex; align-items: center; gap: 12px; }
.pf-acc-head .sc-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(73,179,86,.14); color: var(--green); }
.pf-acc-head .pf-acc-tx { flex: 1; min-width: 0; }
.pf-acc-head .pf-acc-chev { flex: none; }
.pf-acc-item { border-radius: 16px !important; }
.empty-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; background: var(--card2); color: var(--muted); font-size: 12.5px; }
.empty-card .es-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(73,179,86,.10); color: var(--green); }
#payFormWrap .panel-label, .panel-card > .panel-label:first-child { font-size: 15px; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
#payFormWrap .panel-label::before, .panel-card > .panel-label:first-child::before { content: ''; width: 4px; height: 16px; border-radius: 3px; }
#payFormWrap .btn, #payFormWrap .btn.blue { display: block; width: 100%; padding: 13px; font-size: 14px; font-weight: 800; border-radius: 12px; margin-top: 12px; }
#payFormWrap .field, #payFormWrap input[type=number], #payFormWrap input:not([type=file]) { padding: 12px; border-radius: 12px; font-size: 16px; }
#payFormWrap .form-row { margin-bottom: 12px; }
#payFormWrap .small-note, #payFormWrap .or-divider { background: var(--card2); border: 1px solid var(--card-border); border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; text-align: left; }
.payopt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.payopt-tabs .payopt { text-align: center; padding: 10px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--card2); font-weight: 700; }
.payopt-tabs .payopt.active { border-color: var(--green); color: var(--green); background: rgba(73,179,86,.10); }
.payopt-box { border-radius: 14px !important; }
.qr-box { border-radius: 14px; display: grid; place-items: center; text-align: center; }
.qr-gallery img, #pageQr img { border-radius: 14px; }
.panel-card { border-radius: 16px; }
.qr-box { width: 100% !important; min-height: 150px; background: var(--card2); padding: 14px; }
.qr-box .muted { font-size: 12.5px !important; color: var(--muted) !important; }
#stlVoid { accent-color: var(--green); width: 18px; height: 18px; margin-right: 10px; vertical-align: middle; }
.form-row:has(> label > #stlVoid) { background: var(--card2); border: 1px solid var(--card-border); border-radius: 12px; padding: 12px; }
/* r10b: one card design for every game list (sport pages, global lists, provider feed) */
.ml-table { display: block; }
.ml-group.sport-hd { background: none; border: 0; padding: 14px 4px 2px; gap: 8px; justify-content: flex-start; }
.ml-group.sport-hd .ml-gname { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); font-weight: 800; gap: 8px; }
.ml-group.sport-hd .ml-gname svg { color: var(--green); }
.pv-chip { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--green); border: 1px solid rgba(73,179,86,.5); border-radius: 999px; padding: 2px 8px; }
.ml-row.mc2 { border-radius: 16px; padding: 12px 14px; }
.mc2-head { margin-bottom: 6px; }
.mc2-title { font-size: 15px; }
.mc2-team { padding: 7px 0; border-top: 0; }
.mc2-head + .mc2-team, .mc2-title + .mc2-team { border-top: 0; }
.mc2-team .mc2-name { font-size: 14.5px; white-space: normal; overflow-wrap: anywhere; }
.mc2-cell { border-radius: 9px; height: 34px; display: inline-grid; place-items: center; }
.pv-card { cursor: default !important; }
.pv-card .pv-cell { pointer-events: none; }
.pv-foot { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--card-border); }
.pv-src.pv-card-info { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 12px; background: var(--card2); border: 1px solid var(--card-border); border-radius: 16px; opacity: 1; }
.pv-card-info .pv-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(73,179,86,.14); color: var(--green); }
.pv-card-info .pv-tx { min-width: 0; }
.pv-card-info .pv-t { font-size: 14px; font-weight: 800; color: var(--text); }
.pv-card-info .pv-s { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.pv-card-info .pv-more { margin-top: 6px; }
.pv-card-info .pv-more summary { color: var(--green); opacity: 1; font-weight: 700; }
.pv-none { display: flex; align-items: center; gap: 6px; padding: 6px 0 2px; }
.pv-none .mc2-cell { width: 36px; height: 30px; }
.pv-none-t { font-size: 12px; color: var(--muted); margin-left: 6px; }
.boot-gate { gap: 12px; }
.bg-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); animation: bgspin .8s linear infinite; }
@keyframes bgspin { to { transform: rotate(360deg); } }
.sup-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sup-card .sc-ic { flex: none; }
.sup-card .sup-tx { flex: 1; min-width: 150px; }
.sup-card .sup-tx .t { font-size: 14px; font-weight: 800; color: var(--text); }
.sup-card .sup-tx .s { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.sup-card .sup-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.mc2-meta { min-width: 0; }
.mc2-head { flex-wrap: nowrap; }
.mc2-lbls { flex: none; }
/* r11c: provider feed cards in charcoal + green (user 12:53: "Isko charcoal and green mein banao") */
.pv-card .mc2-cell { border: 1px solid transparent; }
.pv-card .mc2-lbls { color: var(--muted); }
/* r11d: provider feed LAY cell red (user 13:04: "Green thk h dusra red karo") */
/* PREVIEW r11e (not released): team name colors on provider cards */
.pv-card .pv-draw .mc2-name { font-weight: 700; }
/* PREVIEW r11f (not released): darker charcoal site-wide */
/* PREVIEW r11g (not released): cards much darker than the page background */
/* r12: approved dark look sitewide - green BACK / red LAY chips on every odds cell (Yes = back, No = lay), team tints */
.ml-cell.ml-back, .ml-cell.ml-back:hover, .mc-back, .mc-back:hover, .mc2-back, .odd.back, .backs .lcell, .lcell.mc-back
 { background: var(--chip-g-bg); border: 1px solid var(--chip-g-bd); color: var(--chip-g-tx); }
.ml-cell.ml-lay, .ml-cell.ml-lay:hover, .mc-lay, .mc-lay:hover, .mc2-lay, .odd.lay, .lays .lcell, .lcell.mc-lay
 { background: var(--chip-r-bg); border: 1px solid var(--chip-r-bd); color: var(--chip-r-tx); }
.mc2-cell.closed, .mc-odd.closed { opacity: .45; }
.mc-rname.tm-draw, .mc2-team.tm-draw .mc2-name { font-weight: 700; }
.mc-odd small { color: inherit; }

/* r13: header balance chip - green box, white labels and numbers (user-approved) */
.wallet-chip { border-color: #3fbf63; }

/* r14: Available and In bets / Reserved as two separate green boxes */
.wallet-chip { padding: 0; gap: 8px; }
.wallet-chip > div { border: 1px solid #3fbf63; border-radius: 8px; padding: 5px 10px; }

/* provider-priced cards (bettable only when server gate is open) */
.pv-live .pv-body{position:relative}
.pv-bet{cursor:pointer;border:0;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
.pv-sz,.pv-cell .pv-sz{display:block;font-size:11px;opacity:.75;font-weight:500;margin-top:1px}
.pv-live .pv-cell{pointer-events:none}
/* interactive cells must stay hittable - the blanket rule above left Diamond odds dead on real touch (user 2026-11-04: "abhi bhi click nahi ho raha odds par"); when a market is blocked the .pv-ovl layer covers the row and intercepts taps, so re-enabling here is safe */
.pv-cell.pv-bet,.pv-cell.pv-nobet,.pv-cell.pv-disp{pointer-events:auto;cursor:pointer} /* must beat .pv-row/.pv-card/.pv-live none rules - the Diamond card is .pv-row.pv-card (no .pv-live), so the earlier scoped override never matched and live cells stayed dead; .pv-ovl still covers blocked rows */
.pv-ovl{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:6px;text-align:center;padding:4px}
.pv-ovl span{font-weight:700;letter-spacing:.06em;font-size:13px}
.pv-ovl small{font-size:11px;margin-top:2px}
.pm-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:10px;padding:10px;margin-bottom:8px}
.pm-sw{flex:0 0 auto;width:46px;height:26px;border-radius:13px;position:relative}
.pm-sw i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff}.pm-sw.on i{left:23px}
.pm-sw.locked{opacity:.5}

/* role dashboards */
.dash-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.dash-tile.side-card.sc-sub { width: 100%; text-align: left; }
#content.dash-home .pf-acc-item.dash-more { display: none; }
@media (min-width: 900px) { .dash-tiles { grid-template-columns: repeat(4, 1fr); } }
/* Full live fancy/bookmaker rows on feed cards (2026-11-04) */
.pv-fancy { margin-top: 8px; padding-top: 6px; }
.pv-cell.pv-res { grid-column: span 2; text-align: center; font-size: 12px; padding: 6px 0; }
.pv-sz { display: block; font-size: 11px; opacity: .6; }
/* Collapsed suspended/unpriced feed section (2026-11-04 "Suspended se hatao") */
.pv-more { margin: 6px 0 2px; }
.pv-more > summary { cursor: pointer; font-size: 12px; opacity: .65; padding: 8px 4px; list-style: none; user-select: none; }
.pv-more > summary::-webkit-details-marker { display: none; }
.pv-more > summary::before { content: '\25B8'; margin-right: 6px; display: inline-block; transition: transform .15s; }
.pv-more[open] > summary::before { transform: rotate(90deg); }
.pv-more[open] > summary { opacity: .8; }
/* One-match-per-page navigator (2026-11-04 user: "ek page par ek hi match dikhe") */
.pv-nav { display: flex; gap: 8px; align-items: center; margin: 8px 0 2px; }
.pv-sel { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px 12px; font-size: 16px; }
.pv-nv { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); font-size: 20px; line-height: 1; cursor: pointer; }
.pv-nv:disabled { opacity: .3; cursor: default; }
.pv-pos { font-size: 11px; text-align: center; margin: 4px 0 8px; }
/* Per-market subheading inside feed sections (2026-11-04) */
.pv-mname { text-transform: uppercase; }
/* Visual hierarchy emphasis (2026-11-04 user: "Bookmaker ko bold m bnao, important terms achhe se dikhao") */
.pv-fancy-hd { font-size: 14px !important; font-weight: 800 !important; letter-spacing: .04em !important; opacity: .95 !important; margin: 10px 0 6px !important; text-transform: uppercase; }
.pv-mname { font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: .03em !important; opacity: .9 !important; margin: 10px 0 3px !important; }
.pv-frow .mc2-name { font-size: 14px !important; }
.pv-frow .mc2-sub { opacity: .85 !important; font-weight: 600; }
.pv-cell { font-weight: 700; }
.pv-cell.pv-res { font-weight: 800; }
.mc2-lbls span { font-weight: 700; opacity: .85; }
.pv-row .mc2-title { font-weight: 700; }
/* Bordered fancy categories (2026-11-04 user: 'fancy ki har category ko border mein rakho') */
.pv-mkt { border-radius: 12px; padding: 6px 10px 8px; margin: 8px 0; }
.pv-mkt .pv-mname { margin-top: 4px; }
/* Fancy line + rate display (2026-11-04 user: 'fancy ke neeche unke odds nahi aa rahe') */
.pv-rate { display: block; font-size: 11px; line-height: 1.1; }
.pv-fancy-lbls { display: flex; justify-content: flex-end; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .06em; opacity: .7; padding: 0 12px 2px; }
.pv-fancy-lbls span { width: 58px; text-align: center; }
.pv-cell { line-height: 1.15; }
/* Per-category NO/YES labels (2026-11-04 user: 'Normal ke samne No and Yes likho, red matlab no green matlab yes') */
.pv-mname-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pv-mkt-lbls { display: flex; gap: 10px; padding-right: 2px; }
.pv-mkt-lbls span { width: 58px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.pv-empty { padding: 6px 2px 4px; font-size: 12px; opacity: .55; }

/* NO/YES header labels in the same cell grid as rows (2026-11-04 user: 'Yes no ki position dekho') */
.pv-hrow { border-top: 0 !important; padding-top: 2px; }
.pv-mname-t { font-weight: 800; text-transform: uppercase; }

/* User-approved green market sections (2026-11-04: picked preview 1 = subtle,
   quoted-reply "Ye" on image 1). Section cards/headers/name only - NO red,
   YES green, row titles and odds cells untouched (betting color semantics). */
.pv-mkt .pv-hrow { border-radius: 11px 11px 0 0; }
.pv-mkt .pv-mname-t { letter-spacing: .4px; }
.pv-hlbl { background: transparent !important; border: 0 !important; font-size: 11px; font-weight: 800; letter-spacing: .06em; cursor: default; height: auto !important; padding: 0; display: inline-grid; place-items: center; }

/* Dark spruce + almond. Shared colors cover account and market surfaces. */
html { color-scheme:light; }
.topbar { color:#f6ead6; border-color:#314238; }
.brand { font-weight:700; letter-spacing:-.4px; }
.topbar .btn.ghost, .topbar .nav-menu-btn, .topbar .mb-link { color:#f6ead6; border-color:#5b6e5e; }
.topbar .menu-bar { border-color:#314238; }
.topbar .mb-link.live { color:#dcc18b; }
.topbar .btn.solid { background:#e8d3a8; color:#122019; }
.wallet-chip > div { background:transparent; border-color:#b38b4b; }
.btn.solid, .btn.blue, .sp-tab.active, .ff-tab.active, .sports-strip button.active { border-color:#287a43; }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline:2px solid #917039; outline-offset:2px; }
.field, input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select { color:var(--text); background:var(--card); border-color:var(--card-border); }
input::placeholder, textarea::placeholder { opacity:1; }
.panel-card, .ml-row.mc2, .modal-box, .pf-acc-item { box-shadow:0 2px 8px rgba(72,52,20,.06); }
.mc2-name, .pv-card .mc2-name, .pv-card .mc2-title, .pv-card .pv-t2 .mc2-name, .pv-card .pv-draw .mc2-name,
.mc-rname.tm-2, .mc2-team.tm-2 .mc2-name, .mc-rname.tm-draw, .mc2-team.tm-draw .mc2-name { color:var(--text); }
.pv-card .pv-t1 .mc2-name, .mc-rname.tm-1, .mc2-team.tm-1 .mc2-name { color:var(--green); }
.pv-card .mc2-back { border-color:var(--chip-g-bd); }
.pv-card .mc2-lay { border-color:var(--chip-r-bd); }
.pv-card .mc2-cell.pv-off, .pv-row .pv-cell.pv-off { background:#eee7da !important; border-color:#ddd0b9 !important; color:#7e7566 !important; }
.pv-mkt { background:var(--card); border:1px solid var(--card-border); box-shadow:0 2px 6px rgba(72,52,20,.05); }
.pv-mkt .pv-hrow { background:transparent; border-bottom:1px solid var(--card-border); }
.pv-mkt .pv-mname-t { color:#796c53; }
.pv-fancy-hd { color:#917039; }
.pv-frow .mc2-name { font-weight:700 !important; color:var(--text); }
.pv-hlbl.no, .pv-mkt-lbls .no { color:var(--red); }
.pv-hlbl.yes, .pv-mkt-lbls .yes { color:var(--green); }
.pv-cell.pv-res { color:var(--green); }
.pv-rate { opacity:1; color:inherit; font-weight:650; }
.pv-sel, .pv-nv { background:var(--card); color:var(--text); border-color:var(--card-border); }
.pv-fancy { border-color:var(--card-border); }
.pv-ovl { background:rgba(246,234,214,.93); }
.pv-ovl span { color:#a33829; }
.pv-ovl small { color:#6c6354; }
.pv-blocked .mc2-cell { opacity:.45; }
.pm-row { background:var(--card2); color:var(--text); border-color:var(--card-border); }
.pm-sw { background:#a69e8d; }
.md-strip .md-title, .md-strip a { color:#f6ead6; }
.md-secline .md-label, .md-label { color:var(--text); }
.md-secmeta, .mc-oddshead { color:var(--muted); }
.mc-pl.neg, .mh-amt .neg { color:var(--red); }
.mc-pl.pos, .mh-amt .pos { color:var(--green); }
.ff-tab { color:var(--text); border-color:var(--card-border); }
.md-openbets { color:var(--green); }
.entry-chip { border-color:#678a68; }
.entry-chip .dot { background:#a9e5af; }
.overcap-banner { background:#faede7; color:#973627; border-color:#e3bfb2; }
.status-warn { background:#f2e7ce; color:#785c2b; border-color:#d3bd8d; }
.bg-spin { border-color:#dbcbb1; border-top-color:var(--green); }
/* Semantic feedback and form surfaces use the same light palette. */
.ff-tabs, .mc-oddshead, .md-secline { background:var(--card2); }
.deficit-note, .toast.err { background:#faede7; color:#973627; border-color:#e3bfb2; }
.settled-tag { background:#eee5d7; color:#6c6354; }
.pv-frow .mc2-sub { color:var(--muted); }
.pv-mkt .pv-hrow .pv-hlbl { opacity:1; }
.pv-hrow .pv-mname-t { opacity:1; }
.odd.back:hover, .odd.lay:hover, .mc-back:hover, .mc-lay:hover, .mc2-back:hover, .mc2-lay:hover { filter:brightness(.96); }
.brand, .brand span { font-family:Georgia,'Times New Roman',serif; }
.agent-code-hero { color:#917039; }
/* Agent selection by exact mobile, with explicit name confirmation. */
.agent-find-row { display:flex; gap:8px; }
.agent-find-row input { min-width:0; flex:1; height:48px; border:1px solid var(--card-border); border-radius:10px; padding:0 12px; font-size:16px; }
.agent-find-row button { flex:0 0 auto; padding:0 12px; }
.agent-result { margin-top:8px; font-size:12px; line-height:1.5; color:var(--muted); }
.agent-found { padding:12px; background:var(--chip-g-bg); border:1px solid var(--chip-g-bd); border-radius:10px; color:var(--text); margin-bottom:7px; }
.agent-found > b { color:var(--green); display:block; }
.agent-found > strong { display:block; font-size:15px; margin:4px 0; overflow-wrap:anywhere; }
.agent-found label { display:flex; align-items:flex-start; gap:8px; margin:10px 0 0; color:var(--text); }
.agent-found input { margin-top:3px; accent-color:var(--green); }

/* ---- Live-now match list cards (list-first navigation, owner 2026-11-05) ---- */
.pv-match-list { max-width: 780px; margin: auto; }
.pvml-card { display: block; width: 100%; text-align: left; border: 1px solid #d9ccb0; border-radius: 18px; padding: 0; margin: 0 0 14px; overflow: hidden; color: #243f30; font-family: inherit; }
.pvml-card:active { transform: scale(.995); }
.pvml-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #e4dcc9; }
.pvml-comp { font-size: 11px; font-weight: 700; letter-spacing: .7px; max-width: 70%; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvml-live { font-size: 11px; font-weight: 800; border: 1px solid #bcd0ae; border-radius: 20px; padding: 4px 8px; white-space: nowrap; }
.pvml-teams { padding: 7px 12px; }
.pvml-team { display: flex; gap: 12px; align-items: center; min-height: 49px; }
.pvml-avatar { width: 35px; height: 35px; flex: 0 0 35px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; border: 1px solid #c6d3b9; text-transform: uppercase; }
.pvml-team-name { font-size: 14px; font-weight: 750; line-height: 1.35; }
.pvml-foot { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; border-top: 1px solid #e4dcc9; font-size: 11px; }
.pvml-open { font-weight: 800; font-size: 12px; white-space: nowrap; }
.pv-back { width: auto; padding: 10px 14px; font-size: 13px; font-weight: 700; margin: 4px 0 8px; }

/* User 2026-11-05 ("odds ka box size kitna clear or achha hai aisa rakho"):
   bigger, equal, clearly readable Back/Lay boxes on provider match pages.
   Visual sizing only - side mapping, prices and behavior unchanged. */
.pv-row .mc2-cells { gap: 8px; }
.pv-row .mc2-cell { width: 72px; height: 58px; font-size: 17px; border-radius: 10px; }
.pv-row .mc2-cell.pv-off { width: 72px; height: 58px; }
.pv-row .pv-none .mc2-cell { width: 44px; height: 34px; font-size: 13px; }

/* Agent/admin fancy Book button + viewpoint caption (Diamond match pages).
   Read-only reporting overlay; matches the cream-green theme. */
.mc-bookcap { font-size: 11px; font-weight: 600; width: 100%; margin-bottom: 2px; }

/* Compact wallet transactions: tap-to-expand full record (2026-11-05). */
.bx-txn .bx-full { display: none; margin-top: 2px; font-size: 11px; color: #6b7280; }
.bx-txn.bx-open .bx-full { display: block; }
.bx-more { border: 0; background: none; color: #8a5a13; font-size: 11px; font-weight: 600; cursor: pointer; padding: 0 0 0 6px; text-decoration: underline; }

/* My Bets filter tabs: slightly larger, green background, white text (user request 2026-11-05).
   Both tabs green; active tab uses deep brand green + heavier weight + shadow so selection stays obvious. */
.bet-filter { gap: 6px; margin-bottom: 8px; }
.bet-filter button { background:#4a8560; border-color:#4a8560; color:#fffdf8; padding:10px 0; font-size:13px; }
.bet-filter button.active { font-weight:800; }

/* Admin Agents table on mobile (user request 2026-11-05, design v2 after his
   rejection of the plain mini-table): labels ONCE as a quiet caps line above
   premium row cards - prominent name, green tabular balance, players pill,
   circular chevron expand affordance. Cream/green theme preserved. */
@media (max-width: 980px) {
  .ax-table tr:has(th) { display: grid; grid-template-columns: 1.55fr 1fr .55fr; gap: 0 10px; padding: 0 14px 6px; background: transparent; border: 0; margin: 0; }
  .ax-table tr:has(th) th { display: none; }
  .ax-table tr:has(th) th:nth-child(1), .ax-table tr:has(th) th:nth-child(5), .ax-table tr:has(th) th:nth-child(6) { display: block; padding: 0; border: 0; text-align: right; font-size: 9.5px; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
  .ax-table tr:has(th) th:nth-child(1) { text-align: left; }
  .ax-table tr.ax-row { grid-template-columns: 1.55fr 1fr .55fr; gap: 0 10px; padding: 12px 14px; border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 8px; background: var(--card); box-shadow: 0 2px 6px rgba(72,52,20,.06); }
  .ax-table tr.ax-row td::before { display: none; content: none; }
  .ax-table tr.ax-row td:first-child { display: flex; flex-wrap: nowrap; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 800; color: var(--text); line-height: 1.15; min-width: 0; }
  .ax-table .ax-name { min-width: 0; flex: 1 1 auto; overflow-wrap: break-word; }
  .ax-table tr.ax-row td:nth-child(5) { align-self: center; font-size: 14px; font-weight: 800; color: #287a43; font-variant-numeric: tabular-nums; }
  .ax-table tr.ax-row td:nth-child(6) { align-self: center; justify-self: end; background: var(--card2); border: 1px solid var(--card-border); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--text); text-align: center; }
  .ax-table .ax-chev { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border: 1.5px solid #c9dccd; border-radius: 50%; background: #e8f2e8; color: #287a43; font-size: 11px; transition: transform .15s; }
  .ax-table .ax-row.ax-open .ax-chev { transform: rotate(90deg); background: #287a43; color: #fffdf8; border-color: #287a43; }
}

/* Nested players list inside an expanded agent row (user 2026-11-05: "Agent
   ke niche player ki list bhi sahi karo"): replace per-player stacked cards
   with one quiet caps header line + compact aligned rows; status as a pill. */
@media (max-width: 980px) {
  .ax-table tr.ax-kids .ax-sub tr:has(th) { display: grid; grid-template-columns: 1.2fr .9fr .9fr auto; gap: 0 8px; padding: 8px 2px 4px; background: transparent; border: 0; margin: 0; }
  .ax-table tr.ax-kids .ax-sub th { display: block; padding: 0; border: 0; font-size: 8.5px; letter-spacing: .07em; color: var(--faint); text-transform: uppercase; text-align: right; }
  .ax-table tr.ax-kids .ax-sub th:first-child { text-align: left; }
  .ax-table tr.ax-kids .ax-sub tr { display: grid; grid-template-columns: 1.2fr .9fr .9fr auto; gap: 0 8px; align-items: center; padding: 7px 2px; background: transparent; border: 0; border-bottom: 1px solid var(--card-border); border-radius: 0; margin: 0; }
  .ax-table tr.ax-kids .ax-sub tr:last-child { border-bottom: 0; }
  .ax-table tr.ax-kids .ax-sub td { display: block; padding: 0; border: 0; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
  .ax-table tr.ax-kids .ax-sub td::before { display: none; content: none; }
  .ax-table tr.ax-kids .ax-sub td:first-child { text-align: left; font-weight: 700; }
  .ax-table tr.ax-kids .ax-sub td[data-label="Status"] { justify-self: end; background: #e8f2e8; border: 1px solid #c4dfc9; color: #287a43; border-radius: 999px; padding: 1px 8px; font-size: 10.5px; font-weight: 700; }
}

/* ---- notification bell ---- */
.notif-bell { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 34px; border-radius: 8px; border: 1px solid rgba(246,234,214,.35); cursor: pointer; flex: none; }
.nb-badge { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #d64545; color: #fff; font-size: 11px; font-weight: 800; line-height: 17px; text-align: center; }
.notif-panel { position: fixed; top: 58px; right: 10px; z-index: 90; width: min(360px, calc(100vw - 20px)); max-height: 70vh; overflow: auto; border: 1px solid var(--card-border, #ddd); border-radius: 12px; padding: 6px; }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--card-border, #ddd); }
.np-x { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }
.np-item { padding: 8px; border-bottom: 1px solid var(--card-border, #eee); font-size: 13px; }
.np-item:last-child { border-bottom: 0; }
.np-go { cursor: pointer; }
.np-t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 700; }
.np-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.np-dot.pos { color: var(--green, #2e8b57); } .np-dot.neg { color: var(--coral, #d64545); } .np-dot.muted { color: #9aa3b2; }
@media (max-width: 980px) { .notif-bell { order: 3; } .notif-panel { top: 104px; } }
/* ---- slip preview next to team names ---- */
.mc-prev { font-size: 11px; margin-left: 4px; white-space: nowrap; }
/* ---- fancy category tabs (Diamond page) ---- */
.pv-fcwrap { margin-top: 8px; }
.pv-fctabs { overflow-x: auto; flex-wrap: nowrap; padding: 6px 4px; }
.pv-fctabs .ff-tab { white-space: nowrap; }
/* ---- agent/admin: bet list filters, downline tools, bets box stake filter ---- */
.bl-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 8px; }
.bl-filters .field { width: auto; min-width: 104px; padding: 6px 8px; font-size: 12px; }
.dl-tools { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.dl-tools .field { flex: 1; min-width: 0; padding: 6px 8px; }
.dl-acts { flex-wrap: wrap; }
.mh-head .mb-stake { width: auto; padding: 3px 6px; font-size: 12px; margin-left: auto; }
.bk-amt { width: 110px; padding: 5px 6px; }

/* ---- clean report design: KPI block, section heading, table card ---- */
.kpi { display: grid; grid-template-columns: repeat(2, 1fr); border-radius: 16px; overflow: hidden; margin: 6px 0 10px; }
.kpi-c { padding: 8px 12px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); min-width: 0; }
.kpi-c:nth-child(2n) { border-right: 0; }
.kpi-c:nth-last-child(-n+2):nth-child(odd), .kpi-c:last-child { border-bottom: 0; }
.kpi-l { font-size: 11px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: #a9c2b1; }
.kpi-v { font-size: 18px; font-weight: 800; color: #f6efe0; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-v.neg { color: #f4a48c; } .kpi-v.pos { color: #a8e3b2; }
.kpi-s { font-size: 12px; color: #a9c2b1; margin-top: 2px; }
.kpi-s.neg { color: #f4a48c; } .kpi-s.pos { color: #a8e3b2; }
@media (min-width: 900px) { .kpi.k4 { grid-template-columns: repeat(4, 1fr); } .kpi.k4 .kpi-c { border-bottom: 0; border-right: 1px solid rgba(255,255,255,.12); } .kpi.k4 .kpi-c:last-child { border-right: 0; } }
.sec-h { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.sec-h::after { content: ''; flex: 1; height: 1px; }
.tcard { margin-bottom: 8px; }
.tcard .ptable { width: 100%; font-size: 13px; }
.tcard .ptable th { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; border-bottom: 1px solid #e6dac3; white-space: nowrap; }
.tcard .ptable td { font-weight: 600; vertical-align: middle; }
.tcard .ptable .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcard .ptable .sub { display: block; font-size: 11px; font-weight: 500; color: #8a8270; }
/* keep these as real tables on phones (no card stacking), scroll sideways if wide */
.tcard .ptable, .tcard .ptable tbody { display: table; }
.tcard .ptable tr, .tcard .ptable tr:has(th) { display: table-row; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
.tcard .ptable td, .tcard .ptable th { display: table-cell; }
.tcard .ptable td::before { display: none !important; content: none; }
@media (max-width: 640px) { .tcard .ptable { font-size: 12px; } .tcard .ptable td, .tcard .ptable th { padding: 9px 8px; } .kpi-v { font-size: 16px; } }
.mini-note { font-size: 12px; color: #8a8270; margin: 4px 0; }
.tcard .dl-acts { margin-top: 6px; }
/* older panel sections in the same clean look */
.pf-acc-body .stat-grid { border-radius: 16px; gap: 0; overflow: hidden; }
.pf-acc-body .stat-grid .stat { border: 0; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; padding: 12px 14px; }
.pf-acc-body .stat-grid .stat-num { color: #f6efe0; font-size: 16px; font-weight: 800; }
.pf-acc-body .stat-grid .stat-num.neg { color: #f4a48c; } .pf-acc-body .stat-grid .stat-num.pos { color: #a8e3b2; }
.pf-acc-body .stat-grid .stat-cap { color: #a9c2b1; font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.pf-acc-body .panel-label { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #173a2a; margin: 14px 0 8px; }
.pf-acc-body .panel-label::after { content: ''; flex: 1; height: 1px; background: #e2d6bf; }
.pf-acc-body .ptable th { letter-spacing: .6px; padding: 9px 8px; }
@media (min-width: 641px) { .pf-acc-body .ptable { background: #fbf6ec; border: 1px solid #e6dac3; border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; } .pf-acc-body .ptable td { padding: 10px 8px; font-weight: 600; } }
.pf-acc-body .tcard .ptable { background: none; border: 0; border-radius: 0; }
.pf-acc-body .stat-grid .stat { display: flex; flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; text-align: left; gap: 4px; }

/* ---- every data line as a clean card row (whole site) ---- */
/* fix: tbody must stay a row group so the table fills the card */
.tcard .ptable tbody { display: table-row-group; }
/* table rows as separate rounded line-cards */
.tcard { background: transparent; border: 0; border-radius: 0; overflow-x: auto; }
.tcard .ptable { margin-top: -8px; }
.tcard .ptable th { border: 0; padding: 6px 12px 0; }
.tcard .ptable td { border-top: 1px solid #e3d2b1; border-bottom: 1px solid #e3d2b1; padding: 12px; }
.tcard .ptable td:first-child { border-left: 1px solid #e3d2b1; border-radius: 12px 0 0 12px; }
.tcard .ptable td:last-child { border-right: 1px solid #e3d2b1; border-radius: 0 12px 12px 0; }
.tcard .ptable td:only-child { border-radius: 12px; }
.tcard .ptable tr:last-child td { border-bottom: 1px solid #e3d2b1; }
/* older panel tables on desktop: same line-cards */
@media (min-width: 641px) {
  .pf-acc-body .ptable:not(.tcard .ptable) { background: transparent; border: 0; border-radius: 0; border-collapse: separate; border-spacing: 0 8px; overflow: visible; }
  .pf-acc-body .ptable:not(.tcard .ptable) th { background: transparent; color: #5d7466; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; padding: 4px 12px 0; border: 0; }
  .pf-acc-body .ptable:not(.tcard .ptable) td { background: #f9efdc; border-top: 1px solid #e3d2b1; border-bottom: 1px solid #e3d2b1; padding: 11px 12px; font-weight: 600; }
  .pf-acc-body .ptable:not(.tcard .ptable) td:first-child { border-left: 1px solid #e3d2b1; border-radius: 12px 0 0 12px; }
  .pf-acc-body .ptable:not(.tcard .ptable) td:last-child { border-right: 1px solid #e3d2b1; border-radius: 0 12px 12px 0; }
}
/* lists: bets, players, history, notifications, wallet lines */
.mh-row { border-radius: 12px; padding: 11px 12px; margin: 0 0 8px; align-items: center; }
.mh-list { display: block; }
.mh-main b { font-size: 14px; }
.mh-amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.np-item { border-radius: 12px; margin: 6px 4px; }
.bx-txn { border-radius: 12px; }
.pf-acc-body .tcard .ptable, .tcard .ptable { border-collapse: separate; border-spacing: 0 8px; }

/* iOS zooms the page when a form control under 16px gets focus and never zooms back
   (the Bet list filters and the match-bets stake picker were 12px). On touch screens every
   control is at least 16px, whatever a later rule or inline style says. */
@media (pointer: coarse) {
  input:not([type=file]):not([type=checkbox]):not([type=radio]), select, textarea, .field { font-size: 16px !important; }
}

/* Owner 2026-11-07: logged-in header drops the Deposit/Withdraw row (both live
   in the side menu), so the empty actions row must not keep its gap either. */
body[data-role="player"] .top-actions, body[data-role="agent"] .top-actions, body[data-role="admin"] .top-actions { display: none; }

/* Owner 2026-11-07: an open match fills the screen. Page heading, sport tabs
   and the back row above it are hidden; back / prev / picker / next share
   one compact bar; odds and fancy rows are shorter so more fit on a phone. */
#content:has(#pvWrap.pv-matchview) > .section-title,
#content:has(#pvWrap.pv-matchview) > .backrow,
#content:has(#pvWrap.pv-matchview) > .sp-tabs { display: none; }
.pv-matchview .pv-nav { margin: 0 0 6px; gap: 6px; }
.pv-matchview .pv-nv { width: 36px; height: 36px; border-radius: 9px; font-size: 18px; }
.pv-matchview .pv-nv.pv-back { width: auto; padding: 0 10px; margin: 0; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pv-matchview .pv-sel { height: 36px; padding: 0 10px; border-radius: 9px; }
.pv-matchview .ml-row.mc2 { margin: 0 0 8px; padding: 8px 10px; }
.pv-matchview .mc2-head { margin-bottom: 0; }
.pv-matchview .mc2-title { margin: 0 0 4px; font-size: 14px; }
.pv-matchview .mc2-team { padding: 3px 0; }
.pv-matchview .mc2-team .mc2-name { font-size: 13.5px; line-height: 1.2; }
.pv-matchview .mc2-sub { font-size: 11px; }
.pv-matchview .pv-row .mc2-cells { gap: 5px; }
.pv-matchview .pv-row .mc2-cell, .pv-matchview .pv-row .mc2-cell.pv-off { width: 60px; height: 38px; font-size: 14.5px; border-radius: 8px; line-height: 1.05; }
.pv-matchview .pv-row .mc2-cell.pv-hlbl { height: auto !important; }
.pv-matchview .mc2-lbls { gap: 5px; }
.pv-matchview .mc2-lbls span { width: 60px; }
.pv-matchview .pv-rate { font-size: 9.5px; line-height: 1; }
.pv-matchview .pv-fancy { margin-top: 4px; padding-top: 2px; }
.pv-matchview .pv-fancy-hd { margin: 6px 0 4px !important; font-size: 13px !important; }
.pv-matchview .pv-mkt { padding: 2px 8px 4px; margin: 6px 0; border-radius: 10px; }
.pv-matchview .pv-hrow { padding: 4px 0 3px; }
.pv-matchview .pv-fctabs { padding: 4px 2px; }

/* Owner 2026-11-07: the theme is green with cream and almond - no white
   surfaces. Older rules that still painted white get the cream card colour
   (QR images keep their white backing so they stay scannable). */
.md-sec .mc-row, .ff-tab:not(.active) { background: var(--card); }
.ff-tab:not(.active) { border-color: var(--card-border); color: var(--text); }

/* Casino hisaab: match / wallet lines between casino lines, faded */
.cl-note { background: #f3e3c4; border: 1px solid #e3d2b1; border-radius: 12px; padding: 9px 12px; margin: 8px 0; font-size: 12.5px; color: #5d5240; }
.tcard .ptable tr.cl-btw td { background: #efe3cb; color: #6f6553; }
.tcard .ptable tr.cl-btw td b { font-weight: 700; }
.cl-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; background: #e3d2b1; color: #6f5a35; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; vertical-align: 1px; }
.tcard .ptable tr.cl-btw td.pos { color: var(--green); }
.tcard .ptable tr.cl-btw td.neg { color: var(--red); }

/* Match Odds in the same card as Bookmaker (owner 2026-11-07) */
.pv-mo { margin-top: 8px; }
.pv-mo .mc2-teams > .mc2-team:first-child { border-top: 0; }
.pv-mo .mc2-teams .mc2-foot, .pv-mo .pv-none { padding: 6px 0; }

/* admin: delete agent (inside the expanded agent row) */
.ax-del { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e3d2b1; }
.ax-del .ax-delbtn { color: #bb3e2d; border-color: #efcabc; }

/* user id shown next to a display name */
.uid { font-size: 11px; font-weight: 500; color: #8a8270; margin-left: 4px; white-space: nowrap; letter-spacing: 0; }
.kpi .uid { color: #a9c2b1; }

/* Share your link */
.sh-card { display: flex; flex-direction: column; gap: 10px; }
.sh-lead { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.sh-link { border: 1px dashed #d8c39b; border-radius: 12px; padding: 12px; font-size: 13.5px; font-weight: 600; word-break: break-all; }
.sh-code { font-size: 13px; color: var(--muted); }
.sh-code b { font-size: 18px; letter-spacing: 2px; color: #8a6420; margin-left: 6px; }
.sh-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-btns .btn { flex: 1 1 140px; text-align: center; text-decoration: none; padding: 11px 12px; }
.sh-qr { display: flex; justify-content: center; padding: 6px 0; }
.sh-qr canvas { width: 220px; height: 220px; border-radius: 16px; border: 1px solid #e3d2b1; image-rendering: pixelated; }

/* deposit page: download the upline payment QR */
.pageqr-dl { display: flex; justify-content: center; margin: 8px 0 6px; }
.pageqr-dl .btn { min-width: 200px; padding: 11px 16px; }

/* request cards: pending queue, "Pichle faisle", request history */
.rq-list { display: flex; flex-direction: column; gap: 10px; }
.rq-card { border: 1px solid #e3d2b1; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.rq-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rq-who { min-width: 0; font-size: 14.5px; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rq-role { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; border-radius: 999px; padding: 1px 8px; }
.rq-pill { flex: none; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.rq-approved .rq-pill { border: 1px solid #c4dfc9; }
.rq-rejected .rq-pill { border: 1px solid #efcabc; }
.rq-mid { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rq-kind { font-size: 12px; font-weight: 800; border-radius: 8px; padding: 3px 9px; }
.rq-amt { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rq-amt small { font-size: 11px; font-weight: 600; color: var(--muted); }
.rq-rejected .rq-amt { text-decoration: line-through; }
.rq-money { font-size: 12.5px; }
.rq-warn { font-size: 12px; color: #bb3e2d; font-weight: 700; }
.rq-pay { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; border-radius: 10px; padding: 7px 10px; }
.rq-pay i { font-style: normal; font-size: 11px; margin-right: 3px; }
.rq-note { font-size: 12.5px; }
.rq-foot { font-size: 11.5px; color: #8a8270; border-top: 1px dashed #e3d2b1; padding-top: 6px; }
.rq-acts { display: flex; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.rq-acts .btn { flex: 1; padding: 10px 0; }
.rq-reason { flex: 1 1 100%; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--card); color: inherit; font: inherit; }

/* Help guide */
.help-tabs { display: flex; gap: 8px; margin: 10px 0 4px; }
.help-tabs .ff-tab { flex: 1; padding: 10px 0; font-size: 13.5px; border-radius: 10px; }
.help-intro { margin: 4px 2px 10px; }
.help-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; line-height: 1.5; color: var(--text); }

/* match bets: one clean card per bet */
.bt-card { border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.bt-r3 { display: flex; align-items: center; gap: 8px; }
.bt-sess { font-size: 15px; font-weight: 800; min-width: 0; }
.bt-side { font-size: 11.5px; font-weight: 800; letter-spacing: .5px; border-radius: 6px; padding: 2px 8px; }
.bt-line { font-size: 15px; font-weight: 800; }
.bt-rate { font-size: 12.5px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.bt-res { margin-left: auto; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-r3 { font-size: 12.5px; flex-wrap: wrap; }
.bt-who { font-weight: 700; }
.bt-ag { border-radius: 999px; padding: 1px 8px; font-size: 11.5px; }

/* inline bet slip on phones: opens right under the tapped row (owner 2026-11-08) */
@media (max-width: 980px) {
  .betslip.armed.inline { position: relative; left: auto; right: auto; bottom: auto; top: auto; z-index: 5; max-height: none; overflow: visible;
    width: auto; grid-column: 1 / -1; flex: 0 0 100%; margin: 6px 0 10px; border-radius: 12px; border: 2px solid #287a43; box-shadow: 0 6px 18px rgba(72,52,20,.18); }
  .betslip.armed.inline .slip-tabs { position: static; padding-top: 0; }
  .betslip.armed.inline .slip-body { padding-bottom: 0; }
  .betslip.armed.inline #slipPlace { position: static; margin: 6px 0 4px; box-shadow: none; }
}

/* match odds slip: result rows named by team (owner 2026-11-08) */
.slip-team > span { font-weight: 700; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }

/* deposit / withdraw minimum (owner 2026-11-08) */
.min-note { font-size: 12.5px; border: 1px solid #ecd39c; border-radius: 8px; padding: 5px 10px; margin: -2px 0 8px; display: inline-block; }

/* /agent login page (owner 2026-11-08) */
.agent-gate { max-width: 460px; margin: 28px auto; text-align: center; padding: 22px 18px; }
.ag-gate-k { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.ag-gate-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.ag-gate-btns .btn { min-width: 150px; }
body.portal-agent[data-role=""] .sidebar, body.portal-agent[data-role=""] .betslip, body.portal-agent[data-role=""] #slipScrim { display: none !important; }
body.portal-agent[data-role=""] .layout { display: block; }
body.portal-agent[data-role=""] #menuBar, body.portal-agent[data-role=""] #sportsStrip { display: none !important; }

/* live TV on the match page (owner 2026-11-09) */
.pv-tv { margin: 6px 0 8px; }
.pv-tv-btn { width: 100%; background: #1d2633; color: #fff; border: 1px solid #344155; border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.pv-tv-btn.on { background: #3a1d22; border-color: #6b2b35; color: #ffd6dc; }
.pv-tv-frame { margin-top: 6px; position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.pv-tv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Scorecard | Live TV tabs - TV replaces the scorecard (owner 2026-11-09) */
.pv-tabs { display: flex; gap: 6px; background: #161d27; border: 1px solid #2c3646; border-radius: 10px; padding: 4px; }
.pv-tab { flex: 1; background: none; border: 0; color: #9aa3b2; font-size: 13.5px; font-weight: 700; padding: 8px 6px; border-radius: 7px; cursor: pointer; }
.pv-tab.on { background: #2b7a4b; color: #fff; }
.pv-tab[data-tvmode="tv"].on { background: #b3323f; }

/* deposit UTR already used (owner 2026-11-09) */
.rq-warn.rq-utr-used { padding: 7px 10px; border: 1px solid; border-radius: 8px; margin: 6px 0; background: #fde2e2; border-color: #e7a3a3; color: #8a1c1c; font-weight: 700; }
.rq-acts .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Cashout (owner 2026-11-09) */
.co-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; padding: 6px 8px; background: #fff6df; border: 1px solid #ecd39c; border-radius: 10px; }
.co-btn { flex: none; border-radius: 8px; padding: 8px 16px; font-weight: 800; font-size: 14px; cursor: pointer; }
.co-note { font-size: 12px; color: #7a5a14; }
.co-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 460; display: flex; align-items: center; justify-content: center; padding: 16px; }
.co-box { border-radius: 14px; padding: 18px; width: min(360px, 100%); text-align: center; }
.co-h { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.co-val { font-size: 30px; font-weight: 800; margin: 4px 0; }
.co-val.pos { color: #1f7a45; } .co-val.neg { color: #b3323f; }
.co-sub { font-size: 14px; margin-bottom: 8px; }
.co-det { font-size: 12px; margin-bottom: 12px; }
.co-acts { display: flex; gap: 8px; } .co-acts .btn { flex: 1; }
.co-t { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: rgba(255,255,255,.25); font-size: 12px; }

/* login button while the request runs (owner 2026-11-09) */
.am-cta.busy, .am-cta:disabled { opacity: .75; cursor: progress; }

/* ======================================================================
   ROYAL THEME - the whole site, every role (owner 2026-11-09: "badhiya
   hai isko har jagah implement kardo ... color and all sab kuch ye admin
   agent sabke liye"). Original palette: black + deep maroon, gold accents,
   serif titles. Last in the file, so it wins over the earlier palettes.
   ====================================================================== */
:root {
  --bg: #0b0708; --screen: #12080a; --card: #1a0d10; --card2: #140a0c;
  --card-border: #4a2a1a; --line: #4a2a1a; --border: #4a2a1a;
  --text: #f6e7c8; --muted: #cdb48a; --faint: #9a8460;
  --gold: #d4a63a;
  --green: #3fbf74; --good: #3fbf74; --coral: #e0566a; --red: #e0566a; --bad: #e0566a;
  --coral-dim-bg: rgba(224,86,106,.14); --coral-dim-text: #ff9aa8;
  --back-cell: #17456e; --back-ink: #e7f3ff; --lay-cell: #6e1a33; --lay-ink: #ffe7ee;
  --back-blue: #3c86d0; --lay-rose: #d0507a;
  --chip-g-bg: rgba(63,191,116,.14); --chip-g-bd: rgba(63,191,116,.5); --chip-g-tx: #8fe6b2;
  --chip-r-bg: rgba(224,86,106,.14); --chip-r-bd: rgba(224,86,106,.5); --chip-r-tx: #ff9aa8;
  --rg: linear-gradient(180deg, #f7e08a 0%, #d4a63a 48%, #a8741c 100%);
  --rg-line: linear-gradient(90deg, rgba(212,166,58,0), #d4a63a 18%, #f7e08a 50%, #d4a63a 82%, rgba(212,166,58,0));
  --serif: Georgia, 'Times New Roman', serif;
  color-scheme: dark;
}
html, body { background: radial-gradient(1200px 560px at 50% -220px, #3c0f1a 0%, #0b0708 62%) fixed, #0b0708 !important; color: var(--text); }
.section-title, .entry-title, .md-title, .lc-h, .cab-name, .am-h1, .panel-label, .card-h, .rh-h { font-family: var(--serif) !important; letter-spacing: .03em; color: #f3d98b !important; }
a { color: #f3d98b; }
/* header + menu */
.topbar { background: linear-gradient(180deg, #2c0b13 0%, #170709 100%) !important; border-bottom: 0 !important; box-shadow: 0 2px 0 #000, 0 3px 0 #a8741c, 0 10px 26px rgba(0,0,0,.55); }
.brand { font-family: var(--serif) !important; border: 1px solid #d4a63a !important; background: linear-gradient(180deg, rgba(247,224,138,.12), rgba(0,0,0,.25)) !important; color: #f6e7c8 !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), 0 0 14px rgba(212,166,58,.22); }
.brand span { background: var(--rg); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.brand::before { content: '\265B\00A0'; color: #f7e08a; text-shadow: 0 0 10px rgba(247,224,138,.5); }
.menu-bar { background: #120607 !important; border-color: #3a1d12 !important; }
.mb-link, .menu-bar button, .menu-bar a { color: #f3d98b !important; font-family: var(--serif); letter-spacing: .04em; background: transparent !important; }
.nav-menu-btn { border-color: #a8741c !important; color: #f3d98b !important; background: transparent !important; }
.sports-strip a, .sports-strip button { color: #cdb48a !important; }
.notif-bell { color: #f3d98b !important; border-color: #a8741c !important; background: transparent !important; }
.wallet-chip { background: linear-gradient(180deg, #2a1606, #140a0c) !important; border: 1px solid #d4a63a !important; }
.wallet-chip .lbl { color: #cdb48a !important; } .wallet-chip b { color: #f7e08a !important; }
/* buttons */
.btn.solid, .am-cta, .co-btn, #signupBtn, .btn.blue { background: var(--rg) !important; color: #2a1606 !important; border: 1px solid #f7e08a !important; text-shadow: 0 1px 0 rgba(255,255,255,.3); box-shadow: 0 4px 14px rgba(212,166,58,.22), inset 0 -2px 0 rgba(0,0,0,.18); }
.btn.ghost, #loginBtn { background: transparent !important; color: #f3d98b !important; border: 1px solid #a8741c !important; }
.btn:disabled, .am-cta:disabled { filter: grayscale(.4); opacity: .6; }
/* surfaces */
.panel-card, .md-strip, .sidebar, .pf-acc-item, .betslip, .modal-box, .am-card, .co-box, .lc-box, .qr-modal-box, .side-card, .side-fixture, .stat, .dash-tile, .rq-card, .notif-panel, .co-bar, .entry-card, .pv-card, .mc2-head + *, .agent-gate {
  border-color: #5a3519 !important;
}
.panel-card, .sidebar, .pf-acc-item, .betslip, .modal-box, .am-card, .co-box, .lc-box, .side-card, .side-fixture, .stat, .dash-tile, .rq-card, .notif-panel, .agent-gate, .md-strip {
  background: linear-gradient(180deg, #1e0e12 0%, #140a0c 100%) !important; color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgba(247,224,138,.07), 0 6px 18px rgba(0,0,0,.4);
}
.stat-hero { background: linear-gradient(135deg, #2a1606, #170a0c) !important; }
.stat-num { color: #f7e08a; }
.pf-acc-head .t { color: #f3d98b; font-family: var(--serif); letter-spacing: .02em; }
.field, .slip-stake, .am-wrap input, input, select, textarea { background: #0f0507 !important; color: var(--text) !important; border-color: #4a2a1a !important; }
input::placeholder, textarea::placeholder { color: #7d6a4c !important; }
.toast { background: #1e0e12 !important; border-color: #d4a63a !important; color: #f6e7c8 !important; }
.modal { background: rgba(5,2,3,.72) !important; }
.slip-tabs .active { color: #f7e08a !important; border-bottom-color: #d4a63a !important; }
.footer { color: #9a8460 !important; border-top-color: #3a1d12 !important; }
.tag { color: #f3d98b !important; border-color: #a8741c !important; }
/* match odds: deep sapphire back / deep ruby lay */
.lcell.mc-back, .odd.back, .pv-bet.back, button.lcell.back, .mc2-cell.back { background: linear-gradient(180deg, #1d5687, #133a5c) !important; color: #e7f3ff !important; border: 1px solid #3c78ad !important; }
.lcell.mc-lay, .odd.lay, .pv-bet.lay, button.lcell.lay, .mc2-cell.lay { background: linear-gradient(180deg, #8a2340, #5a142a) !important; color: #ffe7ee !important; border: 1px solid #ad3c58 !important; }
.md-sec { border-top-color: #5a3519 !important; }
.md-label, .pv-mname-t { color: #f3d98b !important; font-family: var(--serif); letter-spacing: .08em; }
.md-sec .mc-row, .mc2-team { border-color: #2c1810 !important; }
/* sport cards on other pages */
.entry-card { border: 1px solid #d4a63a !important; box-shadow: 0 0 0 1px #000, 0 10px 26px rgba(0,0,0,.6), 0 0 18px rgba(212,166,58,.16) !important; }
.entry-name { font-family: var(--serif) !important; color: #f7e08a !important; text-shadow: 0 2px 6px #000; }
.entry-chip { background: rgba(10,4,5,.78) !important; border: 1px solid #d4a63a !important; color: #f3d98b !important; }
/* switches (admin / agent toggles) */
.pm-sw.on { background: #b88a2c !important; }
.pm-row { background: #170a0c !important; border-color: #3a1d12 !important; }

/* ---------------- ROYAL HOME (exchange-style first page) ---------------- */
.rh { display: flex; flex-direction: column; gap: 12px; }
.rh-ticker { background: #0f0507; border: 1px solid #2a1308; border-radius: 8px; overflow: hidden; white-space: nowrap; }
.rh-ticker span { display: inline-block; padding: 6px 0 6px 100%; color: #d4a63a; font-size: 12.5px; animation: rhtk 40s linear infinite; }
@keyframes rhtk { to { transform: translateX(-100%); } }
.rh-banner { position: relative; height: 210px; border-radius: 14px; overflow: hidden; border: 1px solid #d4a63a; box-shadow: 0 0 0 1px #000, 0 12px 30px rgba(0,0,0,.6), 0 0 22px rgba(212,166,58,.16); background: #120607; }
.rh-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.rh-slide.on { opacity: 1; pointer-events: auto; }
.rh-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; opacity: .55; }
.rh-slide .sh { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,6,9,.95) 0%, rgba(20,6,9,.55) 58%, rgba(20,6,9,.1) 100%); }
.rh-slide .in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 24px; max-width: 640px; }
.rh-tag { align-self: flex-start; font-size: 11px; letter-spacing: .14em; color: #2a1606; background: var(--rg); padding: 3px 10px; border-radius: 4px; font-weight: 800; }
.rh-slide h1 { font-family: var(--serif); font-size: 30px; line-height: 1.1; background: var(--rg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rh-slide p { color: #cdb48a; font-size: 13.5px; }
.rh-slide .btn { align-self: flex-start; padding: 9px 16px; font-size: 13px; }
.rh-dots { position: absolute; right: 16px; bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.rh-dots i { width: 8px; height: 8px; border-radius: 5px; background: #5a3519; cursor: pointer; transition: width .2s; }
.rh-dots i.on { width: 22px; background: #f7e08a; }
.rh-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rh-tile { position: relative; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid #a8741c; background: #120607 center / cover no-repeat; cursor: pointer; text-align: left; padding: 0; color: inherit; font: inherit; }
.rh-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,4,5,.92), rgba(10,4,5,.08)); }
.rh-tile b, .rh-tile small { position: absolute; left: 12px; z-index: 1; }
.rh-tile b { bottom: 26px; font-family: var(--serif); font-size: 19px; color: #f7e08a; text-shadow: 0 2px 6px #000; }
.rh-tile small { bottom: 9px; font-size: 11.5px; color: #f6e7c8; }
.rh-tile small .lv { color: #fff; background: #e0566a; border-radius: 4px; padding: 0 5px; margin-right: 4px; font-weight: 800; }
.rh-sec { background: linear-gradient(180deg, #1e0e12, #140a0c); border: 1px solid #5a3519; border-radius: 14px; overflow: hidden; }
.rh-sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 11px 14px 9px; position: relative; }
.rh-sec-h::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px; background: var(--rg-line); }
.rh-h { font-size: 17px; }
.rh-sec-h a, .rh-sec-h button { color: #d4a63a; font-size: 13px; background: none; border: 0; cursor: pointer; }
.rh-sec .rh-body { padding: 8px 10px 10px; }
.rh-games { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.rh-game { border-radius: 12px; overflow: hidden; border: 1px solid #a8741c; background: #120607; cursor: pointer; padding: 0; color: inherit; font: inherit; text-align: left; }
.rh-game .im { display: block; aspect-ratio: 1 / 1; background: #1a0d10 center / cover no-repeat; position: relative; }
.rh-game .own { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; background: radial-gradient(circle at 50% 35%, #5a1424, #170709 70%); }
.rh-game .pv { position: absolute; left: 6px; top: 6px; font-size: 9.5px; letter-spacing: .06em; color: #2a1606; background: var(--rg); border-radius: 4px; padding: 1px 5px; font-weight: 800; }
.rh-game b { display: block; padding: 7px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f6e7c8; }
/* phone bottom bar (players and visitors) */
.rh-bnav { display: none; }
@media (max-width: 980px) {
  .rh-banner { height: 186px; }
  .rh-slide h1 { font-size: 23px; }
  .rh-slide .in { padding: 0 16px; }
  .rh-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rh-tile { height: 84px; }
  .rh-games { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  body.has-bnav { padding-bottom: 64px; }
  .rh-bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: linear-gradient(180deg, #1c080c, #0e0405); border-top: 1px solid #a8741c; box-shadow: 0 -6px 20px rgba(0,0,0,.6); padding: 6px 0 8px; }
  .rh-bnav button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: #cdb48a; background: none; border: 0; font-family: inherit; cursor: pointer; }
  .rh-bnav button .ic { font-size: 18px; line-height: 1; }
  .rh-bnav button.on { color: #f7e08a; }
  .rh-bnav button.mid .ic { width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--rg); color: #2a1606; border: 2px solid #120607; box-shadow: 0 0 14px rgba(212,166,58,.45); font-size: 22px; }
  body.has-bnav .betslip.armed:not(.inline) { bottom: 64px; }
  body.has-bnav .toast { bottom: 80px; }
}

/* royal: live match list cards, odds cells, login box, small notes */
.pvml-card { background: linear-gradient(160deg, #22100f, #150a0c) !important; border-color: #5a3519 !important; box-shadow: 0 6px 18px rgba(0,0,0,.45) !important; }
.pvml-top { background: #1a0b0d !important; border-bottom-color: #3a1d12 !important; }
.pvml-comp { color: #cdb48a !important; }
.pvml-live { color: #fff !important; background: #e0566a !important; border-color: #e0566a !important; }
.pvml-up { color: #f3d98b !important; background: rgba(212,166,58,.12) !important; border-color: #a8741c !important; }
.pvml-avatar { background: rgba(212,166,58,.12) !important; color: #f3d98b !important; border-color: #a8741c !important; }
.pvml-av2 { background: rgba(224,86,106,.12) !important; color: #ffb3c4 !important; border-color: #ad3c58 !important; }
.pvml-team-name { color: #f6e7c8 !important; }
.pvml-foot { border-top-color: #3a1d12 !important; color: #9a8460 !important; }
.pvml-open { color: #f3d98b !important; }
.mc-back, .odd.mc-back { background: linear-gradient(180deg, #1d5687, #133a5c) !important; color: #e7f3ff !important; border: 1px solid #3c78ad !important; }
.mc-lay, .odd.mc-lay { background: linear-gradient(180deg, #8a2340, #5a142a) !important; color: #ffe7ee !important; border: 1px solid #ad3c58 !important; }
.mc-back:hover, .mc-lay:hover { filter: brightness(1.15); }
.am-brand em, .am-brand span { color: #f3d98b !important; font-style: normal; }
.am-switch a, #forgotOpen, .am-card a { color: #f3d98b !important; }
.min-note { background: rgba(212,166,58,.1) !important; border-color: #a8741c !important; color: #f3d98b !important; }
.rq-note, .rq-money { color: #cdb48a !important; }
@media (max-width: 430px) {
  /* 320px phones: brand + wallet chip + theme/bell + auth buttons must share the top row
     instead of wrapping into an extra 50px strip (live audit 2026-11-17) */
  .topbar { gap: 4px !important; padding-left: 6px !important; padding-right: 6px !important; }
  .top-actions { gap: 4px !important; margin-left: 0 !important; }
  .top-actions .btn { padding: 5px 8px !important; font-size: 11px !important; }
}
@media (max-width: 420px) { .brand { font-size: 15px !important; padding: 3px 7px !important; } .wallet-chip { gap: 6px !important; padding: 4px 7px !important; } .wallet-chip b { font-size: 12px !important; } .wallet-chip .lbl { font-size: 9.5px !important; } .notif-bell { width: 34px; height: 34px; } }
.mc2-cell.mc2-back { background: linear-gradient(180deg, #1d5687, #133a5c) !important; color: #e7f3ff !important; border: 1px solid #3c78ad !important; }
.mc2-cell.mc2-lay { background: linear-gradient(180deg, #8a2340, #5a142a) !important; color: #ffe7ee !important; border: 1px solid #ad3c58 !important; }
.mc2-cell.pv-off { filter: saturate(.5) brightness(.75); }
.pv-hlbl.yes, .pv-hlbl.back { color: #8cc4ff !important; } .pv-hlbl.no, .pv-hlbl.lay { color: #ff9ab4 !important; }
/* royal: win over the earlier !important odds rules (same selectors, later in the file) */
.md-sec .mc-odd.mc-back, .mc-odd.mc-back, button.mc-back, .mc2-cell.mc2-back:not(.pv-off), .pv-card .mc2-back, .ml-cell.ml-back, .odd.back, .backs .lcell { background: linear-gradient(180deg, #1d5687, #133a5c) !important; border: 1px solid #3c78ad !important; color: #e7f3ff !important; }
.md-sec .mc-odd.mc-lay, .mc-odd.mc-lay, button.mc-lay, .mc2-cell.mc2-lay:not(.pv-off), .pv-card .mc2-lay, .ml-cell.ml-lay, .odd.lay, .lays .lcell { background: linear-gradient(180deg, #8a2340, #5a142a) !important; border: 1px solid #ad3c58 !important; color: #ffe7ee !important; }
.slip-sidehead.back { background: linear-gradient(180deg, #1d5687, #133a5c) !important; color: #e7f3ff !important; }
.slip-sidehead.lay { background: linear-gradient(180deg, #8a2340, #5a142a) !important; color: #ffe7ee !important; }
#slipClose { background: #1a0d10 !important; color: #f3d98b !important; border: 1px solid #a8741c !important; }
/* royal: My Bets cards, history rows, filter tabs, chips (owner 2026-11-09: 'my bets abhi bhi purane style mein') */
.bt-card { background: linear-gradient(180deg, #1e0e12, #140a0c) !important; border: 1px solid #5a3519 !important; border-left: 5px solid #3c78ad !important; }
.bt-card.bt-no { border-left-color: #ad3c58 !important; }
.bt-sess, .bt-line, .bt-who { color: #f6e7c8 !important; }
.bt-yes .bt-side { background: rgba(60,120,173,.22) !important; color: #9fd0ff !important; }
.bt-no .bt-side { background: rgba(173,60,88,.22) !important; color: #ffb3c4 !important; }
.bt-rate, .bt-ag { background: rgba(212,166,58,.12) !important; color: #f3d98b !important; }
.bt-r3 { color: #cdb48a !important; }
.bt-res.pos, .mh-amt .pos { color: #3fbf74 !important; } .bt-res.neg, .mh-amt .neg { color: #ff7d92 !important; }
.mh-row { background: linear-gradient(180deg, #1e0e12, #140a0c) !important; border: 1px solid #5a3519 !important; color: #f6e7c8; }
.ff-tabs { background: transparent !important; }
.ff-tab { background: transparent !important; border: 1px solid #5a3519 !important; color: #f3d98b !important; }
.ff-tab.active { background: linear-gradient(180deg, #f7e08a 0%, #d4a63a 48%, #a8741c 100%) !important; border-color: #f7e08a !important; color: #2a1606 !important; }
.chip { background: #170a0c !important; border-color: #4a2a1a !important; color: #cdb48a !important; }
.chip.matched, .chip.warn { color: #f3d98b !important; border-color: #a8741c !important; }
.chip.ok { color: #3fbf74 !important; }
.bet-card { background: linear-gradient(180deg, #1e0e12, #140a0c) !important; border-color: #5a3519 !important; }
/* royal: leftovers found by the page audit (tables, wallet lines, request pills, tags) */
.tcard .ptable th, .pf-acc-body .ptable th, .ptable th { background: #1a0b0d !important; color: #cdb48a !important; border-color: #3a1d12 !important; }
.tcard .ptable td, .pf-acc-body .ptable td, .ptable td { background: transparent !important; color: #f6e7c8 !important; border-color: #2c1810 !important; }
.tcard .ptable td.neg, .tcard .ptable .neg, .ptable td.neg, .ptable .neg { color: #ff7d92 !important; }
.tcard .ptable td.pos, .tcard .ptable .pos, .ptable td.pos, .ptable .pos { color: #3fbf74 !important; }
.tcard .ptable tr:hover td { background: rgba(212,166,58,.05) !important; }
.pf-acc-body .ptable { background: #140a0c !important; border-color: #3a1d12 !important; }
.ax-table .ax-chev { border-color: #a8741c !important; color: #f3d98b !important; background: transparent !important; }
.ax-table .ax-row.ax-open .ax-chev { background: #d4a63a !important; color: #2a1606 !important; border-color: #d4a63a !important; }
.bx-txn { background: linear-gradient(180deg, #1e0e12, #140a0c) !important; border-color: #5a3519 !important; }
.bx-txn b, .bx-kind, .bx-lead, .bx-reason { color: #f6e7c8 !important; }
.bx-sub, .bx-when, .bx-bal, .bx-full { color: #cdb48a !important; }
.bx-amt.pos { color: #3fbf74 !important; } .bx-amt.neg { color: #ff7d92 !important; }
.sh-link { background: #0f0507 !important; border-color: #a8741c !important; color: #f3d98b !important; }
.rq-role { background: rgba(212,166,58,.12) !important; color: #f3d98b !important; }
.rq-pill, .rq-pending .rq-pill { background: rgba(212,166,58,.14) !important; color: #f3d98b !important; border: 1px solid #a8741c !important; }
.rq-approved .rq-pill { background: rgba(63,191,116,.14) !important; color: #3fbf74 !important; border-color: rgba(63,191,116,.5) !important; }
.rq-rejected .rq-pill { background: rgba(224,86,106,.14) !important; color: #ff7d92 !important; border-color: rgba(224,86,106,.5) !important; }
.rq-kind.dep { background: rgba(63,191,116,.14) !important; color: #3fbf74 !important; }
.rq-kind.wd { background: rgba(224,86,106,.14) !important; color: #ff7d92 !important; }
.rq-rejected .rq-amt { color: #9a8460 !important; }
.mc-pill.mc-live, .mc-live { background: rgba(224,86,106,.16) !important; color: #ff9aa8 !important; border-color: rgba(224,86,106,.55) !important; }
.mc-today, .pv-card .mc-pill.mc-today, .mc-pill.mc-today { background: rgba(212,166,58,.12) !important; color: #f3d98b !important; border-color: #a8741c !important; }
.mc-pill.mc-settled { background: #1a0d10 !important; color: #cdb48a !important; border-color: #4a2a1a !important; }
.susp-tag, .md-statusclosed .susp-tag { background: #1a0d10 !important; color: #cdb48a !important; border: 1px dashed #5a3519 !important; }
.md-statusclosed .susp-tag.ball-run { background: rgba(224,86,106,.14) !important; color: #ff9aa8 !important; }
.sec-h { color: #f3d98b !important; font-family: var(--serif); }
.sec-h::after { background: linear-gradient(90deg, #d4a63a, rgba(212,166,58,0)) !important; }
.tag { background: rgba(212,166,58,.12) !important; }
.btn.ghost.tiny { background: transparent !important; }
.live-tag { background: rgba(224,86,106,.16) !important; color: #ff9aa8 !important; }
/* royal: active states gold, summary boxes maroon + gold (no leftover green blocks) */
:root { --violet: #2a6aa6; --violet-dim-bg: rgba(42,106,166,.16); --violet-dim-text: #9fd0ff; }
.sp-tab.active, .bet-filter button.active, .am-seg button.on, .sports-strip button.active, .quick-stakes .qs:active, .pv-tab.on:not([data-tvmode="tv"]) {
  background: linear-gradient(180deg, #f7e08a 0%, #d4a63a 48%, #a8741c 100%) !important; border-color: #f7e08a !important; color: #2a1606 !important; box-shadow: 0 2px 8px rgba(212,166,58,.25) !important; }
.kpi, .pf-acc-body .stat-grid { background: linear-gradient(160deg, #2a0f15 0%, #160709 100%) !important; border: 1px solid #a8741c !important; box-shadow: 0 0 16px rgba(212,166,58,.12); }
.kpi *, .pf-acc-body .stat-grid .stat-cap { border-color: rgba(212,166,58,.25) !important; }
.pf-acc-body .stat-grid .stat { background: transparent !important; box-shadow: none !important; }
#payFormWrap .panel-label::before, .panel-card > .panel-label:first-child::before { background: linear-gradient(180deg, #f7e08a, #a8741c) !important; }
.help-list b { color: #f3d98b !important; }
.pf-avatar { background: linear-gradient(180deg, #f7e08a 0%, #d4a63a 48%, #a8741c 100%) !important; color: #2a1606 !important; }
.bx-chip.back { background: #1d5687 !important; } .bx-chip.lay { background: #8a2340 !important; }
/* live list cards with match odds (owner 2026-11-10) */
.pvml-card { cursor: pointer; }
.pvml-title { padding: 8px 12px 0; font-family: var(--serif); font-size: 15px; color: #f3d98b; letter-spacing: .02em; }
.pvml-odds { padding: 4px 12px 8px; }
.pvml-oh { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #9a8460; }
.pvml-ohc { display: inline-flex; gap: 6px; } .pvml-ohc span { width: 64px; text-align: center; }
.pvml-ohc span:first-child { color: #8cc4ff; } .pvml-ohc span:last-child { color: #ff9ab4; }
.pvml-odds .mc2-team { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 4px; border-top: 1px solid #2c1810; }
.pvml-odds .mc2-team:first-of-type { border-top: 0; }
.pvml-odds .mc2-name { font-size: 15px; font-weight: 800; color: #f6e7c8; }
.pvml-odds .mc2-team.pv-t1 .mc2-name { color: #3fbf74; }
.pvml-odds .mc2-cells { display: inline-flex; gap: 6px; flex: none; }
.pvml-odds .mc2-cell { width: 64px; height: 40px; border-radius: 9px; font-size: 15px; display: inline-grid; place-items: center; }
.pvml-odds .pv-none { display: flex; align-items: center; gap: 6px; padding: 6px 4px; color: #9a8460; font-size: 12px; }

/* Signup from an agent's referral link: agent comes from the link (owner 2026-11-10) */
#refField .ref-lbl { display:none; }
#refField.via-ref .ref-lbl { display:block; }
#refField.via-ref .phone-lbl, #refField.via-ref .agent-find-row { display:none; }

/* Referral (owner 2026-11-10) */
.ref-card { background: var(--card2); border: 1px solid var(--card-border); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.ref-card.off { opacity: .7; border-style: dashed; }
.ref-top { margin-bottom: 6px; }
.ref-name { font-weight: 700; font-size: 14px; }
.ref-link { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.ref-link .field { flex: 1; min-width: 0; font-size: 11.5px; }
.ref-link-btns { display: flex; gap: 6px; flex-shrink: 0; }
.ref-acts { margin-top: 6px; flex-wrap: wrap; }
.ref-acts .btn[disabled] { opacity: .45; }

/* Saved payout details (owner 2026-11-10) */
.wd-saved-h { font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 4px 0 6px; }
.wd-saved-opt { display: flex; align-items: center; gap: 10px; background: var(--card2); border: 1px solid var(--card-border); border-radius: 10px; padding: 9px 10px; margin-bottom: 6px; cursor: pointer; }
.wd-saved-opt:has(input:checked) { border-color: var(--violet); }
.wd-saved-opt input { accent-color: var(--violet); flex-shrink: 0; }
.wd-saved-tx { flex: 1; min-width: 0; font-size: 12.5px; overflow-wrap: anywhere; }
.wd-saved-tx .sub { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.wd-saved-new { margin-bottom: 10px; }
.wd-save { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 6px 0 2px; }
#payFormWrap .wd-saved-opt .btn { display: inline-block; width: auto; flex: 0 0 auto; padding: 5px 10px; font-size: 11px; font-weight: 700; margin-top: 0; border-radius: 8px; }
#payFormWrap .wd-saved-opt input, #payFormWrap .wd-save input { padding: 0; width: 16px; height: 16px; flex: 0 0 auto; margin: 0; }
/* Withdraw payout details on the request card: was cream box + light text = unreadable on the dark theme (owner 2026-11-10 screenshot) */
.rq-pay { background: rgba(212,166,58,.10) !important; border: 1px solid #5a3519; color: var(--text) !important; }
.rq-pay i { color: #cdb48a !important; }
.rq-pay span { overflow-wrap: anywhere; }
/* Notifications: cream cards with light titles were unreadable on the dark theme (owner 2026-11-10 screenshot) */
.np-item { background: linear-gradient(180deg, #1e0e12, #140a0c) !important; border: 1px solid #5a3519 !important; color: #f6e7c8 !important; }
.np-item.unread { background: linear-gradient(180deg, #2a1606, #1a0d08) !important; border-color: #a8741c !important; }
.np-item .muted, .np-item .small-note { color: #cdb48a !important; }
/* Slip quick stakes: 7 amounts (owner 2026-11-10: + 10,000 / 20,000 / 50,000), two rows of four */
.quick-stakes { flex-wrap: wrap; }
.quick-stakes .qs { flex: 1 0 calc(25% - 6px); min-width: 0; }

/* One pending deposit at a time (owner 2026-11-11) */
.dep-pending { background: rgba(212,166,58,.12); border: 1px solid #a8741c; color: #f3d98b; border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; font-size: 13px; }
/* Closed fancy / market rows (owner 2026-11-14 "page clean"): one state strip over the two cells instead of '0 0' */
.pv-fclosed { opacity: 1; }
.pv-fclosed .mc2-name { opacity: .75; }
.pv-suspcells { position: relative; }
.pv-suspcells .mc2-cell { visibility: hidden; }
.pv-susp { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border-radius: 6px; background: rgba(20, 20, 24, .78); color: #ff6b6b; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
/* Admin: settled / void markets grouped by match (owner 2026-11-14) */
.stl-grp { border: 1px solid var(--card-border); border-radius: 12px; margin: 0 0 12px; overflow: hidden; background: var(--card2, rgba(255,255,255,.02)); }
.stl-grp-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; padding: 10px 12px; border-bottom: 1px solid var(--card-border); }
.stl-grp-h b { font-size: 15px; }
.stl-grp-h span { font-size: 12px; color: var(--muted); }
.stl-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--card-border); }
.stl-row:last-child { border-bottom: 0; }
.stl-main { min-width: 0; flex: 1 1 200px; }
.stl-main > b { font-size: 14px; word-break: break-word; }
.stl-type { display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; margin-right: 6px; border-radius: 6px; border: 1px solid var(--card-border); color: var(--muted); }
.stl-res { font-size: 12.5px; margin-top: 3px; }
.stl-pl { font-size: 12px; color: var(--muted); margin-top: 2px; word-break: break-word; }
.stl-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.stl-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.stl-filter button { border: 1px solid var(--card-border); background: none; color: inherit; font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.stl-filter button.on { background: var(--gold, #d4a63a); border-color: transparent; color: #1a1206; }
.stl-type.stl-void { color: #ff8a8a; border-color: rgba(255,107,107,.5); }
/* Own open bets under a match (owner 2026-11-15): one MY BETS card with a
   banner, then Match Bets and Fancy Bets tables; whole row blue (back / yes)
   or pink (lay / no), like the reference exchanges. */
.pv-mybets { margin: 14px 0 8px; border: 1px solid #c9d3dd; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); color: #111; }
.pv-mb-banner { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #2c3e50; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
.pv-mb-banner span { font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; background: rgba(255,255,255,.18); padding: 2px 9px; border-radius: 999px; }
.pv-mb-sub { display: flex; align-items: center; gap: 6px; padding: 5px 10px 4px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #2c3e50; background: #eef2f6; border-top: 1px solid #dde4ea; }
.pv-mb-sub span { font-size: 11px; font-weight: 700; color: #fff; background: #607d8b; padding: 0 7px; border-radius: 999px; }
.pv-mb-t { width: 100%; border-collapse: collapse; font-size: 14px; color: #111; }
.pv-mb-t th { background: #f6f8fa; color: #4a5866; font-weight: 700; font-size: 11.5px; text-transform: uppercase; padding: 6px 10px; text-align: right; border-bottom: 1px solid #dde4ea; }
.pv-mb-t th:first-child, .pv-mb-t td:first-child { text-align: left; }
.pv-mb-t td { padding: 9px 10px; text-align: right; border-bottom: 1px solid rgba(0,0,0,.08); }
.pv-mb-t tr:last-child td { border-bottom: 0; }
.pv-mb-t td:first-child { word-break: break-word; font-weight: 600; }
.pv-mb-t th:nth-child(2), .pv-mb-t td:nth-child(2) { width: 60px; }
.pv-mb-t th:nth-child(3), .pv-mb-t td:nth-child(3) { width: 70px; }
.pv-mb-t th:nth-child(4), .pv-mb-t td:nth-child(4) { width: 90px; }
.pv-mb-t tr.blue td { background: #a9d7fa; }
.pv-mb-t tr.pink td { background: #fbc3cf; }
.pv-mb-t td small { display: block; font-size: 10.5px; font-weight: 500; opacity: .75; }
.pv-mb-t td.pos { color: #0b6b2d; font-weight: 800; }
.pv-mb-t td.neg { color: #b3122a; font-weight: 800; }
/* Cleaner match page (owner 2026-11-15 "clean and less text"): no dashed separator above fancy */
.pv-fancy { border-top: 0 !important; }
/* Bet History (owner 2026-11-15): two selects, one summary line, a card per match */
.bh-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.bh-filters label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.bh-filters select { font: inherit; font-weight: 600; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--card-border, #ccc); background: var(--card, #fff); color: inherit; }
.bh-sum { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--card2, rgba(127,127,127,.1)); }
.bh-sum b { margin-left: 4px; }
.bh-card .pv-mb-banner { text-transform: none; letter-spacing: 0; font-size: 14px; gap: 10px; }
.bh-card .pv-mb-banner .bh-t { background: none; padding: 0; font-size: 14px; font-weight: 800; display: flex; flex-direction: column; min-width: 0; }
.bh-card .pv-mb-banner .bh-t small { font-size: 11px; font-weight: 500; opacity: .75; }
.bh-card .pv-mb-banner .pos { color: #7ef0a6; } .bh-card .pv-mb-banner .neg { color: #ff9aa9; }
.bh-open { color: #1d6fb8; font-weight: 800; }
.bh-void { color: #555; font-weight: 800; }
/* Saved UPI / bank details (owner 2026-11-15): manager list + deposit-page cards */
.pa-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--card-border); }
.pa-l { min-width: 0; }
.pa-l b { display: block; font-size: 14px; word-break: break-all; }
.pa-l small { display: block; font-size: 11.5px; color: var(--muted); }
.pa-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 8px; }
.pa-card { border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 12px; background: var(--card2, rgba(127,127,127,.06)); }
.pa-k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.pa-v { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 3px 0; }
.pa-v b { font-size: 15px; word-break: break-all; }
.pa-v span { font-size: 13px; font-weight: 600; }
.pa-h { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pa-copy { flex: none; border: 1px solid var(--card-border); background: none; color: inherit; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; cursor: pointer; }

/* agent / admin bets as thin rows, same table as the player's (owner 2026-11-15:
   "card bada hai ... clean line banao patli"); one card per match. */
.sb-card { margin: 0 0 10px; }
.sb-card .pv-mb-t td { padding: 6px 8px; font-size: 13px; }
.sb-card .pv-mb-t tr, .sb-card .pv-mb-t td { -webkit-tap-highlight-color: transparent; }
.mh-list.sb-card { display: block; padding: 0; gap: 0; }
.cm-bets:empty { display: none; }
.cm-bets { margin-top: 10px; }
.sb-card .pv-mb-banner { text-transform: none; letter-spacing: 0; font-size: 14px; gap: 10px; padding: 8px 12px; }
.sb-card .pv-mb-banner .bh-t { background: none; padding: 0; font-size: 14px; font-weight: 800; min-width: 0; }
.sb-card .pv-mb-banner > span:last-child { white-space: nowrap; flex: none; }
/* shared thin bet row (player, agent, admin): Bet [| Player | Agent] | Type | Odds | Stake [| P&L] */
.pv-mb-t.bl-t th, .pv-mb-t.bl-t td { width: auto; padding: 6px 8px; font-size: 13.5px; }
.pv-mb-t.bl-t .bl-n, .pv-mb-t.bl-t .bl-who { text-align: left; }
.pv-mb-t.bl-t .bl-type { width: 50px; text-align: center; }
.pv-mb-t.bl-t .bl-o { width: 52px; }
.pv-mb-t.bl-t .bl-s { width: 70px; }
.pv-mb-t.bl-t .bl-r { width: 78px; }
.pv-mb-t.bl-t td.bl-type { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.pv-mb-t.bl-t td { -webkit-tap-highlight-color: transparent; }
.pv-mb-t.bl-t td.bl-who { font-weight: 600; font-size: 12.5px; white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
/* staff tables: Player (+ Agent) columns, fixed widths so they fit a phone;
   only admin's 7-column P&L table scrolls sideways */
.pv-mb-t.bl-staff { table-layout: fixed; }
.pv-mb-t.bl-staff th, .pv-mb-t.bl-staff td { font-size: 12px; padding: 6px 4px; overflow: hidden; text-overflow: ellipsis; }
.pv-mb-t.bl-staff th { font-size: 10.5px; white-space: nowrap; }
.pv-mb-t.bl-staff td.bl-who { white-space: nowrap; max-width: none; font-size: 12px; }
.pv-mb-t.bl-staff td.bl-type { letter-spacing: 0; }
.pv-mb-t.bl-staff th:first-child, .pv-mb-t.bl-staff td:first-child { padding-left: 8px; }
.pv-mb-t.bl-staff th:last-child, .pv-mb-t.bl-staff td:last-child { padding-right: 8px; }
.pv-mb-t.bl-staff th.bl-n { width: auto; }
.pv-mb-t.bl-staff th.bl-who { width: 21%; }
.pv-mb-t.bl-staff th.bl-type { width: 14%; }
.pv-mb-t.bl-staff th.bl-o { width: 13%; }
.pv-mb-t.bl-staff th.bl-s { width: 18%; }
.pv-mb-t.bl-staff th.bl-r { width: 18%; }
.pv-mb-t.bl-staff.bl-pl th.bl-who { width: 18%; }
.bl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
/* agent / admin: sun / moon light-dark button in the top bar (owner 2026-11-15) */
#staffThemeBtn { display: none; }
body[data-role="agent"] #staffThemeBtn, body[data-role="admin"] #staffThemeBtn, body[data-role="referral"] #staffThemeBtn { display: flex; }
#staffThemeBtn .ic-moon { display: none; }
html[data-theme] #staffThemeBtn .ic-sun { display: none; }
html[data-theme] #staffThemeBtn .ic-moon { display: block; }
@media (max-width: 980px) { #staffThemeBtn { order: 3; } }
@media (max-width: 440px) { body[data-role="agent"] .notif-bell, body[data-role="admin"] .notif-bell, body[data-role="referral"] .notif-bell { width: 30px !important; height: 32px !important; } body[data-role="agent"] .brand, body[data-role="admin"] .brand, body[data-role="referral"] .brand { font-size: 14px !important; padding: 3px 6px !important; } }
/* staff tables: amounts never cut; a bit more room for names */
.pv-mb-t.bl-staff td.bl-s, .pv-mb-t.bl-staff td.bl-r, .pv-mb-t.bl-staff td.bl-o { overflow: hidden; text-overflow: clip; }
.pv-mb-t.bl-staff.bl-pl th.bl-type { width: 11%; }
.pv-mb-t.bl-staff.bl-pl th.bl-o { width: 10%; }
.pv-mb-t.bl-staff.bl-pl th.bl-s { width: 15%; }
.pv-mb-t.bl-staff.bl-pl th.bl-r { width: 19%; }
.pv-mb-t.bl-adm th.bl-who { width: 18%; }
.pv-mb-t.bl-adm th.bl-type { width: 12%; }
.pv-mb-t.bl-adm th.bl-o { width: 10%; }
.pv-mb-t.bl-adm th.bl-s { width: 15%; }
.pv-mb-t.bl-staff td.bl-type { overflow: visible; text-overflow: clip; padding-left: 2px; padding-right: 2px; font-size: 10.5px; }
.pv-mb-t.bl-adm.bl-pl { min-width: 520px; }
.pv-mb-t.bl-adm.bl-pl th.bl-who { width: 15%; }
.pv-mb-t.bl-adm.bl-pl th.bl-type { width: 10%; }
.pv-mb-t.bl-adm.bl-pl th.bl-o { width: 9%; }
.pv-mb-t.bl-adm.bl-pl th.bl-s { width: 13%; }
.pv-mb-t.bl-adm.bl-pl th.bl-r { width: 15%; }
/* ===== phone: full screen width everywhere (owner 2026-11-15: "screen full use
   karo, poori website mein ye use karo and redesign karo") =====
   No page gutter: cards, accordions and sections run edge to edge (no side border,
   square corners); text keeps a 10px inset inside them; bet tables touch both
   edges. Player themes (body.tl-on) already do this. */
@media (max-width: 700px) {
  body:not(.tl-on) .layout { padding-left: 0 !important; padding-right: 0 !important; }
  body:not(.tl-on) .content > .panel-card,
  body:not(.tl-on) .pf-acc-item,
  body:not(.tl-on) .rh-sec, body:not(.tl-on) .rh-banner, body:not(.tl-on) .rh-ticker,
  body:not(.tl-on) .content > .pv-mybets, body:not(.tl-on) #bhBody > .pv-mybets,
  body:not(.tl-on) .content > .md-strip, body:not(.tl-on) .panel-card.mh-box {
    border-left-width: 0 !important; border-right-width: 0 !important; border-radius: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
  body:not(.tl-on) .pf-acc-body { padding-left: 10px !important; padding-right: 10px !important; }
  body:not(.tl-on) .content > .panel-card { padding-left: 10px !important; padding-right: 10px !important; }
  /* headings, filters and summary lines that sit straight on the page */
  body:not(.tl-on) .content > .section-title, body:not(.tl-on) .content > h2, body:not(.tl-on) .content > .panel-label,
  body:not(.tl-on) .content > .bh-filters, body:not(.tl-on) .content > .mini-note, body:not(.tl-on) .content > .muted,
  body:not(.tl-on) .content > .sec-h, body:not(.tl-on) .content > .ff-tabs { padding-left: 10px; padding-right: 10px; }
  body:not(.tl-on) .content > .bh-sum, body:not(.tl-on) #bhBody > .bh-sum { border-radius: 0; margin-left: 0; margin-right: 0; }
  /* bet cards and wide tables inside a panel: out to the screen edge */
  .pf-acc-body .sb-card, .panel-card.mh-box .sb-card, .pf-acc-body .tcard { margin-left: -10px !important; margin-right: -10px !important; border-radius: 0 !important; border-left-width: 0 !important; border-right-width: 0 !important; }
  .panel-card.mh-box { padding-left: 10px !important; padding-right: 10px !important; }
  .panel-card.mh-box .tcard { margin-left: -10px !important; margin-right: -10px !important; border-radius: 0 !important; border-left-width: 0 !important; border-right-width: 0 !important; }
  body.tl-on .content > .section-title, body.tl-on .content > .bh-filters { padding-left: 10px; padding-right: 10px; }
  body:not(.tl-on) .rh-tiles { padding-left: 8px; padding-right: 8px; }
  .pv-mb-t.bl-t th:first-child, .pv-mb-t.bl-t td:first-child { padding-left: 10px; }
  .pv-mb-t.bl-t th:last-child, .pv-mb-t.bl-t td:last-child { padding-right: 10px; }
}
.kpi-c.kpi-w { grid-column: 1 / -1; border-right: 0; }
/* ===== phone menu bar redesign (owner 2026-11-15: "menu ka button alag se chipkaya
   hua lag raha hai, sahi se redesign karo") =====
   One edge-to-edge strip: the Menu button is part of it (icon + "Menu", no box of
   its own, a thin divider after it), the links share the same height. */
@media (max-width: 980px) {
  .topbar .menu-bar { flex: 0 0 calc(100% + 16px) !important; margin: 6px -8px -8px !important; padding: 0 !important; gap: 0 !important; min-height: 42px; align-items: stretch !important; border-top: 1px solid var(--card-border); }
  .topbar .menu-bar .nav-menu-btn { width: auto !important; height: auto !important; min-height: 42px; margin: 0 !important; padding: 0 14px 0 12px !important; gap: 7px !important; display: flex !important; align-items: center; justify-content: center;
    border: 0 !important; border-radius: 0 !important; border-right: 1px solid rgba(127,127,127,.28) !important; border-right: 1px solid color-mix(in srgb, currentColor 28%, transparent) !important; background: transparent !important; box-shadow: none !important; }
  .topbar .menu-bar .nav-menu-btn::after { content: 'Menu' !important; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .topbar .menu-bar .nav-menu-btn svg { width: 18px; height: 18px; }
  .topbar .menu-bar .nav-menu-btn:active { background: rgba(127,127,127,.15) !important; }
  .topbar .menu-bar-links { align-items: stretch !important; }
  .topbar .menu-bar .mb-link { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 4px !important; border-radius: 0 !important; white-space: nowrap; min-width: 0; }
  /* four links (player): a little tighter so each stays on one line */
  .topbar .menu-bar-links:has(> :nth-child(4)) .mb-link { font-size: 11.5px !important; padding: 0 2px !important; }
  .topbar .menu-bar:has(.menu-bar-links > :nth-child(4)) .nav-menu-btn { padding: 0 10px !important; }
}
/* ===== design pass (owner 2026-11-16: "design mein bahut sare issue hai unko fix karo") ===== */
/* a section opened from a tile / link: its name is already the page title */
.pf-acc-item.sec-solo > .pf-acc-head { display: none; }
/* downline: quick actions on their own full-width row, equal buttons */
.tcard .ptable:has(tr.dl-actrow) { border-collapse: collapse !important; border-spacing: 0 !important; margin-top: 0 !important; }
.tcard .ptable:has(tr.dl-actrow) td { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; }
.tcard .ptable tr:has(+ tr.dl-actrow) > td { border-bottom: 0 !important; padding-bottom: 4px !important; }
.tcard .dl-acts, .dl-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; max-width: 520px; }
.tcard .dl-acts .btn.tiny, .dl-acts .btn { width: 100%; min-height: 32px; padding: 0 4px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; margin: 0; }
/* phones: no lonely last tile, finger-sized small buttons and tabs */
@media (max-width: 899px) {
  .dash-tiles > :last-child:nth-child(odd), .rh-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  body:not(.tl-on) .dash-tiles { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 700px) {
  .btn.tiny, .ff-tab { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; }
  .content input[type="checkbox"] { width: 20px; height: 20px; }
  /* player theme side tab: slimmer so it covers less of the odds */
  .px-tdock.min .px-td-tab { width: 18px; padding: 7px 0 !important; opacity: .85; }
  .px-tdock.min .px-td-tab small { font-size: 9.5px; }
  .px-tdock.min .px-td-tab span { font-size: 11px; }
}
html[data-theme="diamond"] footer.footer { color: #555 !important; }
/* player themes on phones: header / footer controls finger-sized (owner 2026-11-16:
   "ha kardo"). Same icons and text; only the tap area grows. */
@media (max-width: 700px) {
  body.tl-on .tl-house, body.tl-on .tl-hb { min-width: 36px !important; min-height: 36px !important; display: inline-flex !important; align-items: center; justify-content: center; }
  body.tl-on .tl-acc > button:not(.tl-uname), body.tl-on .tl-acc2 > button:not(.tl-uname) { min-width: 32px !important; min-height: 32px !important; display: inline-flex !important; align-items: center; justify-content: center; }
  body.tl-on .tl-uname { min-height: 32px !important; display: inline-flex !important; align-items: center; white-space: nowrap !important; gap: 3px; }
  body.tl-on .tl-lgbtn { min-height: 34px !important; display: inline-flex !important; align-items: center; }
  body.tl-on .tl-search input { min-height: 34px !important; }
  body.tl-on .tl-news button { min-width: 32px !important; min-height: 28px !important; }
  body.tl-on .tl-f-links button, body.tl-on .tl-f-links a { min-height: 34px !important; display: inline-flex !important; align-items: center; justify-content: center; padding-left: 6px !important; padding-right: 6px !important; }
}
/* ===== players table like the reference panels (owner 2026-11-16) ===== */
.dlx-search { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; margin: 12px 0; }
.dlx-search .field { flex: 1 1 160px; min-height: 42px; margin: 0; }
.dlx-go { display: inline-flex; align-items: center; gap: 7px; background: #2c343c; color: #fff; border: 0; border-radius: 6px; padding: 0 16px; min-height: 42px; font-weight: 700; font-size: 14px; cursor: pointer; }
.dlx-search .btn.tiny { min-height: 42px; }
.dlx-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(127,127,127,.32); border-radius: 4px; }
table.dlx { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; }
table.dlx.adm { min-width: 700px; }
table.dlx th { background: rgba(127,127,127,.16); text-align: left; padding: 11px 12px; font-weight: 700; white-space: nowrap; border: 1px solid rgba(127,127,127,.32); user-select: none; }
table.dlx th[data-dlsort] { cursor: pointer; }
.dlx-sort { display: inline-block; margin-left: 8px; width: 8px; height: 13px; vertical-align: middle; position: relative; }
.dlx-sort::before, .dlx-sort::after { content: ''; position: absolute; left: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.dlx-sort::before { top: 0; border-bottom: 5px solid #6c7ae0; }
.dlx-sort::after { bottom: 0; border-top: 5px solid #6c7ae0; }
th.on[data-dir="up"] .dlx-sort::after, th.on[data-dir="down"] .dlx-sort::before { opacity: .25; }
table.dlx td { padding: 11px 12px; border: 1px solid rgba(127,127,127,.32); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
table.dlx td.neg { color: #e53935; }
table.dlx td small { display: block; font-size: 11px; font-weight: 500; opacity: .7; }
.dlx-badge { display: inline-block; background: #f7a12a; color: #1d1d1d; font-weight: 800; font-size: 11.5px; border-radius: 4px; padding: 2px 9px; margin-right: 10px; vertical-align: middle; }
.dlx-name .dlx-u { vertical-align: middle; }
.dlx-name small { margin-left: 46px; }
.dlx-act { white-space: nowrap; }
.dlx-act button { display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; border: 1px solid rgba(127,127,127,.4); border-radius: 6px; background: rgba(127,127,127,.08); color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.12); cursor: pointer; }
.dlx-act button:last-child { margin-right: 0; }
.dlx-empty { text-align: center; font-weight: 500 !important; opacity: .7; }
@media (max-width: 700px) { .pf-acc-body .dlx-wrap { margin-left: -10px; margin-right: -10px; border-left: 0; border-right: 0; border-radius: 0; } }
/* phones: players list stays a real table like the reference panels (owner
   2026-11-17: "table wali hi karo, ye cards sahi nahi lag rahe") - wide
   columns scroll sideways inside the panel, the classic downline pattern */
@media (max-width: 700px) {
  .dlx-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* index.html inline styles moved to classes (theme-safe borders / spacing) */
.fp-box { margin-top: 10px; border-top: 1px solid rgba(127,127,127,.3); padding-top: 10px; }
.fp-role { margin: 6px 0; }
.fp-btn { margin-top: 6px; }
.join-find { margin-top: 8px; }
.fp-box .am-field input { width: 100%; height: 46px; background: var(--card2); color: var(--text); border: 1px solid var(--card-border); border-radius: 10px; padding: 0 12px; font-size: 16px; outline: none; font-family: inherit; }
.fp-box .am-field input::placeholder { color: var(--faint); }
.fp-box .am-field input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
/* phone match list (2026-11-16 design review): edge-to-edge cards get square
   corners, and rows are tighter so more matches fit on one screen. Same text
   sizes and colours - team names and odds stay the strongest things. */
@media (max-width: 700px) {
  body:not(.tl-on) .pvml-card, body:not(.tl-on) .ml-row.mc2 { border-radius: 0 !important; border-left-width: 0 !important; border-right-width: 0 !important; }
  body:not(.tl-on) .pvml-card .pvml-top { padding: 8px 12px !important; }
  body:not(.tl-on) .pvml-card .pvml-title { margin-top: 2px !important; margin-bottom: 0 !important; }
  body:not(.tl-on) .pvml-card .pvml-odds { padding: 2px 12px 4px !important; }
  body:not(.tl-on) .pvml-card .pvml-odds .mc2-team { padding: 3px 2px !important; min-height: 0 !important; }
  body:not(.tl-on) .pvml-card .pvml-odds .mc2-cell { height: 36px !important; min-height: 36px !important; }
  body:not(.tl-on) .pvml-card .pvml-foot { padding: 7px 12px !important; }
  body:not(.tl-on) .ml-row.mc2 { padding: 8px 12px !important; }
  body:not(.tl-on) .ml-row.mc2 .mc2-team { padding: 3px 0 !important; }
}
/* lettered action buttons (owner 2026-11-16) */
.dlx-act button { width: auto; min-width: 34px; height: 32px; padding: 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }


/* ==== 2026-11-26 classy login + glossy casino tiles (cricboss-style pass) ==== */
#authModal .modal-box, #joinModal .modal-box { border: 1px solid color-mix(in srgb, var(--gold, #d4a63a) 45%, transparent); box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 0 0 1px color-mix(in srgb, var(--gold, #d4a63a) 18%, transparent); overflow: hidden; }
#authModal .modal-box::before, #joinModal .modal-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold, #d4a63a), transparent); }
.am-brand { color: var(--gold, #d4a63a); letter-spacing: .4px; }
.am-cta { background: linear-gradient(180deg, color-mix(in srgb, var(--gold, #d4a63a) 100%, #fff 12%) 0%, var(--gold, #d4a63a) 100%); color: #1c1404; box-shadow: 0 6px 18px color-mix(in srgb, var(--gold, #d4a63a) 35%, transparent); text-shadow: none; }
.am-cta:hover { filter: brightness(1.08); }
.am-wrap input:focus { border-color: var(--gold, #d4a63a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold, #d4a63a) 20%, transparent); }
.am-seg button.on { background: linear-gradient(180deg, color-mix(in srgb, var(--gold, #d4a63a) 100%, #fff 12%), var(--gold, #d4a63a)); color: #1c1404; }
.rh-tile, .rh-game { transition: transform .15s, box-shadow .15s; }
.rh-tile::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,0) 42%); pointer-events: none; }
.rh-tile b, .rh-tile small { z-index: 2; }
.rh-game .im::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 42%); pointer-events: none; }
.rh-tile:hover, .rh-game:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.35); }

/* 2026-11-26 mockup parts: scoreboard strip look around the vendor scorecard
   embed + OPEN BETS panel header in the theme ribbon color (shared, incl. Royal) */
.pv-score { position: relative; background: linear-gradient(180deg, #182635, #101a26); border-radius: 12px; padding: 30px 6px 6px !important; margin: 8px 0; box-shadow: 0 4px 14px rgba(3,10,20,.35); }
.pv-score::before { content: 'SCOREBOARD'; position: absolute; top: 9px; left: 12px; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: #7fa8cf; }
.pv-score iframe { border-radius: 8px !important; }
.pv-mb-banner { background: var(--rb-bg, #5c0f22); color: var(--rb-ink, #fff); }


/* === compact match header + trim oversized text (2026-12-02, owner: "bade bade text, extra part fix karo") ===
   CSS only, display tweaks. No logic, no markup, no API change. */
/* Live TV / Scorecard tabs: slim */
.pv-tabs { padding: 3px; gap: 4px; border-radius: 8px; margin: 4px 0; }
.pv-tab { font-size: 12px; padding: 5px 6px; line-height: 1.2; border-radius: 6px; }
/* scoreboard box: no label, no oversized frame */
.pv-score { padding: 4px !important; margin: 4px 0; }
.pv-score::before { display: none !important; content: none !important; }
.pv-score iframe { max-height: 160px; }
.pv-score:has(iframe[src=""]) { display: none; }
/* match view (classic layout): title bar + league row tighter */
body:not(.tl-on) .pv-matchview .pv-navhost { margin: 0; }
body:not(.tl-on) .pv-matchview .pv-nav { min-height: 0; padding: 4px 8px; margin: 0 0 2px; }
body:not(.tl-on) .pv-matchview .pv-nav .pv-ntitle { font-size: 14px; }
body:not(.tl-on) .pv-matchview .pv-nv.pv-back { height: 28px; padding: 0 8px; font-size: 16px; }
body:not(.tl-on) .pv-matchview .mc2-head { padding-top: 0; padding-bottom: 2px; }
body:not(.tl-on) .pv-matchview .mc2-head .ml-comp { font-size: 11.5px; }
body:not(.tl-on) .pv-matchview .mc2-head .mc-pill { font-size: 9.5px; padding: 1px 6px; }
/* player theme layouts (mobile): drop the scrolling ticker, single search, slimmer match bar */
@media (max-width: 640px) {
  body.tl-on .tl-news { display: none !important; }
  body.tl-on .tl-search input + input { display: none !important; }
  body.tl-on .tl-mtabs button { padding-top: 6px; padding-bottom: 6px; font-size: 12px; }
  body.tl-on .tl-mh { padding-top: 6px; padding-bottom: 6px; }
  body.tl-on .tl-mh b { font-size: 13px; }
}

/* === compact BACK / LAY header rows + market name bars (2026-12-02, owner: "Back and lay ye bhi bade hai") ===
   CSS only, display tweaks. Wording BACK/LAY unchanged. No logic, markup or API change. */
.pv-hrow { padding-top: 3px !important; padding-bottom: 3px !important; min-height: 0 !important; }
.pv-hrow .pv-hlbl { font-size: 11px !important; font-weight: 800; letter-spacing: .06em; padding-top: 0 !important; padding-bottom: 0 !important; height: auto !important; min-height: 0 !important; line-height: 1.2; }
.pv-hrow .pv-mname-t { font-size: 11.5px !important; letter-spacing: .03em; line-height: 1.2; }
.pv-ribbon { padding-top: 4px !important; padding-bottom: 4px !important; }
.pv-ribbon .pv-rtitle { font-size: 11.5px !important; line-height: 1.2; }
.pv-ribbon .pv-minmax { font-size: 10px !important; }
.mc-oddshead { font-size: 10.5px; padding-top: 2px; padding-bottom: 2px; }

/* === compact batch 2: header, nav, drawer, pay buttons (2026-12-02). CSS only, mobile only === */
@media (max-width: 640px) {
  body.tl-on .tl-lgbtn b { font-size: 20px; }
  body.tl-on .tl-r1 { min-height: 42px; }
  body.tl-on .tl-menu button { height: 42px; padding-top: 2px; padding-bottom: 2px; }
  body.tl-on .tl-quick button { height: 42px; }
  body.tl-on .tl-pay .hp-dep, body.tl-on .tl-pay .hp-wd { height: 32px; font-size: 12px; }
  body.tl-on .tl-band { height: 8px; }
  body.tl-on .tl-si { height: 42px; }
  body.tl-on .side-fixture.side-card { min-height: 0; padding-top: 7px; padding-bottom: 7px; }
  /* same sports listed three times: drop the quick row, keep the menu row and the GAMES/CRICKET tabs */
  body.tl-on .tl-quick { display: none !important; }
}

/* === compact batch 3: admin/agent dashboard + classic header (2026-12-02). CSS only === */
.dash-home .small-note.muted { display: none; }          /* "Platform ka overview" caption */
.pf-acc-item .pf-acc-tx .s { display: none; }             /* explanatory row subtitles */
.pf-acc-item#adTv .pf-acc-tx .s { display: block; font-size: 10.5px; }  /* Live TV keeps its ON/OFF state */
.pf-acc-head { padding-top: 8px; padding-bottom: 8px; }
.pf-acc-tx { gap: 0; line-height: 1.2; }
.pf-acc-item { margin-bottom: 4px; }
@media (max-width: 640px) {
  /* classic header: bell + theme on the first row (one row instead of two) */
  header.topbar { gap: 3px; }
  header.topbar #walletChip { zoom: .8; }
  header.topbar #notifBell, header.topbar #staffThemeBtn { width: 26px; min-width: 26px; height: 26px; margin: 0; padding: 0; }
  header.topbar .brand { zoom: .92; }
}
/* batch 4: lists (mobile), CSS only */
@media (max-width: 980px) {
  .ax-table > tbody > tr:first-child { display: grid !important; grid-template-columns: minmax(0,1fr) auto 36px 12px !important; gap: 0 8px !important; padding: 6px 12px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--card-border) !important; background: transparent !important; }
  .ax-table > tbody > tr:first-child th { display: none !important; }
  .ax-table > tbody > tr:first-child th:nth-child(1), .ax-table > tbody > tr:first-child th:nth-child(5), .ax-table > tbody > tr:first-child th:nth-child(6) { display: block !important; font-size: 10px !important; letter-spacing: .08em !important; color: var(--faint) !important; padding: 0 !important; border: 0 !important; }
  .ax-table > tbody > tr:first-child th:nth-child(5) { text-align: right !important; }
  .ax-table tr.ax-row { display: grid !important; grid-template-columns: minmax(0,1fr) auto 36px 12px !important; grid-template-areas: "n b p c" "n l p c" !important; gap: 0 8px !important; align-items: center !important; min-height: 46px; padding: 5px 12px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--card-border) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  .ax-table tr.ax-row > td { padding: 0 !important; border: 0 !important; min-width: 0; }
  .ax-table tr.ax-row > td::before { display: none !important; }
  .ax-table tr.ax-row > td:nth-child(1) { grid-area: n; display: block !important; font-size: 13.5px; font-weight: 700; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ax-table tr.ax-row > td:nth-child(5) { grid-area: b; display: block !important; text-align: right !important; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .ax-table tr.ax-row > td:nth-child(9) { grid-area: l; display: block !important; text-align: right !important; font-size: 10.5px; font-variant-numeric: tabular-nums; line-height: 1.2; }
  .ax-table tr.ax-row > td:nth-child(6) { grid-area: p; display: flex !important; align-items: center; justify-content: center; align-self: center; height: 22px; min-width: 30px; padding: 0 8px !important; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 11.5px; font-weight: 700; }
  .ax-table > tbody > tr:first-child th:nth-child(6) { text-align: center !important; }
  .ax-table tr.ax-row > td:nth-child(9):not(.pos):not(.neg) { color: var(--faint); }
  .ax-table tr.ax-row .ax-chev { display: none !important; }
  .ax-table tr.ax-row::after { content: "\203A"; grid-area: c; color: var(--faint); font-size: 18px; line-height: 1; text-align: right; transition: transform .15s; }
  .ax-table tr.ax-row.ax-open::after { transform: rotate(90deg); color: var(--accent, var(--violet)); }
  .ax-table tr.ax-row.ax-open { background: var(--card2) !important; box-shadow: inset 2px 0 0 var(--accent, var(--violet)) !important; }
  .ax-table tr.ax-kids { margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--card-border) !important; box-shadow: inset 2px 0 0 var(--accent, var(--violet)); }
  .ax-table tr.ax-kids > td { display: block !important; width: 100% !important; box-sizing: border-box; padding: 4px 12px 10px 20px !important; }
}
@media (max-width: 980px) {
  /* nested: agent details */
  .ax-table tr.ax-kids .ax-secgrid { grid-template-columns: 1fr 1fr !important; gap: 8px 12px !important; padding: 4px 0 8px !important; }
  .ax-table tr.ax-kids .ax-secgrid > div { min-width: 0; }
  .ax-table tr.ax-kids .ax-secgrid span { font-size: 9.5px !important; letter-spacing: .08em !important; margin-bottom: 2px; }
  .ax-table tr.ax-kids .ax-secgrid b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .ax-table tr.ax-kids .ax-secgrid b > span, .ax-table tr.ax-kids .ax-secgrid .minbuy { display: flex !important; gap: 6px !important; align-items: center; margin-top: 0 !important; font-size: inherit !important; letter-spacing: 0 !important; text-transform: none !important; }
  .ax-table tr.ax-kids .ax-secgrid b { display: block; }
  .ax-table tr.ax-kids .ax-secgrid input.field { width: 100% !important; min-width: 0; flex: 1; height: 30px !important; padding: 0 8px !important; font-size: 12.5px !important; border-radius: 8px !important; }
  .ax-table tr.ax-kids .ax-secgrid .btn { height: 30px; padding: 0 10px; flex: none; }
  /* nested: players table */
  .ptable tr.ax-kids .ax-sub, .ptable tr.ax-kids .ax-sub tbody { display: block; width: 100%; }
  .ptable tr.ax-kids .ax-sub tr, .ptable tr.ax-kids .ax-sub tr:has(th) { display: grid !important; grid-template-columns: minmax(0,1fr) 82px 56px 44px; gap: 0 6px; align-items: center; min-height: 34px; margin: 0 !important; padding: 0 !important; border: 0 !important; border-top: 1px solid var(--card-border) !important; border-radius: 0 !important; background: transparent !important; }
  .ptable tr.ax-kids .ax-sub tr:has(th) { min-height: 28px; }
  .ptable tr.ax-kids .ax-sub th { display: block !important; padding: 0 !important; border: 0 !important; font-size: 9.5px !important; letter-spacing: .08em; color: var(--faint); }
  .ptable tr.ax-kids .ax-sub th:nth-child(n+2), .ptable tr.ax-kids .ax-sub td:nth-child(n+2) { text-align: right; }
  .ptable tr.ax-kids .ax-sub td { display: block !important; padding: 0 !important; border: 0 !important; font-size: 12.5px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ptable tr.ax-kids .ax-sub td::before { display: none !important; }
  .ptable tr.ax-kids .ax-sub td:last-child { font-size: 10.5px; }
  .ptable tr.ax-kids .ax-sub td:first-child { font-weight: 600; }
  .ax-kids .ax-del { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px !important; padding-top: 0 !important; border: 0 !important; }
  .ax-kids .ax-del .btn { height: 30px; font-size: 12px; padding: 0 12px; border-radius: 8px; }
  .ax-kids .ax-delbtn { border-color: rgba(224,138,122,.55) !important; color: #e08a7a !important; }
  .ax-kids .ax-offbtn { border-color: var(--card-border) !important; color: var(--muted) !important; background: var(--card) !important; }
}
@media (max-width: 980px) {
  /* players table: compact rows, actions open on tap (see list-ui.js) */
  .pf-acc-body .dlx-wrap, .dlx-wrap { overflow: visible; border: 0 !important; border-radius: 0 !important; margin-left: -12px; margin-right: -12px; }
  table.dlx, table.dlx.adm, table.dlx tbody, table.dlx thead { display: block; width: 100%; min-width: 0 !important; }
  table.dlx thead tr { display: grid; grid-template-columns: minmax(0,1fr) auto 12px; gap: 0 8px; padding: 6px 12px; background: var(--card2); border-bottom: 1px solid var(--card-border); }
  table.dlx th { display: none; border: 0 !important; background: transparent !important; padding: 0 !important; font-size: 10px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
  table.dlx th:nth-child(1) { display: block; }
  table.dlx th:nth-child(3) { display: block; text-align: right; }
  table.dlx .dlx-sort { margin-left: 4px; transform: scale(.8); }
  table.dlx tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto 12px; grid-template-areas: "n b c" "a e c" "x x x"; gap: 0 8px; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--card-border); cursor: pointer; }
  table.dlx tbody tr.dlx-open { background: var(--card2); box-shadow: inset 2px 0 0 var(--accent, var(--violet)); }
  table.dlx tbody td { display: block; padding: 0 !important; border: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  table.dlx tbody td::before { display: none !important; }
  table.dlx tbody td:nth-child(1) { grid-area: n; font-size: 13.5px; font-weight: 700; }
  table.dlx tbody td:nth-child(2) { grid-area: a; font-size: 10.5px; font-weight: 500; color: var(--faint); }
  table.dlx tbody td:nth-child(3) { grid-area: b; font-size: 13px; font-weight: 700; text-align: right; }
  table.dlx tbody td:nth-child(4) { grid-area: e; font-size: 10.5px; font-weight: 500; text-align: right; color: var(--faint); }
  table.dlx tbody td:nth-child(4)::before { content: "Exp "; display: inline !important; }
  table.dlx tbody td:nth-child(5) { display: none; }
  table.dlx tbody tr::after { content: "\203A"; grid-area: c; color: var(--faint); font-size: 18px; text-align: right; transition: transform .15s; }
  table.dlx tbody tr.dlx-open::after { transform: rotate(90deg); color: var(--accent, var(--violet)); }
  table.dlx tbody td.dlx-act { display: none; grid-area: x; overflow: visible; padding-top: 8px !important; padding-bottom: 4px !important; }
  table.dlx tbody tr.dlx-open td.dlx-act { display: flex; gap: 6px; flex-wrap: wrap; }
  table.dlx .dlx-act button { height: 30px; min-width: 0; padding: 0 12px; margin: 0 !important; font-size: 12px; font-weight: 700; border-radius: 8px; letter-spacing: 0; box-shadow: none; border: 1px solid var(--card-border); background: var(--card); color: var(--muted); }
  table.dlx .dlx-act button[data-dl-bets], table.dlx .dlx-act button[data-dl-pnl] { border-color: rgba(212,166,58,.6); color: var(--accent, #e9c46a); background: transparent; }
  table.dlx .dlx-act button.d { background: #1d6fb8; border-color: #1d6fb8; color: #fff; }
  table.dlx .dlx-act button.w { background: transparent; border-color: #c2185b; color: #e88ab0; }
  .dlx-sum { padding: 8px 12px !important; margin: 8px 0 !important; border-radius: 10px !important; gap: 4px 14px !important; font-size: 12px !important; }
  .dlx-sum b { font-size: 13px !important; }
  .dlx-search { gap: 6px !important; margin: 8px 0 !important; }
  .dlx-search .field, .dlx-go, .dlx-search .btn.tiny { min-height: 34px !important; height: 34px; font-size: 12.5px !important; border-radius: 8px !important; }
  .dlx-go { padding: 0 12px !important; }
}
@media (max-width: 980px) { table.dlx tbody td small { display: inline; margin-left: 6px; font-size: 10px; opacity: .8; } }
/* agent player list (no Agent column): columns are Player, Balance, Exposure,
   Avail Bal., actions. The admin rules above map td2/td4 for the Agent column,
   so for agents "Exp" was showing Avail Bal. (= balance when no open bets). */
@media (max-width: 980px) {
  table.dlx:not(.adm) thead th:nth-child(2) { display: block; text-align: right; }
  table.dlx:not(.adm) thead th:nth-child(3) { display: none; }
  table.dlx:not(.adm) tbody td:nth-child(2) { grid-area: b; font-size: 13px; font-weight: 700; text-align: right; color: inherit; }
  table.dlx:not(.adm) tbody td:nth-child(3) { grid-area: e; font-size: 10.5px; font-weight: 500; text-align: right; color: var(--faint); }
  table.dlx:not(.adm) tbody td:nth-child(3)::before { content: "Exp "; display: inline !important; }
  table.dlx:not(.adm) tbody td:nth-child(4) { display: none; }
  table.dlx:not(.adm) tbody td:nth-child(4)::before { display: none !important; }
  table.dlx:not(.adm) tbody td:nth-child(5) { display: none; }
  table.dlx:not(.adm) tbody td.dlx-act { display: none; }
  table.dlx:not(.adm) tbody tr.dlx-open td.dlx-act { display: flex; }
}
/* requests: compact cards (all widths) */
.rq-list { gap: 8px !important; }
.rq-card { padding: 10px 12px !important; gap: 4px !important; border-radius: 10px !important; }
.rq-top { align-items: center; }
.rq-who { font-size: 13.5px !important; font-weight: 700; gap: 5px !important; }
.rq-role { font-size: 9.5px !important; padding: 1px 7px !important; }
.rq-pill { font-size: 10.5px !important; padding: 2px 8px !important; }
.rq-kind { font-size: 10.5px !important; padding: 2px 8px !important; border-radius: 999px !important; letter-spacing: .04em; }
.rq-amt { font-size: 16px !important; }
.rq-amt small, .rq-money { font-size: 11px !important; }
.rq-pay { padding: 5px 9px !important; font-size: 12px !important; gap: 2px 10px !important; border-radius: 8px !important; }
.rq-note { font-size: 12px !important; }
.rq-foot { border-top: 0 !important; padding-top: 0 !important; font-size: 10.5px !important; }
.rq-acts { gap: 6px !important; margin-top: 4px !important; justify-content: flex-end; }
.rq-acts .btn { flex: 0 1 auto !important; min-width: 84px; height: 32px; padding: 0 14px !important; font-size: 12.5px !important; font-weight: 700; border-radius: 8px !important; display: inline-flex; align-items: center; justify-content: center; }
.rq-acts .btn[data-approve] { background: #2f9e5b !important; border-color: #2f9e5b !important; color: #fff !important; }
.rq-acts .btn[data-reject] { background: transparent !important; border: 1px solid rgba(224,138,122,.6) !important; color: #e08a7a !important; }
/* summary strip, section titles, small tables (all widths) */
.kpi { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)) !important; border-radius: 10px !important; margin: 6px 0 8px !important; }
.kpi-c, .kpi-c:nth-child(2n), .kpi-c:nth-last-child(-n+2):nth-child(odd), .kpi-c:last-child { border: 0 !important; padding: 7px 12px !important; }
.kpi-l { font-size: 9.5px !important; letter-spacing: .1em !important; }
.kpi-v { font-size: 15px !important; margin-top: 2px !important; }
.kpi-s { font-size: 10px !important; margin-top: 1px !important; }
.sec-h, .profile-view .sec-h { margin: 12px 0 4px !important; font-size: 10.5px !important; letter-spacing: .12em !important; font-weight: 700 !important; color: var(--faint, #8b7a66) !important; }
.sec-h::after, .profile-view .sec-h::after { display: none !important; }
.tcard { margin-bottom: 6px; }
@media (max-width: 980px) {
  .tcard .ptable { display: table !important; width: 100%; font-size: 12.5px; border-collapse: collapse; }
  .tcard .ptable tbody { display: table-row-group !important; }
  .tcard .ptable tr, .tcard .ptable tr:has(th) { display: table-row !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; }
  .tcard .ptable th { display: table-cell !important; padding: 6px 4px !important; font-size: 9.5px !important; letter-spacing: .1em !important; color: var(--faint); border-bottom: 1px solid var(--card-border) !important; }
  .tcard .ptable td { display: table-cell !important; padding: 0 4px !important; height: 40px; border: 0 !important; border-bottom: 1px solid var(--card-border) !important; vertical-align: middle; font-size: 12.5px !important; }
  .tcard .ptable td::before { display: none !important; }
  .tcard .ptable th:first-child, .tcard .ptable td:first-child { padding-left: 12px !important; }
  .tcard .ptable th:last-child, .tcard .ptable td:last-child { padding-right: 12px !important; }
  .tcard .ptable .uid { display: block; font-size: 10px; color: var(--faint); font-weight: 500; }
}
.kpi-c.kpi-w { grid-column: auto !important; }
.tcard, .tcard .ptable, .tcard .ptable tr, .tcard .ptable td, .tcard .ptable th { border-radius: 0 !important; box-shadow: none !important; }
.tcard { border: 0 !important; background: none !important; padding: 0 !important; }
/* kpi numbers must not wrap */
.kpi { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)) !important; }
.kpi-c, .kpi-c:nth-child(2n), .kpi-c:nth-last-child(-n+2):nth-child(odd), .kpi-c:last-child { padding: 7px 10px !important; }
.kpi-v { font-size: 14px !important; white-space: nowrap; overflow-wrap: normal !important; }
@media (max-width: 980px) {
  /* wide money tables: keep every column, scroll sideways, first column stays */
  #content .tcard { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: -12px !important; margin-right: -12px !important; }
  .tcard .ptable td, .tcard .ptable th { white-space: nowrap; }
  .tcard .ptable td:first-child, .tcard .ptable th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card, #140b0c); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .tcard .ptable td { font-variant-numeric: tabular-nums; }
  /* bet list filters */
  .bl-filters { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px !important; margin-bottom: 8px; }
  .bl-filters .field { width: 100% !important; min-width: 0; height: 34px !important; padding: 0 8px !important; font-size: 12.5px !important; border-radius: 8px !important; margin: 0 !important; }
  .bl-filters .btn { height: 34px; font-size: 12.5px; font-weight: 700; border-radius: 8px; margin: 0 !important; }
  .bl-filters #adBlGo { background: linear-gradient(#f0cf7a, #d4a63a) !important; color: #2a1b05 !important; border: 0 !important; }
  /* bet list: match name collapses, tap to open (see list-ui.js) */
  .pv-mybets.sb-card:has(.bl-staff) { border-radius: 0 !important; margin: 0 -12px 0 !important; border: 0 !important; border-bottom: 1px solid var(--card-border) !important; box-shadow: none !important; }
  .pv-mybets.sb-card:has(.bl-staff) .pv-mb-banner { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px !important; cursor: pointer; font-size: 13.5px; }
  .pv-mybets.sb-card:has(.bl-staff) .pv-mb-banner::after { content: "\203A"; margin-left: 8px; font-size: 18px; transition: transform .15s; }
  .pv-mybets.sb-card.mb-open:has(.bl-staff) .pv-mb-banner::after { transform: rotate(90deg); }
  .pv-mybets.sb-card:has(.bl-staff):not(.mb-open) .pv-mb-sub, .pv-mybets.sb-card:has(.bl-staff):not(.mb-open) .bl-scroll { display: none !important; }
  .pv-mybets.sb-card:has(.bl-staff) .pv-mb-sub { padding: 6px 12px !important; font-size: 10px !important; letter-spacing: .1em; }
  .bl-staff, .bl-staff thead, .bl-staff tbody { display: block; width: 100%; min-width: 0 !important; }
  .bl-scroll { overflow: visible !important; }
  .bl-staff thead { display: none; }
  .bl-staff tr { display: grid; grid-template-columns: minmax(0,1fr) 46px 44px 70px; gap: 2px 8px; align-items: center; padding: 6px 12px; }
  .bl-staff td { display: block; padding: 0 !important; border: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; font-size: 12.5px; }
  .bl-staff td.bl-n { grid-column: 1; grid-row: 1; font-weight: 700; }
  .bl-staff td.bl-type { grid-column: 2; grid-row: 1; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
  .bl-staff td.bl-o { grid-column: 3; grid-row: 1; text-align: right; }
  .bl-staff td.bl-s { grid-column: 4; grid-row: 1; text-align: right; font-weight: 700; }
  .bl-staff td.bl-who:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 11px; }
  .bl-staff td.bl-who:nth-child(3) { grid-column: 2 / 4; grid-row: 2; font-size: 11px; opacity: .7; }
  .bl-staff td.bl-r { grid-column: 4; grid-row: 2; text-align: right; font-size: 11.5px; font-weight: 700; }
}
@media (max-width: 980px) {
  .bl-staff tr td { background: transparent !important; }
  .bl-staff tr.blue { background: #b9dcf4 !important; }
  .bl-staff tr.pink { background: #f7c4d0 !important; }
  .bl-staff tr { border-bottom: 1px solid rgba(0,0,0,.12); }
  .bl-staff td, .bl-staff td.bl-n { color: #1b1b1f !important; }
  .bl-staff td.bl-r.neg { color: #b3261e !important; } .bl-staff td.bl-r.pos { color: #1b7a3e !important; }
}
/* spacing: one 12px side padding for page content, 8/12 gaps */
@media (max-width: 980px) {
  .section-title { padding-left: 12px !important; padding-right: 12px !important; }
  #content .pf-acc-body { padding-left: 12px !important; padding-right: 12px !important; }
  .pf-acc-head { padding-left: 12px !important; padding-right: 12px !important; }
  .dlx-sum, .dlx-search { margin-left: 0 !important; margin-right: 0 !important; }
}
/* buttons: one size, radius and weight system (colours stay per theme) */
.btn { border-radius: 8px; font-weight: 700; }
.btn.tiny { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; font-size: 12px; line-height: 1; }
body:not(.tl-on) .btn.blue { background: linear-gradient(#f0cf7a, #d4a63a); color: #2a1b05; border-color: transparent; }
/* header fits on 360-375px phones */
@media (max-width: 399px) {
  header.topbar #walletChip { zoom: .72 !important; }
  header.topbar .brand { zoom: .85 !important; }
}
@media (max-width: 980px) {
  /* banking: one row per agent, two lines, nothing scrolls sideways */
  #content .tcard:has(tr[data-bk]) { overflow: visible; margin-left: 0 !important; margin-right: 0 !important; }
  .tcard:has(tr[data-bk]) .ptable, .tcard:has(tr[data-bk]) .ptable tbody { display: block !important; }
  .tcard:has(tr[data-bk]) .ptable tr:has(th) { display: none !important; }
  .tcard .ptable tr[data-bk] { display: grid !important; grid-template-columns: 72px minmax(0,1fr) 64px; gap: 6px 8px; align-items: center; padding: 8px 0 !important; border-bottom: 1px solid var(--card-border) !important; }
  .tcard .ptable tr[data-bk] td { display: block !important; height: auto; padding: 0 !important; border: 0 !important; position: static !important; background: transparent !important; max-width: none; }
  .tcard .ptable tr[data-bk] td:nth-child(1) { grid-column: 1 / 3; grid-row: 1; font-weight: 700; font-size: 13.5px !important; }
  .tcard .ptable tr[data-bk] td:nth-child(2) { grid-column: 3; grid-row: 1; text-align: right; font-weight: 700; }
  .tcard .ptable tr[data-bk] td:nth-child(3) { grid-column: 1; grid-row: 2; font-size: 12px; display: flex !important; flex-wrap: nowrap; gap: 8px; white-space: nowrap; }
  .tcard .ptable tr[data-bk] td:nth-child(3) label { display: inline-flex; align-items: center; gap: 3px; }
  .tcard .ptable tr[data-bk] td:nth-child(4) { grid-column: 2; grid-row: 2; }
  .tcard .ptable tr[data-bk] td:nth-child(5) { grid-column: 3; grid-row: 2; text-align: right; }
  .tcard .ptable tr[data-bk] td:nth-child(6) { grid-column: 1 / 4; grid-row: 3; font-size: 11.5px !important; }
  .tcard .ptable tr[data-bk] td:nth-child(6):empty { display: none !important; }
  .tcard .ptable tr[data-bk] .bk-amt { width: 100% !important; min-width: 0; height: 30px !important; padding: 0 8px !important; font-size: 12.5px !important; border-radius: 8px !important; }
}
