/* ═══════════════════════════════════════════════
   LUDO PLAY — style.css  |  Dark Green Theme
   ═══════════════════════════════════════════════ */
:root {
  --bg:         #080f08;
  --bg2:        #0e160e;
  --bg3:        #141e14;
  --card:       #111911;
  --card2:      #192519;
  --border:     rgba(34,197,94,.12);
  --border2:    rgba(34,197,94,.22);
  --green:      #16a34a;
  --green2:     #22c55e;
  --green-dim:  rgba(22,163,74,.15);
  --accent:     #4ade80;
  --gold:       #f59e0b;
  --red:        #ef4444;
  --blue:       #3b82f6;
  --text:       #f0fdf0;
  --text2:      #a3b8a3;
  --text3:      #5a7a5a;
  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(0,0,0,.5);
  --shadow-g:   0 0 24px rgba(34,197,94,.12);
  --font:       'Inter', 'Poppins', sans-serif;
  --max:        480px;
  --safe-b:     env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 99px; }

/* ══════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════ */
.pre-inner { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.pre-rings { position: relative; width: 80px; height: 80px; }
.pre-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2.5px solid transparent;
  animation: spin 1.4s linear infinite;
}
.pre-ring.r1 { border-top-color: var(--green2); animation-duration: 1s; }
.pre-ring.r2 { inset: 10px; border-right-color: var(--accent); animation-duration: 1.4s; animation-direction: reverse; }
.pre-ring.r3 { inset: 22px; border-bottom-color: var(--gold); animation-duration: 1.8s; }
.pre-logo { font-size: 28px; margin-top: 14px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.g-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card2); border: 1px solid var(--border2);
  border-radius: 50px; padding: 10px 18px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--text);
  box-shadow: var(--shadow); z-index: 8888; opacity: 0;
  transition: opacity .3s, transform .3s; white-space: nowrap; max-width: 90vw;
}
.g-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.g-toast-icon {
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════ */
.page { padding: 0 14px 90px; }

/* ══════════════════════════════════════════
   HEADER (Main App Header)
══════════════════════════════════════════ */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,15,8,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px; display: flex; align-items: center; justify-content: space-between;
}
.app-logo { display: flex; align-items: center; gap: 9px; }
.brand-logo-img { font-size: 28px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.brand-name { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.brand-accent { color: var(--green2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.hdr-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--card2);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); font-size: 15px; transition: all .2s; position: relative;
}
.hdr-btn:active { transform: scale(.92); }
.hdr-btn.green { background: var(--green-dim); border-color: var(--border2); color: var(--green2); }
.notif-dot {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  background: var(--red); border-radius: 50%; border: 1.5px solid var(--bg);
}
.wallet-pill {
  display: flex; align-items: center; gap: 6px; background: var(--green-dim);
  border: 1px solid var(--border2); border-radius: 50px; padding: 5px 12px;
  font-size: 13px; font-weight: 700; color: var(--green2); cursor: pointer;
}
.wallet-pill i { font-size: 12px; }

/* ══════════════════════════════════════════
   MARQUEE BAR
══════════════════════════════════════════ */
.marquee-bar {
  background: linear-gradient(90deg, var(--card2), #1a2f1a, var(--card2));
  border-bottom: 1px solid var(--border);
  padding: 7px 0; display: flex; align-items: center; gap: 10px; overflow: hidden;
}
.marquee-mic {
  flex-shrink: 0; width: 28px; height: 28px; background: var(--green-dim);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--green2); font-size: 13px; margin-left: 10px;
}
.marquee-txt { font-size: 12.5px; color: var(--text2); white-space: nowrap; animation: marquee-anim 22s linear infinite; flex: 1; }
@keyframes marquee-anim {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ══════════════════════════════════════════
   HERO BANNER SLIDER
══════════════════════════════════════════ */
.slider-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 160px; margin: 12px 14px; box-shadow: var(--shadow-g);
}
.slider-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; height: 100%; position: relative; flex-shrink: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
}
.slide-caption {
  position: absolute; bottom: 12px; left: 14px; right: 14px;
  font-size: 13px; font-weight: 600; color: #fff;
}
.slider-dots { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 5px; }
.s-dot {
  width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.35);
  transition: all .3s; cursor: pointer;
}
.s-dot.active { width: 18px; background: var(--green2); }
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.5);
  border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 12px; z-index: 2;
}
.slider-prev { left: 8px; }
.slider-next { right: 8px; }

