/* 5-in-1 Premium Casino & Gaming Platform Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #121826;
  --bg-card: #182235;
  --bg-card-hover: #1f2c44;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.35);
  
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #b45309;
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  
  --green-win: #10b981;
  --green-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  
  --red-loss: #ef4444;
  --red-gradient: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  
  --violet-color: #8b5cf6;
  --violet-gradient: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  
  --blue-accent: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

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

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Mobile Screen Wrapper */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-primary);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  padding-bottom: 75px; /* space for bottom nav */
}

/* Top App Bar */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 24, 38, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.brand-logo i {
  font-size: 22px;
  color: var(--gold-primary);
  -webkit-text-fill-color: var(--gold-primary);
}

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

.user-balance-pill {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

.user-balance-pill .reload-btn {
  cursor: pointer;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.user-balance-pill .reload-btn:hover {
  color: var(--gold-light);
  transform: rotate(180deg);
}

.btn-header-recharge {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s ease;
}

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

/* App Download Banner */
.app-download-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  margin: 12px 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-download-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-download-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #000;
}

.app-download-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.app-download-text p {
  font-size: 11px;
  color: var(--text-secondary);
}

.btn-download-apk {
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

/* Promo Banner Slider */
.promo-slider {
  margin: 10px 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--bg-card);
}

.promo-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Live Marquee Ticker */
.marquee-wrapper {
  margin: 8px 16px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-size: 12px;
  color: var(--text-secondary);
}

.marquee-icon {
  color: var(--gold-primary);
  font-size: 14px;
}

.marquee-content {
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  display: inline-block;
}

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

/* 5 Games Grid Section */
.section-title {
  padding: 0 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.section-title h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
}

.game-card-large {
  grid-column: span 2;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.game-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
}

.game-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.game-badge.gold {
  background: var(--gold-gradient);
  color: #000;
}

.game-badge.green {
  background: var(--green-gradient);
  color: #fff;
}

.game-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
  display: block;
}

.game-card-large .game-thumbnail {
  aspect-ratio: 21 / 9;
}

.game-info {
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(24, 34, 53, 0.6), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.game-meta p {
  font-size: 11px;
  color: var(--text-secondary);
}

.game-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Winner Showcase Ticker */
.winners-section {
  padding: 0 16px 20px;
}

.winner-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.winner-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.winner-details h5 {
  font-size: 13px;
  font-weight: 600;
}

.winner-details span {
  font-size: 11px;
  color: var(--text-muted);
}

.winner-amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-win);
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 65px;
  background: rgba(18, 24, 38, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  gap: 4px;
  transition: all 0.2s ease;
  width: 20%;
  position: relative;
}

.nav-item i {
  font-size: 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item.active {
  color: var(--gold-light);
}

.nav-item.active i {
  color: var(--gold-light);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  width: 20px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(24, 34, 53, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* ====================================================
   VIP LUXURY GAME HEADER & UPPER COMPONENT
   ==================================================== */
.vip-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.98) 0%, rgba(10, 14, 23, 0.95) 100%);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  gap: 8px;
}

.vip-btn-back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.vip-btn-back:hover, .vip-btn-back:active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: scale(0.95);
}

.vip-header-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  min-width: 0;
}

.vip-game-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.vip-game-logo-badge i {
  font-size: 17px;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

.vip-game-tagline {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.9;
  margin-top: -1px;
}

.vip-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.vip-sound-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}
.vip-sound-btn:active { transform: scale(0.92); }
.vip-sound-btn.muted { color: #64748b; border-color: rgba(255, 255, 255, 0.05); }

.vip-balance-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glow);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
}
.vip-balance-pill:active { transform: scale(0.96); background: rgba(245, 158, 11, 0.1); }
.vip-balance-pill .currency { color: var(--gold-light); font-weight: 900; font-size: 12px; }
.vip-balance-pill .amount { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 0.2px; }
.vip-balance-pill .refresh-icon { color: var(--text-secondary); font-size: 11px; margin-left: 2px; transition: transform 0.4s ease; }
.vip-balance-pill .refresh-icon.spin { transform: rotate(360deg); color: var(--gold-light); }

.vip-quick-deposit {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease;
}
.vip-quick-deposit:active { transform: scale(0.9); }

/* ===================================================
   LIVE SOCIAL WIN TICKER (FLOATING TOAST FEED)
   =================================================== */
.live-social-win-toast {
  position: fixed;
  bottom: 80px;
  left: 16px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 990;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  max-width: 320px;
}
.live-social-win-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.live-win-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.live-win-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.live-win-user {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.live-win-amount {
  font-size: 11px;
  font-weight: 900;
  color: #10b981;
}

/* ===================================================
   GRAND VICTORY GOLD COIN EXPLOSION MODAL
   =================================================== */
.grand-win-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.grand-win-modal {
  position: relative;
  width: 90%;
  max-width: 360px;
  background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #090d16 100%);
  border: 2px solid var(--gold-bright);
  border-radius: 24px;
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.4);
  animation: winModalPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes winModalPop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.grand-win-sunburst {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.grand-win-trophy {
  font-size: 64px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.6));
  margin-bottom: 12px;
}
.grand-win-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.grand-win-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}
.grand-win-payout-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid var(--gold-bright);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.grand-win-payout-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.grand-win-payout-val {
  font-size: 32px;
  font-weight: 950;
  color: #fff;
  letter-spacing: -0.5px;
}
.btn-claim-win {
  width: 100%;
  padding: 14px 0;
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--radius-full);
  color: #0b0f19;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.15s;
}
.btn-claim-win:active { transform: scale(0.96); }

