/* ==========================================================================
   Rare FF Tournaments [ Win Tournaments & Win Money ]
   Professional Esports Tournament Portal Stylesheet
   ========================================================================== */

:root {
  --bg-main: #0a0d14;
  --bg-card: #121824;
  --bg-card-hover: #182030;
  --bg-glass: rgba(18, 24, 36, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #f59e0b;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-orange: #ff5500;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glow-gold: 0 0 20px rgba(245, 158, 11, 0.35);
  --glow-orange: 0 0 25px rgba(255, 85, 0, 0.4);
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font-heading: 'Rajdhani', 'Orbitron', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255, 85, 0, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #0a0d14 0%, #080a10 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #252e42;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.text-gold { color: var(--accent-gold); }
.text-orange { color: var(--accent-orange); }
.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-muted { color: var(--text-muted); }

/* Layout Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 13, 20, 0.88);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f59e0b, #ff5500);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-gold);
  color: #000;
  font-weight: 900;
  font-size: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-title span {
  color: var(--accent-gold);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.logo-tagline {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 2px solid var(--accent-gold);
}

.nav-badge-count {
  background: var(--accent-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-select-wrap {
  position: relative;
}

/* Currency Select - Fixed Dark Dropdown */
.currency-select {
  background-color: #141b29;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.currency-select:hover {
  border-color: var(--accent-gold);
}

.currency-select option {
  background-color: #121824;
  color: #f8fafc;
  padding: 8px 12px;
}

.wallet-btn-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.wallet-btn-compact:hover {
  background: rgba(245, 158, 11, 0.22);
  box-shadow: var(--glow-gold);
}

.wallet-amount {
  color: var(--accent-gold);
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 16px;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 600;
}

.user-profile-btn:hover {
  border-color: var(--accent-gold);
}

.user-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.btn-deposit-glow {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #000;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--glow-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-deposit-glow:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: var(--glow-orange);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Live Notice Ticker */
.notice-ticker {
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 8px 0;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: marquee 32s linear infinite;
}

.notice-badge {
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
}

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

/* Hero Section */
.hero-section {
  padding: 56px 0 36px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-pill {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #fff 20%, var(--accent-gold) 60%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #05070a;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--glow-gold);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-orange);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Feature Card */
.hero-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.card-top-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.live-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-dot 1s infinite;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.hero-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.hero-stat-val {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-gold);
}

.hero-stat-lbl {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Global Stats / Value Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 0;
  margin: 16px 0 40px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.stat-number {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.1;
  color: #fff;
}

.stat-title {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--accent-gold);
  color: #000;
  box-shadow: var(--glow-gold);
}

/* ==================== 4 GAME MODES GRID (BR Survival, BR PER KILL, 4V4, 2V2) ==================== */
.game-modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  width: 100%;
}

.mode-card {
  position: relative;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.mode-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), var(--glow-gold);
}

.mode-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  z-index: 1;
}

.mode-card:hover .mode-card-bg {
  transform: scale(1.08);
}

.mode-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.15) 0%, rgba(10, 13, 20, 0.75) 55%, rgba(10, 13, 20, 0.98) 100%);
  z-index: 2;
}

.mode-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-tag {
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mode-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.mode-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.mode-btn {
  padding: 10px 16px;
  font-size: 13px;
  justify-content: center;
  width: 100%;
}

/* Tournament Grid & Match Cards */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.tourney-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.tourney-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.1);
}

.tourney-card-header {
  height: 140px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.tourney-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.2) 0%, rgba(18, 24, 36, 0.95) 100%);
}

.tourney-badges {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-mode {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-status {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-upcoming {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.status-live {
  background: rgba(239, 68, 68, 0.25);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.5);
  animation: pulse-dot 1.5s infinite;
}

.status-completed {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.header-bottom-info {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.tourney-id-tag {
  font-size: 12px;
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-weight: 700;
}

.tourney-map-tag {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tourney-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 16px;
}

.tourney-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

/* Match Financials Grid */
.match-financials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.fin-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fin-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.fin-value {
  font-size: 16px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
}

.fin-value.prize { color: var(--accent-gold); }
.fin-value.kill { color: var(--accent-orange); }
.fin-value.entry { color: var(--accent-cyan); }

/* Match Meta Details */
.match-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

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

.meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-box {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  font-size: 12px;
}

/* Slots Progress Bar */
.slots-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slots-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

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

.slots-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
  border-radius: 10px;
  transition: width 0.5s ease-out;
}

.slots-progress-fill.full {
  background: var(--accent-red);
}

/* Card Buttons */
.tourney-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-join {
  flex: 1;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #000;
  font-weight: 800;
  font-size: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-join:hover {
  filter: brightness(1.15);
  box-shadow: var(--glow-gold);
}

.btn-join.joined {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
  cursor: default;
}

.btn-details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-details:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Registered Matches View */
.my-matches-wrapper {
  margin-bottom: 48px;
}

.room-credential-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
}

.room-unlocked {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cred-val {
  font-family: monospace;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: #0b0e14;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.btn-copy-cred {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-cred:hover {
  background: var(--accent-gold);
  color: #000;
}

/* How It Works Steps */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-4px);
}

.step-number {
  width: 36px;
  height: 36px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-heading);
  margin-bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.step-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Leaderboard Section */
.leaderboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  padding: 32px 24px 24px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
  align-items: flex-end;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  position: relative;
}

.podium-slot.rank-1 {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.06);
  transform: translateY(-12px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

.podium-crown {
  font-size: 26px;
  margin-bottom: -10px;
  z-index: 2;
}

.podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1e2638;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  border: 2px solid var(--accent-gold);
}

.podium-slot.rank-2 .podium-avatar { border-color: #94a3b8; }
.podium-slot.rank-3 .podium-avatar { border-color: #cd7f32; }

.podium-name {
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.podium-won {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
}

.podium-stats {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Leaderboard Table */
.lb-table {
  width: 100%;
  border-collapse: collapse;
}

.lb-table th {
  background: rgba(0, 0, 0, 0.2);
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.lb-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: #cbd5e1;
}

.lb-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Rules & Fair Play Grid */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.rule-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.rule-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.rule-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.rule-icon.safe {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}

.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.rule-list li {
  position: relative;
  padding-left: 18px;
}

.rule-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 18px;
  line-height: 1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--glow-gold);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

.form-input, .form-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Payment Methods Grid */
.pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.pay-method-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.pay-method-btn:hover, .pay-method-btn.selected {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  color: #fff;
}

.amount-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.amount-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 14px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.amount-chip:hover, .amount-chip.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  animation: slideIn 0.3s ease-out;
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent-red); }
.toast.soon { border-left-color: var(--accent-cyan); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 3-Column Clean Footer */
.footer {
  background: #07090f;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats-ribbon { grid-template-columns: repeat(2, 1fr); }
  .how-it-works-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .game-modes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #0d121c;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    gap: 8px;
  }
  .hero-title { font-size: 34px; }
  .stats-ribbon { grid-template-columns: 1fr; }
  .tournament-grid { grid-template-columns: 1fr; }
  .leaderboard-podium { grid-template-columns: 1fr; }
  .podium-slot.rank-1 { transform: none; }
  .rules-grid { grid-template-columns: 1fr; }
  .how-it-works-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .game-modes-grid { grid-template-columns: 1fr; }
  .mode-card { height: 300px; }
}
