/* ==========================================================================
   BIGBOSS BANGKOK • OFFICIAL DESIGN SYSTEM & PWA STYLES
   Theme: Luxury Bangkok Culture, Gold Foil & Obsidian Dark Glassmorphism
   Reference Architecture: www.BigBoss Bangkok
   ========================================================================== */

:root {
  --bg-main: #0B0F19;
  --bg-card: rgba(19, 26, 42, 0.85);
  --bg-card-border: rgba(245, 158, 11, 0.25);
  --bg-gold-grad: linear-gradient(135deg, #FDE047 0%, #F59E0B 50%, #B45309 100%);
  --bg-emerald-grad: linear-gradient(135deg, #34D399 0%, #10B981 50%, #065F46 100%);
  --bg-ruby-grad: linear-gradient(135deg, #F87171 0%, #EF4444 50%, #991B1B 100%);
  --bg-blue-grad: linear-gradient(135deg, #38BDF8 0%, #0284C7 50%, #0C4A6E 100%);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-gold: #F59E0B;
  --text-green: #10B981;
  --text-red: #EF4444;
  --nav-height: 64px;
  --max-app-width: 480px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.65) 0%, rgba(3, 7, 18, 0.82) 100%), url('/assets/aviator_bg.jpg') center center / cover no-repeat fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
  user-select: none;
}

/* Master Mobile Phone Wrapper (Desktop Centered) */
#app-viewport {
  width: 100%;
  max-width: var(--max-app-width);
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.72) 0%, rgba(11, 15, 25, 0.86) 100%), url('/assets/aviator_bg.jpg') center top / cover no-repeat fixed;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(245, 158, 11, 0.25);
  padding-bottom: calc(var(--nav-height) + 16px);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.3);
  border-radius: 4px;
}

/* ==========================================================================
   HEADER & TOP ACTIONS (Uncongested, Sleek VIP Mobile Bar)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.3px;
  background: var(--bg-gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  font-size: 8.5px;
  font-weight: 800;
  color: #F59E0B;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.header-balance-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(145deg, #162033, #0F172A);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 20px;
  padding: 5px 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-balance-chip:hover {
  border-color: #FDE047;
}

.header-bal-icon {
  font-size: 13px;
}

.header-bal-val {
  font-size: 12px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  display: flex;
  align-items: baseline;
}

.header-bal-val #cur-symbol-span {
  color: #F59E0B;
  font-size: 11px;
  margin-right: 2px;
}

.header-bal-refresh {
  font-size: 11px;
  color: #94A3B8;
  transition: transform 0.3s ease;
  padding-left: 2px;
}

.header-balance-chip:hover .header-bal-refresh {
  color: #FDE047;
  transform: rotate(180deg);
}

.btn-header-deposit {
  background: var(--bg-gold-grad);
  border: none;
  border-radius: 20px;
  padding: 5px 10px;
  color: #0F172A;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header-deposit:active {
  transform: scale(0.95);
}

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

.btn-header-ctrl {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 5px 7px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.btn-header-ctrl:active {
  transform: scale(0.94);
}

.btn-curr-toggle {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(16, 185, 129, 0.2));
  color: #FEF08A;
  border-color: #F59E0B;
}

/* ==========================================================================
   VIP PROFILE & WALLET HUD CARD
   ========================================================================== */
.vip-wallet-card {
  margin: 12px 14px 6px;
  background: linear-gradient(145deg, #161F33, #0F172A);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(254, 240, 138, 0.2);
  position: relative;
  overflow: hidden;
}

.vip-wallet-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.vip-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #F59E0B;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-avatar-wrap img {
  width: 32px;
  height: 32px;
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.username-lbl {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
}

.vip-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-gold-grad);
  color: #0F172A;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 12px;
  margin-top: 3px;
  width: fit-content;
}

