:root {
  --bg-primary: #090b14;
  --bg-secondary: #101426;
  --bg-card: rgba(19, 25, 45, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(99, 102, 241, 0.3);
  
  --accent-cyan: #00f2fe;
  --accent-purple: #8b5cf6;
  --accent-gold: #ffb703;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --game-val: #ff4655;
  --game-pubg: #f2a900;
  --game-pubgm: #ffaa00;
  --game-bgmi: #00e5ff;
  --game-cod: #7852ff;
  --game-pes: #3b82f6;

  --font-primary: 'Outfit', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background FX */
.bg-fx {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--accent-cyan);
  bottom: -200px;
  right: -100px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4), 0 0 30px rgba(139, 92, 246, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.brand:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 40px rgba(14, 165, 233, 0.5);
}

.hero-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero-logo-img {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6), 0 0 60px rgba(14, 165, 233, 0.3);
  animation: logoPulse 4s infinite alternate ease-in-out;
}

@keyframes logoPulse {
  0% { transform: scale(1); box-shadow: 0 0 25px rgba(139, 92, 246, 0.5); }
  100% { transform: scale(1.04); box-shadow: 0 0 45px rgba(14, 165, 233, 0.8); }
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
  display: block;
  background: linear-gradient(90deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* News Ticker Section */
.news-ticker-section {
  background: linear-gradient(90deg, rgba(16, 20, 38, 0.9), rgba(30, 27, 75, 0.9));
  border-bottom: 1px solid var(--border-glow);
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.news-ticker-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.news-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-purple), #4f46e5);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.news-content-marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
}

.news-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marqueeNews 25s linear infinite;
}

.news-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeNews {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.news-item {
  font-size: 0.88rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.text-gold { color: var(--accent-gold); }
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }

/* Header Auth Buttons */
.btn-auth-signin {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-auth-signin:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-auth-signup {
  background: linear-gradient(135deg, var(--accent-purple), #6366f1);
  border: none;
  color: #fff;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
  transition: all 0.2s ease;
}

.btn-auth-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.7);
}

/* Cash Withdrawal Note Banner */
.withdrawal-note-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #fef08a;
  font-size: 0.85rem;
  line-height: 1.4;
}

.withdrawal-note-banner .note-icon {
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-top: 0.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Sync Badge */
.sync-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 1.5s infinite;
}

.pulse-dot.blue {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.pulse-dot.red {
  background: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
}

.sync-badge.live-bot {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}

.sync-badge.web-sync {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
}

.sync-badge.offline {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Wallet Pill */
.wallet-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 25px;
}

.coin-icon {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.wallet-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.coin-val {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent-gold);
}

.cash-val {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-deposit, .btn-payout {
  background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-payout {
  background: linear-gradient(135deg, var(--accent-cyan), #3b82f6);
  color: #fff;
}

.btn-deposit:hover, .btn-payout:hover {
  transform: translateY(-1px);
}

/* User Badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.status-tag.verified {
  background: var(--accent-emerald);
  color: #000;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  font-weight: 800;
}

/* Main Layout */
.main-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.4), rgba(15, 23, 42, 0.7));
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.15);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 20px;
  color: var(--accent-purple);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 750px;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 16px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Section Header */
.section-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
}

/* Verification Grid */
.verification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .verification-grid { grid-template-columns: 1fr; }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-pill {
  font-size: 0.7rem;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-weight: 700;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Select & Option Dropdown High Contrast Fix */
select {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

select option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  padding: 10px 14px;
  font-size: 0.95rem;
}

select option:hover, select option:focus, select option:active, select option:checked {
  background-color: #1e293b !important;
  color: var(--accent-cyan) !important;
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.btn-submit-verify {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}

.btn-submit-verify:hover {
  opacity: 0.9;
}

.current-status-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.status-indicator-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.status-indicator-ring.green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.status-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.status-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-sim-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 14px;
}

.admin-sim-box h4 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-sim-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.pending-actions {
  display: flex;
  gap: 0.4rem;
}

.btn-admin-approve {
  background: var(--accent-emerald);
  color: #000;
  border: none;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-admin-reject {
  background: var(--accent-rose);
  color: #fff;
  border: none;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Game Filter Tabs */
.game-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple);
  color: #fff;
}

.color-val { color: var(--game-val); }
.color-pubg { color: var(--game-pubg); }
.color-pubgm { color: var(--game-pubgm); }
.color-bgmi { color: var(--game-bgmi); }
.color-cod { color: var(--game-cod); }
.color-pes { color: var(--game-pes); }

/* Tournaments Grid */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.tourney-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform 0.2s, border 0.2s;
}

