/* ============================================================
   LixSino — style.css
   Clean & Modern Light Theme
   Font: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --white:        #ffffff;
  --off-white:    #f7f6f3;
  --surface:      #eeece7;
  --surface2:     #e4e1d9;
  --border:       #d6d3cb;
  --text:         #1a1916;
  --text-2:       #5a574f;
  --text-3:       #9a978f;
  --accent:       #2c6e49;
  --accent-2:     #218838;
  --accent-light: #e8f5ee;
  --danger:       #c0392b;
  --danger-light: #fdecea;
  --warning:      #d4860a;
  --warning-light:#fef6e4;
  --gold:         #c49a2a;
  --gold-light:   #fdf6e0;
  --radius:       10px;
  --radius-lg:    18px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow:       0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --transition:   0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── Dark Theme ─────────────────────────────────────────────── */
body.dark {
  --white:        #1e1e1e;
  --off-white:    #141414;
  --surface:      #252525;
  --surface2:     #2e2e2e;
  --border:       #3a3a3a;
  --text:         #f0ede8;
  --text-2:       #a8a49d;
  --text-3:       #6b6760;
  --accent:       #3d9e6a;
  --accent-2:     #2e7d50;
  --accent-light: #1a2e22;
  --danger:       #e05c4b;
  --danger-light: #2a1815;
  --warning:      #e8a030;
  --warning-light:#2a2010;
  --gold:         #d4a830;
  --gold-light:   #272010;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow:       0 4px 16px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.2);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
}

/* ── Theme Toggle Button ────────────────────────────────────── */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 42px; height: 24px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text-3);
  transition: var(--transition);
}
body.dark .theme-toggle::before {
  transform: translateX(18px);
  background: var(--accent);
}
.theme-toggle-wrap {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--text-3);
}
.theme-icon { font-size: 0.85rem; line-height: 1; }

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Views ──────────────────────────────────────────────────── */
.view { display: none; min-height: 100vh; }
.view.active { display: flex; flex-direction: column; }
.view.page-layout { display: none; flex-direction: column; }
.view.page-layout.active { display: flex; }

/* ── Nav ────────────────────────────────────────────────────── */
nav#navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
}
.nav-brand span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-balance {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600; font-size: 0.875rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-balance::before { content: '◈'; font-size: 0.8rem; }
.nav-username { font-size: 0.875rem; color: var(--text-2); font-weight: 500; }
.nav-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  padding: 0.3rem 0.85rem; border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
}
.nav-btn:hover { background: var(--surface); }
.nav-btn.danger:hover { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }

/* ── Auth Pages ─────────────────────────────────────────────── */
#view-login, #view-register {
  background: var(--off-white);
  align-items: center; justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.4s ease both;
}
.auth-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  text-align: center; margin-bottom: 0.25rem;
}
.auth-logo span { color: var(--accent); }
.auth-tagline {
  text-align: center; color: var(--text-3);
  font-size: 0.875rem; margin-bottom: 2rem;
}
.auth-title {
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 1.5rem; color: var(--text);
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: 0.8rem;
  font-weight: 600; color: var(--text-2);
  margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.form-group input {
  width: 100%; padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  background: var(--white); color: var(--text);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.auth-switch { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-2); }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }
.age-note {
  background: var(--gold-light); border: 1px solid #e8d5a0;
  border-radius: var(--radius); padding: 0.65rem 0.9rem;
  font-size: 0.8rem; color: var(--warning);
  margin-bottom: 1rem; text-align: center;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600;
  padding: 0.7rem 1.5rem; border-radius: var(--radius);
  border: none; cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(44,110,73,0.3); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b08a20; }
