/* ============================================
   13L.GAME — Design System
   Palette: Volcanic Glass + Gold Neon
   Fonts: Clash Display + Outfit
   ============================================ */

:root {
  --bg-base:       #0d0d0f;
  --bg-surface:    #13131a;
  --bg-card:       #1a1a24;
  --bg-elevated:   #22222e;
  --border:        rgba(255,255,255,0.07);
  --border-glow:   rgba(255,107,43,0.3);

  --orange:        #FF6B2B;
  --orange-light:  #FFB088;
  --orange-dark:   #cc4a10;
  --gold:          #FFD700;
  --gold-dim:      #c9a227;
  --green:         #00E676;
  --red:           #FF3D57;
  --blue:          #4FC3F7;
  --purple:        #CE93D8;

  --text-primary:  #F0EDE8;
  --text-secondary:#A09A94;
  --text-muted:    #5a5650;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --shadow-card:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 40px rgba(255,107,43,0.2);
  --shadow-gold:   0 0 30px rgba(255,215,0,0.15);

  --transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Clash Display', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,107,43,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,43,0.5);
  background: linear-gradient(135deg, #ff7d45 0%, var(--orange) 100%);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.btn-xl {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}
.btn-full { width: 100%; justify-content: center; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #1a1200;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.45);
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(13,13,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13,13,15,0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo-13 { color: var(--orange); }
.logo-l  { color: var(--gold); }
.logo-game { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #7B68EE 0%, transparent 70%);
  top: 50%; left: 40%;
  animation: orbFloat 12s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  flex: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero-visual {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
.hero-jackpot {
  background: linear-gradient(135deg, rgba(26,18,0,0.9) 0%, rgba(74,56,0,0.9) 100%);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  text-align: center;
  box-shadow: var(--shadow-gold), var(--shadow-card);
  animation: fadeInUp 0.6s 0.5s ease both;
}
.jackpot-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.jackpot-amount {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255,215,0,0.5);
  margin-bottom: 6px;
}
.jackpot-sub { font-size: 0.82rem; color: var(--text-muted); }

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(26,26,36,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  animation: floatCard 4s ease-in-out infinite;
}
.card-wingo  { top: 10%; left: 5%; animation-delay: 0s; }
.card-aviator { bottom: 20%; right: 5%; animation-delay: 1.5s; }
.card-vortex { top: 55%; left: 0%; animation-delay: 0.8s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.fc-icon { font-size: 1.5rem; }
.fc-info { display: flex; flex-direction: column; }
.fc-name { font-size: 0.78rem; color: var(--text-secondary); }
.fc-win { font-family: 'Clash Display', sans-serif; font-size: 1rem; font-weight: 700; color: var(--green); }

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

/* ============================================
   TICKER
   ============================================ */
.ticker-wrap {
  background: linear-gradient(90deg, var(--orange-dark) 0%, var(--orange) 50%, var(--orange-dark) 100%);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.tick-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 100px 0; }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,107,43,0.1);
  border: 1px solid rgba(255,107,43,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   GAME FILTERS
   ============================================ */
.game-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(255,107,43,0.3);
}

/* ============================================
   GAMES GRID
   ============================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.game-card.featured {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}
.game-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  z-index: 0;
}
.game-card > * { position: relative; z-index: 1; }
.game-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  z-index: 2;
  letter-spacing: 0.05em;
}
.new-badge  { background: var(--green); color: #000; }
.purple-badge { background: var(--purple); color: #000; }
.gold-badge { background: var(--gold); color: #000; }
.blue-badge { background: var(--blue); color: #000; }

.game-icon-wrap {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.game-icon { font-size: 2.2rem; }
.game-info { flex: 1; }
.game-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.game-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}
.game-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.game-multiplier {
  font-family: 'Clash Display', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.game-btn { margin-top: auto; align-self: flex-start; }
.game-card.featured .game-btn { align-self: center; }

/* ============================================
   PROMOTIONS
   ============================================ */
.promo-section {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 50%, var(--bg-base) 100%);
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.promo-welcome {
  border-color: rgba(255,107,43,0.3);
  background: linear-gradient(135deg, rgba(255,107,43,0.08) 0%, var(--bg-card) 100%);
}
.promo-glow {
  position: absolute;
  top: -50px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,107,43,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.promo-icon { font-size: 2.5rem; margin-bottom: 16px; }
.promo-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.promo-amount {
  font-family: 'Clash Display', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 8px;
  line-height: 1;
}
.promo-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ============================================
   WINNERS TABLE
   ============================================ */
.winners-table {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.winners-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
  padding: 14px 24px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.winner-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  align-items: center;
  transition: var(--transition);
  animation: fadeInUp 0.4s ease both;
}
.winner-row:last-child { border-bottom: none; }
.winner-row:hover { background: rgba(255,255,255,0.03); }
.winner-player { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.winner-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.winner-game { color: var(--text-secondary); }
.winner-bet  { color: var(--text-muted); }
.winner-win  { color: var(--green); font-weight: 700; font-family: 'Clash Display', sans-serif; }
.winner-mult { color: var(--gold); font-weight: 700; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  padding: 100px 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,107,43,0.08) 0%, rgba(255,215,0,0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
}
.cta-orb1 {
  width: 400px; height: 400px;
  background: var(--orange);
  top: -100px; left: -100px;
}
.cta-orb2 {
  width: 300px; height: 300px;
  background: var(--gold);
  bottom: -100px; right: -50px;
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 80px 0 32px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 16px 0 20px;
  max-width: 280px;
  line-height: 1.7;
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-item {
  padding: 5px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.admin-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.4;
  transition: var(--transition);
}
.admin-link:hover { opacity: 1; color: var(--orange); }

/* ============================================
   AUTH PAGES (Login / Register)
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.auth-bg .orb1 {
  width: 500px; height: 500px;
  top: -150px; right: -100px;
}
.auth-bg .orb2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
}
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.5s ease both;
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo .nav-logo {
  font-size: 2rem;
  display: inline-block;
}
.auth-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.auth-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--orange);
  background: rgba(255,107,43,0.05);
  box-shadow: 0 0 0 3px rgba(255,107,43,0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input-wrap {
  position: relative;
}
.form-input-wrap .form-input { padding-right: 44px; }
.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.input-icon:hover { color: var(--orange); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}
.form-check a { color: var(--orange); }
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.auth-footer a { color: var(--orange); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.form-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 5px;
  display: none;
}
.form-error.show { display: block; }
.form-success {
  padding: 12px 16px;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--green);
  margin-bottom: 20px;
  display: none;
}
.form-success.show { display: block; }
.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin-top: 8px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: var(--transition);
  width: 0%;
}
.strength-weak   { background: var(--red); width: 33%; }
.strength-medium { background: var(--gold); width: 66%; }
.strength-strong { background: var(--green); width: 100%; }
.referral-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--gold);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}
.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 12px 8px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.sidebar-link.active {
  background: rgba(255,107,43,0.12);
  color: var(--orange);
  border: 1px solid rgba(255,107,43,0.2);
}
.sidebar-link svg { flex-shrink: 0; }
.sidebar-badge {
  margin-left: auto;
  padding: 2px 8px;
  background: var(--orange);
  color: #fff;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
}
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
}
.admin-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-name { font-size: 0.85rem; font-weight: 600; }
.admin-user-role { font-size: 0.72rem; color: var(--orange); }

.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-topbar {
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.topbar-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

.admin-content { padding: 32px; flex: 1; }
.admin-page { display: none; }
.admin-page.active { display: block; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.stat-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.stat-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.icon-orange { background: rgba(255,107,43,0.15); }
.icon-green  { background: rgba(0,230,118,0.15); }
.icon-blue   { background: rgba(79,195,247,0.15); }
.icon-gold   { background: rgba(255,215,0,0.15); }
.stat-card-value {
  font-family: 'Clash Display', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.stat-card-change {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.change-up   { color: var(--green); }
.change-down { color: var(--red); }

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.admin-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.panel-title {
  font-size: 1rem;
  font-weight: 700;
}
.panel-action {
  font-size: 0.8rem;
  color: var(--orange);
  cursor: pointer;
  transition: var(--transition);
}
.panel-action:hover { text-decoration: underline; }
.panel-body { padding: 20px 24px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { color: var(--text-primary); }
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
}
.status-active   { background: rgba(0,230,118,0.15); color: var(--green); }
.status-pending  { background: rgba(255,215,0,0.15); color: var(--gold); }
.status-blocked  { background: rgba(255,61,87,0.15); color: var(--red); }
.status-success  { background: rgba(0,230,118,0.15); color: var(--green); }
.status-failed   { background: rgba(255,61,87,0.15); color: var(--red); }

.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  padding: 24px;
}
.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  box-shadow: var(--shadow-card);
}
.admin-login-header {
  text-align: center;
  margin-bottom: 32px;
}
.admin-shield {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

/* ============================================
   CHART BARS (Admin)
   ============================================ */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding: 0 4px;
}
.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
  transition: var(--transition-slow);
  min-height: 4px;
}
.chart-bar:hover { background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dim) 100%); }
.chart-label { font-size: 0.65rem; color: var(--text-muted); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .game-card.featured { grid-column: span 1; flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(13,13,15,0.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    z-index: 999;
  }
  .hamburger { display: flex; }
  .hero { flex-direction: column; text-align: center; padding-top: 120px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; }
  .floating-card { display: none; }
  .games-grid { grid-template-columns: 1fr; }
  .winners-header, .winner-row { grid-template-columns: 2fr 1fr 1fr; }
  .winners-header span:nth-child(3),
  .winner-row span:nth-child(3) { display: none; }
  .winners-header span:nth-child(5),
  .winner-row span:nth-child(5) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .auth-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.8rem; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  animation: toastIn 0.3s ease both;
  max-width: 320px;
}
.toast-success { background: rgba(0,230,118,0.15); border: 1px solid rgba(0,230,118,0.3); color: var(--green); }
.toast-error   { background: rgba(255,61,87,0.15); border: 1px solid rgba(255,61,87,0.3); color: var(--red); }
.toast-info    { background: rgba(255,107,43,0.15); border: 1px solid rgba(255,107,43,0.3); color: var(--orange); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   MISC UTILITIES
   ============================================ */
.text-orange { color: var(--orange); }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-muted); }
.fw-700 { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-0  { margin-bottom: 0; }
.hidden { display: none !important; }