/* ==========================================================================
   WOW GAMES - VIBRANT PREMIUM NEON GAMING FRONTEND SYSTEM
   ========================================================================== */

/* Design Tokens & Theme Variables (Mela Theme) */
:root {
  --font-main: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-header: 'Montserrat', sans-serif;
  
  /* Color Palette - Mela Games Theme */
  --primary: #f5c81d;       /* Mela Gold (primary accent) */
  --secondary: #eab308;     /* Darker Gold */
  --cyan-glow: #facc15;     /* Yellow Glow */
  
  --neon-pink: #f472b6;     /* Soft Neon Pink */
  --orange: #fb923c;        /* Bright Orange */
  --gold: #f5c81d;          /* Vivid Yellow Gold */
  
  --lime: #34d399;          /* Bright Emerald */
  --emerald: #34d399;       /* Bright Emerald */
  --red: #f87171;           /* Bright Red */
  
  --bg-navy: #062a5a;       /* Same as Midnight for seamless look */
  --bg-purple: #05244e;     /* Medium Navy for Panels */
  --bg-midnight: #062a5a;   /* Mela Base Background */
  
  /* Semantic Variables */
  --border-color: rgba(245, 200, 29, 0.15);
  --text-main: #f8fafc;     /* White text */
  --text-muted: #94a3b8;    /* Muted gray-blue */
  
  --nav-height: 72px;
  --header-height: 75px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-midnight);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  position: relative;
}

button, input {
  font-family: inherit;
}

/* Dynamic Ambient Glow Backgrounds (Bright Blue Neon) */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  animation: move-gradient 8s ease-in-out infinite alternate;
}

.bg-glow-1 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #facc15 0%, #f97316 100%);
  top: -80px;
  left: -80px;
}

.bg-glow-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ec4899 0%, #8b5cf6 100%);
  bottom: 10%;
  right: -60px;
  animation-delay: -2s;
}

.bg-glow-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #22d3ee 0%, #06b6d4 100%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -4s;
}

/* Floating Particles (Cyberpunk Atmosphere) */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 50%;
  animation: float-particle 15s linear infinite;
  bottom: -20px;
  pointer-events: none;
}

/* Dynamic particle size/position variations */
.particle:nth-child(1) { left: 10%; width: 6px; height: 6px; animation-duration: 12s; background: var(--secondary); opacity: 0.4; }
.particle:nth-child(2) { left: 25%; width: 4px; height: 4px; animation-duration: 18s; background: var(--neon-pink); opacity: 0.3; animation-delay: 2s; }
.particle:nth-child(3) { left: 40%; width: 8px; height: 8px; animation-duration: 14s; background: var(--cyan-glow); opacity: 0.5; animation-delay: 4s; }
.particle:nth-child(4) { left: 55%; width: 5px; height: 5px; animation-duration: 20s; background: var(--gold); opacity: 0.3; animation-delay: 1s; }
.particle:nth-child(5) { left: 70%; width: 7px; height: 7px; animation-duration: 16s; background: var(--primary); opacity: 0.4; animation-delay: 6s; }
.particle:nth-child(6) { left: 85%; width: 4px; height: 4px; animation-duration: 15s; background: var(--lime); opacity: 0.3; animation-delay: 3s; }
.particle:nth-child(7) { left: 15%; width: 5px; height: 5px; animation-duration: 19s; background: var(--cyan-glow); opacity: 0.3; animation-delay: 8s; }
.particle:nth-child(8) { left: 48%; width: 6px; height: 6px; animation-duration: 13s; background: var(--neon-pink); opacity: 0.4; animation-delay: 5s; }
.particle:nth-child(9) { left: 62%; width: 8px; height: 8px; animation-duration: 17s; background: var(--primary); opacity: 0.5; animation-delay: 7s; }
.particle:nth-child(10) { left: 90%; width: 5px; height: 5px; animation-duration: 22s; background: var(--gold); opacity: 0.3; animation-delay: 2s; }

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
  background-color: var(--bg-midnight);
}

/* App Header */
.app-header {
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-navy);
  z-index: 100;
  width: 100%;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-container {
  position: relative;
  width: 45px;
  height: 45px;
}

.avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.user-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--neon-pink) 100%);
  color: white;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 8px;
  border: 1.5px solid var(--bg-midnight);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

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

.user-meta h2 {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Premium Pro Badge */
.premium-badge {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  color: #020617;
  font-size: 8px;
  font-weight: 900;
  padding: 1.5px 5px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
  letter-spacing: 0.3px;
  animation: shine-crown 2.5s infinite linear;
}

.rank-title {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

/* Header Balance Widget */
.header-balance-widget {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.04);
}

.header-balance-widget:active {
  transform: scale(0.96);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.coin-icon {
  width: 20px;
  height: 20px;
  animation: float 2.5s ease-in-out infinite;
}

.balance-info {
  display: flex;
  flex-direction: column;
}

.balance-label {
  font-size: 8px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.balance-value {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 900;
}

.header-balance-widget .arrow {
  font-size: 9px;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Dynamic App Content Viewports */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 95px; /* Added spacing to prevent overlapping floating navigation */
  scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
  display: none;
}

/* Tabs Switch Transitions */
.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Base Component: Buttons */
.btn {
  border: none;
  border-radius: 14px;
  font-weight: 800;
  font-size: 13px;
  padding: 12px 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-header);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
  color: #00112c;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.4);
}

.btn-secondary:active {
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.25);
}

/* Badges */
.badge {
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-block;
}

.badge-hot {
  background: linear-gradient(90deg, var(--neon-pink), var(--orange));
  color: white;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
  animation: pulse-glow-pink 1.5s infinite alternate;
}

/* Glassmorphism Card Utility */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 200, 29, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 12px 36px rgba(139, 92, 246, 0.25), 0 0 15px rgba(236, 72, 153, 0.15);
}

