/* ── Nado Colors + Casino Energy ── */
/* Dark Nado palette with gambling excitement retained */

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

/* ── Base Reset ── */
/* Scoped text-shadow reset — predict gets its own glows */
#crash-container *,
#duel-container *,
.header *,
.tab-nav * {
  text-shadow: none !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background: #000000 !important;
  color: #c4c9d4 !important;
}

/* ── Header ── */
.site-header h1,
.site-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #fff !important;
  font-size: 1.5rem !important;
  text-transform: none !important;
  text-shadow: 0 0 20px rgba(229, 62, 62, 0.2) !important;
}

.balance-display {
  background: #0f1012 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 8px !important;
  color: #e53e3e !important;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace !important;
  font-weight: 600 !important;
  padding: 6px 16px !important;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.15) !important;
}

/* ── Tab Buttons ── */
.tab-btn {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 8px !important;
  color: #9a8a8a !important;
  padding: 8px 20px !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.tab-btn:hover {
  background: rgba(255,255,255,0.04) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: 0 2px 8px rgba(255,255,255,0.05) !important;
  transform: translateY(-1px) !important;
}

.tab-btn.active {
  background: #e53e3e !important;
  color: #fff !important;
  border-color: #e53e3e !important;
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3), 0 0 20px rgba(229, 62, 62, 0.2) !important;
}

/* ── Crash Game ── */
.crash-header {
  background: #0a0b0d !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

.crash-header h2,
.crash-header .game-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  color: #e53e3e !important;
  font-size: 1.1rem !important;
  text-shadow: 0 0 10px rgba(229, 62, 62, 0.25) !important;
}

.balance-value, .session-profit {
  font-family: 'SF Mono', 'Fira Code', monospace !important;
  font-weight: 600 !important;
}

.game-canvas-container,
.canvas-container {
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 12px !important;
  background: #000000 !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3) !important;
}

.countdown-overlay {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  background: rgba(0, 0, 0, 0.85) !important;
  border: 1px solid rgba(229, 62, 62, 0.3) !important;
  border-radius: 20px !important;
  color: #e53e3e !important;
  box-shadow: 0 8px 24px rgba(229, 62, 62, 0.4) !important;
  text-shadow: 0 0 10px rgba(229, 62, 62, 0.6) !important;
}