/* ══════════════════════════════════════════
   FILTER PILLS
══════════════════════════════════════════ */
.filters-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px;
  scrollbar-width: none;
}
.filters-row::-webkit-scrollbar { display: none; }
.filter-pill {
  flex-shrink: 0; padding: 6px 16px; border-radius: 50px;
  border: 1px solid var(--border); background: var(--card);
  font-size: 12px; font-weight: 600; color: var(--text2); cursor: pointer;
  transition: all .2s;
}
.filter-pill.active {
  background: var(--green-dim); border-color: var(--green2);
  color: var(--green2);
}

/* ══════════════════════════════════════════
   MATCH CARDS (Home)
══════════════════════════════════════════ */
.match-cards { display: flex; flex-direction: column; gap: 12px; }
.match-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.match-card:active { transform: scale(.98); }
.match-card-top {
  background: linear-gradient(90deg, var(--card2), var(--card));
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.match-type-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px; background: var(--green-dim);
  color: var(--green2); border: 1px solid var(--border2);
}
.match-type-badge.gold { background: rgba(245,158,11,.12); color: var(--gold); border-color: rgba(245,158,11,.3); }
.match-type-badge.live { background: rgba(239,68,68,.12); color: var(--red); border-color: rgba(239,68,68,.3); animation: blink .9s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.5} }
.match-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green2); animation: blink .9s ease-in-out infinite; }

.match-card-body { padding: 14px; }
.match-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

.match-pillars {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
  align-items: center; margin-bottom: 12px;
}
.pillar {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 8px; text-align: center;
}
.pillar-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.pillar-val { font-size: 18px; font-weight: 900; color: var(--text); }
.pillar-val.green { color: var(--green2); }
.pillar-val.gold { color: var(--gold); }
.vs-badge {
  font-size: 13px; font-weight: 900; color: var(--text3); text-align: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--card2);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
}

.match-meta-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.meta-chip {
  display: flex; align-items: center; gap: 5px; font-size: 11px;
  color: var(--text2); background: var(--bg3); border-radius: 50px; padding: 3px 10px;
}
.meta-chip i { font-size: 10px; color: var(--text3); }

.progress-bar-wrap { margin-bottom: 12px; }
.progress-bar-bg { background: var(--bg3); border-radius: 99px; height: 5px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--green2)); border-radius: 99px; transition: width .5s; }
.progress-label { display: flex; justify-content: space-between; font-size: 10px; color: var(--text3); margin-top: 4px; }

.match-card-footer {
  padding: 12px 14px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 11px 20px; border-radius: var(--radius);
  font-weight: 700; font-size: 13.5px; cursor: pointer; border: none;
  transition: all .18s; white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.96); }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 14px; }