/* Colors Utilities */
.text-gold { color: var(--gold) !important; font-weight: 900; }
.text-neon-green { color: var(--lime) !important; font-weight: 900; }
.text-neon-pink { color: var(--neon-pink) !important; font-weight: 900; }
.text-red { color: var(--red) !important; font-weight: 900; }

/* ==========================================================================
   TAB 1: GAMES HUB
   ========================================================================== */
.hero-banner {
  margin: 18px auto;
  border-radius: 20px;
  height: 220px;
  background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&q=80&w=1200') center/cover;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(234,179,8,0.08);
  max-width: 1000px;
  width: calc(100% - 30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(6, 42, 90, 0.95) 45%, rgba(6, 42, 90, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  max-width: 65%;
}

.hero-content h1 {
  font-family: var(--font-header);
  font-size: 26px;
  font-weight: 900;
  margin: 8px 0 4px 0;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff 10%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(245, 200, 29, 0.4);
}

.hero-content p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.hero-content .play-btn {
  padding: 8px 18px;
  font-size: 11px;
  border-radius: 10px;
}

/* Search and Filters */
.search-filter-container {
  padding: 0 15px 15px 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.search-bar {
  position: relative;
  margin-bottom: 12px;
}

.search-bar-row {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-bottom: 12px;
}

.search-bar {
  flex: 1;
  position: relative;
}

.search-bar input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 15px 12px 42px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.2);
}

.provider-dropdown-container {
  position: relative;
  width: 160px;
}

.provider-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 15px 12px 35px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: all 0.3s ease;
}

.provider-select option {
  background: var(--bg-midnight);
  color: white;
}

.provider-select:focus {
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 10px rgba(245, 200, 29, 0.25);
}

.slider-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 12px;
  pointer-events: none;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

/* Category & Provider Scrolls */
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 11px;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-header);
}

.category-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, #ca8a04 100%);
  border-color: transparent;
  color: #00112c;
  box-shadow: 0 4px 12px rgba(245, 200, 29, 0.3);
}

/* Grid of game items */
.games-grid {
  padding: 0 15px 15px 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}

.game-card {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: none;
}

.game-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

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

