/* ==========================================================================
   GREENPUMP MASTER BLUE THEME
   Crisp, human-crafted dark blue iGaming system. Zero AI-slop.
   ========================================================================== */

/* 1. Global Reset & Theme Mapping */
:root {
  /* Override all legacy green variables with the cohesive blue system */
  --greenpump-emerald: #2563eb !important;
  --greenpump-emerald-light: #3b82f6 !important;
  --greenpump-emerald-glow: rgba(37, 99, 235, 0.28) !important;
  --greenpump-dark-bg: #070c18 !important;
  --greenpump-panel-bg: #0b1325 !important;
  --greenpump-card-bg: #0e172a !important;
  --greenpump-input-bg: #0a1224 !important;

  --gp-bg: #070c18 !important;
  --gp-bg-soft: #0a1122 !important;
  --gp-surface: #0b1325 !important;
  --gp-surface-2: #0e172a !important;
  --gp-surface-3: #132244 !important;
  --gp-line: rgba(59, 130, 246, 0.18) !important;
  --gp-line-soft: rgba(255, 255, 255, 0.08) !important;
  --gp-line-green: rgba(59, 130, 246, 0.35) !important;
  --gp-ink: #f8fafc !important;
  --gp-muted: #94a3b8 !important;
  --gp-dim: #64748b !important;
  --gp-green: #3b82f6 !important;
  --gp-green-strong: #2563eb !important;
  --gp-green-deep: #1d4ed8 !important;
  --accent: #2563eb !important;
  --accent-strong: #3b82f6 !important;
}

html, body {
  background-color: #070c18 !important;
  color: #f8fafc !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 48rem),
              linear-gradient(180deg, #070c18 0%, #050811 100%) !important;
  background-attachment: fixed !important;
}

/* Subtle, technical background grid */
.horizon-grid {
  opacity: 0.35 !important;
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.08) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
}

/* Loading Screen */
.LoadingScreen-module__DJ-nqa__screen {
  background: #070c18 !important;
}
.LoadingScreen-module__DJ-nqa__fill {
  background: linear-gradient(90deg, #1d4ed8 0%, #38bdf8 100%) !important;
}
.LoadingScreen-module__DJ-nqa__track {
  background: #0e172a !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

/* 2. Top Navigation Bar - Full-Width Edge-to-Edge Bar */
.site-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 64px !important;
  margin: 0 !important;
  z-index: 1000 !important;
  padding: 0 24px !important;
  background: rgba(11, 19, 37, 0.96) !important;
  border: none !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.22) !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 24px rgba(4, 8, 18, 0.6) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

.site-nav__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.nav-zone-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.nav-zone-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

/* Chat sidebar docked cleanly underneath full-width top navbar */
#gpChatSidebar {
  top: 76px !important;
  left: 16px !important;
  bottom: 16px !important;
}

#chatOpenBtn {
  top: 76px !important;
  left: 12px !important;
}

@media (max-width: 1360px) {
  .site-nav {
    padding: 0 16px !important;
  }
  .nav-zone-left {
    gap: 8px !important;
  }
  .nav-zone-right {
    gap: 6px !important;
  }
  .nav-discord-link span {
    display: none !important;
  }
}

@media (max-width: 1220px) {
  .nav-discord-link {
    display: none !important;
  }
}

/* Navigation Buttons & Links */
.site-nav button, 
.site-nav a.nav-hide-mobile,
.nav-games-wrapper > button {
  background: #0f1c38 !important;
  border: 1px solid rgba(59, 130, 246, 0.16) !important;
  color: #cbd5e1 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.site-nav button:hover, 
.site-nav a.nav-hide-mobile:hover,
.nav-games-wrapper > button:hover {
  background: #182a52 !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Games Dropdown Menu */
.NavbarGameMenu-module__tgv1Qa__menu {
  background: #0e172a !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px rgba(4, 8, 18, 0.8) !important;
  padding: 10px !important;
}

.nav-game-link {
  background: #0a1224 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  color: #e2e8f0 !important;
  transition: all 0.16s ease !important;
}

.nav-game-link:hover,
.nav-game-link.active {
  background: #132244 !important;
  border-color: #3b82f6 !important;
  transform: translateY(-1px) !important;
}

.nav-game-link.active span:last-child {
  color: #38bdf8 !important;
}

/* Daily Free Case Pill */
#dailyCaseNavBtn, .daily-case-nav-btn {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22) 0%, rgba(30, 64, 175, 0.3) 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2) !important;
}

#dailyCaseNavBtn:hover, .daily-case-nav-btn:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(30, 64, 175, 0.45) 100%) !important;
  border-color: #60a5fa !important;
  transform: translateY(-1px) !important;
}

#dailyCaseNavBtn span:first-of-type {
  color: #ffffff !important;
}

.daily-case-badge, #dailyCaseBadge {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
}

/* Wallet Button */
#gpWalletBtn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.3) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.18s ease !important;
}

#gpWalletBtn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
}

/* Notification Dot */
.gp-notif-dot {
  background: #38bdf8 !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8) !important;
}

/* 3. Left Public Chat Sidebar */
#gpChatSidebar {
  background: #0b1325 !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 40px rgba(4, 8, 18, 0.7) !important;
}

#gpChatSidebar > div:first-child {
  background: #0e172a !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.14) !important;
}

#gpChatSidebar [style*="background:#18181c"],
#gpChatSidebar [style*="background:#121215"],
#gpChatSidebar [style*="background:#101014"],
#gpChatSidebar [style*="background:#161722"] {
  background: #0a1224 !important;
  border-color: rgba(59, 130, 246, 0.14) !important;
}

#airdropProgressBar {
  background: linear-gradient(90deg, #1d4ed8 0%, #38bdf8 100%) !important;
}

#airdropTimerDisplay {
  color: #38bdf8 !important;
}

.gp-chat-live {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

#gpChatSendBtn {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4) !important;
  border-radius: 8px !important;
  transition: all 0.16s ease !important;
}

#gpChatSendBtn:hover {
  background: #3b82f6 !important;
  transform: translateY(-1px) !important;
}

#chatOpenBtn {
  background: #0e172a !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
  border-radius: 9999px !important;
  box-shadow: 0 8px 24px rgba(4, 8, 18, 0.8) !important;
}

