/* ============================================================
   WYNN LAS VEGAS DICE GAME - LUXURY CASINO STYLESHEET
   Mobile-First, Responsive, Glassmorphic & 3D CSS Cube
   Redesigned with Wynn Las Vegas Branding
   ============================================================ */

:root {
  /* Wynn dark luxury palette */
  --bg-primary: #0c0a07;
  --bg-secondary: #13100b;
  --bg-card: rgba(26, 21, 13, 0.85);
  --border-color: rgba(197, 164, 100, 0.18);
  /* Wynn Gold */
  --accent-gold: #c5a464;
  --accent-gold-light: #e8c97a;
  --accent-gold-glow: rgba(197, 164, 100, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-cyan: #06b6d4;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;
  --text-main: #f5f0e8;
  --text-muted: #9a8c76;
  --dice-size: 100px;
  --dice-half: 50px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Wynn specific */
  --wynn-gold-gradient: linear-gradient(135deg, #c5a464 0%, #e8c97a 50%, #c5a464 100%);
}

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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(197, 164, 100, 0.12), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(197, 164, 100, 0.06), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(197, 164, 100, 0.06), transparent 40%);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding: 0;
}

/* Responsive Full Screen App Container */
.app-container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-secondary);
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  flex: 1 1 auto;
}

