:root {
  --fx-bg: #0a0a17;
  --fx-bg-2: #0f0f24;
  --fx-glass: rgba(255, 255, 255, 0.045);
  --fx-glass-strong: rgba(255, 255, 255, 0.08);
  --fx-glass-border: rgba(255, 255, 255, 0.12);
  --fx-primary: #8b5cf6;
  --fx-primary-glow: rgba(139, 92, 246, 0.35);
  --fx-accent: #f472b6;
  --fx-cyan: #22d3ee;
  --fx-gold: #fbbf24;
  --fx-gold-glow: rgba(251, 191, 36, 0.3);
  --fx-success: #34d399;
  --fx-success-glow: rgba(52, 211, 153, 0.3);
  --fx-danger: #fb7185;
  --fx-text: #eef2ff;
  --fx-muted: rgba(232, 242, 255, 0.5);
  --fx-radius: 22px;
  --fx-radius-sm: 14px;
  --fx-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139,92,246,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(244,114,182,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(34,211,238,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--fx-bg) 0%, var(--fx-bg-2) 100%);
  background-attachment: fixed;
  color: var(--fx-text);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(139,92,246,0.4); color: #fff; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.4); border-radius: 3px; }

#fxParticles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ─── Glassmorphism ─── */
.fx-glass,
.fx-stat,
.fx-daily,
.fx-controls,
.fx-game-area,
.fx-auth-card,
.fx-finance-card,
.fx-lb-panel,
.fx-profile-header {
  background: var(--fx-glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--fx-border-glass, var(--fx-border));
  border-top-color: rgba(255,255,255,0.16);
  border-left-color: rgba(255,255,255,0.1);
  border-radius: var(--fx-radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    var(--fx-shadow);
}

.fx-glass {
  padding: 1.15rem 1.25rem;
  overflow: hidden;
}
.fx-glass .fx-glass-title { margin-bottom: 0.75rem; }

/* ─── Navbar ─── */
.fx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 1.5rem;
  background: rgba(10,10,23,0.55);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border-bottom: 1px solid var(--fx-border);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.fx-logo {
  font-size: 1.4rem; font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.fx-logo i { -webkit-text-fill-color: #8b5cf6; font-size: 1.2rem; }
.fx-nav-links { display: flex; align-items: center; gap: 0.45rem; }
.fx-nav-link {
  color: var(--fx-muted); text-decoration: none;
  padding: 0.45rem 0.8rem; border-radius: 14px;
  font-size: 0.8rem; font-weight: 700;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 5px;
}
.fx-nav-link:hover, .fx-nav-link.active { color: var(--fx-text); background: var(--fx-glass-strong); }
.fx-nav-link i { font-size: 0.9rem; }
.fx-balance {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(34,211,238,0.12));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 14px;
  padding: 0.4rem 0.9rem;
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 800;
  color: var(--fx-gold); cursor: default;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}
.fx-balance i { color: var(--fx-gold); font-size: 0.9rem; }
.fx-balance-label { color: var(--fx-muted); font-size: 0.62rem; font-weight: 600; margin-right: 2px; }
.fx-btn {
  padding: 0.5rem 1.3rem; border-radius: 14px;
  font-size: 0.8rem; font-weight: 800;
  border: none; cursor: pointer;
  transition: all 0.25s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.fx-btn-primary { background: linear-gradient(135deg, #8b5cf6, #a78bfa); color: #fff; box-shadow: 0 6px 20px var(--fx-primary-glow); }
.fx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--fx-primary-glow); }
.fx-btn-success { background: linear-gradient(135deg, #34d399, #6ee7b7); color: #05281c; box-shadow: 0 6px 20px var(--fx-success-glow); }
.fx-btn-success:hover { transform: translateY(-2px); }
.fx-btn-accent { background: linear-gradient(135deg, #f472b6, #fb7185); color: #fff; box-shadow: 0 6px 20px rgba(244,114,182,0.3); }
.fx-btn-accent:hover { transform: translateY(-2px); }
.fx-btn-gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1a2e; box-shadow: 0 6px 20px var(--fx-gold-glow); }
.fx-btn-gold:hover { transform: translateY(-2px); }
.fx-btn-ghost { background: var(--fx-glass-strong); color: var(--fx-text); border: 1px solid var(--fx-border); }
.fx-btn-ghost:hover { background: rgba(255,255,255,0.14); }
.fx-btn-sm { padding: 0.32rem 0.9rem; font-size: 0.7rem; }
.fx-btn-lg { padding: 0.7rem 2.2rem; font-size: 0.95rem; border-radius: 16px; }

/* ─── Main ─── */
.fx-main { position: relative; z-index: 1; padding-top: 88px; min-height: 100vh; }
.fx-container { max-width: 1200px; margin: 0 auto; padding: 0 1.2rem; }
.fx-section-title {
  font-size: 0.78rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1px; color: var(--fx-muted);
  margin-bottom: 0.9rem; display: flex; align-items: center; gap: 8px;
}
.fx-section-title i { color: var(--fx-primary); }

/* ─── Hero ─── */
.fx-hero {
  text-align: center; padding: 3rem 1rem 2rem;
  position: relative;
}
.fx-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900;
  background: linear-gradient(135deg, #fff, #a78bfa 40%, #f472b6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem; letter-spacing: -1.5px;
  text-shadow: 0 0 40px rgba(139,92,246,0.3);
}
.fx-hero p { color: var(--fx-muted); font-size: clamp(0.82rem, 2vw, 1rem); font-weight: 500; max-width: 540px; margin: 0 auto 1.4rem; }
.fx-hero-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}

/* ─── Jackpot Banner ─── */
.fx-jackpot {
  text-align: center; padding: 1.4rem 1rem; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(244,114,182,0.06) 50%, rgba(139,92,246,0.1));
  backdrop-filter: blur(24px);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: var(--fx-radius);
  position: relative; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.fx-jackpot::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(251,191,36,0.06), transparent, rgba(244,114,182,0.06), transparent);
  animation: jpSpin 8s linear infinite;
}
@keyframes jpSpin { to { transform: rotate(360deg); } }
.fx-jackpot-inner { position: relative; z-index: 1; }
.fx-jackpot-icon { font-size: 2.2rem; }
.fx-jackpot-amount {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900;
  background: linear-gradient(135deg, #fde68a, #fbbf24 40%, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.3rem 0;
  text-shadow: 0 0 40px rgba(251,191,36,0.2);
  font-variant-numeric: tabular-nums;
}
.fx-jackpot-label { color: var(--fx-muted); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.fx-jackpot-winner { color: var(--fx-muted); font-size: 0.75rem; font-weight: 600; margin-top: 0.4rem; }
.fx-jackpot-winner strong { color: var(--fx-gold); font-weight: 800; }

/* ─── Daily Bonus ─── */
.fx-daily {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--fx-border);
  margin-bottom: 1.5rem; gap: 0.8rem;
}
.fx-daily-left { display: flex; align-items: center; gap: 14px; }
.fx-daily-icon {
  font-size: 2.4rem; line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(251,191,36,0.4));
}
.fx-daily-info h3 { font-size: 1.05rem; font-weight: 900; }
.fx-daily-info p { font-size: 0.75rem; color: var(--fx-muted); font-weight: 500; }
.fx-daily-btn { flex-shrink: 0; min-width: 120px; text-align: center; font-size: 0.85rem; padding: 0.65rem 1.2rem; }

/* ─── Game Cards ─── */
.fx-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 0 1.8rem;
}
.fx-game-card {
  position: relative;
  background: var(--fx-glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--fx-border);
  border-top-color: rgba(255,255,255,0.16);
  border-left-color: rgba(255,255,255,0.1);
  border-radius: var(--fx-radius);
  padding: 1.6rem 0.8rem 1.3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
  min-height: 160px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 20px rgba(0,0,0,0.2);
}
.fx-game-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(145deg, rgba(139,92,246,0.08) 0%, transparent 50%, rgba(34,211,238,0.05) 100%);
  opacity: 1; transition: opacity 0.3s; border-radius: var(--fx-radius);
  border-radius: var(--fx-radius);
}
.fx-game-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 16px 50px var(--fx-primary-glow), inset 0 1px 0 rgba(255,255,255,0.12);
  background: rgba(139,92,246,0.1);
}
.fx-game-icon { font-size: clamp(2.8rem, 4vw, 3.6rem); margin-bottom: 0.6rem; position: relative; z-index: 1; filter: drop-shadow(0 6px 16px rgba(139,92,246,0.25)); }
.fx-si { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
.fx-si-lg { font-size: 2.4rem; }
.fx-game-icon .fx-si { font-size: 2.8rem; }
.fx-sm .fx-si { font-size: 1rem; }
.fx-sb-game.fx-sb-all { border-color: rgba(139,92,246,0.5); background: linear-gradient(145deg, rgba(139,92,246,0.22), rgba(34,211,238,0.1)); color: #e9d5ff; font-weight: 800; }
.fx-sb-all .fx-bc-ring { width: 24px; height: 24px; border-radius: 8px; background: rgba(139,92,246,0.25); font-size: 0.9rem; }

/* ─── Catalog Page ─── */
.fx-catalog-head { text-align: center; padding: 0.6rem 0 0.4rem; }
.fx-catalog-head h1 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 900; letter-spacing: -0.5px; margin-bottom: 0.15rem; background: linear-gradient(135deg, #a78bfa, #22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fx-catalog-head p { color: var(--fx-muted); font-size: 0.75rem; margin: 0; }
.fx-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; padding: 1.2rem 0 2rem; }
.fx-cat-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.4rem 0.9rem 1.1rem; border-radius: 20px; text-decoration: none; overflow: hidden;
  background: linear-gradient(160deg, rgba(139,92,246,0.18), rgba(15,15,28,0.95));
  background: linear-gradient(160deg, color-mix(in srgb, var(--cat-accent) 18%, rgba(15,15,28,0.9)), rgba(15,15,28,0.95));
  border: 1px solid rgba(139,92,246,0.4);
  border-color: color-mix(in srgb, var(--cat-accent) 40%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 26px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
  min-height: 148px;
}
.fx-cat-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.3), transparent 70%); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--cat-accent) 30%, transparent), transparent 70%); opacity: 0.6; }
.fx-cat-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(139,92,246,0.45); box-shadow: 0 16px 44px color-mix(in srgb, var(--cat-accent) 45%, transparent); }
.fx-cat-ico { position: relative; z-index: 1; font-size: 3rem; color: #8b5cf6; color: var(--cat-accent); filter: drop-shadow(0 6px 14px rgba(139,92,246,0.5)); filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--cat-accent) 50%, transparent)); margin-bottom: 0.6rem; }
.fx-cat-ico .fx-si { font-size: 3rem; }
.fx-cat-name { position: relative; z-index: 1; font-weight: 900; color: var(--fx-text); font-size: 1.05rem; margin-bottom: 0.2rem; }
.fx-cat-desc { position: relative; z-index: 1; font-size: 0.66rem; color: var(--fx-muted); font-weight: 600; line-height: 1.35; }
.fx-cat-go { position: absolute; top: 0.6rem; right: 0.7rem; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(139,92,246,0.3); background: color-mix(in srgb, var(--cat-accent) 30%, transparent); color: #8b5cf6; color: var(--cat-accent); font-size: 0.75rem; opacity: 0; transition: opacity 0.25s; }
.fx-cat-card:hover .fx-cat-go { opacity: 1; }
@media (max-width: 900px) {
  .fx-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; padding: 1rem 0.7rem 1.4rem; }
  .fx-cat-card { min-height: 122px; padding: 1rem 0.6rem 0.9rem; }
  .fx-cat-ico { font-size: 2.4rem; margin-bottom: 0.4rem; }
  .fx-cat-ico .fx-si { font-size: 2.4rem; }
  .fx-cat-name { font-size: 0.9rem; }
  .fx-cat-desc { font-size: 0.58rem; }
  .fx-cat-go { display: none; }
}
.fx-game-name { font-size: clamp(0.9rem, 1.2vw, 1.05rem); font-weight: 900; color: var(--fx-text); margin-bottom: 0.25rem; position: relative; z-index: 1; letter-spacing: -0.2px; }
.fx-game-desc { font-size: clamp(0.6rem, 0.9vw, 0.7rem); color: var(--fx-muted); font-weight: 600; line-height: 1.3; position: relative; z-index: 1; }

/* ─── Glass Card ─── */
.fx-glass-title {
  font-size: 0.75rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1px; color: var(--fx-muted);
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 8px;
}
.fx-glass-title i { color: var(--fx-primary); }

/* ─── Stat Cards ─── */
.fx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem; margin-bottom: 1.5rem;
}
.fx-stat {
  border: 1px solid var(--fx-border);
  padding: 1rem 0.7rem; text-align: center;
  border-radius: var(--fx-radius-sm);
}
.fx-stat-value { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 900; color: var(--fx-text); font-variant-numeric: tabular-nums; }
.fx-stat-label { font-size: 0.6rem; color: var(--fx-muted); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-top: 0.15rem; }

