/* ============================================
   MATCH11 v2.0 — White/Light Professional Theme
   Dream11-inspired Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Light Theme Colors */
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f8f9fb;
  --bg-input: #f0f2f5;
  --bg-dark: #0f1923;

  /* Brand Colors */
  --accent-primary: #1a73e8;
  --accent-secondary: #d32f2f;
  --accent-green: #2e7d32;
  --accent-green-light: #43a047;
  --accent-red: #d32f2f;
  --accent-orange: #f57c00;
  --accent-gold: #f9a825;
  --accent-purple: #6a1b9a;

  /* Text Colors */
  --text-primary: #1a1a2e;
  --text-secondary: #5f6368;
  --text-muted: #9aa0a6;
  --text-white: #ffffff;

  /* Border */
  --border-color: #e8eaed;
  --border-accent: rgba(26, 115, 232, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a73e8, #0d47a1);
  --gradient-dark: linear-gradient(135deg, #0f1923, #1a2940);
  --gradient-green: linear-gradient(135deg, #2e7d32, #43a047);
  --gradient-red: linear-gradient(135deg, #d32f2f, #b71c1c);
  --gradient-gold: linear-gradient(135deg, #f9a825, #f57c00);
  --gradient-header: linear-gradient(180deg, #0f1923 0%, #1a2940 100%);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;

  /* Fonts */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ========= RESET ========= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ========= SCROLLBAR ========= */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 10px; }

/* ========= HEADER ========= */
.site-header {
  background: var(--gradient-header);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 480px;
  margin: 0 auto;
}

.site-logo img { height: 32px; }
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.site-logo-text span { color: #f9a825; }

.header-greeting {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: -2px;
  font-weight: 400;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.header-icon-btn {
  position: relative;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.header-icon-btn:hover { background: rgba(255,255,255,0.2); }
.header-icon-btn svg { width: 18px; height: 18px; }

.badge-dot {
  position: absolute; top: -1px; right: -1px;
  width: 9px; height: 9px;
  background: #f44336;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
}

.wallet-btn {
  background: linear-gradient(135deg, #f9a825, #f57c00);
  border: none;
  border-radius: var(--radius-full);
  padding: 7px 14px;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(249,168,37,0.4);
  transition: all 0.2s;
}
.wallet-btn:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(249,168,37,0.5); }
.wallet-btn svg { width: 16px; height: 16px; }

/* ========= BOTTOM NAV ========= */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--bg-dark);
  z-index: 100;
  padding: 0 0 env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.25);
}

.bottom-nav-inner {
  display: flex;
  align-items: stretch;
  height: 62px;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-top: 2px solid transparent;
  position: relative;
  cursor: pointer;
}

.nav-item svg {
  width: 22px; height: 22px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active {
  color: #f9a825;
  border-top-color: #f9a825;
}

.nav-item.active svg {
  transform: translateY(-3px) scale(1.1);
  filter: drop-shadow(0 2px 6px rgba(249,168,37,0.6));
}

.nav-item:active { transform: scale(0.92); }

/* Active indicator pill */
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px; height: 4px;
  background: #f9a825;
  border-radius: 50%;
  animation: navDot 0.3s ease;
}
@keyframes navDot { from { transform: scale(0); } to { transform: scale(1); } }

/* ========= PAGE WRAPPER ========= */
.page-wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 14px 80px;
}

/* ========= CARDS ========= */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* ========= BANNER ========= */
.banner-section { margin-bottom: 18px; }

.banner-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  background: #e0e0e0;
}

.banner-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.banner-slide {
  min-width: 100%;
  position: relative;
}

.banner-slide img {
  width: 100%;
  aspect-ratio: 720/242;
  object-fit: cover;
  display: block;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}

.banner-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dot.active { background: var(--accent-primary); width: 18px; border-radius: 3px; }

/* ========= SECTION TITLES ========= */
.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .count-badge {
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
}

/* ========= MATCH CARD — Dream11 Style ========= */
.match-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: all 0.2s;
}
.match-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.match-card:active { transform: scale(0.98); }

.match-card-header {
  background: var(--gradient-dark);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.match-status.live {
  background: rgba(244,67,54,0.2);
  color: #ff5252;
  border: 1px solid rgba(244,67,54,0.4);
}
.match-status.upcoming {
  background: rgba(26,115,232,0.2);
  color: #82b1ff;
  border: 1px solid rgba(26,115,232,0.4);
}
.match-status.completed {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
}

.league-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #f9a825;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-card-body { padding: 14px; }

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.team-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  padding: 4px;
}

.team-logo-placeholder {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.team-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.vs-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.match-footer {
  padding: 10px 14px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
}

.match-time { font-size: 0.75rem; color: var(--text-secondary); font-weight: 500; }

.bet-now-btn {
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========= LIVE DOT ========= */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #ff5252;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ========= TABS ========= */
.tab-bar {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: 9px 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(26,115,232,0.35);
}

/* ========= WALLET CARD ========= */
.wallet-hero {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.wallet-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(249,168,37,0.15), transparent 70%);
  pointer-events: none;
}

.wallet-total-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.wallet-total-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

.wallet-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wallet-item {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.wallet-item-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.wallet-item-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(26,115,232,0.3);
}
.btn-primary:hover { box-shadow: 0 4px 18px rgba(26,115,232,0.45); }

.btn-success {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 2px 10px rgba(46,125,50,0.3);
}

.btn-danger { background: var(--gradient-red); color: #fff; }

.btn-gold {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: 0 2px 10px rgba(249,168,37,0.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent-primary);
  color: var(--accent-primary);
}
.btn-outline:hover { background: rgba(26,115,232,0.06); }

.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 14px; font-size: 0.78rem; border-radius: var(--radius-sm); }

/* ========= FORMS ========= */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all 0.2s;
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--accent-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: var(--accent-red); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.input-group { position: relative; }
.input-group .input-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.input-group .input-icon svg { width: 18px; height: 18px; }
.input-group .form-control { padding-left: 42px; }

.error-msg { font-size: 0.75rem; color: var(--accent-red); margin-top: 5px; }

/* ========= BET QUESTION CARD ========= */
.bet-question-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.bet-question-text {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.bet-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.bet-option-btn {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.bet-option-btn:active { transform: scale(0.96); }

.bet-option-btn.option-a:hover, .bet-option-btn.option-a.selected {
  background: rgba(26,115,232,0.08);
  border-color: var(--accent-primary);
}

.bet-option-btn.option-b:hover, .bet-option-btn.option-b.selected {
  background: rgba(211,47,47,0.08);
  border-color: var(--accent-red);
}

.option-label {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.option-a .option-label { color: var(--accent-primary); }
.option-b .option-label { color: var(--accent-red); }

.option-price {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

.option-return {
  font-size: 0.72rem;
  color: var(--accent-green);
  margin-top: 2px;
  font-weight: 700;
}

.question-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.status-open { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.status-closed { background: #fff3e0; color: #f57c00; border: 1px solid #ffcc80; }
.status-settled { background: #f5f5f5; color: #757575; border: 1px solid #e0e0e0; }

/* ========= MODAL / BOTTOM SHEET ========= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-sheet {
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  padding: 20px 18px 28px;
  width: 100%; max-width: 480px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 92vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-sheet { transform: translateY(0); }

.modal-handle {
  width: 36px; height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 0 auto 18px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
}

/* ========= TRANSACTION LIST ========= */
.transaction-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-color);
}
.transaction-item:last-child { border-bottom: none; }

.txn-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.txn-icon svg { width: 18px; height: 18px; }
.txn-icon.credit { background: #e8f5e9; color: var(--accent-green); }
.txn-icon.debit  { background: #ffebee; color: var(--accent-red); }
.txn-icon.pending { background: #fff3e0; color: var(--accent-orange); }

.txn-info { flex: 1; }
.txn-title { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }
.txn-meta  { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.txn-amount { text-align: right; }
.txn-amount .amount { font-weight: 700; font-size: 0.95rem; }
.txn-amount .status-tag { font-size: 0.68rem; font-weight: 600; margin-top: 2px; }

/* ========= PROFILE ========= */
.profile-hero {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(249,168,37,0.2), transparent 70%);
  pointer-events: none;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  border: 3px solid rgba(255,255,255,0.3);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-edit-btn {
  position: absolute; bottom: -2px; right: -2px;
  width: 22px; height: 22px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  cursor: pointer;
}
.avatar-edit-btn svg { width: 10px; height: 10px; color: #fff; }

.kyc-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
  display: inline-block;
}
.kyc-verified { background: rgba(76,175,80,0.2); color: #69f0ae; border: 1px solid rgba(76,175,80,0.4); }
.kyc-pending  { background: rgba(255,152,0,0.2); color: #ffd54f; border: 1px solid rgba(255,152,0,0.4); }
.kyc-rejected { background: rgba(244,67,54,0.2); color: #ff8a80; border: 1px solid rgba(244,67,54,0.4); }
.kyc-submitted { background: rgba(33,150,243,0.2); color: #82b1ff; border: 1px solid rgba(33,150,243,0.4); }

.menu-list { list-style: none; }
.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { padding-left: 4px; }

.menu-item-left { display: flex; align-items: center; gap: 13px; }

.menu-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary);
}
.menu-icon svg { width: 20px; height: 20px; }

.menu-item-label { font-weight: 600; font-size: 0.92rem; }

/* ========= ALERTS ========= */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid transparent;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }
.alert-danger   { background: #ffebee; border-color: #ef9a9a; color: #b71c1c; }
.alert-info     { background: #e3f2fd; border-color: #90caf9; color: #0d47a1; }
.alert-warning  { background: #fff3e0; border-color: #ffcc80; color: #e65100; }

/* ========= AUTH PAGES ========= */
.auth-wrapper {
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.auth-header {
  background: var(--gradient-dark);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 32px 28px 24px;
  text-align: center;
  color: #fff;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.auth-logo span { color: #f9a825; }

.auth-subtitle { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.auth-box {
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 24px 24px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}

.auth-box-standalone {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-color);
}

.btn-google {
  background: #fff;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.btn-google:hover { border-color: #4285F4; box-shadow: 0 2px 12px rgba(66,133,244,0.2); }

/* ========= AMOUNT CHIPS ========= */
.amount-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.amount-chip {
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}
.amount-chip:hover, .amount-chip.active {
  border-color: var(--accent-primary);
  background: rgba(26,115,232,0.08);
  color: var(--accent-primary);
}

/* ========= BET SUMMARY ========= */
.bet-summary {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}
.bet-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
}
.bet-summary-row:not(:last-child) { border-bottom: 1px dashed var(--border-color); }
.winning-preview {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-green);
}

/* ========= PAYMENT ========= */
.qr-container {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.qr-container img { max-width: 180px; width: 100%; }

.upi-display {
  background: var(--bg-primary);
  border: 1.5px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 13px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
  margin-bottom: 14px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
}
.upi-display:hover { background: rgba(26,115,232,0.05); }

/* ========= UPLOAD ========= */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-primary);
}
.upload-area:hover {
  border-color: var(--accent-primary);
  background: rgba(26,115,232,0.04);
}

/* ========= EMPTY STATE ========= */
.empty-state { text-align: center; padding: 50px 20px; }
.empty-icon { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.35; }
.empty-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.empty-text  { font-size: 0.85rem; color: var(--text-muted); }

/* ========= BET CARD ========= */
.bet-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.bet-card.won  { border-left: 4px solid var(--accent-green-light); }
.bet-card.lost { border-left: 4px solid #ef5350; }
.bet-card.unsettled { border-left: 4px solid var(--accent-orange); }

/* ========= REFERRAL ========= */
.referral-card {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  margin-bottom: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.referral-code-box {
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(249,168,37,0.6);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #f9a825;
  margin: 14px 0;
  cursor: pointer;
}

/* ========= TOAST ========= */
.toast-container {
  position: fixed; top: 74px; left: 50%; transform: translateX(-50%);
  z-index: 999; width: 92%; max-width: 400px;
}

.toast {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 8px;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.toast-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }
.toast-error   { background: #ffebee; border: 1px solid #ef9a9a; color: #b71c1c; }
.toast-info    { background: #e3f2fd; border: 1px solid #90caf9; color: #0d47a1; }

/* ========= PAGE TITLE ========= */
.page-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* ========= LIVE CHAT ========= */
.chat-fab {
  position: fixed;
  bottom: 82px; right: 16px;
  width: 54px; height: 54px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,115,232,0.45);
  z-index: 98;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
}
.chat-fab:hover { transform: scale(1.1); }
.chat-fab:active { transform: scale(0.95); }
.chat-fab svg { width: 24px; height: 24px; color: #fff; }

.chat-unread-badge {
  position: absolute; top: -3px; right: -3px;
  background: #f44336;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-card);
  padding: 0 3px;
}

.chat-window {
  position: fixed;
  bottom: 80px; right: 12px;
  width: calc(100vw - 24px);
  max-width: 380px;
  height: 480px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 97;
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: var(--gradient-dark);
  padding: 14px 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-support-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.chat-online-dot {
  width: 8px; height: 8px;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
}
.chat-msg.user-msg { align-self: flex-end; flex-direction: row-reverse; }

.chat-bubble {
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 500;
}
.admin-bubble {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.user-bubble {
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 3px; text-align: right; }

.chat-input-area {
  padding: 10px 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  background: var(--bg-card);
}
.chat-input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  color: var(--text-primary);
}
.chat-input:focus { border-color: var(--accent-primary); }
.chat-send-btn {
  width: 38px; height: 38px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-send-btn:hover { transform: scale(1.08); }
.chat-send-btn svg { width: 18px; height: 18px; color: #fff; }

/* ========= ADMIN SPECIFIC ========= */
.admin-layout { display: flex; min-height: 100vh; background: #f0f2f5; }
.admin-sidebar {
  width: 250px;
  background: var(--bg-dark);
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s;
}
.admin-content { margin-left: 250px; flex: 1; padding: 24px; min-height: 100vh; }

.sidebar-logo {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.sidebar-logo .logo-text span { color: #f9a825; }
.sidebar-logo .admin-badge-text {
  font-size: 0.65rem;
  color: #f9a825;
  background: rgba(249,168,37,0.15);
  border: 1px solid rgba(249,168,37,0.3);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: inline-block;
}

.sidebar-section { padding: 12px 0 4px; }
.sidebar-label {
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.25);
  padding: 0 18px; margin-bottom: 4px;
}

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.18s;
  position: relative;
}
.sidebar-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidebar-link:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.06); }
.sidebar-link.active { color: #fff; background: rgba(249,168,37,0.12); border-left-color: #f9a825; }
.sidebar-link .nav-badge {
  position: absolute; right: 14px;
  background: #f44336; color: #fff;
  font-size: 0.65rem; font-weight: 700;
  padding: 1px 7px; border-radius: 10px;
}

.admin-topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  margin: -24px -24px 24px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 50;
}

.admin-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-primary);
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  color: var(--text-primary);
  margin: 4px 0;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
  background: var(--bg-primary);
  padding: 11px 14px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-primary); }

.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.admin-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-primary);
}
.admin-card-body { padding: 18px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

.menu-toggle {
  display: none; background: none; border: none;
  color: var(--text-primary); cursor: pointer; padding: 4px;
}

@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ========= ANIMATIONS ========= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.35s ease forwards; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-primary) 25%, var(--border-color) 50%, var(--bg-primary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ========= MISC ========= */
.text-green { color: var(--accent-green) !important; }
.text-red   { color: var(--accent-red) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary-color { color: var(--accent-primary) !important; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

hr { border: none; border-top: 1px solid var(--border-color); margin: 16px 0; }
