/* =========================================================
   SP212 CASINO H5 - MASTER STYLESHEET
   Design Theme: High-End Casino Dark Slate & Emerald Neon
   ========================================================= */

:root {
  --bg-main: #0b131a;
  --bg-card: #13222e;
  --bg-card-hover: #1a2f3f;
  --bg-drawer: rgba(13, 27, 34, 0.96);
  --bg-glass: rgba(19, 34, 46, 0.75);
  
  --color-primary: #25d366;
  --color-primary-glow: rgba(37, 211, 102, 0.35);
  --color-primary-dark: #1ea952;
  --color-accent-gold: #f9ca24;
  --color-gold-glow: rgba(249, 202, 36, 0.35);
  --color-accent-red: #ff4757;
  --color-accent-blue: #3867d6;

  --text-main: #ffffff;
  --text-muted: #8b9eb0;
  --text-dim: #5a6e7e;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(37, 211, 102, 0.5);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --app-max-width: 1400px;
  --header-height: 58px;
  --bottom-nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 15px var(--color-primary-glow);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #060a0e;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  overflow-x: hidden;
  user-select: none;
}

/* ==================== 0. OFFICIAL H5 SPLASH LOADER ==================== */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #132438 0%, #060a0e 85%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}
.splash-brand-wrap {
  text-align: center;
  margin-bottom: 24px;
}
.splash-logo-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
  margin-bottom: 8px;
}
.splash-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.splash-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
#donut {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #10b981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#progress {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #38bdf8;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.splash-progress-bar {
  width: 220px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.splash-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  border-radius: 6px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.glow-top {
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #25d366, transparent 70%);
}
.glow-bottom {
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #f9ca24, transparent 70%);
}

/* App Container: Fluid Responsive Across iPad, Tablet, Mac, PC Desktop */
.app-container {
  position: relative;
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--bg-main);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  z-index: 1;
}

/* ==================== 1. TOP HEADER BAR ==================== */
.top-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(11, 19, 26, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 50;
  transition: padding 0.2s ease;
}

@media (min-width: 768px) {
  .top-header {
    padding: 0 24px;
  }
}

@media (min-width: 1200px) {
  .top-header {
    padding: 0 32px;
  }
}

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

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

/* Brand Logo in Header */
.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 2px;
}
.header-brand-logo {
  height: 32px;
  max-width: 110px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.4));
  transition: transform 0.2s ease;
}
.header-brand-logo:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .header-brand-logo {
    height: 38px;
    max-width: 140px;
  }
}

/* Hamburger Menu Button */
.icon-btn.menu-toggle-btn {
  position: relative;
  background: #182836;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
}
.icon-btn.menu-toggle-btn:active {
  transform: scale(0.95);
  background: #1f3547;
}

