/* NEON CASINO - Main Stylesheet */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f35;
  --bg-card-hover: #222847;
  --accent-purple: #7c3aed;
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(124, 58, 237, 0.2);
  --glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.3);
  --glow-pink: 0 0 20px rgba(236, 72, 153, 0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg-primary);
}

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

/* ===== HEADER ===== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(59,130,246,0.1));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--glow-purple);
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.balance-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(249,115,22,0.15));
  border: 1px solid rgba(245,158,11,0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  color: #fbbf24;
  cursor: pointer;
  transition: all 0.3s;
}

.balance-badge:hover {
  background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(249,115,22,0.25));
  transform: scale(1.02);
}

.balance-badge .coin-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
}

.profile-btn {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.profile-btn:hover { transform: scale(1.1); }

/* ===== WELCOME BANNER ===== */
.welcome-banner {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(59,130,246,0.2), rgba(236,72,153,0.15));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124,58,237,0.2), transparent);
  border-radius: 50%;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.welcome-banner h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.welcome-banner p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 14px;
}

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

.claim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}

.claim-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(245,158,11,0.4); }

.games-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
  background: var(--bg-card);
  color: var(--text-secondary);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  border-color: transparent;
  box-shadow: var(--glow-purple);
}

.filter-tab:hover:not(.active) {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}

/* ===== GAME GRID ===== */
.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 100px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.game-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(20px);
  transition: all 0.3s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.game-card:hover::after { opacity: 0.15; }

.game-card.aviator { border-color: rgba(59,130,246,0.3); }
.game-card.aviator::after { background: var(--accent-blue); }
.game-card.mines { border-color: rgba(236,72,153,0.3); }
.game-card.mines::after { background: var(--accent-pink); }
.game-card.slots { border-color: rgba(245,158,11,0.3); }
.game-card.slots::after { background: var(--accent-yellow); }
.game-card.plinko { border-color: rgba(236,72,153,0.3); }
.game-card.plinko::after { background: var(--accent-pink); }
.game-card.dice { border-color: rgba(16,185,129,0.3); }
.game-card.dice::after { background: var(--accent-green); }
.game-card.roulette { border-color: rgba(239,68,68,0.3); }
.game-card.roulette::after { background: var(--accent-red); }
.game-card.blackjack { border-color: rgba(6,182,212,0.3); }
.game-card.blackjack::after { background: var(--accent-cyan); }
.game-card.coinflip { border-color: rgba(245,158,11,0.3); }
.game-card.coinflip::after { background: var(--accent-yellow); }
.game-card.keno { border-color: rgba(124,58,237,0.3); }
.game-card.keno::after { background: var(--accent-purple); }
.game-card.hilo { border-color: rgba(6,182,212,0.3); }
.game-card.hilo::after { background: var(--accent-cyan); }

.game-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  font-size: 24px;
}

.hot-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

.new-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.game-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.game-card-multiplier {
  font-size: 12px;
  color: var(--text-muted);
}

.game-card-multiplier span {
  font-weight: 700;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg-secondary), rgba(17,24,39,0.95));
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s;
  padding: 4px 16px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.nav-item.active {
  color: var(--accent-purple);
}

.nav-item i {
  font-size: 20px;
  transition: all 0.3s;
}

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

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, rgba(124,58,237,0.1) 0%, var(--bg-primary) 50%);
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.auth-logo .logo-icon {
  width: 64px;
  height: 64px;
  font-size: 28px;
  margin-bottom: 12px;
}

.auth-logo h1 {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.auth-logo p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.auth-form {
  width: 100%;
  max-width: 380px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.form-input::placeholder { color: var(--text-muted); }

.auth-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  font-family: inherit;
}

.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(124,58,237,0.3); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-switch a {
  color: var(--accent-purple);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== GAME PAGE ===== */
.game-page {
  min-height: 100vh;
  padding-bottom: 100px;
}

/* ===== FULLSCREEN GAME MODE ===== */
#app.fullscreen-game {
  max-width: 100%;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-primary);
  overflow-y: auto;
}

.game-page-fullscreen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(59,130,246,0.05));
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  min-height: 44px;
}

.game-topbar .back-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s;
  font-size: 14px;
}

.game-topbar .back-btn:hover { background: var(--bg-card-hover); }

.game-topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.balance-badge-sm {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(249,115,22,0.15));
  border: 1px solid rgba(245,158,11,0.3);
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 12px;
  color: #fbbf24;
  cursor: pointer;
}

.balance-badge-sm .coin-sm {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
}

.game-area-fullscreen {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.game-area-fullscreen .game-canvas {
  flex: 1;
  min-height: 200px;
}

.game-area-fullscreen .bet-controls {
  flex-shrink: 0;
}

/* Aviator pulse button */
.pulse-btn {
  animation: pulse 1s infinite;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(59,130,246,0.05));
  border-bottom: 1px solid var(--border-color);
}