#chatOpenBtn:hover {
  background: #132244 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* 4. Common Game Surfaces & Panels */
.pump-main-shell {
  padding-top: 16px !important;
}

.game-stage-view {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

.gp-game-head {
  margin-bottom: 16px !important;
}

.gp-game-kicker {
  color: #60a5fa !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

.gp-game-title {
  color: #ffffff !important;
  font-family: 'Sora', sans-serif !important;
  font-weight: 800 !important;
}

.gp-game-chip {
  background: #0e172a !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: #94a3b8 !important;
}

.gp-chip-dot {
  background: #38bdf8 !important;
  box-shadow: 0 0 6px #38bdf8 !important;
}

/* Game Stage Containers */
.pump-chart-stage,
.crash-arena-wrapper,
.chicken-arena-wrapper,
.mines-shell,
.bj-arena-stage,
.hilo-shell,
.flappy-game-panel,
.coinflip-shell {
  background: #0b1325 !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 40px rgba(4, 8, 18, 0.7) !important;
  overflow: hidden !important;
}

/* Game Control Panels & Cards */
.crash-card,
.chicken-card,
.mines-panel,
.mines-board-panel,
.hilo-panel,
.coinflip-panel,
.flappy-panel {
  background: #0e172a !important;
  border: 1px solid rgba(59, 130, 246, 0.16) !important;
  border-radius: 16px !important;
}

/* Input Boxes Across All Games */
.crash-input-box,
.chicken-input-box,
.gp-bet-input,
.hilo-bet-row,
.pump-bet-box {
  background: #0a1224 !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
  border-radius: 12px !important;
  transition: border-color 0.15s ease !important;
}

.crash-input-box:focus-within,
.chicken-input-box:focus-within,
.gp-bet-input:focus-within,
.hilo-bet-row:focus-within,
.pump-bet-box:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Quick Bet Pills (1/2, 2x, MAX) */
.crash-quick-btn,
.chicken-quick-btn,
.gp-quick-bets button,
.hilo-quick-row button,
.bj-pill-btn,
#pumpHalfBtn, #pumpDoubleBtn, #pumpMaxBtn {
  background: #132244 !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  color: #93c5fd !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  transition: all 0.15s ease !important;
}

.crash-quick-btn:hover,
.chicken-quick-btn:hover,
.gp-quick-bets button:hover,
.hilo-quick-row button:hover,
.bj-pill-btn:hover,
#pumpHalfBtn:hover, #pumpDoubleBtn:hover, #pumpMaxBtn:hover {
  background: #1d4ed8 !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Primary Game Action Buttons (Solid Cobalt Blue) */
.gp-primary-btn,
.crash-action-btn,
.chicken-main-btn,
.coinflip-flip-btn,
#pumpTradeActionBtn,
#bjPlaceBetActionBtn,
#minesStartBtn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.3) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.gp-primary-btn:hover,
.crash-action-btn:hover,
.chicken-main-btn:hover,
.coinflip-flip-btn:hover,
#pumpTradeActionBtn:hover,
#bjPlaceBetActionBtn:hover,
#minesStartBtn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45) !important;
}

/* In-game Cashout Buttons (High contrast cyan/electric blue) */
.gp-cashout-btn,
.chicken-cashout-btn,
.hilo-cashout,
#minesCashoutBtn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid rgba(125, 211, 252, 0.4) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4) !important;
  border-radius: 12px !important;
  transition: all 0.16s ease !important;
  cursor: pointer !important;
}

.gp-cashout-btn:hover,
.chicken-cashout-btn:hover,
.hilo-cashout:hover,
#minesCashoutBtn:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  transform: translateY(-1px) !important;
}

/* 5. Specific Game Details */

/* Pump & Dump HUD */
.pump-floating-hud {
  background: rgba(14, 23, 42, 0.95) !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 32px rgba(4, 8, 18, 0.7) !important;
}

#pumpUpBtn.is-active {
  background: #2563eb !important;
  color: #ffffff !important;
}
#dumpDownBtn.is-active {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* Crash Arena */
.crash-multipliers-bar {
  background: #0e172a !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.16) !important;
}

.crash-badge.green {
  background: rgba(37, 99, 235, 0.16) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  color: #60a5fa !important;
}

.crash-badge.red {
  background: rgba(239, 68, 68, 0.14) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
}

.crash-player-row {
  background: #0e172a !important;
  border-color: rgba(59, 130, 246, 0.12) !important;
}

/* Chicken Road */
.chicken-diff-item {
  background: #0a1224 !important;
  border: 1px solid rgba(59, 130, 246, 0.16) !important;
  border-radius: 10px !important;
}

.chicken-diff-item.active {
  background: #132244 !important;
  border-color: #3b82f6 !important;
}

.chicken-diff-dot, .chicken-diff-item.active .chicken-diff-dot {
  background: #38bdf8 !important;
  box-shadow: 0 0 8px #38bdf8 !important;
}

.chicken-hop-btn {
  background: #132244 !important;
  border: 1px solid #3b82f6 !important;
  color: #ffffff !important;
}

/* Mines 5x5 Grid */
.mines-tile {
  background: #132244 !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(4, 8, 18, 0.5) !important;
  transition: all 0.15s ease !important;
}

.mines-tile:hover:not(.revealed):not(:disabled) {
  background: #1c3260 !important;
  border-color: #60a5fa !important;
  transform: translateY(-2px) !important;
}

.mines-tile.revealed.gem {
  background: rgba(37, 99, 235, 0.25) !important;
  border-color: #38bdf8 !important;
}

.mines-tile.revealed.bomb {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: #ef4444 !important;
}

/* Custom Mines Non-Blocky Selector */
.custom-dropdown-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

.custom-dropdown-trigger {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: #0a1224 !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #f8fafc !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(4, 8, 18, 0.4) !important;
}

.custom-dropdown-trigger:hover {
  background: #0f1c38 !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18) !important;
  transform: translateY(-1px);
}

.custom-dropdown-trigger:focus-visible {
  outline: 2px solid #38bdf8 !important;
  outline-offset: 2px;
}

.custom-dropdown-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-dropdown-icon {
  font-size: 16px;
}

