/* ============================================================
   REISENDES CASINO – Main Stylesheet
   Edel, dunkel, Gold-Akzente, Kirmes-Feeling
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Colors */
  --gold: #D4AF37;
  --gold-light: #F4D03F;
  --gold-dark: #B8960C;
  --crimson: #8B0000;
  --crimson-light: #A52A2A;
  --deep-purple: #1a0a2e;
  --dark-bg: #0a0a12;
  --card-bg: #12121f;
  --card-hover: #1a1a2e;
  --surface: #16162a;
  --text: #f0e6d3;
  --text-muted: #8a8a9a;
  --success: #27ae60;
  --danger: #e74c3c;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #D4AF37, #F4D03F, #D4AF37);
  --gradient-dark: linear-gradient(180deg, #0a0a12 0%, #1a0a2e 100%);
  --gradient-card: linear-gradient(145deg, #16162a, #12121f);
  --gradient-crimson: linear-gradient(135deg, #8B0000, #A52A2A);

  /* Kirmes Lights */
  --kirmes-red: #ff2d55;
  --kirmes-blue: #5856d6;
  --kirmes-green: #34c759;
  --kirmes-yellow: #ffcc00;
  --kirmes-pink: #ff375f;

  /* Spacing */
  --nav-height: 60px;
  --bottom-nav-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--dark-bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   ANIMATED BACKGROUND – Kirmes Lights
   ============================================================ */
.kirmes-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.kirmes-bg .light {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  animation: floatLight 20s infinite ease-in-out;
}

.kirmes-bg .light:nth-child(1) {
  width: 400px; height: 400px;
  background: var(--kirmes-red);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.kirmes-bg .light:nth-child(2) {
  width: 350px; height: 350px;
  background: var(--gold);
  top: 50%; right: -80px;
  animation-delay: -5s;
}

.kirmes-bg .light:nth-child(3) {
  width: 300px; height: 300px;
  background: var(--kirmes-blue);
  bottom: -50px; left: 30%;
  animation-delay: -10s;
}

.kirmes-bg .light:nth-child(4) {
  width: 250px; height: 250px;
  background: var(--kirmes-pink);
  top: 30%; left: 50%;
  animation-delay: -15s;
}

@keyframes floatLight {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, 30px) scale(1.1); }
  50% { transform: translate(-30px, 60px) scale(0.9); }
  75% { transform: translate(40px, -20px) scale(1.05); }
}

/* ============================================================
   HORSE & WAGON SCENE
   ============================================================ */
.wagon-scene {
  position: relative;
  height: 190px;
  overflow: hidden;
  margin-top: 10px;
  background: radial-gradient(ellipse at center bottom, rgba(139, 0, 0, 0.08) 0%, transparent 70%);
}

.wagon-road {
  position: relative;
  width: 100%;
  height: 100%;
}

.wagon-group {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-55%);
  display: flex;
  align-items: flex-end;
  animation: wagonBob 2s ease-in-out infinite;
}

@keyframes wagonBob {
  0%, 100% { transform: translateX(-55%) translateY(0); }
  50% { transform: translateX(-55%) translateY(-3px); }
}

.horse-svg {
  width: 100px;
  height: auto;
  margin-right: -12px;
  position: relative;
  z-index: 2;
}

.wagon-svg {
  width: 170px;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Horse leg animation */
.leg-fr, .hoof-fr { animation: legFront 0.8s ease-in-out infinite; transform-origin: top; }
.leg-fl, .hoof-fl { animation: legFront 0.8s ease-in-out infinite 0.4s; transform-origin: top; }
.leg-br, .hoof-br { animation: legBack 0.8s ease-in-out infinite 0.2s; transform-origin: top; }
.leg-bl, .hoof-bl { animation: legBack 0.8s ease-in-out infinite 0.6s; transform-origin: top; }

@keyframes legFront {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@keyframes legBack {
  0%, 100% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
}

/* Horse tail */
.tail {
  animation: tailSwish 3s ease-in-out infinite;
  transform-origin: top right;
}

@keyframes tailSwish {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
}

/* Wheel rotation */
.wheel {
  animation: wheelSpin 3s linear infinite;
  transform-origin: center;
}

.wheel-front { transform-origin: 185px 140px; }
.wheel-back { transform-origin: 65px 140px; }

@keyframes wheelSpin {
  100% { transform: rotate(360deg); }
}

/* Smoke animation */
.smoke {
  animation: smokeRise 3s ease-out infinite;
}

.smoke.s1 { animation-delay: 0s; }
.smoke.s2 { animation-delay: 1s; }
.smoke.s3 { animation-delay: 2s; }

@keyframes smokeRise {
  0% { opacity: 0.3; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) scale(2); }
}

/* Road line */
.road-line {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0.3), transparent);
}

