/* ═══════════════════════════════════════════════════════════
   IPLXBET — Premium User Interface
   Fonts: Barlow Condensed (display) + Outfit (body)
   Theme: Cricket-inspired · Deep navy · Gold accent · Clean white
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── RESET TOKENS ─────────────────────────────── */
:root {
  /* Core palette */
  --navy:       #0f1f3d;
  --navy-2:     #162848;
  --navy-3:     #1e3a60;
  --gold:       #f0b429;
  --gold-2:     #e8a200;
  --gold-pale:  #fef9ec;
  --gold-dim:   rgba(240,180,41,.15);

  --white:      #ffffff;
  --off:        #f7f8fc;
  --surface:    #ffffff;
  --border:     #eaecf2;
  --border-2:   #d8dce8;

  --ink:        #0d1421;
  --ink-2:      #3a4560;
  --ink-3:      #7a84a0;
  --ink-4:      #b8bed4;

  --green:      #15803d;
  --green-lt:   #dcfce7;
  --green-mid:  #86efac;
  --red:        #dc2626;
  --red-lt:     #fee2e2;
  --amber:      #d97706;
  --amber-lt:   #fef3c7;
  --purple:     #7c3aed;
  --purple-lt:  #ede9fe;

  /* Typography */
  --ff:   'Outfit', sans-serif;
  --ffd:  'Barlow Condensed', sans-serif;

  /* Spacing / radius */
  --r:    10px;
  --rl:   16px;
  --rxl:  22px;

  /* Layout */
  --nav-h:         60px;
  --topbar-h:      58px;
  --safe-bottom:   env(safe-area-inset-bottom, 0px);

  /* Shadows */
  --sh-sm:  0 1px 4px rgba(15,31,61,.08);
  --sh-md:  0 4px 16px rgba(15,31,61,.10);
  --sh-lg:  0 8px 32px rgba(15,31,61,.14);
  --sh-xl:  0 16px 48px rgba(15,31,61,.18);
}

/* ── BASE RESET ───────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  font-family: var(--ff);
  background: var(--off);
  color: var(--ink);
  height: 100%;
  font-size: 14px;
  overscroll-behavior: none;
}
::-webkit-scrollbar { width: 0; }
button { font-family: var(--ff); cursor: pointer; border: none; background: none; -webkit-appearance: none; }
a { text-decoration: none; color: inherit; }
input, select, textarea { font-family: var(--ff); font-size: 14px; -webkit-appearance: none; }

/* ── KEYFRAMES ─────────────────────────────────── */
@keyframes fadeUp    { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:translateY(0) } }
@keyframes fadeIn    { from { opacity:0 } to { opacity:1 } }
@keyframes spin      { to { transform:rotate(360deg) } }
@keyframes shimmer   { 0%{background-position:-400px 0} 100%{background-position:400px 0} }
@keyframes popIn     { 0%{transform:scale(0);opacity:0} 70%{transform:scale(1.12)} 100%{transform:scale(1);opacity:1} }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.7)} }
@keyframes slideUp   { from{transform:translateY(100%)} to{transform:translateY(0)} }
@keyframes glow      { 0%,100%{opacity:.6} 50%{opacity:1} }

/* ════════════════════════════════════════════════
   APP SHELL
   ════════════════════════════════════════════════ */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  position: relative;
  box-shadow: 0 0 80px rgba(15,31,61,.12);
}

/* ── TOPBAR ─────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--navy);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 0 rgba(255,255,255,.04), 0 4px 20px rgba(15,31,61,.4);
}

.topbar-logo {
  font-family: var(--ffd);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .5px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.topbar-logo-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(240,180,41,.4);
}
.topbar-logo span { color: var(--gold); }

.topbar-right { display: flex; align-items: center; gap: 8px; }
.wallet-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(240,180,41,.12);
  border: 1px solid rgba(240,180,41,.3);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  transition: all .18s;
  font-family: var(--ffd);
  letter-spacing: .3px;
}
.wallet-pill:active { background: rgba(240,180,41,.22); transform: scale(.97); }
.wallet-pill i { font-size: 12px; }

/* ── PAGE CONTAINER ─────────────────────────────── */
.pages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
}