.game-header .back-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s;
  font-size: 16px;
}

.game-header .back-btn:hover { background: var(--bg-card-hover); }

.game-header .game-title {
  font-size: 16px;
  font-weight: 700;
}

.game-area {
  padding: 16px;
}

.game-canvas {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.bet-controls {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
}

.bet-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.bet-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  text-align: center;
}

.bet-input:focus { border-color: var(--accent-purple); }

.bet-btn-sm {
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.bet-btn-sm:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.play-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.play-btn.green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

.play-btn.green:hover { box-shadow: 0 6px 25px rgba(16,185,129,0.4); transform: translateY(-2px); }

.play-btn.red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}

.play-btn.purple {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

.play-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== WALLET PAGE ===== */
.wallet-page {
  padding: 16px;
  padding-bottom: 100px;
}

.wallet-card {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-pink));
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.wallet-card .balance-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
  font-weight: 600;
}

.wallet-card .balance-amount {
  font-size: 36px;
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
}

.wallet-actions {
  display: flex;
  gap: 10px;
}

.wallet-action-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.wallet-action-btn.deposit {
  background: rgba(255,255,255,0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.wallet-action-btn.withdraw {
  background: rgba(0,0,0,0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.wallet-action-btn:hover { transform: translateY(-2px); }

.tx-list {
  list-style: none;
}

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tx-item .tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 12px;
}

.tx-item .tx-icon.deposit { background: rgba(16,185,129,0.15); color: #10b981; }
.tx-item .tx-icon.withdraw { background: rgba(239,68,68,0.15); color: #ef4444; }
.tx-item .tx-icon.bet { background: rgba(245,158,11,0.15); color: #f59e0b; }
.tx-item .tx-icon.win { background: rgba(124,58,237,0.15); color: #a78bfa; }
.tx-item .tx-icon.bonus { background: rgba(236,72,153,0.15); color: #ec4899; }

.tx-info { flex: 1; }
.tx-info .tx-desc { font-size: 14px; font-weight: 600; }
.tx-info .tx-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.tx-amount { font-weight: 700; font-size: 14px; }
.tx-amount.positive { color: #10b981; }
.tx-amount.negative { color: #ef4444; }

/* ===== PROFILE PAGE ===== */
.profile-page {
  padding: 16px;
  padding-bottom: 100px;
}

.profile-card {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,0.1);
}

.profile-card .username {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-card .level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #a78bfa;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 2px;
}

.stat-card .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logout-btn {
  width: 100%;
  padding: 14px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  margin-top: 10px;
}

.logout-btn:hover { background: rgba(239,68,68,0.2); }

/* ===== LOADING & ANIMATIONS ===== */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 10px rgba(124,58,237,0.3); } 50% { box-shadow: 0 0 30px rgba(124,58,237,0.6); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes crash-fly {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(100px, -100px) rotate(45deg); }
}

.animate-slide-up { animation: slideUp 0.4s ease-out; }
.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 440px;
  width: calc(100% - 32px);
}

.toast {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease-out;
  backdrop-filter: blur(20px);
}

.toast.success {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
}

.toast.error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}

.toast.info {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  animation: slideUp 0.3s ease-out;
}

.modal-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ===== MINES GRID ===== */
.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 12px;
  width: 100%;
  max-width: 320px;
}

.mine-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 20px;
}

.mine-cell:hover:not(.revealed) {
  border-color: var(--accent-purple);
  background: rgba(124,58,237,0.1);
  transform: scale(1.05);
}

.mine-cell.revealed.gem {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.4);
}

.mine-cell.revealed.mine {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.4);
}

/* ===== SLOTS ===== */
.slots-display {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 20px;
}

.slot-reel {
  width: 80px;
  height: 100px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
  position: relative;
}

.slot-reel.spinning {
  animation: pulse 0.2s infinite;
}

/* ===== AVIATOR ===== */
.aviator-display {
  width: 100%;
  height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aviator-multiplier {
  font-size: 48px;
  font-weight: 900;
  transition: all 0.1s;
}

.aviator-multiplier.flying {
  color: #10b981;
  text-shadow: 0 0 30px rgba(16,185,129,0.5);
}

.aviator-multiplier.crashed {
  color: #ef4444;
  text-shadow: 0 0 30px rgba(239,68,68,0.5);
}

.aviator-plane {
  position: absolute;
  font-size: 32px;
  transition: all 0.1s;
}

/* ===== PLINKO ===== */
.plinko-board {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.plinko-multipliers {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 10px;
}

.plinko-bucket {
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  min-width: 28px;
}

/* ===== DICE ===== */
.dice-slider-container {
  padding: 10px 0;
}

.dice-result-display {
  font-size: 56px;
  font-weight: 900;
  text-align: center;
  padding: 20px;
}

/* ===== ROULETTE ===== */
.roulette-wheel {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    #ef4444 0deg 9.7deg, #1a1a2e 9.7deg 19.4deg,
    #ef4444 19.4deg 29.1deg, #1a1a2e 29.1deg 38.8deg,
    #ef4444 38.8deg 48.5deg, #1a1a2e 48.5deg 58.2deg,
    #ef4444 58.2deg 67.9deg, #1a1a2e 67.9deg 77.6deg,
    #ef4444 77.6deg 87.3deg, #1a1a2e 87.3deg 97deg,
    #ef4444 97deg 106.7deg, #1a1a2e 106.7deg 116.4deg,
    #ef4444 116.4deg 126.1deg, #1a1a2e 126.1deg 135.8deg,
    #ef4444 135.8deg 145.5deg, #1a1a2e 145.5deg 155.2deg,
    #ef4444 155.2deg 164.9deg, #1a1a2e 164.9deg 174.6deg,
    #10b981 174.6deg 184.3deg,
    #ef4444 184.3deg 194deg, #1a1a2e 194deg 203.7deg,
    #ef4444 203.7deg 213.4deg, #1a1a2e 213.4deg 223.1deg,
    #ef4444 223.1deg 232.8deg, #1a1a2e 232.8deg 242.5deg,
    #ef4444 242.5deg 252.2deg, #1a1a2e 252.2deg 261.9deg,
    #ef4444 261.9deg 271.6deg, #1a1a2e 271.6deg 281.3deg,
    #ef4444 281.3deg 291deg, #1a1a2e 291deg 300.7deg,
    #ef4444 300.7deg 310.4deg, #1a1a2e 310.4deg 320.1deg,
    #ef4444 320.1deg 329.8deg, #1a1a2e 329.8deg 339.5deg,
    #ef4444 339.5deg 349.2deg, #1a1a2e 349.2deg 360deg
  );
  border: 4px solid rgba(255,255,255,0.2);
  margin: 0 auto;
  transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-wheel.spinning {
  transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-result {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  border: 3px solid rgba(255,255,255,0.3);
  z-index: 5;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 16px;
  font-weight: 700;
  padding: 8px 0;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ===== RISK SELECTOR ===== */
.risk-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.risk-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
}

.risk-btn.active {
  border-color: var(--accent-purple);
  background: rgba(124,58,237,0.15);
  color: var(--accent-purple);
}

/* ===== WIN POPUP ===== */
.win-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.win-popup-content {
  text-align: center;
  animation: slideUp 0.5s ease-out;
}

.win-popup-content .win-amount {
  font-size: 48px;
  font-weight: 900;
  color: #10b981;
  text-shadow: 0 0 40px rgba(16,185,129,0.5);
  margin-bottom: 4px;
}

.win-popup-content .win-multiplier {
  font-size: 20px;
  color: #fbbf24;
  font-weight: 700;
}

/* Keno Grid */
.keno-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 10px;
  max-width: 340px;
  margin: 0 auto;
}

.keno-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.keno-cell:hover:not(.drawn) { border-color: var(--accent-purple); transform: scale(1.05); }
.keno-cell.picked { background: rgba(124,58,237,0.2); border-color: var(--accent-purple); color: #a78bfa; }
.keno-cell.drawn.hit { background: rgba(16,185,129,0.2); border-color: #10b981; color: #10b981; }
.keno-cell.drawn.miss { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #ef4444; }

/* Blackjack */
.card-hand {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0;
}

.playing-card {
  width: 56px;
  height: 80px;
  background: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease-out;
}

.playing-card.red { color: #ef4444; }
.playing-card.black { color: #1a1a2e; }
.playing-card.hidden {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: transparent;
}

.playing-card .card-rank { font-size: 16px; line-height: 1; }
.playing-card .card-suit { font-size: 20px; line-height: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
  .game-grid { gap: 8px; }
  .game-card { padding: 12px; }
  .game-card-icon { width: 44px; height: 44px; }
  .welcome-banner h2 { font-size: 18px; }
  .mines-grid { gap: 4px; }
}

/* HiLo Cards */
.hilo-card {
  width: 100px;
  height: 140px;
  background: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease-out;
}

/* CoinFlip */
.coin {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 900;
  border: 4px solid rgba(255,255,255,0.2);
  animation: slideUp 0.4s ease-out;
}

.coin.heads {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.coin.tails {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
}

.coin.flipping {
  animation: spin 0.5s linear 3;
}
