/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2035;
  --bg-input: #0f1629;
  --accent: #00d4aa;
  --accent-hover: #00f0c0;
  --accent-glow: rgba(0, 212, 170, 0.4);
  --secondary: #7c3aed;
  --secondary-hover: #8b5cf6;
  --secondary-glow: rgba(124, 58, 237, 0.4);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.4);
  --success: #22c55e;
  --success-glow: rgba(34, 197, 94, 0.4);
  --warning: #f59e0b;
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.35);
  --border: #1e293b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}
body:has(.game-page) { overflow: hidden; height: 100vh; height: 100dvh; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.navbar .logo-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.logo-icon-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 6px;
}
.navbar .logo-text {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar .nav-links { display: flex; gap: 0.5rem; align-items: center; }
.navbar .nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.navbar .nav-links a:hover, .navbar .nav-links a.active { color: var(--accent); }

/* Nav game pills */
.nav-game-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
  text-decoration: none;
}
.nav-game-pill:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.nav-game-pill .pill-emoji { font-size: 1rem; line-height: 1; }

/* Nav balance badge */
.nav-balance {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 212, 170, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  border: 1px solid rgba(0,212,170,0.2);
  box-shadow: 0 0 20px rgba(0,212,170,0.08);
  animation: balanceGlow 3s ease-in-out infinite alternate;
}
@keyframes balanceGlow {
  0% { box-shadow: 0 0 15px rgba(0,212,170,0.06); }
  100% { box-shadow: 0 0 25px rgba(0,212,170,0.12); }
}
.nav-balance-icon { font-size: 1rem; line-height: 1; }
.nav-balance-coin {
  height: 20px;
  width: 20px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 50%;
}

/* Nav auth buttons */
.nav-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}
.nav-btn-outline {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
}
.nav-btn-outline:hover { color: var(--accent); border-color: var(--accent); }
.nav-btn-filled {
  color: #000;
  background: linear-gradient(135deg, var(--accent), #00b894);
  border: none;
  box-shadow: 0 2px 12px rgba(0,212,170,0.25);
}
.nav-btn-filled:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,212,170,0.35); color: #000; }

/* Back button on game pages */
.game-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
  margin-right: 0.25rem;
}
.game-back-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.game-back-btn .back-arrow { font-size: 1.1rem; line-height: 1; }

/* Always-visible balance badge on game pages (outside nav-links) */
.game-live-balance {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 212, 170, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.88rem;
  border: 1px solid rgba(0,212,170,0.2);
  box-shadow: 0 0 16px rgba(0,212,170,0.08);
  white-space: nowrap;
  margin-left: auto;
  margin-right: 0.5rem;
  animation: balanceGlow 3s ease-in-out infinite alternate;
}
.game-live-balance .bal-icon { font-size: 0.95rem; line-height: 1; }