/* ── BOTTOM NAV ─────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-top: 1px solid var(--border);
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(15,31,61,.06);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: var(--ink-4);
  transition: color .18s;
  padding: 8px 4px;
  position: relative;
}
.nav-item.active { color: var(--navy); }
.nav-item i {
  font-size: 20px;
  transition: transform .2s;
  line-height: 1;
}
.nav-item.active i { transform: scale(1.12); }
.nav-item span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1;
  font-family: var(--ffd);
  text-transform: uppercase;
}
/* Active indicator dot */
.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 0 0 4px 4px;
}

/* ── PAGE TRANSITIONS ───────────────────────────── */
.page { display: none; }
.page.active { display: block; animation: fadeUp .22s ease forwards; }

/* ════════════════════════════════════════════════
   HOME BANNER
   ════════════════════════════════════════════════ */
.home-banner {
  position: relative;
  overflow: hidden;
  margin: 14px 14px 0;
  border-radius: var(--rxl);
  padding: 24px 22px 22px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 130px;
}
/* Layered background effect */
.home-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 110% 0%, rgba(240,180,41,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at -10% 100%, rgba(21,128,61,.2) 0%, transparent 60%);
  pointer-events: none;
}
/* Diagonal stripe texture */
.home-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,.015) 12px,
    rgba(255,255,255,.015) 13px
  );
  pointer-events: none;
}
.hb-glow {
  display: none; /* replaced by ::before */
}
.hb-content { position: relative; z-index: 1; }
.hb-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(240,180,41,.15);
  border: 1px solid rgba(240,180,41,.35);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: .5px;
  font-family: var(--ffd);
  text-transform: uppercase;
}
.hb-title {
  font-family: var(--ffd);
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hb-title em {
  font-style: normal;
  color: var(--gold);
}
.hb-sub {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .2px;
}
.hb-emoji {
  font-size: 64px;
  opacity: .12;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  filter: grayscale(.2);
}

/* ── SECTION HEADER ─────────────────────────────── */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 10px;
}
.section-hd-title {
  font-family: var(--ffd);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.section-hd-sub {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

/* ════════════════════════════════════════════════
   MATCH CARDS
   ════════════════════════════════════════════════ */
.match-card {
  border-radius: var(--rxl);
  padding: 0;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  -webkit-user-select: none;
}
.match-card:active {
  transform: scale(.975);
  box-shadow: var(--sh-sm);
}

/* 4 accent colours — left border + subtle tint */
.match-card:nth-child(4n+1) { border-left: 3px solid var(--navy-3); }
.match-card:nth-child(4n+2) { border-left: 3px solid var(--purple); }
.match-card:nth-child(4n+3) { border-left: 3px solid var(--green); }
.match-card:nth-child(4n+4) { border-left: 3px solid var(--amber); }
.match-card.live-card { border-left: 3px solid var(--red) !important; }

.mc-body { padding: 14px 16px 10px; }

.match-teams { display: flex; align-items: center; gap: 10px; }
.team-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.team-logo-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--off);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ffd);
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--sh-sm);
}
.team-logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.team-name-sm {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--ffd);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.team-code { font-size: 11px; color: var(--ink-3); }

.vs-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--off);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ffd);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-3);
  flex-shrink: 0;
  letter-spacing: .5px;
}

.mc-footer {
  background: var(--off);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.match-meta-tag {
  font-size: 11px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red-lt);
  color: var(--red);
  border: 1px solid rgba(220,38,38,.2);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--ffd);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.live-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
  animation: livePulse 1.2s ease-in-out infinite;
}
.live-dot-sm {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: livePulse 1.2s ease-in-out infinite;
}
.mc-q-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ffd);
  letter-spacing: .3px;
}
.mc-match-type {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--ffd);
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════
   QUESTION CARDS
   ════════════════════════════════════════════════ */
.q-card {
  border-radius: var(--rl);
  margin: 0 0 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  -webkit-user-select: none;
}
/* Coloured top border per card */
.q-card:nth-child(4n+1) { border-top: 3px solid var(--navy-3); }
.q-card:nth-child(4n+2) { border-top: 3px solid var(--amber); }
.q-card:nth-child(4n+3) { border-top: 3px solid var(--green); }
.q-card:nth-child(4n+4) { border-top: 3px solid var(--purple); }
.q-card.q-betplaced { opacity: .85; }
.q-card.q-closed    { opacity: .6; pointer-events: none; }

.q-hd {
  padding: 13px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.q-num {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-4);
  margin-bottom: 4px;
  font-family: var(--ffd);
}
.q-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.q-body { padding: 12px 16px 14px; }

