/* ══════════════════════════════════════════════════════════════════════════════
   GoodKarmaCasino — Main Stylesheet
   Theme: Deep Purple + Gold Luxury + Neon Vegas
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg-deep:       #0a0118;
  --bg-card:       #130228;
  --bg-surface:    #1e0440;
  --bg-elevated:   #2a0858;
  --bg-input:      #160330;

  --gold:          #ffd700;
  --gold-light:    #ffe566;
  --gold-dark:     #b8960c;
  --gold-dim:      rgba(255,215,0,0.15);

  --neon-teal:     #00ffe7;
  --neon-pink:     #ff007f;
  --neon-purple:   #bf00ff;
  --neon-yellow:   #ffe600;

  --felt-green:    #1a4a2e;
  --felt-rail:     #0f2d1b;

  --text-primary:  #f0e6ff;
  --text-secondary:#b09ac8;
  --text-muted:    #6b5478;

  --border-subtle: rgba(255,215,0,0.12);
  --border-glow:   rgba(255,215,0,0.45);

  --glow-gold:     0 0 12px rgba(255,215,0,0.6), 0 0 30px rgba(255,215,0,0.25);
  --glow-teal:     0 0 12px rgba(0,255,231,0.7), 0 0 30px rgba(0,255,231,0.3);
  --glow-pink:     0 0 12px rgba(255,0,127,0.7), 0 0 30px rgba(255,0,127,0.3);
  --glow-purple:   0 0 12px rgba(191,0,255,0.7), 0 0 30px rgba(191,0,255,0.3);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.font-cinzel { font-family: 'Cinzel', 'Times New Roman', serif; }
h1,h2,h3 { font-family: 'Cinzel', 'Times New Roman', serif; line-height: 1.2; }

/* ── Background Body Pattern ──────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,   rgba(80,0,160,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%,  rgba(0,0,80,0.4)   0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%,   rgba(40,0,100,0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ════════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,1,24,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  white-space: nowrap;
  flex-shrink: 0;
}
/* ── Logo: chip + GK wordmark ─────────────────────────────────────────── */
.logo-chip {
  width: 40px; height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.5)) drop-shadow(0 0 14px rgba(0,255,231,0.25));
  transition: filter var(--transition);
}
.nav-logo:hover .logo-chip {
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.8)) drop-shadow(0 0 22px rgba(0,255,231,0.4));
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo-gk {
  font-family: 'Dancing Script', cursive;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  line-height: 1;
}
.logo-casino-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.9;
  line-height: 1;
}
.logo-fullname {
  font-family: 'Cinzel', serif;
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.94;
  white-space: nowrap;
  line-height: 1.4;
}
.nav-logo:hover .logo-gk { text-shadow: 0 0 22px rgba(255,215,0,0.95); }
.nav-logo:hover .logo-fullname { opacity: 0.95; }