.game-stage-wrapper {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header & Status Bar */
.app-header {
  padding: 14px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(197, 164, 100, 0.2);
  background: rgba(10, 8, 5, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

/* Wynn Logo in Header */
.wynn-logo-wrap {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.wynn-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.2s;
}

.wynn-logo-img:hover {
  filter: brightness(1.1);
}

/* Legacy logo-icon (kept for game page) */
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--wynn-gold-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(197, 164, 100, 0.3);
}

.logo-text h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Wallet Badge & Top-Up Pill */
.wallet-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 10px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-badge:hover {
  transform: translateY(-1px);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.wallet-coin {
  font-size: 16px;
  color: var(--accent-gold);
  animation: pulse-coin 2s infinite ease-in-out;
}

@keyframes pulse-coin {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.wallet-amount {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.btn-topup-mini {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 14px;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* Quick Bar (Sound, Stats, Free Credits) */
.quick-action-bar {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.action-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.action-pill-btn:hover, .action-pill-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.action-pill-btn.bonus-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}

.action-pill-btn.bonus-btn:hover {
  box-shadow: 0 0 12px var(--accent-emerald-glow);
}

/* Main Gaming Stage */
.game-stage {
  padding: 15px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Dice Arena & 3D CSS Cube */
.dice-arena {
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.dice-scene {
  width: var(--dice-size);
  height: var(--dice-size);
  perspective: 600px;
  margin: 15px 0 25px;
}

.dice-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: rotateX(-20deg) rotateY(30deg);
}

.dice-cube.rolling {
  animation: dice-tumble 1.4s ease-in-out infinite;
}

@keyframes dice-tumble {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  25% { transform: rotateX(180deg) rotateY(90deg) rotateZ(45deg); }
  50% { transform: rotateX(360deg) rotateY(270deg) rotateZ(180deg); }
  75% { transform: rotateX(540deg) rotateY(450deg) rotateZ(270deg); }
  100% { transform: rotateX(720deg) rotateY(720deg) rotateZ(360deg); }
}

/* 6 Faces of the Cube */
.dice-face {
  position: absolute;
  width: var(--dice-size);
  height: var(--dice-size);
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid #e2e8f0;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.25);
  display: grid;
  padding: 14px;
}

.face-1 { transform: rotateY(0deg) translateZ(var(--dice-half)); }
.face-6 { transform: rotateY(180deg) translateZ(var(--dice-half)); }
.face-3 { transform: rotateY(90deg) translateZ(var(--dice-half)); }
.face-4 { transform: rotateY(-90deg) translateZ(var(--dice-half)); }
.face-5 { transform: rotateX(90deg) translateZ(var(--dice-half)); }
.face-2 { transform: rotateX(-90deg) translateZ(var(--dice-half)); }

/* Pips on faces */
.pip {
  width: 16px;
  height: 16px;
  background: #0f172a;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  justify-self: center;
  align-self: center;
}

.face-1 { display: flex; align-items: center; justify-content: center; }
.face-1 .pip { width: 22px; height: 22px; background: #dc2626; } /* Red center dot like standard casino dice */

.face-2 { grid-template-columns: 1fr 1fr; }
.face-2 .pip:nth-child(1) { justify-self: start; align-self: start; }
.face-2 .pip:nth-child(2) { justify-self: end; align-self: end; }

.face-3 { grid-template-columns: 1fr 1fr 1fr; }
.face-3 .pip:nth-child(1) { justify-self: start; align-self: start; }
.face-3 .pip:nth-child(2) { justify-self: center; align-self: center; }
.face-3 .pip:nth-child(3) { justify-self: end; align-self: end; }

.face-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.face-5 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.face-5 .pip:nth-child(1) { grid-area: 1 / 1; }
.face-5 .pip:nth-child(2) { grid-area: 1 / 3; }
.face-5 .pip:nth-child(3) { grid-area: 2 / 2; }
.face-5 .pip:nth-child(4) { grid-area: 3 / 1; }
.face-5 .pip:nth-child(5) { grid-area: 3 / 3; }

.face-6 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }

/* Result Banner */
.result-banner {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.result-banner.idle {
  color: var(--text-muted);
  background: transparent;
}

.result-banner.win {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
  animation: win-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-banner.loss {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-rose), #be123c);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.3);
}

@keyframes win-pop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* History Ticker */
.history-ticker {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.history-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.history-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.history-chips-row::-webkit-scrollbar { display: none; }

.history-pill {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-pill.even {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

.history-pill.odd {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.4);
}

/* Betting Options (EVEN vs ODD) */
.bet-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 10px;
}

.bet-card-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bet-card-btn:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.9);
}

.bet-card-btn.selected-even {
  border-color: var(--accent-emerald);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.8));
  box-shadow: 0 0 20px var(--accent-emerald-glow);
}

.bet-card-btn.selected-odd {
  border-color: var(--accent-purple);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(15, 23, 42, 0.8));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.bet-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
}

.bet-card-btn:nth-child(1) .bet-title { color: var(--accent-emerald); }
.bet-card-btn:nth-child(2) .bet-title { color: var(--accent-purple); }

.bet-subtext {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.bet-multiplier-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--accent-gold);
}

/* Chip Amount Selector */
.chip-selector-group {
  margin: 10px 0;
}

.chip-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quick-math-btns {
  display: flex;
  gap: 6px;
}

.mini-math-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.mini-math-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.chip-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.chip-btn {
  flex: 1;
  background: #1e293b;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.chip-btn:hover {
  transform: translateY(-2px);
  border-style: solid;
}

.chip-btn.active {
  border-style: solid;
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, #2a2818, #1e293b);
  box-shadow: 0 0 12px var(--accent-gold-glow);
  color: var(--accent-gold);
}

/* Roll Action Button */
.btn-roll-main {
  width: 100%;
  margin-top: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--accent-emerald-glow);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-roll-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.btn-roll-main:active {
  transform: scale(0.98);
}

.btn-roll-main:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #334155;
}

/* Bottom Navigation Bar */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 12px 10px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border-color);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.nav-item:hover, .nav-item.active {
  color: #fff;
}

.nav-icon {
  font-size: 20px;
}

.badge-dot {
  position: absolute;
  top: 0;
  right: 14px;
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

/* ============================================================
   MODALS (TOP-UP STORE & LIVE CHAT & PROVABLY FAIR)
   ============================================================ */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  width: 100%;
  max-height: 85%;
  background: var(--bg-secondary);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 20px 28px;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.sheet-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-sheet {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close-sheet:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Top-Up Packs Grid */
.topup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pack-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.pack-card:hover {
  border-color: var(--accent-gold);
  background: rgba(30, 41, 59, 0.9);
  transform: scale(1.01);
}

.pack-card.popular {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(15, 23, 42, 0.8));
}

.popular-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 10px 3px 14px;
  border-bottom-left-radius: 12px;
  text-transform: uppercase;
}

.pack-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pack-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pack-bonus {
  color: var(--accent-emerald) !important;
  font-weight: 700;
}

.btn-buy-pack {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 14px;
  font-weight: 800;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: all 0.15s;
}

.btn-buy-pack:hover {
  transform: scale(1.05);
}

/* ============================================================
   DEPOSIT & PAYMENT TABS (QRIS, BANK LOKAL, E-WALLET)
   ============================================================ */

.pay-tabs-row {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pay-tabs-row::-webkit-scrollbar {
  display: none;
}

.pay-tab-btn {
  flex: 1 1 0;
  min-width: fit-content;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

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

.pay-tab-btn.active {
  background: var(--wynn-gold-gradient);
  color: #000;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(197, 164, 100, 0.35);
}

.pay-tab-panel {
  display: none;
  animation: fadeInView 0.25s ease-in-out;
}

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

/* QRIS Styling */
.qris-card-wrap {
  background: radial-gradient(circle at top, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(197, 164, 100, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px;
}

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

.qris-badge-title strong {
  display: block;
  font-size: 18px;
  letter-spacing: 1px;
  color: #fff;
}

.qris-badge-title span {
  font-size: 10px;
  color: var(--accent-gold);
}

.qris-timer-pill {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #f87171;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

.preset-amount-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 10px 0 6px;
}

.preset-amounts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.amount-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.amount-pill-btn:hover {
  border-color: var(--accent-gold);
  color: #fff;
}

.amount-pill-btn.active {
  background: rgba(197, 164, 100, 0.2);
  border-color: var(--accent-gold);
  color: #fff;
  font-weight: 800;
}

.qris-code-container {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 10px 10px;
  text-align: center;
  color: #000;
  margin: 10px auto;
  max-width: 260px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.qris-merchant-tag {
  font-size: 10px;
  font-weight: 900;
  color: #000;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.qris-qr-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.qris-supported-apps {
  margin-top: 8px;
  font-size: 9px;
  color: #475569;
  line-height: 1.3;
}

.qris-supported-apps strong {
  display: block;
  color: #0f172a;
  font-size: 8.5px;
  margin-top: 2px;
}

.qris-pay-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(197, 164, 100, 0.3);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 14px 0 10px;
  font-size: 12px;
}

.qris-pay-summary strong {
  font-size: 16px;
  color: var(--accent-gold);
  font-weight: 900;
}

.pay-action-buttons {
  margin-top: 12px;
}

.btn-pay-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
  transition: all 0.2s;
}

.btn-pay-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Bank Selection */
.bank-selector-row,
.ewallet-selector-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.bank-pill-btn,
.ewallet-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.bank-pill-btn span {
  font-size: 9px;
  color: var(--text-muted);
}

.bank-pill-btn:hover,
.ewallet-pill-btn:hover {
  border-color: var(--accent-gold);
}

.bank-pill-btn.active,
.ewallet-pill-btn.active {
  background: rgba(197, 164, 100, 0.2);
  border-color: var(--accent-gold);
  color: #fff;
}

.ewallet-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 2px;
}

.bank-info-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(197, 164, 100, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.bank-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.online-indicator {
  color: var(--accent-emerald);
  font-size: 10px;
  font-weight: 700;
}

.va-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090d16;
  border: 1px dashed rgba(197, 164, 100, 0.4);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.va-number {
  font-family: monospace;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
}

.btn-copy-mini {
  background: rgba(197, 164, 100, 0.2);
  border: 1px solid rgba(197, 164, 100, 0.4);
  color: var(--accent-gold);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-mini:hover {
  background: var(--accent-gold);
  color: #000;
}

.va-holder-name {
  font-size: 11px;
  color: var(--text-muted);
}

.va-holder-name strong {
  color: #e2e8f0;
}

/* ============================================================
   WITHDRAW (PENARIKAN SALDO) MODAL STYLES
   ============================================================ */

.withdraw-balance-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: center;
}

.wb-label {
  font-size: 11px;
  color: var(--accent-emerald);
  font-weight: 700;
  text-transform: uppercase;
}

.wb-amount {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin: 4px 0;
}

.wb-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.withdraw-type-selector {
  display: flex;
  gap: 8px;
}

.type-pill-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.type-pill-btn:hover {
  color: #fff;
}

.type-pill-btn.active {
  background: rgba(197, 164, 100, 0.2);
  border-color: var(--accent-gold);
  color: #fff;
  font-weight: 800;
}

.custom-select {
  width: 100%;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.custom-select:focus {
  border-color: var(--accent-gold);
}

.quick-withdraw-amounts {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.quick-wd-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-wd-btn:hover {
  border-color: var(--accent-gold);
  color: #fff;
}

.quick-wd-btn.max-btn {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
  color: #f87171;
  font-weight: 800;
}

.withdraw-payout-summary {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 14px 0 16px;
}

.payout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.payout-row:last-child {
  margin-bottom: 0;
}

.payout-row strong {
  color: #fff;
}

.btn-withdraw-submit {
  width: 100%;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border: none;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
  transition: all 0.2s;
}

.btn-withdraw-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6);
}

/* ============================================================
   LIVE CHAT CUSTOMER SERVICE COMPONENT
   ============================================================ */
.chat-window {
  display: flex;
  flex-direction: column;
  height: 480px;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.chat-agent-info {
  background: #1e293b;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
}

.agent-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--accent-emerald);
  border: 2px solid #1e293b;
  border-radius: 50%;
}

.agent-meta h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.agent-meta p {
  font-size: 11px;
  color: var(--accent-emerald);
}

.chat-messages-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.msg-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.4;
  word-break: break-word;
}

.msg-bubble.bot {
  background: #1e293b;
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid var(--border-color);
}

.msg-bubble.user {
  background: linear-gradient(135deg, var(--accent-purple), #6366f1);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-quick-chips {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid var(--border-color);
}

.chat-quick-chips::-webkit-scrollbar { display: none; }

.quick-chip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

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

.chat-input-bar {
  padding: 10px 12px;
  background: #1e293b;
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input-bar input {
  flex: 1;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.chat-input-bar input:focus {
  border-color: var(--accent-cyan);
}

.btn-send-chat {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Floating Chat Action Button on Main Screen */
.fab-chat {
  position: absolute;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4);
  z-index: 50;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-chat:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.6);
}

/* Stats Modal Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

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

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.stat-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Responsive Web Layout helper */
@media (min-width: 768px) {
  .app-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
  }
}

/* ============================================================
   VIEWS & NAVIGATION SYSTEM (LANDING, GAME, DASHBOARD)
   ============================================================ */

.view-section {
  display: none;
  width: 100%;
  animation: fadeInView 0.25s ease-in-out;
}

.view-section.active {
  display: flex;
  flex-direction: column;
}

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

.view-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 80px;
  scrollbar-width: thin;
}

.view-scrollable::-webkit-scrollbar {
  width: 5px;
}
.view-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Header Links */
.desktop-nav-links {
  display: none;
  align-items: center;
  gap: 16px;
}

.nav-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link-btn:hover, .nav-link-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-auth {
  background: linear-gradient(135deg, var(--accent-purple), #6366f1);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
  transition: all 0.2s;
}

.header-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 164, 100, 0.25);
  color: var(--accent-gold);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
  padding: 0;
  flex: 0 0 34px;
}

.header-icon-btn:hover {
  background: rgba(197, 164, 100, 0.2);
  border-color: var(--accent-gold);
  color: #fff;
  transform: translateY(-1px);
}

.btn-header-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.5);
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  padding: 4px 12px 4px 6px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-profile-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar-tiny {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.user-name-tiny {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   LANDING PAGE STYLES (INFO ADS, PROMOS & BANNERS)
   ============================================================ */

/* Top Announcement Ticker */
.promo-top-bar {
  background: linear-gradient(90deg, #1a1206, #2a1e08, #1a1206);
  border-bottom: 1px solid rgba(197, 164, 100, 0.3);
  color: #e8c97a;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.3px;
}

.promo-badge-tag {
  background: var(--wynn-gold-gradient);
  color: #000;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 900;
  margin-right: 8px;
}

/* Hero Section - Wynn Luxury Style */
.landing-hero {
  text-align: center;
  padding: 30px 10px 24px;
  position: relative;
}

/* Wynn logo in hero */
.hero-wynn-logo {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.hero-wynn-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(197, 164, 100, 0.3));
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(197, 164, 100, 0.1);
  border: 1px solid rgba(197, 164, 100, 0.3);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.landing-hero h2 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  background: linear-gradient(135deg, #ffffff 40%, #c5a464);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.hero-wynn-accent {
  background: var(--wynn-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.landing-hero p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 20px;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Real-Time Live Winners Ticker */
.live-winners-marquee {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.live-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--accent-rose);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.marquee-stream {
  display: flex;
  gap: 20px;
  animation: marquee-scroll 24s linear infinite;
  white-space: nowrap;
}

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

.winner-item {
  font-size: 12px;
  color: #e2e8f0;
}
.winner-item strong {
  color: var(--accent-gold);
}

/* Info Ads & Promo Banners Grid */
.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 14px;
}

.section-heading-row h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ads-banners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .ads-banners-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ad-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ad-card:hover {
  transform: translateY(-3px);
}

.ad-card.banner-referral {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(15, 23, 42, 0.95)),
              radial-gradient(circle at right, rgba(6, 182, 212, 0.3), transparent 70%);
  border-color: rgba(139, 92, 246, 0.4);
}
.ad-card.banner-referral:hover {
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.ad-card.banner-welcome {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(15, 23, 42, 0.95)),
              radial-gradient(circle at right, rgba(244, 63, 94, 0.3), transparent 70%);
  border-color: rgba(245, 158, 11, 0.4);
}
.ad-card.banner-welcome:hover {
  box-shadow: 0 8px 24px var(--accent-gold-glow);
}

.ad-card.banner-mobile {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(15, 23, 42, 0.95)),
              radial-gradient(circle at right, rgba(6, 182, 212, 0.3), transparent 70%);
  border-color: rgba(16, 185, 129, 0.4);
}
.ad-card.banner-mobile:hover {
  box-shadow: 0 8px 24px var(--accent-emerald-glow);
}

.ad-tag-pill {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 12px;
}

.ad-content h4 {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ad-content p {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.ad-action-link {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}

/* Feature Highlights Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: left;
}

.feature-box-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.feature-box h5 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.feature-box p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* App Download Section */
.app-download-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 24px;
  text-align: center;
}

.app-download-box h4 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.app-download-box p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.download-badges-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge-btn {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.store-badge-btn:hover {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.store-badge-btn .badge-icon {
  font-size: 22px;
}

.store-badge-btn .badge-text span {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.store-badge-btn .badge-text strong {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

/* Landing Footer - base (overridden by Wynn styles at bottom) */
.landing-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(197, 164, 100, 0.15);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   USER DASHBOARD STYLES
   ============================================================ */

.dashboard-profile-header {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.profile-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-large {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px var(--accent-gold-glow);
  cursor: pointer;
  position: relative;
}

.avatar-edit-hint {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #000;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 6px;
}

.profile-meta h3 {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.profile-meta p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-logout {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(244, 63, 94, 0.25);
}

/* Wallet Card on Dashboard */
.dash-wallet-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.dash-wallet-balance span {
  font-size: 12px;
  color: var(--accent-emerald);
  font-weight: 700;
  text-transform: uppercase;
}

.dash-wallet-balance h2 {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ============================================================
   REFERRAL SYSTEM COMPONENT (CODE, LINK, STATS)
   ============================================================ */

.referral-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.referral-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.referral-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.referral-bonus-badge {
  background: rgba(139, 92, 246, 0.3);
  border: 1px solid var(--accent-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
}

.referral-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.referral-input-group {
  margin-bottom: 14px;
}

.referral-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.referral-box-row {
  display: flex;
  gap: 8px;
}

.referral-code-display {
  flex: 1;
  background: #0f172a;
  border: 1px dashed rgba(139, 92, 246, 0.5);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  font-family: monospace;
}

.btn-copy {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ref-stat-box {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.ref-stat-box span {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ref-stat-box h4 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-top: 3px;
}

/* Transaction Ledger Table */
.ledger-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

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

.ledger-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.ledger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

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

.ledger-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.ledger-icon.win { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }
.ledger-icon.loss { background: rgba(244, 63, 94, 0.2); color: var(--accent-rose); }
.ledger-icon.topup { background: rgba(245, 158, 11, 0.2); color: var(--accent-gold); }
.ledger-icon.referral { background: rgba(139, 92, 246, 0.2); color: var(--accent-purple); }
.ledger-icon.bonus { background: rgba(6, 182, 212, 0.2); color: var(--accent-cyan); }
.ledger-icon.withdraw { background: rgba(217, 119, 6, 0.2); color: #f59e0b; }

.ledger-meta strong {
  display: block;
  color: #fff;
  font-size: 12px;
}

.ledger-meta span {
  font-size: 10px;
  color: var(--text-muted);
}

.ledger-amount {
  font-weight: 800;
  font-size: 13px;
}

.ledger-amount.positive { color: var(--accent-emerald); }
.ledger-amount.negative { color: var(--accent-rose); }

/* ============================================================
   AUTHENTICATION MODAL (LOGIN & CREATE ACCOUNT WITH REFERRAL)
   ============================================================ */

.auth-tabs-row {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: var(--bg-card);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.form-field-group input {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.form-field-group input:focus {
  border-color: var(--accent-cyan);
}

.referral-bonus-notice {
  font-size: 10px;
  color: var(--accent-emerald);
  font-weight: 800;
}

.btn-auth-submit {
  background: linear-gradient(135deg, var(--accent-purple), #6366f1);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
  transition: all 0.2s;
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.6);
}

.quick-guest-btn {
  background: transparent;
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.quick-guest-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Toast Alert Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #fff;
  border: 1px solid var(--accent-emerald);
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-emerald-glow);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
}

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


/* ============================================================
   WYNN PROMO IMAGE CAROUSEL
   ============================================================ */

.promo-carousel-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(197, 164, 100, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  background: #000;
  aspect-ratio: 16 / 7;
  min-height: 180px;
}

.promo-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

.promo-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.promo-slide:hover .promo-slide-img {
  transform: scale(1.03);
}

.promo-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 8, 5, 0.85) 0%,
    rgba(10, 8, 5, 0.6) 50%,
    rgba(10, 8, 5, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
}

.promo-slide-tag {
  display: inline-block;
  background: var(--wynn-gold-gradient);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  width: fit-content;
}

.promo-slide-overlay h4 {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.promo-slide-overlay p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
  line-height: 1.4;
  max-width: 320px;
}

.promo-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wynn-gold-gradient);
  color: #000;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  width: fit-content;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(197, 164, 100, 0.4);
}

.promo-slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 164, 100, 0.6);
}

/* Carousel Arrow Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 8, 5, 0.7);
  border: 1px solid rgba(197, 164, 100, 0.3);
  color: #c5a464;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: rgba(197, 164, 100, 0.2);
  border-color: var(--accent-gold);
  color: #fff;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* Carousel Dot Navigation */
.carousel-nav-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(197, 164, 100, 0.3);
  border: 1px solid rgba(197, 164, 100, 0.4);
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot.active {
  background: var(--accent-gold);
  width: 18px;
  border-radius: 4px;
  border-color: var(--accent-gold);
}

/* ============================================================
   WYNN IMAGE AD CARDS (Photo Background)
   ============================================================ */

.ad-card-img {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 170px;
  border: 1px solid rgba(197, 164, 100, 0.2) !important;
}

.ad-card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ad-card-img:hover .ad-card-bg-img {
  transform: scale(1.06);
}

.ad-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 8, 5, 0.92) 0%,
    rgba(10, 8, 5, 0.6) 50%,
    rgba(10, 8, 5, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  z-index: 2;
}

.ad-card-img-overlay .ad-tag-pill {
  margin-bottom: 8px;
  background: var(--wynn-gold-gradient);
  color: #000;
  font-weight: 900;
  border: none;
}

.ad-card-img-overlay .ad-content h4 {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.25;
}

.ad-card-img-overlay .ad-content p {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  line-height: 1.35;
}

.ad-card-img-overlay .ad-action-link {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-gold-light);
}

.ad-card-img:hover {
  box-shadow: 0 10px 30px rgba(197, 164, 100, 0.25) !important;
}

/* Section heading update for Wynn style */
.section-heading-row h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

/* Wynn gold CTA buttons */
.btn-cta-primary {
  background: var(--wynn-gold-gradient) !important;
  color: #000 !important;
  box-shadow: 0 4px 16px rgba(197, 164, 100, 0.4) !important;
}

.btn-cta-primary:hover {
  box-shadow: 0 6px 22px rgba(197, 164, 100, 0.6) !important;
}

/* Wallet badge Wynn colors */
.wallet-badge {
  border-color: rgba(197, 164, 100, 0.4) !important;
}

.wallet-badge:hover {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 4px 14px rgba(197, 164, 100, 0.3) !important;
}

/* Nav items Wynn active color */
.nav-item:hover, .nav-item.active,
.nav-link-btn:hover, .nav-link-btn.active {
  color: var(--accent-gold) !important;
}

/* Auth button Wynn style */
.btn-header-auth {
  background: var(--wynn-gold-gradient) !important;
  color: #000 !important;
  box-shadow: 0 2px 10px rgba(197, 164, 100, 0.3) !important;
}

/* Desktop nav show on 768+ */
@media (min-width: 768px) {
  .desktop-nav-links {
    display: flex;
  }
}

/* ============================================================
   WYNN FOOTER LOGO STYLE
   ============================================================ */

.landing-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(197, 164, 100, 0.15);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-wynn-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}


/* ============================================================
   LANGUAGE SWITCHER SYSTEM (ID / EN / CN)
   ============================================================ */

.lang-dropdown-wrap {
  position: relative;
  display: inline-block;
  user-select: none;
}

.lang-picker-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(22, 17, 11, 0.9);
  border: 1px solid rgba(197, 164, 100, 0.35);
  padding: 5px 9px;
  border-radius: 20px;
  color: var(--accent-gold-light);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  outline: none;
}

.lang-picker-btn:hover,
.lang-picker-btn.open {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold-glow);
  background: rgba(35, 27, 16, 0.98);
  color: #fff;
  transform: translateY(-1px);
}

.lang-flag {
  font-size: 13px;
  line-height: 1;
}

.lang-code {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 11px;
}

.lang-arrow {
  font-size: 9px;
  color: var(--accent-gold);
  transition: transform 0.25s ease;
  margin-left: 1px;
}

.lang-picker-btn.open .lang-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 175px;
  background: rgba(18, 14, 9, 0.98);
  border: 1px solid rgba(197, 164, 100, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(197, 164, 100, 0.15);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 120;
  backdrop-filter: blur(14px);
  transform-origin: top right;
}

.lang-menu.open {
  display: flex;
  animation: langDropdownShow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
}

.lang-option:hover {
  background: rgba(197, 164, 100, 0.14);
  color: #fff;
  border-color: rgba(197, 164, 100, 0.25);
}

.lang-option.active {
  background: linear-gradient(135deg, rgba(197, 164, 100, 0.22), rgba(197, 164, 100, 0.08));
  color: var(--accent-gold-light);
  border-color: rgba(197, 164, 100, 0.4);
}

.lang-option-flag {
  font-size: 15px;
  line-height: 1;
}

.lang-option-name {
  flex: 1;
}

.lang-check {
  font-size: 12px;
  font-weight: 900;
  color: var(--accent-gold);
  display: none;
}

.lang-option.active .lang-check {
  display: inline-block;
}

/* Quick Language Selector in Footer */
.footer-lang-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 164, 100, 0.25);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.footer-lang-btn:hover {
  color: #fff;
  border-color: var(--accent-gold);
  background: rgba(197, 164, 100, 0.15);
}

.footer-lang-btn.active {
  background: var(--wynn-gold-gradient);
  color: #000;
  border-color: var(--accent-gold);
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(197, 164, 100, 0.35);
}

/* Header responsiveness adjustments */
@media (max-width: 480px) {
  .app-header {
    padding: 10px 12px 10px;
  }
  .header-right-group {
    gap: 5px;
  }
  .wynn-logo-img {
    height: 28px;
  }
  .lang-picker-btn {
    padding: 4px 6px;
    font-size: 10px;
  }
  .wallet-badge {
    padding: 4px 6px;
    gap: 4px;
  }
  .wallet-amount {
    font-size: 12.5px;
  }
  .btn-header-auth {
    padding: 5px 10px;
    font-size: 11px;
  }
  .user-profile-pill {
    padding: 3px 8px 3px 4px;
    gap: 5px;
    flex-shrink: 0;
  }
  .user-avatar-tiny {
    width: 24px;
    height: 24px;
    font-size: 13px;
    flex: 0 0 24px;
  }
  .user-name-tiny {
    max-width: 110px;
    font-size: 11.5px;
  }
}

/* ============================================================
   RESPONSIVE FULL SCREEN & DESKTOP SYSTEM
   Full screen on desktop while remaining 100% responsive on mobile
   ============================================================ */

/* Views Fill Remaining Space in container */
.view-section.active {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.view-scrollable {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Game View Scrolling & Responsive Table Layout */
#view-game {
  overflow-y: auto;
  scrollbar-width: thin;
}

#view-game .game-stage-wrapper {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
}

/* Profile header default wrapping */
.dashboard-profile-header {
  min-width: 0;
  flex-wrap: wrap;
  gap: 14px;
}

.profile-left {
  flex: 1 1 220px;
  min-width: 0;
}

.profile-avatar-large {
  flex: 0 0 58px;
}

.profile-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-meta h3 {
  min-width: 0;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

#dash-vip {
  flex-shrink: 0;
  white-space: nowrap;
}

.profile-meta p {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.btn-logout {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: normal;
}

/* ============================================================
   DESKTOP MODE (min-width: 768px)
   Full screen desktop layout, luxurious spacing & centered cards
   ============================================================ */
@media (min-width: 768px) {
  body {
    padding: 0;
  }

  .app-container {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  /* Desktop Header Navigation */
  .desktop-nav-links {
    display: flex;
    gap: 14px;
  }

  /* Hide mobile bottom navigation bar on desktop */
  .bottom-nav {
    display: none !important;
  }

  /* Floating Chat FAB position on Desktop */
  .fab-chat {
    bottom: 24px;
    right: 28px;
  }

  /* Header & Topbar desktop widths */
  .promo-top-bar {
    padding: 8px clamp(24px, 4vw, 56px);
  }

  .app-header {
    padding: 14px clamp(24px, 4vw, 56px);
  }

  /* Content area scrollable padding */
  .view-scrollable {
    padding: 24px clamp(24px, 4vw, 56px) 48px;
  }

  /* Landing Page desktop max-width containers */
  #view-landing .landing-hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 20px 28px;
  }

  #view-landing .landing-hero h2 {
    font-size: 38px;
  }

  #view-landing .live-winners-marquee,
  #view-landing .section-heading-row,
  #view-landing .promo-carousel-wrapper,
  #view-landing .ads-banners-grid,
  #view-landing .features-grid,
  #view-landing .app-download-box,
  #view-landing .landing-footer {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  #view-landing .promo-carousel-wrapper {
    aspect-ratio: 21 / 8;
    max-height: 420px;
  }

  /* Dashboard View desktop container */
  .dashboard-profile-header,
  .dash-wallet-card,
  .referral-card,
  .ledger-card {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .dashboard-profile-header {
    padding: 24px;
  }

  .dash-wallet-card {
    padding: 24px;
  }

  .referral-card {
    padding: 28px;
  }

  /* Desktop Modals: Centered luxury dialog instead of bottom sheet */
  .modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .modal-sheet {
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    border-radius: 24px;
    border: 1px solid rgba(197, 164, 100, 0.35);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85),
                0 0 50px rgba(197, 164, 100, 0.12);
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }

  .modal-overlay.open .modal-sheet {
    transform: scale(1);
  }

  #modal-topup .topup-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  #modal-topup .modal-sheet,
  #modal-withdraw .modal-sheet {
    max-width: 540px;
  }

  #modal-chat .modal-sheet {
    max-width: 580px;
    height: 640px;
  }
}

/* Wide Desktop (min-width: 992px) */
@media (min-width: 992px) {
  .ads-banners-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .desktop-nav-links {
    gap: 18px;
  }

  .nav-link-btn {
    font-size: 14px;
    padding: 7px 12px;
  }
}

/* ============================================================
   MOBILE RESPONSIVE MODE (max-width: 767px)
   Full viewport height, bottom nav bar, touch-first ergonomic layout
   ============================================================ */
@media (max-width: 767px) {
  body {
    padding: 0;
  }

  .app-container {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .desktop-nav-links {
    display: none !important;
  }

  .header-icon-btn {
    display: none !important;
  }

  .user-profile-pill {
    padding: 3px 8px 3px 5px;
    gap: 6px;
    flex-shrink: 0;
  }

  .user-name-tiny {
    max-width: 125px;
    font-size: 12px;
  }

  .bottom-nav {
    display: flex;
    position: relative;
    z-index: 20;
    flex: 0 0 auto;
    width: 100%;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    background: #100d09;
  }

  .nav-item {
    min-width: 0;
    flex: 1 1 0;
    padding: 3px 2px;
    white-space: nowrap;
  }

  .fab-chat {
    bottom: 74px;
    right: 16px;
  }

  .view-scrollable {
    padding: 16px 14px max(20px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .dashboard-profile-header {
    padding: 14px;
    gap: 12px;
  }

  .profile-left {
    flex-basis: 100%;
    gap: 11px;
  }

  .profile-avatar-large {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    font-size: 25px;
  }

  .profile-meta h3 {
    font-size: 16px;
    gap: 6px;
  }

  .profile-meta p {
    font-size: 11px;
  }

  .btn-logout {
    margin-left: auto;
  }

  .bottom-nav {
    gap: 2px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .nav-item {
    font-size: 10px;
  }

  .nav-icon {
    font-size: 19px;
  }
}

@media (max-width: 360px) {
  .user-name-tiny {
    max-width: 85px;
    font-size: 10.5px;
  }

  .wynn-logo-img {
    height: 25px;
  }

  .header-right-group {
    gap: 4px;
  }

  .lang-picker-btn {
    padding: 3px 5px;
    font-size: 9.5px;
  }

  .wallet-badge {
    padding: 3px 5px;
    gap: 3px;
  }

  .wallet-amount {
    font-size: 11.5px;
  }

  .btn-topup-mini {
    width: 16px;
    height: 16px;
    font-size: 11px;
  }

  .dashboard-profile-header {
    padding: 12px;
  }

  .profile-meta h3 {
    font-size: 14px;
  }

  .vip-badge {
    font-size: 9px;
  }

  .bottom-nav {
    padding-left: 2px;
    padding-right: 2px;
  }

  .nav-item {
    font-size: 9px;
  }
}


/* ============================================================
   PEMILIH METODE PEMBAYARAN (LANGKAH 1 TOP-UP)
   ============================================================ */
.pay-method-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeInView 0.25s ease-in-out;
}
.pay-method-picker[hidden] { display: none; }

.pay-picker-hint {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.pay-method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(197, 164, 100, 0.25);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pay-method-card:hover,
.pay-method-card:focus-visible {
  border-color: rgba(197, 164, 100, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(197, 164, 100, 0.2);
  outline: none;
}
.pay-method-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 164, 100, 0.12);
  border-radius: 12px;
  flex-shrink: 0;
}
.pay-method-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pay-method-text strong { font-size: 15px; }
.pay-method-text small { font-size: 11.5px; color: var(--text-muted); line-height: 1.35; }
.pay-method-arrow { font-size: 24px; color: rgba(197, 164, 100, 0.9); }

.pay-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pay-back-btn[hidden] { display: none; }
.pay-back-btn:hover { background: rgba(255, 255, 255, 0.06); }
.pay-back-btn > span:first-child { font-size: 18px; line-height: 1; }
.pay-back-current {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 800;
  color: #000;
  background: var(--wynn-gold-gradient);
  padding: 3px 10px;
  border-radius: 999px;
}


/* ============================================================
   SIMPLE LUXURY UI REFRESH — responsive, low-motion layout
   ============================================================ */
:root {
  --simple-gold: #d9b45f;
  --simple-gold-soft: rgba(217,180,95,.28);
  --simple-panel: #252525;
  --simple-bg: #191919;
}
html, body { min-height: 100%; }
body { background: #171717; }
.app-container { min-height: 0; }
.promo-top-bar { display: none !important; }
.app-header {
  min-height: 58px;
  flex: 0 0 auto;
  justify-content: center;
  padding: 9px 16px;
  background: #071d39;
  border-bottom: 1px solid var(--simple-gold-soft);
}
.app-header .logo-group { justify-content: center; }
.wynn-logo-img { height: 32px; width: auto; }
.desktop-nav-links { display: none !important; }
.header-right-group { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); gap: 6px; }
.lang-picker-btn { min-height: 32px; }
.wallet-badge { padding: 5px 8px; }
#view-landing { min-height: 0; flex: 1 1 auto; overflow: hidden; }
#view-landing .view-scrollable {
  min-height: 0; height: 100%; flex: 1 1 auto; overflow-y: auto;
  padding: 0 0 24px; scrollbar-width: thin; background: #202020;
}
#view-landing .landing-hero { display: none !important; }
#view-landing .live-winners-marquee,
#view-landing > .view-scrollable > .section-heading-row:first-of-type { display: none !important; }
#view-landing .promo-carousel-wrapper {
  width: 100%; max-width: 100%; margin: 0 auto; aspect-ratio: 16 / 6;
  max-height: 310px; border-radius: 0; overflow: hidden; box-shadow: none;
}
#view-landing .promo-slide-img { object-fit: cover; }
#view-landing .promo-slide-overlay { padding: 16px 20px; }
#view-landing .promo-slide-overlay h4 { font-size: clamp(16px, 2.2vw, 24px); }
#view-landing .promo-slide-overlay p { max-width: 560px; }
#view-landing .carousel-btn { width: 32px; height: 32px; }
.simple-shortcuts {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  padding: 14px 8px; background: #292929; border-bottom: 1px solid rgba(255,255,255,.08);
}
.simple-shortcut {
  min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 4px 2px; border: 0; border-right: 1px solid rgba(255,255,255,.13);
  color: #f4f0e7; background: transparent; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.simple-shortcut:last-child { border-right: 0; }
.shortcut-icon { font-size: 30px; line-height: 1.2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.65)); }
.simple-popular-heading {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 18px auto 10px; padding: 0 16px;
}
.simple-popular-heading h3 { margin: 0; color: #f5f1e9; font-size: 19px; font-weight: 800; }
.simple-popular-heading h3:before { content: ''; display: inline-block; width: 4px; height: 22px; margin-right: 10px; vertical-align: -5px; border-radius: 4px; background: var(--simple-gold); }
.simple-see-all { border: 0; background: none; color: var(--simple-gold); font-weight: 700; cursor: pointer; }
.simple-popular-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px;
  width: calc(100% - 28px); max-width: 1180px; margin: 0 auto 18px;
}
.simple-game-card {
  min-width: 0; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 12px 7px; border: 1px solid rgba(217,180,95,.7); border-radius: 13px;
  background: linear-gradient(145deg,#49433a 0%,#282828 65%); color: #fff; cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,.2); transition: transform .15s ease;
}
.simple-game-card:active { transform: scale(.98); }
.simple-game-icon { font-size: 34px; line-height: 1.1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.7)); }
.simple-game-card strong { font-size: 13px; }
.simple-game-card small { color: #c9c3b8; font-size: 10px; }

/* Full-width promotional hero directly below the popular games grid */
#view-landing .promotions-hero-banner {
  width: calc(100% - 28px); max-width: 1180px; margin: 4px auto 22px;
  overflow: hidden; border: 1px solid rgba(217,180,95,.42); border-radius: 12px;
  background: #170b12; box-shadow: 0 8px 24px rgba(0,0,0,.32);
}
#view-landing .promotions-hero-banner img {
  display: block; width: 100%; height: auto; aspect-ratio: 1920 / 602;
  object-fit: cover;
}
@media (max-width: 480px) {
  #view-landing .promotions-hero-banner { width: calc(100% - 24px); margin: 2px auto 18px; border-radius: 9px; }
}