/* Game HUD - back button + balance overlaid on game stage */
.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  z-index: 15;
  pointer-events: none;
}
.game-hud > * { pointer-events: auto; }
.game-hud-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: rgba(10, 14, 23, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.06);
}
.game-hud-back:hover { color: var(--text-primary); background: rgba(10, 14, 23, 0.8); }
.game-hud-back .back-arrow { font-size: 1.1rem; line-height: 1; }
.game-hud-balance {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 212, 170, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  border: 1px solid rgba(0,212,170,0.2);
  box-shadow: 0 0 16px rgba(0,212,170,0.08);
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}
.nav-mobile-overlay.active { display: flex; }
.nav-mobile-overlay a,
.nav-mobile-overlay .nav-game-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  text-decoration: none;
  border: 1px solid transparent;
}
.nav-mobile-overlay a:hover,
.nav-mobile-overlay .nav-game-pill:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}
.nav-mobile-overlay .nav-balance {
  margin-top: 0.5rem;
  justify-content: center;
  font-size: 1.1rem;
  padding: 0.75rem;
}
.nav-mobile-overlay .mobile-auth-btns {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.nav-mobile-overlay .mobile-auth-btns a {
  flex: 1;
  text-align: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b894);
  color: #000;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-hover), #00d4aa);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #6d28d9);
  color: #fff;
  box-shadow: 0 2px 12px var(--secondary-glow);
}
.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--secondary-hover), #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--secondary-glow);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { opacity: 0.9; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Pulsing cashout button */
.btn-cashout-active {
  animation: cashoutPulse 2s ease-in-out infinite;
}
@keyframes cashoutPulse {
  0%, 100% { box-shadow: 0 2px 12px var(--accent-glow); }
  50% { box-shadow: 0 4px 30px var(--accent-glow), 0 0 60px rgba(0,212,170,0.15); }
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}
.form-control::placeholder { color: var(--text-muted); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card-header {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 6rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}
/* Gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,170,0.12) 0%, transparent 60%);
  animation: orbFloat1 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 60%);
  animation: orbFloat2 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -30px) scale(1.15); }
}
/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.15);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
/* Trust indicators */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.trust-item .trust-icon {
  font-size: 1rem;
  line-height: 1;
}
/* Hero CTA buttons */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== GAME CARDS (Homepage) ===== */
.game-cards-section { padding: 4rem 0; }
.section-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

/* ===== GAME CARDS V2 ===== */
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .game-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .game-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
.game-card-v2 {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  border: 2px solid transparent;
  transition: border-color 0.25s, transform 0.25s;
}
.game-card-v2:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.game-card-v2-img {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
}
.game-card-v2-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-card-v2[data-game="coinflip"] .game-card-v2-img { background: linear-gradient(135deg, #064e3b, #047857); }
.game-card-v2[data-game="dice"] .game-card-v2-img { background: linear-gradient(135deg, #7f1d1d, #b91c1c); }
.game-card-v2[data-game="mines"] .game-card-v2-img { background: linear-gradient(135deg, #4c1d95, #6d28d9); }
.game-card-v2[data-game="fruittowers"] .game-card-v2-img { background: linear-gradient(135deg, #064e3b, #15803d); }
.game-card-v2-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  z-index: 2;
  transition: opacity 0.25s;
}
.game-card-v2-title h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.game-card-v2-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.game-card-v2-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 3;
  padding: 16px;
}
.game-card-v2:hover .game-card-v2-overlay {
  opacity: 1;
}
.game-card-v2:hover .game-card-v2-title {
  opacity: 0;
}
.game-card-v2-overlay-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.game-card-v2-overlay .game-card-v2-overlay-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.btn-play {
  display: block;
  width: 80%;
  max-width: 180px;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  background: var(--accent);
  color: #0a0e17;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-play:hover { background: var(--accent-hover); color: #0a0e17; }
.btn-play-demo {
  display: block;
  width: 80%;
  max-width: 180px;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  background: var(--gold);
  color: #0a0e17;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-play-demo:hover { background: #ffe033; color: #0a0e17; }

/* Keep old game-card classes for compatibility but hide */
.game-card { display: none; }

/* ===== FEATURE CARDS ===== */
.features-section { padding: 4rem 0; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.feature-card .icon { font-size: 3rem; margin-bottom: 1.25rem; line-height: 1; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; font-weight: 700; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 3rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 280px;
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}
.footer-brand .logo-text {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: rgba(0,212,170,0.1);
  border-color: rgba(0,212,170,0.2);
  color: var(--accent);
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-muted); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ===== AUTH FORMS ===== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
/* Subtle background orbs for auth */
.auth-page::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,170,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
/* Animated gradient top border */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
  background-size: 200% 100%;
  animation: shimmerBorder 3s linear infinite;
}
@keyframes shimmerBorder {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.auth-card h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-card .auth-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== DASHBOARD ===== */
.balance-card {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
  background-size: 200% 100%;
  animation: shimmerBorder 3s linear infinite;
}
/* Diamond watermark */
.balance-card::after {
  content: '\1F48E';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  opacity: 0.06;
  pointer-events: none;
}
.balance-card .balance-label { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.5rem; }
.balance-card .balance-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(0,212,170,0.3);
}
.balance-card .balance-unit { font-size: 1rem; color: var(--text-muted); margin-left: 0.5rem; }
.balance-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.seed-info { font-family: 'Courier New', monospace; font-size: 0.85rem; word-break: break-all; }
.seed-value {
  background: var(--bg-input);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; }
td { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-accent { color: var(--accent); }

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-approved { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-rejected { background: rgba(239,68,68,0.15); color: var(--danger); }

/* ===== DEPOSIT PAGE ===== */
.deposit-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.deposit-steps {
  display: flex;
  justify-content: center;
  gap: 0rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.deposit-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.deposit-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.deposit-step-arrow {
  color: var(--text-muted);
  opacity: 0.3;
  font-size: 1.2rem;
}
.wallet-address {
  background: var(--bg-input);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 0 20px rgba(0,212,170,0.05);
}
.copy-btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  font-family: inherit;
}

/* ===== GAME PAGES (mines legacy layout) ===== */
.game-container { max-width: 1000px; margin: 0 auto; padding: 2rem; }
.game-panel { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; }
.game-controls { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.game-display { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 450px; position: relative; overflow: hidden; }
.game-display::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(0,212,170,0.03) 0%, transparent 60%), radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.03) 0%, transparent 60%); pointer-events: none; }
.bet-input-group { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.bet-input-group .form-control { flex: 1; }
.bet-input-group .btn { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
.game-bet-display { font-size: 0.85rem; color: var(--text-muted); }

/* ===== FULL PAGE GAME LAYOUT ===== */
.game-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.game-page .navbar { flex-shrink: 0; }
.game-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--bg-card); min-height: 0; }
.game-bottom { flex-shrink: 0; }
.game-bar { display: flex; align-items: center; justify-content: center; gap: 0.85rem; padding: 1rem 1.5rem; background: var(--bg-secondary); border-top: 1px solid var(--border); flex-wrap: wrap; }
.game-bar .form-control { width: 110px; padding: 0.75rem 0.9rem; font-size: 1.05rem; height: 50px; }
.game-bar .btn { white-space: nowrap; min-height: 50px; font-size: 1rem; padding: 0.75rem 1.5rem; }
.game-bar .btn-lg { padding: 1rem 2.75rem; font-size: 1.2rem; min-height: 54px; font-weight: 800; letter-spacing: 0.5px; }
.game-bar .btn-sm { padding: 0.65rem 1rem; font-size: 0.95rem; min-height: 46px; }
.bet-group { display: flex; align-items: center; gap: 0.6rem; }
.bet-group label { color: var(--text-muted); font-size: 0.95rem; font-weight: 700; white-space: nowrap; margin: 0; display: block; }
.bar-info { color: var(--text-muted); font-size: 0.95rem; white-space: nowrap; }
.bar-sep { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }
.pick-row { display: flex; gap: 0.6rem; }
.pick-chip { padding: 0.75rem 1.3rem; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-input); color: var(--text-primary); cursor: pointer; font-weight: 700; font-size: 1.05rem; transition: all 0.2s; white-space: nowrap; min-height: 50px; display: inline-flex; align-items: center; }
.pick-chip:hover { border-color: #ffd700; }
.pick-chip.active { border-color: #ffd700; background: rgba(255,215,0,0.12); color: #ffd700; box-shadow: 0 0 12px rgba(255,215,0,0.2); }

/* ===== GAME RESULT OVERLAY ===== */
.game-result-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 20;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(10, 14, 23, 0.85);
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
}
.game-result-popup.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.game-result-popup .result-amount {
  font-size: 2.2rem;
  font-weight: 900;
  text-shadow: 0 0 30px currentColor;
}
.game-result-popup .result-label {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.25rem;
  opacity: 0.9;
}
.game-result-popup.win { color: var(--success); border-color: rgba(34,197,94,0.3); }
.game-result-popup.win .result-amount { text-shadow: 0 0 40px var(--success-glow); }
.game-result-popup.lose { color: var(--danger); border-color: rgba(239,68,68,0.3); }
.game-result-popup.lose .result-amount { text-shadow: 0 0 40px var(--danger-glow); }

/* Screen flash effect */
.flash-win { animation: flashWin 0.5s ease-out; }
.flash-lose { animation: flashLose 0.5s ease-out; }
@keyframes flashWin {
  0% { box-shadow: inset 0 0 80px var(--success-glow); }
  100% { box-shadow: inset 0 0 0 transparent; }
}
@keyframes flashLose {
  0% { box-shadow: inset 0 0 80px var(--danger-glow); }
  100% { box-shadow: inset 0 0 0 transparent; }
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 350px;
}
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-info { background: var(--secondary); color: #fff; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== PARTICLE SYSTEM ===== */
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 30;
}
.particle-gold { background: var(--gold); box-shadow: 0 0 6px var(--gold-glow); }
.particle-green { background: var(--success); box-shadow: 0 0 6px var(--success-glow); }
.particle-red { background: var(--danger); box-shadow: 0 0 6px var(--danger-glow); }
.particle-purple { background: var(--secondary); box-shadow: 0 0 6px var(--secondary-glow); }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar .nav-links { display: none; }
  .navbar { padding: 0 1rem; height: 56px; gap: 0.5rem; }
  .game-back-btn { font-size: 0.8rem; padding: 0.3rem 0.5rem; }
  .game-live-balance { font-size: 0.82rem; padding: 0.35rem 0.75rem; }
  .navbar .logo { font-size: 1.1rem; }
  .navbar .logo-icon { font-size: 1.2rem; }
  .nav-mobile-overlay { top: 56px; }

  .container { padding: 1.25rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.05rem; }
  .trust-row { gap: 0.75rem; }
  .trust-item { font-size: 0.78rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .game-panel { grid-template-columns: 1fr; }
  .game-controls { order: -1; }
  .auth-card { padding: 1.5rem; }
  .section-title { font-size: 1.8rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* Mobile */
@media (max-width: 480px) {
  .navbar { height: 48px; padding: 0 0.75rem; gap: 0.35rem; }
  .navbar .logo { font-size: 0.95rem; }
  .navbar .logo-icon { font-size: 1rem; }
  .nav-mobile-overlay { top: 48px; }
  .game-back-btn { font-size: 0.75rem; padding: 0.25rem 0.4rem; margin-right: 0; }
  .game-back-btn .back-arrow { font-size: 0.95rem; }
  .game-live-balance { font-size: 0.78rem; padding: 0.3rem 0.6rem; gap: 0.3rem; margin-right: 0.25rem; }


  .hero { padding: 2.5rem 1rem 2rem; }
  .hero h1 { font-size: 1.8rem; letter-spacing: 0; }
  .hero p { font-size: 0.9rem; }
  .hero-badge { font-size: 0.75rem; padding: 0.3rem 0.9rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 280px; }
  .trust-row { gap: 0.5rem; }
  .trust-item { font-size: 0.72rem; }

  .section-title { font-size: 1.4rem; margin-bottom: 1.5rem; }
  .game-card-emoji { font-size: 3rem; }
  .game-card-header { padding: 1.5rem 1rem 1rem; }
  .game-card-body { padding: 1rem; }

  .feature-card { padding: 1.25rem; }
  .feature-card .icon { font-size: 2.2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: auto; }

  /* Game bar controls */
  .game-bar { padding: 0.65rem 0.5rem; gap: 0.4rem; }
  .game-bar .form-control { width: 72px; padding: 0.55rem 0.5rem; font-size: 0.95rem; height: 44px; }
  .game-bar .btn { padding: 0.6rem 1rem; font-size: 0.95rem; min-height: 44px; }
  .game-bar .btn-lg { padding: 0.7rem 1.4rem; font-size: 1.05rem; min-height: 46px; }
  .game-bar .btn-sm { padding: 0.5rem 0.7rem; font-size: 0.88rem; min-height: 40px; }
  .bet-group label { font-size: 0.82rem; }
  .bar-info { font-size: 0.82rem; }
  .bar-sep { display: none; }
  .pick-row { gap: 0.35rem; }
  .pick-chip { padding: 0.55rem 0.85rem; font-size: 0.92rem; border-width: 2px; min-height: 42px; }

  /* Game layout */
  .game-container { padding: 0.75rem; }
  .game-container .page-title { font-size: 1.2rem; margin-bottom: 0.3rem; }
  .game-controls { padding: 0.75rem; }
  .game-display { padding: 0.75rem; min-height: 280px; }

  /* Result popup */
  .game-result-popup { padding: 0.5rem 1rem; }
  .result-amount { font-size: 1.2rem; }
  .result-label { font-size: 0.65rem; }

  /* Auth */
  .auth-card { padding: 1.5rem; margin: 0.75rem; max-width: 100%; }

  /* Dashboard */
  .balance-card { padding: 1.5rem; }
  .balance-card .balance-amount { font-size: 2rem; }
  .balance-card::after { font-size: 3rem; }
}



/* ===== WITHDRAW ===== */
.withdraw-limits {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.limit-row:last-child { border-bottom: none; }
.limit-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.limit-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.limit-value.highlight {
  color: var(--accent);
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
.relative { position: relative; }

/* ===== CHAT WIDGET ===== */
.chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 212, 170, 0.45);
}
.chat-bubble svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.chat-unread-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}
.chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 340px;
  height: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: none;
  flex-direction: column;
  z-index: 1001;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}
.chat-window.open {
  display: flex;
}
.chat-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
}
.chat-window-header .chat-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  line-height: 1;
}
.chat-window-header .chat-close:hover {
  color: var(--text-primary);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.chat-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-wrap: break-word;
}
.chat-msg .chat-msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #0a0e17;
  border-bottom-right-radius: 4px;
}
.chat-msg.user .chat-msg-time {
  color: rgba(10, 14, 23, 0.6);
}
.chat-msg.admin {
  align-self: flex-start;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.chat-input-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}
.chat-input-row input:focus {
  border-color: var(--accent);
}
.chat-input-row button {
  background: var(--accent);
  color: #0a0e17;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.chat-input-row button:hover {
  background: var(--accent-hover);
}
.chat-empty {
  text-align: center;
  color: var(--text-muted);
  margin-top: 40px;
  font-size: 0.85rem;
}

/* ===== ADMIN CHAT PANEL ===== */
.admin-chat-panel {
  display: flex;
  height: calc(100vh - 64px);
  overflow: hidden;
}
.admin-conversations {
  width: 320px;
  min-width: 280px;
  border-right: 1px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-conversations-header {
  padding: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.admin-conversations-list {
  flex: 1;
  overflow-y: auto;
}
.conversation-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(30, 41, 59, 0.4);
  transition: background 0.15s;
}
.conversation-item:hover {
  background: rgba(0, 212, 170, 0.05);
}
.conversation-item.active {
  background: rgba(0, 212, 170, 0.1);
  border-left: 3px solid var(--accent);
}
.conversation-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.conversation-item-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.conversation-item-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.conversation-item-preview {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conversation-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0a0e17;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
}
.admin-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}
.admin-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.admin-chat-header-info {
  display: flex;
  flex-direction: column;
}
.admin-chat-header-name {
  font-weight: 700;
  font-size: 1rem;
}
.admin-chat-header-phone {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.admin-actions {
  display: flex;
  gap: 8px;
}
.admin-actions .btn-reset-pw {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-actions .btn-reset-pw:hover {
  opacity: 0.85;
}
.admin-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-chat-messages::-webkit-scrollbar {
  width: 4px;
}
.admin-chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.admin-no-conversation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== FORGOT PASSWORD MODAL ===== */
.forgot-pw-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}
.forgot-pw-modal.open {
  display: flex;
}
.forgot-pw-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 400px;
  margin: 0 16px;
}
.forgot-pw-modal-content h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.forgot-pw-modal-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.forgot-pw-modal-content .form-group {
  margin-bottom: 12px;
}
.forgot-pw-modal-content textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
  min-height: 70px;
  resize: vertical;
  outline: none;
}
.forgot-pw-modal-content textarea:focus {
  border-color: var(--accent);
}
.forgot-pw-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.forgot-pw-modal-actions .btn {
  flex: 1;
}
.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-secondary:hover {
  background: var(--bg-input);
}

/* Admin chat responsive */
@media (max-width: 700px) {
  .admin-chat-panel {
    flex-direction: column;
  }
  .admin-conversations {
    width: 100%;
    min-width: 0;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* Chat widget responsive */
@media (max-width: 500px) {
  .chat-window {
    right: 8px;
    left: 8px;
    bottom: 80px;
    width: auto;
    height: 400px;
  }
  .chat-bubble {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}

/* ===== GIFT CARDS ===== */
.gc-page-header {
  padding: 3rem 0 1rem;
}
.gc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.gc-card {
  padding: 2rem;
}
.gc-card-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.gc-code-input {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}
.gc-quick-picks {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.gc-pick {
  flex: 1;
  min-width: 60px;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
}
.gc-pick:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.gc-result {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}
.gc-result-success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.gc-result-error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.gc-created {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: var(--radius);
  text-align: center;
}
.gc-created-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.gc-created-amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.gc-created-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.gc-created-code {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  background: var(--bg-input);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.gc-created-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
.gc-history-card {
  margin-bottom: 3rem;
}
.gc-history-card code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .gc-grid {
    grid-template-columns: 1fr;
  }
  .gc-page-header {
    padding: 2rem 0 0.5rem;
  }
}
@media (max-width: 480px) {
  .gc-card {
    padding: 1.25rem;
  }
  .gc-code-input {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }
  .gc-created-code {
    font-size: 1rem;
  }
  .gc-pick {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

/* ===== CUSTOM BET NUMPAD ===== */
.bet-numpad-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  backdrop-filter: blur(4px);
}
.bet-numpad {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 300px;
  max-width: 90vw;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.bet-numpad-display {
  margin-bottom: 16px;
  text-align: center;
}
.bet-numpad-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.bet-numpad-value {
  width: 100%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  font-family: inherit;
  outline: none;
}
.bet-numpad-value:focus {
  border-color: var(--accent);
}
.bet-numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.bet-numpad-key {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 14px 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.bet-numpad-key:hover {
  background: var(--bg-input);
  border-color: var(--accent);
}
.bet-numpad-key:active {
  background: rgba(0, 212, 170, 0.15);
  border-color: var(--accent);
}
.bet-numpad-del {
  color: var(--danger);
  font-size: 1.3rem;
}
.bet-numpad-actions {
  display: flex;
  gap: 10px;
}
.bet-numpad-actions .btn {
  flex: 1;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
}