.tourney-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.tourney-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-badge.Valorant { background: rgba(255, 70, 85, 0.2); color: var(--game-val); border: 1px solid var(--game-val); }
.game-badge.PUBG-PC { background: rgba(242, 169, 0, 0.2); color: var(--game-pubg); border: 1px solid var(--game-pubg); }
.game-badge.PUBG-Mobile { background: rgba(255, 170, 0, 0.2); color: var(--game-pubgm); border: 1px solid var(--game-pubgm); }
.game-badge.BGMI { background: rgba(0, 229, 255, 0.2); color: var(--game-bgmi); border: 1px solid var(--game-bgmi); }
.game-badge.Call-of-Duty { background: rgba(120, 82, 255, 0.2); color: var(--game-cod); border: 1px solid var(--game-cod); }
.game-badge.PES-eFootball { background: rgba(59, 130, 246, 0.2); color: var(--game-pes); border: 1px solid var(--game-pes); }
.game-badge.Free-Fire { background: rgba(255, 107, 0, 0.2); color: #ff6b00; border: 1px solid #ff6b00; }
.game-badge.Mini-Militia { background: rgba(132, 204, 22, 0.2); color: #84cc16; border: 1px solid #84cc16; }

.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

.status-badge.voting { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-badge.confirmed { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

.tourney-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.tourney-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem;
  border-radius: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-val {
  font-weight: 700;
  font-size: 0.95rem;
}

.meta-val.prize {
  color: var(--accent-gold);
}

/* Consensus Progress Bar */
.consensus-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.consensus-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
}

.meter-target {
  color: var(--accent-purple);
}

.progress-track {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 10px;
  transition: width 0.4s ease;
}

.btn-join-match {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
  color: #000;
  border: none;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.3);
  transition: transform 0.2s;
}

.btn-join-match:hover {
  transform: translateY(-2px);
}

.btn-view-room {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.joined-badge-pending {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--accent-purple);
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

/* Consensus Section */
.consensus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.consensus-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-vote-yes {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #fff;
  border: none;
  padding: 0.65rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-vote-no {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid var(--accent-rose);
  color: var(--accent-rose);
  padding: 0.65rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-vote-yes:hover { opacity: 0.9; }
.btn-vote-no:hover { background: rgba(244, 63, 94, 0.3); }

/* Admin Control Card */
.admin-control-card {
  border-color: var(--border-glow);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.btn-group-span {
  grid-column: 1 / -1;
}

.btn-create-tourney {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-icon {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.deposit-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.preset-btn.active {
  border-color: var(--accent-gold);
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-gold);
}

.conversion-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.preview-coins { color: var(--accent-gold); font-size: 1.1rem; }
.preview-cash { color: var(--accent-cyan); font-size: 1.1rem; }

.btn-razorpay {
  width: 100%;
  background: linear-gradient(135deg, #072654, #10b981);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-razorpay-payout {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6, var(--accent-purple));
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.alert-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.alert-box.success { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--accent-emerald); color: var(--accent-emerald); }
.alert-box.error { background: rgba(244, 63, 94, 0.15); border: 1px solid var(--accent-rose); color: var(--accent-rose); }
.alert-box.hidden { display: none; }

/* Header Login Button */
.btn-header-login {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-header-login:hover {
  background: rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Razorpay Test Gateway Modal */
.rzp-test-card {
  background: #091428;
  border: 1px solid #1e3a8a;
  box-shadow: 0 0 50px rgba(14, 165, 233, 0.4);
}

.rzp-test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

.rzp-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.rzp-bolt {
  color: #0284c7;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.rzp-sandbox-tag {
  font-size: 0.65rem;
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  width: fit-content;
}

.rzp-amount-badge {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: #38bdf8;
}

.rzp-details {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rzp-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.rzp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-rzp-success {
  background: linear-gradient(135deg, #0284c7, #10b981);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-rzp-success:hover { opacity: 0.9; }
.btn-rzp-fail:hover { background: rgba(244, 63, 94, 0.25); }

/* Settings Pill Button */
.btn-settings-pill {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--accent-purple);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-settings-pill:hover {
  background: rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* Settings Profile Card */
.settings-profile-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.profile-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.profile-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.meta-row span {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-rzp-success:hover { opacity: 0.9; }
.btn-rzp-fail:hover { background: rgba(244, 63, 94, 0.25); }

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM FOR MOBILE PHONES, TABLETS & ALL DEVICES
   ========================================================================== */

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(9, 11, 20, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glow);
  padding: 0.5rem 0.75rem;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mob-nav-item i {
  font-size: 1.1rem;
}

.mob-nav-item.active, .mob-nav-item:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px var(--accent-cyan);
}

.btn-mob-settings {
  color: var(--accent-purple);
}

/* Tablet & Mobile Screens (< 992px) */
@media (max-width: 992px) {
  .header-container {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }

  .main-content {
    padding: 1.25rem 1rem;
    gap: 2.5rem;
  }

  .hero-section {
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .stat-num {
    font-size: 1.15rem;
  }
}

/* Mobile Screens (< 640px) */
@media (max-width: 640px) {
  .brand-title {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.55rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .wallet-pill {
    padding: 0.25rem 0.6rem;
    gap: 0.4rem;
  }

  .coin-val {
    font-size: 0.8rem;
  }

  .btn-payout {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
  }

  .game-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
  }

  .filter-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .tournaments-grid, .consensus-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .tourney-card, .consensus-card {
    padding: 1.15rem;
  }

  .tourney-title {
    font-size: 1.1rem;
  }

  .meta-val {
    font-size: 0.85rem;
  }

  .modal-card {
    width: 94%;
    padding: 1.25rem;
    max-height: 85vh;
  }

  .deposit-presets {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .preset-btn {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

/* Page View Switcher & Single Page Routing */
.page-view {
  animation: fadeIn 0.3s ease-in-out forwards;
}

.page-view.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dedicated Wallet Page Styles */
.wallet-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .wallet-page-grid {
    grid-template-columns: 1fr;
  }
}

.wallet-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(14, 165, 233, 0.1));
  border: 1px solid var(--accent-purple);
}

.wallet-balance-banner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.banner-coins {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gold-coin-glow {
  font-size: 2.5rem;
  color: var(--accent-gold);
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.6));
}

.hero-coin-val {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
}

.hero-coin-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.banner-cash {
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-cash strong {
  color: var(--accent-emerald);
  font-size: 1.2rem;
}

.wallet-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-deposit-large {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  color: #fff;
  border: none;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-deposit-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-payout-large {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #000;
  border: none;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-payout-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.wallet-rules-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wallet-rules-card h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wallet-rules-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
}

.wallet-rules-list li i {
  margin-top: 2px;
  font-size: 1rem;
}