#view-landing .ads-banners-grid,
#view-landing .features-grid,
#view-landing .app-download-box { display: none !important; }
#view-landing .landing-footer { max-width: 1180px; margin: 20px auto 0; padding: 20px 16px 12px; text-align: center; }
#view-landing .landing-footer p { font-size: 10px; }
#view-landing .footer-lang-selector { justify-content: center; flex-wrap: wrap; }
.bottom-nav {
  display: flex !important; position: relative; z-index: 30; flex: 0 0 auto; width: 100%;
  justify-content: space-around; gap: 0; padding: 7px 5px max(8px, env(safe-area-inset-bottom));
  background: #071d39; border-top: 1px solid rgba(217,180,95,.55); box-shadow: 0 -4px 18px rgba(0,0,0,.18);
}
.nav-item { flex: 1 1 0; min-width: 0; gap: 3px; padding: 3px 1px; color: #c9d4e4; font-size: 10px; }
.nav-icon { font-size: 22px; line-height: 1.1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.nav-item.active { color: #ffd36b; }
.nav-item.active:after { content: ''; position: absolute; bottom: -7px; left: 18%; right: 18%; height: 3px; border-radius: 4px 4px 0 0; background: #ffd36b; }
.view-section { min-height: 0; flex: 1 1 auto; overflow: hidden; }
.view-section.active { min-height: 0; }
.view-section > .view-scrollable { min-height: 0; }

@media (min-width: 768px) {
  .app-container { height: 100dvh; min-height: 0; }
  .bottom-nav { display: flex !important; }
  .view-scrollable { min-height: 0; }
  #view-landing .promo-carousel-wrapper { max-height: 360px; aspect-ratio: 21 / 7; }
  .simple-shortcuts { padding: 17px 10px; }
  .simple-shortcut { font-size: 13px; }
  .simple-popular-grid { gap: 13px; }
  .simple-game-card { min-height: 130px; }
  .simple-game-icon { font-size: 34px; }
}
@media (max-width: 480px) {
  .app-header { min-height: 52px; padding: 7px 8px; }
  .wynn-logo-img { height: 27px; }
  .header-right-group { right: 7px; gap: 3px; }
  .lang-code, .lang-arrow { display: none; }
  .lang-picker-btn { padding: 4px 6px; }
  .wallet-badge { padding: 4px 6px; }
  .wallet-coin { display: none; }
  #view-landing .promo-carousel-wrapper { aspect-ratio: 16 / 8; }
  #view-landing .promo-slide-overlay { padding: 10px 12px; }
  #view-landing .promo-slide-overlay p { font-size: 10px; }
  #view-landing .promo-slide-btn { padding: 6px 10px; font-size: 10px; }
  .simple-shortcuts { padding: 12px 4px; }
  .shortcut-icon { font-size: 24px; }
  .simple-shortcut { font-size: 10px; }
  .simple-popular-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: calc(100% - 24px); }
  .simple-game-card { min-height: 100px; }
  .nav-item { font-size: 9px; }
  .nav-icon { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
#view-landing .section-heading-row { display: none !important; }


/* ============================================================
   BLACK LUXURY REFRESH — deeper blacks, restrained gold glow
   ============================================================ */
:root {
  --bg-primary: #030405;
  --bg-secondary: #08090b;
  --bg-card: rgba(13, 14, 17, .94);
  --border-color: rgba(214, 174, 91, .24);
  --accent-gold: #d6ad59;
  --accent-gold-light: #f5d98c;
  --accent-gold-glow: rgba(214, 174, 91, .22);
  --text-main: #f5f3ed;
  --text-muted: #a6a19a;
}
body {
  background-color: #030405;
  background-image:
    radial-gradient(ellipse at 50% -12%, rgba(183, 137, 49, .13), transparent 43%),
    radial-gradient(ellipse at 0% 48%, rgba(31, 42, 57, .13), transparent 42%),
    radial-gradient(ellipse at 100% 82%, rgba(143, 100, 31, .08), transparent 38%),
    linear-gradient(180deg, #050608 0%, #020304 58%, #08090b 100%);
  background-attachment: fixed;
}
.app-container { background: linear-gradient(180deg, #08090b 0%, #030405 100%); }
.app-header {
  background: rgba(4, 5, 7, .97);
  border-bottom-color: rgba(214, 174, 91, .25);
  box-shadow: 0 5px 24px rgba(0,0,0,.42);
}
#view-landing .view-scrollable { background: transparent; }
.simple-shortcuts {
  background: linear-gradient(180deg, rgba(15,16,19,.96), rgba(7,8,10,.98));
  border-bottom-color: rgba(214,174,91,.16);
}
.simple-shortcut { color: #eee9df; }
.simple-popular-heading h3 { color: #f4f1e9; }
.simple-game-card {
  background: linear-gradient(145deg, #202125 0%, #101114 48%, #08090b 100%);
  border: 1px solid rgba(214,174,91,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 7px 18px rgba(0,0,0,.38), 0 0 14px rgba(214,174,91,.045);
}
.simple-game-card:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.45); }
.simple-game-card small { color: #c6c0b4; }
.bottom-nav {
  background: linear-gradient(180deg, #0b0d11 0%, #030507 100%);
  border-top: 1px solid rgba(214,174,91,.4);
  box-shadow: 0 -8px 24px rgba(0,0,0,.48);
}
.nav-item { color: #c4c5c8; }
.nav-item.active { color: #f2c96d; }
/* Keep secondary panels in the same deep-black visual system. */
.modal-content, .modal, .panel, .card, .game-panel {
  border-color: rgba(214,174,91,.2);
}

/* === Fix logo Wynn Las Vegas di mode mobile ===
   Logo berwarna cokelat gelap di atas header navy sehingga nyaris tak terlihat,
   dan bisa tertekan oleh grup tombol kanan. Terangkan logo & cegah menyusut. */
@media (max-width: 900px) {
  .app-header .logo-group {
    flex: 0 0 auto;
    min-width: 0;
    position: relative;
    z-index: 2;
  }
  .app-header .wynn-logo-wrap {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .app-header .wynn-logo-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    width: auto;
    max-width: none;
    min-width: 48px;
    filter: brightness(2.1) saturate(1.25) drop-shadow(0 0 4px rgba(214, 178, 108, 0.35));
  }
}
@media (max-width: 480px) {
  .app-header .wynn-logo-img { height: 26px; }
}

/* === Posisi logo di kiri & hindari tumpang tindih dengan saldo kredit === */
.app-header {
  justify-content: space-between !important;
  gap: 8px;
}
.app-header .logo-group {
  justify-content: flex-start !important;
  flex: 0 1 auto;
  margin-right: auto;
}
.app-header .header-right-group {
  position: static !important;
  transform: none !important;
  right: auto !important;
  top: auto !important;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
}
@media (max-width: 480px) {
  .app-header { padding: 7px 10px; gap: 6px; }
  .app-header .wynn-logo-img { height: 24px; min-width: 44px; }
}
@media (max-width: 360px) {
  .app-header .wynn-logo-img { height: 21px; min-width: 40px; }
  .app-header .header-right-group { gap: 2px; }
}

/* Lottery 5 Point mode */
[hidden] { display: none !important; }
.game-mode-tabs {
  display: flex; gap: 8px; padding: 10px 20px 0; max-width: 440px; width: 100%; margin: 0 auto;
}
.game-mode-tab {
  flex: 1; border: 1px solid var(--border-color); border-radius: 12px; padding: 11px 12px;
  background: rgba(255,255,255,.035); color: var(--text-muted); font-weight: 800; cursor: pointer;
}
.game-mode-tab.active { color: #17120a; background: var(--wynn-gold-gradient); border-color: var(--accent-gold); }
.lottery-panel {
  width: min(100% - 32px, 440px); margin: 14px auto 24px; padding: 18px;
  border: 1px solid var(--border-color); border-radius: 18px;
  background: linear-gradient(160deg, rgba(35,29,19,.96), rgba(15,13,10,.98));
  box-shadow: 0 14px 36px rgba(0,0,0,.22); max-height: calc(100dvh - 180px); overflow-y: auto;
}
.lottery-heading { text-align: center; margin-bottom: 16px; }
.lottery-kicker { color: var(--accent-gold-light); font-size: 10px; font-weight: 900; letter-spacing: 2px; }
.lottery-heading h2 { margin: 5px 0 7px; font-size: 24px; color: #fff; }
.lottery-heading p, .lottery-admin p { color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.lottery-event-notice { padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.045); border: 1px solid var(--border-color); color: var(--text-muted); font-size: 11px; line-height: 1.5; margin-bottom: 16px; }
.lottery-event-notice.event-active { color: #b9f6d5; border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.12); }
.lottery-selection-head { display:flex; justify-content:space-between; align-items:center; color:#fff; font-size:13px; margin-bottom:10px; }
.lottery-selection-head span { color:var(--accent-gold-light); font-size:12px; }
.lottery-number-grid { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:5px; }
.lottery-number { min-width:0; aspect-ratio:1; padding:0; border-radius:8px; border:1px solid rgba(197,164,100,.2); background:rgba(255,255,255,.045); color:#e9e1d3; font-size:clamp(10px,2.7vw,12px); font-weight:700; cursor:pointer; }
.lottery-number:hover:not(:disabled) { border-color:var(--accent-gold); }
.lottery-number.selected { background:var(--wynn-gold-gradient); color:#17120a; border-color:var(--accent-gold-light); box-shadow:0 0 10px var(--accent-gold-glow); }
.lottery-number:disabled { cursor:wait; opacity:.7; }
.lottery-actions, .lottery-admin-actions { display:flex; gap:8px; margin-top:14px; }
.lottery-secondary-btn, .lottery-primary-btn { border-radius:10px; padding:11px 12px; font-size:12px; font-weight:800; cursor:pointer; }
.lottery-secondary-btn { background:rgba(255,255,255,.06); color:#e8dfcf; border:1px solid var(--border-color); }
.lottery-primary-btn { flex:1; background:var(--wynn-gold-gradient); color:#17120a; border:1px solid var(--accent-gold); }
.lottery-primary-btn:disabled { opacity:.4; cursor:not-allowed; }
.lottery-result-card { margin-top:16px; padding:14px; border:1px solid var(--border-color); border-radius:12px; background:rgba(0,0,0,.2); text-align:center; color:#fff; }
.lottery-result-card > strong { font-size:14px; }
.lottery-result-card p { color:var(--text-muted); font-size:11px; margin-top:8px; line-height:1.5; }
.lottery-result-numbers { display:flex; justify-content:center; gap:7px; margin:12px 0; flex-wrap:wrap; }
.lottery-result-numbers span { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.08); border:1px solid var(--border-color); color:#eee; font-weight:800; }
.lottery-result-numbers span.matched { color:#102017; background:#65d99a; border-color:#65d99a; }
.lottery-prize-guide { margin-top:16px; padding:13px; border-radius:12px; background:rgba(255,255,255,.035); }
.lottery-prize-guide h3 { font-size:12px; color:var(--accent-gold-light); margin-bottom:8px; }
.lottery-prize-guide div { display:flex; justify-content:space-between; padding:6px 0; color:var(--text-muted); font-size:11px; border-bottom:1px solid rgba(255,255,255,.05); }
.lottery-prize-guide div:last-child { border:0; }
.lottery-prize-guide b { color:#fff; }
.lottery-admin { margin-top:16px; padding:12px; border:1px solid rgba(197,164,100,.24); border-radius:12px; background:rgba(0,0,0,.18); }
.lottery-admin summary { color:var(--accent-gold-light); font-size:12px; font-weight:800; cursor:pointer; }
.lottery-admin p { margin:10px 0; }
.lottery-admin-fields { display:grid; gap:9px; }
.lottery-admin-fields label { display:grid; gap:5px; color:#d8cdbb; font-size:11px; }
.lottery-admin-fields input { width:100%; min-width:0; border:1px solid var(--border-color); border-radius:8px; padding:9px; background:#15120d; color:#fff; color-scheme:dark; }
.lottery-event-toggle { display:flex; align-items:center; gap:8px; margin-top:12px; color:#e8dfcf; font-size:11px; }
.lottery-admin small { display:block; margin-top:10px; color:var(--text-muted); font-size:10px; line-height:1.5; }
@media (max-width:360px) { .lottery-panel { padding:12px; width:calc(100% - 20px); } .lottery-number-grid { gap:3px; } .lottery-number { border-radius:6px; } }
.lottery-history { margin-top:16px; padding:13px; border:1px solid var(--border-color); border-radius:12px; background:rgba(255,255,255,.025); }
.lottery-history h3 { color:var(--accent-gold-light); font-size:12px; margin-bottom:8px; }
#lottery-history-list > p { color:var(--text-muted); font-size:11px; }
.lottery-history-item { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.05); }
.lottery-history-item:last-child { border:0; }
.lottery-history-item div { min-width:0; }
.lottery-history-item strong { display:block; color:#fff; font-size:11px; }
.lottery-history-item small { display:block; color:var(--text-muted); font-size:9px; margin-top:4px; }
.lottery-history-item > b { flex-shrink:0; color:var(--accent-gold-light); font-size:10px; }


/* Lottery 3 Dadu — compact layout with existing Wynn gold accent */
.lottery-dice-panel { max-width: 620px; padding: 18px; margin: 0 auto 28px; }
.lottery-dice-topline { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.lottery-dice-topline h2 { color:#fff; font-size:21px; margin-top:4px; }
.lottery-status-pill { color:var(--accent-gold-light); border:1px solid var(--border-color); background:rgba(197,164,100,.08); padding:7px 10px; border-radius:20px; font-size:10px; white-space:nowrap; }
.lottery-status-pill i { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--accent-emerald); margin-right:5px; box-shadow:0 0 8px var(--accent-emerald); }
.lottery-dice-summary { display:grid; grid-template-columns:1fr 1.2fr 1fr; gap:8px; padding:12px; border:1px solid var(--border-color); background:rgba(0,0,0,.24); border-radius:12px; }
.lottery-dice-summary > div { display:flex; flex-direction:column; gap:5px; min-width:0; }
.lottery-dice-summary small { color:var(--text-muted); font-size:8px; letter-spacing:.8px; }
.lottery-dice-summary strong { color:#fff; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lottery-dice-summary .lottery-dice-result-mini { text-align:center; align-items:center; border-left:1px solid var(--border-color); border-right:1px solid var(--border-color); }
.lottery-instruction { color:#e9e1d3; font-size:12px; margin:16px 0 10px; }
.lottery-bet-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.lottery-bet-option { min-width:0; min-height:66px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:3px; border:1px solid rgba(197,164,100,.5); border-radius:9px; color:#fff; background:linear-gradient(155deg,rgba(255,255,255,.07),rgba(0,0,0,.18)); cursor:pointer; padding:6px 3px; transition:background .18s,border-color .18s,transform .18s; }
.lottery-bet-option strong { font-size:15px; line-height:1.1; }
.lottery-bet-option small { color:var(--text-muted); font-size:9px; }
.lottery-bet-option b { color:var(--accent-gold-light); font-size:10px; }
.lottery-bet-option.selected { border-color:var(--accent-gold-light); background:linear-gradient(145deg,rgba(197,164,100,.32),rgba(197,164,100,.1)); box-shadow:inset 0 0 0 1px rgba(197,164,100,.25),0 0 12px rgba(197,164,100,.12); }
.lottery-bet-option:active { transform:scale(.97); }
.lottery-bet-option.number-pick { min-height:58px; }
.lottery-bet-option.number-pick strong { font-size:17px; }
.lottery-dice-bottom { display:grid; grid-template-columns:auto minmax(85px,1fr) auto; align-items:center; gap:9px; margin-top:18px; }
.lottery-dice-bottom > label { color:#e7dece; font-size:11px; font-weight:700; }
.lottery-stake-wrap { display:flex; align-items:center; gap:7px; min-width:0; }
.lottery-stake-wrap input { width:100%; min-width:0; max-width:120px; border:1px solid var(--border-color); border-radius:7px; padding:8px; background:#100e0a; color:#fff; font-size:13px; }
.lottery-stake-wrap span { color:var(--text-muted); font-size:10px; }
.lottery-bet-total { grid-column:1 / 3; color:var(--text-muted); font-size:10px; text-align:right; }
.lottery-bet-total strong { color:var(--accent-gold-light); }
.lottery-dice-bottom .lottery-primary-btn { grid-column:3; grid-row:1 / 3; min-height:48px; padding:9px 12px; white-space:nowrap; }
.lottery-dice-outcome { margin-top:16px; padding:14px; border:1px solid var(--border-color); border-radius:12px; background:rgba(0,0,0,.22); text-align:center; color:#fff; }
.lottery-dice-outcome p { color:var(--text-muted); font-size:11px; margin-top:8px; line-height:1.5; }
.lottery-three-dice { display:flex; justify-content:center; gap:12px; margin:12px 0 5px; font-size:35px; color:var(--accent-gold-light); }
.lottery-total-result { color:#fff; font-size:13px; }
.lottery-total-result b { color:var(--accent-gold-light); font-size:22px; margin-left:5px; }
.lottery-event-bonus { color:var(--accent-emerald)!important; }
@media(max-width:380px) { .lottery-dice-panel{padding:12px}.lottery-bet-grid{gap:5px}.lottery-bet-option{min-height:60px}.lottery-bet-option strong{font-size:13px}.lottery-bet-option b{font-size:9px}.lottery-dice-bottom{grid-template-columns:auto minmax(75px,1fr);}.lottery-dice-bottom .lottery-primary-btn{grid-column:1/-1;grid-row:auto;width:100%}.lottery-bet-total{grid-column:1/-1;text-align:left}.lottery-dice-summary{padding:9px}.lottery-dice-summary strong{font-size:10px} }
/* Live winners marquee stays visible on compact/mobile home layouts */
#view-landing .live-winners-marquee { display:flex !important; }


/* === Ranking & Riwayat === */
.rank-head { padding: 18px 16px 8px; }
.rank-head h3 { margin: 0 0 4px; color: #f4e3b2; font-size: 18px; }
.rank-head p { margin: 0; color: #a99f8a; font-size: 12px; }
.rank-list { padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(145deg, #1c1d21, #0e0f12); border: 1px solid rgba(214,174,91,.2); }
.rank-row.top1 { border-color: rgba(255,215,0,.75); box-shadow: 0 0 14px rgba(255,215,0,.15); }
.rank-row.top2 { border-color: rgba(200,200,210,.6); }
.rank-row.top3 { border-color: rgba(205,127,50,.65); }
.rank-row.is-me { background: linear-gradient(145deg, #2b2410, #15110a); border-color: #d6ae5b; }
.rank-pos { width: 28px; text-align: center; font-weight: 700; color: #d6ae5b; font-size: 16px; }
.rank-avatar { font-size: 22px; }
.rank-name { flex: 1; min-width: 0; color: #f1ece0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name em { color: #d6ae5b; font-style: normal; font-size: 11px; }
.rank-total { color: #f4e3b2; font-weight: 700; font-size: 13px; white-space: nowrap; }
.rank-me { padding: 0 12px; }
.rank-me-title { color: #a99f8a; font-size: 11px; margin: 6px 4px; }
.rank-note { padding: 10px 16px 24px; color: #7f7766; font-size: 11px; margin: 0; }
.hist-tabs { display: flex; gap: 6px; margin: 4px 0 12px; }
.hist-tab { flex: 1; padding: 9px 6px; border-radius: 10px; border: 1px solid rgba(214,174,91,.3);
  background: transparent; color: #cfc6b0; font-size: 13px; cursor: pointer; }
.hist-tab.active { background: #d6ae5b; color: #1a1306; font-weight: 700; }
.hist-list { max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.hist-empty { text-align: center; color: #8d8573; padding: 24px 8px; font-size: 13px; }


/* Personal center redesign */
.personal-center{padding:0 0 28px;background:#0b192b;color:#dce8fb}
.personal-title{text-align:center;padding:14px 12px;font-size:16px;font-weight:700;background:#0c1a2d;border-bottom:1px solid rgba(120,160,210,.08)}
.personal-profile{display:flex;align-items:center;gap:12px;padding:18px 18px 14px;background:#14263b}
.personal-profile .profile-avatar-large{width:58px;height:58px;min-width:58px;border-radius:50%;font-size:28px;overflow:hidden;background:linear-gradient(145deg,#1bbed0,#1768a8);border:2px solid #2aa9c8}
.personal-profile .profile-meta{min-width:0;flex:1}
.personal-profile .profile-meta h3{font-size:14px;color:#d5e2f4;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.personal-profile .profile-meta p{font-size:12px;color:#9eb2cc;margin-top:5px}
.personal-profile .profile-meta p strong{color:#fff}
.personal-profile .profile-meta small{display:block;color:#738ba8;font-size:10px;margin-top:4px}
.personal-profile .vip-badge{background:#3bb8e7;color:#fff;border-radius:3px;padding:3px 6px;font-size:10px}
.personal-chevron{border:0;background:none;color:#b8cee8;font-size:30px}
.personal-quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:12px 8px 15px;background:#14263b;border-radius:0 0 12px 12px}
.personal-action{border:0;background:transparent;color:#b9cbe2;font-size:11px;display:flex;align-items:center;flex-direction:column;gap:6px;cursor:pointer}
.action-orb{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:white;font-size:19px;font-weight:800;box-shadow:0 4px 12px #0003}
.action-orb.red{background:linear-gradient(145deg,#ff827c,#ed4d60)}.action-orb.blue{background:linear-gradient(145deg,#53c9ff,#2788ee)}.action-orb.purple{background:linear-gradient(145deg,#d27cff,#9c55e8)}.action-orb.green{background:linear-gradient(145deg,#5ee5b2,#29b98c)}
.personal-feature,.personal-menu-row{width:calc(100% - 20px);margin:10px 10px 0;border:0;border-radius:7px;background:#14263b;color:#c6d7ee;display:flex;align-items:center;text-align:left;gap:12px;padding:13px 14px;cursor:pointer;min-height:52px}
.personal-feature{margin-top:14px;background:linear-gradient(100deg,#17375b,#14263b)}
.personal-feature span:nth-child(2){display:flex;flex-direction:column;gap:5px;flex:1}.personal-feature strong{font-size:14px}.personal-feature small{font-size:11px;color:#8da5c3}.personal-feature>b,.personal-menu-row>b{font-size:24px;font-weight:300;color:#9cb7d9}
.personal-menu-list{margin-top:10px;background:#14263b}
.personal-menu-row{width:100%;margin:0;border-radius:0;border-bottom:1px solid rgba(145,175,210,.07);min-height:49px;padding:10px 14px;background:transparent;font-size:13px}
.personal-menu-row span:nth-child(2){flex:1}.personal-menu-row small{font-size:10px;color:#8399b5;max-width:115px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.personal-icon{width:22px;height:22px;border-radius:3px;display:grid;place-items:center;color:white;font-size:13px;flex-shrink:0}
.personal-icon.pink{background:#d66fe1}.personal-icon.coral{background:#ff696d}.personal-icon.orange{background:#f4a52e}.personal-icon.sky{background:#48a9f4}.personal-icon.teal{background:#27c9c5}.personal-icon.purple{background:#7d64ed;width:42px;height:42px;font-size:22px}
.personal-settings{margin-top:12px;background:#14263b}
.personal-hidden-data{display:none}
.lottery-round-timer{min-width:62px}
.lottery-round-timer strong{color:#3fd7f1!important;font-variant-numeric:tabular-nums}
.lottery-bet-option.selected{outline:2px solid #32bce8;box-shadow:0 0 14px rgba(50,188,232,.2)}
@media(min-width:700px){.personal-center{max-width:760px;margin:0 auto}.personal-title{font-size:18px}.personal-profile{padding:24px 28px}.personal-quick-actions{padding:18px 20px}.personal-menu-row{padding:15px 20px}.personal-feature{padding:16px 20px}}


/* PLAYER SETTINGS */
.settings-sheet{max-height:92%;padding-bottom:calc(28px + env(safe-area-inset-bottom));}
.settings-intro{font-size:12px;color:var(--text-muted);margin:-8px 0 16px;}
.settings-section{background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:15px;margin:0 0 13px;}
.settings-section-title{display:flex;align-items:center;gap:11px;margin-bottom:14px;}
.settings-section-title>span{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(56,150,255,.15);font-size:19px;}
.settings-section-title strong{display:block;font-size:14px;color:var(--text-primary,var(--text-main));}
.settings-section-title small{display:block;color:var(--text-muted);font-size:11px;margin-top:3px;}
.settings-form{display:grid;gap:10px;}
.settings-form .form-field-group{margin:0;}
.settings-form input,.settings-form select{width:100%;box-sizing:border-box;}
.settings-subform{border-top:1px solid rgba(255,255,255,.07);padding-top:13px;margin-top:14px;}
.settings-check{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-muted);}
.settings-check input{accent-color:#2798ff;width:16px;height:16px;}
.payout-method-list{display:grid;gap:8px;margin-top:13px;}
.payout-method-card{display:flex;align-items:center;gap:10px;padding:11px;border-radius:12px;background:rgba(17,39,64,.8);border:1px solid rgba(100,160,220,.15);}
.payout-method-card .payout-method-info{flex:1;min-width:0;}
.payout-method-card strong,.payout-method-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.payout-method-card strong{font-size:13px;}.payout-method-card small{font-size:11px;color:var(--text-muted);margin-top:3px;}
.payout-default-tag{font-size:9px;color:#62d9b2;background:rgba(47,205,157,.12);padding:4px 6px;border-radius:6px;}
.payout-method-actions{display:flex;gap:5px;}
.payout-method-actions button{border:0;border-radius:7px;padding:7px 8px;background:rgba(255,255,255,.08);color:#dceaff;font-size:11px;}
.payout-method-actions button.delete{color:#ff8c8c;}
.settings-empty{font-size:11px;color:var(--text-muted);text-align:center;padding:8px;}
.settings-security-note{font-size:10px;line-height:1.5;color:var(--text-muted);margin:12px 0 0;}
.settings-danger-btn{width:100%;padding:12px;border:1px solid rgba(255,100,100,.25);border-radius:10px;background:rgba(210,55,70,.12);color:#ff9999;font-weight:700;}


/* ==========================================================
   HEADER: saldo & username disembunyikan (hanya terlihat di Dasbor);
   saldo hanya tampil di header saat bermain (view game)
   ========================================================== */
.wallet-badge { display: none !important; }
body[data-view="game"] .wallet-badge { display: flex !important; }
#header-auth-container:empty { display: none; }

/* ==========================================================
   HALAMAN PROMOSI & REWARD
   ========================================================== */
.promo-page{padding:0 0 28px;background:#0b192b;color:#dce8fb}
.promo-page-title{text-align:center;padding:14px 12px;font-size:16px;font-weight:700;background:#0c1a2d;border-bottom:1px solid rgba(120,160,210,.08)}
.promo-profile-card{display:flex;align-items:center;gap:10px;margin:12px 10px;padding:12px;background:#14263b;border:1px solid rgba(120,160,210,.1);border-radius:8px}
.promo-avatar{width:56px;height:56px;min-width:56px;border-radius:50%;display:grid;place-items:center;font-size:28px;background:linear-gradient(145deg,#1bbed0,#1768a8);border:2px solid #2aa9c8}
.promo-profile-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.promo-code-label{font-size:10px;color:#8da5c3}
.promo-profile-info strong{font-size:13px;color:#d5e2f4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.promo-vip{align-self:flex-start;background:#3bb8e7;color:#fff;border-radius:3px;padding:2px 6px;font-size:10px;font-weight:700}
.promo-claim-col{display:flex;flex-direction:column;gap:6px;width:92px}
.promo-claim-col button{border:1px solid rgba(255,255,255,.12);border-radius:4px;padding:6px 4px;font-size:10px;font-weight:700;color:#fff;cursor:pointer}
.promo-claim-btn{background:#8a928e}
.promo-claim-log-btn{background:#0a5cff}
.promo-earn-box{display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:44px}
.promo-earn-box small{font-size:11px;color:#ff3b3b;font-weight:700}
.promo-earn-box strong{font-size:12px;color:#ff3b3b}
.promo-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 10px 12px}
.promo-tab{border:0;border-radius:6px;padding:9px 4px;font-size:11px;font-weight:700;background:#122338;color:#52677f;cursor:pointer;transition:background .15s,color .15s}
.promo-tab.active{background:#0f93a8;color:#fff;box-shadow:0 2px 10px rgba(15,147,168,.35)}
.promo-panel{display:none}
.promo-panel.active{display:block}
.promo-card{margin:0 10px 12px;background:#14263b;border:1px solid rgba(120,160,210,.08);border-radius:8px;overflow:hidden}
.promo-card-title{padding:12px 14px;font-size:14px;font-weight:600;color:#cfe0f5;border-bottom:1px solid rgba(145,175,210,.1)}
.promo-card-body{padding:14px}
.promo-field-row{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.promo-field-label{font-size:11px;color:#8da5c3}
.promo-field-value{display:flex;align-items:center;gap:8px;background:#0e1d30;border:1px solid rgba(120,160,210,.12);border-radius:6px;padding:6px 6px 6px 10px}
.promo-field-value strong{flex:1;font-size:14px;letter-spacing:.5px;color:#fff}
.promo-field-value input{flex:1;min-width:0;background:transparent;border:0;color:#cfe0f5;font-size:12px;outline:none}
.promo-mini-btn{border:0;border-radius:5px;padding:7px 12px;background:#0f93a8;color:#fff;font-size:11px;font-weight:700;cursor:pointer}
.promo-share-btn{display:block;width:78%;margin:6px auto 0;padding:11px;border:0;border-radius:5px;background:#5caf5f;color:#fff;font-size:13px;font-weight:800;cursor:pointer}
.promo-share-btn:disabled{opacity:.5;cursor:not-allowed}
.promo-hint{margin:12px 0 0;font-size:11px;line-height:1.5;color:#7f97b4;text-align:center}
.promo-stat-row{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;font-size:14px;color:#c6d7ee;border-bottom:1px solid rgba(145,175,210,.07)}
.promo-stat-row:last-child{border-bottom:0}
.promo-stat-row b{color:#2fb4d6;font-weight:600;font-size:13px}
.promo-steps{margin:0;padding:14px 16px 14px 32px;font-size:13px;line-height:1.7;color:#c6d7ee}
.promo-steps li{margin-bottom:6px}
.promo-empty{padding:18px;text-align:center;font-size:12px;color:#7f97b4}
.promo-bonus-list .ledger-item{padding:10px 14px;border-bottom:1px solid rgba(145,175,210,.07)}

/* Lucky Spin */
.spin-card .promo-card-body{display:flex;flex-direction:column;align-items:center;padding-top:20px}
.spin-wheel-wrap{position:relative;width:280px;height:280px;margin:0 auto 18px}
.spin-wheel{position:relative;width:100%;height:100%;border-radius:50%;border:6px solid #e8c97a;box-shadow:0 0 0 3px #0c1a2d,0 10px 28px rgba(0,0,0,.5),inset 0 0 22px rgba(0,0,0,.35);transition:transform 4.2s cubic-bezier(.12,.67,.12,1);will-change:transform;overflow:hidden}
.spin-label{position:absolute;left:50%;top:50%;width:0;height:0;transform-origin:0 0}
.spin-label span{position:absolute;left:0;top:0;transform:translate(-50%,-112px);font-size:14px;font-weight:800;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.7);white-space:nowrap}
.spin-label span small{display:block;font-size:9px;font-weight:600;opacity:.8;text-align:center}
.spin-pointer{position:absolute;top:-10px;left:50%;transform:translateX(-50%);z-index:3;width:0;height:0;border-left:11px solid transparent;border-right:11px solid transparent;border-top:24px solid #e8c97a;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.spin-hub{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;width:62px;height:62px;border-radius:50%;border:4px solid #e8c97a;background:radial-gradient(circle at 35% 30%,#2a4a70,#0c1a2d);color:#e8c97a;font-size:12px;font-weight:900;letter-spacing:1px;cursor:pointer}
.spin-hub:disabled{opacity:.6;cursor:not-allowed}
.spin-go-btn{width:70%;margin-top:0}
.spin-status{margin:12px 0 0;font-size:12px;color:#8da5c3;text-align:center}
.spin-result{margin-top:12px;padding:12px 16px;border-radius:8px;background:rgba(47,205,157,.12);border:1px solid rgba(47,205,157,.3);color:#62d9b2;font-size:14px;font-weight:700;text-align:center}
.spin-result.lose{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12);color:#9eb2cc}
.spin-prize-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:12px}
.spin-prize-item{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:6px;background:#0e1d30;font-size:12px;color:#c6d7ee}
.spin-prize-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}
@media(min-width:700px){.promo-page{max-width:760px;margin:0 auto}.promo-page-title{font-size:18px}}


/* ===== Lottery 3 dice reference redesign ===== */
:root { --bg-primary:#090806; --bg-secondary:#100d08; --bg-card:rgba(24,19,11,.96); --border-color:rgba(197,164,100,.62); --accent-gold:#c5a464; --accent-gold-light:#f2d58a; --accent-gold-glow:rgba(197,164,100,.28); --text-muted:#8fb4d8; }
body:has(#view-game.active) .btn-fullscreen-trigger { display:none !important; }
#view-game .game-stage-wrapper { max-width:none; width:100%; }
#view-game .game-mode-tabs { background:#17130c; border-bottom:1px solid rgba(197,164,100,.18); }
#view-game .lottery-dice-panel { width:100%; max-width:none; margin:0; padding:14px clamp(14px,7.5vw,132px) 24px; background:#0b0906; border:0; border-radius:0; box-shadow:none; }
#view-game .lottery-dice-topline { display:none; }
#view-game .lottery-dice-summary { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:8px 20px; padding:0 0 16px; margin:0 0 8px; border:0; border-radius:0; background:transparent; }
#view-game .lottery-dice-summary > div:first-child { grid-column:1; }
#view-game .lottery-dice-summary .lottery-dice-result-mini { grid-column:2; grid-row:1 / span 2; text-align:right; }
#view-game .lottery-dice-summary small { color:#c9b98e; font-size:12px; }
#view-game .lottery-dice-summary strong { color:#f0dfb7; font-size:16px; }
#view-game #lottery-countdown { color:#e8c97a; font-size:30px; font-weight:500; }
#view-game .lottery-mini-dice { letter-spacing:4px; font-size:28px !important; color:#fff !important; display:flex;justify-content:flex-end;gap:7px; }
#view-game .dice-glyph { display:inline-grid;place-items:center;width:31px;height:31px;border-radius:6px;background:#f7f8fb;color:#17263a;font-size:27px;line-height:1;box-shadow:inset 0 -2px 3px rgba(0,0,0,.15); }
#view-game .lottery-bet-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 14px; margin:0; }
#view-game .lottery-bet-option { min-height:88px; padding:8px 5px; border:1px solid #c5a464; border-radius:22px; background:#17130c; color:#f0dfb7; box-shadow:none; }
#view-game .lottery-bet-option strong { font-size:23px; font-weight:500; }
#view-game .lottery-bet-option small { font-size:13px; color:#c9b98e; }
#view-game .lottery-bet-option b { font-size:14px; color:#c9b98e; font-weight:500; }
#view-game .lottery-bet-option.selected { border-color:#e8c97a; background:linear-gradient(145deg,#d6ad52,#8e6420); color:#fff; box-shadow:none; }
#view-game .lottery-bet-option.selected small,#view-game .lottery-bet-option.selected b { color:#fff; }
#view-game .lottery-dice-bottom { display:grid; grid-template-columns:auto minmax(110px,1fr) auto minmax(190px,1.2fr); align-items:center; gap:12px; margin:12px calc(-1 * clamp(14px,7.5vw,132px)) -24px; padding:12px clamp(14px,10vw,176px); background:#17130c; }
#view-game .lottery-dice-bottom label { color:#e8d6ad; font-size:16px; }
#view-game .lottery-stake-wrap { display:flex; align-items:center; gap:8px; }
#view-game .lottery-stake-wrap input { min-width:0; width:100%; height:44px; border:1px solid #b89b5b; border-radius:5px; background:#17130c; color:#fff; padding:8px; }
#view-game .lottery-stake-wrap span { color:#e8d6ad; }
#view-game .lottery-bet-total { color:#e8c97a; white-space:nowrap; }
#view-game .lottery-primary-btn { min-height:52px; border:0; border-radius:0; background:linear-gradient(110deg,#d6ad52,#8e6420); color:#fff; font-size:17px; font-weight:700; }
#view-game .lottery-primary-btn:hover { filter:brightness(1.08); }
#view-game .lottery-result-card { margin-top:16px; }
/* Hide only game-specific utility controls; other pages retain their controls. */
#view-game .quick-action-bar { display:none !important; }
/* Home recharge shortcut */
.btn-cta-secondary.trigger-topup { border-color:#c5a464; color:#e7fbff; background:linear-gradient(120deg,rgba(197,164,100,.18),rgba(35,27,14,.9)); }
/* USDT transfer modal */
.usdt-modal-sheet { max-width:560px; background:linear-gradient(160deg,#1a150c,#0b0906); border:1px solid rgba(197,164,100,.55); color:#eaf4ff; }
.usdt-payment-intro { display:flex; align-items:center; gap:12px; padding:14px 0 18px; }
.usdt-coin { width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#0ba98d;color:white;font-size:25px;font-weight:800;box-shadow:0 0 18px rgba(10,190,160,.25); }
.usdt-payment-intro strong,.usdt-payment-intro small { display:block; }
.usdt-payment-intro small { color:#8eb2d8;margin-top:3px; }
.usdt-transfer-form { display:grid; gap:9px; }
.usdt-transfer-form label { color:#e8d6ad;font-size:13px;font-weight:600;margin-top:5px; }
.usdt-transfer-form input:not([type=file]) { width:100%;min-height:46px;border:1px solid #80652e;border-radius:10px;background:#100d08;color:#fff;padding:10px 13px;outline:none; }
.usdt-transfer-form input:focus { border-color:#e8c97a;box-shadow:0 0 0 3px rgba(232,201,122,.14); }
.usdt-amount-field { display:flex;align-items:center;border:1px solid #80652e;border-radius:10px;background:#100d08;padding-right:14px; }
.usdt-amount-field input { border:0 !important;box-shadow:none !important; }
.usdt-amount-field span { color:#e8c97a;font-weight:700; }
.usdt-transfer-form input[type=file] { width:100%;padding:12px;border:1px dashed #80652e;border-radius:10px;background:#100d08;color:#a9c4df; }
.usdt-security-note { color:#8faecc;font-size:12px;line-height:1.55;padding:10px 12px;background:rgba(197,164,100,.10);border-radius:8px; }
.usdt-submit { width:100%;min-height:48px;border-radius:10px;margin-top:5px;background:linear-gradient(110deg,#d6ad52,#8e6420);color:#fff;border:0;font-weight:700; }
@media(max-width:760px) {
 #view-game .lottery-dice-panel { padding:12px 10px 20px; }
 #view-game .lottery-bet-grid { gap:8px; }
 #view-game .lottery-bet-option { min-height:76px;border-radius:14px; }
 #view-game .lottery-bet-option strong { font-size:19px; }
 #view-game .lottery-dice-bottom { grid-template-columns:auto 1fr; margin:12px -10px -20px; padding:12px 14px; }
 #view-game .lottery-bet-total { grid-column:1; }
 #view-game .lottery-primary-btn { grid-column:2;grid-row:1 / span 2; }
}

/* Black & Gold identity refinement */
#view-game .lottery-dice-panel { background: radial-gradient(ellipse at 50% 0%, rgba(197,164,100,.09), transparent 60%), #0b0906; }
#view-game .lottery-dice-summary small { color:#b9a477; }
#view-game .lottery-dice-summary strong { color:#e8d6ad; }
#view-game #lottery-countdown { text-shadow:0 0 14px rgba(232,201,122,.3); }
#view-game .lottery-bet-option { background:linear-gradient(145deg,#19150d,#0e0c08); }
#view-game .lottery-bet-option.selected { background:linear-gradient(145deg,#f2d58a,#a87925); color:#171006; border-color:#f2d58a; box-shadow:0 0 18px rgba(232,201,122,.25); }
#view-game .lottery-bet-option.selected small,#view-game .lottery-bet-option.selected b { color:#241a08; }
#view-game .lottery-primary-btn,.usdt-submit { background:linear-gradient(110deg,#f2d58a,#c5a464 52%,#8e6420); color:#160f04; box-shadow:0 4px 18px rgba(197,164,100,.2); }
.usdt-modal-sheet { background:linear-gradient(160deg,#1a150c,#0b0906); border-color:rgba(197,164,100,.6); }
.usdt-transfer-form input:not([type=file]),.usdt-amount-field { background:#100d08; border-color:#80652e; }
.usdt-transfer-form input:focus { border-color:#e8c97a; box-shadow:0 0 0 3px rgba(232,201,122,.12); }
.usdt-transfer-form input[type=file] { background:#100d08; border-color:#80652e; }
.usdt-security-note { color:#b9a477; background:rgba(197,164,100,.09); }
.header-topup-btn.trigger-topup { border-color:#c5a464; color:#f2d58a; }


/* Home-only navigation and top-up placement (Black & Gold) */
.desktop-nav-links { display: none !important; }
.home-nav-links {
  display: flex !important; flex: 1 1 100%; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 6px; padding: 8px 4px 2px;
  border-top: 1px solid rgba(214,174,91,.22); margin-top: 8px;
}
.home-nav-links .nav-link-btn {
  border: 1px solid rgba(214,174,91,.28); border-radius: 999px;
  background: rgba(12,12,12,.86); color: #eee6d4; padding: 8px 13px;
  font: inherit; font-size: 12px; cursor: pointer;
}
.home-nav-links .nav-link-btn.active, .home-nav-links .nav-link-btn:hover {
  color: #17120a; background: linear-gradient(135deg,#f6dc91,#bd8727);
  border-color: #e6bd5d; box-shadow: 0 0 12px rgba(214,174,91,.25);
}
.simple-shortcuts { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.simple-shortcut { min-width: 88px; border-right: 0; padding: 7px 12px; }
.home-topup-shortcut .shortcut-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: #17120a; background: linear-gradient(135deg,#f6dc91,#bd8727);
  font-size: 23px; font-weight: 900; box-shadow: 0 0 13px rgba(214,174,91,.3);
}
/* Wallet/top-up shortcut is intentionally absent from the game screen. */
body[data-view="game"] .wallet-badge, body[data-view="game"] .header-topup-btn { display: none !important; }
@media (max-width: 700px) {
  .home-nav-links { gap: 5px; }
  .home-nav-links .nav-link-btn { padding: 7px 9px; font-size: 11px; }
  .simple-shortcut { min-width: 72px; }
}

/* Beranda shortcuts: Riwayat, Isi Ulang, Reward, Layanan — black & gold */
.home-reward-shortcut .shortcut-icon,
.home-service-shortcut .shortcut-icon {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid rgba(226,185,82,.65); border-radius: 50%;
  color: #f6d98c; background: linear-gradient(145deg,#30230d,#100d08);
  font-size: 22px; box-shadow: 0 0 12px rgba(214,174,91,.22);
}

/* LuckyDice Admin Control Panel */
.admin-shell{position:fixed;inset:0;z-index:1000;display:grid;grid-template-columns:245px 1fr;background:#0b0b0d;color:#f6f0e3;overflow:auto;font-family:Inter, sans-serif}.admin-shell[hidden]{display:none!important}.admin-sidebar{background:#111114;border-right:1px solid #302719;padding:24px 16px;display:flex;flex-direction:column;gap:8px}.admin-brand{display:flex;gap:12px;align-items:center;padding:8px 10px 28px;color:#e7bd69}.admin-brand>span{font-size:28px}.admin-brand b{display:block;letter-spacing:2px;font-size:14px}.admin-brand small{font-size:9px;letter-spacing:2px;color:#9b8b70}.admin-nav,.admin-back,.admin-logout{border:0;background:transparent;color:#bdb5a7;text-align:left;padding:13px 14px;border-radius:9px;font:600 13px Inter;cursor:pointer}.admin-nav span{margin-left:9px}.admin-nav:hover,.admin-nav.active{background:#302719;color:#f3c66e}.admin-back{margin-top:auto;border-top:1px solid #302719;border-radius:0;padding-top:20px}.admin-logout{color:#e99b8c}.admin-main{padding:30px clamp(18px,4vw,56px);overflow:auto;min-width:0}.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.admin-top small{color:#a58a5a;letter-spacing:1.6px;font-size:10px}.admin-top h1{font-size:28px;margin:7px 0 0;color:#f4d28e}.admin-user-chip{border:1px solid #493b25;border-radius:30px;padding:10px 14px;color:#e6c47d;font-size:12px}.admin-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.admin-stat,.admin-card{background:#151518;border:1px solid #302a20;border-radius:14px;padding:20px}.admin-stat small,.admin-stat span{display:block;color:#a9a093;font-size:12px}.admin-stat strong{display:block;font-size:28px;color:#f0c36b;margin:12px 0 6px}.admin-card{margin-top:18px}.admin-card h2{font-size:17px;margin:0 0 8px;color:#f1d39a}.admin-card p{font-size:13px;color:#aaa397;line-height:1.6}.admin-note{padding:12px;background:#211d16;border-radius:9px;color:#c9ae78!important}.admin-tab{display:none}.admin-tab.active{display:block}.admin-card-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.admin-search{display:flex;gap:10px;margin:18px 0}.admin-shell input,.admin-shell select,.admin-shell textarea{width:100%;background:#0d0d10;border:1px solid #40382b;color:#f5f0e7;border-radius:8px;padding:12px;font:13px Inter;min-width:0}.admin-search input{max-width:380px}.admin-button{background:linear-gradient(135deg,#d9ae5d,#a8792d);border:0;border-radius:8px;color:#17120a;padding:12px 17px;font:700 12px Inter;cursor:pointer}.admin-button.secondary{background:#28241e;color:#e8c987;border:1px solid #57462b}.admin-form-card{max-width:760px}.admin-form-card form{display:grid;gap:15px;margin-top:18px}.admin-shell label{display:grid;gap:7px;color:#cfc5b2;font-size:12px}.admin-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-table-wrap{overflow:auto;margin-top:12px}.admin-table{width:100%;border-collapse:collapse;font-size:12px;min-width:650px}.admin-table th,.admin-table td{text-align:left;padding:13px 10px;border-bottom:1px solid #302a20;white-space:nowrap}.admin-table th{color:#d7b878;font-weight:700}.admin-table td{color:#d4cfc5}.admin-table button{margin:2px;padding:7px 9px;font-size:11px}.admin-alert{padding:12px 15px;margin-bottom:16px;border-radius:8px;background:#2c2418;color:#f3ce82;font-size:13px}.admin-alert.error{background:#321d1b;color:#ffb3a9}@media(max-width:850px){.admin-shell{grid-template-columns:190px 1fr}.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-sidebar{padding:18px 10px}}@media(max-width:600px){.admin-shell{grid-template-columns:1fr;grid-template-rows:auto 1fr}.admin-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:10px}.admin-brand{grid-column:1/-1;padding:4px 8px 10px}.admin-nav,.admin-back,.admin-logout{padding:10px;font-size:11px}.admin-back{margin:0;border:0}.admin-main{padding:20px 13px}.admin-top h1{font-size:22px}.admin-user-chip{font-size:10px}.admin-stat-grid{gap:8px}.admin-stat{padding:13px}.admin-stat strong{font-size:22px}.admin-form-row{grid-template-columns:1fr}.admin-card{padding:15px}}


/* Logout pemain: item menu terlihat di Pusat Pribadi */
.personal-logout-btn {
  margin-top: 12px;
  color: #f0b7a9;
  border: 1px solid rgba(224, 111, 91, .24);
  background: rgba(119, 38, 30, .12);
  width: 100%;
  text-align: left;
}
.personal-logout-btn .logout-icon {
  color: #f08c78;
  background: rgba(224, 111, 91, .14);
  font-size: 20px;
}
.personal-logout-btn > span:nth-child(2) { flex: 1; }
.personal-logout-btn:active { transform: scale(.99); }


/* Shortcut kembali ke panel admin untuk sesi administrator yang aktif */
.admin-shortcut-btn{border:1px solid #8e6b32;background:linear-gradient(135deg,#d9ae5d,#a8792d);color:#17120a;border-radius:9px;padding:9px 12px;font:700 11px Inter,sans-serif;cursor:pointer;white-space:nowrap}
.admin-shortcut-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.admin-shortcut-btn[hidden]{display:none!important}
@media(max-width:600px){.admin-shortcut-btn{padding:7px 8px;font-size:10px}}
/* Live support status */
.chat-agent-status-live{color:var(--accent-emerald);font-size:12px}.chat-quick-chips[hidden]{display:none!important}

/* Live support: lampiran gambar */
.btn-attach-chat{background:transparent;border:1px solid var(--border-color);color:#fff;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:15px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.btn-attach-chat:hover{background:rgba(255,255,255,.12)}
.msg-bubble .chat-img{display:block;max-width:100%;max-height:240px;border-radius:10px;cursor:zoom-in;background:rgba(255,255,255,.06);min-width:90px;min-height:60px;object-fit:contain}
.msg-bubble .chat-caption{margin-top:6px;white-space:pre-wrap}
.msg-bubble .chat-img:only-child{margin:0}
.chat-attach-preview{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#0f172a;border-top:1px solid var(--border-color);font-size:12px;color:var(--text-muted)}
.chat-attach-preview[hidden]{display:none!important}
.chat-attach-preview img{width:44px;height:44px;border-radius:8px;object-fit:cover}
.chat-attach-preview span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-attach-preview button{background:transparent;border:0;color:#fff;font-size:20px;line-height:1;cursor:pointer;padding:4px 8px}

/* Profil foto dan level VIP */
.profile-avatar-photo{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}.profile-avatar-large{cursor:pointer;position:relative}.profile-avatar-large:focus-visible{outline:2px solid #56c9e7;outline-offset:3px}#admin-vip-rules{grid-template-columns:repeat(2,minmax(0,1fr))}#admin-vip-rules label{min-width:0}
@media(max-width:600px){#admin-vip-rules{grid-template-columns:1fr}}

.promo-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}

/* Password visibility controls for login and registration */
.password-input-wrap { position: relative; display: flex; align-items: center; width: 100%; }
.password-input-wrap input { width: 100%; padding-right: 48px !important; }
.password-toggle-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted, #a9a9a9); cursor: pointer; font-size: 17px; display: grid; place-items: center; }
.password-toggle-btn:hover { background: rgba(255,255,255,.08); color: var(--accent-gold-light, #e6c77b); }

/* Live balance beside Dice / Lottery mode tabs */
.game-mode-tabs { align-items: stretch; flex-wrap: wrap; }
.game-balance-chip { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(197,164,100,.38); border-radius: 12px; background: rgba(197,164,100,.10); color: #f2dfb7; white-space: nowrap; }
.game-balance-label { font-size: 11px; font-weight: 700; color: var(--text-muted, #b9b0a0); }
.game-balance-chip strong { font-size: 13px; color: #fff1ce; font-variant-numeric: tabular-nums; }
.game-balance-toggle { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: rgba(255,255,255,.07); color: #f2dfb7; cursor: pointer; font-size: 15px; }
.game-balance-toggle:hover { background: rgba(255,255,255,.15); }
@media (max-width: 520px) {
  .game-mode-tabs { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .game-mode-tab { min-width: 0; padding: 10px 8px; font-size: 11px; }
  .game-balance-chip { flex: 1 0 100%; justify-content: center; min-height: 38px; }
}