.balance-box {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

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

.balance-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-digits {
  font-size: 26px;
  font-weight: 900;
  color: #FFFFFF;
  margin-top: 2px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.balance-digits .cur-symbol {
  color: var(--text-gold);
  font-size: 20px;
}

.wallet-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-quick-action {
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

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

.btn-deposit-gold {
  background: var(--bg-gold-grad);
  color: #0F172A;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-withdraw-subtle {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #F8FAFC;
}

/* ==========================================================================
   LIVE WINNING MARQUEE TICKER
   ========================================================================== */
.live-winning-ticker {
  margin: 6px 14px 10px;
  background: rgba(19, 26, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.ticker-icon {
  font-size: 14px;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  font-size: 11px;
  color: #CBD5E1;
  font-weight: 600;
  animation: marquee 55s linear infinite;
}

.ticker-text:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   HERO PROMOTIONAL BANNER - 3D4N BANGKOK VIP TRIP CAMPAIGN
   ========================================================================== */
.promo-campaign-banner {
  margin: 0 14px 14px;
  min-height: 200px;
  border-radius: 16px;
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-campaign-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.35);
}

.promo-hero-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.promo-hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.75) 0%, rgba(11, 15, 25, 0.88) 60%, rgba(11, 15, 25, 0.98) 100%);
  z-index: 2;
}

.promo-hero-content {
  position: relative;
  z-index: 3;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-top-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-badge {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

.tag-sub {
  font-size: 9.5px;
  color: #FEF08A;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.promo-hero-title {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.text-gold-glow {
  color: #FDE047;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
}

.text-cyan-glow {
  color: #38BDF8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.promo-bonus-strip {
  display: flex;
  align-items: center;
}

.bonus-highlight-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.2);
}

.bonus-pct {
  background: var(--bg-gold-grad);
  color: #0F172A;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.bonus-msg {
  font-size: 11px;
  color: #F8FAFC;
  font-weight: 600;
}

.promo-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 2px;
}

.promo-perk-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.perk-ico {
  font-size: 12px;
}

.perk-txt {
  font-size: 9.5px;
  color: #CBD5E1;
  font-weight: 600;
  white-space: nowrap;
}

.promo-btn-wrapper {
  margin-top: 4px;
}

.btn-hero-claim-trip {
  width: 100%;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
  color: #0F172A;
  font-size: 12px;
  font-weight: 900;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
}

.btn-hero-claim-trip:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-hero-claim-trip:active {
  transform: scale(0.98);
}

/* ==========================================================================
   CATEGORY NAVIGATION TABS (BigBoss Bangkok style horizontal scroll)
   ========================================================================== */
.category-nav-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px 12px;
  scrollbar-width: none;
}
.category-nav-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  background: rgba(19, 26, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  padding: 7px 14px;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.category-pill.active {
  background: var(--bg-gold-grad);
  color: #0F172A;
  border-color: #F59E0B;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   10-GAMES MASTER GRID
   ========================================================================== */
.section-title-row {
  padding: 0 14px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-size: 15px;
  font-weight: 900;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-gold);
}

/* ==========================================================================
   GAMES HERO SHOWCASE SLIDER (11 Real-Time Bangkok Engines)
   ========================================================================== */
.games-hero-slider-wrap {
  margin: 0 14px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 2px;
}

.hero-slider-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
  color: #FCA5A5;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero-slider-tag .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
  animation: pulse-dot 1.4s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-slider-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-slider-counter {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-gold);
  background: rgba(19, 26, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.hero-slider-viewport {
  position: relative;
  width: 100%;
  height: 195px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 158, 11, 0.18);
  background: #090D16;
  touch-action: pan-y pinch-zoom;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slide-item {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

.hero-slide-item:active {
  filter: brightness(1.08);
}

.hero-slide-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.6s ease;
  z-index: 1;
}

.hero-slide-item:hover .hero-slide-art {
  transform: scale(1.04);
}

.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 15, 25, 0.15) 0%,
    rgba(11, 15, 25, 0.55) 45%,
    rgba(11, 15, 25, 0.94) 85%,
    rgba(11, 15, 25, 0.98) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-slide-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.hero-slide-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 2.5px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-slide-players {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #E2E8F0;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(6px);
  padding: 2px 8px;
  border-radius: 12px;
}

.hero-slide-players .player-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.hero-slide-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  line-height: 1.25;
}

.hero-slide-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.hero-slide-sub {
  margin: 0;
  font-size: 11px;
  color: #CBD5E1;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.btn-hero-launch {
  flex-shrink: 0;
  background: var(--bg-gold-grad);
  color: #0F172A;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.45);
  transition: all 0.2s ease;
}

.btn-hero-launch:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-hero-launch:active {
  transform: scale(0.96);
}

/* Nav Prev & Next Buttons */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 15, 25, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-slider-nav:hover {
  background: var(--bg-gold-grad);
  color: #0F172A;
  border-color: #F59E0B;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.hero-slider-nav:active {
  transform: translateY(-50%) scale(0.92);
}