.game-status {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  background: #0f1012 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 8px !important;
  color: #e53e3e !important;
  text-shadow: 0 0 8px rgba(229, 62, 62, 0.3) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

/* ── Bet Panel (Rocket) ── */
.bet-panel {
  background: #0a0b0d !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.bet-panel h3 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  color: #e53e3e !important;
  text-shadow: 0 0 12px rgba(229, 62, 62, 0.3) !important;
}

.bet-panel input[type=number] {
  background: #000000 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: 'SF Mono', monospace !important;
  font-weight: 600 !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
}

.quick-bet-btn {
  background: #111214 !important;
  border: 1px solid rgba(229, 62, 62, 0.12) !important;
  border-radius: 6px !important;
  color: #d4a0a0 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
  transition: all 0.2s ease !important;
}

.quick-bet-btn:hover {
  background: #171a21 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255,255,255,0.08) !important;
  transform: translateY(-2px) !important;
}

.place-bet-btn {
  background: #e53e3e !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4), 0 0 20px rgba(229, 62, 62, 0.2) !important;
  transition: all 0.2s ease !important;
  letter-spacing: 0.02em !important;
}

.place-bet-btn:hover {
  background: #c53030 !important;
  box-shadow: 0 8px 28px rgba(229, 62, 62, 0.5), 0 0 30px rgba(229, 62, 62, 0.3) !important;
  transform: translateY(-2px) !important;
}

.cashout-btn {
  background: #ef4444 !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.2) !important;
  transition: all 0.2s ease !important;
}

.cashout-btn:hover {
  background: #dc2626 !important;
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.5), 0 0 30px rgba(239, 68, 68, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* Stats section */
.game-stats, .stats-section {
  background: #0f1012 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.game-stats h4, .stats-section h4 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  color: #e53e3e !important;
  text-shadow: 0 0 8px rgba(229, 62, 62, 0.2) !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.stat-value {
  font-family: 'SF Mono', monospace !important;
  font-weight: 700 !important;
  color: #e53e3e !important;
  text-shadow: 0 0 10px rgba(229, 62, 62, 0.5) !important;
}

/* Recent Results */
.crash-history span, .result-item {
  background: #111214 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 6px !important;
  font-family: 'SF Mono', monospace !important;
  font-weight: 600 !important;
  color: #c4c9d4 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}

/* Live Bets */
.live-bets-list .player-bet, .live-bet-item {
  background: #0f1012 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 6px !important;
  font-family: 'Inter', sans-serif !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.player-name-text {
  color: #9a8a8a !important;
}

.player-bet-amount {
  font-family: 'SF Mono', monospace !important;
  color: #fff !important;
}

/* ── Duel ── */
.duel-header {
  background: #0a0b0d !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

.duel-header h1 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 800 !important;
  color: #e53e3e !important;
  text-shadow: 0 0 12px rgba(229, 62, 62, 0.3) !important;
}

.duel-lobby h2 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  color: #ff6b6b !important;
}

.tournament-card {
  background: #0a0b0d !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03) !important;
  transition: all 0.2s ease !important;
}

.tournament-card:hover {
  border-color: rgba(255,255,255,0.08) !important;
  background: #0f1012 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px rgba(229, 62, 62, 0.1) !important;
  transform: translateY(-2px) !important;
}

.tournament-card h3 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  color: #ff6b6b !important;
}

.tournament-card .badge, .tournament-card span {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  color: #8a8f9a !important;
  background: #111214 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 4px !important;
}

.tournament-card .join-btn, .join-btn {
  background: #e53e3e !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4), 0 0 20px rgba(229, 62, 62, 0.2) !important;
  transition: all 0.2s ease !important;
}

.join-btn:hover {
  background: #c53030 !important;
  box-shadow: 0 8px 28px rgba(229, 62, 62, 0.5), 0 0 30px rgba(229, 62, 62, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* Duel type colors - subtle left border only */
.tournament-card.quick-duel { border-left: 3px solid #e53e3e !important; }
.tournament-card.arena { border-left: 3px solid #6366f1 !important; }
.tournament-card.marathon { border-left: 3px solid #eab308 !important; }

/* Duel active game */
.duel-active .tournament-header {
  background: #0a0b0d !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 10px !important;
}

.trade-panel {
  background: #0a0b0d !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.trade-panel h3 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  color: #e53e3e !important;
  text-shadow: 0 0 10px rgba(229, 62, 62, 0.3) !important;
}

.symbol-btn {
  background: #111214 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 6px !important;
  color: #c4c9d4 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
  transition: all 0.2s ease !important;
}

.symbol-btn.active, .symbol-btn:hover {
  background: #171a21 !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: 0 4px 12px rgba(255,255,255,0.08) !important;
  transform: translateY(-1px) !important;
}

.price-box {
  background: #000000 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3) !important;
}

.price-box .symbol-label { color: #e53e3e !important; font-family: 'Inter', sans-serif !important; font-weight: 600 !important; }
.price-box .price { font-family: 'SF Mono', monospace !important; font-weight: 700 !important; color: #fff !important; }

.trade-btn.long {
  background: #e53e3e !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4), 0 0 20px rgba(229, 62, 62, 0.2) !important;
  transition: all 0.2s ease !important;
}

.trade-btn.short {
  background: #ef4444 !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.2) !important;
  transition: all 0.2s ease !important;
}

.trade-btn.long:hover { 
  background: #c53030 !important; 
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(229, 62, 62, 0.5), 0 0 30px rgba(229, 62, 62, 0.3) !important;
}
.trade-btn.short:hover { 
  background: #dc2626 !important; 
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.5), 0 0 30px rgba(239, 68, 68, 0.3) !important;
}

/* Sliders */
input[type='range'] {
  accent-color: #e53e3e !important;
}

.slider-label {
  font-family: 'Inter', sans-serif !important;
  color: #e53e3e !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
}

/* Rankings */
.rankings {
  background: #0a0b0d !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.rankings h3 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  color: #e53e3e !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 0 8px rgba(229, 62, 62, 0.2) !important;
}

.ranking-row {
  background: #0f1012 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.ranking-row.highlight {
  border-color: rgba(229, 62, 62, 0.2) !important;
  background: rgba(229, 62, 62, 0.04) !important;
  box-shadow: 0 4px 16px rgba(229, 62, 62, 0.2) !important;
}

.pnl-badge {
  font-family: 'SF Mono', monospace !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  font-size: 0.75rem !important;
}

.pnl-badge.positive { background: rgba(34, 197, 94, 0.12) !important; color: #22c55e !important; }
.pnl-badge.negative { background: rgba(239, 68, 68, 0.12) !important; color: #ef4444 !important; }

/* Portfolio */
.portfolio-info {
  background: #0f1012 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 8px !important;
  font-family: 'SF Mono', monospace !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Position cards */
.position-card {
  background: #0f1012 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.close-position-btn {
  background: #ef4444 !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4) !important;
}

/* Duel countdown */
.duel-countdown {
  font-family: 'Inter', sans-serif !important;
}

.duel-countdown h1 {
  font-weight: 700 !important;
  color: #fff !important;
}

.countdown-timer {
  font-family: 'SF Mono', monospace !important;
  font-weight: 800 !important;
  color: #eab308 !important;
  text-shadow: 0 0 20px rgba(234, 179, 8, 0.6) !important;
}

/* Duel price ticker */
.price-ticker .ticker-item {
  background: #0a0b0d !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 8px !important;
}

/* ── Global Overrides ── */
/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* Animations - casino excitement */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes glow-pulse {
  0%, 100% { 
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4), 0 0 20px rgba(229, 62, 62, 0.2);
  }
  50% { 
    box-shadow: 0 8px 28px rgba(229, 62, 62, 0.6), 0 0 30px rgba(229, 62, 62, 0.4);
  }
}

/* Demo balance in header */
#balance-display, #balance {
  font-family: 'SF Mono', monospace !important;
  font-weight: 700 !important;
}

/* ── Crash Sidebar & Betting Panel (actual class names) ── */
.crash-main {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 200px);
}

.crash-game-area {
  flex: 1;
  position: relative;
}

.crash-sidebar {
  width: 380px;
  background: #0a0b0d !important;
  border-left: 1px solid rgba(255,255,255,0.04) !important;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  box-shadow: inset 4px 0 8px rgba(0,0,0,0.3) !important;
}

.betting-panel {
  background: #0a0b0d !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.betting-panel h3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: #fff !important;
  font-size: 1.25rem !important;
  margin: 0 0 16px 0 !important;
}

.bet-input-group {
  margin-bottom: 16px;
}

#bet-amount {
  width: 100%;
  padding: 14px 16px !important;
  background: #000000 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: 'SF Mono', monospace !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  box-sizing: border-box;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
}

#bet-amount:focus {
  outline: none;
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.15), inset 0 2px 4px rgba(0,0,0,0.3) !important;
}

.quick-bets {
  display: flex !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.quick-bet {
  flex: 1 !important;
  padding: 10px 12px !important;
  background: #111214 !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 6px !important;
  color: #c4c9d4 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}

.quick-bet:hover {
  background: #171a21 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255,255,255,0.08) !important;
  transform: translateY(-2px) !important;
}

/* Game status bar */
.game-status {
  font-size: 1rem !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
}

/* Live stats in sidebar */
.live-stats .stat {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
}

.live-stats .stat-label {
  color: #8a8f9a !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
}

.live-stats .stat-value {
  font-size: 0.95rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  .crash-main {
    flex-direction: column;
  }
  .crash-sidebar {
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
  }
}

/* ── Crash Game Typography Upgrade ── */
/* Space Grotesk for headings & status — more character than Inter */

.game-status {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.betting-panel h3 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  letter-spacing: 0.02em !important;
}

.multiplier-display,
.multiplier-display .multiplier-value {
  font-family: 'Space Grotesk', 'SF Mono', monospace !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 0 20px rgba(229, 62, 62, 0.8), 0 0 40px rgba(229, 62, 62, 0.4) !important;
}

#bet-amount {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}

.quick-bet {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.03em !important;
}

.place-bet-btn {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.06em !important;
}

.cashout-btn {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.06em !important;
}

.crash-header h2,
.crash-header .game-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  letter-spacing: 0.02em !important;
}

.stats-title, .history-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
}

.countdown-overlay {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.05em !important;
}

/* ── Fix double-box on Predict bet amount ── */
.bet-amount {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ── Bigger Rocket game canvas ── */
.crash-game-area {
  position: relative !important;
  width: 100% !important;
  min-height: 500px !important;
}

#crash-canvas {
  width: 100% !important;
  display: block !important;
  border-radius: 12px !important;
}
/* ── Input Focus Red Glow ── */
.bet-panel input[type=number]:focus,
#bet-amount:focus,
.bet-input:focus {
  border-color: rgba(229, 62, 62, 0.4) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 0 12px rgba(229, 62, 62, 0.2) !important;
}

/* ── Betting Panel h3 (actual class from crash.js) ── */
.betting-panel h3 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  color: #e53e3e !important;
  font-size: 1.3rem !important;
  text-shadow: 0 0 12px rgba(229, 62, 62, 0.3) !important;
}

/* ── Countdown text — red glow ── */
.countdown-overlay {
  color: #e53e3e !important;
  text-shadow: 0 0 15px rgba(229, 62, 62, 0.6) !important;
}

/* ── Live stats labels — muted warm ── */
.live-stats .stat-label,
.input-label,
.auto-cashout-group label {
  color: #7a6b6b !important;
}

/* ── History items — red glow on wins ── */
.history-item.win,
.history-result.win {
  color: #ff6b6b !important;
  text-shadow: 0 0 6px rgba(229, 62, 62, 0.3) !important;
}

.history-item.loss,
.history-result.loss {
  color: #6b7280 !important;
}

/* ── Timeframe & Leverage Selectors (Predict) ── */
.timeframe-selector {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #0a0b0d;
  border: 1px solid rgba(229, 62, 62, 0.1);
  border-radius: 10px;
  margin-bottom: 16px;
}

.timeframe-btn {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #6b6262;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.timeframe-btn:hover {
  color: #ff6b6b;
  background: rgba(229, 62, 62, 0.06);
}

.timeframe-btn.active {
  background: #e53e3e;
  color: #fff;
  border-color: #e53e3e;
  box-shadow: 0 4px 16px rgba(229, 62, 62, 0.35), 0 0 12px rgba(229, 62, 62, 0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Leverage */
.leverage-selector {
  margin-bottom: 16px;
  padding: 16px;
  background: #0a0b0d;
  border: 1px solid rgba(229, 62, 62, 0.08);
  border-radius: 12px;
}

.leverage-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #e53e3e;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(229, 62, 62, 0.2);
}

.leverage-buttons {
  display: flex;
  gap: 6px;
}

.leverage-btn {
  flex: 1;
  padding: 8px 6px;
  background: #111214;
  border: 1px solid rgba(229, 62, 62, 0.08);
  border-radius: 6px;
  color: #7a6b6b;
  font-family: 'SF Mono', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.leverage-btn:hover {
  color: #ff6b6b;
  border-color: rgba(229, 62, 62, 0.2);
  background: rgba(229, 62, 62, 0.06);
}

.leverage-btn.active {
  background: rgba(229, 62, 62, 0.15);
  color: #ff6b6b;
  border-color: #e53e3e;
  box-shadow: 0 0 10px rgba(229, 62, 62, 0.2), inset 0 0 8px rgba(229, 62, 62, 0.1);
  text-shadow: 0 0 6px rgba(229, 62, 62, 0.4);
}

.leverage-btn.degen {
  color: #ff4444;
}

.leverage-btn.degen.active {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
  box-shadow: 0 0 14px rgba(255, 68, 68, 0.3), inset 0 0 8px rgba(255, 68, 68, 0.15);
  animation: pulse-degen 1.5s ease-in-out infinite;
}

.leverage-btn.ultra-degen.active {
  background: rgba(255, 0, 0, 0.25);
  border-color: #ff0000;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4), inset 0 0 12px rgba(255, 0, 0, 0.2);
  animation: pulse-ultra 1s ease-in-out infinite;
  color: #ff0000;
}

@keyframes pulse-degen {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 68, 68, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.5); }
}

@keyframes pulse-ultra {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.7), 0 0 40px rgba(255, 0, 0, 0.3); }
}

.leverage-info {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(229, 62, 62, 0.04);
}

.leverage-info-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #7a6b6b;
  font-style: italic;
}

/* ── Green Accents — Trading/Casino Balance ── */

/* Balance display — green (money = green) */
.balance-display,
.balance-value,
#balance {
  color: #22c55e !important;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.25) !important;
}

/* Place Bet button — green (action = go) */
.place-bet-btn {
  background: #22c55e !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35), 0 0 16px rgba(34, 197, 94, 0.2) !important;
}

.place-bet-btn:hover {
  background: #16a34a !important;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.45), 0 0 24px rgba(34, 197, 94, 0.3) !important;
}

/* Session profit when positive */
.session-profit.profit-positive,
.profit-positive {
  color: #22c55e !important;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.3) !important;
}

/* Win history items — green */
.history-item.win,
.history-result.win {
  color: #22c55e !important;
  border-color: rgba(34, 197, 94, 0.25) !important;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.3) !important;
  background: rgba(34, 197, 94, 0.06) !important;
}