.q-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.q-opt {
  padding: 12px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--off);
  position: relative;
  overflow: hidden;
}
.q-opt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0;
  transition: opacity .15s;
}
.q-opt:active { transform: scale(.96); }
.q-opt.selected {
  border-color: var(--navy);
  background: rgba(15,31,61,.06);
}
.q-opt.selected::before { opacity: .04; }
.q-opt.winner { border-color: var(--green); background: var(--green-lt); }
.q-opt.loser  { opacity: .45; }
.q-opt-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.q-opt-rate {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-lt);
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 4px;
  font-family: var(--ffd);
  letter-spacing: .3px;
  position: relative;
}
.q-opt-bets {
  font-size: 10px;
  color: var(--ink-4);
  margin-top: 3px;
  position: relative;
}
.q-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.q-bet-info {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Match detail header */
.match-detail-hd {
  background: var(--navy);
  padding: 18px 16px 16px;
  margin-bottom: 2px;
}

/* ════════════════════════════════════════════════
   BET SLIP SHEET
   ════════════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0);
  pointer-events: none;
  z-index: 200;
  transition: background .25s;
}
.overlay.open { background: rgba(10,18,40,.55); pointer-events: auto; }

.sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  z-index: 201;
  transition: transform .32s cubic-bezier(.32,0,.2,1);
  max-height: 92vh;
  overflow-y: auto;
}
.sheet.open { transform: translateX(-50%) translateY(0); }

.sheet-handle {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--border-2);
  margin: 12px auto 0;
}
.sheet-hd {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.sheet-title {
  font-family: var(--ffd);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.sheet-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--off);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-size: 14px;
  transition: all .15s;
}
.sheet-close:active { background: var(--border); }
.sheet-body { padding: 16px 18px; }

.bs-match { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; font-weight: 600; }
.bs-question { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.bs-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.bs-sel-label { font-size: 14px; font-weight: 700; color: var(--white); font-family: var(--ffd); letter-spacing: .3px; }
.bs-rate { font-size: 20px; font-weight: 900; color: var(--gold); font-family: var(--ffd); }

.amt-row { margin-bottom: 12px; }
.amt-label { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.amt-input-wrap {
  display: flex;
  align-items: center;
  background: var(--off);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 2px 6px 2px 14px;
  transition: border .16s;
}
.amt-input-wrap:focus-within { border-color: var(--navy); }
.amt-pre { font-size: 18px; font-weight: 700; color: var(--ink-3); font-family: var(--ffd); }
.amt-field {
  flex: 1; background: none; border: none; outline: none;
  font-size: 26px; font-weight: 800; color: var(--ink);
  padding: 8px; font-family: var(--ffd);
}
.amt-max {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--ffd);
  letter-spacing: .5px;
}

.quick-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .14s;
  color: var(--ink-2);
  font-family: var(--ffd);
  letter-spacing: .3px;
}
.chip:active { background: var(--navy); color: var(--white); border-color: var(--navy); transform: scale(.96); }

.bs-summary {
  background: var(--off);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.bs-row { display: flex; justify-content: space-between; padding: 5px 0; }
.bs-row.hl { padding-top: 9px; border-top: 1px dashed var(--border-2); }
.bs-row-l { font-size: 13px; color: var(--ink-3); }
.bs-row-v { font-size: 13px; font-weight: 700; color: var(--ink); }
.bs-row-v.big { font-size: 18px; font-weight: 900; color: var(--green); font-family: var(--ffd); }

.bal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 14px;
  background: var(--off);
}
.bal-label { font-size: 12px; color: var(--ink-3); }
.bal-val { font-size: 16px; font-weight: 800; color: var(--ink); font-family: var(--ffd); }

.place-btn {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--rl);
  font-family: var(--ffd);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .16s;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.place-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 100%);
}
.place-btn:disabled { background: var(--border); color: var(--ink-4); cursor: not-allowed; }
.place-btn:not(:disabled):active { transform: scale(.98); opacity: .92; }
.tnc { text-align: center; font-size: 10px; color: var(--ink-4); margin-top: 8px; }

/* ════════════════════════════════════════════════
   WALLET CARD
   ════════════════════════════════════════════════ */
.wallet-card {
  background: var(--navy);
  border-radius: var(--rxl);
  padding: 24px 22px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.wallet-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,180,41,.2) 0%, transparent 70%);
}
.wallet-card::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -20px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,128,61,.15) 0%, transparent 70%);
}
.wc-label {
  font-size: 11px;
  font-weight: 700;
  opacity: .6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-family: var(--ffd);
  position: relative;
}
.wc-amount {
  font-size: 38px;
  font-weight: 900;
  font-family: var(--ffd);
  line-height: 1;
  letter-spacing: .5px;
  position: relative;
}
.wc-sub { font-size: 12px; opacity: .55; margin-top: 6px; position: relative; }
.wc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.wc-split-item .label {
  font-size: 10px;
  opacity: .55;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-family: var(--ffd);
}
.wc-split-item .val {
  font-size: 18px;
  font-weight: 800;
  margin-top: 3px;
  font-family: var(--ffd);
}