/* Stars */
.wagon-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  color: var(--gold);
  font-size: 10px;
  opacity: 0.4;
  animation: starTwinkle 2s ease-in-out infinite;
}

.star:nth-child(2n) { animation-delay: 0.5s; font-size: 8px; }
.star:nth-child(3n) { animation-delay: 1s; font-size: 12px; opacity: 0.3; }

@keyframes starTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Responsive wagon */
@media (min-width: 480px) {
  .wagon-scene { height: 240px; }
  .horse-svg { width: 150px; }
  .wagon-svg { width: 250px; }
}

@media (min-width: 768px) {
  .wagon-scene { height: 280px; }
  .horse-svg { width: 180px; }
  .wagon-svg { width: 300px; }
}

/* ============================================================
   TOP NAVIGATION
   ============================================================ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 18, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
}

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

.logo-icon {
  font-size: 28px;
  animation: spinWheel 8s linear infinite;
}

@keyframes spinWheel {
  100% { transform: rotate(360deg); }
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 18px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 25px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-balance:hover {
  background: rgba(212, 175, 55, 0.2);
}

.nav-balance .amount {
  font-weight: 700;
  color: var(--gold);
  font-size: 14px;
}

.nav-balance .currency {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-deposit-btn {
  background: var(--gradient-gold);
  color: #000;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.nav-deposit-btn:hover {
  transform: scale(1.1);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
  min-height: 100vh;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  position: relative;
  padding: 30px 16px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-welcome {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-title .gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}

/* Romani greeting */
.hero-romani {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 4px;
  font-style: italic;
}

/* ============================================================
   PROMO BANNER SLIDER
   ============================================================ */
.promo-slider {
  padding: 0 16px;
  margin-bottom: 24px;
}