.custom-dropdown-chevron {
  color: #60a5fa;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dropdown-wrap.open .custom-dropdown-chevron {
  transform: rotate(180deg);
}

.custom-dropdown-wrap.open .custom-dropdown-trigger {
  border-color: #3b82f6 !important;
  background: #0f1c38 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

/* Floating Custom Dropdown Menu (Rounded, Glassy, Not Blocky) */
.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 90;
  background: #0b152d !important;
  border: 1px solid rgba(59, 130, 246, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 45px rgba(4, 8, 18, 0.88) !important;
  padding: 6px !important;
  display: none;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dropdown-wrap.open .custom-dropdown-menu {
  display: flex !important;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-dropdown-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  border-radius: 9px !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  border: 1px solid transparent !important;
}

.custom-dropdown-item:hover {
  background: #142347 !important;
  color: #ffffff !important;
  transform: translateX(2px);
}

.custom-dropdown-item.active {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-color: rgba(96, 165, 250, 0.45) !important;
  font-weight: 800 !important;
}

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

.custom-item-odds {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  padding: 2px 7px;
  border-radius: 6px;
}

.custom-dropdown-item.active .custom-item-odds {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Quick Segmented Chip Selector */
.mines-quick-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.mines-chip-btn {
  height: 32px;
  background: #0a1224 !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  border-radius: 8px !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.mines-chip-btn:hover {
  background: #132244 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.mines-chip-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35) !important;
}

/* Rounded Bet Input & Quick Bets (Eliminating blockiness) */
.mines-panel .gp-bet-input {
  background: #0a1224 !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  margin-bottom: 10px !important;
}

.mines-panel .gp-bet-input:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

.mines-panel .gp-quick-bets {
  gap: 8px !important;
  margin-bottom: 16px !important;
}

.mines-panel .gp-quick-bets button {
  height: 34px !important;
  border-radius: 9px !important;
  background: #132244 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
  font-weight: 800 !important;
}

.mines-panel .gp-quick-bets button:hover {
  background: #1d4ed8 !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

/* Blackjack (Midnight Blue Felt) */
.bj-table-outer {
  background: #060a14 !important;
}

.bj-table-felt {
  background: radial-gradient(circle at 50% 25%, #0f2244 0%, #0a1428 65%, #070e1c 100%) !important;
  border-color: rgba(59, 130, 246, 0.28) !important;
  box-shadow: inset 0 0 80px rgba(4, 8, 18, 0.8) !important;
}

.bj-table-rim {
  border-color: rgba(59, 130, 246, 0.25) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}

.bj-felt-ambient-glow {
  background: radial-gradient(ellipse at 50% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 65%) !important;
}

.bj-capsule-card {
  background: #0e172a !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
}

.bj-gameplay-btn.bj-btn-hit {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}
.bj-gameplay-btn.bj-btn-stand {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.bj-gameplay-btn.bj-btn-double {
  background: #0f1c38 !important;
  border: 1px solid #38bdf8 !important;
  color: #38bdf8 !important;
}

/* Hilo Card Stage */
.hilo-choice-higher {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.3) !important;
  color: #ffffff !important;
}
.hilo-choice-lower {
  background: #132244 !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  color: #cbd5e1 !important;
}
.hilo-choice-lower:hover {
  background: #1c3260 !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

/* Coinflip Picks & SOL/USDC Badges */
.coinflip-pick-label {
  font-family: 'Sora', sans-serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: #94a3b8 !important;
  margin-bottom: 8px !important;
}

.coinflip-pick-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 0 !important;
}

.coinflip-pick {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 16px 12px 14px 12px !important;
  background: #0a1224 !important;
  border: 1.5px solid rgba(59, 130, 246, 0.22) !important;
  border-radius: 16px !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
}

.coinflip-pick:hover:not(:disabled) {
  background: #0f1c38 !important;
  border-color: rgba(96, 165, 250, 0.45) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.25) !important;
}

.coinflip-pick.active {
  background: linear-gradient(180deg, #132448 0%, #0d1a36 100%) !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5), 0 10px 25px -4px rgba(37, 99, 235, 0.35) !important;
}

.coinflip-pick-coin-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(10, 18, 36, 0.6) 75%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.coinflip-pick:hover:not(:disabled) .coinflip-pick-coin-wrap {
  border-color: rgba(96, 165, 250, 0.35);
  transform: scale(1.05);
}

.coinflip-pick.active .coinflip-pick-coin-wrap {
  border-color: rgba(96, 165, 250, 0.6);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(19, 36, 72, 0.8) 75%);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}

.coinflip-pick-coin-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.coinflip-pick-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.coinflip-pick-name {
  font-family: 'Sora', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: #cbd5e1 !important;
  transition: color 0.15s ease;
}

.coinflip-pick.active .coinflip-pick-name {
  color: #ffffff !important;
}

.coinflip-pick-token {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  color: #64748b !important;
}

.coinflip-pick.active .coinflip-pick-token {
  color: #93c5fd !important;
}

.coinflip-pick-badge {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  transition: all 0.15s ease;
  margin-top: 2px;
}

.coinflip-pick.active .coinflip-pick-badge {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
  color: #60a5fa !important;
}

.coinflip-stats-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 360px !important;
}

/* 6. Modals & Dialogs (Unified Blue Glass) */
.gp-modal-backdrop, dialog {
  background: rgba(4, 7, 15, 0.8) !important;
  backdrop-filter: blur(14px) !important;
}

.gp-modal-dialog, dialog[open] {
  background: #0e172a !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85) !important;
  color: #f8fafc !important;
}

.gp-modal-title {
  color: #ffffff !important;
  font-family: 'Sora', sans-serif !important;
  font-weight: 800 !important;
}

.gp-modal-close {
  background: #132244 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: #94a3b8 !important;
  border-radius: 9999px !important;
}

.gp-modal-close:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

#infoModal .gp-modal-dialog {
  max-width: 620px !important;
  max-height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 24px !important;
}

#infoModalBody {
  overflow-y: auto !important;
  max-height: 62vh !important;
  padding-right: 8px !important;
  margin-top: 10px !important;
}

#infoModalBody h4 {
  font-family: 'Sora', sans-serif !important;
  color: #60a5fa !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  margin: 16px 0 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

#infoModalBody h4:first-child {
  margin-top: 2px !important;
}