.game-card-banner {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover .game-card-banner {
  transform: translateY(-5px) scale(1.02);
  border-color: #ec4899;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4), 0 0 20px rgba(34, 211, 238, 0.3);
}

.game-card-glow {
  display: none;
}

.game-card-tag {
  display: none;
}

.game-card-meta {
  padding: 8px 4px 0 4px;
  background: transparent;
  width: 100%;
}

.game-card-meta h3 {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
}

.game-rating-reward {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.game-rating {
  font-size: 9px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
}

.game-reward-payout {
  font-size: 9px;
  color: var(--lime);
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ==========================================================================
   TAB 2: WALLET
   ========================================================================== */
.wallet-dashboard {
  padding: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* Custom design card gradients (Yellow, Blue, and Red Pop Gradient) */
.bg-gradient-purple-pink {
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 50%, #06b6d4 100%) !important;
  border: none !important;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.18) !important;
}

.wallet-card-neon {
  border-radius: 26px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.wallet-card-title {
  font-size: 10px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.total-estimated-usd {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.4);
}

.wallet-address-chip {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.wallet-actions {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: center;
}

.wallet-action-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.wallet-action-btn:active {
  transform: scale(0.92);
}

.wallet-action-btn .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: white;
  transition: all 0.3s ease;
}

.wallet-action-btn:hover .icon-wrap,
.wallet-action-btn:active .icon-wrap {
  background: white;
  color: #020617;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Assets List Layouts */
.assets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asset-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.logo-wow {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--primary);
}

.logo-ton {
  background: url('https://api.dicebear.com/7.x/icons/svg?icon=gem&backgroundType=solid&backgroundColor=3b82f6') center/cover;
}

.logo-usdt {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
}

.asset-name {
  font-size: 13px;
  font-weight: 700;
}

.asset-symbol {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
}

.asset-balance {
  text-align: right;
}

.asset-amount {
  font-family: var(--font-header);
  font-size: 13px;
  display: block;
}

.asset-value-usd {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Transactions list */
.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-row {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tx-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.tx-icon-deposit {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
}

.tx-icon-withdraw {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.tx-icon-swap {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-glow);
}

.tx-title {
  font-size: 12px;
  font-weight: 700;
}

.tx-date {
  font-size: 8px;
  color: var(--text-muted);
}

.tx-amount {
  font-family: var(--font-header);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.tx-status {
  font-size: 8px;
  font-weight: 700;
  display: block;
}

.status-success { color: var(--emerald); }
.status-pending { color: var(--warning); }

/* ==========================================================================
   TAB 3: QUESTS & SPIN WHEEL
   ========================================================================== */
.daily-streak-container {
  margin: 15px auto;
  max-width: 600px;
}

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

.streak-header h3 {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 700;
}

.streak-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.streak-day {
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  transition: all 0.3s ease;
}

.streak-day.completed {
  border-color: var(--emerald);
  background: rgba(5, 150, 105, 0.1);
}

.streak-day.active-day {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  transform: scale(1.05);
}

.streak-num {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.streak-day.completed .streak-num {
  color: var(--emerald);
}

.streak-day.active-day .streak-num {
  color: var(--primary);
}

.streak-reward {
  font-size: 9px;
  font-weight: 800;
}

.streak-day.completed .streak-reward {
  color: var(--emerald);
}

.checkin-btn {
  width: 100%;
  padding: 10px 0;
  font-size: 11px;
}

/* Lucky Spin Wheel Card Styling */
.spin-wheel-card {
  margin: 15px auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-intro {
  text-align: center;
  margin-bottom: 15px;
}

.wheel-intro h3 {
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.wheel-intro p {
  font-size: 9px;
  color: var(--text-muted);
}

.wheel-outer-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  margin-bottom: 15px;
}

.wheel-indicator {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: var(--neon-pink);
  font-size: 26px;
  filter: drop-shadow(0 2px 5px rgba(236, 72, 153, 0.6));
}

.wheel-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25), inset 0 0 15px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--border-color);
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  transition: transform 5s cubic-bezier(0.15, 0.85, 0.25, 1);
}

.btn-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-pink) 0%, var(--primary) 100%);
  border: 3px solid var(--text-main);
  color: white;
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 9px;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.6), inset 0 0 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-spin:active {
  transform: translate(-50%, -50%) scale(0.92);
}

.wheel-footer {
  font-size: 10px;
  font-weight: 700;
}

.text-success {
  color: var(--emerald);
}

/* Quests styles */
.quests-list {
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.quest-row {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quest-details {
  max-width: 70%;
}

.quest-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.quest-reward-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quest-payout {
  font-size: 10px;
  font-weight: 900;
  color: var(--cyan-glow);
}

.quest-progress-track {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.quest-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--cyan-glow) 100%);
}

.btn-quest-claim {
  padding: 6px 14px;
  font-size: 10px;
  border-radius: 8px;
}

.btn-quest-claim:disabled {
  background: rgba(30, 27, 75, 0.35);
  box-shadow: none;
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   TAB 4: LEADERBOARD
   ========================================================================== */
.leaderboard-header-card {
  padding: 20px 15px;
  margin: 15px auto;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.ranking-avatar-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  padding-top: 15px;
}

.leader-podium {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 85px;
  position: relative;
}

.podium-avatar {
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podium-avatar img {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.podium-rank-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
}

.podium-name {
  font-size: 10px;
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.podium-score {
  font-size: 9px;
  font-weight: 500;
  margin-top: 2px;
}

/* Rank Specific Podium Sizes */
.rank-1 .podium-avatar img {
  width: 60px;
  height: 60px;
  border: 3.5px solid var(--gold);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.rank-2 .podium-avatar img {
  width: 48px;
  height: 48px;
  border: 2.5px solid var(--secondary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.rank-3 .podium-avatar img {
  width: 48px;
  height: 48px;
  border: 2.5px solid var(--neon-pink);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.35);
}

/* Leaderboard Tables List */
.leaderboard-table-container {
  margin: 0 auto 15px auto;
  max-width: 600px;
  overflow: hidden;
}

.leaderboard-table-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.leaderboard-rows {
  display: flex;
  flex-direction: column;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: background 0.3s ease;
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.leaderboard-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-rank-num {
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 800;
  width: 15px;
  color: var(--text-muted);
}

.leaderboard-row.my-row {
  background: rgba(139, 92, 246, 0.08);
}

.leaderboard-row.my-row .leaderboard-rank-num {
  color: var(--primary);
}

.leaderboard-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.leaderboard-row.my-row .leaderboard-avatar {
  border: 1px solid var(--primary);
}

.leaderboard-username {
  font-size: 13px;
  font-weight: 600;
}

.leaderboard-score-val {
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 800;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (FLOATING GLASS NAV DESIGN)
   ========================================================================== */
.bottom-nav {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  max-width: 500px;
  height: var(--nav-height);
  border: 1px solid rgba(250, 204, 21, 0.2);
  background: rgba(6, 42, 90, 0.92);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  width: 20%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px 0;
  position: relative;
}

.nav-item i {
  font-size: 18px;
  transition: all 0.3s ease;
}

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

.nav-item.active {
  color: #facc15;
}

.nav-item.active i {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.9)) drop-shadow(0 0 16px rgba(249, 115, 22, 0.6));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #facc15, #f97316);
  border-radius: 50%;
  box-shadow: 0 0 10px #facc15, 0 0 20px rgba(249, 115, 22, 0.6);
}

/* ==========================================================================
   MODALS AND PORTAL OVERLAYS (GLASSMORPHISM)
   ========================================================================== */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

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

.modal-card {
  width: 90%;
  max-width: 360px;
  background: var(--bg-purple);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 700;
}

.btn-close-modal, .btn-close-game {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

.btn-close-modal:active, .btn-close-game:active {
  color: var(--text-main);
}

.modal-body {
  padding: 20px;
}

/* Specific Forms Inside Modals */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.input-container {
  position: relative;
}

.input-container input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font-header);
  font-weight: 700;
}

.input-container input:focus {
  outline: none;
  border-color: var(--secondary);
}

.input-token-label {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 800;
  color: var(--secondary);
}

.transaction-notice {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.4;
}

/* Swap specific styling */
.swap-arrow {
  text-align: center;
  margin: 4px 0;
  color: var(--primary);
  font-size: 14px;
}

/* ==========================================================================
   GAME PLAYROOM SPECIFIC PORTAL
   ========================================================================== */
.game-viewport-container {
  width: 92%;
  height: 80%;
  max-width: 380px;
  max-height: 480px;
  background: var(--bg-midnight);
  border: 2px solid var(--primary);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px);
  transition: all 0.35s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.modal-overlay.active .game-viewport-container {
  transform: translateY(0);
}

.game-viewport-header {
  height: 50px;
  padding: 0 20px;
  background: rgba(30, 27, 75, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.game-title {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cyan-glow);
}

.game-screen {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Game Start Screen overlays */
.game-start-screen, .game-over-screen {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.96);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.game-logo-glow {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  margin-bottom: 15px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  animation: float 3s ease-in-out infinite;
}

.game-start-screen h2, .game-over-screen h2 {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
  color: white;
}

.game-start-screen p, .game-over-screen p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 80%;
  line-height: 1.4;
}

.game-high-score {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
}

/* Actual Canvas styling */
#arcade-canvas {
  background: var(--bg-midnight);
  display: block;
  box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.15);
}

/* Game overlays for HUD and game-over */
.game-hud {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  z-index: 15;
  pointer-events: none;
}

.hud-item {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--font-header);
  font-size: 10px;
  font-weight: 700;
  color: white;
}

.final-score {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.earnings-highlight {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 900;
  color: var(--emerald);
  margin-bottom: 25px;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Keyframe Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes float-particle {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

@keyframes move-gradient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-20px, 40px) scale(0.95); }
}

@keyframes shine-crown {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.4)); }
  50% { filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8)); }
}