.btn-primary { background: var(--green); color: #fff; box-shadow: 0 2px 12px rgba(22,163,74,.3); }
.btn-primary:hover { background: #15803d; }
.btn-green2 { background: linear-gradient(135deg, var(--green), var(--green2)); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #d97706, var(--gold)); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border2); color: var(--green2); }
.btn-ghost { background: var(--card2); border: 1px solid var(--border); color: var(--text2); }
.btn-dark { background: var(--card2); border: 1px solid var(--border); color: var(--text); }

/* ══════════════════════════════════════════
   REFERRAL CARD
══════════════════════════════════════════ */
.refer-card {
  background: linear-gradient(135deg, #0d2010, #111911);
  border: 1px solid var(--border2); border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 16px; cursor: pointer; transition: transform .2s;
}
.refer-card:active { transform: scale(.98); }
.refer-card h4 { font-size: 14px; font-weight: 700; color: var(--green2); margin-bottom: 10px; }
.refer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  background: var(--bg3); border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
  margin-bottom: 10px;
}
.refer-grid-hdr { background: var(--card2); padding: 6px 4px; font-size: 10px; font-weight: 600; color: var(--text3); text-align: center; }
.refer-grid-val { padding: 8px 4px; font-size: 13px; font-weight: 800; color: var(--green2); text-align: center; border-top: 1px solid var(--border); }
.refer-grid > div { border-right: 1px solid var(--border); }
.refer-grid > div:last-child { border-right: none; }

/* ══════════════════════════════════════════
   MODALS
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px); z-index: 500; display: none;
  align-items: flex-end; justify-content: center; padding: 0;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 24px 24px 0 0; width: 100%; max-width: var(--max);
  max-height: 92vh; overflow-y: auto; padding: 20px 18px 28px;
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle {
  width: 36px; height: 4px; background: var(--border2);
  border-radius: 99px; margin: -8px auto 16px; cursor: grab;
}
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 18px; color: var(--text); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--card2);
  border: 1px solid var(--border); color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* ══════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text3); margin-bottom: 5px; letter-spacing: .3px; }
.form-input {
  width: 100%; background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 14px; color: var(--text);
  font-size: 14px; transition: border .2s; outline: none;
}
.form-input:focus { border-color: var(--green2); }
.form-input::placeholder { color: var(--text3); }
.input-wrap { position: relative; }
.input-icon { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--text3); cursor: pointer; font-size: 14px; }
.input-prefix { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 14px; }
.form-input.with-prefix { padding-left: 36px; }

/* ══════════════════════════════════════════
   AMOUNT QUICK-SELECT
══════════════════════════════════════════ */
.amount-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 14px;
}
.amt-chip {
  padding: 9px 4px; text-align: center; border-radius: 9px;
  border: 1.5px solid var(--border); background: var(--bg2);
  font-size: 12px; font-weight: 700; color: var(--text2); cursor: pointer;
  transition: all .15s;
}
.amt-chip:active, .amt-chip.selected {
  background: var(--green-dim); border-color: var(--green2); color: var(--green2);
}

/* ══════════════════════════════════════════
   QR CODE AREA
══════════════════════════════════════════ */
.qr-box {
  background: #fff; border-radius: 14px; padding: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; width: 160px; height: 160px;
}
.qr-box img, .qr-box canvas { width: 136px; height: 136px; object-fit: contain; }
.upi-bar {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.upi-id { font-weight: 700; font-size: 13px; color: var(--green2); }

/* ══════════════════════════════════════════
   BOTTOM NAV
══════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--max);
  background: rgba(10,15,10,.95); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; z-index: 200; padding-bottom: var(--safe-b);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 9px 4px 8px; cursor: pointer; position: relative;
  color: var(--text3); transition: color .2s;
}
.nav-item.active { color: var(--green2); }
.nav-item i { font-size: 19px; margin-bottom: 3px; }
.nav-item span { font-size: 10px; font-weight: 600; }
.nav-item .live-badge {
  position: absolute; top: 5px; right: calc(50% - 18px);
  background: var(--red); color: #fff; font-size: 8px; font-weight: 700;
  padding: 1px 5px; border-radius: 99px; letter-spacing: .3px;
}
.nav-indicator {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--green2); opacity: 0; transition: opacity .2s;
}
.nav-item.active .nav-indicator { opacity: 1; }

/* ══════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════ */
.sec-hdr { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.sec-title { font-size: 15px; font-weight: 800; color: var(--text); }
.sec-link { font-size: 12px; color: var(--green2); font-weight: 600; }

/* ══════════════════════════════════════════
   WALLET PAGE
══════════════════════════════════════════ */
.wallet-top {
  background: linear-gradient(135deg, #0d2010, #111f11);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 16px;
}
.wallet-total-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.wallet-total-val { font-size: 34px; font-weight: 900; color: var(--text); letter-spacing: -1px; margin-bottom: 16px; }
.wallet-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet-split-card {
  background: rgba(0,0,0,.2); border-radius: 10px; padding: 12px;
  border: 1px solid var(--border);
}
.wallet-split-label { font-size: 10px; color: var(--text3); margin-bottom: 3px; }
.wallet-split-val { font-size: 18px; font-weight: 800; }
.wallet-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.wallet-action-btn {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 10px; display: flex; flex-direction: column; align-items: center;
  gap: 6px; cursor: pointer; transition: all .2s;
}
.wallet-action-btn:active { transform: scale(.97); border-color: var(--border2); }
.w-icon { font-size: 24px; }
.w-label { font-size: 13px; font-weight: 700; }
.w-sub { font-size: 10px; color: var(--text3); }

/* Transaction Table */
.tx-table { width: 100%; border-collapse: collapse; }
.tx-table th { font-size: 11px; color: var(--text3); text-align: left; padding: 8px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.tx-table td { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.03); font-size: 13px; vertical-align: middle; }
.tx-table td:last-child { text-align: right; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.badge-ok { background: rgba(22,163,74,.15); color: var(--green2); }
.badge-warn { background: rgba(245,158,11,.15); color: var(--gold); }
.badge-err { background: rgba(239,68,68,.15); color: var(--red); }
.badge-blue { background: rgba(59,130,246,.15); color: var(--blue); }

/* ══════════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════════ */
.profile-hero {
  background: linear-gradient(180deg, #0d2010 0%, var(--bg) 100%);
  padding: 28px 14px 20px; text-align: center; border-bottom: 1px solid var(--border);
}
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 12px; }
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%; background: var(--card2);
  border: 3px solid var(--green2); display: flex; align-items: center; justify-content: center;
  font-size: 36px; overflow: hidden; margin: 0 auto;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-edit-cam {
  position: absolute; bottom: 0; right: 0; width: 26px; height: 26px;
  background: var(--green); border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 11px; border: 2px solid var(--bg); cursor: pointer;
}
.profile-name { font-size: 20px; font-weight: 800; margin-bottom: 3px; }
.profile-mobile { font-size: 13px; color: var(--text3); margin-bottom: 18px; }
.profile-bals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.profile-bal { padding: 12px 4px; border-right: 1px solid var(--border); }
.profile-bal:last-child { border-right: none; }
.profile-bal-val { font-size: 17px; font-weight: 800; color: var(--green2); }
.profile-bal-label { font-size: 10px; color: var(--text3); margin-top: 2px; }

.menu-list { display: flex; flex-direction: column; gap: 0; }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer; transition: all .15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { opacity: .7; }
.menu-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}
.menu-label { flex: 1; font-size: 14px; font-weight: 600; }
.menu-arrow { color: var(--text3); font-size: 12px; }

/* ══════════════════════════════════════════
   LOGIN / REGISTER
══════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px 20px;
  background: radial-gradient(ellipse at top, #0d2010 0%, var(--bg) 70%);
}
.auth-logo { font-size: 52px; margin-bottom: 8px; }
.auth-title { font-size: 26px; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: var(--text3); margin-bottom: 30px; }
.auth-card {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 24px 20px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.auth-card p { font-size: 13px; color: var(--text3); margin-bottom: 20px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text3); }
.auth-switch a { color: var(--green2); font-weight: 700; }

/* ══════════════════════════════════════════
   LEADERBOARD
══════════════════════════════════════════ */
.podium-row { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 8px; margin: 16px 0; align-items: flex-end; }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.podium-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--card2);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  border: 2.5px solid var(--border);
}
.podium-item:nth-child(2) .podium-avatar { width: 68px; height: 68px; border-color: var(--gold); }
.podium-item:nth-child(1) .podium-avatar { border-color: var(--text3); }
.podium-item:nth-child(3) .podium-avatar { border-color: #cd7f32; }
.podium-name { font-size: 11px; font-weight: 700; color: var(--text2); text-align: center; }
.podium-amount { font-size: 13px; font-weight: 800; color: var(--green2); }
.podium-rank { font-size: 20px; }
.podium-block {
  background: var(--card2); border: 1px solid var(--border); border-radius: 10px 10px 0 0;
  height: 50px; width: 100%;
}
.podium-item:nth-child(2) .podium-block { height: 70px; background: var(--green-dim); border-color: rgba(245,158,11,.3); }

.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.lb-rank { width: 28px; font-size: 14px; font-weight: 800; color: var(--text3); text-align: center; flex-shrink: 0; }
.lb-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.lb-name { flex: 1; font-size: 14px; font-weight: 600; }
.lb-score { font-size: 14px; font-weight: 800; color: var(--green2); }

/* ══════════════════════════════════════════
   HISTORY PAGE
══════════════════════════════════════════ */
.history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.history-icon {
  width: 40px; height: 40px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.history-info { flex: 1; }
.history-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.history-date { font-size: 11px; color: var(--text3); }
.history-amount { font-size: 15px; font-weight: 800; }

/* ══════════════════════════════════════════
   REFERRAL PAGE
══════════════════════════════════════════ */
.ref-hero {
  background: linear-gradient(135deg, #0d2010, #1a3020);
  border: 1px solid var(--border2); border-radius: var(--radius-lg);
  padding: 24px; text-align: center; margin-bottom: 16px;
}
.ref-hero h2 { font-size: 20px; font-weight: 900; color: var(--green2); margin-bottom: 6px; }
.ref-hero p { font-size: 13px; color: var(--text2); margin-bottom: 20px; }
.ref-code-box {
  background: var(--bg); border: 2px dashed var(--green2);
  border-radius: 12px; padding: 14px 20px; display: flex;
  align-items: center; justify-content: space-between;
}
.ref-code { font-size: 20px; font-weight: 900; color: var(--green2); letter-spacing: 2px; }

/* ══════════════════════════════════════════
   STATS CARDS
══════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 12px;
}
.stat-icon { font-size: 26px; }
.stat-label { font-size: 11px; color: var(--text3); margin-bottom: 3px; }
.stat-val { font-size: 20px; font-weight: 900; color: var(--text); }

/* ══════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════ */
body.admin-body { max-width: 100%; background: #060b06; }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: #080d08; border-right: 1px solid var(--border);
  height: 100vh; position: fixed; left: 0; top: 0; z-index: 300;
  display: flex; flex-direction: column; transform: translateX(-100%);
  transition: transform .3s;
}
.sidebar.open { transform: translateX(0); }
@media (min-width: 900px) { .sidebar { transform: translateX(0); } .admin-main { margin-left: 240px; } }
.sidebar-header {
  padding: 18px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-close { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 16px; padding: 4px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.sidebar-section { font-size: 10px; color: var(--text3); font-weight: 700; letter-spacing: .8px; padding: 14px 16px 4px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  font-size: 13.5px; font-weight: 600; color: var(--text2); cursor: pointer;
  transition: all .15s; border-radius: 0;
}
.sidebar-link:hover, .sidebar-link.active { background: var(--green-dim); color: var(--green2); }
.sidebar-link i { width: 18px; text-align: center; font-size: 14px; }
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 299; display: none;
}
.sidebar-overlay.show { display: block; }
.admin-main { flex: 1; min-width: 0; padding-bottom: 30px; }
.admin-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,11,6,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px; display: flex; align-items: center; justify-content: space-between;
}
.admin-section { padding: 20px; display: none; }
.admin-section.active { display: block; }
.admin-section h2 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
@media (min-width: 600px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.admin-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; align-items: center; gap: 10px;
}
.admin-stat-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.admin-stat-val { font-size: 20px; font-weight: 900; color: var(--text); }
.admin-stat-label { font-size: 11px; color: var(--text3); margin-top: 1px; }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
.admin-table th {
  background: var(--card2); padding: 10px 14px;
  text-align: left; font-size: 11px; color: var(--text3);
  font-weight: 600; letter-spacing: .3px; border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.admin-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text2); }
.hamburger { background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; padding: 4px; }
.menu-toggle { display: flex; }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* ══════════════════════════════════════════
   UTILS
══════════════════════════════════════════ */
.hidden { display: none !important; }
.text-green { color: var(--green2); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-muted { color: var(--text3); }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.text-center { text-align: center; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text3); }
.empty-state i { font-size: 36px; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 14px; }
.section-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 12px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.col { flex-direction: column; }

/* ══════════════════════════════════════════
   FIXES & ADDITIONS
══════════════════════════════════════════ */

/* Modal must be flex when open class added */
.modal-overlay.open { display: flex !important; }

/* Auth page logo display fix */
.auth-logo { display: block; text-align: center; }

/* Tab button style for matches/admin */
.tab-btn {
  flex:1; padding:9px; border-radius:9px; border:none;
  background:transparent; color:var(--text2);
  font-weight:700; font-size:13px; cursor:pointer; transition:all .2s;
}
.tab-btn.active { background:var(--green); color:#fff; }

/* Amount grid wider on small screens */
@media (max-width:360px) {
  .amount-grid { grid-template-columns: repeat(4,1fr); }
}

/* Make admin table action buttons not overflow */
.action-btns { display:flex; gap:5px; flex-wrap:wrap; min-width:100px; }

/* Banner thumb image */
.banner-thumb img { width:100%; height:100%; object-fit:cover; }

/* Fix profile bal border on last child */
.profile-bal:last-child { border-right: none; }

/* Preloader CSS */
#g-preloader {
  position: fixed; inset: 0; background: #0a0f0a;
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  transition: opacity .4s;
}

/* ══════════════════════════════════════════
   CUSTOM CONFIRM DIALOG (replaces native confirm())
══════════════════════════════════════════ */
.g-confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  z-index: 9500; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: opacity .2s;
}
.g-confirm-overlay.show { opacity: 1; visibility: visible; }
.g-confirm-box {
  background: var(--card); border: 1px solid var(--border2); border-radius: var(--radius-lg);
  padding: 22px 20px; max-width: 320px; width: 100%; text-align: center;
  box-shadow: var(--shadow); transform: translateY(10px); transition: transform .2s;
}
.g-confirm-overlay.show .g-confirm-box { transform: translateY(0); }
.g-confirm-msg { font-size: 14.5px; color: var(--text); line-height: 1.55; margin-bottom: 18px; }
.g-confirm-actions { display: flex; gap: 10px; }
.g-confirm-actions .btn { flex: 1; }