.hamburger-box {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  width: 16px;
}
.hamburger-line {
  display: block;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

.badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background-color: var(--color-accent-red);
  border-radius: 50%;
}
.badge-dot.pulse {
  box-shadow: 0 0 0 rgba(255, 71, 87, 0.6);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* Avatar Pill */
.avatar-pill {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.avatar-img-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  background: #142432;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-svg {
  width: 100%;
  height: 100%;
}
.vip-badge-mini {
  position: absolute;
  bottom: -4px;
  right: -6px;
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  color: #0b131a;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Balance Pill */
.balance-pill {
  display: flex;
  align-items: center;
  background: #142432;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-sm);
  padding: 3px 6px 3px 10px;
  gap: 5px;
}
.balance-pill .currency {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.balance-pill .balance-val {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}
.balance-add-btn {
  background: var(--color-primary);
  color: #062312;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.balance-add-btn:active {
  transform: scale(0.9);
}

/* Header Livechat Icon */
.header-chat-btn {
  width: 34px;
  height: 34px;
  background: #182836;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
}
.header-chat-btn:active {
  background: #1f3547;
}

/* Register (Daftar) Button */
.btn-register {
  background: linear-gradient(135deg, #25d366, #1db954);
  color: #032110;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.4);
  transition: all 0.2s;
}
.btn-register:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px rgba(37, 211, 102, 0.2);
}

/* ==================== 2. TICKER SECTION (MARQUEE) ==================== */
.ticker-section {
  padding: 4px 10px;
  background: #0d1720;
}
.ticker-wrapper {
  background: #12212d;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 4px 12px;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.ticker-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.ticker-content {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
}
.ticker-item {
  display: inline-block;
  font-size: 11px;
  color: #bdcbd7;
  animation: marqueeScroll 18s linear infinite;
  padding-left: 100%;
}
@keyframes marqueeScroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* ==================== 3. FLOATING DOWNLOAD BUTTON (LEFT) ==================== */
.floating-download-btn {
  position: absolute;
  top: 115px;
  left: 8px;
  background: linear-gradient(180deg, #25d366, #128c7e);
  border-radius: var(--radius-sm);
  width: 40px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  z-index: 40;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s;
}
.floating-download-btn:active {
  transform: scale(0.92);
}
.dl-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-text {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

/* ==================== 4. MAIN VIEWPORT & TABS ==================== */
.main-viewport {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  -webkit-overflow-scrolling: touch;
}

.view-panel {
  display: none;
  padding: clamp(8px, 1.6vw, 24px);
  animation: fadeIn 0.25s ease-out;
}
.view-panel.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Carousel Banner */
.banner-carousel-section {
  position: relative;
  margin-bottom: 16px;
}
.carousel-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}
.banner-card {
  height: clamp(160px, 24vw, 320px);
  border-radius: var(--radius-md);
  padding: clamp(14px, 2.5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.banner-welcome {
  background: linear-gradient(135deg, #101c26 0%, #172c3d 50%, #0d1720 100%);
  border: 1px solid rgba(249, 202, 36, 0.2);
}
.banner-welcome::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(249, 202, 36, 0.18), transparent 70%);
  pointer-events: none;
}
.banner-sub-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #25d366;
  margin-bottom: 4px;
}
.banner-sub-tag.red-tag { color: #ff6b81; }
.banner-sub-tag.gold-tag { color: #f9ca24; }
.banner-sub-tag.blue-tag { color: #70a1ff; }

.banner-title-glow {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}
.highlight-gold {
  color: var(--color-accent-gold);
  text-shadow: 0 0 14px var(--color-gold-glow);
}
.banner-desc {
  font-size: clamp(11px, 1.1vw, 13.5px);
  color: #a4b6c6;
  margin: 6px 0 14px 0;
  max-width: 480px;
  line-height: 1.35;
}
.banner-action-btn {
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  color: #0b131a;
  border: none;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 800;
  padding: clamp(6px, 1vw, 10px) clamp(14px, 2vw, 24px);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 202, 36, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.banner-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 202, 36, 0.6);
}
.banner-action-btn.red-btn {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
}
.banner-badge-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, #f9ca24, #d49a00);
  color: #0b131a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(249, 202, 36, 0.5);
  border: 2px solid #ffffff;
  transform: rotate(-12deg);
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.carousel-dots .dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  transition: all 0.2s;
}
.carousel-dots .dot.active {
  width: 16px;
  background: var(--color-primary);
}

/* Search Bar */
.search-section {
  margin-bottom: 10px;
}
.search-bar {
  display: flex;
  align-items: center;
  background: #13222e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  gap: 8px;
  transition: border-color 0.2s;
}
.search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12.5px;
  font-family: var(--font-body);
}
.search-bar input::placeholder {
  color: var(--text-dim);
}
.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

/* Category Tabs (Pills) */
.category-tabs-section {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.tabs-scroll-wrap {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tabs-scroll-wrap::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #13222e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-pill.active {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(18, 140, 126, 0.2));
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--color-primary-glow);
}
.cat-arrow-btn {
  background: #182836;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

/* Game Count Bar */
.game-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 8px;
}
.game-count-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}
.game-sort-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent-gold);
  cursor: pointer;
}

/* ==================== GAME CARDS GRID (ULTRA RESPONSIVE FOR IPAD, TAB, MAC, PC, MOBILE) ==================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Mobile default */
  gap: 8px;
  padding: 4px 2px 20px 2px;
}

@media (min-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1280px) {
  .games-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1536px) {
  .games-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
  }
}

/* ==================== AUTHENTIC CASINO GAME CARD ==================== */
.game-card {
  position: relative;
  background: #0d1a24;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  aspect-ratio: 210 / 256; /* Matches the authentic 210x256 game entrance ratio */
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65), 0 0 16px rgba(251, 191, 36, 0.25);
}

.game-card:active {
  transform: scale(0.97);
}

.game-thumb-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #081119;
}

.game-thumb-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
  display: block;
}

.game-card:hover .game-thumb-art {
  transform: scale(1.08);
}

/* Badges on game thumb */
.game-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2.5px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 5;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.badge-hot {
  background: linear-gradient(135deg, #ff4757, #ee5253);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(238, 82, 83, 0.5); }
  50% { box-shadow: 0 2px 12px rgba(238, 82, 83, 0.9); }
}

.badge-new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-live {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Provider logo small top-right */
.game-prov-tag,
.game-provider-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 8px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(11, 19, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2px 5px;
  border-radius: 4px;
  z-index: 5;
  max-width: 65px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Bottom Glassmorphic Info Bar with Game Title & RTP */
.game-card-info,
.game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 17, 24, 0.72) 28%, rgba(6, 11, 16, 0.96) 80%);
  padding: 20px 5px 6px 5px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.25;
  display: block;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-rtp-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  display: inline-block;
}

/* Play button overlay on hover */
.game-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.22s ease;
  z-index: 6;
  pointer-events: none;
}