#infoModalBody p {
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #94a3b8 !important;
  margin-bottom: 12px !important;
}

#infoModalBody strong {
  color: #f1f5f9 !important;
}

/* Daily Case Modal Horizontal Carousel */
.case-rewards-container {
  background: #0a1224 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.case-prize-card {
  background: #0e172a !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 12px !important;
}

#spinDailyCaseBtn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
  border-radius: 12px !important;
}

/* Wallet Dialog */
#walletSecurityDialog [style*="background:#0b1010"],
#walletSecurityDialog [style*="background:#16161c"] {
  background: #0a1224 !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
}

#walletCopyAddrBtn {
  background: #132244 !important;
  border: 1px solid #3b82f6 !important;
  color: #93c5fd !important;
  border-radius: 8px !important;
}

#walletCopyAddrBtn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

#walletAddressDisplay {
  color: #38bdf8 !important;
}

#claimSolFaucetBtn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
}

#claimSolFaucetBtn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

#resetWalletBtn {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
  border-radius: 10px !important;
}

#resetWalletBtn:hover {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #ffffff !important;
}

/* Footer */
.gp-statement-footer {
  border-top: 1px solid rgba(59, 130, 246, 0.14) !important;
  color: #64748b !important;
}
.gp-statement-footer p {
  color: #ffffff !important;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #070c18;
}
::-webkit-scrollbar-thumb {
  background: #182a52;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Responsive Nav & Mobile Controls */
@media (max-width: 900px) {
  .site-nav {
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    height: 56px !important;
    padding: 0 12px !important;
  }
  .nav-hide-mobile {
    display: none !important;
  }
  .nav-banner-logo {
    width: 140px !important;
    height: 32px !important;
  }
  .nav-brand-logo {
    height: 32px !important;
    width: auto !important;
    max-width: 56px !important;
  }
  .nav-brand-text {
    font-size: 18px !important;
  }
}

/* LuckyWin Brand Identity */
.nav-brand-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  padding: 2px 0 !important;
  cursor: pointer !important;
}

.nav-brand-logo {
  height: 38px !important;
  width: auto !important;
  max-width: 68px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5)) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease !important;
}

.nav-brand-link:hover .nav-brand-logo {
  transform: scale(1.08) !important;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.85)) !important;
}

.nav-brand-text {
  font-family: 'Sora', sans-serif !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: baseline !important;
}

.nav-brand-win {
  color: #38bdf8 !important;
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* SPA Route Link Enhancements */
a.nav-game-link,
a#leaderboardNavBtn,
a#dailyCaseNavBtn,
a#gpWalletBtn,
a.mobile-tab,
a.gp-footer-link {
  text-decoration: none !important;
  user-select: none;
  -webkit-user-drag: none;
}
a.gp-footer-link {
  color: #94a3b8 !important;
  display: inline-block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  transition: color 0.15s ease;
}
a.gp-footer-link:hover {
  color: #38bdf8 !important;
}

/* Remove scrollbar completely from Rug live players list */
#rugPlayersList,
.crash-players-list {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
#rugPlayersList::-webkit-scrollbar,
.crash-players-list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Custom Airdrop input & DROP button styling */
#airdropCustomInput::-webkit-outer-spin-button,
#airdropCustomInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#airdropCustomInput[type=number] {
  -moz-appearance: textfield;
}
#airdropCustomInput:focus {
  color: #38bdf8 !important;
}
#airdropDropBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.6) !important;
}
#airdropDropBtn:active {
  transform: translateY(0);
}

/* Real-Time Live Solana Price Pill */
.nav-sol-price-pill {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 34px !important;
  background: #101a33 !important;
  border: 1px solid rgba(59, 130, 246, 0.28) !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  cursor: default !important;
  user-select: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 10px rgba(4, 8, 18, 0.5) !important;
}

.nav-sol-price-pill:hover {
  border-color: rgba(96, 165, 250, 0.5) !important;
  background: #142244 !important;
}

.sol-pill-icon {
  width: 17px !important;
  height: 17px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4)) !important;
}

.sol-pill-symbol {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.04em !important;
}

.sol-pill-price {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.01em !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.sol-pill-change {
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.01em !important;
}

.sol-pill-change.is-up {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.sol-pill-change.is-down {
  color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.15) !important;
  border: 1px solid rgba(244, 63, 94, 0.25) !important;
}

.sol-live-pulse {
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 8px #10b981 !important;
  animation: solLivePulseAnim 1.8s infinite ease-in-out !important;
}

@keyframes solLivePulseAnim {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.price-tick-flash-up {
  animation: priceTickFlashGreen 0.7s ease !important;
}

.price-tick-flash-down {
  animation: priceTickFlashRed 0.7s ease !important;
}

@keyframes priceTickFlashGreen {
  0% { color: #4ade80 !important; text-shadow: 0 0 10px rgba(74, 222, 128, 0.8) !important; transform: translateY(-1px); }
  100% { color: #ffffff !important; text-shadow: none !important; transform: translateY(0); }
}

@keyframes priceTickFlashRed {
  0% { color: #f87171 !important; text-shadow: 0 0 10px rgba(248, 113, 113, 0.8) !important; transform: translateY(1px); }
  100% { color: #ffffff !important; text-shadow: none !important; transform: translateY(0); }
}

/* =====================================================================
   FULL-SCREEN GAME LAYOUT & CANDLESTICK STAGE (Image 1)
   ===================================================================== */
.pump-main-shell {
  padding-top: 72px !important;
  padding-bottom: 12px !important;
  padding-right: 16px !important;
  min-height: 100vh !important;
  box-sizing: border-box !important;
}

@media (min-width: 1025px) {
  .pump-main-shell {
    padding-left: 316px !important;
    transition: padding-left 0.48s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  body.chat-collapsed .pump-main-shell {
    padding-left: 16px !important;
  }
}

@media (max-width: 1024px) {
  .pump-main-shell {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 68px !important;
  }
}

/* Stage View Height Expansion */
#stage-pump,
.pump-chart-wrapper {
  width: 100% !important;
  height: 100% !important;
}

.pump-chart-stage {
  height: calc(100vh - 84px) !important;
  min-height: 540px !important;
  width: 100% !important;
  position: relative !important;
  border-radius: 16px !important;
  background: #090f1d !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
  overflow: hidden !important;
}

/* Floating HUD Nested Inside Pump Chart (Matching Image 1) */
.pump-chart-stage .pump-floating-hud {
  position: absolute !important;
  bottom: 16px !important;
  left: 16px !important;
  right: 16px !important;
  z-index: 35 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: rgba(13, 20, 36, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(59, 130, 246, 0.24) !important;
  border-radius: 16px !important;
  padding: 10px 18px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85) !important;
}

.pump-direction-btns button {
  padding: 11px 22px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  color: #94a3b8 !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
}

.pump-direction-btns button.is-active {
  background: #101c38 !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
}

#pumpUpBtn.is-active {
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, 0.4) !important;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.25) !important;
}

#dumpDownBtn.is-active {
  color: #f87171 !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.25) !important;
}

.pump-bet-box {
  background: #090f1d !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
  border-radius: 12px !important;
  padding: 6px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.pump-bet-label {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
}

#pumpTradeActionBtn {
  height: 48px !important;
  padding: 0 28px !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

#pumpTradeActionBtn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.1) !important;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5) !important;
}

#pumpTradeActionBtn:active {
  transform: translateY(0) !important;
}

/* =====================================================================
   PROFILE BUTTON & DROPDOWN MENU (Image 2)
   ===================================================================== */
.gp-profile-dropdown {
  animation: dropdownFadeSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

.gp-profile-menu-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
  text-align: left !important;
  color: #ffffff !important;
}

.gp-profile-menu-row:hover {
  background: rgba(59, 130, 246, 0.14) !important;
}

.gp-profile-menu-row:active {
  transform: scale(0.98) !important;
}

/* Modal Tab System */
.wallet-tab-btn {
  transition: all 0.15s ease !important;
}

.wallet-tab-btn.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4) !important;
}