/* ── Nav dropdown ─────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-dropdown__toggle:hover { color: var(--gold); background: var(--gold-dim); }
.nav-dropdown__toggle[aria-expanded="true"] { color: var(--gold); background: var(--gold-dim); }
.nav-dropdown__caret {
  font-size: 0.65rem;
  transition: transform var(--transition);
  display: inline-block;
}
.nav-dropdown__toggle[aria-expanded="true"] .nav-dropdown__caret { transform: rotate(180deg); }

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: rgba(19,2,40,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,215,0,0.08);
  padding: 6px;
  display: none;
  z-index: 200;
  animation: dropIn 0.18s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown__menu.open { display: block; }
.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown__item:hover {
  background: var(--gold-dim);
  color: var(--gold);
}
.nav-dropdown__icon { font-size: 1.1rem; width: 22px; text-align: center; }

.nav-logo:hover { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { color: var(--gold); background: var(--gold-dim); }

.nav-credits {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  background: var(--gold-dim);
  border: 1px solid var(--border-subtle);
}
.nav-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  vertical-align: middle;
}

.nav-btn {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}
.nav-btn--outline {
  color: var(--gold);
  border: 1px solid var(--border-glow);
  background: transparent;
}
.nav-btn--outline:hover {
  background: var(--gold-dim);
  box-shadow: var(--glow-gold);
  color: var(--gold-light);
}
.nav-btn--primary {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: #0a0118;
  border: none;
}
.nav-btn--primary:hover {
  box-shadow: var(--glow-gold);
  filter: brightness(1.1);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* Animated gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 30%, rgba(100,0,200,0.4) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(0,255,231,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 85% 70%, rgba(255,0,127,0.08) 0%, transparent 50%);
  animation: heroOrb 8s ease-in-out infinite alternate;
}
@keyframes heroOrb {
  0%   { opacity: 0.7; transform: scale(1) rotate(0deg); }
  100% { opacity: 1;   transform: scale(1.08) rotate(2deg); }
}

/* Floating suit symbols */
.hero-suits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-suit {
  position: absolute;
  font-size: 3rem;
  opacity: 0.04;
  animation: floatSuit linear infinite;
  user-select: none;
}
@keyframes floatSuit {
  0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
  5%   { opacity: 0.06; }
  95%  { opacity: 0.06; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; max-width: 860px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-teal);
  text-shadow: var(--glow-teal);
  margin-bottom: 24px;
  padding: 6px 18px;
  border: 1px solid rgba(0,255,231,0.25);
  border-radius: var(--radius-xl);
  background: rgba(0,255,231,0.05);
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.hero-title .word-good  { color: var(--gold);      text-shadow: var(--glow-gold); }
.hero-title .word-karma { color: var(--neon-teal);  text-shadow: var(--glow-teal); }
.hero-title .word-casino{ color: var(--text-primary); }

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--neon-pink);
  text-shadow: var(--glow-pink);
  letter-spacing: 0.08em;
  margin-bottom: 48px;
  animation: taglinePulse 3s ease-in-out infinite;
}
@keyframes taglinePulse {
  0%,100% { text-shadow: var(--glow-pink); }
  50%      { text-shadow: 0 0 20px rgba(255,0,127,0.9), 0 0 50px rgba(255,0,127,0.5); }
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '▼';
  color: var(--gold);
  font-size: 0.8rem;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ════════════════════════════════════════════════════════════════════════════
   BUTTONS (global)
   ════════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #a0700a 0%, var(--gold) 45%, var(--gold-light) 100%);
  color: #0a0118;
  box-shadow: 0 4px 20px rgba(255,215,0,0.35);
}
.btn-primary:hover {
  box-shadow: var(--glow-gold), 0 8px 30px rgba(255,215,0,0.45);
  transform: translateY(-2px);
  color: #0a0118;
}
.btn-secondary {
  background: rgba(255,215,0,0.07);
  color: var(--gold);
  border: 1.5px solid var(--border-glow);
}
.btn-secondary:hover {
  background: var(--gold-dim);
  box-shadow: var(--glow-gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-teal {
  background: rgba(0,255,231,0.1);
  color: var(--neon-teal);
  border: 1.5px solid rgba(0,255,231,0.3);
}
.btn-teal:hover {
  background: rgba(0,255,231,0.18);
  box-shadow: var(--glow-teal);
  color: #fff;
  transform: translateY(-2px);
}
.btn-lg   { padding: 16px 40px; font-size: 1.05rem; }
.btn-sm   { padding: 9px 22px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ════════════════════════════════════════════════════════════════════════════
   SECTION WRAPPERS
   ════════════════════════════════════════════════════════════════════════════ */
.section {
  padding: 96px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}
/* Decorative neon line under section titles */
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-teal), var(--gold), var(--neon-pink));
  margin: 14px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0,255,231,0.6);
}

/* ════════════════════════════════════════════════════════════════════════════
   GAME CARDS
   ════════════════════════════════════════════════════════════════════════════ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: var(--radius-lg);
  transition: opacity var(--transition);
  pointer-events: none;
}
.game-card:hover { transform: translateY(-6px); border-color: var(--border-glow); }
.game-card:hover::before { opacity: 1; }

/* Per-game accent colors */
.game-card--blackjack::before { box-shadow: inset 0 0 60px rgba(0,255,231,0.08); }
.game-card--blackjack:hover  { box-shadow: 0 12px 40px rgba(0,255,231,0.25); }
.game-card--poker::before    { box-shadow: inset 0 0 60px rgba(255,0,127,0.08); }
.game-card--poker:hover      { box-shadow: 0 12px 40px rgba(255,0,127,0.25); }
.game-card--slots::before    { box-shadow: inset 0 0 60px rgba(255,215,0,0.08); }
.game-card--slots:hover      { box-shadow: 0 12px 40px rgba(255,215,0,0.3); }
.game-card--holdem::before   { box-shadow: inset 0 0 60px rgba(191,0,255,0.08); }
.game-card--holdem:hover     { box-shadow: 0 12px 40px rgba(191,0,255,0.25); }

