/* ════════════════════════════════════════════════════════════════
   SPIN and WIN — Premium Luxury Dark Casino Design System
   Matches exact reference image aesthetics with 3D renders & gold accents
   ════════════════════════════════════════════════════════════════ */

/* ─── CYBERSECURITY & NATIVE UI HARDENING (ANTI-SELECT & ANTI-DRAG) ──── */
*, *::before, *::after {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-touch-callout: none !important;
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

:root {
  --bg-dark:         #050a18;
  --bg-gradient:     radial-gradient(ellipse 100% 80% at 50% 15%, #182a57 0%, #0b1530 50%, #030612 100%);
  --panel-bg:        rgba(10, 16, 32, 0.88);
  --card-bg:         rgba(15, 23, 44, 0.8);
  --card-hover-bg:   rgba(22, 34, 64, 0.95);
  --card-border:     rgba(255, 215, 0, 0.2);
  --card-border-glow:rgba(255, 215, 0, 0.5);

  --gold-primary:    #ffd700;
  --gold-secondary:  #d4af37;
  --gold-dark:       #8a6d1c;
  --cyan-accent:     #00f0ff;
  --green-glow:      #00e676;
  --red-accent:      #ff1744;

  --text-primary:    #f5f7fc;
  --text-muted:      rgba(245, 247, 252, 0.65);
  --text-dim:        rgba(245, 247, 252, 0.4);

  --gold-gradient:   linear-gradient(135deg, #ffe066 0%, #d4af37 50%, #8a6d1c 100%);
  --gold-btn-grad:   linear-gradient(180deg, #ffe070 0%, #d4a017 60%, #996e00 100%);
  --cyan-gradient:   linear-gradient(135deg, #00f0ff 0%, #00897b 100%);

  --neon-glow-gold:  0 0 18px rgba(255, 215, 0, 0.6), 0 0 36px rgba(255, 215, 0, 0.25);
  --neon-glow-cyan:  0 0 18px rgba(0, 240, 255, 0.6), 0 0 36px rgba(0, 240, 255, 0.25);
  
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;

  --font-main: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

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

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

body {
  font-family: var(--font-main);
  background: #030612;
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.game-header {
  display: grid;
  grid-template-columns: 80px 1fr 240px;
  align-items: center;
  padding: 12px 28px;
  background: rgba(4, 7, 16, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.square-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.square-icon-btn:hover { background: rgba(0, 240, 255, 0.1); border-color: var(--cyan-accent); }

.logo-center { text-align: center; }
.logo-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.7));
}
.logo-title .word-spin, .logo-title .word-win {
  background: linear-gradient(135deg, #ffffff 0%, #ffe066 30%, #ffd700 65%, #d4af37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 3s linear infinite;
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.5);
}
.logo-title .amp-symbol {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--cyan-accent);
  background: linear-gradient(180deg, #00f0ff 0%, #00897b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px var(--cyan-accent));
  transform: scale(1.15) rotate(-3deg);
  display: inline-block;
  margin: 0 2px;
  animation: ampPulse 2s ease-in-out infinite alternate;
}
@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ampPulse {
  0% { transform: scale(1.05) rotate(-2deg); filter: drop-shadow(0 0 8px var(--cyan-accent)); }
  100% { transform: scale(1.25) rotate(3deg); filter: drop-shadow(0 0 18px var(--cyan-accent)); }
}
.logo-tagline {
  display: block;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  margin-top: 2px;
}

/* HEADER AUTHENTICATION & PROFILE STYLES */
.header-right-auth { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.auth-btn-row { display: flex; gap: 10px; }
.hdr-auth-btn {
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700;
  padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition); letter-spacing: 1px;
}
.login-hdr-btn {
  background: rgba(0, 240, 255, 0.12); border: 1.5px solid var(--cyan-accent);
  color: var(--cyan-accent); box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}
.login-hdr-btn:hover { background: var(--cyan-accent); color: #000; transform: scale(1.04); }
.reg-hdr-btn {
  background: var(--gold-btn-grad); border: 1.5px solid #fff;
  color: #000; box-shadow: var(--neon-glow-gold);
}
.reg-hdr-btn:hover { transform: scale(1.04); box-shadow: 0 0 24px rgba(255, 215, 0, 0.8); }

.user-profile-row { display: flex; align-items: center; gap: 12px; }
.user-profile-info { display: flex; flex-direction: column; text-align: right; }
.user-display-name { font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700; color: #fff; }
.user-vip-badge {
  font-family: 'Orbitron', sans-serif; font-size: 9px; font-weight: 900;
  color: var(--gold-primary); background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold-primary); border-radius: 10px; padding: 1px 6px;
  display: inline-block; margin-top: 2px;
}
.logout-hdr-btn {
  background: rgba(255, 23, 68, 0.15); border: 1px solid var(--red-accent);
  color: var(--red-accent); border-radius: var(--radius-sm);
  width: 36px; height: 36px; font-size: 16px; cursor: pointer;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.logout-hdr-btn:hover { background: var(--red-accent); color: #fff; transform: scale(1.05); }

/* ELEVATED TOP 200 COINS BALANCE BADGE */
.wallet-container {
  display: flex;
  align-items: center;
}

.coins-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.22) 0%, rgba(20, 16, 5, 0.95) 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 12px;
  padding: 6px 14px;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(-2px);
  backdrop-filter: blur(8px);
}

.coins-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 26px rgba(255, 215, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  border-color: #FFFFFF;
}

.coins-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(45deg);
  animation: shineCoinShimmer 3.5s infinite linear;
}

@keyframes shineCoinShimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  25%, 100% { transform: translateX(100%) rotate(45deg); }
}

.coins-top {
  display: flex;
  align-items: center;
  gap: 5px;
}

.coins-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 1.2px;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.coins-gained-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--green-glow);
  text-shadow: 0 0 8px var(--green-glow);
}

.coins-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 0 12px var(--gold-primary), 0 2px 4px rgba(0,0,0,0.8);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.coins-value::before {
  content: '🪙';
  font-size: 16px;
  filter: drop-shadow(0 0 5px #FFD700);
  animation: coinIconPulse 2.5s infinite ease-in-out;
}

@keyframes coinIconPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(15deg); }
}

.top-coins-bonus-pill {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.28) 0%, rgba(255, 140, 0, 0.28) 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
  animation: floatBonusPill 3s infinite ease-in-out;
}

.top-coins-bonus-pill:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.7);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.45) 0%, rgba(255, 140, 0, 0.45) 100%);
}

@keyframes floatBonusPill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.bonus-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.8px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
}

/* AUTH MODAL */
.auth-modal-card { max-width: 400px; }
.auth-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 10px; }
.auth-tab {
  background: none; border: none; font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer;
  padding: 6px 16px; transition: var(--transition); border-bottom: 2px solid transparent;
}
.auth-tab.active { color: var(--gold-primary); border-bottom-color: var(--gold-primary); text-shadow: var(--neon-glow-gold); }
.auth-error-text { margin-top: 12px; font-size: 12px; color: var(--red-accent); font-family: 'Rajdhani', sans-serif; font-weight: 700; }

/* VIP SIDE TILE ONLY */
.vip-side-tile { background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(14, 23, 46, 0.95) 100%); border-color: var(--gold-primary); }
.vip-badge { color: var(--gold-primary); background: rgba(255, 215, 0, 0.18); border-color: var(--gold-primary); text-shadow: var(--neon-glow-gold); }
.vip-thumb { background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(6, 10, 22, 0.95) 100%); border-color: var(--gold-primary); }
.mini-crown-icon { font-size: 24px; filter: drop-shadow(0 0 8px var(--gold-primary)); }

.wallet-container { text-align: right; }
.coins-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  display: inline-block;
  min-width: 180px;
}
.coins-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.coins-label { font-size: 9px; letter-spacing: 1.5px; color: var(--text-muted); font-family: 'Rajdhani', sans-serif; font-weight: 700; }
.coins-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-primary);
  text-shadow: var(--neon-glow-gold);
}

.coins-gained-badge {
  font-size: 10px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 2px 6px;
  border-radius: 10px;
  text-shadow: 0 0 6px var(--gold-primary);
}
.coins-gained-badge.coins-pop { animation: coinsPop 1.8s ease forwards; }
@keyframes coinsPop {
  0% { opacity: 0; transform: translateY(4px) scale(0.8); }
  20% { opacity: 1; transform: translateY(0) scale(1.1); box-shadow: var(--neon-glow-gold); }
  80% { opacity: 1; transform: translateY(-2px) scale(1); }
  100% { opacity: 0; transform: translateY(-8px) scale(0.9); }
}

.bonus-pills { display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.badge-pill { font-size: 9px; padding: 2px 6px; border-radius: 12px; font-weight: 700; font-family: 'Rajdhani', sans-serif; }
.free-spin-pill { background: rgba(0, 240, 255, 0.15); border: 1px solid var(--cyan-accent); color: var(--cyan-accent); }
.double-win-pill { background: rgba(255, 100, 0, 0.15); border: 1px solid #ff6400; color: #ff6400; }
.key-pill { background: rgba(255, 215, 0, 0.15); border: 1px solid var(--gold-primary); color: var(--gold-primary); }

/* ─── HUB MAIN GRID ───────────────────────────────────────────── */
.hub-main-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 70px);
}