.wallet-tab-btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

.sim-deposit-btn {
  transition: all 0.15s ease !important;
}

.sim-deposit-btn:hover {
  transform: translateY(-1px) !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

/* =====================================================================
   GLOBAL PUBLIC CHAT SIDEBAR BASE
   ===================================================================== */
.global-public-chat-sidebar {
  width: 285px !important;
  position: fixed !important;
  left: 16px !important;
  top: 76px !important;
  bottom: 16px !important;
  background: #0b1325 !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: 0 16px 40px rgba(4, 8, 18, 0.7) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  z-index: 45 !important;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.44s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s ease !important;
  will-change: transform, opacity;
}

/* =====================================================================
   MOBILE & TABLET / IPAD COMPREHENSIVE RESPONSIVE SUITE
   ===================================================================== */

/* Touch & Smooth Scrolling Defaults */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden !important;
  width: 100% !important;
  min-width: 320px !important;
}

button, a, select, input {
  touch-action: manipulation;
}

/* Chat Backdrop for Mobile & Tablet Drawers */
.gp-chat-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(4, 8, 18, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 9998 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gp-chat-backdrop.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* =====================================================================
   TABLET & IPAD (769px - 1024px)
   ===================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-nav {
    height: 64px !important;
    padding: 0 16px !important;
  }

  .pump-main-shell {
    padding-top: 76px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 30px !important;
    transition: padding 0.3s ease !important;
  }

  /* Off-canvas chat drawer on iPad portrait */
  #gpChatSidebar {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 320px !important;
    max-width: 80vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 20px 20px 0 !important;
    border-left: none !important;
    z-index: 10001 !important;
    box-shadow: 12px 0 45px rgba(0, 0, 0, 0.85) !important;
    padding-top: max(16px, env(safe-area-inset-top)) !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
  }

  #chatOpenBtn {
    top: 78px !important;
    left: 16px !important;
    z-index: 999 !important;
  }

  /* Tablet Game Arena layouts: side-by-side or balanced grid */
  .crash-arena-grid,
  .chicken-arena-grid {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    gap: 16px !important;
  }

  .pump-chart-stage {
    min-height: 520px !important;
    height: calc(100vh - 120px) !important;
  }

  .pump-floating-hud {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 12px 18px !important;
  }

  .pump-bet-box {
    flex: 1 1 auto !important;
    min-width: 260px !important;
    justify-content: center !important;
  }

  .gp-modal-dialog {
    max-width: 580px !important;
    width: 90vw !important;
  }
}

/* =====================================================================
   MOBILE (<= 768px: iPhone, Galaxy, Pixel)
   ===================================================================== */