.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.wallet-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  cursor: pointer;
  transition: all .16s;
  background: var(--white);
  box-shadow: var(--sh-sm);
}
.wallet-action-btn:active { background: var(--off); transform: scale(.97); }
.wallet-action-btn i { font-size: 22px; }
.wallet-action-btn.deposit i { color: var(--green); }
.wallet-action-btn.withdraw i { color: var(--amber); }
.wallet-action-btn span { font-size: 12px; font-weight: 700; color: var(--ink); font-family: var(--ffd); letter-spacing: .3px; text-transform: uppercase; }

/* ── TRANSACTION LIST ────────────────────────────── */
.txn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.txn-item:last-child { border-bottom: none; }
.txn-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.txn-icon.credit { background: var(--green-lt); color: var(--green); }
.txn-icon.debit  { background: var(--red-lt); color: var(--red); }
.txn-desc { flex: 1; min-width: 0; }
.txn-desc .title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-desc .date  { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.txn-amount { text-align: right; flex-shrink: 0; }
.txn-amount .val { font-size: 14px; font-weight: 800; font-family: var(--ffd); }
.txn-amount .val.credit { color: var(--green); }
.txn-amount .val.debit  { color: var(--red); }
.txn-amount .wallet { font-size: 10px; color: var(--ink-4); margin-top: 2px; }

/* ════════════════════════════════════════════════
   PROFILE
   ════════════════════════════════════════════════ */
.profile-header {
  padding: 0;
  /* overridden inline in profile.js */
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--purple) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ffd);
  font-weight: 900;
  font-size: 26px;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(15,31,61,.25);
}
.profile-name { font-family: var(--ffd); font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: .3px; }
.profile-mobile { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  margin: 0 16px 16px;
  box-shadow: var(--sh-sm);
}
.pstat { background: var(--white); padding: 14px 10px; text-align: center; }
.pstat-val { font-size: 22px; font-weight: 900; color: var(--ink); font-family: var(--ffd); }
.pstat-val.green { color: var(--green); }
.pstat-label { font-size: 10px; color: var(--ink-3); margin-top: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-family: var(--ffd); }
.profile-menu { padding: 0 16px; }
.menu-section-title { font-size: 10px; font-weight: 800; color: var(--ink-4); text-transform: uppercase; letter-spacing: 1px; padding: 14px 0 6px; font-family: var(--ffd); }
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all .14s;
}
.menu-item:active { opacity: .7; }
.menu-item .icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.menu-item .label { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.menu-item .arrow { color: var(--ink-4); font-size: 12px; }
.menu-item:last-child { border-bottom: none; }

/* ════════════════════════════════════════════════
   MY BETS
   ════════════════════════════════════════════════ */
.bet-match-card {
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .16s;
  background: var(--white);
  box-shadow: var(--sh-sm);
}
.bet-match-card:active { background: var(--off); transform: scale(.99); }
.bet-summary-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bet-summary-chip {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--ffd);
  letter-spacing: .2px;
}
.bet-summary-chip.green  { background: var(--green-lt); color: var(--green); border-color: transparent; }
.bet-summary-chip.gold   { background: var(--amber-lt); color: var(--amber); border-color: transparent; }

/* ════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════ */
.form-section { padding: 16px; }
.form-section h3 { font-family: var(--ffd); font-size: 20px; font-weight: 800; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .3px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
  font-family: var(--ffd);
}
.field input, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border .14s;
  font-size: 15px;
  font-weight: 600;
}
.field input:focus, .field select:focus { border-color: var(--navy); }
.field-error { font-size: 11px; color: var(--red); margin-top: 4px; display: none; }
.field-hint  { font-size: 11px; color: var(--ink-3); margin-top: 4px; }