/* ─── Live Wins ─── */
.fx-live-wins {
  padding: 0.8rem 1rem;
  max-height: 260px; overflow-y: auto;
  border-radius: var(--fx-radius-sm);
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.05);
}
.fx-live-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  animation: slideIn 0.3s ease;
  border-radius: 8px;
  transition: background 0.15s;
  min-width: 0;
}
.fx-live-item:hover { background: var(--fx-glass-strong); }
.fx-live-item:last-child { border-bottom: none; }
.fx-live-item > span:first-child { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1; }
.fx-live-user { font-weight: 800; color: var(--fx-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-live-game { color: var(--fx-muted); font-size: 0.68rem; font-weight: 600; flex-shrink: 0; }
.fx-live-payout { font-weight: 900; color: var(--fx-success); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.fx-live-time { color: var(--fx-muted); font-size: 0.62rem; font-weight: 600; flex-shrink: 0; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }

/* ─── Leaderboard ─── */
.fx-lb-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.9rem; }
.fx-lb-tab {
  padding: 0.4rem 0.8rem;
  background: var(--fx-glass-strong);
  border: 1px solid var(--fx-border);
  border-radius: 10px; font-size: 0.65rem; font-weight: 800;
  color: var(--fx-muted); cursor: pointer;
  transition: all 0.2s;
}
.fx-lb-tab:hover { color: var(--fx-text); }
.fx-lb-tab.active { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(244,114,182,0.15)); border-color: rgba(139,92,246,0.4); color: var(--fx-text); }
.fx-lb-item {
  display: flex; align-items: center; gap: 8px;
  padding: 0.45rem 0.3rem;
  font-size: 0.74rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  transition: background 0.15s;
}
.fx-lb-item:hover { background: var(--fx-glass-strong); }
.fx-lb-rank {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 900;
  background: var(--fx-glass-strong);
  flex-shrink: 0;
}
.fx-lb-1 { background: linear-gradient(135deg, #fde68a, #fbbf24); color: #1a1a2e; }
.fx-lb-2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #1a1a2e; }
.fx-lb-3 { background: linear-gradient(135deg, #fcd9a0, #d97706); color: #fff; }
.fx-lb-name { flex: 1; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fx-lb-val { font-weight: 900; color: var(--fx-gold); font-variant-numeric: tabular-nums; }
.fx-lb-level { color: var(--fx-muted); font-size: 0.62rem; font-weight: 700; }

/* ─── Auth ─── */
.fx-auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.fx-auth-card {
  width: 100%; max-width: 420px;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius); padding: 2.4rem;
  position: relative;
}
.fx-auth-card::before {
  content: ''; position: absolute; top: -1px; left: 15%; right: 15%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #f472b6, transparent);
  border-radius: 3px;
}
.fx-auth-title { font-size: 1.7rem; font-weight: 900; text-align: center; margin-bottom: 0.3rem; }
.fx-auth-sub { text-align: center; color: var(--fx-muted); font-size: 0.82rem; font-weight: 500; margin-bottom: 1.8rem; }
.fx-form-group { margin-bottom: 1.1rem; }
.fx-form-group label {
  display: block; font-size: 0.7rem; font-weight: 800;
  color: var(--fx-muted); margin-bottom: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.fx-input {
  width: 100%; padding: 0.75rem 1.1rem;
  background: var(--fx-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm);
  color: var(--fx-text); font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s; outline: none;
}
.fx-input:focus { border-color: rgba(139,92,246,0.6); box-shadow: 0 0 0 3px rgba(139,92,246,0.18); }
.fx-input::placeholder { color: var(--fx-muted); font-size: 0.82rem; font-weight: 400; }
.fx-select {
  width: 100%; padding: 0.65rem 1rem;
  background: var(--fx-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--fx-border); border-radius: var(--fx-radius-sm);
  color: var(--fx-text); font-size: 0.85rem; font-weight: 600; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(232,242,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center;
}
.fx-auth-link { text-align: center; margin-top: 1.2rem; font-size: 0.8rem; font-weight: 500; color: var(--fx-muted); }
.fx-auth-link a { color: #a78bfa; text-decoration: none; font-weight: 800; }
.fx-auth-link a:hover { text-decoration: underline; }

/* ─── Tabs ─── */
.fx-tabs {
  display: flex; gap: 0.4rem; margin-bottom: 1.2rem;
  background: var(--fx-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm); padding: 0.35rem;
}
.fx-tab {
  flex: 1; padding: 0.6rem; text-align: center;
  border-radius: 10px; font-size: 0.75rem; font-weight: 800;
  color: var(--fx-muted); cursor: pointer; transition: all 0.2s;
  border: none; background: none;
}
.fx-tab:hover { color: var(--fx-text); background: var(--fx-glass-strong); }
.fx-tab.active { background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(244,114,182,0.2)); color: var(--fx-text); }

/* ─── Deposit / Withdraw ─── */
.fx-finance-page { max-width: 640px; margin: 0 auto; padding: 1rem; }
.fx-finance-card {
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius); padding: 1.8rem;
  margin-bottom: 1.2rem;
}
.fx-finance-title { font-size: 1.1rem; font-weight: 900; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 10px; }
.fx-currency-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 1.1rem; }
.fx-currency-opt {
  padding: 0.8rem 0.3rem; text-align: center;
  background: var(--fx-glass);
  border: 1px solid var(--fx-border);
  border-radius: 12px; cursor: pointer; transition: all 0.2s;
}
.fx-currency-opt:hover { background: var(--fx-glass-strong); transform: translateY(-2px); }
.fx-currency-opt.active { border-color: rgba(139,92,246,0.6); background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(244,114,182,0.12)); box-shadow: 0 0 20px rgba(139,92,246,0.15); }
.fx-currency-opt .sym { font-size: 1.6rem; display: block; margin-bottom: 3px; }
.fx-currency-opt .name { font-size: 0.66rem; font-weight: 800; color: var(--fx-text); }
.fx-currency-opt .rate { font-size: 0.58rem; font-weight: 600; color: var(--fx-gold); }
.fx-address-box {
  background: var(--fx-glass);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm); padding: 0.9rem;
  font-family: monospace; font-size: 0.78rem; font-weight: 600; color: var(--fx-cyan);
  word-break: break-all; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.fx-address-box .copy-btn {
  padding: 0.35rem 0.7rem; background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(139,92,246,0.15));
  border: 1px solid rgba(139,92,246,0.3); border-radius: 8px; color: #c4b5fd;
  cursor: pointer; font-size: 0.7rem; font-weight: 800; flex-shrink: 0;
  transition: all 0.2s;
}
.fx-address-box .copy-btn:hover { background: rgba(139,92,246,0.35); }
.fx-finance-history { font-size: 0.74rem; }
.fx-finance-history table { width: 100%; border-collapse: collapse; }
.fx-finance-history th { text-align: left; padding: 0.5rem 0.5rem; color: var(--fx-muted); font-weight: 800; font-size: 0.62rem; text-transform: uppercase; border-bottom: 1px solid var(--fx-border); }
.fx-finance-history td { padding: 0.45rem 0.5rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* ─── Game Page ─── */
.fx-game-page { padding: 1rem; max-width: 820px; margin: 0 auto; }
.fx-game-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.fx-game-title { font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.fx-game-back { color: var(--fx-muted); text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 12px; font-size: 0.75rem; font-weight: 700; transition: all 0.2s; display: flex; align-items: center; gap: 5px; background: var(--fx-glass); border: 1px solid var(--fx-border); }
.fx-game-back:hover { color: var(--fx-text); background: var(--fx-glass-strong); }

/* ─── Controls ─── */
.fx-controls {
  border: 1px solid var(--fx-border);
  padding: 1.1rem; margin-bottom: 1rem;
  border-radius: var(--fx-radius);
}
.fx-controls-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.fx-controls-row .fx-input { width: auto; flex: 1; min-width: 70px; padding: 0.6rem 0.8rem; font-size: 0.8rem; font-weight: 700; }
.fx-bet-presets { display: flex; gap: 0.35rem; }
.fx-bet-preset {
  padding: 0.4rem 0.6rem;
  background: var(--fx-glass);
  border: 1px solid var(--fx-border);
  border-radius: 8px; font-size: 0.66rem; font-weight: 800;
  color: var(--fx-muted); cursor: pointer;
  transition: all 0.2s;
}
.fx-bet-preset:hover, .fx-bet-preset.active { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(244,114,182,0.15)); border-color: rgba(139,92,246,0.4); color: var(--fx-text); }

/* ─── Game Area ─── */
.fx-game-area {
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius); padding: 1.6rem;
  min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

/* ─── Profile ─── */
.fx-profile {
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  padding: 2rem 1.8rem;
  margin-bottom: 1.4rem;
  background: var(--fx-glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), var(--fx-shadow);
}
.fx-profile-header { display: flex; align-items: center; gap: 1.4rem; }
.fx-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #f472b6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 900; color: #fff; flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(139,92,246,0.4);
}
.fx-profile-info h2 { font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fx-profile-info p { color: var(--fx-muted); font-size: 0.78rem; font-weight: 500; }

/* ─── Level Badge ─── */
.fx-level-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(244,114,182,0.15));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 20px; padding: 0.25rem 0.75rem;
  font-size: 0.7rem; font-weight: 900; color: #c4b5fd;
}
.fx-level-bar {
  width: 100%; height: 6px; background: rgba(255,255,255,0.08);
  border-radius: 3px; overflow: hidden; margin-top: 0.4rem;
}
.fx-level-bar-fill { height: 100%; background: linear-gradient(90deg, #8b5cf6, #f472b6); border-radius: 3px; transition: width 0.5s; }

/* ─── Achievements ─── */
.fx-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.6rem; }
.fx-ach-item {
  background: var(--fx-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm); padding: 0.9rem 0.6rem; text-align: center;
  transition: all 0.2s;
}
.fx-ach-item:hover { transform: translateY(-2px); }
.fx-ach-item.unlocked { border-color: rgba(139,92,246,0.5); background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(244,114,182,0.08)); box-shadow: 0 0 20px rgba(139,92,246,0.1); }
.fx-ach-item.locked { opacity: 0.4; filter: grayscale(0.8); }
.fx-ach-icon { font-size: 1.8rem; display: block; margin-bottom: 0.25rem; }
.fx-ach-name { font-size: 0.68rem; font-weight: 900; }
.fx-ach-desc { font-size: 0.58rem; font-weight: 600; color: var(--fx-muted); }

/* ─── History Table ─── */
.fx-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fx-table { width: 100%; border-collapse: collapse; font-size: clamp(0.66rem, 1.5vw, 0.78rem); }
.fx-table th { text-align: left; padding: 0.55rem 0.5rem; color: var(--fx-muted); font-weight: 800; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.8px; border-bottom: 1px solid var(--fx-border); white-space: nowrap; }
.fx-table td { padding: 0.55rem 0.5rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.04); white-space: nowrap; }
.fx-table tr:hover td { background: var(--fx-glass-strong); }

/* ─── Badge ─── */
.fx-badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 6px; font-size: 0.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.fx-badge-win { background: rgba(52,211,153,0.15); color: var(--fx-success); border: 1px solid rgba(52,211,153,0.25); }
.fx-badge-lose { background: rgba(251,113,133,0.15); color: var(--fx-danger); border: 1px solid rgba(251,113,133,0.25); }
.fx-badge-vip { background: linear-gradient(135deg, #fbbf24, #fb7185); color: #fff; }
.fx-badge-pending { background: rgba(251,191,36,0.15); color: var(--fx-gold); border: 1px solid rgba(251,191,36,0.25); }
.fx-badge-completed { background: rgba(52,211,153,0.15); color: var(--fx-success); border: 1px solid rgba(52,211,153,0.25); }
.fx-badge-rejected { background: rgba(251,113,133,0.15); color: var(--fx-danger); border: 1px solid rgba(251,113,133,0.25); }

/* ─── Toasts ─── */
.fx-toast-container { position: fixed; top: 78px; right: 1rem; z-index: 999; display: flex; flex-direction: column; gap: 0.6rem; }
.fx-toast {
  padding: 0.8rem 1.1rem; border-radius: var(--fx-radius-sm);
  font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  animation: toastSlide 0.3s ease;
  max-width: 350px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.fx-toast-info { background: rgba(139,92,246,0.3); color: #c4b5fd; }
.fx-toast-success { background: rgba(52,211,153,0.25); color: var(--fx-success); }
.fx-toast-error { background: rgba(251,113,133,0.25); color: var(--fx-danger); }
.fx-toast-win { background: rgba(251,191,36,0.25); color: var(--fx-gold); }
@keyframes toastSlide { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── Loading ─── */
.fx-loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,10,23,0.7); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 200; }
.fx-loading.show { display: flex; }
.fx-loader { width: 46px; height: 46px; border: 4px solid rgba(255,255,255,0.1); border-top-color: #8b5cf6; border-radius: 50%; animation: spin 0.8s linear infinite; box-shadow: 0 0 30px rgba(139,92,246,0.2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Animations ─── */
.anim-fade { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.4,0,0.2,1); }
.anim-fade.visible { opacity: 1; transform: translateY(0); }
.anim-stagger > * { opacity: 0; transform: translateY(18px); transition: all 0.45s cubic-bezier(0.4,0,0.2,1); }
.anim-stagger.visible > * { opacity: 1; transform: translateY(0); }
.anim-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.anim-stagger.visible > *:nth-child(2) { transition-delay: 0.06s; }
.anim-stagger.visible > *:nth-child(3) { transition-delay: 0.12s; }
.anim-stagger.visible > *:nth-child(4) { transition-delay: 0.18s; }
.anim-stagger.visible > *:nth-child(5) { transition-delay: 0.24s; }
.anim-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.anim-stagger.visible > *:nth-child(7) { transition-delay: 0.36s; }
.anim-stagger.visible > *:nth-child(8) { transition-delay: 0.42s; }
.anim-stagger.visible > * > * { opacity: 1; transform: translateY(0); }

/* ─── Mobile Bottom Nav ─── */
.fx-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(10,10,23,0.7); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border-top: 1px solid rgba(255,255,255,0.08); z-index: 100; padding: 0.4rem 0.2rem env(safe-area-inset-bottom, 0.4rem); }
.fx-bottom-nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 0.1rem; }
.fx-bottom-link { color: var(--fx-muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0.25rem 0.4rem; font-size: 0.55rem; font-weight: 800; transition: all 0.2s; }
.fx-bottom-link i { font-size: 1.2rem; }
.fx-bottom-link.active, .fx-bottom-link:hover { color: #a78bfa; }

/* ─── Sound toggle ─── */
.fx-sound-btn {
  background: var(--fx-glass);
  border: 1px solid var(--fx-border);
  color: var(--fx-muted);
  font-size: 1.15rem; cursor: pointer; padding: 0.4rem;
  border-radius: 50%;
  transition: all 0.2s;
}
.fx-sound-btn:hover { color: var(--fx-text); background: var(--fx-glass-strong); }

/* ─── Copy flash ─── */
@keyframes copyFlash { 0%,100% { background: rgba(139,92,246,0.25); } 50% { background: rgba(52,211,153,0.35); } }
.fx-copied { animation: copyFlash 0.6s ease; }

/* ─── Two column sections ─── */
.fx-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }

/* ─── Responsive ─── */
@media (min-width: 769px) {
  .fx-nav-link span { display: inline; }
  .fx-main { padding-bottom: 1rem; }
}
@media (max-width: 768px) {
  html, body { height: 100%; overflow: hidden; }
  .fx-nav { padding: 0 0.8rem; height: 60px; }
  .fx-logo { font-size: 1.15rem; }
  .fx-logo i { font-size: 1rem; }
  .fx-nav-link { padding: 0.35rem 0.45rem; font-size: 0.68rem; }
  .fx-nav-link span { display: none; }
  .fx-nav-link i { font-size: 1.05rem; }
  .fx-balance { font-size: 0.7rem; padding: 0.25rem 0.6rem; border-radius: 12px; }
  .fx-balance-label { display: none; }
  .fx-main {
    padding-top: 0px; padding-bottom: 0px;
    margin-top: 60px;
    min-height: 0;
    height: calc(100vh - 60px - env(safe-area-inset-bottom, 0px) - 78px);
    height: calc(100dvh - 60px - env(safe-area-inset-bottom, 0px) - 78px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .fx-container { padding-bottom: 1.2rem; }
  .fx-finance-page { padding-bottom: 1.2rem; }
  .fx-game-page { padding-bottom: 1.2rem; }
  .fx-auth-page { min-height: 100%; align-items: flex-start; padding-top: 1.5rem; }
  .fx-auth-card { margin-bottom: 1rem; }
  .fx-container { padding: 0 0.7rem; }
  .fx-games-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .fx-game-card { padding: 1.2rem 0.4rem; min-height: 125px; border-radius: 18px; }
  .fx-game-icon { font-size: 2.2rem; margin-bottom: 0.4rem; }
  .fx-game-name { font-size: 0.78rem; }
  .fx-game-desc { display: none; }
  .fx-stats { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .fx-stat { padding: 0.7rem 0.5rem; }
  .fx-stat-value { font-size: 1rem; }
  .fx-stat-label { font-size: 0.52rem; }
  .fx-hero { padding: 0.8rem 0.5rem 0.6rem; }
  .fx-hero h1 { font-size: 1.5rem; }
  .fx-hero p { font-size: 0.72rem; margin-bottom: 0.8rem; }
  .fx-hero-glow { width: 340px; height: 340px; }
  .fx-cols { grid-template-columns: 1fr; gap: 0.7rem; }
  .fx-glass-title { font-size: 0.66rem; }
  .fx-auth-card { padding: 1.8rem 1.4rem; }
  .fx-auth-title { font-size: 1.4rem; }
  .fx-input { padding: 0.65rem 0.9rem; font-size: 0.85rem; }
  .fx-game-page { padding: 0.4rem; }
  .fx-game-header { margin-bottom: 0.6rem; }
  .fx-game-title { font-size: 1.05rem; }
  .fx-controls { padding: 0.75rem; margin-bottom: 0.7rem; border-radius: 16px; }
  .fx-controls-row { gap: 0.4rem; }
  .fx-controls-row .fx-input { font-size: 0.74rem; padding: 0.5rem 0.6rem; min-width: 85px; }
  .fx-bet-preset { padding: 0.3rem 0.45rem; font-size: 0.62rem; }
  .fx-game-area { min-height: 200px; padding: 1rem; border-radius: 16px; }
  .fx-bottom-nav { display: block; }
  .fx-btn { padding: 0.45rem 1rem; font-size: 0.73rem; }
  .fx-btn-sm { padding: 0.3rem 0.7rem; font-size: 0.65rem; }
  .fx-currency-grid { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .fx-finance-page { padding: 0.4rem; }
  .fx-finance-card { padding: 1rem 0.9rem; margin-bottom: 0.8rem; }
  .fx-finance-title { font-size: 0.95rem; margin-bottom: 0.9rem; }
  .fx-jackpot { padding: 0.9rem 0.8rem; margin-bottom: 0.9rem; }
  .fx-jackpot-amount { font-size: 1.8rem; }
  .fx-jackpot-icon { font-size: 1.6rem; }
  .fx-daily { flex-direction: column; text-align: center; gap: 0.6rem; padding: 0.9rem 1rem; margin-bottom: 0.9rem; }
  .fx-daily-left { flex-direction: column; justify-content: center; gap: 8px; }
  .fx-daily-info h3 { font-size: 0.95rem; justify-content: center; }
  .fx-daily-info p { text-align: center; }
  .fx-daily-icon { font-size: 1.9rem; }
  .fx-daily-btn { min-width: 110px; padding: 0.55rem 1rem; }
  .fx-ach-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .fx-profile-header { gap: 1rem; }
  .fx-profile { padding: 1.4rem 1.1rem; }
  .fx-avatar { width: 54px; height: 54px; font-size: 1.4rem; }
  .fx-profile-info h2 { font-size: 1.1rem; flex-direction: column; align-items: flex-start; gap: 4px; }
  .fx-prof-exp { display: block; }
  .fx-live-wins { max-height: 180px; padding: 0.5rem 0.7rem; }
  .fx-live-item { padding: 0.45rem 0.3rem; font-size: 0.74rem; }
  .fx-glass { padding: 0.9rem 0.95rem; }
  .fx-table th, .fx-table td { padding: 0.45rem 0.4rem; }
  .fx-lb-item { padding: 0.4rem 0.3rem; font-size: 0.7rem; }
}
@media (min-width: 401px) and (max-width: 768px) {
  .fx-ach-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .fx-games-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .fx-stats { grid-template-columns: repeat(2, 1fr); }
  .fx-ach-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-currency-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-game-title { font-size: 1rem; }
}
/* ─── Sidebar ─────────────────────────────────────────────────────── */
.fx-burger {
  background: var(--fx-glass);
  border: 1px solid var(--fx-border);
  color: var(--fx-text);
  font-size: 1.3rem;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.fx-burger:hover { background: var(--fx-glass-strong); border-color: rgba(139,92,246,0.5); }
.fx-nav .fx-logo { margin-left: 0.8rem; margin-right: auto; }

.fx-sidebar-overlay {
  position: fixed; inset: 0; background: rgba(5,5,15,0.6);
  backdrop-filter: blur(4px); z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.fx-sidebar-overlay.show { opacity: 1; pointer-events: auto; }

.fx-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 300px;
  background: rgba(11,11,28,0.96);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border-right: 1px solid var(--fx-border);
  z-index: 250;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 20px 0 60px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.fx-sidebar.show { transform: translateX(0); }
.fx-sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.fx-sidebar-head .fx-logo { font-size: 1.3rem; }
.fx-sidebar-close {
  background: var(--fx-glass); border: 1px solid var(--fx-border);
  color: var(--fx-muted); width: 34px; height: 34px; border-radius: 10px;
  font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.fx-sidebar-close:hover { color: var(--fx-text); background: var(--fx-glass-strong); }
.fx-sidebar-section { padding: 1rem 1.1rem 0.2rem; }
.fx-sidebar-caption {
  font-size: 0.62rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--fx-muted); margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 7px;
}
.fx-sidebar-caption i { color: var(--fx-primary); }
.fx-sidebar-link {
  display: flex; align-items: center; gap: 10px;
  color: var(--fx-muted); text-decoration: none;
  padding: 0.6rem 0.8rem; border-radius: 12px;
  font-size: 0.8rem; font-weight: 700; transition: all 0.2s;
  margin-bottom: 3px;
}
.fx-sidebar-link:hover { background: var(--fx-glass); color: var(--fx-text); }
.fx-sidebar-link.active {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(244,114,182,0.1));
  color: var(--fx-text); border: 1px solid rgba(139,92,246,0.3);
}
.fx-sidebar-link.out { color: var(--fx-danger); }
.fx-sidebar-link.out:hover { background: rgba(251,113,133,0.12); }
.fx-sb-games { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.fx-sb-game {
  display: flex; align-items: center; gap: 8px;
  background: var(--fx-glass);
  border: 1px solid var(--fx-border);
  border-radius: 12px; padding: 0.5rem 0.6rem;
  color: var(--fx-text); text-decoration: none;
  font-size: 0.72rem; font-weight: 800; transition: all 0.2s;
}
.fx-sb-game span { font-size: 1rem; }
.fx-sb-game:hover { border-color: rgba(139,92,246,0.5); background: rgba(139,92,246,0.1); transform: translateY(-1px); }
.fx-sidebar-foot {
  padding: 1rem 1.1rem; margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.fx-wager-mini { }

/* ─── Mobile Bottom Catalog Button ────────────────────────────────── */
.fx-bottom-nav .fx-bottom-nav-inner { position: relative; }
.fx-bottom-catalog {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: var(--fx-muted);
  font-size: 0.55rem; font-weight: 800; cursor: pointer;
  transform: translateY(-18px); flex-shrink: 0; padding: 0;
  outline: none;
}
.fx-bc-ring {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #f472b6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  box-shadow: 0 8px 28px var(--fx-primary-glow), 0 0 0 6px rgba(10,10,23,0.9);
  transition: all 0.25s; border: 3px solid #0a0a17;
}
.fx-bottom-catalog:hover .fx-bc-ring,
.fx-bottom-catalog.active .fx-bc-ring {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 10px 34px var(--fx-primary-glow), 0 0 24px rgba(244,114,182,0.45), 0 0 0 6px rgba(10,10,26,0.6);
}
.fx-bottom-catalog.active { color: #fff; }

@media (max-width: 480px) {
  .fx-sidebar { width: 84vw; }
}

/* ─── Hero & Features (marketing) ─────────────────────────────────── */
.fx-hero-badges {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.fx-h-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 30px; padding: 0.35rem 0.8rem;
  font-size: 0.66rem; font-weight: 800; color: #c4b5fd;
  backdrop-filter: blur(10px);
}
.fx-h-badge:nth-child(2) { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.25); color: #fde68a; }
.fx-h-badge:nth-child(3) { background: rgba(244,114,182,0.1); border-color: rgba(244,114,182,0.25); color: #f9a8d4; }
.fx-hero h1 span {
  background: linear-gradient(135deg, #a78bfa, #f472b6 50%, #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fx-hero-sub { color: var(--fx-muted); font-size: clamp(0.82rem, 2vw, 1rem); font-weight: 500; max-width: 560px; margin: 0 auto 1.4rem; }
.fx-hero-cta { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.fx-btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--fx-border);
  color: var(--fx-text);
}
.fx-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(139,92,246,0.5); }

.fx-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem; margin-bottom: 1.4rem;
}
.fx-feature {
  background: var(--fx-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--fx-border);
  border-top-color: rgba(255,255,255,0.12);
  border-radius: 18px; padding: 1.1rem 0.8rem; text-align: center;
  transition: all 0.25s;
}
.fx-feature:hover { transform: translateY(-3px); border-color: rgba(139,92,246,0.4); box-shadow: 0 12px 30px var(--fx-primary-glow); }
.fx-feature-icon {
  width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 0.6rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(34,211,238,0.12));
  border: 1px solid rgba(139,92,246,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #a78bfa;
}
.fx-feature:nth-child(2) .fx-feature-icon { background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(244,114,182,0.15)); border-color: rgba(251,191,36,0.3); color: #fbbf24; }
.fx-feature:nth-child(3) .fx-feature-icon { background: linear-gradient(135deg, rgba(52,211,153,0.2), rgba(34,211,238,0.15)); border-color: rgba(52,211,153,0.3); color: #34d399; }
.fx-feature:nth-child(4) .fx-feature-icon { background: linear-gradient(135deg, rgba(244,114,182,0.2), rgba(139,92,246,0.15)); border-color: rgba(244,114,182,0.3); color: #f472b6; }
.fx-feature-name { font-size: 0.8rem; font-weight: 900; color: var(--fx-text); margin-bottom: 0.2rem; }
.fx-feature-desc { font-size: 0.62rem; font-weight: 600; color: var(--fx-muted); line-height: 1.35; }

.fx-catalog-link {
  margin-left: auto; font-size: 0.62rem; font-weight: 800; color: #a78bfa;
  text-decoration: none; text-transform: none; letter-spacing: 0;
  padding: 0.3rem 0.7rem; border-radius: 10px;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.3);
}
.fx-catalog-link:hover { background: rgba(139,92,246,0.2); color: #c4b5fd; }

@media (max-width: 480px) {
  .fx-hero-badges { gap: 0.35rem; margin-bottom: 0.9rem; }
  .fx-h-badge { font-size: 0.58rem; padding: 0.28rem 0.6rem; }
  .fx-features { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}