.btn-full { width: 100%; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem; border-radius: var(--radius);
  font-size: 0.875rem; margin-bottom: 1rem;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: var(--danger-light); color: var(--danger); border: 1px solid #f5c6c2; }
.alert-success { background: var(--accent-light); color: var(--accent); border: 1px solid #c3e6cb; }
.alert-info { background: var(--gold-light); color: var(--warning); border: 1px solid #e8d5a0; }

/* ── Lobby ──────────────────────────────────────────────────── */
#view-lobby main {
  flex: 1;
  padding: 2.5rem 2rem;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.lobby-hero {
  background: linear-gradient(135deg, var(--accent) 0%, #1a4a30 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: #fff; margin-bottom: 2.5rem;
  position: relative; overflow: hidden;
}
.lobby-hero::before {
  content: '◈'; font-size: 12rem; opacity: 0.05;
  position: absolute; right: -2rem; top: -3rem;
  line-height: 1;
}
.lobby-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.lobby-hero p { font-size: 1rem; opacity: 0.85; margin-bottom: 1.5rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat { }
.hero-stat .label { font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-stat .value { font-size: 1.4rem; font-weight: 700; font-family: 'DM Mono', monospace; }

.daily-banner {
  background: var(--gold-light); border: 1px solid #e8d5a0;
  border-radius: var(--radius); padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 0.75rem;
}
.daily-banner p { color: var(--warning); font-weight: 500; font-size: 0.9rem; }
.daily-banner p strong { font-weight: 700; }

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 600;
  margin-bottom: 1.25rem; color: var(--text);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.game-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.game-card-icon {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  background: var(--surface);
}
.game-card-body { padding: 1rem 1.1rem 1.25rem; }
.game-card-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.game-card-desc { font-size: 0.78rem; color: var(--text-3); }
.game-card-tag {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.15rem 0.5rem; border-radius: 999px;
  background: var(--accent-light); color: var(--accent);
}

/* ── Game Views ─────────────────────────────────────────────── */
.game-view {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background: var(--off-white);
}
.game-header {
  width: 100%; max-width: 700px;
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.game-back-btn {
  background: var(--white); border: 1px solid var(--border);
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
}
.game-back-btn:hover { background: var(--surface); }
.game-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
}
.game-balance-pill {
  margin-left: auto; background: var(--accent-light);
  color: var(--accent); font-weight: 700; font-size: 0.85rem;
  padding: 0.3rem 1rem; border-radius: 999px;
  font-family: 'DM Mono', monospace;
}
.game-container {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  width: 100%; max-width: 700px;
  box-shadow: var(--shadow);
}
.bet-controls {
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap; margin-top: 1.25rem;
}
.bet-input-wrap { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 180px; }
.bet-input-wrap label { font-size: 0.8rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.bet-input {
  width: 100%; padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'DM Mono', monospace; font-size: 0.95rem;
  background: var(--white); color: var(--text); outline: none;
  transition: var(--transition);
}
.bet-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.bet-presets { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.bet-preset {
  padding: 0.35rem 0.65rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  font-family: 'DM Sans', sans-serif; color: var(--text);
}
.bet-preset:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

.outcome-display {
  text-align: center; padding: 1rem;
  border-radius: var(--radius); margin-top: 1rem;
  display: none;
}
.outcome-display.show { display: block; }
.outcome-display.win { background: var(--accent-light); color: var(--accent); }
.outcome-display.loss { background: var(--danger-light); color: var(--danger); }
.outcome-display.push { background: var(--gold-light); color: var(--warning); }
.outcome-display .outcome-title { font-size: 1.4rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.outcome-display .outcome-sub { font-size: 0.875rem; margin-top: 0.25rem; }
.outcome-display .game-ids {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  color: var(--text-3); margin-top: 0.75rem;
  word-break: break-all; text-align: left;
  background: rgba(0,0,0,0.04); padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

/* ── SLOTS ──────────────────────────────────────────────────── */
.slots-reels {
  display: flex; justify-content: center; gap: 1rem;
  margin: 1.5rem 0; flex-wrap: wrap;
}
.reel {
  width: 90px; height: 90px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; transition: transform 0.1s;
  user-select: none;
}
.reel.spinning { animation: reelSpin 0.1s linear infinite; }
@keyframes reelSpin {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-4px); }
  75%  { transform: translateY(4px); }
  100% { transform: translateY(0); }
}
.slots-payouts {
  background: var(--surface); border-radius: var(--radius);
  padding: 0.75rem 1rem; font-size: 0.78rem; color: var(--text-2);
  margin-top: 0.5rem;
}
.slots-payouts table { width: 100%; border-collapse: collapse; }
.slots-payouts td { padding: 0.2rem 0.5rem; }
.slots-payouts td:last-child { text-align: right; font-family: 'DM Mono', monospace; font-weight: 600; color: var(--accent); }

/* ── BLACKJACK ──────────────────────────────────────────────── */
.bj-table { display: flex; flex-direction: column; gap: 1.25rem; }
.bj-hand { }
.bj-hand-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 0.5rem; }
.bj-hand-label span { color: var(--text); font-family: 'DM Mono', monospace; background: var(--surface); padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.8rem; }
.bj-cards { display: flex; gap: 0.5rem; flex-wrap: wrap; min-height: 80px; }
.card {
  width: 60px; height: 80px;
  background: var(--white); border: 2px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; box-shadow: var(--shadow-sm);
  flex-direction: column; gap: 0; line-height: 1.1;
  animation: cardDeal 0.2s ease both;
}
@keyframes cardDeal { from { transform: scale(0.7) rotate(-5deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.card.red { color: var(--danger); }
.card.black { color: var(--text); }
.card.hidden { background: var(--accent); color: transparent; border-color: var(--accent); font-size: 0; }
.card.hidden::after { content: '?'; color: rgba(255,255,255,0.5); font-size: 1.5rem; }
.card-rank { font-size: 0.85rem; }
.card-suit { font-size: 1.2rem; }
.bj-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* ── ROULETTE ───────────────────────────────────────────────── */
.roulette-wheel-wrap { text-align: center; margin: 1rem 0; }
.roulette-ball {
  display: inline-block; width: 140px; height: 140px;
  border-radius: 50%; background: conic-gradient(
    #c0392b 0deg 10deg, #2c3e50 10deg 20deg, #c0392b 20deg 30deg, #2c3e50 30deg 40deg,
    #c0392b 40deg 50deg, #2c3e50 50deg 60deg, #c0392b 60deg 70deg, #2c3e50 70deg 80deg,
    #c0392b 80deg 90deg, #2c3e50 90deg 100deg, #c0392b 100deg 110deg, #2c3e50 110deg 120deg,
    #27ae60 120deg 130deg, #c0392b 130deg 140deg, #2c3e50 140deg 150deg, #c0392b 150deg 160deg,
    #2c3e50 160deg 170deg, #c0392b 170deg 180deg, #2c3e50 180deg 190deg, #c0392b 190deg 200deg,
    #2c3e50 200deg 210deg, #c0392b 210deg 220deg, #2c3e50 220deg 230deg, #c0392b 230deg 240deg,
    #2c3e50 240deg 250deg, #c0392b 250deg 260deg, #2c3e50 260deg 270deg, #c0392b 270deg 280deg,
    #2c3e50 280deg 290deg, #c0392b 290deg 300deg, #2c3e50 300deg 310deg, #c0392b 310deg 320deg,
    #2c3e50 320deg 330deg, #c0392b 330deg 340deg, #2c3e50 340deg 350deg, #c0392b 350deg 360deg
  );
  border: 6px solid var(--text); box-shadow: var(--shadow-lg);
  transition: transform 3s cubic-bezier(0.17,0.67,0.12,0.99);
  position: relative;
}
.roulette-ball::after {
  content: '●'; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 0.8rem;
}
.roulette-result-number {
  font-family: 'DM Mono', monospace; font-size: 2rem; font-weight: 700;
  margin-top: 0.75rem; min-height: 2.5rem;
}
.roulette-bets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  margin: 1rem 0;
}
.roulette-bet-btn {
  padding: 0.6rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); text-align: center;
}
.roulette-bet-btn:hover, .roulette-bet-btn.selected {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.roulette-bet-btn .mult { font-size: 0.7rem; opacity: 0.8; display: block; }

/* ── CRASH ──────────────────────────────────────────────────── */
.crash-display {
  background: var(--surface); border-radius: var(--radius);
  padding: 2rem; text-align: center; margin: 1rem 0;
  border: 2px solid var(--border); position: relative; overflow: hidden;
}
.crash-multiplier {
  font-family: 'DM Mono', monospace; font-size: 3.5rem; font-weight: 700;
  color: var(--accent); transition: color 0.3s;
  line-height: 1;
}
.crash-multiplier.danger { color: var(--danger); }
.crash-label { font-size: 0.8rem; color: var(--text-3); margin-top: 0.25rem; }
.crash-graph {
  height: 80px; margin: 0.5rem 0;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.crash-graph canvas { width: 100%; height: 100%; }
.crash-actions { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }

/* ── PLINKO ─────────────────────────────────────────────────── */
.plinko-board { position: relative; margin: 1rem auto; }
.plinko-board canvas { display: block; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.plinko-risk { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1rem; }
.risk-btn {
  padding: 0.4rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.risk-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.plinko-multipliers { display: flex; gap: 0.25rem; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }
.plinko-mult {
  padding: 0.3rem 0.5rem; border-radius: 6px;
  font-size: 0.7rem; font-weight: 700; font-family: 'DM Mono', monospace;
  background: var(--accent); color: #fff; min-width: 40px; text-align: center;
}
.plinko-mult.low { background: #6c757d; }
.plinko-mult.mid { background: var(--warning); }
.plinko-mult.high { background: var(--danger); }

/* ── POKER ──────────────────────────────────────────────────── */
.poker-hand { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0; min-height: 90px; }
.poker-card { position: relative; }
.poker-card .card { cursor: pointer; }
.poker-card .card.held { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.hold-label {
  text-align: center; font-size: 0.65rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 0.25rem; visibility: hidden;
}
.hold-label.show { visibility: visible; }
.poker-pays {
  background: var(--surface); border-radius: var(--radius);
  padding: 0.75rem 1rem; font-size: 0.78rem; margin-bottom: 1rem;
}
.poker-pays table { width: 100%; border-collapse: collapse; }
.poker-pays tr td { padding: 0.2rem 0.4rem; }
.poker-pays tr td:last-child { text-align: right; font-family: 'DM Mono', monospace; font-weight: 600; color: var(--accent); }
.poker-pays tr.highlight td { background: var(--accent-light); color: var(--accent); border-radius: 4px; }
.poker-phase-label { text-align: center; font-size: 0.8rem; color: var(--text-3); margin-top: 0.5rem; }

/* ── Admin ──────────────────────────────────────────────────── */
#view-admin-login {
  background: var(--off-white);
  align-items: center; justify-content: center;
  padding: 2rem;
}
#view-admin-users, #view-admin-analytics {
  flex-direction: column;
}
.admin-layout {
  display: flex; min-height: calc(100vh - 60px);
}
.admin-sidebar {
  width: 220px; background: var(--white); border-right: 1px solid var(--border);
  padding: 1.5rem 0; flex-shrink: 0;
}
.admin-sidebar-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-3); padding: 0 1.25rem; margin-bottom: 0.5rem;
}
.admin-nav-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1.25rem; font-size: 0.875rem; font-weight: 500;
  color: var(--text-2); cursor: pointer; transition: var(--transition);
  border: none; background: none; width: 100%; text-align: left;
  font-family: 'DM Sans', sans-serif;
}
.admin-nav-link:hover { background: var(--surface); color: var(--text); }
.admin-nav-link.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.admin-content { flex: 1; padding: 2rem; overflow-x: auto; }
.admin-content h2 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.admin-stat-card .label { font-size: 0.75rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-stat-card .value { font-size: 1.6rem; font-weight: 700; font-family: 'DM Mono', monospace; color: var(--text); margin-top: 0.2rem; }
.admin-stat-card .sub { font-size: 0.75rem; color: var(--text-3); margin-top: 0.1rem; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
  text-align: left; padding: 0.65rem 0.75rem;
  background: var(--surface); border-bottom: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2);
}
.data-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--surface); vertical-align: middle; }
.data-table tr:hover td { background: var(--off-white); }
.data-table .mono { font-family: 'DM Mono', monospace; font-size: 0.8rem; }
.badge {
  display: inline-block; padding: 0.15rem 0.5rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700;
}
.badge-active { background: var(--accent-light); color: var(--accent); }
.badge-banned { background: var(--danger-light); color: var(--danger); }
.badge-win { background: var(--accent-light); color: var(--accent); }
.badge-loss { background: var(--danger-light); color: var(--danger); }
.badge-push { background: var(--gold-light); color: var(--warning); }
.table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow-sm); }
.table-toolbar {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.table-toolbar input, .table-toolbar select {
  padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; background: var(--white);
  color: var(--text); outline: none;
}
.table-toolbar input:focus, .table-toolbar select:focus { border-color: var(--accent); }
.pagination { display: flex; gap: 0.4rem; align-items: center; justify-content: flex-end; padding: 0.75rem 1rem; }
.page-btn {
  padding: 0.3rem 0.7rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--white);
  font-size: 0.8rem; cursor: pointer; transition: var(--transition);
  font-family: 'DM Sans', sans-serif; font-weight: 500; color: var(--text);
}
.page-btn:hover { background: var(--surface); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.inline-edit { display: flex; gap: 0.4rem; align-items: center; }
.inline-edit input {
  width: 90px; padding: 0.3rem 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'DM Mono', monospace; font-size: 0.85rem;
}
.section-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.section-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 1rem; }

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-mono { font-family: 'DM Mono', monospace; }
.text-muted { color: var(--text-3); }
.text-sm { font-size: 0.85rem; }
.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; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.loading {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav#navbar { padding: 0 1rem; }
  #view-lobby main { padding: 1.25rem 1rem; }
  .auth-card { padding: 2rem 1.25rem; }
  .lobby-hero { padding: 1.75rem 1.25rem; }
  .lobby-hero h1 { font-size: 1.5rem; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 1rem 0; }
  .admin-content { padding: 1rem; }
  .roulette-bets { grid-template-columns: repeat(2, 1fr); }
  .crash-multiplier { font-size: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
}