.game-card:hover .game-play-overlay {
  background: rgba(0, 0, 0, 0.35);
}

.game-play-btn {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #25d366, #10b981);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.7);
}

.game-card:hover .game-play-btn {
  opacity: 1;
  transform: scale(1);
}

.game-play-btn svg {
  fill: #fff;
}
.game-play-btn svg { fill: #fff; }

/* ==================== 5. SIDE DRAWER QUICK MENU (KOTAK MERAH PADA SCREENSHOT) ==================== */
.quick-feature-drawer {
  position: absolute;
  top: calc(var(--header-height) + 38px);
  right: -230px; /* Hidden state */
  width: 230px;
  height: auto;
  max-height: calc(100vh - var(--header-height) - var(--bottom-nav-height) - 45px);
  background: var(--bg-drawer);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(37, 211, 102, 0.4);
  border-right: none;
  border-radius: 16px 0 0 16px;
  box-shadow: -8px 8px 30px rgba(0, 0, 0, 0.7);
  z-index: 90;
  transition: right 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
}
.quick-feature-drawer.open {
  right: 0;
}

/* Drawer Handle Tab with Green background & Arrow */
.drawer-handle-tab {
  position: absolute;
  left: -28px;
  top: 40%;
  transform: translateY(-50%);
  width: 28px;
  height: 54px;
  background: linear-gradient(180deg, #25d366, #128c7e);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-right: none;
  border-radius: 12px 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s;
}
.drawer-handle-tab:active {
  transform: translateY(-50%) scale(0.92);
}
.handle-arrow {
  transition: transform 0.3s;
}
.quick-feature-drawer.open .handle-arrow {
  transform: rotate(180deg);
}

/* Drawer Internal Content */
.drawer-content-box {
  width: 100%;
  padding: 10px 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 211, 102, 0.3) transparent;
}
.drawer-content-box::-webkit-scrollbar {
  width: 3px;
}
.drawer-content-box::-webkit-scrollbar-thumb {
  background: rgba(37, 211, 102, 0.4);
  border-radius: 3px;
}

/* Header Rebate Coin */
.drawer-header-rebate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
  cursor: pointer;
}
.rebate-coin-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rebate-coin-spin {
  width: 34px;
  height: 34px;
  background: radial-gradient(circle, #f9ca24, #d49a00);
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(249, 202, 36, 0.6);
  animation: coinGlow 2.5s infinite alternate;
}
.coin-symbol {
  font-weight: 900;
  font-size: 18px;
  color: #0b131a;
}
.rebate-arrows-orbit {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 2px dashed #00d2d3;
  border-radius: 50%;
  animation: rotateOrbit 6s linear infinite;
}
@keyframes rotateOrbit {
  100% { transform: rotate(360deg); }
}
@keyframes coinGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 8px rgba(249, 202, 36, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 18px rgba(249, 202, 36, 0.8); }
}
.rebate-title {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

/* 14 Features 2-Column Grid */
.drawer-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 6px;
}
.drawer-feat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  background: rgba(20, 36, 48, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease-out;
  text-align: center;
}
.drawer-feat-item:hover,
.drawer-feat-item:active {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

.feat-icon-badge {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}
.drawer-3d-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.drawer-feat-item:hover .drawer-3d-img {
  transform: scale(1.14);
}
.rebate-icon-img-wrap {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rebate-icon-img-wrap .drawer-3d-img {
  width: 46px;
  height: 46px;
}
.pulse-glow {
  animation: pulseGlow 2s infinite alternate;
}
@keyframes pulseGlow {
  0% { filter: drop-shadow(0 0 4px rgba(0, 210, 211, 0.4)); }
  100% { filter: drop-shadow(0 0 12px rgba(0, 210, 211, 0.9)); }
}
.crown-glow {
  animation: crownGlow 2.2s infinite alternate;
}
@keyframes crownGlow {
  0% { filter: drop-shadow(0 0 3px rgba(249, 202, 36, 0.4)); }
  100% { filter: drop-shadow(0 0 12px rgba(249, 202, 36, 0.9)); }
}
.spin-on-hover:hover {
  animation: rotateOrbit 3s linear infinite;
}
  animation: rotateOrbit 12s linear infinite;
}

.feat-label {
  font-size: 10px;
  font-weight: 700;
  color: #e2ecf5;
  line-height: 1.15;
}

/* Discount & Timer Tags */
.badge-discount-tag {
  position: absolute;
  top: -4px;
  right: -8px;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.badge-discount-tag.timer-tag {
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  color: #000;
}
.red-badge-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-red);
  border-radius: 50%;
  border: 1px solid #fff;
}
.feat-timer-badge {
  font-size: 8px;
  font-weight: 800;
  background: #0b141d;
  color: #25d366;
  padding: 1px 4px;
  border-radius: 4px;
  margin-bottom: 2px;
  font-family: monospace;
}
.feat-timer-badge.red {
  color: #ff4757;
}

