/* ═══════════════════════════════════════════════
   BharatAdda — Main Stylesheet
   Font: Poppins (headings) + DM Sans (body)
   Theme: Deep Crimson + Pure White
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── VARIABLES ─────────────────────────────── */
:root {
  /* Primary */
  --primary:      #c0392b;
  --primary-dk:   #962d22;
  --primary-lt:   #fdf2f2;
  --primary-mid:  #e74c3c;

  /* Accent */
  --accent-green: #27ae60;
  --accent-grn-l: #eafaf1;
  --accent-grn-d: #1e8449;
  --accent-blue:  #2980b9;
  --accent-blu-l: #eaf4fb;
  --accent-purple:#8e44ad;
  --accent-pur-l: #f5eef8;
  --accent-orange:#e67e22;
  --accent-org-l: #fef9f0;
  --accent-yellow:#f39c12;

  /* Neutrals */
  --bg:        #f4f5f7;
  --bg-dark:   #eaebee;
  --card:      #ffffff;
  --white:     #ffffff;
  --border:    #e1e4ea;
  --border-dk: #c8ccd4;

  /* Text */
  --text:      #1a202c;
  --text-2:    #4a5568;
  --text-3:    #718096;
  --text-4:    #a0aec0;

  /* Effects */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);

  /* Layout */
  --radius:     14px;
  --radius-sm:  9px;
  --radius-xs:  6px;
  --topbar-h:   56px;
  --bnav-h:     62px;
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
ul, ol { list-style: none; }

/* ── APP SHELL ─────────────────────────────── */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

/* ── TOP BAR ───────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.topbar-logo { height: 32px; object-fit: contain; }
.topbar-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.topbar-l, .topbar-r {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 56px;
}
.topbar-r { justify-content: flex-end; }

/* Balance chip in topbar */
.topbar-bal {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-lt);
  border: 1px solid #f5c6c6;
  border-radius: 30px;
  padding: 5px 12px;
  cursor: pointer;
}
.topbar-bal-label { font-size: 11px; color: var(--text-3); }
.topbar-bal-val { font-size: 14px; font-weight: 700; color: var(--primary); font-family: 'Poppins', sans-serif; }

/* Icon button */
.ibtn {
  width: 36px; height: 36px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 16px;
  transition: all .15s;
}
.ibtn:hover, .ibtn:active { background: var(--bg); color: var(--text); }

/* ── BOTTOM NAV ────────────────────────────── */
.bnav {
  position: fixed;
  bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--bnav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
  /* Safe area for iOS home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-4);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: color .15s;
  padding-bottom: 4px;
  position: relative;
}
.bnav-item i { font-size: 21px; transition: transform .2s; }
.bnav-item.active { color: var(--primary); }
.bnav-item.active i { transform: scale(1.1); }
.bnav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

/* ── PAGE WRAP ─────────────────────────────── */
.pg {
  padding: 16px;
  padding-bottom: calc(var(--bnav-h) + 16px);
}
.pg-nb { padding: 16px; } /* no bottom nav */
.pg-scroll { min-height: calc(100vh - var(--topbar-h) - var(--bnav-h)); }

/* ── CARDS ─────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 12px;
}
.card-last { margin-bottom: 0; }
.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-hd-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── SECTION HEADERS ───────────────────────── */
.sec-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-3);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sec-title a { font-size: 12px; color: var(--primary); text-transform: none; letter-spacing: 0; font-weight: 600; }

/* ── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .15s;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .1px;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* Variants */
.btn-red    { background: var(--primary); color: #fff; }
.btn-red:hover { background: var(--primary-dk); }
.btn-green  { background: var(--accent-green); color: #fff; }
.btn-green:hover { background: var(--accent-grn-d); }
.btn-outline{ background: transparent; border: 1.5px solid var(--border); color: var(--text-2); }
.btn-ghost  { background: var(--bg); color: var(--text-2); }

/* Sizes */
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-xs); width: auto; }
.btn-xs { padding: 5px 10px; font-size: 11px; border-radius: 5px; width: auto; }
.btn-full { width: 100%; }