/* Predict: Higher button — green */
.predict-btn.higher,
.btn-higher,
[class*="higher"] button,
button[class*="higher"] {
  background: #22c55e !important;
  border-color: #22c55e !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35), 0 0 12px rgba(34, 197, 94, 0.2) !important;
}

.predict-btn.higher:hover,
.btn-higher:hover {
  background: #16a34a !important;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.45) !important;
}

/* Duel: Long button — green */
.trade-btn.long {
  background: #22c55e !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35), 0 0 12px rgba(34, 197, 94, 0.2) !important;
}

.trade-btn.long:hover {
  background: #16a34a !important;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.45) !important;
}

/* Join button — green (positive action) */
.join-btn {
  background: #22c55e !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3) !important;
}

.join-btn:hover {
  background: #16a34a !important;
}

/* PnL positive */
.pnl-badge.positive {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #22c55e !important;
}

/* Ranking highlight */
.ranking-row.highlight {
  border-color: rgba(34, 197, 94, 0.2) !important;
  background: rgba(34, 197, 94, 0.04) !important;
}

/* Player count / online indicator */
#player-count {
  color: #22c55e !important;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.3) !important;
}

/* Low leverage buttons — green tint (safe) */
.leverage-btn[data-leverage="1"],
.leverage-btn[data-leverage="10"] {
  color: #6b9a6b !important;
}