/* ==================== 6. BOTTOM NAVIGATION BAR ==================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  height: var(--bottom-nav-height);
  background: rgba(13, 22, 30, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  z-index: 60;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .bottom-nav-bar {
    bottom: 16px;
    max-width: 540px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(37, 211, 102, 0.15);
    padding: 0 12px;
  }
}
.nav-item-btn {
  flex: 1;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.2s;
}
.nav-item-btn:active {
  transform: scale(0.92);
}
.nav-item-btn.active {
  color: var(--color-primary);
}
.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.nav-dot-red {
  position: absolute;
  top: -1px;
  right: -3px;
  width: 6px;
  height: 6px;
  background: var(--color-accent-red);
  border-radius: 50%;
}
.game-icon-active {
  background: radial-gradient(circle, rgba(37, 211, 102, 0.25), transparent 70%);
  border-radius: 50%;
}

/* ==================== 7. MODALS & POPUPS ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 8, 12, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  animation: fadeIn 0.2s ease-out;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #111e2a;
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  animation: popUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 85vh;
  overflow-y: auto;
}
@keyframes popUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #192b3a;
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.modal-icon-header {
  font-size: 38px;
  text-align: center;
  margin-bottom: 6px;
}
.modal-heading-gold {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  color: var(--color-accent-gold);
  text-shadow: 0 0 10px var(--color-gold-glow);
  margin-bottom: 4px;
}
.modal-desc {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

/* Forms in Modal */
.form-group {
  margin-bottom: 12px;
}
.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #a0b2c2;
  margin-bottom: 5px;
}
.custom-input, .custom-select {
  width: 100%;
  background: #172836;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.custom-input:focus, .custom-select:focus {
  border-color: var(--color-primary);
}
.custom-input.uppercase {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}
.btn-action-primary {
  width: 100%;
  background: linear-gradient(135deg, #25d366, #1db954);
  color: #032110;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  margin-top: 10px;
  transition: all 0.2s;
}
.btn-action-primary:active {
  transform: scale(0.98);
}

/* Roda Undian (Lucky Wheel) Styles */
.wheel-stage {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 10px auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: #ff4757;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}
.wheel-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #f9ca24;
  box-shadow: 0 0 25px rgba(249, 202, 36, 0.6);
  background: conic-gradient(
    #ff4757 0deg 45deg,
    #2ed573 45deg 90deg,
    #1e90ff 90deg 135deg,
    #ffa502 135deg 180deg,
    #9b59b6 180deg 225deg,
    #747d8c 225deg 270deg,
    #2ecc71 270deg 315deg,
    #e84118 315deg 360deg
  );
  transition: transform 4s cubic-bezier(0.15, 0.9, 0.2, 1);
  overflow: hidden;
}
.wheel-slice {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 0;
  right: 0;
  transform-origin: 0% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel-slice span {
  position: absolute;
  top: 22px;
  right: 18px;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  transform: rotate(45deg);
}
.wheel-slice.slice-1 { transform: rotate(0deg); }
.wheel-slice.slice-2 { transform: rotate(45deg); }
.wheel-slice.slice-3 { transform: rotate(90deg); }
.wheel-slice.slice-4 { transform: rotate(135deg); }
.wheel-slice.slice-5 { transform: rotate(180deg); }
.wheel-slice.slice-6 { transform: rotate(225deg); }
.wheel-slice.slice-7 { transform: rotate(270deg); }
.wheel-slice.slice-8 { transform: rotate(315deg); }

.wheel-center-spin-btn {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #f9ca24, #d49a00);
  border: 4px solid #ffffff;
  color: #0b131a;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.wheel-center-spin-btn:active {
  transform: scale(0.92);
}
.wheel-footer-info {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.wheel-footer-info strong {
  color: var(--color-primary);
}

/* Active Codes Tip */
.active-codes-tip {
  margin-top: 14px;
  padding: 10px;
  background: #162634;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
}
.active-codes-tip h4 {
  font-size: 11.5px;
  color: #e1e9f0;
  margin-bottom: 6px;
}
.code-badge-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.code-badge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f1c26;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}
.code-badge-item code {
  color: var(--color-accent-gold);
  font-weight: 700;
  background: rgba(249, 202, 36, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}
.tip-sub {
  display: block;
  font-size: 9.5px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Daily Check-in Grid */
.daily-checkin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.checkin-day-card {
  background: #172938;
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  position: relative;
}
.checkin-day-card.claimed {
  border-color: var(--color-primary);
  background: rgba(37, 211, 102, 0.12);
}
.checkin-day-card.claimed::after {
  content: '✓';
  position: absolute;
  top: 2px;
  right: 4px;
  color: var(--color-primary);
  font-weight: 900;
  font-size: 10px;
}
.checkin-day-card .day-lbl {
  font-size: 10px;
  color: var(--text-muted);
}
.checkin-day-card .day-coin {
  font-size: 18px;
  margin: 2px 0;
}
.checkin-day-card .day-reward {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-accent-gold);
}

/* Social Communities List */
.social-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.social-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #162736;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s;
}
.social-link-row:hover,
.social-link-row:active {
  background: #1e3547;
  border-color: var(--color-primary);
}
.social-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-link-icon {
  font-size: 20px;
}
.social-link-text h4 {
  font-size: 12.5px;
  font-weight: 700;
}
.social-link-text p {
  font-size: 10.5px;
  color: var(--text-muted);
}
.social-link-action {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
}

/* VIP Tier List */
.vip-tier-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vip-tier-card {
  background: #162736;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
}
.vip-tier-card.current {
  border-color: var(--color-primary);
  background: rgba(37, 211, 102, 0.08);
}
.vip-tier-card.gold-border {
  border-color: var(--color-accent-gold);
}
.tier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.tier-name {
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
}
.tier-status {
  font-size: 9px;
  font-weight: 800;
  color: var(--color-primary);
  background: rgba(37, 211, 102, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}
.tier-target {
  font-size: 10px;
  color: var(--color-accent-gold);
}
.tier-perk {
  font-size: 11px;
  color: var(--text-muted);
}

/* Slot Machine Mini Game */
.slot-machine-box {
  background: #09131a;
  border: 2px solid #f9ca24;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 12px 0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}
.slot-reels-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.slot-reel {
  width: 70px;
  height: 80px;
  background: #182b3a;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
}
.slot-item {
  font-size: 38px;
  transition: transform 0.2s;
}
.slot-reel.spinning .slot-item {
  animation: reelSpinAnim 0.12s linear infinite;
}
@keyframes reelSpinAnim {
  0% { transform: translateY(-30px); opacity: 0.5; }
  100% { transform: translateY(30px); opacity: 0.5; }
}
.slot-win-notice {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent-gold);
  min-height: 20px;
}
.btn-spin-slot {
  width: 100%;
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  color: #0b131a;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(249, 202, 36, 0.4);
}
.btn-spin-slot:active {
  transform: scale(0.97);
}

/* Deposit & Profile Views */
.panel-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  padding: 0 16px;
}
.panel-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.panel-subtitle {
  font-size: clamp(12px, 1.1vw, 13.5px);
  color: var(--text-muted);
  margin-top: 4px;
}
.deposit-card-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--border-subtle);
  max-width: 640px;
  margin: 0 auto;
}
.current-bal-banner {
  background: #0f1c26;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 211, 102, 0.2);
}
.current-bal-banner.wd-banner {
  border-color: rgba(249, 202, 36, 0.3);
}
.current-bal-banner span {
  font-size: 11px;
  color: var(--text-muted);
}
.current-bal-banner h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-primary);
  margin-top: 2px;
}
.current-bal-banner.wd-banner h3 {
  color: var(--color-accent-gold);
}