/* ─── LEFT SIDEBAR (LIVE FEED & CHAT) ───────────────────────── */
.left-sidebar {
  background: rgba(6, 10, 22, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.sidebar-block { padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.chat-block { flex: 1; display: flex; flex-direction: column; border-bottom: none; overflow: hidden; position: relative; }

/* LOCKED CHAT OVERLAY FOR UNAUTHENTICATED GUESTS */
.chat-lock-overlay {
    position: absolute;
    top: 34px;
    left: 0; right: 0; bottom: 0;
    background: rgba(6, 10, 22, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.15);
}

.lock-glow-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lock-icon-animated {
    font-size: 32px;
    animation: lockPulse 2s infinite ease-in-out;
    filter: drop-shadow(0 0 12px #ffd700);
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px #ffd700); }
    50% { transform: scale(1.12); filter: drop-shadow(0 0 20px #00f0ff); }
}

.lock-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.lock-desc {
    font-size: 11px;
    color: #b0c4de;
    line-height: 1.35;
    margin: 0;
}

.lock-btn-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
}

.lock-action-btn {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.2s ease;
}

.lock-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.lock-sub-btn {
    background: rgba(0, 240, 255, 0.15);
    color: #00f0ff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lock-sub-btn:hover {
    background: rgba(0, 240, 255, 0.3);
}

.lock-offer-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #00e676;
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 2px;
}

.chat-content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.block-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.live-dot {
  width: 7px; height: 7px;
  background: var(--green-glow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-glow);
  animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{ opacity:1; } 50%{ opacity:0.3; } }

/* DYNAMIC SINGLE LIVE WINNER SHOWCASE */
.single-winner-showcase {
  background: radial-gradient(circle at 50% 20%, rgba(255, 215, 0, 0.15) 0%, rgba(10, 16, 32, 0.95) 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  box-shadow: var(--neon-glow-gold);
  animation: showcasePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.single-winner-showcase.pop-anim {
  animation: showcasePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes showcasePop {
  0% { transform: scale(0.92); opacity: 0; }
  50% { transform: scale(1.04); box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
  100% { transform: scale(1); opacity: 1; }
}
.showcase-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.showcase-trophy { font-size: 24px; filter: drop-shadow(0 0 8px rgba(255,215,0,0.8)); }
.showcase-live-pill {
  font-family: 'Orbitron', sans-serif; font-size: 9px; font-weight: 900;
  color: #000; background: var(--gold-primary); padding: 2px 8px; border-radius: 10px;
  letter-spacing: 1px; box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}
.showcase-prize {
  font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 900;
  color: var(--gold-primary); text-shadow: var(--neon-glow-gold); margin: 4px 0;
}
.showcase-user {
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--text-primary); letter-spacing: 1px;
}
.showcase-meta {
  font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700;
  color: var(--cyan-accent); letter-spacing: 1.5px; margin-top: 4px;
}

.chat-messages {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 4px 0;
}

/* TOP ACTIVE LIVE POP-UP WINNER BANNER */
.top-live-pop-banner {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(0, 240, 255, 0.2) 50%, rgba(255, 215, 0, 0.15) 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 8px 18px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
  margin-bottom: 4px;
  animation: topBannerSlide 0.5s ease-out;
}
@keyframes topBannerSlide {
  0% { transform: translateY(-12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.live-pulse-badge {
  font-family: 'Orbitron', sans-serif; font-size: 9px; font-weight: 900;
  color: #000; background: var(--cyan-accent); padding: 3px 8px; border-radius: 12px;
  box-shadow: 0 0 10px var(--cyan-accent); letter-spacing: 1px;
}
.top-banner-icon { font-size: 20px; filter: drop-shadow(0 0 6px var(--gold-primary)); }
.top-banner-text {
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 800;
  color: var(--text-primary); letter-spacing: 1px;
}
.chat-msg {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 11px;
  border-left: 2px solid var(--cyan-accent);
  animation: chatSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
  will-change: transform, opacity;
}
.chat-msg.removing {
  opacity: 0;
  transform: translateY(-15px) scale(0.95);
}
.chat-msg.win-msg {
  background: rgba(255, 215, 0, 0.08);
  border-left: 2px solid var(--gold-primary);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}
.chat-win-tag {
  background: var(--gold-primary);
  color: #000;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
  font-family: 'Orbitron', sans-serif;
}
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg-user { color: var(--cyan-accent); font-weight: 700; font-size: 10px; margin-bottom: 2px; }

.chat-input-bar { display: flex; gap: 6px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.chat-input-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
}
.chat-input-bar input:focus { outline: none; border-color: var(--cyan-accent); }
.cyan-send-btn {
  background: var(--cyan-accent);
  border: none; color: #000;
  width: 34px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px; font-weight: 700;
  transition: var(--transition);
}
.cyan-send-btn:hover { transform: scale(1.05); }

.emoji-bar { display: flex; gap: 6px; justify-content: center; padding-top: 4px; }
.emoji-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 4px 6px; cursor: pointer; font-size: 14px;
  transition: var(--transition);
}
.emoji-btn:hover { transform: scale(1.2); border-color: var(--gold-primary); }

/* ─── CENTER HUB STAGE & HERO WHEEL CENTERPIECE ─────────────────── */
.center-hub-stage {
  padding: 12px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.hero-game-stage {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
  width: 100%;
}

.wheel-header-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-badge {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-weight: 900;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 1px;
  margin: 0;
}

.games-panel-title {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #00f0ff;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

/* BACKGROUND FALLING DOLLARS & GOLD RAIN CANVAS */
.bg-particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* ─── LEFT FEATURE GAME CARD: MYSTERY BOX ────────────────────── */
.feature-game-card {
  background: rgba(14, 23, 46, 0.85);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  height: 100%;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.feature-game-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: var(--neon-glow-gold);
}

.card-glow-aura {
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 140, 0, 0.15) 50%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
  animation: auraPulse 3s ease-in-out infinite alternate;
}
@keyframes auraPulse {
  0%   { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.95; }
}

.sparkles-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.sparkle {
  position: absolute;
  font-size: 18px;
  user-select: none;
  animation: sparkleTwinkle 2.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.8));
}
.sp-1 { top: 15%; left: 18%; animation-delay: 0s; font-size: 20px; }
.sp-2 { top: 25%; right: 15%; animation-delay: 0.6s; font-size: 16px; }
.sp-3 { top: 60%; left: 12%; animation-delay: 1.2s; font-size: 22px; }
.sp-4 { top: 70%; right: 20%; animation-delay: 1.8s; font-size: 18px; }
.sp-5 { top: 40%; left: 80%; animation-delay: 0.9s; font-size: 14px; }

@keyframes sparkleTwinkle {
  0%   { opacity: 0.2; transform: scale(0.6) rotate(0deg); }
  50%  { opacity: 1; transform: scale(1.3) rotate(20deg); }
  100% { opacity: 0.3; transform: scale(0.8) rotate(-15deg); }
}

.card-image-wrap {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.tile-img { max-width: 100%; max-height: 340px; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6)); }

.\33 d-float, [class*="3d-float"], .float-3d { animation: float3d 4s ease-in-out infinite alternate; }
@keyframes float3d { 0%{ transform: translateY(0); } 100%{ transform: translateY(-8px); } }

.tile-title-bar {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-top: 10px;
}
.tile-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 2px;
}

/* ─── CENTER MAIN WHEEL STAGE ────────────────────────────────── */
.wheel-main-stage {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.wheel-wrap {
  position: relative;
  width: 500px; height: 500px;
  margin: 0 auto 16px;
}
.wheel-pointer {
  position: absolute; top: -28px; left: 50%;
  transform: translateX(-50%); z-index: 10;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

#wheelCanvas {
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.12), 0 0 100px rgba(255, 215, 0, 0.08);
}

.wheel-preview-prompt {
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  user-select: none;
  animation: pulsePreviewPrompt 2s infinite ease-in-out;
}

@keyframes pulsePreviewPrompt {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.center-hub {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110px; height: 110px;
  background: radial-gradient(circle, #2a2010 0%, #060a14 100%);
  border-radius: 50%;
  border: 4px solid var(--gold-primary);
  box-shadow: var(--neon-glow-gold), inset 0 0 20px rgba(0, 0, 0, 0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.hub-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; font-weight: 900;
  color: var(--gold-primary);
  line-height: 1.2; letter-spacing: 1px;
  text-shadow: 0 0 10px var(--gold-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hub-amp {
  color: var(--cyan-accent);
  font-size: 14px; font-weight: 900;
  text-shadow: 0 0 8px var(--cyan-accent);
  margin: 1px 0;
}

/* CONTROLS */
.controls-bar { width: 100%; max-width: 440px; }

.spin-gold-btn {
  background: var(--gold-btn-grad);
  border: 2px solid #fff;
  border-radius: 30px;
  color: #000;
  padding: 12px 36px;
  width: 100%;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--neon-glow-gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.spin-gold-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
}
.spin-gold-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.spin-btn-title { font-family: 'Orbitron', sans-serif; font-size: 17px; font-weight: 900; letter-spacing: 2px; }
.spin-btn-sub { font-size: 11px; font-family: 'Rajdhani', sans-serif; font-weight: 700; opacity: 0.85; }

.bet-presets-row { text-align: center; }
.bet-row-label { font-size: 10px; color: var(--text-muted); font-family: 'Rajdhani', sans-serif; letter-spacing: 1.5px; display: block; margin-bottom: 8px; font-weight: 700; }
.bet-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bet-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.bet-chip:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.bet-chip.active {
  background: rgba(255, 215, 0, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.right-games-column {
  display: flex; flex-direction: column; gap: 12px;
  height: 100%; max-height: 520px;
  justify-content: space-between;
}

.other-activities-card {
  background: linear-gradient(135deg, rgba(14, 23, 46, 0.9) 0%, rgba(20, 32, 60, 0.75) 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 10px; text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.05);
}
.section-sublabel { font-size: 9px; letter-spacing: 1.5px; color: var(--gold-primary); font-family: 'Orbitron', sans-serif; font-weight: 700; display: block; margin-bottom: 8px; text-shadow: 0 0 6px rgba(255, 215, 0, 0.3); }

.sub-tiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sub-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 6px; cursor: pointer;
  transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.sub-tile:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px) scale(1.03);
  background: rgba(255, 215, 0, 0.12);
  box-shadow: var(--neon-glow-gold);
}
.sub-tile-icon-wrap {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.2);
}
.sub-tile-name {
  font-family: 'Orbitron', sans-serif; font-size: 9px; font-weight: 700;
  color: var(--text-primary); letter-spacing: 1px;
}
.mini-swords-icon, .mini-crown-icon { font-size: 16px; }

/* ILLUMINATING HIGH-END GAME SIDE TILES */
.game-side-tile {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 23, 46, 0.98) 0%, rgba(26, 42, 76, 0.95) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  min-height: 96px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.08);
  overflow: hidden;
}
.game-side-tile::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.game-side-tile:hover::before { transform: translateX(100%); }
.game-side-tile:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 32px rgba(255, 215, 0, 0.6), inset 0 0 25px rgba(255, 215, 0, 0.2);
}

.tile-live-badge {
  position: absolute; top: 8px; right: 12px;
  font-family: 'Orbitron', sans-serif; font-size: 9px; font-weight: 900;
  color: var(--cyan-accent); background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--cyan-accent); border-radius: 4px;
  padding: 2px 7px; text-shadow: 0 0 6px var(--cyan-accent);
  letter-spacing: 0.5px;
}
.tile-live-badge.hot-tag {
  color: #ff6400; background: rgba(255, 100, 0, 0.15);
  border-color: #ff6400; text-shadow: 0 0 6px #ff6400;
}
.tile-live-badge.card-badge {
  color: #ffe600; background: rgba(255, 230, 0, 0.18);
  border-color: #ffe600; text-shadow: 0 0 8px #ffe600;
}
.tile-live-badge.slot-badge {
  color: #00f0ff; background: rgba(0, 240, 255, 0.18);
  border-color: #00f0ff; text-shadow: 0 0 8px #00f0ff;
}

.tile-thumb {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, rgba(6, 10, 22, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.2);
  transition: var(--transition);
}
.game-side-tile:hover .tile-thumb {
  transform: rotate(6deg) scale(1.1);
  border-color: var(--gold-primary);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
}
.side-tile-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.side-tile-name {
  font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 900;
  color: var(--gold-primary); letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}
.side-tile-sub {
  font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700;
  color: var(--text-muted); letter-spacing: 1px;
}
.side-tile-thumb {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, rgba(6, 10, 22, 0.95) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 10px rgba(255, 215, 0, 0.2);
}

.side-tile-info { display: flex; flex-direction: column; text-align: left; }
.side-tile-name {
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 800;
  color: var(--gold-primary); letter-spacing: 1.5px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}
.side-tile-sub {
  font-family: 'Rajdhani', sans-serif; font-size: 9px; font-weight: 700;
  color: var(--text-muted); letter-spacing: 1px; margin-top: 2px;
}

/* LIVE 3D MINI CHEST COMPONENT */
.live-mini-chest { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.chest-box {
  background: radial-gradient(circle, #2a1f0a 0%, #0d1222 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--neon-glow-gold);
  text-align: center;
}
.chest-lid { font-size: 54px; filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)); }
.chest-gems { font-size: 16px; margin-top: 6px; letter-spacing: 4px; }

/* LIVE 3D MINI DICE TUMBLER COMPONENT (CONFINED CLEANLY INSIDE CONTAINER) */
.live-mini-dice {
  display: flex; gap: 4px; align-items: center; justify-content: center;
  width: 100%; height: 100%; overflow: hidden;
}
.mini-die {
  font-size: 15px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid var(--gold-primary);
  border-radius: 6px;
  padding: 2px 4px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  color: var(--gold-primary);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.game-side-tile:hover .mini-die {
  animation: miniDiceTumble 0.8s ease-in-out infinite alternate;
}
@keyframes miniDiceTumble {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(180deg) scale(1.15); }
}

/* LIVE 3D MINI CARDS COMPONENT (CONFINED CLEANLY INSIDE CONTAINER) */
.live-mini-cards {
  display: flex; gap: 2px; align-items: center; justify-content: center;
  width: 100%; height: 100%; overflow: hidden;
}
.mini-card {
  width: 15px; height: 25px;
  background: linear-gradient(135deg, #101a36, #1c2b54);
  border: 1px solid var(--gold-primary);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--gold-primary); font-family: 'Orbitron', sans-serif; font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s;
}
.game-side-tile:hover .mini-card.c1 { transform: rotate(-12deg) translateX(-2px); }
.game-side-tile:hover .mini-card.c3 { transform: rotate(12deg) translateX(2px); }

/* LIVE 3D 3-REEL SLOT MACHINE ROTATOR COMPONENT (CONFINED CLEANLY INSIDE CONTAINER) */
.live-mini-slot {
  background: #040710;
  border: 1px solid var(--gold-primary);
  border-radius: 6px;
  padding: 2px 4px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.slot-window { display: flex; gap: 3px; }
.slot-reel {
  background: linear-gradient(180deg, #111 0%, #2a1f0a 50%, #111 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 3px;
  width: 14px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.reel-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; font-weight: 900;
  color: var(--gold-primary);
  text-shadow: 0 0 6px var(--gold-primary);
}
.slot-reel.spinning .reel-val {
  animation: reelSpinAnim 0.15s linear infinite;
}
@keyframes reelSpinAnim {
  0% { transform: translateY(-100%); opacity: 0.2; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0.2; }
}

/* DARAJA M-PESA STK MODAL STYLES */
.mpesa-modal-card { max-width: 420px; }
.mpesa-brand-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px; font-weight: 900;
  color: #fff; letter-spacing: 1px;
  margin-bottom: 8px;
}
.mpesa-green-text { color: #00e676; text-shadow: 0 0 10px rgba(0,230,118,0.6); }
.mpesa-amount-display {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px; font-weight: 900;
  color: var(--gold-primary);
  text-shadow: var(--neon-glow-gold);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 8px; margin-top: 4px;
}
.mpesa-input {
  width: 100%; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border); color: #fff;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 700;
  text-align: center;
}
.stk-status-text {
  margin-top: 14px; font-size: 12px; color: #00e676;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  animation: fadeIn 0.3s ease;
}

/* ─── MODALS / GAME OVERLAYS ─────────────────────────────────── */
.game-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 7, 16, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from{ opacity:0; } to{ opacity:1; } }

.game-modal-card {
  background: rgba(10, 16, 32, 0.95);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  width: 90%; max-width: 480px;
  box-shadow: var(--neon-glow-gold);
  animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wide-modal { max-width: 680px; }
@keyframes scaleUp { from{ transform: scale(0.85); opacity:0; } to{ transform: scale(1); opacity:1; } }

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-header h2 { font-family: 'Orbitron', sans-serif; font-size: 16px; color: var(--gold-primary); }
.close-modal-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: 24px; cursor: pointer; transition: var(--transition);
}
.close-modal-btn:hover { color: var(--red-accent); }

.modal-body { padding: 20px; }
.modal-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; text-align: center; }

/* MYSTERY BOX TIERS */
.mystery-tiers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px; text-align: center;
}
.tier-name { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; color: var(--gold-primary); }
.tier-price { font-size: 16px; font-weight: 900; margin: 4px 0 10px; }

.neon-btn {
  background: var(--gold-btn-grad); border: none; color: #000;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700;
  cursor: pointer; width: 100%; transition: var(--transition);
}
.neon-btn:hover { transform: scale(1.04); box-shadow: var(--neon-glow-gold); }

/* DICE ROLL */
.dice-mode-selector { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.mode-btn {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted); padding: 8px 18px; border-radius: 20px;
  font-size: 12px; cursor: pointer; transition: var(--transition);
}
.mode-btn.active { border-color: var(--gold-primary); color: var(--gold-primary); background: rgba(255, 215, 0, 0.15); }

.dice-display { display: flex; gap: 16px; justify-content: center; margin: 16px 0; }
.die {
  font-size: 48px; background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--gold-primary); border-radius: var(--radius-md);
  padding: 12px 18px; font-family: 'Orbitron', sans-serif; font-weight: 900;
  color: var(--gold-primary);
}
.die.hidden { display: none; }
.dice-result { font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 700; color: var(--gold-primary); min-height: 24px; }

/* PICK A CARD */
.cards-row { display: flex; gap: 12px; justify-content: center; margin: 16px 0; }
.play-card {
  width: 80px; height: 120px; perspective: 800px; cursor: pointer;
}
.card-inner {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d; transition: transform 0.6s;
}
.play-card.flipped .card-inner { transform: rotateY(180deg); }
.card-front, .card-back {
  position: absolute; width: 100%; height: 100%;
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden; font-family: 'Orbitron', sans-serif; font-weight: 900;
}
.card-front {
  background: linear-gradient(135deg, #101a36, #1c2b54);
  border: 2px solid var(--gold-primary); color: var(--gold-primary); font-size: 28px;
}
.card-back {
  background: #060a14; border: 2px solid var(--cyan-accent);
  transform: rotateY(180deg); font-size: 11px; color: #fff; text-align: center; padding: 4px;
}
.card-result { font-family: 'Orbitron', sans-serif; font-size: 16px; color: var(--gold-primary); min-height: 24px; }

/* LUCKY 7 */
.lucky7-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.lucky-box {
  background: rgba(255, 255, 255, 0.04); border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md); padding: 16px 8px; text-align: center; cursor: pointer;
  transition: var(--transition);
}
.lucky-box:hover { border-color: var(--gold-primary); transform: scale(1.05); }
.box-num { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; color: var(--gold-primary); }

/* TOASTS & CELEBRATION */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column-reverse; gap: 8px; }
.toast {
  background: rgba(10, 16, 32, 0.95); border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md); padding: 10px 14px; font-size: 12px;
  color: #fff; box-shadow: var(--neon-glow-gold);
}

.reaction-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.float-react { position: absolute; bottom: -40px; font-size: 28px; animation: floatUp 3s ease forwards; }
@keyframes floatUp { 0%{ opacity:1; transform:translateY(0); } 100%{ opacity:0; transform:translateY(-80vh); } }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN SYSTEM — ANDROID, MOBILE & TABLET LAYOUT
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .game-header {
    grid-template-columns: 46px 1fr auto;
    padding: 10px 14px;
  }
  
  .logo-title {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .hdr-auth-btn {
    padding: 6px 12px;
    font-size: 10px;
  }

  .user-display-name {
    font-size: 11px;
  }

  .coins-value {
    font-size: 14px;
  }

  .coins-card {
    min-width: 120px;
    padding: 4px 10px;
  }

  .hub-main-grid {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .center-hub-stage {
    display: flex;
    flex-direction: column;
    padding: 12px 14px 24px;
    gap: 16px;
  }

  /* 1. TOP LIVE WINNER BROADCAST BANNER */
  .top-live-pop-banner {
    order: 1;
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 0;
  }

  .top-banner-text {
    font-size: 11px;
  }

  /* 2. CENTER STAGE: SPIN WHEEL (FRONT & CENTER ON MOBILE) */
  .wheel-main-stage {
    order: 2;
    width: 100%;
    margin-top: 4px;
  }

  .wheel-wrap {
    width: 320px;
    height: 320px;
    max-width: 88vw;
    max-height: 88vw;
    margin: 0 auto 14px;
  }

  #wheelCanvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 88vw;
    max-height: 88vw;
  }

  .wheel-pointer {
    top: -24px;
  }

  .center-hub {
    width: 80px;
    height: 80px;
  }

  .hub-text {
    font-size: 9px;
  }

  .controls-bar {
    max-width: 100%;
  }

  .spin-gold-btn {
    padding: 10px 24px;
    margin-bottom: 12px;
  }

  .spin-btn-title {
    font-size: 15px;
  }

  .bet-chips {
    gap: 6px;
  }

  .bet-chip {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* 3. FEATURE GAME CARD (MYSTERY BOX ON MOBILE) */
  .feature-game-card {
    order: 3;
    height: auto;
    max-height: none;
    padding: 14px 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(14, 23, 46, 0.95) 100%);
    border: 1.5px solid var(--gold-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  .feature-game-card .card-glow-aura { display: none; }
  .feature-game-card .sparkles-overlay { display: none; }
  .feature-game-card .card-image-wrap { flex: none; width: 44px; height: 44px; padding: 0; }
  .feature-game-card .tile-title-bar { margin-top: 0; padding: 4px 12px; background: rgba(0,0,0,0.3); border-radius: 8px; }
  .feature-game-card .tile-name { font-size: 13px; letter-spacing: 1.5px; }

  /* 4. RIGHT GAMES COLUMN (2x2 GRID ON MOBILE) */
  .right-games-column {
    order: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: auto;
    max-height: none;
  }

  .game-side-tile {
    padding: 10px 10px;
    gap: 8px;
  }

  .tile-thumb { width: 40px; height: 40px; }
  .side-tile-name { font-size: 10px; letter-spacing: 1px; }
  .side-tile-sub { font-size: 8px; }
  .tile-live-badge { font-size: 7px; padding: 1px 4px; }

  /* 5. LIVE CHAT & BROADCAST SIDEBAR (DISPLAYED ON MOBILE AT BOTTOM) */
  .left-sidebar {
    display: flex !important;
    order: 5;
    margin: 10px 14px 30px;
    border-right: none;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: var(--radius-lg);
    background: rgba(6, 10, 22, 0.98);
    overflow: hidden;
  }

  .sidebar-block {
    padding: 12px;
  }

  .chat-block {
    min-height: 280px;
  }

  .chat-lock-overlay {
    top: 30px;
    padding: 12px;
  }

  .lock-title {
    font-size: 12px;
  }

  .lock-desc {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .game-header {
    padding: 8px 10px;
  }
  .logo-title { font-size: 16px; letter-spacing: 1px; }
  .wheel-wrap { width: 280px; height: 280px; }
  #wheelCanvas { width: 280px !important; height: 280px !important; }
  .right-games-column { grid-template-columns: 1fr; }
}

/* ─── 3D FALLING COIN ANIMATIONS & CELEBRATION MODAL STYLES ─── */
@keyframes coinDropFall {
  0% { transform: translateY(0) rotate(0deg) scale(0.6); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(115vh) rotate(720deg) scale(1.3); opacity: 0; }
}

.falling-coin-particle {
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
}

.glow-gold-border {
  border: 2px solid #FFD700 !important;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.5) !important;
}

.gold-pulse-text {
  animation: goldPulse 1.5s infinite ease-in-out;
}

@keyframes goldPulse {
  0%, 100% { text-shadow: 0 0 15px rgba(255,215,0,0.7); transform: scale(1); }
  50% { text-shadow: 0 0 35px rgba(255,215,0,1); transform: scale(1.04); }
}

.logout-hdr-btn {
  background: linear-gradient(135deg, #ff4d4d, #cc0000);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 77, 77, 0.6);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.logout-hdr-btn:hover {
  background: linear-gradient(135deg, #ff6666, #ff0000);
  box-shadow: 0 0 25px rgba(255, 77, 77, 0.8);
  transform: scale(1.05);
}

/* ─── 3D DICE ROLL COMPONENT STYLES ─── */
.dice-mode-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.mode-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #b0c4de;
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mode-btn.active, .mode-btn:hover {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-weight: 800;
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.dice-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 20px 0;
  min-height: 120px;
}

.die {
  width: 90px;
  height: 90px;
  background: linear-gradient(145deg, #1e2942, #0d1527);
  border: 2px solid #ffd700;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  color: #ffd700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease;
  user-select: none;
}

.die.rolling {
  animation: diceTumble 0.7s infinite linear;
}

@keyframes diceTumble {
  0% { transform: rotate(0deg) scale(0.9); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(0.95); }
  75% { transform: rotate(270deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

.bet-chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
}

.bet-chip {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.bet-chip.active, .bet-chip:hover {
  background: #ffd700;
  color: #000;
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.dice-result {
  font-size: 16px;
  font-weight: 800;
  min-height: 24px;
  margin-top: 10px;
}

/* ════════════════════════════════════════════════════════════════
   REAL-MONEY HIGH ROLLER CASINO TABLE & 3D PLAYING CARDS
   ════════════════════════════════════════════════════════════════ */
.casino-table-modal {
  max-width: 900px !important;
  border: 2px solid #d4af37 !important;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 24px !important;
}

.casino-table-header {
  background: linear-gradient(180deg, #182232 0%, #0c1422 100%);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 215, 0, 0.4);
}

.table-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.casino-vip-badge {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.casino-game-title {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #ffd700;
  margin: 0;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.provably-fair-badge {
  font-size: 11px;
  color: #00f0ff;
  font-weight: 600;
  background: rgba(0, 240, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.casino-felt-table {
  background: radial-gradient(circle at 50% 40%, #0e3d27 0%, #061f13 70%, #020d08 100%);
  padding: 28px 24px 32px;
  border-top: 3px solid #d4af37;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.9);
  position: relative;
}

.card-bet-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.bet-label {
  font-size: 12px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 1px;
}

.casino-cards-stage {
  display: flex;
  justify-content: center;
  gap: 20px;
  perspective: 1200px;
  margin: 20px 0 30px;
}

/* 3D CARD STRUCTURE */
.play-card {
  width: 125px;
  height: 185px;
  perspective: 1000px;
  cursor: pointer;
  user-select: none;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
}

.play-card:hover .card-inner {
  transform: translateY(-12px) rotateX(12deg) scale(1.04);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4), 0 0 25px rgba(255, 215, 0, 0.6);
}

.play-card.anticipating .card-inner {
  animation: cardAnticipate 0.5s infinite ease-in-out;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.9);
}

@keyframes cardAnticipate {
  0%, 100% { transform: translateY(-15px) scale(1.05); }
  50% { transform: translateY(-20px) scale(1.08); }
}

.play-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-back-face, .card-front-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 14px;
  border: 2px solid #ffd700;
  overflow: hidden;
}

/* CARD BACK: LUXURY FILIGREE CASINO PATTERN */
.card-back-face {
  background: radial-gradient(135deg, #2c1a04 0%, #120900 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-back-pattern {
  width: 90%;
  height: 92%;
  border: 2px dashed rgba(255, 215, 0, 0.6);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: repeating-linear-gradient(45deg, rgba(255,215,0,0.08), rgba(255,215,0,0.08) 8px, transparent 8px, transparent 16px);
}

.card-logo-crest {
  font-size: 38px;
  color: #ffd700;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.8));
}

/* CARD FRONT: AUTHENTIC CASINO CARD FACE */
.card-front-face {
  background: linear-gradient(180deg, #ffffff 0%, #f0f3f8 100%);
  color: #111;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  font-family: 'Sora', sans-serif;
}

.card-front-face .corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.card-front-face .corner.top-left {
  align-self: flex-start;
}

.card-front-face .corner.bottom-right {
  align-self: flex-end;
  transform: rotate(180deg);
}

.card-front-face .rank {
  font-size: 18px;
  font-weight: 900;
}

.card-front-face .suit {
  font-size: 16px;
}

.card-center-symbol {
  font-size: 42px;
  margin: auto;
}

.card-reward-label {
  font-size: 11px;
  font-weight: 800;
  color: #000;
  background: rgba(255, 215, 0, 0.9);
  padding: 4px 6px;
  border-radius: 6px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* RARITY TIERS & AURA GLOWS */
.gold-jackpot-card {
  background: linear-gradient(180deg, #fffbee 0%, #ffe899 100%) !important;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.9) !important;
}

.crimson-ace-card {
  background: linear-gradient(180deg, #fff5f5 0%, #ffd6d6 100%) !important;
  box-shadow: 0 0 25px rgba(255, 77, 77, 0.7) !important;
}

.special-reward-card {
  background: linear-gradient(180deg, #f0ffff 0%, #ccffff 100%) !important;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.7) !important;
}

.chosen-hero {
  border: 3px solid #ffd700 !important;
}

.win-glow-hero {
  animation: winCardPulse 1.2s infinite ease-in-out;
}

@keyframes winCardPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
  50% { box-shadow: 0 0 45px rgba(255, 215, 0, 1); }
}

.casino-table-footer {
  text-align: center;
  margin-top: 10px;
}

.action-reset-btn {
  padding: 12px 32px !important;
  font-size: 14px !important;
}

@media (max-width: 768px) {
  .casino-cards-stage {
    gap: 8px;
  }
  .play-card {
    width: 64px;
    height: 98px;
  }
  .card-center-symbol {
    font-size: 22px;
  }
  .card-front-face .rank {
    font-size: 11px;
  }
  .card-front-face .suit {
    font-size: 10px;
  }
  .card-reward-label {
    font-size: 8px;
    padding: 2px 3px;
  }
}

/* ════════════════════════════════════════════════════════════════
   3D CRAPS CASINO TABLE & 3D CUBE DICE ANIMATIONS
   ════════════════════════════════════════════════════════════════ */
.craps-felt-surface {
  background: radial-gradient(ellipse at 50% 30%, #0a2540 0%, #051424 70%, #020914 100%) !important;
  border-top: 3px solid #ffd700 !important;
  padding: 32px 24px 36px !important;
}

.craps-dice-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  perspective: 1000px;
  margin: 30px 0 25px;
  min-height: 160px;
}

/* 3D CUBE CONTAINER */
.cube-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  perspective: 1000px;
}

.die-3d-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.15, 0.85, 0.35, 1.2);
}

.die-3d-cube .face {
  position: absolute;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #1e2d4a 0%, #0a1324 100%);
  border: 2px solid #ffd700;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 52px;
  color: #ffd700;
  box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.4), 0 0 10px rgba(0, 0, 0, 0.8);
  user-select: none;
  backface-visibility: hidden;
}

/* CUBE FACES 3D POSITIONING */
.die-3d-cube .face.front  { transform: rotateY(0deg) translateZ(45px); }
.die-3d-cube .face.back   { transform: rotateY(180deg) translateZ(45px); }
.die-3d-cube .face.right  { transform: rotateY(90deg) translateZ(45px); }
.die-3d-cube .face.left   { transform: rotateY(-90deg) translateZ(45px); }
.die-3d-cube .face.top    { transform: rotateX(90deg) translateZ(45px); }
.die-3d-cube .face.bottom { transform: rotateX(-90deg) translateZ(45px); }

.die-shadow {
  position: absolute;
  bottom: -20px;
  left: 10%;
  width: 80%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* REALISTIC CASINO WAGER CHIPS */
.casino-chip-selector {
  margin: 20px 0;
  text-align: center;
}

.casino-chips-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.casino-chip {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 4px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.casino-chip .chip-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px dashed #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);
}

.casino-chip .chip-val {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.chip-50 {
  background: radial-gradient(circle, #2e7d32 0%, #1b5e20 100%);
  border: 3px solid #81c784;
}

.chip-100 {
  background: radial-gradient(circle, #c62828 0%, #8e0000 100%);
  border: 3px solid #ef5350;
}

.chip-500 {
  background: radial-gradient(circle, #1565c0 0%, #0d47a1 100%);
  border: 3px solid #42a5f5;
}

.chip-2000 {
  background: radial-gradient(circle, #ffd700 0%, #b8860b 100%);
  border: 3px solid #fff59d;
}

.chip-2000 .chip-val {
  color: #000 !important;
  text-shadow: none !important;
}

.casino-chip:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 14px 28px rgba(255, 215, 0, 0.5);
}

.casino-chip.active {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 16px 30px rgba(0,0,0,0.8);
  border-color: #ffd700 !important;
}

.dice-result-banner {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffd700;
  min-height: 28px;
  margin: 12px 0;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.table-action-row {
  margin-top: 20px;
}

.action-roll-btn {
  padding: 14px 38px !important;
  font-size: 15px !important;
  border-radius: 30px !important;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5) !important;
}

/* ════════════════════════════════════════════════════════════════
   COMPACT LAYOUT & SPACING OPTIMIZATION (NO BIG EMPTY GAPS)
   ════════════════════════════════════════════════════════════════ */
.game-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(2, 6, 18, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 9999 !important;
  padding: 10px !important;
}

.game-modal-card {
  background: #091322 !important;
  border: 1.5px solid #d4af37 !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 620px !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 215, 0, 0.3) !important;
  margin: auto !important;
}

.casino-table-modal {
  max-width: 620px !important;
}

.casino-table-header {
  padding: 10px 16px !important;
}

.casino-game-title {
  font-size: 16px !important;
}

.craps-felt-surface, .casino-felt-table {
  padding: 14px 16px 18px !important;
}

.craps-dice-stage {
  gap: 20px !important;
  margin: 10px 0 8px !important;
  min-height: 105px !important;
}

.cube-wrapper {
  width: 72px !important;
  height: 72px !important;
}

.die-3d-cube .face {
  width: 72px !important;
  height: 72px !important;
  font-size: 42px !important;
  border-radius: 12px !important;
}

.die-3d-cube .face.front  { transform: rotateY(0deg) translateZ(36px) !important; }
.die-3d-cube .face.back   { transform: rotateY(180deg) translateZ(36px) !important; }
.die-3d-cube .face.right  { transform: rotateY(90deg) translateZ(36px) !important; }
.die-3d-cube .face.left   { transform: rotateY(-90deg) translateZ(36px) !important; }
.die-3d-cube .face.top    { transform: rotateX(90deg) translateZ(36px) !important; }
.die-3d-cube .face.bottom { transform: rotateX(-90deg) translateZ(36px) !important; }

.casino-chip-selector {
  margin: 8px 0 !important;
}

.casino-chips-row {
  gap: 10px !important;
  margin-top: 4px !important;
}

.casino-chip {
  width: 54px !important;
  height: 54px !important;
}

.casino-chip .chip-val {
  font-size: 9px !important;
}

.dice-result-banner {
  font-size: 15px !important;
  min-height: 20px !important;
  margin: 6px 0 !important;
}

.table-action-row {
  margin-top: 10px !important;
}

.action-roll-btn {
  padding: 10px 28px !important;
  font-size: 13px !important;
}

.casino-cards-stage {
  gap: 10px !important;
  margin: 10px 0 14px !important;
}

.play-card {
  width: 92px !important;
  height: 136px !important;
}

.card-center-symbol {
  font-size: 30px !important;
}

.card-front-face .rank {
  font-size: 13px !important;
}

.card-front-face .suit {
  font-size: 12px !important;
}

.card-reward-label {
  font-size: 9px !important;
  padding: 2px 4px !important;
}

.center-hub-stage {
  padding: 12px 16px !important;
  gap: 14px !important;
}

.game-header {
  padding: 8px 16px !important;
}

.mode-btn {
  padding: 6px 14px !important;
  font-size: 11px !important;
}

@media (max-width: 600px) {
  .game-modal-card {
    max-width: 95vw !important;
    border-radius: 16px !important;
  }
  .play-card {
    width: 60px !important;
    height: 90px !important;
  }
  .cube-wrapper {
    width: 58px !important;
    height: 58px !important;
  }
  .die-3d-cube .face {
    width: 58px !important;
    height: 58px !important;
    font-size: 34px !important;
  }
  .die-3d-cube .face.front  { transform: rotateY(0deg) translateZ(29px) !important; }
  .die-3d-cube .face.back   { transform: rotateY(180deg) translateZ(29px) !important; }
  .die-3d-cube .face.right  { transform: rotateY(90deg) translateZ(29px) !important; }
  .die-3d-cube .face.left   { transform: rotateY(-90deg) translateZ(29px) !important; }
  .die-3d-cube .face.top    { transform: rotateX(90deg) translateZ(29px) !important; }
  .die-3d-cube .face.bottom { transform: rotateX(-90deg) translateZ(29px) !important; }
  .casino-chip {
    width: 46px !important;
    height: 46px !important;
  }
  .casino-chip .chip-val {
    font-size: 8px !important;
  }
}

#mpesaStkModal {
  display: none !important;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 999999 !important;
  pointer-events: auto !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

.close-modal-btn:hover {
  background: rgba(255, 23, 68, 0.95) !important;
  border-color: #ff1744 !important;
  color: #ffffff !important;
  transform: scale(1.15) !important;
}

/* ════════════════════════════════════════════════════════════════
   VIP MEMBERSHIP POPUP & LIVE ACTIVITY TICKER
   ════════════════════════════════════════════════════════════════ */
.game-modal-overlay, #modal-vip, #modal-challenges, #modal-lucky7, #modal-mystery, #modal-dice, #modal-cards, #modal-card {
  display: none !important;
}

.game-modal-overlay.open, .game-modal-overlay.active, 
#modal-vip.open, #modal-vip.active,
#modal-lucky7.open, #modal-lucky7.active,
#modal-mystery.open, #modal-mystery.active,
#modal-dice.open, #modal-dice.active,
#modal-cards.open, #modal-cards.active {
  display: flex !important;
}

/* ════════════════════════════════════════════════════════════════
   PERSISTENT DASHBOARD DAILY STREAK & CHALLENGES WIDGET
   ════════════════════════════════════════════════════════════════ */
.dashboard-streak-widget {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 16px auto;
  background: linear-gradient(135deg, rgba(12, 21, 43, 0.95), rgba(5, 10, 24, 0.95));
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.15);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 10;
}

.widget-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

.widget-main-row:hover {
  background: rgba(255, 215, 0, 0.05);
}

.widget-left-streak {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.flame-icon-anim {
  font-size: 32px;
  animation: flamePulse 1.5s infinite alternate ease-in-out;
  filter: drop-shadow(0 0 8px #ff4500);
}

@keyframes flamePulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 6px #ff4500); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 14px #ff8c00); }
}

.streak-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.streak-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.streak-title {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
}

.streak-count-tag {
  background: linear-gradient(135deg, #ff4500, #ff8c00);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255, 69, 0, 0.5);
}

.streak-progress-bar {
  width: 100%;
  max-width: 320px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.streak-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff8c00, #ffd700, #00f0ff);
  border-radius: 10px;
  transition: width 0.6s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.streak-sub-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.reset-countdown {
  color: #00f0ff;
  font-weight: 700;
}

.widget-right-claim {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gold-pulse-btn {
  background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
  color: #000 !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
  animation: goldBtnGlow 2s infinite ease-in-out !important;
}

@keyframes goldBtnGlow {
  0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
  50% { box-shadow: 0 0 22px rgba(255, 215, 0, 0.9); }
  100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
}

.expand-arrow {
  color: #ffd700;
  font-size: 14px;
  font-weight: 800;
}

.widget-expand-panel {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  background: rgba(0, 0, 0, 0.25);
}

.panel-header-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.panel-header-tabs .ch-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.panel-header-tabs .ch-tab.active {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  border-color: #ffd700;
}

.active-challenges-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#modal-vip.open, #modal-vip.active {
  display: flex !important;
}

.vip-modal-overlay {
  background: rgba(2, 6, 18, 0.75) !important;
  backdrop-filter: blur(10px) !important;
}

.vip-popup-card {
  max-width: 580px !important;
  border-radius: 20px !important;
  border: 1.5px solid #ffd700 !important;
  background: radial-gradient(circle at 50% 10%, #162447 0%, #0c152b 60%, #050a18 100%) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.85), 0 0 35px rgba(255, 215, 0, 0.3) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.vip-modal-header {
  padding: 14px 20px !important;
  background: rgba(4, 8, 20, 0.8) !important;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-vip-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vip-crown-badge {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 10px;
}

.vip-popup-body {
  padding: 18px 20px 20px !important;
}

.vip-user-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.user-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}

.user-id-label {
  color: #ffd700;
  font-weight: 700;
}

.user-id-value {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.auth-status-chip {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: auto;
}

.vip-level-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vip-level-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tier-icon {
  font-size: 32px;
}

.tier-text {
  display: flex;
  flex-direction: column;
}

.current-tier-title {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #ffd700;
}

.xp-status-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.xp-remaining-banner {
  background: rgba(255, 215, 0, 0.08);
  border: 1px dashed rgba(255, 215, 0, 0.4);
  color: #fff;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: center;
}

.vip-tiers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.vip-tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  transition: transform 0.2s ease;
}

.vip-tier-card.active-tier {
  background: rgba(255, 215, 0, 0.12) !important;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.4) !important;
  transform: translateY(-2px);
}

.tier-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tier-card-icon {
  font-size: 20px;
}

.tier-card-name {
  font-size: 10px;
  font-weight: 800;
}

.tier-card-xp {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.vip-live-activity {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.live-pulse {
  color: #ff4d4d;
  font-weight: 800;
  white-space: nowrap;
}

.vip-ticker-scroll {
  color: #00f0ff;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════
   LUCKY 7 LUXURY 3-REEL CASINO SLOT MACHINE CABINET
   ════════════════════════════════════════════════════════════════ */
.slot-cabinet-modal {
  max-width: 540px !important;
  border-radius: 22px !important;
  border: 2px solid #ffd700 !important;
  background: radial-gradient(circle at 50% 0%, #1e2942 0%, #0d1527 60%, #040814 100%) !important;
  box-shadow: 0 25px 70px rgba(0,0,0,0.9), 0 0 45px rgba(255, 215, 0, 0.35) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.slot-header {
  padding: 14px 20px !important;
  background: rgba(5, 10, 24, 0.9) !important;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slot-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slot-marquee-lights {
  font-size: 16px;
  animation: lightsBlink 1.2s infinite alternate ease-in-out;
}

@keyframes lightsBlink {
  0% { opacity: 0.4; filter: drop-shadow(0 0 2px #ffd700); }
  100% { opacity: 1; filter: drop-shadow(0 0 10px #ffd700); }
}

.slot-cabinet-body {
  padding: 16px 20px 20px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slot-jackpot-marquee {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 69, 0, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 8px 16px;
  text-align: center;
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marquee-label {
  font-size: 10px;
  font-weight: 800;
  color: #ff8c00;
  letter-spacing: 1px;
}

.marquee-amount {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

.marquee-subtitle {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.slot-reels-stage {
  width: 100%;
  background: #02050c;
  border: 3px solid #d4af37;
  border-radius: 16px;
  padding: 14px;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.9), 0 0 20px rgba(255, 215, 0, 0.2);
  margin-bottom: 16px;
  position: relative;
}

.cabinet-vibrating {
  animation: cabinetVibrate 0.1s infinite ease-in-out;
}

@keyframes cabinetVibrate {
  0% { transform: translate(0, 0); }
  50% { transform: translate(1px, -1px); }
  100% { transform: translate(-1px, 1px); }
}

.reels-glass-window {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: linear-gradient(180deg, #090e1a 0%, #152238 50%, #090e1a 100%);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
  height: 140px;
}

.payline-beam {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff1744, #ffd700, #ff1744, transparent);
  box-shadow: 0 0 12px #ff1744;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.payline-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ff1744;
  font-size: 14px;
  z-index: 6;
}

.left-payline { left: 4px; }
.right-payline { right: 4px; }

.slot-reel-container {
  background: radial-gradient(circle at 50% 50%, #202d4a 0%, #0b1222 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
  position: relative;
}

.slot-reel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.slot-symbol {
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  transition: transform 0.2s ease;
}

.spinning-blur {
  animation: reelSpinBlur 0.12s infinite linear;
  filter: blur(4px);
}

@keyframes reelSpinBlur {
  0% { transform: translateY(-30px); }
  100% { transform: translateY(30px); }
}

.reel-snap-anim {
  animation: reelSnap 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes reelSnap {
  0% { transform: translateY(-12px); }
  70% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

.landed-symbol {
  font-size: 42px !important;
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px #ffd700);
}

.slot-control-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bet-selector-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-label {
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
}

.slot-spin-lever-btn {
  width: 100%;
  max-width: 280px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  border: none;
  border-radius: 25px;
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.slot-spin-lever-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
}

.slot-spin-lever-btn.lever-pulled {
  transform: scale(0.96);
  opacity: 0.8;
}

.lever-title {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
}

.lever-sub {
  font-size: 11px;
  font-weight: 700;
}

.slot-payout-legend {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.slot-result-banner {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 800;
  min-height: 20px;
  text-align: center;
}

html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE COMPACT NAVIGATION DROPDOWN
   ═══════════════════════════════════════════════════════════════════════════ */
.header-right-mobile {
  display: none;
}

.mobile-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 10px;
  width: 240px;
  max-width: calc(100vw - 20px);
  background: rgba(10, 17, 31, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 15px rgba(255, 215, 0, 0.15);
  padding: 8px;
  z-index: 99999;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
}

.mobile-dropdown-menu.open {
  display: flex !important;
  animation: mobDropdownSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mobDropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mob-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.mob-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  height: 46px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  touch-action: manipulation;
}

.mob-dropdown-item:active {
  transform: scale(0.98);
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
}

.mob-dropdown-item.highlight-item {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 170, 0, 0.1));
  border-color: rgba(255, 215, 0, 0.35);
  color: #ffd700;
}

.mob-item-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.mob-item-label {
  flex: 1;
}

.mob-item-badge {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.mob-user-summary-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 4px;
}

.mob-summary-avatar {
  font-size: 24px;
}

.mob-summary-meta {
  display: flex;
  flex-direction: column;
}

.mob-summary-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.mob-summary-tier {
  font-size: 10px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
}

.mob-wallet-summary-row {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.mob-wallet-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.mob-col-label {
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
}

.mob-col-val {
  font-size: 12px;
  font-weight: 900;
  color: #ffd700;
}

.mobile-menu-trigger {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  color: #ffd700;
  font-size: 22px;
  cursor: pointer;
  touch-action: manipulation;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANDROID-FIRST NATIVE MOBILE DESIGN SYSTEM (< 768px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .desktop-header-auth {
    display: none !important;
  }
  .header-right-mobile {
    display: flex !important;
    align-items: center;
  }

  /* 8pt Grid System & Body Reset */
  body {
    overflow-x: hidden !important;
    padding-bottom: 76px !important;
    background-color: #060b14 !important;
  }

  .hub-main-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 8px 10px 80px !important;
  }

  /* Zero Wasted Space Containers */
  .left-sidebar, .right-game-panel, .game-card, .glass-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Compact Android Header */
  .game-header {
    position: sticky !important;
    top: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    background: #0a111f !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
  }

  .logo-title {
    font-size: 1.25rem !important;
  }

  /* Material Buttons (48px - 52px height) */
  button, .spin-gold-btn, .hdr-auth-btn, .bet-chip, .casino-chip {
    min-height: 48px !important;
    height: 48px !important;
    touch-action: manipulation !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }

  button:active, .spin-gold-btn:active {
    transform: scale(0.97) !important;
  }

  /* Hero Spin Wheel Section (Compact & Centered) */
  .wheel-stage-card {
    padding: 12px 6px !important;
    margin: 0 !important;
  }

  #wheelCanvas {
    max-width: 280px !important;
    max-height: 280px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  /* PLAY STORE STYLE COMPACT GAME CARDS (90px - 120px) */
  .casino-games-grid, .featured-games-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .casino-game-card, .game-item-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 110px !important;
    padding: 10px 14px !important;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.95), rgba(12, 20, 34, 0.95)) !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  }

  .game-card-icon {
    font-size: 32px !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 215, 0, 0.1) !important;
    border-radius: 12px !important;
    margin-right: 12px !important;
  }

  .game-card-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .game-card-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffd700 !important;
    margin: 0 0 2px !important;
  }

  .game-card-desc {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 !important;
  }

  .game-play-btn {
    padding: 8px 16px !important;
    min-height: 40px !important;
    height: 40px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
  }

  /* PERSISTENT NATIVE ANDROID BOTTOM NAVIGATION BAR */
  .android-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: rgba(8, 14, 24, 0.97) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(255, 215, 0, 0.3) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 999990 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.9) !important;
  }

  .android-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    gap: 2px !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    min-height: 48px !important;
    flex: 1 !important;
  }

  .android-nav-item .nav-icon {
    font-size: 18px !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
  }

  .android-nav-item.active {
    color: #ffd700 !important;
  }

  .android-nav-item.active .nav-icon {
    transform: scale(1.15) !important;
    filter: drop-shadow(0 0 8px #ffd700) !important;
  }

  /* FLOATING MOBILE CHAT FAB BUTTON */
  .mobile-chat-fab {
    position: fixed !important;
    bottom: 72px !important;
    right: 12px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
    color: #000 !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5) !important;
    z-index: 999980 !important;
    border: none !important;
    cursor: pointer !important;
  }

  /* MOBILE BOTTOM SHEET FOR LIVE CHAT & NOTIFICATIONS */
  .mobile-bottom-sheet {
    position: fixed !important;
    bottom: -100% !important;
    left: 0 !important;
    right: 0 !important;
    height: 70vh !important;
    background: #0c1422 !important;
    border-radius: 24px 24px 0 0 !important;
    border-top: 2px solid #ffd700 !important;
    z-index: 999995 !important;
    transition: bottom 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 14px !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9) !important;
  }

  .mobile-bottom-sheet.open {
    bottom: 0 !important;
  }

  .sheet-handle {
    width: 36px !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
    margin: 0 auto 10px !important;
  }

  /* Modals on mobile */
  .glass-modal, .game-modal-card, .auth-modal-card {
    width: 92% !important;
    max-width: 360px !important;
    margin: 8px auto !important;
    padding: 14px !important;
  }

  .desktop-web-layout {
    display: none !important;
  }
  .mobile-android-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 6px 10px 75px !important;
  }
  .mobile-wallet-card {
    height: auto !important;
    min-height: unset !important;
    padding: 8px 10px !important;
    margin-bottom: 2px !important;
    box-sizing: border-box !important;
  }
  .mobile-wallet-card .spin-gold-btn {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 769px) {
  .mobile-android-layout {
    display: none !important;
  }
  .desktop-web-layout {
    display: grid !important;
  }
  .android-bottom-nav, .mobile-chat-fab {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL MODAL & AUTHENTICATION OVERLAY SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay, .game-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(4, 8, 16, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.modal-overlay.open, .modal-overlay.active,
.game-modal-overlay.open, .game-modal-overlay.active {
  display: flex !important;
}

.auth-modal-card, .modal-card, .game-modal-card {
  width: 92% !important;
  max-width: 420px !important;
  background: linear-gradient(145deg, #0e172a 0%, #080e1a 100%) !important;
  border: 2px solid #ffd700 !important;
  border-radius: 20px !important;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.9) !important;
  padding: 24px 20px !important;
  position: relative !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
}

.auth-tabs {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
  border-bottom: 1px solid rgba(255, 215, 0, 0.25) !important;
  padding-bottom: 12px !important;
}

.auth-tab {
  flex: 1 !important;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 215, 0, 0.2) !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-family: 'Sora', sans-serif !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.auth-tab.active {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%) !important;
  color: #000000 !important;
  border-color: #ffd700 !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
}

.auth-input, .mpesa-input {
  width: 100% !important;
  padding: 12px 14px !important;
  background: #060b14 !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}

.auth-error-msg, .auth-error-text {
  background: rgba(255, 50, 50, 0.15) !important;
  border: 1px solid #ff3333 !important;
  color: #ff6666 !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  margin-bottom: 14px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM DESKTOP UI OVERHAUL (1024px+) — HERO CENTRED WHEEL & 3-COLUMN GRID
   (Mobile <1024px remains 100% untouched)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  /* Hide Mobile Layout and Bottom Nav on Desktop */
  .mobile-android-layout,
  .android-bottom-nav,
  .mobile-chat-fab,
  .mobile-bottom-sheet {
    display: none !important;
  }

  /* Desktop Header - Compact & Premium */
  .game-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 28px !important;
    height: 64px !important;
    background: rgba(4, 8, 16, 0.95) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    backdrop-filter: blur(12px) !important;
  }

  .logo-title {
    font-size: 22px !important;
    letter-spacing: 2px !important;
  }

  /* Main 3-Column Grid for Desktop */
  .desktop-web-layout {
    display: grid !important;
    grid-template-columns: 290px 1fr 290px !important;
    gap: 16px !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 16px !important;
    min-height: calc(100vh - 64px) !important;
    align-items: start !important;
  }

  /* Sidebars & Glass Cards */
  .left-sidebar, .right-game-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    background: rgba(8, 14, 26, 0.8) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px) !important;
  }

  /* Center Stage - Hero Spin Wheel Column */
  .center-stage {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Hero Wheel Container */
  .wheel-stage-card {
    background: linear-gradient(145deg, rgba(14, 23, 42, 0.9) 0%, rgba(8, 14, 26, 0.95) 100%) !important;
    border: 2px solid rgba(255, 215, 0, 0.4) !important;
    border-radius: 20px !important;
    padding: 16px 20px !important;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.15), 0 15px 40px rgba(0, 0, 0, 0.8) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
  }

  .wheel-canvas-wrapper {
    position: relative !important;
    margin: 8px auto !important;
    width: 360px !important;
    height: 360px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #wheelCanvas {
    width: 360px !important;
    height: 360px !important;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4)) !important;
  }

  .wheel-pointer-hero {
    top: -12px !important;
    width: 36px !important;
    height: 44px !important;
    z-index: 20 !important;
  }

  .bet-controls-panel {
    width: 100% !important;
    max-width: 440px !important;
    margin-top: 10px !important;
  }

  .wager-chips {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
  }

  .chip-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
  }

  .hero-spin-btn {
    width: 100% !important;
    min-height: 50px !important;
    font-size: 18px !important;
    border-radius: 14px !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6) !important;
  }

  /* Desktop Featured Games Grid (4 Columns Below Wheel) */
  .desktop-featured-games-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .desktop-game-card {
    background: linear-gradient(135deg, rgba(16, 26, 48, 0.85) 0%, rgba(8, 14, 26, 0.95) 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;
    border-radius: 14px !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
  }

  .desktop-game-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25) !important;
  }

  .desktop-game-icon {
    font-size: 28px !important;
    line-height: 1 !important;
  }

  .desktop-game-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #ffd700 !important;
  }

  .desktop-game-desc {
    font-size: 10px !important;
    color: #a0aec0 !important;
  }

  .desktop-game-btn {
    width: 100% !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
  }

  /* Daily Streak Card Layout on Desktop */
  .streak-card-wrapper {
    margin-bottom: 0 !important;
  }

  .streak-card {
    padding: 12px 16px !important;
    border-radius: 14px !important;
  }

  /* Sidebar Winners & Chat Blocks */
  .sidebar-block {
    padding: 10px !important;
  }

  .chat-messages {
    max-height: 220px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLAYCOIN MARKET DASHBOARD, CANDLESTICK CHART & REDEMPTION STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.market-dashboard-modal {
  max-width: 1040px !important;
  width: 96% !important;
  max-height: 94vh !important;
  overflow-y: auto !important;
  background: radial-gradient(circle at 50% 0%, #0c1427 0%, #060a14 60%, #03050a 100%) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 240, 255, 0.15) !important;
  padding: 18px !important;
  color: #f1f5f9 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Top Terminal Header */
.market-header-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.market-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-token-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 215, 0, 0.2));
  border: 1.5px solid var(--cyan-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.market-titles h2 {
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 17px;
  margin: 0;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-brand-glow {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  font-weight: 900;
}

.terminal-pair-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.market-status-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.4);
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.market-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-terminal-deposit {
  background: linear-gradient(135deg, #00f0ff 0%, #0077ff 100%);
  color: #000;
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
  transition: all 0.2s ease;
}

.btn-terminal-deposit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.8);
}

/* Terminal Metrics Strip */
.terminal-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.market-card {
  background: rgba(11, 18, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.market-card.highlight-card {
  border-color: rgba(0, 240, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(6, 10, 22, 0.9));
}

.market-card.user-bal-card {
  border-color: rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(6, 10, 22, 0.9));
}

.market-card-label {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.market-card-value {
  font-family: 'Orbitron', 'Sora', monospace;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
}

.live-price-glow {
  color: var(--cyan-accent);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.market-stat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  width: fit-content;
}

.market-stat-badge.bullish, .activity-right.bullish {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
}

.market-stat-badge.bearish, .activity-right.bearish {
  background: rgba(255, 23, 68, 0.15);
  color: #ff1744;
}

/* Candlestick Chart Area */
.market-chart-section {
  background: rgba(4, 7, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.market-chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Chart Type Selector Tabs */
.market-chart-types {
  display: flex;
  gap: 3px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.market-type-tab {
  background: none;
  border: none;
  color: #64748b;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.market-type-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.market-type-tab.active {
  background: var(--gold-primary);
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.market-time-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.market-time-tab {
  background: none;
  border: none;
  color: #64748b;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.market-time-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.market-time-tab.active {
  background: var(--cyan-accent);
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}


/* Live Cursor HUD Bar */
.market-hud-bar {
  display: flex;
  gap: 10px;
  font-family: 'Orbitron', 'Sora', monospace;
  font-size: 10px;
  color: #94a3b8;
  align-items: center;
}

.hud-item {
  display: inline-flex;
  gap: 3px;
}

.hud-lbl {
  color: #64748b;
  font-weight: 800;
}

.market-chart-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #64748b;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.legend-dot.green { background: #00e676; }
.legend-dot.red { background: #ff1744; }

/* Canvas Stage */
.market-canvas-container {
  position: relative;
  width: 100%;
  height: 330px;
  min-height: 270px;
  background: radial-gradient(circle at 50% 50%, #080f1d 0%, #03060c 100%);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

#marketCandleCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

/* Floating Chart Tooltip */
.market-chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(6, 10, 20, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 10px;
  color: #fff;
  z-index: 100;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  min-width: 160px;
}

.market-chart-tooltip .tt-header {
  font-size: 9px;
  color: var(--cyan-accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3px;
  margin-bottom: 4px;
}

.market-chart-tooltip .tt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 6px;
  font-size: 9px;
}

.market-chart-tooltip .tt-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3px;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
}

/* Chart Overlay Status */
.market-chart-state-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 15, 0.9);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 11px;
  z-index: 20;
}

.market-spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Bottom Trading & Settlement Section */
.market-bottom-section {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

.market-activity-card, .market-trading-panel {
  background: rgba(11, 18, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.market-activity-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 190px;
  overflow-y: auto;
}

.market-activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

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

.activity-details {
  display: flex;
  flex-direction: column;
}

.activity-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.activity-time {
  font-size: 9px;
  color: #64748b;
}

.activity-right {
  font-family: 'Orbitron', 'Sora', monospace;
  font-size: 11px;
  font-weight: 800;
}

.market-empty-activity {
  padding: 28px 12px;
  text-align: center;
  color: #64748b;
  font-size: 11px;
}

/* Trading Capital Box */
.trading-capital-box {
  background: rgba(6, 10, 20, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.capital-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.capital-label {
  color: #94a3b8;
}

.capital-val {
  font-family: 'Orbitron', 'Sora', monospace;
  font-size: 12px;
}

.valuation-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 5px;
  margin-top: 2px;
}

.trading-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-trade-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-trade-action.pay-btn, .btn-trade-action.deposit-btn {
  background: linear-gradient(135deg, #00f0ff 0%, #0077ff 100%);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

.btn-trade-action.pay-btn:hover, .btn-trade-action.deposit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.7);
}


.btn-trade-action.spin-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.35);
}

.btn-trade-action.spin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.7);
}

.action-icon {
  font-size: 18px;
}

.action-text {
  display: flex;
  flex-direction: column;
}

.action-title {
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.action-sub {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.85;
}

.terminal-note-box {
  font-size: 10px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.35;
}

/* Telegram Redemption Confirmation Modal */
.redeem-confirm-card {
  max-width: 440px !important;
  width: 92% !important;
  background: linear-gradient(145deg, #0c1427 0%, #060a14 100%) !important;
  border: 1.5px solid var(--gold-primary) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.35) !important;
  padding: 20px !important;
  text-align: center !important;
  color: #fff !important;
}

.redeem-balance-pill {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}

.redeem-balance-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.redeem-balance-val {
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-primary);
  margin-top: 4px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.redeem-info-box {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 14px;
}

.redeem-info-box ol {
  margin: 4px 0 0 14px;
  padding: 0;
}

.redeem-info-box li {
  margin-bottom: 3px;
}

.btn-chart-expand {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: none !important;
}

.btn-chart-expand:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Fullscreen Chart Mode — Pure user controlled, graph-focused, zero auto-shifting or animations */
.market-dashboard-modal.fullscreen-chart-mode {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  z-index: 9999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  transition: none !important;
  animation: none !important;
}

/* In expand mode, hide all non-chart panels completely */
.market-dashboard-modal.fullscreen-chart-mode .market-stats-row,
.market-dashboard-modal.fullscreen-chart-mode .terminal-section-nav-bar,
.market-dashboard-modal.fullscreen-chart-mode .market-bottom-section,
.market-dashboard-modal.fullscreen-chart-mode .app-bottom-nav-bar,
.market-dashboard-modal.fullscreen-chart-mode .btn-terminal-deposit {
  display: none !important;
}

.market-dashboard-modal.fullscreen-chart-mode .market-header-block {
  padding-bottom: 4px !important;
  margin-bottom: 2px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.market-dashboard-modal.fullscreen-chart-mode .market-chart-section {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 65px) !important;
  min-height: calc(100vh - 65px) !important;
  transition: none !important;
}

.market-dashboard-modal.fullscreen-chart-mode .market-canvas-container {
  flex: 1 !important;
  height: calc(100vh - 115px) !important;
  min-height: calc(100vh - 115px) !important;
  transition: none !important;
}

/* Native Android Mobile App Header Styles */
.app-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-header-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.app-header-price {
  font-family: 'Orbitron', 'Sora', monospace;
  font-size: 12.5px;
  font-weight: 900;
  color: #00f0ff;
}

.app-header-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.app-control-dropdown {
  display: inline-block;
}

.app-select-pill, .app-select-pill-sm {
  background: #080d1a;
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

.app-select-pill-sm {
  font-size: 9.5px;
  padding: 4px 6px;
}

.app-select-pill option, .app-select-pill-sm option {
  background: #040711;
  color: #f1f5f9;
}

.app-close-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.app-close-icon-btn:hover {
  background: rgba(255, 23, 68, 0.3);
  color: #ff1744;
}

/* Streamlined Chart Toolbar */
.app-chart-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-toolbar-dropdown {
  display: inline-block;
}

.app-time-tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
}

.app-drawing-tools {
  display: flex;
  gap: 2px;
}

.app-hud-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #94a3b8;
  font-family: 'Orbitron', 'Sora', monospace;
  margin-left: auto;
}

/* Native App Fixed Bottom Navigation Bar (Mobile Viewports) */
.app-bottom-nav-bar {
  display: none;
}

@media (max-width: 768px) {
  .app-bottom-nav-bar {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.3fr 1.2fr;
    gap: 5px;
    background: rgba(6, 10, 22, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 8px;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }

  .app-nav-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    color: #94a3b8;
    font-family: 'Orbitron', 'Sora', sans-serif;
  }

  .app-nav-item.active {
    background: rgba(0, 240, 255, 0.18);
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.4);
  }

  .app-nav-item.buy-action {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.3), rgba(0, 230, 118, 0.1));
    border: 1px solid rgba(0, 230, 118, 0.6);
    color: #00e676;
    font-weight: 900;
  }

  .app-nav-item.sell-action {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.3), rgba(255, 23, 68, 0.1));
    border: 1px solid rgba(255, 23, 68, 0.6);
    color: #ff1744;
    font-weight: 900;
  }

  .app-nav-label {
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
  }
}

/* Trading M-Pesa Deposit Preset Chips */
.deposit-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #cbd5e1;
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deposit-chip:hover, .deposit-chip.active {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Technical Indicators Toggles */
.market-indicators-group {

  display: flex;
  gap: 3px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}


.market-indicator-btn {
  background: none;
  border: none;
  color: #64748b;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.market-indicator-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.market-indicator-btn.active {
  background: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-weight: 900;
}

/* Drawing Tools */
.market-drawing-tools {
  display: flex;
  gap: 3px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.drawing-tool-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawing-tool-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.drawing-tool-btn.active {
  background: rgba(255, 215, 0, 0.25);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.5);
}

/* Workspace Multi-Tab Header */
.workspace-tabs-header {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
}

.workspace-tab-btn {
  background: none;
  border: none;
  color: #64748b;
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

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

.workspace-tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.workspace-tab-badge {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 10px;
}

.workspace-pane {
  display: none;
}

.workspace-pane.active {
  display: block;
}

/* Positions, Orders, and History Lists */
.market-positions-list, .market-orders-list, .market-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.position-card, .order-card {
  background: rgba(6, 10, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.position-side-pill {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.position-side-pill.buy {
  background: rgba(0, 230, 118, 0.18);
  color: #00e676;
}

.position-side-pill.sell {
  background: rgba(255, 23, 68, 0.18);
  color: #ff1744;
}

.position-pl-badge {
  font-family: 'Orbitron', 'Sora', monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.position-pl-badge.profit {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
}

.position-pl-badge.loss {
  background: rgba(255, 23, 68, 0.15);
  color: #ff1744;
}

.btn-close-position {
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid rgba(255, 23, 68, 0.4);
  color: #ff1744;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-close-position:hover {
  background: #ff1744;
  color: #fff;
}

/* Trading Side Tabs & Input Form */
.trade-side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 8px;
}

.trade-side-tab {
  background: none;
  border: none;
  color: #64748b;
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.trade-side-tab.active-buy {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.3), rgba(0, 230, 118, 0.1));
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.5);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.25);
}

.trade-side-tab.active-sell {
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.3), rgba(255, 23, 68, 0.1));
  color: #ff1744;
  border: 1px solid rgba(255, 23, 68, 0.5);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.25);
}

.app-trade-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-type-badge {
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.btn-micro-deposit {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-micro-deposit:hover {
  background: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.trade-input-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-input-group label {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  display: block;
}

.trade-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.app-stepper-wrapper {
  display: flex;
  align-items: center;
  background: rgba(4, 7, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 2px;
  position: relative;
}

.app-stepper-wrapper:focus-within {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.trade-stepper-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 900;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.trade-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.app-stepper-wrapper input {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 38px 8px 8px;
  color: #fff;
  font-family: 'Orbitron', 'Sora', monospace;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  outline: none;
  min-width: 0;
}

.trade-input-unit {
  position: absolute;
  right: 38px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.trade-quick-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.trade-preview-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 10, 20, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 10px;
}

.preview-label {
  color: #64748b;
  font-weight: 600;
}

.preview-val {
  color: #00f0ff;
  font-family: 'Orbitron', 'Sora', monospace;
  font-weight: 800;
}

.btn-execute-trade {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Orbitron', 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-execute-trade.buy {
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
  color: #000;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.35);
}

.btn-execute-trade.buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.65);
}

.btn-execute-trade.sell {
  background: linear-gradient(135deg, #ff1744 0%, #ff5252 100%);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 23, 68, 0.35);
}

.btn-execute-trade.sell:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(255, 23, 68, 0.65);
}


.trading-secondary-actions {
  margin-top: 4px;
}

/* Mobile & Android Responsiveness for Trading Terminal */
@media (max-width: 768px) {
  .game-modal-overlay.terminal-modal-overlay {
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  .market-dashboard-modal {
    padding: 8px 10px !important;
    gap: 6px !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  .market-header-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 6px;
  }

  .market-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .market-titles h2 {
    font-size: 13px;
  }

  .terminal-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .market-card {
    padding: 6px 8px;
  }

  .market-canvas-container {
    height: 250px;
  }

  .market-hud-bar {
    font-size: 8.5px;
    gap: 4px;
    overflow-x: auto;
  }

  .market-bottom-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ⚡ PROFESSIONAL BINARY / PREDICTION OPTIONS TERMINAL STYLING
   ═══════════════════════════════════════════════════════════════════════════ */

.app-pair-selector-wrap {
  display: inline-flex;
  align-items: center;
}

.app-pair-select-pill {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 11px;
  font-weight: 800;
  border-radius: 20px;
  padding: 3px 8px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.app-pair-select-pill:hover,
.app-pair-select-pill:focus {
  background: rgba(0, 240, 255, 0.25);
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.app-pair-select-pill option {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
}

.terminal-back-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.2s ease;
}

.terminal-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.terminal-header-balance-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(0, 240, 255, 0.15) 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.terminal-header-balance-chip:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(0, 240, 255, 0.3) 100%);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.terminal-header-balance-chip .bal-label {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
}

.terminal-header-balance-chip .bal-value {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffd700;
}

.terminal-header-balance-chip .bal-plus {
  background: var(--gold-primary);
  color: #000;
  width: 15px;
  height: 15px;
  font-size: 11px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Binary Control Deck */
.binary-trading-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-type-badge.binary-badge {
  background: rgba(0, 230, 118, 0.15);
  border-color: #00e676;
  color: #00e676;
  font-weight: 800;
}

.binary-section-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.binary-countdown-badge {
  font-size: 10px;
  font-weight: 800;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.binary-interval-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 4px;
}

.interval-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 4px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.interval-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.interval-chip.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(0, 230, 118, 0.25) 100%);
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  font-weight: 800;
}

.binary-capital-box {
  margin-top: 2px;
}

.trade-quick-chips.binary-chips {
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.trade-preview-strip.binary-payout-strip {
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
}

/* Primary Dual Action Prediction Buttons */
.binary-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.btn-predict-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 72px;
}

.btn-predict-action:active {
  transform: scale(0.97);
}

.btn-predict-action.call {
  background: linear-gradient(135deg, #00c853 0%, #00e676 50%, #00b0ff 100%);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.35);
  color: #06101e;
}

.btn-predict-action.call:hover {
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.55);
  transform: translateY(-2px);
}

.btn-predict-action.put {
  background: linear-gradient(135deg, #d50000 0%, #ff1744 50%, #ff5252 100%);
  box-shadow: 0 6px 20px rgba(213, 0, 0, 0.35);
  color: #fff;
}

.btn-predict-action.put:hover {
  box-shadow: 0 8px 25px rgba(255, 23, 68, 0.55);
  transform: translateY(-2px);
}

.btn-predict-action .action-direction {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.btn-predict-action .action-subtext {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.9;
  margin-top: 2px;
}

.btn-predict-action .action-payout-badge {
  font-size: 9px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 6px;
  border-radius: 6px;
  margin-top: 4px;
}

/* Active Predictions Card Layout */
.binary-active-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.binary-active-card.winning {
  border-color: rgba(0, 230, 118, 0.5);
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.08) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.binary-active-card.losing {
  border-color: rgba(255, 23, 68, 0.4);
  background: linear-gradient(90deg, rgba(255, 23, 68, 0.06) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.binary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.binary-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
}

.binary-badge-call {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
}

.binary-badge-put {
  background: rgba(255, 23, 68, 0.2);
  color: #ff1744;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
}

.binary-card-timer {
  font-size: 11px;
  font-weight: 800;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  padding: 2px 7px;
  border-radius: 12px;
}

.binary-card-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-size: 11px;
  margin-bottom: 8px;
}

.binary-body-item {
  display: flex;
  flex-direction: column;
}

.binary-body-item .lbl {
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
}

.binary-body-item .val {
  color: #fff;
  font-weight: 800;
  margin-top: 1px;
}

.binary-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.btn-close-early {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-early:hover {
  background: var(--gold-primary);
  color: #000;
}

/* History Cards */
.binary-history-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
}

.binary-history-card.won {
  border-left: 3px solid #00e676;
}

.binary-history-card.lost {
  border-left: 3px solid #ff1744;
}

.binary-history-card.tie {
  border-left: 3px solid #94a3b8;
}

/* Performance Stats Grid */
.perf-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px 0;
}

.perf-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.perf-stat-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  display: block;
}

.perf-stat-num {
  font-size: 15px;
  font-weight: 900;
  margin-top: 4px;
  display: block;
}

/* Orderbook */
.market-orderbook-container {
  padding: 4px 0;
}

.orderbook-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
  text-align: center;
}

.orderbook-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 11px;
  padding: 3px 0;
  text-align: center;
  position: relative;
}

.orderbook-row .bid-col {
  color: #00e676;
  font-weight: 700;
}

.orderbook-row .mid-col {
  color: #fff;
  font-weight: 800;
}

.orderbook-row .ask-col {
  color: #ff1744;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 ANDROID NATIVE TRADING TERMINAL MOBILE-FIRST STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.terminal-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.mobile-app-terminal {
  width: 96%;
  max-width: 1080px;
  max-height: 94vh;
  background: radial-gradient(circle at 50% 0%, #0c1427 0%, #060a14 70%, #020408 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 240, 255, 0.12);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: #f1f5f9;
  position: relative;
}

/* App Header Bar */
.app-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.market-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-header-price-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-header-price {
  font-family: 'Orbitron', 'Sora', monospace;
  font-size: 14.5px;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 0.5px;
}

.btn-fullscreen-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #00f0ff;
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fullscreen-toggle:hover {
  background: rgba(0, 240, 255, 0.2);
  transform: scale(1.05);
}

/* Compact 24H Market Info Ribbon */
.market-stats-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 10.5px;
  overflow-x: auto;
  white-space: nowrap;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ribbon-lbl {
  color: #64748b;
  font-weight: 700;
  font-size: 9.5px;
}

.ribbon-val {
  font-weight: 800;
  color: #cbd5e1;
}

.ribbon-val.high { color: #00e676; }
.ribbon-val.low { color: #ff1744; }
.ribbon-val.vol { color: #00f0ff; }

/* Chart Section & Toolbar */
.market-chart-section {
  background: rgba(4, 7, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.app-chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toolbar-left-group, .toolbar-right-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.app-select-pill-sm {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  outline: none;
}

.app-select-pill-sm option {
  background: #0f172a;
  color: #fff;
}

.drawing-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawing-tool-btn.active, .drawing-tool-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #00f0ff;
}

/* Wager Controls & Stepper */
.wager-controls-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.app-stepper-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
}

.trade-stepper-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #00f0ff;
  font-size: 16px;
  font-weight: 900;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.trade-stepper-btn:hover {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

.app-stepper-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffd700;
  font-family: 'Orbitron', 'Sora', monospace;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  outline: none;
  min-width: 60px;
}

.trade-input-unit {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  padding-right: 8px;
}

.preview-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.preview-val.total {
  font-size: 13px;
  color: #ffd700;
  font-weight: 900;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 DEDICATED FULLSCREEN MOBILE TRADING TERMINAL MODE
   ═══════════════════════════════════════════════════════════════════════════ */

.mobile-app-terminal.fullscreen-chart-mode {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 8px !important;
  z-index: 9999999 !important;
  background: #030712 !important;
  gap: 6px !important;
}

.mobile-app-terminal.fullscreen-chart-mode .market-stats-ribbon,
.mobile-app-terminal.fullscreen-chart-mode .market-activity-card {
  display: none !important;
}

.mobile-app-terminal.fullscreen-chart-mode .market-chart-section {
  flex: 1 !important;
  height: auto !important;
  min-height: 0 !important;
}

.mobile-app-terminal.fullscreen-chart-mode .market-canvas-container {
  height: calc(100dvh - 170px) !important;
  min-height: 250px !important;
}

.mobile-app-terminal.fullscreen-chart-mode .btn-fullscreen-toggle {
  background: var(--gold-primary);
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 RESPONSIVE BREAKPOINTS (360px, 375px, 390px, 412px, 430px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .mobile-app-terminal {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  .market-canvas-container {
    height: 48vh !important;
    min-height: 220px !important;
  }

  .market-bottom-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .binary-actions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .btn-predict-action {
    min-height: 56px;
    padding: 8px 4px;
  }
}

@media (max-width: 480px) {
  .app-header-price {
    font-size: 13px;
  }

  .terminal-header-balance-chip .bal-value {
    font-size: 10.5px;
  }

  .interval-chip {
    font-size: 9.5px;
    padding: 5px 2px;
  }

  .wager-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .trade-quick-chips.binary-chips {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .quick-chip {
    padding: 5px 2px;
    font-size: 10px;
  }

  .market-canvas-container {
    height: 44vh !important;
    min-height: 200px !important;
  }
}

@media (max-width: 380px) {
  .app-header-bar {
    gap: 4px;
  }

  .terminal-back-btn, .btn-fullscreen-toggle, .app-close-icon-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .app-pair-select-pill {
    font-size: 10px;
    padding: 2px 5px;
  }

  .app-header-price {
    font-size: 12px;
  }

  .btn-predict-action .action-direction {
    font-size: 12px;
  }
}