.game-card__banner {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}
.game-card--blackjack .game-card__banner { background: radial-gradient(ellipse at center, rgba(0,255,231,0.15) 0%, rgba(19,2,40,0.6) 70%), var(--bg-surface); }
.game-card--poker     .game-card__banner { background: radial-gradient(ellipse at center, rgba(255,0,127,0.15) 0%, rgba(19,2,40,0.6) 70%), var(--bg-surface); }
.game-card--slots     .game-card__banner { background: radial-gradient(ellipse at center, rgba(255,215,0,0.15)  0%, rgba(19,2,40,0.6) 70%), var(--bg-surface); }
.game-card--holdem    .game-card__banner { background: radial-gradient(ellipse at center, rgba(191,0,255,0.15)  0%, rgba(19,2,40,0.6) 70%), var(--bg-surface); }

.game-card__icon { filter: drop-shadow(0 0 12px currentColor); line-height: 1; }
.game-card--blackjack .game-card__icon { color: var(--neon-teal); text-shadow: var(--glow-teal); }
.game-card--poker     .game-card__icon { color: var(--neon-pink); text-shadow: var(--glow-pink); }
.game-card--slots     .game-card__icon { color: var(--gold);      text-shadow: var(--glow-gold); }
.game-card--holdem    .game-card__icon { color: var(--neon-purple);text-shadow: var(--glow-purple);}