.btn-full {
  width: 100%;
  padding: 15px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--rl);
  font-family: var(--ffd);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .16s;
}
.btn-full:disabled { opacity: .45; cursor: not-allowed; }
.btn-full.green { background: var(--green); }
.btn-full:active { transform: scale(.98); opacity: .9; }
.btn-outline {
  width: 100%;
  padding: 13px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: var(--rl);
  font-family: var(--ffd);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .16s;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.btn-outline:active { background: var(--off); }

/* ════════════════════════════════════════════════
   LOADING / EMPTY STATES
   ════════════════════════════════════════════════ */
.loader-ring {
  width: 30px; height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--off) 50%, var(--border) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
  height: 16px;
}
.page-loader { display: flex; align-items: center; justify-content: center; min-height: 200px; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
  text-align: center;
}
.empty-icon { font-size: 44px; margin-bottom: 14px; opacity: .2; }
.empty-title { font-family: var(--ffd); font-size: 20px; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px; }
.empty-sub { font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ════════════════════════════════════════════════
   TOAST
   ════════════════════════════════════════════════ */
#toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--ink);
  color: var(--white);
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  transition: all .28s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
  font-family: var(--ffd);
  letter-spacing: .3px;
  box-shadow: var(--sh-lg);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.success { background: var(--green); }
#toast.error   { background: var(--red); }

/* ════════════════════════════════════════════════
   SUCCESS SHEET
   ════════════════════════════════════════════════ */
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green-lt);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 36px;
}
.success-icon i { animation: popIn .4s .1s ease both; color: var(--green); }

/* ════════════════════════════════════════════════
   MISC
   ════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 16px;
  box-shadow: var(--sh-sm);
}
.card-sm { padding: 12px; border-radius: var(--r); }

.tabs-bar {
  display: flex;
  background: var(--off);
  margin: 0 14px 12px;
  border-radius: var(--r);
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
}
.tab-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  text-align: center;
  cursor: pointer;
  transition: all .16s;
  font-family: var(--ffd);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.tab-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--sh-sm);
}

/* UPI / deposit card */
.upi-card {
  background: var(--navy);
  border-radius: var(--rl);
  padding: 20px;
  color: var(--white);
  text-align: center;
  margin-bottom: 16px;
}
.upi-id-big {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--ffd);
  letter-spacing: .3px;
  margin-top: 8px;
  color: var(--gold);
}
.upi-sub { font-size: 12px; opacity: .65; margin-top: 4px; }
.utr-badge {
  background: var(--amber-lt);
  border: 1.5px solid rgba(217,119,6,.2);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.utr-badge-title { font-size: 12px; font-weight: 800; color: var(--amber); margin-bottom: 4px; font-family: var(--ffd); text-transform: uppercase; letter-spacing: .3px; }
.utr-badge-sub { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.limit-bar {
  display: flex;
  justify-content: space-between;
  background: var(--off);
  border-radius: var(--r);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--ink-3);
  border: 1px solid var(--border);
}
.limit-bar strong { color: var(--ink); }

/* Auth screen */
.auth-screen { min-height: 100vh; display: flex; flex-direction: column; background: var(--white); }
.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 24px 40px;
  background: var(--navy);
  flex-shrink: 0;
}
.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(240,180,41,.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(21,128,61,.15) 0%, transparent 60%);
}
.auth-hero-glow { display: none; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; position: relative; z-index: 1; }
.auth-brand-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(240,180,41,.4);
}
.auth-brand-name {
  font-family: var(--ffd);
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.auth-brand-name span { color: var(--gold); }
.auth-tagline {
  font-family: var(--ffd);
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.auth-sub-tag { font-size: 13px; color: rgba(255,255,255,.5); position: relative; z-index: 1; font-weight: 500; }
.auth-body { flex: 1; padding: 28px 20px; overflow-y: auto; }
.auth-card { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-section-title { font-family: var(--ffd); font-size: 22px; font-weight: 800; margin-bottom: 4px; color: var(--ink); text-transform: uppercase; letter-spacing: .3px; }
.auth-section-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }

.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.otp-inputs input {
  width: 56px; height: 62px;
  border: 2px solid var(--border);
  border-radius: var(--r);
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  transition: border .14s;
  background: var(--off);
  font-family: var(--ffd);
  color: var(--navy);
}
.otp-inputs input:focus { border-color: var(--navy); background: var(--white); }