/* ── FORMS ─────────────────────────────────── */
.fg { margin-bottom: 14px; }
.fg label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.fg label span { text-transform: none; font-weight: 500; color: var(--text-4); letter-spacing: 0; }
.fc {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.fc:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.fc::placeholder { color: var(--text-4); }
.fc-prefix { position: relative; }
.fc-prefix .fc { padding-left: 42px; }
.fc-prefix .prefix-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-4); font-size: 15px; pointer-events: none; }
.form-hint { font-size: 12px; color: var(--text-4); margin-top: 5px; }
.form-row { display: flex; gap: 10px; }
.form-row .fg { flex: 1; }

/* ── BADGES ────────────────────────────────── */
.badge {
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1px;
}
.badge-success { background: var(--accent-grn-l); color: var(--accent-grn-d); }
.badge-danger  { background: var(--primary-lt);   color: var(--primary-dk); }
.badge-warning { background: var(--accent-org-l); color: #c0392b; }
.badge-info    { background: var(--accent-blu-l); color: var(--accent-blue); }
.badge-purple  { background: var(--accent-pur-l); color: var(--accent-purple); }
.badge-pending { background: #fefce8; color: #92400e; border: 1px solid #fef08a; }
.badge-green   { background: var(--accent-grn-l); color: var(--accent-grn-d); }
.badge-red     { background: var(--primary-lt);   color: var(--primary); }
.badge-violet  { background: var(--accent-pur-l); color: var(--accent-purple); }

/* ── ALERTS ────────────────────────────────── */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.alert i { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.alert-info    { background: var(--accent-blu-l); color: #1a5276; border: 1px solid #aed6f1; }
.alert-success { background: var(--accent-grn-l); color: var(--accent-grn-d); border: 1px solid #a9dfbf; }
.alert-warning { background: var(--accent-org-l); color: #784212; border: 1px solid #f0c27f; }
.alert-danger  { background: var(--primary-lt);   color: var(--primary-dk); border: 1px solid #f1948a; }

/* ── TABLES ────────────────────────────────── */
.tbl-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  background: var(--bg);
  padding: 9px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl tbody td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: #fafbfc; }
.tbl td.fw { font-weight: 700; }
.tbl td.sm { font-size: 12px; color: var(--text-3); }
.tbl td.code { font-family: 'Courier New', monospace; font-size: 11px; }

/* ── STATS GRID ────────────────────────────── */
.stats-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stats-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.stat-val {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.stat-lbl { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.stat-box.red    .stat-val { color: var(--primary); }
.stat-box.green  .stat-val { color: var(--accent-green); }
.stat-box.blue   .stat-val { color: var(--accent-blue); }
.stat-box.purple .stat-val { color: var(--accent-purple); }
.stat-box.orange .stat-val { color: var(--accent-orange); }

/* ── BALANCE HERO CARD ─────────────────────── */
.balance-hero {
  background: linear-gradient(145deg, var(--primary) 0%, #96281b 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.balance-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.balance-hero::after {
  content: '';
  position: absolute;
  bottom: -50px; right: 20px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.bal-label { font-size: 12px; opacity: .75; font-weight: 500; margin-bottom: 4px; }
.bal-amount {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -.5px;
}
.bal-amount .rs { font-size: 20px; font-weight: 600; opacity: .85; }
.bal-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; z-index: 1; }
.bal-btn {
  padding: 10px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bal-btn:hover { background: rgba(255,255,255,.26); }

/* ── GAMES GRID ────────────────────────────── */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.game-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  display: block;
  text-decoration: none;
}
.game-card:active { transform: scale(.96); background: var(--bg); }
.game-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 10px;
}
.game-card-name { font-size: 13px; font-weight: 700; color: var(--text); font-family: 'Poppins', sans-serif; }
.game-card-sub  { font-size: 10px; color: var(--text-3); margin-top: 2px; }

/* ── COLOR PREDICTION ──────────────────────── */
.cp-header {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cp-period-lbl { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.cp-period-val { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); }
.cp-timer { text-align: right; }
.cp-timer-val {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cp-timer-lbl { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.cp-progress {
  background: var(--white);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 0 12px;
}
.cp-progress-track { height: 5px; background: var(--border); }
.cp-progress-fill  { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-mid)); border-radius: 0 3px 3px 0; transition: width 1s linear; }
.cp-timer-val.warning { color: var(--accent-orange); }
.cp-timer-val.danger  { color: var(--primary); animation: pulse-r .7s infinite; }
@keyframes pulse-r { 0%,100%{opacity:1} 50%{opacity:.6} }

/* Results dots */
.results-strip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 0 0 4px;
  scrollbar-width: none;
  margin-bottom: 12px;
  align-items: center;
}
.results-strip::-webkit-scrollbar { display: none; }
.r-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-direction: column;
  line-height: 1;
}
.r-dot.green  { color: white; background: var(--accent-green); }
.r-dot.red    { color:white; background: var(--primary); }
.r-dot.violet { color: white; background: var(--accent-purple); }
.r-dot .r-num { font-size: 8px; opacity: .8; margin-top: 1px; }

/* Color buttons */
.color-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.clr-btn {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: all .15s;
  position: relative;
}
.clr-btn:active { transform: scale(.95); }
.clr-dot { width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 8px; }
.clr-dot.green  { background: linear-gradient(135deg, #27ae60, #1e8449); }
.clr-dot.red    { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.clr-dot.violet { background: linear-gradient(135deg, #9b59b6, #7d3c98); }
.clr-name { font-size: 13px; font-weight: 700; color: var(--text); font-family: 'Poppins', sans-serif; }
.clr-mult { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* Selected states */
.clr-btn.sel-green  { border-color: var(--accent-green); background: var(--accent-grn-l); box-shadow: 0 0 0 4px rgba(39,174,96,.15); }
.clr-btn.sel-red    { border-color: var(--primary);      background: var(--primary-lt);   box-shadow: 0 0 0 4px rgba(192,57,43,.15); }
.clr-btn.sel-violet { border-color: var(--accent-purple); background: var(--accent-pur-l); box-shadow: 0 0 0 4px rgba(142,68,173,.15); }

/* Betting closed overlay */
.clr-closed {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(1px);
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  gap: 6px;
}
.clr-closed.show { display: flex; }

/* Quick amount chips */
.amt-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.amt-chip {
  padding: 8px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.amt-chip.on { background: var(--primary-lt); border-color: var(--primary); color: var(--primary); }

/* Bet input row */
.bet-input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.bet-input-row input { flex: 1; }

/* Win potential badge */
.win-potential {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-grn-l);
  border: 1px solid #a9dfbf;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-grn-d);
  margin-bottom: 12px;
}

/* ── CRICKET ───────────────────────────────── */
.cc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.cc-head { padding: 14px; border-bottom: 1px solid var(--border); }
.cc-teams { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cc-teams .vs { color: var(--text-3); font-weight: 500; font-size: 13px; }
.cc-time { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.cc-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.cc-meta-item { padding: 10px; text-align: center; }
.cc-meta-item:not(:last-child) { border-right: 1px solid var(--border); }
.cc-meta-val { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); }
.cc-meta-lbl { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .3px; margin-top: 2px; }
.cc-prizes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px; border-bottom: 1px solid var(--border); }
.cc-prize { border-radius: var(--radius-sm); padding: 9px; text-align: center; }
.cc-prize.g1 { background: #fffbeb; border: 1px solid #fde68a; }
.cc-prize.g2 { background: var(--bg); border: 1px solid var(--border); }
.cc-prize.g3 { background: #fff8f4; border: 1px solid #fed7aa; }
.cc-prize-pos { font-size: 11px; color: var(--text-3); margin-bottom: 3px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 3px; }
.cc-prize-amt { font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); }
.cc-foot { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.cc-joined { padding: 12px 14px; background: var(--accent-grn-l); display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-grn-d); }

/* Leaderboard in sheet */
.lb-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.lb-rank.r1 { background: #fef08a; color: #78350f; }
.lb-rank.r2 { background: #e5e7eb; color: #374151; }
.lb-rank.r3 { background: #fed7aa; color: #7c2d12; }
.lb-rank.rn { background: var(--bg); color: var(--text-3); font-size: 11px; }
.lb-info { flex: 1; }
.lb-mob { font-size: 13px; font-weight: 600; color: var(--text); }
.lb-team { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.lb-amt { font-size: 13px; font-weight: 700; color: var(--text); }

/* Team picker */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.team-btn {
  padding: 18px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: all .15s;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.team-btn:active { transform: scale(.97); }
.team-btn.sel { border-color: var(--accent-green); background: var(--accent-grn-l); color: var(--accent-grn-d); }

/* ── RECHARGE ──────────────────────────────── */
.upi-box {
  background: linear-gradient(135deg, var(--accent-pur-l), #ede9fe);
  border: 2px dashed var(--accent-purple);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  text-align: center;
}
.upi-box-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--accent-purple); margin-bottom: 8px; }
.upi-id {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  word-break: break-all;
  margin-bottom: 10px;
}
.steps-ol { counter-reset: s; }
.steps-ol li {
  counter-increment: s;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.steps-ol li:last-child { border-bottom: none; }
.steps-ol li::before {
  content: counter(s);
  background: var(--primary);
  color: #fff;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.quick-amts { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.q-amt {
  padding: 7px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.q-amt:active { transform: scale(.96); }
.q-amt.on { background: var(--primary-lt); border-color: var(--primary); color: var(--primary); }

/* ── WITHDRAWAL ────────────────────────────── */
.net-calc {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.net-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 7px; }
.net-row:last-child { margin-bottom: 0; padding-top: 7px; border-top: 1px solid var(--border); font-size: 15px; font-weight: 800; }
.net-row span:first-child { color: var(--text-3); }
.net-row .net-total { color: var(--accent-green); }

/* ── PROFILE ───────────────────────────────── */
.profile-top {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 16px 16px;
  text-align: center;
}
.avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 10px;
}
.profile-name { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; color: var(--text); }
.profile-mob  { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.menu-list { background: var(--white); }
.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
  text-decoration: none;
  color: inherit;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--bg); }
.menu-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; margin-right: 12px; }
.menu-lbl { flex: 1; }
.menu-lbl strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.menu-lbl span   { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.menu-arr { color: var(--text-4); font-size: 13px; }

/* ── INVITE ────────────────────────────────── */
.invite-hero {
  background: linear-gradient(145deg, #6c3483, #9b59b6);
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  margin-bottom: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.invite-hero::before { content:''; position:absolute; top:-30px; right:-30px; width:120px; height:120px; background:rgba(255,255,255,.07); border-radius:50%; }
.invite-hero i { font-size: 34px; margin-bottom: 8px; display: block; position: relative; z-index: 1; }
.invite-hero h2 { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 4px; position: relative; z-index: 1; }
.invite-hero p  { font-size: 13px; opacity: .85; position: relative; z-index: 1; }
.ref-code-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  margin-bottom: 12px;
}
.ref-code-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); margin-bottom: 6px; }
.ref-code {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--primary);
  margin-bottom: 12px;
}
.ref-btns { display: flex; gap: 8px; justify-content: center; }

/* ── BOTTOM SHEETS ─────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 400;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.overlay.open { display: flex; }
.sheet {
  background: var(--white);
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 16px;
  max-height: 88vh;
  overflow-y: auto;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from{transform:translateY(60px);opacity:0} to{transform:translateY(0);opacity:1} }
.sheet-handle { width: 44px; height: 5px; background: var(--border); border-radius: 4px; margin: 0 auto 14px; }
.sheet-hd { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }

/* ── TOAST ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--bnav-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1a202c;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  max-width: 300px;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--accent-green); }
.toast.error   { background: var(--primary); }

/* ── EMPTY STATE ───────────────────────────── */
.empty {
  text-align: center;
  padding: 40px 20px;
}
.empty i { font-size: 40px; color: var(--text-4); display: block; margin-bottom: 12px; }
.empty p { font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* ── LOADER ────────────────────────────────── */
.loader { display: flex; align-items: center; justify-content: center; padding: 40px; gap: 10px; color: var(--text-3); font-size: 13px; }
.spin { width: 20px; height: 20px; border: 2.5px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── COMING SOON ───────────────────────────── */
.coming-soon {
  background: linear-gradient(145deg, var(--accent-pur-l), #f0f0ff);
  border: 1px solid #ddd6fe;
  border-radius: var(--radius);
  padding: 50px 24px;
  text-align: center;
}
.coming-soon i { font-size: 28px; color: var(--accent-purple); display: block; margin-bottom: 16px; animation: float 3s ease-in-out infinite; }
.coming-soon h3 { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.coming-soon p  { font-size: 14px; color: var(--text-3); line-height: 1.6; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ── NOTICE MARQUEE ────────────────────────── */
.notice-bar {
  background: linear-gradient(90deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  color: #78350f;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.notice-bar i { flex-shrink: 0; color: var(--accent-yellow); }
.notice-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── UTILITIES ─────────────────────────────── */
.d-flex  { display: flex; }
.ai-c    { align-items: center; }
.jc-b    { justify-content: space-between; }
.gap-8   { gap: 8px; }
.fw-700  { font-weight: 700; }
.fw-800  { font-weight: 800; }
.f-pops  { font-family: 'Poppins', sans-serif; }
.tc      { text-align: center; }
.red     { color: var(--primary); }
.green   { color: var(--accent-green); }
.text-m  { color: var(--text-3); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.mb-0    { margin-bottom: 0; }
.mb-8    { margin-bottom: 8px; }
.mb-12   { margin-bottom: 12px; }
.mt-8    { margin-top: 8px; }
.mt-12   { margin-top: 12px; }
.mt-16   { margin-top: 16px; }
.p-0     { padding: 0; }
.of-h    { overflow: hidden; }
.ell     { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── AUTH PAGE ─────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--white);
}
.auth-logo { height: 60px; object-fit: contain; margin-bottom: 6px; }
.auth-site-name { display:none !important; font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.auth-tagline { font-size: 13px; color: var(--text-3); margin-bottom: 32px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-tabs { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 11px; font-size: 14px; font-weight: 700; border: none; cursor: pointer; background: transparent; color: var(--text-3); transition: all .15s; font-family: 'DM Sans', sans-serif; }
.auth-tab.on { background: var(--primary); color: #fff; }
.auth-form { display: none; }
.auth-form.on { display: block; }
.pwd-wrap { position: relative; }
.pwd-wrap .fc { padding-right: 44px; }
.pwd-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-4); font-size: 15px; cursor: pointer; padding: 4px; }

/* ════════════════════════════════════════════
   NEW ADDITIONS — Banners, Game Cards, Cricket
   ════════════════════════════════════════════ */

/* ── BANNER SLIDER ────────────────────────── */
.banner-slider {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg-dark);
  aspect-ratio: 21/8;
  min-height: 120px;
  max-height: 180px;
}
.banner-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  text-decoration: none;
}
.banner-slide.active { display: block; }
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  padding: 16px;
  text-align: center;
  min-height: 120px;
}
.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.bdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all .2s;
}
.bdot.on { background: #fff; width: 18px; border-radius: 3px; }

/* ── GAMES GRID — FULL WIDTH IMAGE CARDS ─── */
.games-grid-full {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.game-img-card {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  position: relative;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/6;
  min-height: 80px;
  background: var(--bg-dark);
}
.game-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.game-img-card:active img { transform: scale(1.02); }
.game-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,.95);
  min-height: 80px;
}
.game-img-ph i    { font-size: 28px; }
.game-img-ph span { font-size: 16px; font-weight: 800; font-family: 'Poppins', sans-serif; }
.game-img-ph small { font-size: 12px; opacity: .8; font-weight: 600; }
.disabled-card    { opacity: .7; }
.game-soon-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .5px;
  backdrop-filter: blur(4px);
}

/* ── CRICKET FILTERS ─────────────────────── */
.cc-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.cc-filters::-webkit-scrollbar { display: none; }
.cc-filter-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all .15s;
}
.cc-filter-btn.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── CRICKET CARD UPDATES ────────────────── */
.cc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.cc-card-joined { border-left: 4px solid var(--accent-green); }
.cc-head {
  padding: 12px 14px 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cc-teams { font-size: 15px; font-weight: 800; font-family: 'Poppins', sans-serif; color: var(--text); }
.cc-teams .vs { font-size: 11px; color: var(--text-4); font-weight: 600; }
.cc-time-row {
  padding: 0 14px 8px;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cc-meta {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cc-meta-item {
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.cc-meta-item:last-child { border-right: none; }
.cc-meta-val { font-size: 15px; font-weight: 800; font-family: 'Poppins', sans-serif; }
.cc-meta-lbl { font-size: 10px; color: var(--text-4); margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }
.cc-foot {
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cc-closed-warn {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-lt);
}
.cc-my-picks {
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cc-my-pick {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── IMAGE SPEC INFO (for README) ─────────── */
/*
  REQUIRED IMAGES — place in /img/ folder:

  Banners (full-width, shown in slider):
    banner1.jpg  — 800×300px  (Color Prediction promo)
    banner2.jpg  — 800×300px  (Cricket Contests promo)
    banner3.jpg  — 800×300px  (Refer & Earn promo)

  Game Cards (full-width, shown on home):
    game_color.jpg    — 800×300px  (Color Prediction game card)
    game_cricket.jpg  — 800×300px  (Cricket game card)
    game_lottery.jpg  — 800×300px  (Lottery game card - coming soon)

  All images: JPG or PNG, max 200KB each for fast loading.
  Fallback gradient placeholders show automatically if images are missing.
*/


/* ════════════════════════════════════════════
   UPDATE 2 — Cricket, Recharge QR, Rules, Withdraw
   ════════════════════════════════════════════ */

/* ── UPI QR BOX ──────────────────────────── */
.upi-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.upi-qr-img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff;
  object-fit: contain;
}

/* ── CRICKET JOIN INFO ───────────────────── */
.cc-join-info {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-2);
}
.cc-amt-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.cc-exp-win {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #eafaf1, #d5f5e3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--accent-grn-d);
  font-weight: 600;
  margin-top: 8px;
}
.cc-exp-win i { color: var(--accent-green); }

/* ── CRICKET CONTEST TYPE BADGE ─────────── */
.cc-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.cc-type-badge.match {
  background: var(--accent-grn-l);
  color: var(--accent-grn-d);
}
.cc-type-badge.toss {
  background: var(--accent-pur-l);
  color: var(--accent-purple);
}

/* ── PRIZE POOL EXPLAIN SHEET ────────────── */
.pool-explain {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.pool-ex-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.pool-ex-item strong { color: var(--text); display: block; margin-bottom: 2px; }
.pool-ex-item span { color: var(--text-3); }
.pool-ex-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

/* ── COLOR RULES SHEET ───────────────────── */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.rule-item strong { color: var(--text); display: block; margin-bottom: 2px; }
.rule-item span { color: var(--text-3); font-size: 12px; }
.rule-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

/* ── NET CALC UPDATED ────────────────────── */
.net-calc {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 13px;
}
.net-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  color: var(--text-2);
}
.net-total {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-green);
  font-family: 'Poppins', sans-serif;
}