@media (max-width: 768px) {
  /* Prevent iOS input auto-zoom by ensuring 16px base font size */
  input[type="text"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Compact Safe Navigation */
  .site-nav {
    height: 52px !important;
    padding: 0 8px !important;
    padding-left: max(8px, env(safe-area-inset-left)) !important;
    padding-right: max(8px, env(safe-area-inset-right)) !important;
    box-sizing: border-box !important;
  }

  .site-nav__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }

  .nav-zone-left {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .nav-brand-logo {
    height: 24px !important;
    width: auto !important;
    max-width: 32px !important;
  }

  .nav-brand-text {
    font-size: 13.5px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
  }

  /* CRITICAL: Explicitly hide live SOL price pill and desktop buttons on mobile */
  #liveSolPricePill,
  .nav-sol-price-pill,
  .nav-hide-mobile {
    display: none !important;
  }

  /* Ultra-Compact Wallet Pill */
  .nav-zone-center {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 2px !important;
  }

  .nav-zone-center #gpWalletBtn {
    height: 28px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    gap: 4px !important;
    max-width: 95px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  .nav-zone-center #gpWalletBtn img {
    width: 13px !important;
    height: 13px !important;
  }

  #walletBalanceDisplay {
    font-size: 11px !important;
    font-weight: 800 !important;
    max-width: 65px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Navigation Right Items: Compact Sleek 28px Icon Buttons */
  .nav-zone-right {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
  }

  /* Daily Case: Compact 28px Icon Only (no text/LOCK badge overflow) */
  #dailyCaseNavBtn {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    min-width: 28px !important;
    max-width: 28px !important;
  }

  #dailyCaseNavBtn img {
    width: 17px !important;
    height: 17px !important;
    object-fit: contain !important;
  }

  #dailyCaseNavBtn span {
    display: none !important;
  }

  /* Sound Mute, Chat, Notifications: Uniform 28px buttons */
  #gpMuteBtn,
  #notificationsBtn,
  #navChatBtn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 8px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  #gpMuteBtn svg,
  #notificationsBtn svg,
  #navChatBtn svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Profile Avatar: Compact 28px */
  .nav-profile-container #gpProfileBtn > div {
    width: 28px !important;
    height: 28px !important;
  }

  .nav-profile-container #gpProfileBtn svg {
    width: 15px !important;
    height: 15px !important;
  }

  .nav-profile-container .gp-profile-badge {
    width: 11px !important;
    height: 11px !important;
    font-size: 8px !important;
    line-height: 11px !important;
  }

  /* Main Shell with Bottom Nav clearance */
  .pump-main-shell {
    padding-top: 60px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 80px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  /* Full-Height Slide-Out Mobile Chat Drawer */
  #gpChatSidebar {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(340px, 86vw) !important;
    max-width: 90vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 20px 20px 0 !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
    z-index: 10001 !important;
    box-shadow: 16px 0 50px rgba(0, 0, 0, 0.9) !important;
    padding-top: max(12px, env(safe-area-inset-top, 0px)) !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
  }

  /* CRITICAL: Hide floating chat button on mobile so it never covers game titles or stages */
  #chatOpenBtn {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 52px !important;
    background: rgba(10, 16, 32, 0.96) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
    border-top: 1px solid rgba(59, 130, 246, 0.28) !important;
    box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.85) !important;
    z-index: 9999 !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: content-box !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-tabs-grid {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 4px !important;
    gap: 2px !important;
  }

  .mobile-tabs-grid::-webkit-scrollbar {
    display: none !important;
  }

  .mobile-tab {
    flex: 1 0 auto !important;
    min-width: 40px !important;
    max-width: 48px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    text-decoration: none !important;
    color: #94a3b8 !important;
    font-size: 8.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    height: 100% !important;
    border-radius: 8px !important;
    transition: all 0.16s ease !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 3px 1px !important;
  }

  .mobile-tab img,
  .mobile-tab svg {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .mobile-tab:active {
    transform: scale(0.92) !important;
  }

  .mobile-tab.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.1) !important;
  }

  .mobile-tab.active img,
  .mobile-tab.active svg {
    transform: translateY(-2px) scale(1.1) !important;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8)) !important;
  }

  .mobile-tab-chat {
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-left: 4px !important;
  }

  /* Pump & Dump Candlestick Stage Responsive */
  .pump-chart-stage {
    height: calc(100dvh - 145px) !important;
    min-height: 440px !important;
    border-radius: 14px !important;
  }

  .pump-floating-hud {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    right: 8px !important;
    flex-direction: column !important;
    gap: 7px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
  }

  .pump-direction-btns {
    display: flex !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .pump-direction-btns button {
    flex: 1 !important;
    padding: 8px 4px !important;
    font-size: 12px !important;
    justify-content: center !important;
    border-radius: 8px !important;
  }

  .pump-direction-btns button svg {
    width: 16px !important;
    height: 16px !important;
  }

  .pump-bet-box {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 5px 8px !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
  }

  .pump-action-box {
    width: 100% !important;
  }

  .pump-action-box button {
    width: 100% !important;
    height: 44px !important;
    font-size: 13.5px !important;
    justify-content: center !important;
    border-radius: 10px !important;
  }

  /* Crash Multipliers Bar scrollable on mobile */
  .crash-multipliers-bar {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 6px 10px !important;
  }

  .crash-multipliers-bar::-webkit-scrollbar {
    display: none !important;
  }

  /* =========================================================
     GAME ARENAS: VISUAL STAGE FIRST, BET CONTROLS SECOND
     ========================================================= */

  /* 1. Crash / Rug */
  .crash-arena-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .crash-stage-col {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .crash-canvas-stage {
    height: 260px !important;
    min-height: 240px !important;
    width: 100% !important;
    border-radius: 14px !important;
    position: relative !important;
  }

  .crash-controls-col {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* 2. Chicken Road */
  .chicken-arena-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .chicken-stage-col {
    order: 1 !important;
    width: 100% !important;
  }

  .chicken-highway-viewport {
    height: 280px !important;
    min-height: 260px !important;
    width: 100% !important;
    border-radius: 14px !important;
  }

  .chicken-controls-col {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 3. Mines */
  .mines-shell {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-items: center !important;
    width: 100% !important;
  }

  .mines-board-panel {
    order: 1 !important;
    width: 100% !important;
    max-width: 420px !important;
    box-sizing: border-box !important;
  }

  .mines-5x5-grid {
    gap: 6px !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
  }

  .mines-panel {
    order: 2 !important;
    width: 100% !important;
    max-width: 420px !important;
    box-sizing: border-box !important;
  }

  /* 4. Higher or Lower (HiLo) */
  .hilo-shell {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hilo-display {
    order: 1 !important;
    width: 100% !important;
  }

  .hilo-controls {
    order: 2 !important;
    width: 100% !important;
  }

  /* 5. Coinflip */
  .coinflip-shell {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .coinflip-stage {
    order: 1 !important;
    width: 100% !important;
    min-height: 220px !important;
  }

  .coinflip-controls {
    order: 2 !important;
    width: 100% !important;
  }

  /* 6. Blackjack */
  .bj-arena-stage {
    width: 100% !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .bj-table-outer {
    width: 100% !important;
    max-width: 100% !important;
  }

  .bj-table-felt {
    height: 380px !important;
    border-radius: 14px 14px 220px 220px !important;
  }

  /* Modals Full Responsive on Mobile */
  .gp-modal-dialog {
    width: calc(100% - 24px) !important;
    max-width: 440px !important;
    margin: 16px auto !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
    padding: 18px !important;
  }

  .gp-profile-dropdown {
    width: calc(100vw - 24px) !important;
    right: -6px !important;
    max-width: 330px !important;
  }

  .gp-notif-panel {
    width: calc(100vw - 24px) !important;
    right: -40px !important;
    max-width: 320px !important;
  }
}

/* Small screen phones (iPhone SE, Galaxy A, <= 380px) */
@media (max-width: 380px) {
  .nav-brand-text {
    display: none !important;
  }
  .site-nav {
    padding: 0 6px !important;
  }
  .mobile-tab span {
    font-size: 8.5px !important;
  }
}

/* =====================================================================
   HUMAN-CRAFTED, MODERN SOLANA WALLET & CASHIER MODAL
   ===================================================================== */
#walletSecurityDialog.modern-wallet-dialog {
  margin: auto !important;
  width: min(480px, calc(100vw - 24px)) !important;
  max-height: 88vh !important;
  max-height: 88dvh !important;
  overflow-y: auto !important;
  padding: 18px !important;
  border: 1px solid rgba(59, 130, 246, 0.28) !important;
  border-radius: 20px !important;
  background: #090e1c !important;
  color: #f8fafc !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(37, 99, 235, 0.2) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

#walletSecurityDialog::backdrop {
  background: rgba(3, 7, 18, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.wallet-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
}

.wallet-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.wallet-coin-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: #111a33 !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.wallet-coin-icon img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
}

.wallet-header-left h2 {
  font-size: 17px !important;
  font-weight: 900 !important;
  margin: 0 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
}

.wallet-network-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  margin-top: 1px !important;
}

.network-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 8px #10b981 !important;
}

.wallet-close-btn {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background: #111c38 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.wallet-close-btn:hover {
  background: #1d2c54 !important;
  color: #ffffff !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
}

/* Balance Card */
.wallet-balance-card {
  background: linear-gradient(135deg, #0d152b 0%, #0a1122 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.24) !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.balance-title {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.balance-numbers {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-top: 2px !important;
}

.balance-amount {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
}

.balance-usd {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
}

.phantom-btn {
  background: #151d38 !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  color: #c4b5fd !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.phantom-btn:hover {
  background: #1f2a4f !important;
  border-color: #a78bfa !important;
  color: #ffffff !important;
}

/* 2-Tab Segmented Switcher */
.wallet-segmented-tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
  background: #060a14 !important;
  padding: 4px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  margin-bottom: 14px !important;
}

.wallet-segmented-tabs .wallet-tab-btn {
  padding: 8px 0 !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: center !important;
}

.wallet-segmented-tabs .wallet-tab-btn.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}

.wallet-segmented-tabs .wallet-tab-btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* Deposit Section */
.wallet-deposit-card {
  background: #0c1324 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 14px !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.deposit-qr-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
}

.deposit-qr-code {
  width: 130px !important;
  height: 130px !important;
  border-radius: 10px !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  background: #0c1324 !important;
  padding: 4px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

.deposit-address-wrap {
  width: 100% !important;
  text-align: left !important;
}

.deposit-label {
  display: block !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  margin-bottom: 5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

.deposit-address-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #060b16 !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 9px !important;
  padding: 5px 8px !important;
  gap: 8px !important;
}

.deposit-addr-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 11.5px !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  user-select: all !important;
}

.copy-addr-btn {
  background: #17274f !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease !important;
}

.copy-addr-btn:hover {
  background: #2563eb !important;
  border-color: #60a5fa !important;
}

.deposit-instruction {
  margin: 6px 0 0 0 !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  line-height: 1.4 !important;
}

/* Fast 1-Click Phantom Box */
.wallet-phantom-deposit {
  background: #0c1324 !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
}

.phantom-dep-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 8px !important;
}

.instant-chip {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  color: #a78bfa !important;
  background: rgba(139, 92, 246, 0.15) !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
}

.quick-chips {
  display: flex !important;
  gap: 5px !important;
  margin-bottom: 8px !important;
}

.chip-btn {
  flex: 1 !important;
  padding: 5px 0 !important;
  background: #111a33 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: #cbd5e1 !important;
  border-radius: 7px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.14s ease !important;
}

.chip-btn:hover {
  background: #1a284f !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

.phantom-input-row {
  display: flex !important;
  gap: 8px !important;
}

.input-with-icon {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #060b16 !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 8px !important;
  padding: 0 8px !important;
}

.input-with-icon img {
  width: 15px !important;
  height: 15px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

.input-with-icon input {
  width: 100% !important;
  height: 36px !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  outline: none !important;
}

.btn-deposit-action {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.4) !important;
  transition: all 0.15s ease !important;
}

.btn-deposit-action:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.1) !important;
}