.leverage-btn[data-leverage="1"].active,
.leverage-btn[data-leverage="10"].active {
  color: #22c55e !important;
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.12) !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2) !important;
}

/* Countdown — green (go!) */
.countdown-overlay {
  color: #22c55e !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  text-shadow: 0 0 15px rgba(34, 197, 94, 0.5) !important;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3) !important;
}

/* Price positive change */
.price-change.positive {
  color: #22c55e !important;
}

/* ═══════════════════════════════════════════
   PREDICT PAGE POLISH
   ═══════════════════════════════════════════ */

/* Hide connection status when connected */
.connection-status.connected {
  display: none !important;
}

/* Predict title — clean, no emoji */
.predict-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #e53e3e !important;
  letter-spacing: 0.05em !important;
}

.predict-subtitle {
  color: #6b6262 !important;
  font-size: 0.9rem !important;
}

/* Bigger Higher/Lower buttons */
.predict-btn {
  padding: 16px 32px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  min-width: 160px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.predict-btn small {
  font-size: 0.7rem !important;
  opacity: 0.7 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.predict-btn.lower {
  background: #e53e3e !important;
  border-color: #e53e3e !important;
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.35), 0 0 12px rgba(229, 62, 62, 0.2) !important;
}

.predict-btn.lower:hover {
  background: #c53030 !important;
  box-shadow: 0 8px 28px rgba(229, 62, 62, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* Mini chart — full width */
.mini-chart-container,
.mini-chart {
  width: 100% !important;
}

canvas#mini-chart {
  width: 100% !important;
}

/* Pool info styling */
.pool-info {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.85rem !important;
  color: #6b6262 !important;
}

/* Bet amount section */
.bet-section label,
.bet-amount-label {
  color: #9a8a8a !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

/* Stats panel — cleaner */
.predict-stats .stat-label {
  color: #6b6262 !important;
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

.predict-stats .stat-value {
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 700 !important;
}