.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.pay-method-item {
  background: #182836;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-method-item.active {
  border-color: var(--color-primary);
  background: rgba(37, 211, 102, 0.12);
}
.pay-tag-qris {
  font-weight: 900;
  color: #25d366;
  font-size: 14px;
}
.pay-logo {
  font-weight: 800;
  font-size: 12px;
}

.nominal-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.nominal-btn {
  background: #182836;
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.nominal-btn.active {
  background: var(--color-primary);
  color: #032110;
  border-color: var(--color-primary);
}

.form-help-text {
  font-size: 10.5px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
}
.form-help-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Profile Card */
.profile-header-card {
  background: linear-gradient(135deg, #162939, #101c27);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.profile-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.profile-avatar-large {
  width: 52px;
  height: 52px;
}
.profile-avatar-large svg {
  width: 100%;
  height: 100%;
}
.user-id-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
}
.profile-badges {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}
.vip-tag-gold {
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}
.status-active-tag {
  color: #25d366;
  font-size: 10px;
}
.profile-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: #0d1720;
  border-radius: var(--radius-sm);
  padding: 10px;
}
.bal-box .label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}
.bal-box .val {
  font-family: var(--font-heading);
  font-size: 15px;
}
.bal-box .val.gold {
  color: var(--color-accent-gold);
}

.profile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}
.profile-menu-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}
.profile-menu-item:active {
  background: #1a2f3f;
}
.profile-menu-item .item-icon {
  font-size: 22px;
}
.profile-menu-item .item-text {
  flex: 1;
}
.profile-menu-item .item-text h4 {
  font-size: 13px;
  font-weight: 700;
}
.profile-menu-item .item-text p {
  font-size: 10.5px;
  color: var(--text-muted);
}
.profile-menu-item .item-arrow {
  font-size: 18px;
  color: var(--text-dim);
}