/* Withdraw Section */
.wallet-withdraw-card {
  background: #0c1324 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 14px !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.field-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  text-align: left !important;
}

.field-group label {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

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

.usd-hint {
  font-size: 10.5px !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.address-input-wrap {
  display: flex !important;
  align-items: center !important;
  background: #060b16 !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 8px !important;
  padding: 0 6px !important;
}

.address-input-wrap input {
  flex: 1 !important;
  height: 38px !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  outline: none !important;
}

.paste-btn {
  background: #17274f !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #93c5fd !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.amount-input-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.amount-pills {
  display: flex !important;
  gap: 4px !important;
}

.amount-pills button {
  background: #111a33 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
  border-radius: 7px !important;
  padding: 7px 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.amount-pills button:hover {
  background: #1a284f !important;
  color: #ffffff !important;
}

.fee-row {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 11px !important;
  color: #64748b !important;
  font-weight: 700 !important;
  padding: 2px 2px !important;
}

.btn-withdraw-action {
  width: 100% !important;
  height: 42px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4) !important;
  transition: all 0.15s ease !important;
}

.btn-withdraw-action:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.1) !important;
}

.withdraw-status {
  font-size: 11.5px !important;
  text-align: center !important;
  min-height: 16px !important;
}

/* Security & Key Drawer (Clean & Subtle) */
.wallet-footer-tools {
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  text-align: center !important;
}

.security-toggle-link {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 8px !important;
  border-radius: 7px !important;
  transition: color 0.15s ease !important;
}

.security-toggle-link:hover {
  color: #94a3b8 !important;
}

.security-drawer {
  margin-top: 8px !important;
  background: #060b17 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 10px !important;
  padding: 10px !important;
  text-align: left !important;
}

.sub-label {
  display: block !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  margin-bottom: 4px !important;
}

.full-key-row {
  display: flex !important;
  gap: 5px !important;
  margin-bottom: 8px !important;
}