/* Fantastic 3D gold "777" front-page icon */
.card-777 {
  position: relative;
  display: inline-block;
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.04em;
  line-height: 1;
  background: linear-gradient(177deg, #fff7c8 0%, #ffd700 36%, #ff7a00 68%, #c40000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;                 /* override parent gold glow so the gradient stays clean */
  filter:
    drop-shadow(0 2px 0 #7a0010)      /* extruded base edge */
    drop-shadow(0 4px 3px rgba(0,0,0,0.55))
    drop-shadow(0 0 16px rgba(255,180,40,0.8));   /* warm glow */
}
.card-777::before,
.card-777::after {
  content: '\2726';                   /* ✦ sparkle */
  position: absolute;
  font-size: 1.05rem;
  color: #fff;
  -webkit-text-fill-color: #fff;
  filter: drop-shadow(0 0 6px #ffd700);
  animation: card777Twinkle 1.8s ease-in-out infinite;
}
.card-777::before { top: -8px;  left: -16px; }
.card-777::after  { bottom: 0;  right: -16px; animation-delay: .9s; }
@keyframes card777Twinkle {
  0%,100% { opacity: .35; transform: scale(0.8) rotate(0deg); }
  50%     { opacity: 1;   transform: scale(1.25) rotate(45deg); }
}

/* Fantastic "pocket aces" Texas Hold'em front-page icon */
.ph-cards {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 104px;
}
.ph-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 90px;
  margin: -45px 0 0 -32px;
  background: linear-gradient(158deg, #ffffff 0%, #ece9f5 100%);
  border-radius: 9px;
  border: 2px solid #ffd700;
  box-shadow:
    0 7px 16px rgba(0,0,0,0.6),
    0 0 22px rgba(191,0,255,0.45);   /* purple Hold'em glow */
  text-shadow: none;
}
.ph-ix {
  position: absolute;
  top: 5px;
  left: 7px;
  font: 700 1.05rem 'Georgia', 'Times New Roman', serif;
  line-height: 0.85;
}
.ph-pip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  font-size: 2.3rem;
  line-height: 1;
}
.ph-card--a {                       /* back card — Ace of Spades */
  transform: rotate(-15deg) translateX(-13px);
  color: #16131f;
  z-index: 1;
}
.ph-card--b {                       /* front card — Ace of Hearts */
  transform: rotate(13deg) translateX(13px);
  color: #db0033;
  z-index: 2;
}

/* ── Compact em-scaled icons for nav dropdown & dashboard sidebars ──────────── */
.mini-777 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 900;
  font-size: 0.95em;
  letter-spacing: 0.01em;
  background: linear-gradient(177deg, #fff7c8 0%, #ffd700 40%, #ff7a00 72%, #c40000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 0 #7a0010) drop-shadow(0 0 5px rgba(255,180,40,0.75));
}
.mini-aces {
  position: relative;
  display: inline-block;
  width: 1.55em;
  height: 1.25em;
  vertical-align: middle;
}
.mini-aces i {
  position: absolute;
  top: 0.06em;
  width: 0.82em;
  height: 1.12em;
  border-radius: 0.16em;
  background: linear-gradient(158deg, #ffffff, #ece9f5);
  border: 1px solid #ffd700;
  font: 700 0.72em/1.05em 'Georgia', serif;
  font-style: normal;
  text-align: center;
  text-shadow: none;
  box-shadow: 0 1px 2.5px rgba(0,0,0,0.6);
}
.mini-aces .a1 { left: 0;  transform: rotate(-15deg); color: #16131f; z-index: 1; }
.mini-aces .a2 { right: 0; transform: rotate(15deg);  color: #db0033; z-index: 2; }

/* let the nav-dropdown icon slot grow for the multi-glyph 777 / aces */
.nav-dropdown__icon--wide { width: auto !important; min-width: 22px; }

.game-card__badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  background: rgba(0,0,0,0.5);
  border: 1px solid currentColor;
}
.game-card--blackjack .game-card__badge { color: var(--neon-teal); }
.game-card--poker     .game-card__badge { color: var(--neon-pink); }
.game-card--slots     .game-card__badge { color: var(--gold); }
.game-card--holdem    .game-card__badge { color: var(--neon-purple); }

.game-card__body {
  position: relative;
  z-index: 1;
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}
.game-card__title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.game-card__desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.game-card__cost {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}
.game-card__play {
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: var(--radius-xl);
  border: 1.5px solid;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}
.game-card--blackjack .game-card__play { color: var(--neon-teal); border-color: rgba(0,255,231,0.4); }
.game-card--blackjack .game-card__play:hover { background: rgba(0,255,231,0.12); box-shadow: var(--glow-teal); }
.game-card--poker     .game-card__play { color: var(--neon-pink); border-color: rgba(255,0,127,0.4); }
.game-card--poker     .game-card__play:hover { background: rgba(255,0,127,0.12); box-shadow: var(--glow-pink); }
.game-card--slots     .game-card__play { color: var(--gold); border-color: rgba(255,215,0,0.4); }
.game-card--slots     .game-card__play:hover { background: var(--gold-dim); box-shadow: var(--glow-gold); }
.game-card--holdem    .game-card__play { color: var(--neon-purple); border-color: rgba(191,0,255,0.4); }
.game-card--holdem    .game-card__play:hover { background: rgba(191,0,255,0.12); box-shadow: var(--glow-purple); }

/* ════════════════════════════════════════════════════════════════════════════
   SCOREBOARD TEASER
   ════════════════════════════════════════════════════════════════════════════ */
.scoreboard-teaser {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.scoreboard-teaser__heading {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  flex-shrink: 0;
}
.scoreboard-teaser__list {
  display: flex;
  gap: 32px;
  flex: 1;
  flex-wrap: wrap;
}
.score-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.score-rank {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold);
  width: 24px;
  text-align: center;
}
.score-rank--1 { text-shadow: var(--glow-gold); }
.score-rank--2 { color: var(--text-secondary); }
.score-rank--3 { color: var(--text-muted); }
.score-name  { color: var(--text-primary); font-weight: 600; }
.score-creds { color: var(--neon-teal); font-size: 0.82rem; margin-left: 4px; }

/* ════════════════════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ════════════════════════════════════════════════════════════════════════════ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--gold-light); }
.faq-question .faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: all var(--transition);
  font-style: normal;
}
.faq-question.active .faq-icon {
  background: var(--gold-dim);
  box-shadow: var(--glow-gold);
  transform: rotate(45deg);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open { max-height: 400px; }
.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  padding-bottom: 20px;
}

/* ════════════════════════════════════════════════════════════════════════════
   AUTH PAGES  (login / create-account)
   ════════════════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.auth-card::before {
  content: '';
  display: block;
  height: 3px;
  margin: -52px -48px 48px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--neon-teal), var(--gold), var(--neon-pink));
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
}
.auth-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  text-align: center;
  margin-bottom: 8px;
  display: block;
}
.auth-title {
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 6px;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

/* Form fields */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.12);
}

.form-error {
  display: none;
  font-size: 0.83rem;
  color: var(--neon-pink);
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(255,0,127,0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--neon-pink);
}
.form-error.visible { display: block; }

/* Alert / flash */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 24px;
  border-left: 3px solid;
}
.alert-info    { background: rgba(0,255,231,0.07);  border-color: var(--neon-teal);  color: var(--neon-teal); }
.alert-success { background: rgba(0,255,100,0.07);  border-color: #00ff64;           color: #00ff64; }
.alert-error   { background: rgba(255,0,127,0.07);  border-color: var(--neon-pink);  color: var(--neon-pink); }
.alert-warning { background: rgba(255,215,0,0.07);  border-color: var(--gold);       color: var(--gold); }

.auth-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.auth-footer a { color: var(--gold); font-weight: 600; }
.auth-footer a:hover { text-shadow: var(--glow-gold); }

/* ════════════════════════════════════════════════════════════════════════════
   DASHBOARD
   ════════════════════════════════════════════════════════════════════════════ */
.dash-page {
  padding-top: 88px;
  min-height: 100vh;
}
.dash-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 24px;
}
.dash-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.dash-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: var(--glow-gold);
  flex-shrink: 0;
}
.dash-avatar-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}
.dash-welcome   { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--text-primary); }
.dash-role      { font-size: 0.82rem; color: var(--neon-teal); margin-top: 2px; letter-spacing: 0.1em; text-transform: uppercase; }
.dash-credits-badge {
  margin-left: auto;
  text-align: right;
}
.dash-credits-num {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}
.dash-credits-label { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

.dash-body { max-width: 1100px; margin: 0 auto; padding: 40px 24px; display: flex; gap: 28px; flex-wrap: wrap; }
.dash-sidebar { width: 240px; flex-shrink: 0; }
.dash-main    { flex: 1; min-width: 0; }

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 4px;
}
.dash-nav-item:hover, .dash-nav-item.active {
  background: var(--gold-dim);
  color: var(--gold);
}
.dash-nav-item .icon { font-size: 1.1rem; }