/* Event List Card */
.event-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
}
.event-banner-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.event-content {
  padding: 12px;
}
.event-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-accent-gold);
  margin-bottom: 6px;
}
.event-text {
  font-size: 11.5px;
  color: #bdcbd7;
  white-space: pre-line;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(19, 34, 46, 0.95);
  border: 1px solid var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Coupon & Rebate specific modal styles */
.coupon-item {
  display: flex;
  background: #172836;
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.coupon-left {
  width: 35%;
  background: rgba(37, 211, 102, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.coupon-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
}
.coupon-tag {
  font-size: 8px;
  font-weight: 800;
  color: #a0b2c2;
}
.coupon-right {
  flex: 1;
  padding: 10px;
}
.coupon-right h4 {
  font-size: 12px;
  font-weight: 700;
}
.coupon-right p {
  font-size: 10px;
  color: var(--text-muted);
  margin: 2px 0 6px 0;
}
.coupon-claim-btn {
  background: var(--color-primary);
  border: none;
  color: #032110;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.rebate-stat-box {
  background: #162736;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rebate-col {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.text-gold {
  color: var(--color-accent-gold);
  font-size: 15px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rank-item {
  display: flex;
  align-items: center;
  background: #162736;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  gap: 12px;
}
.rank-badge {
  font-weight: 800;
  font-size: 14px;
  width: 24px;
  text-align: center;
}
.rank-badge.gold { color: #f9ca24; }
.rank-badge.silver { color: #dcdde1; }
.rank-badge.bronze { color: #e17055; }
.rank-user {
  flex: 1;
}
.rank-user strong {
  display: block;
  font-size: 12px;
}
.rank-user span {
  font-size: 10px;
  color: var(--text-muted);
}
.rank-win {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary);
}

/* ==================== CASINO GAMING SUITE (PLAYABLE GAMES) ==================== */
.game-modal-overlay {
  padding: 8px;
  background: rgba(3, 7, 10, 0.9);
}
.full-game-card {
  max-width: 440px;
  width: 100%;
  padding: 12px;
  background: #0d1720;
  border: 1.5px solid rgba(249, 202, 36, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px rgba(0,0,0,0.9), 0 0 15px rgba(249, 202, 36, 0.2);
}
.game-suite-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.game-suite-title-box h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-accent-gold);
  line-height: 1.1;
}
.game-suite-tag {
  font-size: 8px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}
.game-suite-provider {
  font-size: 10px;
  color: var(--text-muted);
}
.game-suite-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-live-server {
  background: linear-gradient(135deg, #10ac84, #1dd1a1);
  color: #032110;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
}
.modal-close-btn.relative-close {
  position: static;
  width: 26px;
  height: 26px;
  font-size: 16px;
}

/* Game Mode Tabs */
.game-mode-tabs {
  display: flex;
  gap: 4px;
  background: #12212d;
  padding: 3px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.game-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 2px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.game-tab-btn.active {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #032110;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.game-arena-panel {
  display: none;
}
.game-arena-panel.active {
  display: block;
}

/* Olympus 6x5 Slot Arena */
.olympus-stage {
  background: radial-gradient(circle, #1c2b38 0%, #0c151e 100%);
  border: 1px solid rgba(249, 202, 36, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.zeus-avatar-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 25, 34, 0.85);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.zeus-art-glow {
  font-size: 22px;
  animation: pulseGlow 1.5s infinite alternate;
}
.zeus-speech {
  flex: 1;
  font-size: 10.5px;
  color: #b2bec3;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.multiplier-badge-box {
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  color: #0b131a;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  line-height: 1;
}
.multiplier-badge-box span {
  display: block;
  font-size: 7px;
  font-weight: 800;
}
.multiplier-badge-box strong {
  font-family: var(--font-heading);
  font-size: 12px;
}

/* 6x5 Grid */
.slot-grid-olympus {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  background: rgba(6, 12, 18, 0.7);
  padding: 6px;
  border-radius: 6px;
  min-height: 180px;
}
.olympus-cell {
  aspect-ratio: 1/1;
  background: #172836;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
.olympus-cell.winning {
  background: linear-gradient(135deg, rgba(249, 202, 36, 0.4), rgba(255, 71, 87, 0.4));
  border-color: #f9ca24;
  transform: scale(1.1);
  box-shadow: 0 0 10px #f9ca24;
  animation: cellWinGlow 0.4s infinite alternate;
}
@keyframes cellWinGlow {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.08); filter: brightness(1.5); }
}

.olympus-win-strip {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent-gold);
  margin-top: 6px;
  min-height: 18px;
}

/* Slot Dashboard Controls */
.slot-dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.bet-adjust-wrap {
  display: flex;
  flex-direction: column;
}
.ctrl-label {
  font-size: 9px;
  color: var(--text-muted);
}
.bet-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #13222e;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}
.bet-stepper strong {
  font-size: 11px;
  color: #fff;
  min-width: 55px;
  text-align: center;
}
.step-btn {
  background: #1c3042;
  border: none;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 800;
}
.spin-buttons-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-turbo, .btn-auto {
  background: #182a38;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-turbo.active {
  background: #ff4757;
  color: #fff;
  border-color: #ff4757;
}
.btn-auto.active {
  background: var(--color-primary);
  color: #032110;
  border-color: var(--color-primary);
}
.btn-main-spin {
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  border: none;
  color: #0b131a;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(249, 202, 36, 0.4);
  transition: transform 0.15s;
}
.btn-main-spin:active {
  transform: scale(0.94);
}
.btn-main-spin.gold-spin {
  background: linear-gradient(135deg, #25d366, #1db954);
  color: #032110;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* Spaceman Crash Arena */
.spaceman-stage {
  background: #090e17;
  border: 1px solid rgba(56, 103, 214, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 10px;
}
.crash-history-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
}
.hist-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #142232;
  white-space: nowrap;
}
.hist-pill.gold { color: #f9ca24; border: 1px solid rgba(249, 202, 36, 0.4); }
.hist-pill.blue { color: #3867d6; }
.hist-pill.red { color: #ff4757; }

.spaceman-sky {
  position: relative;
  height: 180px;
  background: radial-gradient(circle at 30% 70%, #152238 0%, #070c14 100%);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.spaceman-stars-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
                    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
                    radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),
                    radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
}
.rocket-character {
  position: relative;
  z-index: 5;
  transition: transform 0.1s linear;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rocket-svg-craft {
  filter: drop-shadow(0 4px 14px rgba(56, 189, 248, 0.45));
}
.rocket-character.flying .rocket-svg-craft {
  animation: shipHover 0.2s infinite alternate ease-in-out;
}
@keyframes shipHover {
  0% { transform: translateY(-1px) rotate(-1deg); }
  100% { transform: translateY(1px) rotate(1deg); }
}
.rocket-flame {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 22px;
  background: radial-gradient(ellipse at top, #ffffff 0%, #fef08a 25%, #f97316 60%, #ef4444 90%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 15% 15% 85% 85%;
  filter: drop-shadow(0 0 12px #f97316);
  display: none;
}
.rocket-character.flying .rocket-flame {
  display: block;
  animation: flamePulse 0.08s infinite alternate;
}
@keyframes flamePulse {
  0% { transform: translateX(-50%) scaleY(0.8) scaleX(0.85); opacity: 0.85; }
  100% { transform: translateX(-50%) scaleY(1.35) scaleX(1.15); opacity: 1; }
}
.live-multiplier-display {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 15px rgba(255,255,255,0.7);
  z-index: 5;
  margin-top: 6px;
}
.live-multiplier-display.crashed {
  color: #ff4757;
  text-shadow: 0 0 20px rgba(255, 71, 87, 0.8);
}
.crash-status-text {
  font-size: 10.5px;
  color: var(--text-muted);
  z-index: 5;
}
.crash-dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.crash-action-wrap {
  display: flex;
  gap: 6px;
}
.btn-launch-rocket {
  background: linear-gradient(135deg, #3867d6, #4b7bec);
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-cashout-rocket {
  background: linear-gradient(135deg, #25d366, #1db954);
  color: #032110;
  border: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.5);
}
.btn-cashout-rocket:disabled {
  background: #243542;
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
}

/* Mahjong Ladder */
.mahjong-stage {
  background: radial-gradient(circle, #2d1810 0%, #150906 100%);
  border: 1px solid rgba(235, 51, 73, 0.4);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 10px;
}
.mahjong-multiplier-ladder {
  display: flex;
  justify-content: space-around;
  background: rgba(10, 4, 3, 0.7);
  padding: 4px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.ladder-step {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dim);
  padding: 2px 10px;
  border-radius: 4px;
}
.ladder-step.active {
  background: linear-gradient(135deg, #25d366, #2ed573);
  color: #032110;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
}
.ladder-step.gold.active {
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  color: #0b131a;
  box-shadow: 0 0 10px rgba(249, 202, 36, 0.7);
}
.mahjong-grid-box {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  background: rgba(8, 3, 2, 0.6);
  padding: 6px;
  border-radius: 6px;
  min-height: 160px;
}
.mj-cell {
  aspect-ratio: 1/1;
  background: #27140e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.mj-cell.golden-fa {
  background: linear-gradient(135deg, #d4a017, #f9ca24);
  border-color: #fff;
  color: #000;
  box-shadow: 0 0 10px rgba(249, 202, 36, 0.8);
}

/* ==================== OFFICIAL H5 SPLASH LOADING SCREEN ==================== */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #142434 0%, #060a0f 100%);
  background-size: cover;
  background-position: center;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s;
}
#splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-brand-wrap {
  text-align: center;
  margin-bottom: 24px;
  animation: pulseLogo 2s infinite alternate;
}
.splash-logo-badge {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  color: var(--color-accent-gold);
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(249, 202, 36, 0.7), 0 0 40px rgba(37, 211, 102, 0.4);
}
.splash-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin-top: 4px;
}
.splash-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
#donut {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #25d366;
  border-right-color: #f9ca24;
  animation: spinDonut 0.85s linear infinite;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}
@keyframes spinDonut {
  to { transform: rotate(360deg); }
}
@keyframes pulseLogo {
  0% { transform: scale(0.98); filter: brightness(1); }
  100% { transform: scale(1.02); filter: brightness(1.2); }
}
#progress {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #e2ecf5;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.splash-progress-bar {
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.splash-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #25d366, #f9ca24);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.8);
  transition: width 0.08s linear;
}

/* ==================== LIVE H5 GAME EMBED MODAL ==================== */
.live-game-overlay {
  padding: 0;
  z-index: 9999;
}
.live-game-fullscreen-card {
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #000;
  border: none;
}
.live-game-nav {
  height: 48px;
  background: #0d1720;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.btn-back-lobby {
  background: #182836;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.live-game-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-status-dot {
  font-size: 9px;
  color: #25d366;
  font-weight: 800;
}
.live-game-header-title strong {
  font-size: 13px;
  color: #fff;
}
.live-game-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-action-btn {
  background: #182836;
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-game-iframe-wrap {
  flex: 1;
  width: 100%;
  height: calc(100% - 48px);
  background: #000;
}
.live-game-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .app-container {
    max-width: 100%;
    box-shadow: none;
  }
}

/* ==================== GAME LAUNCH SELECTOR MODAL ==================== */
.game-launch-card {
  padding: 0 !important;
  overflow: hidden;
  max-width: 390px;
  background: #101c27;
  border: 1px solid rgba(37, 211, 102, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(37, 211, 102, 0.15);
}
.launch-poster-wrap {
  position: relative;
  width: 100%;
  height: 165px;
  background: #0b131a;
  overflow: hidden;
}
.launch-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.launch-poster-wrap:hover .launch-cover-img {
  transform: scale(1.04);
}
.launch-poster-overlay {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.launch-rtp-badge {
  background: rgba(0, 0, 0, 0.85);
  color: #25d366;
  border: 1px solid #25d366;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.launch-badge-hot {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.launch-header-info {
  padding: 14px 16px 8px 16px;
  text-align: left;
}
.launch-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
}
.launch-provider {
  font-size: 12px;
  color: #a0b2c2;
  margin-top: 3px;
  margin-bottom: 0;
}
.launch-actions-col {
  padding: 10px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-launch-live {
  width: 100%;
  background: linear-gradient(135deg, #1db954, #128c7e);
  border: 1px solid #25d366;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.2s;
}
.btn-launch-live:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.btn-launch-demo {
  width: 100%;
  background: linear-gradient(135deg, #1c2e40, #13212d);
  border: 1px solid rgba(249, 202, 36, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}
.btn-launch-demo:hover {
  background: linear-gradient(135deg, #22374d, #172836);
  border-color: #f9ca24;
}
.btn-launch-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.btn-launch-text {
  flex: 1;
}
.btn-launch-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.btn-launch-demo strong {
  color: #f9ca24;
}
.btn-launch-text span {
  display: block;
  font-size: 10.5px;
  color: #a0b2c2;
  margin-top: 2px;
}
.btn-arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
}
.btn-launch-tab {
  text-align: center;
  font-size: 12px;
  color: #58a6ff;
  text-decoration: none;
  padding: 4px;
  margin-top: 2px;
  transition: color 0.2s;
}
.btn-launch-tab:hover {
  color: #79c0ff;
  text-decoration: underline;
}

/* ==================== AUTH HEADER & MODAL STYLES ==================== */
.auth-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-login-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(37, 211, 102, 0.08);
}
.logged-user-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-chip {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(22, 41, 57, 0.8));
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: 20px;
  padding: 3px 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.user-chip-name {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: #25d366;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-logout-icon {
  background: rgba(235, 77, 75, 0.15);
  border: 1px solid rgba(235, 77, 75, 0.35);
  color: #ff7675;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout-icon:hover {
  background: #eb4d4b;
  color: #fff;
}
.modal-auth-switch {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-text-gold {
  background: none;
  border: none;
  color: #f9ca24;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.btn-text-gold:hover {
  color: #ffeaa7;
}

/* QRIS Simulated Modal */
.qris-modal-card {
  text-align: center;
  max-width: 340px;
}
.qris-code-frame {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  margin: 14px auto;
  width: 190px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.qris-code-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qris-amount-badge {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: #25d366;
  margin: 8px 0;
}
.qris-timer-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}