.promo-card {
  background: var(--gradient-crimson);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.promo-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.promo-badge {
  display: inline-block;
  background: var(--gradient-gold);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.promo-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}

.promo-text {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
}

.promo-btn {
  display: inline-block;
  background: var(--gradient-gold);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */
.category-section {
  padding: 0 16px;
  margin-bottom: 20px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

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

.cat-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.cat-tab:hover {
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--text);
}

.cat-tab.active {
  background: var(--gradient-gold);
  color: #000;
  font-weight: 700;
  border-color: transparent;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

.section-title .icon {
  margin-right: 8px;
}

.section-more {
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

/* ============================================================
   GAME GRID
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 30px;
}

.game-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.05);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
}

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

.game-thumb {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.05), rgba(139, 0, 0, 0.1));
}

.game-info {
  padding: 8px 8px 10px;
}

.game-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-provider {
  font-size: 9px;
  color: var(--text-muted);
}

.game-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-badge.hot {
  background: linear-gradient(135deg, #ff2d55, #ff6b6b);
  color: #fff;
}

.game-badge.new {
  background: linear-gradient(135deg, #34c759, #30d158);
  color: #fff;
}

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

.game-badge.exclusive {
  background: linear-gradient(135deg, #5856d6, #af52de);
  color: #fff;
}

/* Play overlay */
.game-card .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover .play-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

/* ============================================================
   LIVE STATS TICKER
   ============================================================ */
.stats-ticker {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stats-ticker::-webkit-scrollbar { display: none; }

.stat-card {
  flex-shrink: 0;
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 140px;
  text-align: center;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============================================================
   BOTTOM NAVIGATION (Mobile)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  cursor: pointer;
  transition: color 0.3s;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

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

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

.nav-item .icon {
  font-size: 22px;
}

/* ============================================================
   SLOT MACHINE MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

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

.slot-modal {
  width: 100%;
  max-width: 420px;
  max-height: 100vh;
  background: var(--dark-bg);
  overflow-y: auto;
}

.slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.slot-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
}

.slot-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-machine {
  padding: 20px 16px;
  text-align: center;
}

.reels-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  perspective: 500px;
}

.reel {
  width: 90px;
  height: 90px;
  background: linear-gradient(180deg, #1a1a2e, #0a0a12);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.reel.spinning {
  animation: reelBlur 0.1s infinite;
}

@keyframes reelBlur {
  0% { filter: blur(0); }
  50% { filter: blur(2px); }
  100% { filter: blur(0); }
}

.reel .symbol {
  transition: transform 0.3s ease-out;
}

.slot-bet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.bet-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bet-amount {
  text-align: center;
}

.bet-amount .value {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
}

.bet-amount .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spin-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--gradient-gold);
  color: #000;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
}

.spin-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 25px rgba(212, 175, 55, 0.5);
}

.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.slot-balance {
  font-size: 13px;
  color: var(--text-muted);
}

.slot-balance .val {
  color: var(--gold);
  font-weight: 700;
}

.win-display {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.win-display.animate {
  animation: winPulse 0.5s ease-out;
}

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

/* ============================================================
   AUTH SCREENS
   ============================================================ */
.auth-screen {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark-bg);
  z-index: 3000;
  padding: 40px 24px;
  overflow-y: auto;
}

.auth-screen.active {
  display: block;
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo .icon {
  font-size: 60px;
  display: block;
  margin-bottom: 10px;
}

.auth-logo .name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-form {
  max-width: 360px;
  margin: 0 auto;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.auth-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--gradient-gold);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  transition: transform 0.2s;
}

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

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.auth-error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

/* ============================================================
   DEPOSIT / WITHDRAW MODAL
   ============================================================ */
.wallet-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2500;
  align-items: flex-end;
  justify-content: center;
}

.wallet-modal.active {
  display: flex;
}

.wallet-sheet {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 40px;
  max-height: 80vh;
  overflow-y: auto;
}

.wallet-sheet-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.wallet-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.wallet-method:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.wallet-method .wm-icon {
  font-size: 28px;
}

.wallet-method .wm-name {
  font-weight: 600;
  font-size: 14px;
}

.wallet-method .wm-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-section {
  padding: 20px 16px;
}

.profile-card {
  background: var(--gradient-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 12px;
}

.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-phone {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-balance-big {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
  margin: 16px 0 4px;
}

.profile-balance-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.profile-action-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-action-btn.deposit {
  background: var(--gradient-gold);
  color: #000;
}

.profile-action-btn.withdraw {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}

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

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 12px;
}

.tx-item .tx-icon {
  font-size: 20px;
  margin-right: 12px;
}

.tx-item .tx-desc {
  flex: 1;
}

.tx-item .tx-type {
  font-size: 13px;
  font-weight: 600;
}

.tx-item .tx-time {
  font-size: 10px;
  color: var(--text-muted);
}

.tx-item .tx-amount {
  font-weight: 700;
  font-size: 14px;
}

.tx-item .tx-amount.positive {
  color: var(--success);
}

.tx-item .tx-amount.negative {
  color: var(--danger);
}

/* ============================================================
   LANGUAGE BADGE
   ============================================================ */
.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .reel {
    width: 100px;
    height: 100px;
    font-size: 48px;
  }
}

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

  .hero-title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 900px;
    margin: 0 auto 30px;
  }

  .main-content {
    max-width: 900px;
    margin: 0 auto;
  }
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}

/* ============================================================
   INSTALL PWA PROMPT
   ============================================================ */
.pwa-prompt {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  z-index: 1500;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.pwa-prompt.show {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pwa-prompt .pwa-icon {
  font-size: 36px;
}

.pwa-prompt .pwa-text {
  flex: 1;
}

.pwa-prompt .pwa-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.pwa-prompt .pwa-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.pwa-prompt .pwa-install-btn {
  padding: 10px 18px;
  background: var(--gradient-gold);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

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

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--card-bg);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 5000;
  transition: transform 0.4s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  max-width: 340px;
  text-align: center;
}

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

.toast.success {
  border-color: rgba(39, 174, 96, 0.4);
  color: var(--success);
}

.toast.error {
  border-color: rgba(231, 76, 60, 0.4);
  color: var(--danger);
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top: 3px solid var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

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