.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.dash-panel-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Credits claim button */
.claim-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.claim-big-btn {
  position: relative;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 20px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #7a5000, var(--gold), var(--gold-light));
  color: #0a0118;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(255,215,0,0.4);
  transition: all var(--transition);
  overflow: hidden;
}
.claim-big-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.claim-big-btn:hover { box-shadow: var(--glow-gold), 0 8px 40px rgba(255,215,0,0.5); transform: translateY(-2px); }
.claim-big-btn:hover::after { transform: translateX(100%); }
.claim-big-btn:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}
.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
}
.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════════════════
   SCOREBOARD PAGE
   ════════════════════════════════════════════════════════════════════════════ */
.scoreboard-page { padding-top: 88px; }
.scoreboard-body { max-width: 1140px; margin: 0 auto; padding: 48px 24px; }

/* ── Scoreboard hero ─────────────────────────────────────────────────────── */
.sb-hero {
  text-align: center;
  margin-bottom: 48px;
}
.sb-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.sb-hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
}
.sb-site-stats {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.18);
  border-radius: 100px;
}
.sb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.sb-stat-val {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}
.sb-stat-lbl {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sb-stat-sep {
  font-size: 1.4rem;
  color: rgba(255,215,0,0.25);
}

/* ── Scoreboard grid ─────────────────────────────────────────────────────── */
.sb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.sb-panel { overflow: hidden; }

/* ── Your rank badge ─────────────────────────────────────────────────────── */
.sb-your-rank-row {
  min-height: 16px;
  display: flex;
  justify-content: flex-end;
  padding: 0 4px 10px;
}
.sb-your-rank {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(0,255,231,0.1);
  border: 1px solid rgba(0,255,231,0.3);
  color: var(--neon-teal);
}

/* ── Scoreboard table ────────────────────────────────────────────────────── */
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.score-table th {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  white-space: nowrap;
}
.score-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-primary);
  background: rgba(19,2,40,0.5);
  vertical-align: middle;
}
.score-table tr:last-child td { border-bottom: none; }
.score-table tr:hover td { background: var(--gold-dim); }

.score-table .rank-gold td   { background: rgba(255,215,0,0.09); }
.score-table .rank-silver td { background: rgba(192,192,192,0.05); }
.score-table .rank-bronze td { background: rgba(205,127,50,0.05); }
.score-table .rank-me td     { outline: 1px solid rgba(0,255,231,0.35); }