.full-key-row input {
  flex: 1 !important;
  background: #090f1e !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  border-radius: 6px !important;
  padding: 5px 7px !important;
  font-size: 10.5px !important;
  color: #38bdf8 !important;
  font-family: monospace !important;
}

.mini-btn {
  background: #111a33 !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  color: #93c5fd !important;
  border-radius: 6px !important;
  padding: 0 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.key-actions {
  display: flex !important;
  gap: 6px !important;
}

.danger-btn {
  flex: 1 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
  border-radius: 7px !important;
  padding: 6px 0 !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.outline-btn {
  flex: 1 !important;
  background: #111a33 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: #94a3b8 !important;
  border-radius: 7px !important;
  padding: 6px 0 !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.exported-box,
.import-box {
  margin-top: 8px !important;
  padding: 8px !important;
  background: #030712 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  border-radius: 7px !important;
}

.warning-text {
  font-size: 9.5px !important;
  color: #f87171 !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
}

.exported-box textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #000000 !important;
  border: 1px solid #1e293b !important;
  border-radius: 6px !important;
  color: #4ade80 !important;
  font-family: monospace !important;
  font-size: 10.5px !important;
  padding: 5px !important;
  resize: none !important;
}

.import-box input {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #090f1e !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 6px !important;
  padding: 6px 8px !important;
  font-size: 11px !important;
  color: #f1f5f9 !important;
  margin-bottom: 6px !important;
}

.import-box .primary-btn {
  width: 100% !important;
  background: #2563eb !important;
  border: none !important;
  border-radius: 6px !important;
  color: #fff !important;
  padding: 6px 0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: filter 0.15s ease !important;
}

.import-box .primary-btn:hover {
  filter: brightness(1.1) !important;
}

.security-toggle-link .chevron-icon {
  transition: transform 0.2s ease !important;
}

.security-toggle-link.is-open .chevron-icon {
  transform: rotate(180deg) !important;
}

/* HiLo Numbers Only Styling */
.hilo-card-face.card-number {
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%) !important;
  color: #0f172a !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 35px rgba(56, 189, 248, 0.2) !important;
}

.hilo-card-face #hiloCardSuitDisplay {
  font-size: 88px !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
  color: #0f172a !important;
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif !important;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}

.hilo-card-face .hilo-corner {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif !important;
}

.hilo-history-chip.number-chip {
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  background: #0b1325 !important;
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif !important;
}

/* =====================================================================
   MODERN AUTH MODAL: LOGIN & SIGN UP (EMAIL & GOOGLE OPTIONAL)
   ===================================================================== */
#authModal.modern-auth-dialog {
  margin: auto !important;
  width: min(440px, calc(100vw - 24px)) !important;
  max-height: 90vh !important;
  max-height: 90dvh !important;
  overflow-y: auto !important;
  padding: 0 !important;
  border: 1px solid rgba(59, 130, 246, 0.28) !important;
  border-radius: 20px !important;
  background: #090e1c !important;
  color: #f8fafc !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(37, 99, 235, 0.2) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

#authModal::backdrop {
  background: rgba(3, 7, 18, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.auth-card {
  position: relative !important;
  padding: 24px !important;
}

.auth-close-btn {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: #111c38 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.auth-close-btn:hover {
  background: #1d2c54 !important;
  color: #ffffff !important;
}

.auth-header {
  text-align: center !important;
  margin-bottom: 18px !important;
}

.auth-brand-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 8px !important;
}

.auth-brand-logo {
  height: 38px !important;
  width: auto !important;
  object-fit: contain !important;
}

.auth-title {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: -0.02em !important;
}

.auth-subtitle {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin: 4px 0 0 0 !important;
  font-weight: 600 !important;
}

.auth-segmented-tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
  background: #060a14 !important;
  padding: 4px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  margin-bottom: 16px !important;
}

.auth-segmented-tabs .auth-tab-btn {
  padding: 8px 0 !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: center !important;
}

.auth-segmented-tabs .auth-tab-btn.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}

.auth-social-wrap {
  margin-bottom: 14px !important;
}

.auth-google-btn {
  width: 100% !important;
  height: 42px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.auth-google-btn:hover {
  background: #f1f5f9 !important;
  transform: translateY(-1px) !important;
}

.auth-divider {
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  margin: 14px 0 !important;
}

.auth-divider::before,
.auth-divider::after {
  content: '' !important;
  flex: 1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.auth-divider span {
  padding: 0 10px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  letter-spacing: 0.06em !important;
}

.auth-field-group {
  margin-bottom: 12px !important;
  text-align: left !important;
}

.auth-field-group label {
  display: block !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  margin-bottom: 5px !important;
  letter-spacing: 0.03em !important;
}

.auth-input-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #060b16 !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-radius: 9px !important;
  padding: 0 10px !important;
  transition: border-color 0.15s ease !important;
}

.auth-input-wrap:focus-within {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2) !important;
}

.auth-input-icon {
  color: #64748b !important;
  flex-shrink: 0 !important;
}

.auth-input-wrap input {
  width: 100% !important;
  height: 40px !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  outline: none !important;
}

.auth-pwd-toggle {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
}

.auth-status-msg {
  font-size: 11.5px !important;
  text-align: center !important;
  margin-bottom: 10px !important;
  padding: 6px 10px !important;
  border-radius: 7px !important;
}

.auth-status-msg.error {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
}

.auth-status-msg.success {
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  color: #4ade80 !important;
}

.auth-submit-btn {
  width: 100% !important;
  height: 44px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4) !important;
  transition: all 0.15s ease !important;
  margin-top: 4px !important;
}

.auth-submit-btn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.1) !important;
}

.auth-security-footer {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-align: center !important;
}

.auth-lock-shield {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  background: rgba(15, 23, 42, 0.6) !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
}

.auth-card.shake {
  animation: authShake 0.45s ease-in-out !important;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* Navbar Auth Zone */
.nav-auth-zone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-auth-zone.is-hidden,
.nav-auth-zone[hidden],
.nav-auth-zone[style*="display: none"] {
  display: none !important;
}

.btn-nav-login {
  background: #111a33 !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #cbd5e1 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 0 10px !important;
  height: 28px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-nav-login:hover {
  background: #18274f !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
}

.btn-nav-signup {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 0 12px !important;
  height: 28px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4) !important;
}

.btn-nav-signup:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.1) !important;
}