.hero-nav-prev {
  left: 8px;
}

.hero-nav-next {
  right: 8px;
}

/* Pagination Dots */
.hero-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 0 4px;
}

.hero-slider-dot {
  height: 6px;
  width: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slider-dot.active {
  width: 22px;
  background: var(--bg-gold-grad);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 14px 20px;
}

.game-card {
  background: rgba(19, 26, 42, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.game-card:hover, .game-card:active {
  transform: translateY(-3px);
  border-color: #F59E0B;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.game-card-art {
  height: 120px;
  background: #090D16;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-art img {
  transform: scale(1.05);
}

.game-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.badge-hot {
  background: var(--bg-ruby-grad);
  color: #FFFFFF;
}

.badge-new {
  background: var(--bg-emerald-grad);
  color: #FFFFFF;
}

.badge-trend {
  background: var(--bg-gold-grad);
  color: #0F172A;
}

.game-players-count {
  position: absolute;
  bottom: 4px;
  right: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #E2E8F0;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.game-card-meta {
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.game-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-subtitle {
  font-size: 9.5px;
  color: var(--text-secondary);
}

.game-card-play-btn {
  margin-top: 5px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FDE047;
  font-size: 10px;
  font-weight: 800;
  padding: 4px;
  border-radius: 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.game-card:hover .game-card-play-btn {
  background: var(--bg-gold-grad);
  color: #0F172A;
  border-color: #F59E0B;
}

/* ==========================================================================
   GAME ARENA MODAL (Full Screen / Slide-Up Viewport)
   ========================================================================== */
#game-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: flex-end;
}

#game-modal-overlay.active {
  display: flex;
}

.game-modal-window {
  width: 100%;
  max-width: var(--max-app-width);
  height: 94vh;
  background: #0B0F19;
  border-radius: 20px 20px 0 0;
  border-top: 2px solid #F59E0B;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
}

@keyframes slideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

.game-modal-header {
  padding: 12px 16px;
  background: #111827;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.btn-modal-back {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.modal-game-info {
  display: flex;
  flex-direction: column;
}

.modal-game-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.modal-game-status {
  font-size: 9px;
  color: var(--text-green);
  font-weight: 700;
}

.modal-header-balance {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-gold);
}

.game-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}

/* ==========================================================================
   FIXED BOTTOM NAVIGATION BAR (BigBoss Bangkok 5-Tab Dock)
   ========================================================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: var(--max-app-width);
  height: var(--nav-height);
  background: rgba(11, 15, 25, 0.98);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 150;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.nav-tab-btn {
  background: none;
  border: none;
  color: #64748B;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab-icon {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.nav-tab-label {
  font-size: 10px;
  font-weight: 700;
}

.nav-tab-btn.active {
  color: #F59E0B;
}

.nav-tab-btn.active .nav-tab-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.7));
}

/* ==========================================================================
   GENERIC APP TABS (Activity, Wallet, Profile)
   ========================================================================== */
.app-tab-panel {
  display: none;
  padding: 14px;
}

.app-tab-panel.active {
  display: block;
}

/* Daily Blessing Activity Card */
.activity-banner {
  background: linear-gradient(135deg, #1E1B4B, #0F172A);
  border: 1px solid #F59E0B;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  text-align: center;
}

.checkin-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 14px 0;
}

.checkin-cell {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 6px 2px;
  text-align: center;
  font-size: 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkin-cell.claimed {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #34D399;
}

.checkin-cell.today {
  border-color: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.btn-claim-daily {
  background: var(--bg-gold-grad);
  border: none;
  color: #0F172A;
  font-size: 13px;
  font-weight: 900;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  cursor: pointer;
}

/* Wallet Recharge & Withdraw */
.wallet-method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.wallet-tab-btn {
  flex: 1;
  padding: 10px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #CBD5E1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.wallet-tab-btn.active {
  background: var(--bg-gold-grad);
  color: #0F172A;
  border-color: #F59E0B;
}

.qr-display-box {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}

.qr-img {
  width: 170px;
  height: 170px;
  margin: 0 auto;
}

/* Toast System */
#bkk-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #0F172A;
  border: 1.5px solid #F59E0B;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 800;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

#bkk-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Big Win Celebration Modal */
#big-win-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#big-win-overlay.active {
  display: flex;
}

.big-win-dialog {
  background: linear-gradient(145deg, #1E1B4B, #0F172A);
  border: 2px solid #F59E0B;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.6);
  max-width: 340px;
  animation: popScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popScale {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.big-win-crown {
  font-size: 48px;
  margin-bottom: 8px;
  animation: float 2s infinite ease-in-out;
}

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

.big-win-title {
  font-size: 22px;
  font-weight: 900;
  background: var(--bg-gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.big-win-amount {
  font-size: 32px;
  font-weight: 900;
  color: #34D399;
  margin: 8px 0;
}

.big-win-sub {
  font-size: 12px;
  color: #CBD5E1;
  margin-bottom: 16px;
}

.btn-collect-win {
  background: var(--bg-gold-grad);
  border: none;
  color: #0F172A;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 24px;
  border-radius: 12px;
  cursor: pointer;
}

/* ==========================================================================
   MINE / PROFILE TAB SPECIFIC STYLES
   ========================================================================== */
.mine-profile-card {
  margin: 0 0 14px 0;
  background: linear-gradient(145deg, #161F33, #0F172A);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mine-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.mine-avatar-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #F59E0B;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
  flex-shrink: 0;
}

.mine-avatar-ring img {
  width: 36px;
  height: 36px;
}

.mine-user-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mine-username-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mine-username {
  font-size: 15px;
  font-weight: 900;
  color: #FFFFFF;
}

.mine-uid-row {
  font-size: 11px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mine-uid-row strong {
  color: #FDE047;
}

.btn-copy-uid {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FDE047;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.mine-status-row {
  font-size: 10px;
  color: #10B981;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  font-size: 9px;
}

.mine-vip-progress-box {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
}

.vip-prog-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #FEF08A;
  margin-bottom: 6px;
}

.vip-prog-track {
  height: 6px;
  background: #1E293B;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.vip-prog-bar {
  height: 100%;
  background: var(--bg-gold-grad);
  border-radius: 3px;
}

.vip-prog-sub {
  font-size: 9.5px;
  color: #94A3B8;
  line-height: 1.3;
}

.sub-wallets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(11, 15, 25, 0.6);
  border-radius: 8px;
  padding: 10px 8px;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.sub-wallet-item {
  text-align: center;
}

.sub-wal-lbl {
  font-size: 9.5px;
  color: #94A3B8;
  margin-bottom: 2px;
}

.sub-wal-val {
  font-size: 12px;
  font-weight: 800;
  color: #FEF08A;
}

.mine-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.mine-service-item {
  background: linear-gradient(145deg, #151D2E, #0F172A);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mine-service-item:hover, .mine-service-item:active {
  border-color: #F59E0B;
  transform: translateY(-2px);
}

.srv-icon {
  font-size: 22px;
}

.srv-label {
  font-size: 10px;
  color: #CBD5E1;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.mine-menu-btn {
  background: #0F172A;
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #FFFFFF;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mine-menu-btn:hover {
  background: #162033;
  border-color: #F59E0B;
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-arrow {
  color: #F59E0B;
  font-size: 14px;
}

.mine-menu-btn.admin-link {
  background: rgba(245, 158, 11, 0.12);
  border-color: #F59E0B;
  color: #FEF08A;
}

.menu-badge-green {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #10B981;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
}

/* ==========================================================================
   LIVE PLATFORM JACKPOTS & WINS (BigBoss Bangkok style feed)
   ========================================================================== */
.live-jackpot-feed {
  margin: 0 14px 20px;
  background: linear-gradient(145deg, #161F33, #0F172A);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 12px;
}

.jackpot-feed-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  color: #FEF08A;
}

.jackpot-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jackpot-feed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
}

.jackpot-item-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jackpot-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #F59E0B;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.jackpot-item-details {
  display: flex;
  flex-direction: column;
}

.jackpot-user-name {
  font-weight: 800;
  color: #FFFFFF;
}

.jackpot-game-name {
  font-size: 9.5px;
  color: #94A3B8;
}

.jackpot-item-payout {
  text-align: right;
}

.jackpot-win-amt {
  font-weight: 900;
  color: #34D399;
}

.jackpot-win-mult {
  font-size: 9.5px;
  color: #FDE047;
}

/* ==========================================================================
   SVG VECTOR ICON SYSTEM STYLES
   ========================================================================== */
.bkk-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.svg-gold { color: #F59E0B; }
.svg-green { color: #10B981; }
.svg-red { color: #EF4444; }
.svg-blue { color: #38BDF8; }
.svg-white { color: #FFFFFF; }

/* ==========================================================================
   AUTHENTICATION MODAL (LOGIN & SIGNUP)
   ========================================================================== */
#auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#auth-modal-overlay.active {
  display: flex;
}

.auth-modal-box {
  width: 100%;
  max-width: 410px;
  background: linear-gradient(160deg, #151D2E 0%, #0B0F19 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.2);
  position: relative;
  animation: popScale 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.btn-close-auth {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #94A3B8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.auth-brand-head {
  text-align: center;
  margin-bottom: 16px;
}

.auth-brand-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}

.auth-brand-title {
  font-size: 17px;
  font-weight: 900;
  background: var(--bg-gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-brand-sub {
  font-size: 10px;
  color: #94A3B8;
  letter-spacing: 1px;
}

.auth-tab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #060911;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 16px;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn.active {
  background: var(--bg-gold-grad);
  color: #0F172A;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-label {
  font-size: 11px;
  font-weight: 700;
  color: #CBD5E1;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-field {
  width: 100%;
  background: #080C16;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  color: #FFFFFF;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.auth-input-field:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.btn-toggle-pwd {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--bg-gold-grad);
  color: #0F172A;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-auth-submit:active { transform: scale(0.98); }

.btn-demo-quick-login {
  background: rgba(30, 41, 59, 0.8);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  color: #FEF08A;
  font-size: 11px;
  font-weight: 800;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  margin-top: 4px;
}

/* ==========================================================================
   LOBBY AUTHENTICATION BAR (Sign In / Register Call-To-Action)
   ========================================================================== */
.lobby-auth-bar {
  margin: 10px 14px 14px;
  background: linear-gradient(135deg, rgba(21, 29, 46, 0.88), rgba(11, 15, 25, 0.92));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

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

.auth-bar-left .auth-bar-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-bar-title {
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.auth-bar-sub {
  font-size: 10px;
  color: #F59E0B;
  font-weight: 600;
}

.auth-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-auth-bar-login, .btn-auth-bar-reg {
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-auth-bar-login {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FEF08A;
}

.btn-auth-bar-login:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #F59E0B;
}

.btn-auth-bar-reg {
  background: var(--bg-gold-grad);
  border: none;
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.btn-auth-bar-reg:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   PROMOTIONAL POSTER MODAL (ROYAL SIAM CAMPAIGN POPUP)
   ========================================================================== */
.promo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.promo-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #1C1917;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
  padding: 22px 18px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.promo-modal-backdrop.active .promo-modal-dialog {
  transform: scale(1) translateY(0);
}

.promo-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.promo-modal-close:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
  transform: rotate(90deg);
}

.promo-poster-frame {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-poster-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

.promo-poster-badge {
  display: none;
}

.promo-modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.promo-modal-tag {
  display: none;
}

.promo-modal-title {
  font-size: 15px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.35;
  margin: 0 0 6px 0;
  text-align: center;
}

.promo-modal-desc {
  font-size: 12.5px;
  color: #F8FAFC;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.btn-promo-cta {
  margin-top: 0;
  width: 100%;
  background: #EAB308;
  border: none;
  border-radius: 28px;
  padding: 13px 20px;
  color: #000000;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.4);
  transition: all 0.2s ease;
}

.btn-promo-cta:hover {
  transform: translateY(-2px);
  background: #FACC15;
  box-shadow: 0 6px 22px rgba(234, 179, 8, 0.6);
}

.promo-modal-dismiss-row {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.btn-promo-dismiss {
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
  transition: color 0.2s ease;
}

.btn-promo-dismiss:hover {
  color: #94A3B8;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS (Max-Width: 640px)
   ========================================================================== */
@media (max-width: 640px) {
  body, html, .app-shell, .main-viewport {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .game-view-container, .game-stage-card, .game-arena {
    padding: 8px 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  canvas.game-canvas, #aviator-canvas, #crash-canvas, #tuktuk-canvas, #plinko-canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 12px !important;
  }

  .bet-control-grid, .aviator-dual-panels, .bet-panels-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .chip-pill-row, .chip-selector-grid, .chip-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    justify-content: center !important;
  }

  .chip-pill, .chip-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
    min-width: 44px !important;
  }

  .btn-game-primary, .btn-cashout-active, .btn-action-main {
    font-size: 14px !important;
    padding: 12px 14px !important;
    width: 100% !important;
  }

  .wingo-periods-nav {
    display: flex !important;
    overflow-x: auto !important;
    gap: 6px !important;
    padding-bottom: 4px !important;
  }

  .wingo-period-tab {
    flex: 1 0 auto !important;
    min-width: 75px !important;
    font-size: 11px !important;
    padding: 6px 8px !important;
  }

  .modal-dialog, .bkk-modal-card {
    width: 95% !important;
    max-width: 95vw !important;
    margin: 12px auto !important;
    padding: 14px !important;
  }

  .game-history-card, .game-history-table-container {
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   5-SECOND FULLSCREEN GLOWING COUNTDOWN OVERLAY (WinGo & Timed Games)
   ========================================================================== */
.countdown-glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 16px;
  animation: pulseGlow 1s infinite alternate;
}

.countdown-glow-number {
  font-size: 72px;
  font-weight: 900;
  color: #EF4444;
  text-shadow: 0 0 25px rgba(239, 68, 68, 0.9), 0 0 50px rgba(239, 68, 68, 0.6);
  font-family: 'Montserrat', sans-serif;
  animation: numberZoom 1s ease-in-out infinite;
}

.countdown-glow-text {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #F87171;
  text-transform: uppercase;
  margin-top: 6px;
}

@keyframes numberZoom {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1.0); opacity: 0.9; }
}

@keyframes pulseGlow {
  0% { box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.3); }
  100% { box-shadow: inset 0 0 45px rgba(239, 68, 68, 0.6); }
}

/* ==========================================================================
   WIN / LOSS RESULT CELEBRATION MODAL
   ========================================================================== */
.settlement-result-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease-out;
}

.settlement-card {
  width: 90%;
  max-width: 380px;
  background: linear-gradient(145deg, #131A2A, #0D131F);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: popScale 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.settlement-card.win-border {
  border-color: #10B981;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.4);
}

.settlement-card.loss-border {
  border-color: #64748B;
  box-shadow: 0 0 25px rgba(100, 116, 139, 0.25);
}

.settlement-icon {
  font-size: 54px;
  margin-bottom: 8px;
}

.settlement-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.settlement-title.win-text {
  color: #10B981;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

.settlement-title.loss-text {
  color: #94A3B8;
}

.settlement-amount {
  font-size: 32px;
  font-weight: 900;
  margin: 10px 0;
}

.settlement-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #CBD5E1;
}

.btn-settlement-close {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0A0F1D;
  transition: transform 0.2s;
}

.btn-settlement-close:hover {
  transform: scale(1.02);
}

@keyframes popScale {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   GAME WIN / LOSS BET HISTORY TABLE
   ========================================================================== */
.game-history-section {
  margin-top: 18px;
  background: rgba(19, 26, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
}

.game-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
}

.game-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.game-history-table th {
  text-align: left;
  padding: 6px 8px;
  color: #94A3B8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-history-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #E2E8F0;
}

.badge-won {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 10px;
}

.badge-lost {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 10px;
}

/* ==========================================================================
   BANGKOK ROYAL LUDO STYLES
   ========================================================================== */
.ludo-arena-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ludo-track-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ludo-color-lane {
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ludo-lane-red { background: rgba(239, 68, 68, 0.15); border: 1.5px solid #EF4444; }
.ludo-lane-green { background: rgba(16, 185, 129, 0.15); border: 1.5px solid #10B981; }
.ludo-lane-yellow { background: rgba(245, 158, 11, 0.15); border: 1.5px solid #F59E0B; }
.ludo-lane-blue { background: rgba(59, 130, 246, 0.15); border: 1.5px solid #3B82F6; }

.ludo-lane-winner {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  border-color: #FACC15 !important;
}

.ludo-dice-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: rgba(19, 26, 42, 0.9);
  border-radius: 14px;
  margin: 8px 0;
}

.ludo-3d-dice {
  width: 52px;
  height: 52px;
  background: #FFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #0F172A;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.ludo-3d-dice.rolling {
  animation: diceRoll 0.6s infinite;
}

@keyframes diceRoll {
  0% { transform: rotate(0deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(0.9); }
}