@keyframes pulse-glow-pink {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(236, 72, 153, 0.4); }
  100% { transform: scale(1.03); box-shadow: 0 0 20px rgba(236, 72, 153, 0.7); }
}

@keyframes reward-pop {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.reward-popup-anim {
  animation: reward-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5), 0 0 30px rgba(236, 72, 153, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(236, 72, 153, 0.7), 0 0 50px rgba(249, 115, 22, 0.4); }
}

@keyframes rainbow-border {
  0% { border-color: #facc15; }
  25% { border-color: #ec4899; }
  50% { border-color: #8b5cf6; }
  75% { border-color: #22d3ee; }
  100% { border-color: #facc15; }
}

/* Missing Section Header and Assets Formatting */
.section-header {
  max-width: 600px;
  margin: 20px auto 10px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

.section-header h3 {
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  position: relative;
}

.section-header h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

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

.asset-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* ==========================================================================
   SCREENSHOT INTEGRATED SIDEBAR & HEADER RESPONSIVE VIEWS
   ========================================================================== */
.app-main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100% - var(--header-height));
  width: 100%;
}

/* Sidebar Layout */
.sidebar {
  width: 240px;
  background-color: var(--bg-navy);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

/* VIP Card Gold Gradient */
.vip-rewards-card {
  background: linear-gradient(135deg, #eab308 0%, #a16207 100%);
  border-radius: 16px;
  padding: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.2);
}

.vip-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  width: 100%;
}

.vip-left-group {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 4px;
}

.vip-left-group .gem-1 { color: #facc15; animation: float 2.5s infinite ease-in-out; }
.vip-left-group .gem-2 { color: #ec4899; animation: float 2.5s infinite ease-in-out -1.25s; }

.vip-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 12px;
  white-space: nowrap;
}

.vip-label {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.vip-title {
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 900;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-vip-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s ease;
}

.btn-vip-play:active {
  transform: scale(0.9);
}

/* Sidebar Nav Items */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-item {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.sidebar-item i {
  font-size: 14px;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.sidebar-item:hover {
  color: white;
  background: linear-gradient(90deg, rgba(139,92,246,0.15) 0%, rgba(236,72,153,0.08) 100%);
}

.sidebar-item:hover i {
  color: #e879f9;
  filter: drop-shadow(0 0 6px rgba(232, 121, 249, 0.6));
}

.sidebar-item.active {
  color: white;
  background: linear-gradient(90deg, rgba(250,204,21,0.2) 0%, rgba(249,115,22,0.08) 100%);
  border-left: 3px solid #facc15;
}

.sidebar-item.active i {
  color: #facc15;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.8));
}

.sidebar-item .arrow {
  margin-left: auto;
  font-size: 10px;
}

/* Header Left/Right Elements Alignment */
.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo-lock {
  font-size: 16px;
  background: linear-gradient(135deg, #facc15, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.8));
}

.logo-text {
  font-family: var(--font-header);
  font-size: 19px;
  font-weight: 900;
  color: white;
  letter-spacing: 0.5px;
}

.logo-dot {
  background: linear-gradient(135deg, #facc15, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: white;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.5);
}

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

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

.btn-login {
  background: linear-gradient(135deg, rgba(139,92,246,0.25) 0%, rgba(236,72,153,0.2) 100%);
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 10px;
  padding: 8px 18px;
  color: #e879f9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, rgba(139,92,246,0.4) 0%, rgba(236,72,153,0.35) 100%);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

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

.btn-signup {
  background: linear-gradient(135deg, #facc15 0%, #f97316 50%, #ec4899 100%);
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  color: #00112c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.5);
}

.btn-signup:hover {
  background: linear-gradient(135deg, #fde047 0%, #fb923c 50%, #f472b6 100%);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.6);
  transform: translateY(-1px);
}

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

/* Cashback Floating FAB */
.cashback-fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #facc15 0%, #f97316 50%, #ec4899 100%);
  border-radius: 30px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #00112c;
  font-weight: 900;
  font-size: 11px;
  cursor: pointer;
  z-index: 150;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-header);
  animation: fab-pulse 3s ease-in-out infinite;
}

.cashback-fab:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, #fde047 0%, #fb923c 50%, #f472b6 100%);
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.6);
}

.cashback-fab:active {
  transform: translateY(0);
}

.cashback-icon {
  font-size: 13px;
}

.cashback-fab .arrow {
  font-size: 9px;
  margin-left: 2px;
}

/* Sidebar Responsive Logic & Unified Mobile Styling Overrides */
@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }
  .header-nav {
    display: none !important;
  }
  
  /* Hide balance and actions on mobile when logged out */
  .header-balance-selector {
    display: none !important;
  }
  
  .header-actions {
    display: none !important;
  }
  
  .btn-deposit-header {
    background: rgba(30, 64, 175, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
  }
  
  .btn-deposit-header:active {
    transform: scale(0.95);
    background: rgba(30, 64, 175, 0.85);
  }

  .btn-menu-header {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Stack search inputs vertically on mobile */
  .search-bar-row {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  
  .provider-dropdown-container {
    width: 100% !important;
  }
  
  /* Hero Banner hide to optimize viewport */
  .hero-banner {
    display: none !important;
  }
  
  /* Grid padding adjustments */
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) !important;
    gap: 12px !important;
    padding: 0 12px 12px 12px !important;
  }
  
  .game-card-banner {
    border-radius: 12px !important;
  }
  
  /* Float Cashback above bottom nav */
  .cashback-fab {
    bottom: 90px !important;
    right: 15px !important;
    padding: 8px 16px !important;
    font-size: 10px !important;
  }
}

@media (min-width: 769px) {
  .bottom-nav {
    display: none !important;
  }
  .header-actions {
    display: none !important;
  }
}

/* Balance toggle eye & reload icons styling */
.header-balance-selector {
  display: flex;
  align-items: center;
}

.balance-text {
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  min-width: 45px;
  text-align: center;
}

.btn-balance-eye, .btn-balance-refresh {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.btn-balance-eye:hover, .btn-balance-refresh:hover {
  color: #fff;
}

.btn-balance-eye i {
  color: var(--primary);
  filter: drop-shadow(0 0 3px rgba(234, 179, 8, 0.4));
}

/* Hot games ticker styles (Screenshot Exact) */
.hot-ticker-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin: 10px 15px;
  padding: 8px 12px;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(255,255,255,0.01);
}

.ticker-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ticker-item:hover {
  transform: scale(1.03);
}

.ticker-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.05);
}

.ticker-title {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  font-family: var(--font-header);
}

/* Scroll tabs round icons & active style matching mobile view */
.category-tab i {
  font-size: 10px;
  margin-right: 4px;
  color: var(--secondary);
  transition: color 0.3s ease;
}

.category-tab.active i {
  color: #00112c !important;
}

/* Games list section title and collapse pill */
.games-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  margin: 15px auto 10px auto;
  max-width: 1000px;
  width: 100%;
}

.games-section-header h2 {
  font-family: var(--font-header);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.btn-collapse {
  background: #111e35;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 12px;
  color: #cbd5e1;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-collapse:active {
  transform: scale(0.95);
  border-color: var(--primary);
}

/* Mobile Slide-Out Drawer Navigation System */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 3, 10, 0.65);
  backdrop-filter: blur(6px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: absolute;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #0a2540;
  border-left: 1px solid rgba(0, 212, 255, 0.15);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.drawer-overlay.active .mobile-drawer {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 15px;
}

.btn-close-drawer {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.drawer-body::-webkit-scrollbar {
  display: none;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   PREMIUM 3D ELECTRIC-CORE LOADING PAGE - FULLY RESPONSIVE
   ========================================================================== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1b0a3b 0%, #030825 50%, #000000 100%);
  overflow: hidden;
  animation: color-shifting-bg 12s ease-in-out infinite alternate;
  /* Prevent content overflow on tiny screens */
  padding: 0;
  box-sizing: border-box;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3D Glowing Game Logo Centerpiece */
.loader-centerpiece {
  position: relative;
  /* Size based on viewport: 60vmin ensures it fits all screens */
  width: min(240px, 60vmin);
  height: min(240px, 60vmin);
  display: flex;
  justify-content: center;
  align-items: center;
  /* Dynamic margin - scales down on tiny screens */
  margin-bottom: clamp(50px, 10vh, 80px);
  flex-shrink: 0;
}

.logo-core {
  position: relative;
  /* Scale logo circle: 130px on desktop, proportionally smaller on phones */
  width: min(130px, 32vmin);
  height: min(130px, 32vmin);
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.6), 
              inset 0 0 20px rgba(255, 255, 255, 0.2);
  z-index: 10;
  animation: logo-entrance-flash 1s cubic-bezier(0.1, 0.9, 0.2, 1), 
             logo-glowing-pulse 2s infinite ease-in-out alternate, 
             logo-rotation-wiggle 4s infinite ease-in-out;
}

.logo-core-text {
  font-family: var(--font-header);
  /* Scales from ~18px on small phones to 32px on big screens */
  font-size: clamp(18px, 8vmin, 32px);
  font-weight: 900;
  color: white;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5),
               0 0 15px rgba(255, 255, 255, 0.6);
  transform: perspective(100px) rotateX(10deg);
}

.logo-core-dot {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
}

/* Energy Charging Core Ring - fully fluid via viewBox + percentage sizing */
.energy-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
  /* Match the centerpiece size exactly */
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  z-index: 5;
  overflow: visible;
}

.energy-ring-bg {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 6;
  fill: none;
  vector-effect: non-scaling-stroke;
}

.energy-ring-fill {
  stroke: url(#electric-gradient);
  stroke-width: 6;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 678;
  stroke-dashoffset: 678;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.8)) 
          drop-shadow(0 0 6px rgba(236, 72, 153, 0.6));
  vector-effect: non-scaling-stroke;
}

/* Flying lightning sparks - use percentage positioning inside centerpiece */
.lightning-spark {
  position: absolute;
  /* Size scales with the centerpiece */
  width: clamp(6px, 2vmin, 10px);
  height: clamp(6px, 2vmin, 10px);
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 15px #06b6d4, 0 0 8px #fff;
  z-index: 8;
  pointer-events: none;
  /* Center at the top of the ring - use % offsets */
  top: 0;
  left: 50%;
  transform-origin: 50% 50%;
  /* Offset upward so the spark sits on the ring circumference */
  margin-left: calc(-1 * clamp(3px, 1vmin, 5px));
  animation: spark-rotation 3s infinite linear;
  /* offset to ring radius (roughly 45% of container) */
  transform: translateY(calc(-1 * 47%)) rotate(0deg);
}

.lightning-spark-pink {
  box-shadow: 0 0 15px #ec4899, 0 0 8px #fff;
  animation-duration: 2.2s;
  animation-delay: -1s;
}

/* Dynamic percentage text */
.loading-data {
  position: absolute;
  /* Below the center circle */
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.loading-text-percent {
  font-family: var(--font-header);
  font-size: clamp(14px, 4vmin, 20px);
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}

.loading-status-text {
  font-size: clamp(8px, 2.5vmin, 10px);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Dynamic Tips Section */
.loading-tips-container {
  height: clamp(32px, 6vh, 50px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(20px, 8vw, 40px);
  text-align: center;
  /* Smaller margin for tiny phones */
  margin-top: clamp(10px, 3vh, 20px);
  z-index: 10;
  max-width: min(320px, 90vw);
  width: 100%;
  position: relative;
}

.loading-tip {
  font-size: clamp(9px, 2.8vmin, 11px);
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.4s ease;
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 16px;
}

.loading-tip.active {
  opacity: 1;
}

/* Flying elements in bottom area (Coins, diamonds, trophies) */
.loading-bottom-effects {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.flying-asset {
  position: absolute;
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(10px, 4vmin, 16px);
  bottom: -30px;
  animation: asset-flying-up 7s infinite linear;
}

.flying-asset-1 { left: 10%; animation-duration: 6s; color: rgba(234,179,8,0.12); }
.flying-asset-2 { left: 28%; font-size: clamp(14px, 5vmin, 20px); animation-duration: 9s; animation-delay: 2s; color: rgba(6,182,212,0.1); }
.flying-asset-3 { left: 50%; font-size: clamp(8px, 3vmin, 12px); animation-duration: 8s; animation-delay: 1s; color: rgba(236,72,153,0.1); }
.flying-asset-4 { left: 72%; font-size: clamp(15px, 5.5vmin, 22px); animation-duration: 10s; animation-delay: 3s; color: rgba(234,179,8,0.08); }
.flying-asset-5 { left: 88%; font-size: clamp(10px, 4vmin, 15px); animation-duration: 7s; animation-delay: 0.5s; color: rgba(16,185,129,0.12); }

/* Premium Touch Gold Flash Overlay */
.gold-flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1500;
  background: white;
  opacity: 0;
  pointer-events: none;
}

.gold-flash-overlay.flash-active {
  animation: completion-gold-flash 1s ease-out forwards;
}

/* Animations Keyframes */
@keyframes color-shifting-bg {
  0% { background: radial-gradient(circle at center, #1b0a3b 0%, #030825 50%, #000000 100%); }
  50% { background: radial-gradient(circle at center, #0e113a 0%, #150325 50%, #010105 100%); }
  100% { background: radial-gradient(circle at center, #120325 0%, #03091e 50%, #000000 100%); }
}

@keyframes logo-entrance-flash {
  0% { transform: scale(0.2); opacity: 0; filter: brightness(3); }
  60% { transform: scale(1.15); opacity: 1; filter: brightness(1.8); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes logo-glowing-pulse {
  0% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.1); }
  100% { box-shadow: 0 0 55px rgba(124, 58, 237, 0.95), 0 0 25px rgba(6, 182, 212, 0.45), inset 0 0 25px rgba(255, 255, 255, 0.35); }
}

@keyframes logo-rotation-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  75% { transform: rotate(4deg); }
}

@keyframes spark-rotation {
  0% { transform: rotate(0deg) translateY(-220%); }
  100% { transform: rotate(360deg) translateY(-220%); }
}

@keyframes asset-flying-up {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

@keyframes completion-gold-flash {
  0% { opacity: 0; background: #fff; }
  20% { opacity: 1; background: #fef08a; }
  100% { opacity: 0; background: #ca8a04; }
}

/* ==========================================================================
   AUTHENTICATION MODAL (Login & Signup)
   ========================================================================== */
.auth-card {
  max-width: 400px;
  width: 90%;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-header {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.auth-tabs {
  display: flex;
  gap: 20px;
}

.auth-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 800;
  padding-bottom: 15px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.auth-tab.active {
  color: var(--primary);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  box-shadow: 0 -2px 10px rgba(234, 179, 8, 0.5);
}

.auth-body {
  padding: 25px 20px;
}

.auth-form-container {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.auth-form-container.active {
  display: block;
}

.auth-title {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 5px;
}

.auth-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.forgot-password {
  font-size: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 10px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1px;
}

.social-auth-buttons {
  display: flex;
  gap: 12px;
}

.btn-social {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.btn-social.google i {
  color: #ea4335;
}

.btn-social.telegram i {
  color: #3b82f6;
}

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

/* ==========================================================================
   PROMOTIONS & ANIMATED EFFECTS
   ========================================================================== */

/* Promo Hero Banner */
.promo-hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.promo-hero-content {
  position: relative;
  z-index: 2;
}

.promo-hero-content p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  font-weight: 600;
}

/* Glitch Text Effect */
.promo-glitch-text {
  font-family: var(--font-header);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 15px rgba(236, 72, 153, 0.8);
}

.promo-glitch-text::before,
.promo-glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.promo-glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 rgba(6, 182, 212, 0.8);
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.promo-glitch-text::after {
  left: -2px;
  text-shadow: 1px 0 rgba(236, 72, 153, 0.8);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); }
  20% { clip-path: inset(30% 0 20% 0); }
  40% { clip-path: inset(70% 0 10% 0); }
  60% { clip-path: inset(20% 0 50% 0); }
  80% { clip-path: inset(50% 0 30% 0); }
  100% { clip-path: inset(5% 0 80% 0); }
}

/* Floating Elements in Promo */
.promo-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.promo-floating-elements i {
  position: absolute;
  opacity: 0.6;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.floating-gift { color: #ec4899; top: 15%; left: 10%; font-size: 24px; animation: float-around 6s ease-in-out infinite; }
.floating-coin { color: #eab308; bottom: 20%; right: 15%; font-size: 28px; animation: float-around 5s ease-in-out infinite reverse; }
.floating-star { color: #06b6d4; top: 30%; right: 25%; font-size: 18px; animation: pulse-glow-pink 3s infinite alternate; }

@keyframes float-around {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(10deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Promo Cards Glow */
.promo-animated-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-animated-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.promo-animated-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  z-index: -1;
  border-radius: 18px;
  animation: border-rotate 4s linear infinite;
  background-size: 200% 200%;
}

@keyframes border-rotate {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

/* Streak Badge */
.streak-badge {
  background: rgba(236, 72, 153, 0.2);
  color: #ec4899;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid rgba(236, 72, 153, 0.5);
}

.glow-pulse {
  animation: text-glow-pulse 2s infinite alternate;
}

@keyframes text-glow-pulse {
  0% { box-shadow: 0 0 5px rgba(236, 72, 153, 0.2); }
  100% { box-shadow: 0 0 15px rgba(236, 72, 153, 0.8); }
}

/* Button Shimmer */
.promo-btn-shine {
  position: relative;
  overflow: hidden;
}

.promo-btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: button-shine 3s infinite;
}

@keyframes button-shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* Spin Wheel Glow */
.wheel-icon-spin {
  animation: slow-spin 8s linear infinite;
  color: var(--primary);
}

@keyframes slow-spin {
  100% { transform: rotate(360deg); }
}

.promo-wheel-glow {
  position: relative;
}

.promo-wheel-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: wheel-back-glow 3s ease-in-out infinite alternate;
}

@keyframes wheel-back-glow {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.promo-btn-pulse {
  animation: heart-pulse 2s infinite;
}

@keyframes heart-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(234, 179, 8, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.promo-text-pulse {
  animation: color-pulse 2s infinite alternate;
}

@keyframes color-pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; text-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
}

/* Quests List */
.promo-quest-list .quest-item {
  transition: transform 0.2s ease, background 0.2s ease;
}

.promo-quest-list .quest-item:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   SIDEBAR DIVIDER & LINK
   ========================================================================== */
.sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 10px 0;
}

.sidebar-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-footer-nav {
  margin-top: auto;
}

/* ==========================================================================
   LEADERBOARD — RESPONSIVE
   ========================================================================== */
.leaderboard-header-card {
  margin: 15px auto;
  max-width: 700px;
  width: calc(100% - 30px);
}

.ranking-avatar-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding: 10px 0 5px;
}

.leader-podium {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease;
}

.leader-podium:hover { transform: translateY(-4px); }

.podium-avatar {
  position: relative;
  width: 64px;
  height: 64px;
}

.rank-1 .podium-avatar { width: 80px; height: 80px; }

.podium-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
  object-fit: cover;
}

.rank-1 .podium-avatar img {
  border-color: #facc15;
  box-shadow: 0 0 20px rgba(250,204,21,0.5);
}

.rank-2 .podium-avatar img { border-color: #60a5fa; }
.rank-3 .podium-avatar img { border-color: #ec4899; }

.podium-rank-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: white;
  border: 2px solid var(--bg-midnight);
}

.bg-gold { background: linear-gradient(135deg, #facc15, #f97316); }
.bg-blue-500 { background: #3b82f6; }
.bg-pink-500 { background: #ec4899; }

.podium-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
}

.podium-score {
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.leaderboard-table-container {
  margin: 10px auto 15px;
  max-width: 700px;
  width: calc(100% - 30px);
  padding: 0;
  overflow: hidden;
}

.leaderboard-table-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s ease;
}

.leaderboard-row:hover { background: rgba(255,255,255,0.04); }

.leaderboard-rank {
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
  width: 24px;
  text-align: center;
}

.leaderboard-player {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.leaderboard-player img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}

.leaderboard-player-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.leaderboard-score-val {
  font-family: var(--font-header);
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
}

/* ==========================================================================
   PROFILE PAGE — FULLY RESPONSIVE
   ========================================================================== */
.profile-page {
  padding: 0 0 30px 0;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.profile-hero-card {
  position: relative;
  overflow: hidden;
  padding: 30px 20px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 5px;
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(236,72,153,0.15) 50%, rgba(250,204,21,0.1) 100%);
  z-index: 0;
}

.profile-avatar-wrap {
  position: relative;
  z-index: 1;
}

.profile-avatar-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #facc15, #ec4899, #8b5cf6);
  box-shadow: 0 0 25px rgba(236,72,153,0.4);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-navy);
}

.profile-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #00112c;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
  border: 2px solid var(--bg-midnight);
}

.profile-hero-info { position: relative; z-index: 1; }

.profile-username {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.profile-rank-title {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.profile-join-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Stats row */
.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 15px;
}

.profile-stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

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

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.stat-val {
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 900;
  color: var(--text-main);
}

.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* VIP progress */
.profile-vip-progress {
  margin: 5px 15px;
}

.vip-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
}

.vip-next-tier {
  font-size: 11px;
  color: var(--text-muted);
}

.vip-progress-bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}

.vip-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #facc15, #ec4899, #8b5cf6);
  border-radius: 10px;
  position: relative;
  animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

.vip-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

/* Settings */
.profile-settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 15px;
}

.profile-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.profile-setting-row:hover { background: rgba(255,255,255,0.08); transform: translateX(3px); }
.profile-setting-link { color: var(--text-main); }

.setting-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.setting-left i { font-size: 16px; width: 20px; text-align: center; }

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #facc15, #f97316);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ==========================================================================
   ABOUT US PAGE — FULLY RESPONSIVE
   ========================================================================== */
.about-page {
  padding: 0 0 40px 0;
  max-width: 700px;
  margin: 0 auto;
}

.about-hero {
  position: relative;
  padding: 50px 20px 35px;
  text-align: center;
  overflow: hidden;
}

.about-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(250,204,21,0.15) 0%, rgba(236,72,153,0.1) 50%, transparent 80%);
  z-index: 0;
}

.about-logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.about-logo-icon {
  font-size: 36px;
  background: linear-gradient(135deg, #facc15, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(250,204,21,0.6));
}

.about-logo-text {
  font-family: var(--font-header);
  font-size: 40px;
  font-weight: 900;
  color: white;
  margin: 0;
}

.about-tagline {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.5;
}

.about-section {
  margin: 10px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.about-section-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.about-section h3 {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.about-section p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
}

.about-support-btn {
  margin-top: 6px;
  padding: 10px 24px;
  font-size: 13px;
  text-decoration: none;
  border-radius: 12px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 10px 15px;
}

.about-feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250,204,21,0.3);
}

.about-feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.about-feature-card h4 {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.about-feature-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.about-stats-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 10px 15px;
  background: linear-gradient(135deg, rgba(250,204,21,0.1), rgba(236,72,153,0.08), rgba(139,92,246,0.1));
  border: 1px solid rgba(250,204,21,0.2);
  border-radius: 20px;
  padding: 20px 10px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.about-stat-num {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #facc15, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.about-legal {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  padding: 20px 20px 0;
  opacity: 0.6;
}

/* ==========================================================================
   RESPONSIVE — MOBILE BREAKPOINTS
   ========================================================================== */
@media (max-width: 480px) {
  .profile-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-features-grid {
    grid-template-columns: 1fr;
  }
  .about-stats-banner {
    gap: 10px;
    flex-wrap: wrap;
  }
  .ranking-avatar-row {
    gap: 12px;
  }
  .podium-avatar { width: 52px; height: 52px; }
  .rank-1 .podium-avatar { width: 68px; height: 68px; }
  .leaderboard-table-header span:first-child,
  .leaderboard-player-name { font-size: 11px; }
}

@media (max-width: 360px) {
  .profile-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .stat-val { font-size: 12px; }
  .about-logo-text { font-size: 32px; }
  .about-logo-icon { font-size: 28px; }
}

/* ==========================================================================
   AUTHENTICATION REQUIRED LOCK SCREEN
   ========================================================================== */
.auth-required-view {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: calc(100vh - var(--header-height) - var(--nav-height) - 40px);
  width: 100%;
}

.lock-screen-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: rgba(6, 36, 78, 0.45);
  border: 1px dashed rgba(245, 200, 29, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(245, 200, 29, 0.05);
}

.lock-icon-glow {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(245, 200, 29, 0.1);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 20px rgba(245, 200, 29, 0.35);
  animation: lock-glow-pulse 2s infinite ease-in-out;
}

.lock-screen-card h3 {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.lock-screen-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.lock-actions {
  display: flex;
  gap: 15px;
  width: 100%;
  margin-top: 10px;
}

.lock-actions .btn {
  flex: 1;
  padding: 12px 15px;
  font-size: 13px;
}

@keyframes lock-glow-pulse {
  0% {
    box-shadow: 0 0 15px rgba(245, 200, 29, 0.3);
    border-color: var(--primary);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(245, 200, 29, 0.6), 0 0 10px rgba(245, 200, 29, 0.3);
    border-color: #fef08a;
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 15px rgba(245, 200, 29, 0.3);
    border-color: var(--primary);
    transform: scale(1);
  }
}

/* Header adaptation utilities */
.logged-out-hide {
  display: none !important;
}

.desktop-auth-btn-hidden {
  display: none !important;
}

/* Mobile header auth btn styling */
.btn-mobile-login {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #00112c;
  border: none;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 10px;
  margin-right: 8px;
  cursor: pointer;
  font-family: var(--font-header);
  box-shadow: 0 3px 10px rgba(245, 200, 29, 0.25);
  transition: transform 0.2s;
}

.btn-mobile-login:active {
  transform: scale(0.95);
}

/* ── Header Logout Buttons ─────────────────────────────── */

/* Desktop logout – lives inside the balance capsule */
.btn-header-logout {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-header);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-header-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

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

/* Mobile logout – icon-only, styled like btn-menu-header */
.btn-mobile-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  color: #f87171;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  flex-shrink: 0;
}

.btn-mobile-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.btn-mobile-logout:active {
  transform: scale(0.9);
}