.td-medal { width: 36px; text-align: center; font-size: 1.1rem; }
.td-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Row avatar ──────────────────────────────────────────────────────────── */
.sb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,215,0,0.25);
  flex-shrink: 0;
}
.sb-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Value cells ─────────────────────────────────────────────────────────── */
.sb-credits {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-teal);
  white-space: nowrap;
}
.sb-pct {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
}
.sb-rank-num {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.sb-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  padding: 24px 0;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .sb-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .score-table th,
  .score-table td { padding: 9px 10px; }
  .sb-avatar { width: 24px; height: 24px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 32px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 280px; line-height: 1.7; }
.footer-links h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.88rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--gold); }
.footer-suits {
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.footer-suits .hearts, .footer-suits .diamonds { color: rgba(255,0,127,0.5); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom .neon { color: var(--neon-teal); }

/* ════════════════════════════════════════════════════════════════════════════
   PAGE STUBS (games, 404)
   ════════════════════════════════════════════════════════════════════════════ */
.stub-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 100px 24px;
  text-align: center;
}
.stub-page h1 { font-family: 'Cinzel', serif; font-size: 2rem; color: var(--gold); text-shadow: var(--glow-gold); }
.stub-page p  { color: var(--text-secondary); max-width: 480px; }

/* ════════════════════════════════════════════════════════════════════════════
   NEON DIVIDER
   ════════════════════════════════════════════════════════════════════════════ */
.neon-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-teal), var(--gold), var(--neon-pink), transparent);
  margin: 0;
  opacity: 0.4;
  box-shadow: 0 0 8px rgba(0,255,231,0.4);
}

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN
   ════════════════════════════════════════════════════════════════════════════ */
.admin-page { padding-top: 88px; }
.admin-body { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 32px; border-bottom: 1px solid var(--border-subtle); }
.admin-tab {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  background: none; border-top: none; border-left: none; border-right: none;
}
.admin-tab:hover { color: var(--gold); }
.admin-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,215,0,0.05);
  color: var(--text-primary);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,215,0,0.03); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-active   { background: rgba(0,255,100,0.1);  color: #00ff64; border: 1px solid rgba(0,255,100,0.2); }
.badge-inactive { background: rgba(255,0,127,0.1);  color: var(--neon-pink); border: 1px solid rgba(255,0,127,0.2); }
.badge-admin    { background: rgba(255,215,0,0.1);  color: var(--gold);      border: 1px solid var(--border-subtle); }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .games-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .auth-card  { padding: 40px 28px; }
  .dash-sidebar { width: 100%; }
  .scoreboard-teaser { flex-direction: column; gap: 24px; padding: 28px; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(10,1,24,0.98);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger  { display: flex; }
  .nav-inner      { position: relative; }

  /* Games dropdown: flatten inline on mobile */
  .nav-dropdown { width: 100%; }
  .nav-dropdown__toggle {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
  }
  .nav-dropdown__menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255,215,0,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    padding: 4px;
    animation: none;
  }
  .nav-dropdown__menu.open { display: block; }
  .nav-dropdown__item { padding: 10px 14px; }

  .games-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .auth-card  { padding: 32px 22px; }
  .auth-card::before { margin: -32px -22px 36px; }
  .section    { padding: 64px 20px; }
  .footer-inner { flex-direction: column; gap: 32px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   SPINNER / LOADING
   ════════════════════════════════════════════════════════════════════════════ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,215,0,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════════════════
   DASHBOARD — extended sections
   ════════════════════════════════════════════════════════════════════════════ */
.dash-page { padding-top: 88px; }
.dash-header { background: var(--bg-card); border-bottom: 1px solid var(--border-subtle); padding: 24px 0; }
.dash-header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.dash-header-text { flex: 1; min-width: 0; }
.dash-credits-row {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.dash-big-balance {
  display: flex; align-items: baseline; gap: 6px;
}
.dash-big-num {
  font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 900;
  color: var(--gold); text-shadow: var(--glow-gold);
}
.dash-big-unit {
  font-family: 'Cinzel', serif; font-size: 0.9rem; color: rgba(255,215,0,0.6);
}
.dash-claim-col { display: flex; flex-direction: column; gap: 6px; }
.dash-claim-sub {
  font-size: 0.8rem; color: var(--text-muted);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

/* ── Avatar section ── */
.avatar-section {
  display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.avatar-preview-wrap { flex-shrink: 0; }
.avatar-preview {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,215,0,0.4);
  box-shadow: 0 0 16px rgba(255,215,0,0.2);
}
.avatar-preview--empty {
  width: 96px; height: 96px; border-radius: 50%;
  border: 3px solid rgba(255,215,0,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: rgba(255,215,0,0.35);
  background: var(--bg-surface);
}
.avatar-upload-col {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.avatar-hint {
  font-size: 0.75rem; color: var(--text-muted);
}
.avatar-file-label {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
}

/* ── Dashboard forms ── */
.dash-form { display: flex; flex-direction: column; gap: 14px; }
.form-row  { display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.form-label {
  font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase;
}
.form-hint  { font-size: 0.75rem; color: var(--text-muted); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
  font-family: inherit; font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  max-width: 340px;
}
.form-select:focus { border-color: var(--gold); }

/* ── Inline message ── */
.dash-inline-msg {
  font-size: 0.82rem; padding: 6px 12px; border-radius: var(--radius-sm);
  display: none;
}
.msg--success { background: rgba(0,255,100,0.1); color: #80ffaa; border: 1px solid rgba(0,255,100,0.2); display: block !important; }
.msg--error   { background: rgba(255,0,127,0.1); color: #ff80aa; border: 1px solid rgba(255,0,127,0.2); display: block !important; }

/* ── Toggle switch ── */
.toggle-label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.toggle-label input { display: none; }
.toggle-slider {
  width: 38px; height: 22px; background: var(--bg-elevated);
  border-radius: 11px; position: relative;
  border: 1px solid rgba(255,215,0,0.2);
  transition: background 0.25s;
}
.toggle-slider::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-muted); top: 2px; left: 2px;
  transition: transform 0.25s, background 0.25s;
}
.toggle-label input:checked + .toggle-slider { background: rgba(255,215,0,0.25); border-color: var(--gold); }
.toggle-label input:checked + .toggle-slider::after { transform: translateX(16px); background: var(--gold); }
.toggle-text { font-size: 0.82rem; color: var(--text-secondary); }

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — extended
   ════════════════════════════════════════════════════════════════════════════ */
.admin-summary {
  display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 32px;
}
.admin-stat-box {
  flex: 1; min-width: 160px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 20px 24px; text-align: center;
}
.admin-stat-val {
  font-family: 'Cinzel', serif; font-size: 1.8rem; font-weight: 900; color: var(--gold);
}
.admin-stat-lbl {
  font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-top: 4px;
}

.admin-tab-pane { display: none; }
.admin-tab-pane.active { display: block; }

.admin-search-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px;
}
.admin-search {
  flex: 1; min-width: 200px; max-width: 480px;
}

.admin-pagination {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  justify-content: center; flex-wrap: wrap;
}
.page-btn {
  background: rgba(255,215,0,0.08); border: 1px solid rgba(255,215,0,0.25);
  color: var(--gold); font-family: 'Cinzel', serif; font-size: 0.8rem;
  padding: 7px 16px; border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover { background: rgba(255,215,0,0.18); }
.page-info { font-size: 0.82rem; color: var(--text-muted); }

.btn-xs {
  padding: 5px 12px !important;
  font-size: 0.75rem !important;
  border-radius: 6px !important;
}

/* ── Settings ── */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.setting-row {
  display: flex; flex-direction: column; gap: 6px;
}
.payout-edit-table { margin-top: 8px; }
.payout-input {
  width: 70px !important; padding: 6px 8px !important; text-align: center;
}

/* ── FAQ admin ── */
.faq-admin-toolbar { margin-bottom: 16px; }
.faq-edit-form {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 14px; max-width: 680px;
}
.faq-answer-ta {
  resize: vertical; min-height: 90px;
  background: var(--bg-input) !important;
}
.faq-active-row { flex-direction: row !important; align-items: center; gap: 16px; }
.faq-admin-list {
  display: flex; flex-direction: column; gap: 10px;
}
.faq-admin-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 14px 16px;
  cursor: grab;
}
.faq-admin-item.dragging { opacity: 0.5; border-style: dashed; }
.faq-admin-item-drag {
  color: var(--text-muted); font-size: 1rem; padding-top: 2px; flex-shrink: 0;
  cursor: grab;
}
.faq-admin-item-content { flex: 1; min-width: 0; }
.faq-admin-q { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.faq-admin-a { font-size: 0.83rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 600px; }
.faq-admin-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ── Modal ── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--bg-card);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-title {
  font-family: 'Cinzel', serif; font-size: 1rem; color: var(--gold);
}
.modal-close {
  color: rgba(255,255,255,0.4); font-size: 1.1rem; cursor: pointer;
  transition: color 0.2s;
  background: none; border: none;
}
.modal-close:hover { color: var(--neon-pink); }
.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.modal-section {
  background: var(--bg-surface); border-radius: var(--radius-md);
  padding: 16px;
}
.modal-section-title {
  font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px;
}
.modal-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.modal-row .form-input { flex: 1; min-width: 120px; }

/* ════════════════════════════════════════════════════════════════════════════
   HOME — HERO PROOF STRIP
   ════════════════════════════════════════════════════════════════════════════ */
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 14px 24px;
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.18);
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.hero-proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.hero-proof-val {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.hero-proof-lbl {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-proof-sep {
  font-size: 1.4rem;
  color: rgba(255,215,0,0.25);
  padding: 0 4px;
}

/* Scroll hint below hero CTA */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll-arrow {
  color: var(--gold);
  font-size: 1rem;
  opacity: 0.7;
}

/* ════════════════════════════════════════════════════════════════════════════
   HOME — GAME CARD TAGS
   ════════════════════════════════════════════════════════════════════════════ */
.game-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.game-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.25);
  color: var(--gold-light);
}

/* ════════════════════════════════════════════════════════════════════════════
   HOME — HOW IT WORKS SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.how-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(45,10,94,0.4) 50%, transparent 100%);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 860px;
  margin: 48px auto 0;
}
.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}
.how-step:hover {
  border-color: rgba(255,215,0,0.35);
  transform: translateY(-4px);
}
.how-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a0700a, var(--gold));
  color: #0a0118;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-step__icon {
  font-size: 2.4rem;
  line-height: 1;
}
.how-step__title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}
.how-step__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   HOME — LEADERBOARD TEASER GRID
   ════════════════════════════════════════════════════════════════════════════ */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.teaser-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition);
}
.teaser-col:hover {
  border-color: rgba(255,215,0,0.3);
}
.teaser-col__title {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.teaser-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
.teaser-medal {
  font-size: 1rem;
  width: 22px;
  flex-shrink: 0;
  text-align: center;
}
.teaser-name {
  flex: 1;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teaser-val {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.teaser-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 12px 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   HOME — RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .how-steps {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
  }
  .teaser-grid {
    grid-template-columns: 1fr;
  }
  .hero-proof {
    gap: 6px;
    padding: 12px 16px;
  }
  .hero-proof-sep { display: none; }
  .hero-proof { gap: 12px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   PRIVACY SETTINGS (dashboard)
   ════════════════════════════════════════════════════════════════════════════ */
.privacy-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.privacy-toggle-label-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.privacy-status-msg {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}
.privacy-status-msg--on {
  background: #22c55e;
  color: #fff;
}
.privacy-status-msg--off {
  background: #ef4444;
  color: #000;
}

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN LIVE TAB
   ════════════════════════════════════════════════════════════════════════════ */
.live-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0;
}
.live-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.live-count {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.game-count-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
  min-width: 80px;
}
.game-count-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--neon-teal), var(--gold));
  border-radius: 2px;
}

/* Scoreboard privacy note */
.sb-privacy-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.sb-privacy-note--admin {
  color: var(--gold);
  opacity: 0.7;
}

/* ════════════════════════════════════════════════════════════════════════════
   SCOREBOARD — PER-GAME WINS SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.sb-panel--wide {
  grid-column: 1 / -1;   /* spans full width of the sb-grid */
}
.sb-overall-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255,215,0,0.15);
  color: var(--gold);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.sb-overall-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 4px 0 14px;
  line-height: 1.5;
}
.sb-per-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.sb-per-game-col {
  min-width: 0;
}
.sb-per-game-title {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .05em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,215,0,0.2);
}
.per-game-score-table {
  width: 100%;
  font-size: 0.8rem;
}
.per-game-score-table th,
.per-game-score-table td {
  padding: 5px 6px;
}
@media (max-width: 900px) {
  .sb-per-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .sb-per-game-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   SCOREBOARD — LOGIN GATE PAGE
   ════════════════════════════════════════════════════════════════════════════ */
.sb-gate {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.sb-gate-card {
  text-align: center;
  max-width: 520px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: 0 0 60px rgba(191,0,255,0.12), 0 20px 60px rgba(0,0,0,0.5);
}
.sb-gate-suits {
  font-size: 1.6rem;
  margin-bottom: 20px;
  letter-spacing: .18em;
  opacity: .7;
}
.sb-gate-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  margin-bottom: 18px;
}
.sb-gate-msg {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}
.sb-gate-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.sb-gate-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
