:root {
  --fx-bg: #07070f;
  --fx-card: #1a1a30;
  --fx-card-hover: #222240;
  --fx-border: rgba(255, 255, 255, 0.08);
  --fx-border-hover: rgba(108, 92, 231, 0.25);
  --fx-primary: #6c5ce7;
  --fx-primary-dark: #5a4bd1;
  --fx-accent: #fd79a8;
  --fx-cyan: #00cec9;
  --fx-gold: #fdcb6e;
  --fx-gold-dark: #e0a800;
  --fx-success: #00b894;
  --fx-success-dark: #00a381;
  --fx-danger: #e17055;
  --fx-text: #dfe6e9;
  --fx-muted: rgba(223, 230, 233, 0.35);
  --fx-radius: 16px;
  --fx-radius-sm: 10px;
  --fx-glow-purple: 0 0 30px rgba(108, 92, 231, 0.15);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--fx-bg);
  color: var(--fx-text);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(108, 92, 231, 0.3); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(108, 92, 231, 0.3); border-radius: 3px; }

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

/* ─── Navbar ─── */
.fx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 1.5rem;
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--fx-border);
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.fx-logo {
  font-size: 1.3rem; font-weight: 900;
  background: linear-gradient(135deg, var(--fx-primary), var(--fx-accent));
  -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: var(--fx-primary); font-size: 1.1rem; }
.fx-nav-links { display: flex; align-items: center; gap: 0.4rem; }
.fx-nav-link {
  color: var(--fx-muted); text-decoration: none;
  padding: 0.4rem 0.7rem; border-radius: var(--fx-radius-sm);
  font-size: 0.78rem; font-weight: 500;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 4px;
}
.fx-nav-link:hover, .fx-nav-link.active { color: var(--fx-text); background: rgba(108,92,231,0.1); }
.fx-nav-link i { font-size: 0.85rem; }
.fx-balance {
  background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(0,206,201,0.1));
  border: 1px solid rgba(108,92,231,0.2);
  border-radius: var(--fx-radius-sm);
  padding: 0.35rem 0.8rem;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--fx-gold); cursor: default;
  white-space: nowrap;
}
.fx-balance i { color: var(--fx-gold); font-size: 0.85rem; }
.fx-balance-label { color: var(--fx-muted); font-size: 0.6rem; font-weight: 400; margin-right: 2px; }
.fx-btn {
  padding: 0.45rem 1.2rem; border-radius: var(--fx-radius-sm);
  font-size: 0.78rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.25s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.fx-btn-primary { background: linear-gradient(135deg, var(--fx-primary), #a29bfe); color: #fff; box-shadow: 0 4px 15px rgba(108,92,231,0.3); }
.fx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(108,92,231,0.4); }
.fx-btn-success { background: linear-gradient(135deg, var(--fx-success), #00d2a0); color: #fff; box-shadow: 0 4px 15px rgba(0,184,148,0.3); }
.fx-btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0,184,148,0.4); }
.fx-btn-accent { background: linear-gradient(135deg, var(--fx-accent), #e84393); color: #fff; box-shadow: 0 4px 15px rgba(253,121,168,0.3); }
.fx-btn-accent:hover { transform: translateY(-2px); }
.fx-btn-gold { background: linear-gradient(135deg, var(--fx-gold), #e0a800); color: #1a1a2e; box-shadow: 0 4px 15px rgba(253,203,110,0.3); }
.fx-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(253,203,110,0.4); }
.fx-btn-ghost { background: rgba(255,255,255,0.05); color: var(--fx-text); border: 1px solid var(--fx-border); }
.fx-btn-ghost:hover { background: rgba(255,255,255,0.1); }
.fx-btn-sm { padding: 0.3rem 0.8rem; font-size: 0.7rem; }
.fx-btn-lg { padding: 0.6rem 2rem; font-size: 0.9rem; }

/* ─── Main ─── */
.fx-main { position: relative; z-index: 1; padding-top: 80px; min-height: 100vh; }
.fx-container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.fx-section-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--fx-muted);
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 6px;
}

/* ─── Hero ─── */
.fx-hero {
  text-align: center; padding: 2.5rem 1rem 1.5rem;
  position: relative;
}
.fx-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  background: linear-gradient(135deg, var(--fx-text), var(--fx-primary), var(--fx-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem; letter-spacing: -1px;
}
.fx-hero p { color: var(--fx-muted); font-size: clamp(0.75rem, 2vw, 0.95rem); max-width: 500px; margin: 0 auto 1rem; }
.fx-hero-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108,92,231,0.08) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}

/* ─── Jackpot Banner ─── */
.fx-jackpot {
  text-align: center; padding: 1rem; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(253,203,110,0.08), rgba(225,112,85,0.05));
  border: 1px solid rgba(253,203,110,0.15);
  border-radius: var(--fx-radius);
  position: relative; overflow: hidden;
}
.fx-jackpot::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(253,203,110,0.03), transparent, rgba(253,203,110,0.03), 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: 2rem; }
.fx-jackpot-amount {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900;
  background: linear-gradient(135deg, var(--fx-gold), #e0a800, var(--fx-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.2rem 0;
}
.fx-jackpot-label { color: var(--fx-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.fx-jackpot-winner { color: var(--fx-muted); font-size: 0.72rem; margin-top: 0.3rem; }
.fx-jackpot-winner strong { color: var(--fx-gold); }

/* ─── Daily Bonus ─── */
.fx-daily {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--fx-card); border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius); padding: 1rem 1.2rem;
  margin-bottom: 1.5rem; gap: 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.fx-daily-left { display: flex; align-items: center; gap: 10px; }
.fx-daily-icon { font-size: 2rem; }
.fx-daily-info h3 { font-size: 0.9rem; font-weight: 700; }
.fx-daily-info p { font-size: 0.7rem; color: var(--fx-muted); }
.fx-daily-btn { flex-shrink: 0; min-width: 110px; text-align: center; }

/* ─── Game Cards ─── */
.fx-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 0 1.5rem;
}
.fx-game-card {
  position: relative;
  background: var(--fx-card);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  padding: 1.3rem 0.8rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
  min-height: 140px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.fx-game-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(145deg, rgba(108,92,231,0.05) 0%, transparent 50%, rgba(0,206,201,0.03) 100%);
  opacity: 1; transition: opacity 0.3s; border-radius: var(--fx-radius);
}
.fx-game-card:hover::before {
  background: linear-gradient(145deg, rgba(108,92,231,0.12) 0%, transparent 50%, rgba(0,206,201,0.06) 100%);
}
.fx-game-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--fx-border-hover);
  box-shadow: 0 12px 40px rgba(108,92,231,0.25), 0 0 20px rgba(108,92,231,0.1);
  background: var(--fx-card-hover);
}
.fx-game-card:hover::before { opacity: 1; }
.fx-game-card:active { transform: translateY(-2px) scale(0.98); }
.fx-game-card .card-glow {
  position: absolute; top: 50%; left: 50%;
  width: 140px; height: 140px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(108,92,231,0.12) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.fx-game-card:hover .card-glow { opacity: 1; }
.fx-game-icon { font-size: clamp(2.5rem, 4vw, 3.2rem); margin-bottom: 0.5rem; position: relative; z-index: 1; }
.fx-game-name { font-size: clamp(0.8rem, 1.2vw, 0.95rem); font-weight: 700; color: var(--fx-text); margin-bottom: 0.2rem; position: relative; z-index: 1; }
.fx-game-desc { font-size: clamp(0.6rem, 0.9vw, 0.68rem); color: var(--fx-muted); line-height: 1.3; position: relative; z-index: 1; }

/* ─── Glass Card ─── */
.fx-glass {
  background: var(--fx-card);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.fx-glass-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--fx-muted);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 6px;
}

/* ─── Stat Cards ─── */
.fx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem; margin-bottom: 1.5rem;
}
.fx-stat {
  background: var(--fx-card);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm);
  padding: 0.8rem; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.fx-stat-value { font-size: clamp(0.9rem, 2vw, 1.2rem); font-weight: 800; color: var(--fx-text); }
.fx-stat-label { font-size: 0.55rem; color: var(--fx-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.1rem; }

/* ─── Live Wins ─── */
.fx-live-wins {
  background: var(--fx-card);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  padding: 0.8rem 1rem;
  max-height: 240px; overflow-y: auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.fx-live-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.72rem;
  animation: slideIn 0.3s ease;
}
.fx-live-item:last-child { border-bottom: none; }
.fx-live-user { font-weight: 600; color: var(--fx-text); }
.fx-live-game { color: var(--fx-muted); font-size: 0.65rem; }
.fx-live-payout { font-weight: 700; color: var(--fx-success); }
.fx-live-time { color: var(--fx-muted); font-size: 0.6rem; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

/* ─── Leaderboard ─── */
.fx-lb-tabs { display: flex; gap: 0.3rem; margin-bottom: 0.8rem; }
.fx-lb-tab {
  padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--fx-border);
  border-radius: 6px; font-size: 0.62rem; font-weight: 600;
  color: var(--fx-muted); cursor: pointer;
  transition: all 0.2s;
}
.fx-lb-tab:hover, .fx-lb-tab.active { background: rgba(108,92,231,0.12); border-color: rgba(108,92,231,0.3); color: var(--fx-primary); }
.fx-lb-item {
  display: flex; align-items: center; gap: 6px;
  padding: 0.3rem 0;
  font-size: 0.72rem;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.fx-lb-rank {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.fx-lb-1 { background: linear-gradient(135deg, var(--fx-gold), #e0a800); color: #1a1a2e; }
.fx-lb-2 { background: linear-gradient(135deg, #b0b0b0, #808080); color: #1a1a2e; }
.fx-lb-3 { background: linear-gradient(135deg, #cd7f32, #8b5e3c); color: #fff; }
.fx-lb-name { flex: 1; font-weight: 600; }
.fx-lb-val { font-weight: 700; color: var(--fx-gold); }
.fx-lb-level { color: var(--fx-muted); font-size: 0.6rem; }

/* ─── Auth ─── */
.fx-auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.fx-auth-card {
  width: 100%; max-width: 400px;
  background: var(--fx-card); border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius); padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.fx-auth-card::before {
  content: ''; position: absolute; top: -1px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fx-primary), var(--fx-accent), transparent);
  border-radius: 2px;
}
.fx-auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 0.25rem; }
.fx-auth-sub { text-align: center; color: var(--fx-muted); font-size: 0.8rem; margin-bottom: 1.5rem; }
.fx-form-group { margin-bottom: 1rem; }
.fx-form-group label {
  display: block; font-size: 0.7rem; font-weight: 600;
  color: var(--fx-muted); margin-bottom: 0.3rem;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.fx-input {
  width: 100%; padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm);
  color: var(--fx-text); font-size: 0.85rem;
  transition: all 0.2s; outline: none;
}
.fx-input:focus { border-color: var(--fx-primary); box-shadow: 0 0 0 3px rgba(108,92,231,0.15); }
.fx-input::placeholder { color: var(--fx-muted); font-size: 0.78rem; }
.fx-select {
  width: 100%; padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--fx-border); border-radius: var(--fx-radius-sm);
  color: var(--fx-text); font-size: 0.85rem; 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(223,230,233,0.4)' 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: 1rem; font-size: 0.78rem; color: var(--fx-muted); }
.fx-auth-link a { color: var(--fx-primary); text-decoration: none; font-weight: 600; }
.fx-auth-link a:hover { text-decoration: underline; }

/* ─── Tabs ─── */
.fx-tabs {
  display: flex; gap: 0.3rem; margin-bottom: 1.2rem;
  background: var(--fx-card); border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm); padding: 0.3rem;
}
.fx-tab {
  flex: 1; padding: 0.5rem; text-align: center;
  border-radius: 8px; font-size: 0.72rem; font-weight: 600;
  color: var(--fx-muted); cursor: pointer; transition: all 0.2s;
  border: none; background: none;
}
.fx-tab:hover { color: var(--fx-text); background: rgba(255,255,255,0.03); }
.fx-tab.active { background: rgba(108,92,231,0.15); color: var(--fx-primary); }

/* ─── Deposit / Withdraw ─── */
.fx-finance-page { max-width: 600px; margin: 0 auto; padding: 1rem; }
.fx-finance-card {
  background: var(--fx-card); border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius); padding: 1.5rem;
  margin-bottom: 1rem;
}
.fx-finance-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.fx-currency-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.fx-currency-opt {
  padding: 0.6rem 0.3rem; text-align: center;
  background: rgba(255,255,255,0.03); border: 1px solid var(--fx-border);
  border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.fx-currency-opt:hover { background: rgba(108,92,231,0.08); }
.fx-currency-opt.active { border-color: var(--fx-primary); background: rgba(108,92,231,0.12); }
.fx-currency-opt .sym { font-size: 1.3rem; display: block; }
.fx-currency-opt .name { font-size: 0.6rem; color: var(--fx-muted); margin-top: 2px; }
.fx-currency-opt .rate { font-size: 0.55rem; color: var(--fx-gold); }
.fx-address-box {
  background: rgba(255,255,255,0.03); border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm); padding: 0.8rem;
  font-family: monospace; font-size: 0.75rem; color: var(--fx-cyan);
  word-break: break-all; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 8px;
}
.fx-address-box .copy-btn {
  padding: 0.3rem 0.6rem; background: rgba(108,92,231,0.15);
  border: none; border-radius: 6px; color: var(--fx-primary);
  cursor: pointer; font-size: 0.7rem; font-weight: 600; flex-shrink: 0;
  transition: all 0.2s;
}
.fx-address-box .copy-btn:hover { background: rgba(108,92,231,0.25); }
.fx-finance-history { font-size: 0.72rem; }
.fx-finance-history table { width: 100%; border-collapse: collapse; }
.fx-finance-history th { text-align: left; padding: 0.4rem 0.5rem; color: var(--fx-muted); font-weight: 600; font-size: 0.6rem; text-transform: uppercase; border-bottom: 1px solid var(--fx-border); }
.fx-finance-history td { padding: 0.35rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.03); }

/* ─── Game Page ─── */
.fx-game-page { padding: 1rem; max-width: 800px; margin: 0 auto; }
.fx-game-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.fx-game-title { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.fx-game-back { color: var(--fx-muted); text-decoration: none; padding: 0.4rem 0.7rem; border-radius: var(--fx-radius-sm); font-size: 0.75rem; transition: all 0.2s; display: flex; align-items: center; gap: 4px; }
.fx-game-back:hover { color: var(--fx-text); background: rgba(255,255,255,0.05); }

/* ─── Controls ─── */
.fx-controls { background: var(--fx-card); border: 1px solid var(--fx-border); border-radius: var(--fx-radius); padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.fx-controls-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.fx-controls-row .fx-input { width: auto; flex: 1; min-width: 60px; padding: 0.5rem 0.7rem; font-size: 0.78rem; }
.fx-bet-presets { display: flex; gap: 0.3rem; }
.fx-bet-preset {
  padding: 0.3rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--fx-border);
  border-radius: 6px; font-size: 0.62rem; font-weight: 600;
  color: var(--fx-muted); cursor: pointer;
  transition: all 0.2s;
}
.fx-bet-preset:hover, .fx-bet-preset.active { background: rgba(108,92,231,0.12); border-color: rgba(108,92,231,0.3); color: var(--fx-primary); }

/* ─── Game Area ─── */
.fx-game-area {
  background: var(--fx-card); border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius); padding: 1.5rem;
  min-height: 250px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* ─── Profile ─── */
.fx-profile-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.fx-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--fx-primary), var(--fx-accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.fx-profile-info h2 { font-size: 1.2rem; font-weight: 700; }
.fx-profile-info p { color: var(--fx-muted); font-size: 0.75rem; }

/* ─── Level Badge ─── */
.fx-level-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(108,92,231,0.15); border: 1px solid rgba(108,92,231,0.2);
  border-radius: 20px; padding: 0.2rem 0.6rem;
  font-size: 0.65rem; font-weight: 700; color: var(--fx-primary);
}
.fx-level-bar {
  width: 100%; height: 4px; background: rgba(255,255,255,0.05);
  border-radius: 2px; overflow: hidden; margin-top: 0.3rem;
}
.fx-level-bar-fill { height: 100%; background: linear-gradient(90deg, var(--fx-primary), var(--fx-accent)); border-radius: 2px; transition: width 0.5s; }

/* ─── Achievements ─── */
.fx-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; }
.fx-ach-item {
  background: rgba(255,255,255,0.03); border: 1px solid var(--fx-border);
  border-radius: 10px; padding: 0.7rem; text-align: center;
  transition: all 0.2s;
}
.fx-ach-item.unlocked { border-color: rgba(108,92,231,0.3); background: rgba(108,92,231,0.05); }
.fx-ach-item.locked { opacity: 0.4; filter: grayscale(0.8); }
.fx-ach-icon { font-size: 1.5rem; display: block; margin-bottom: 0.2rem; }
.fx-ach-name { font-size: 0.62rem; font-weight: 600; }
.fx-ach-desc { font-size: 0.55rem; 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.62rem, 1.5vw, 0.75rem); }
.fx-table th { text-align: left; padding: 0.45rem 0.5rem; color: var(--fx-muted); font-weight: 600; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--fx-border); }
.fx-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
.fx-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── Badge ─── */
.fx-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.fx-badge-win { background: rgba(0,184,148,0.15); color: var(--fx-success); }
.fx-badge-lose { background: rgba(225,112,85,0.15); color: var(--fx-danger); }
.fx-badge-vip { background: linear-gradient(135deg, var(--fx-gold), #e17055); color: #fff; }
.fx-badge-pending { background: rgba(253,203,110,0.15); color: var(--fx-gold); }
.fx-badge-completed { background: rgba(0,184,148,0.15); color: var(--fx-success); }
.fx-badge-rejected { background: rgba(225,112,85,0.15); color: var(--fx-danger); }

/* ─── Toasts ─── */
.fx-toast-container { position: fixed; top: 74px; right: 1rem; z-index: 999; display: flex; flex-direction: column; gap: 0.5rem; }
.fx-toast {
  padding: 0.7rem 1rem; border-radius: var(--fx-radius-sm);
  font-size: 0.8rem; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  animation: toastSlide 0.3s ease;
  max-width: 350px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}
.fx-toast-info { background: rgba(108,92,231,0.2); color: #a29bfe; }
.fx-toast-success { background: rgba(0,184,148,0.2); color: var(--fx-success); }
.fx-toast-error { background: rgba(225,112,85,0.2); color: var(--fx-danger); }
.fx-toast-win { background: rgba(253,203,110,0.2); 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(7,7,15,0.7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; }
.fx-loading.show { display: flex; }
.fx-loader { width: 40px; height: 40px; border: 3px solid var(--fx-border); border-top-color: var(--fx-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Animations ─── */
.anim-fade { opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.4,0,0.2,1); }
.anim-fade.visible { opacity: 1; transform: translateY(0); }
.anim-stagger > * { opacity: 0; transform: translateY(15px); transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
.anim-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.anim-stagger.visible > *:nth-child(2) { transition-delay: 0.05s; }
.anim-stagger.visible > *:nth-child(3) { transition-delay: 0.1s; }
.anim-stagger.visible > *:nth-child(4) { transition-delay: 0.15s; }
.anim-stagger.visible > *:nth-child(5) { transition-delay: 0.2s; }
.anim-stagger.visible > *:nth-child(6) { transition-delay: 0.25s; }
.anim-stagger.visible > *:nth-child(7) { transition-delay: 0.3s; }
.anim-stagger.visible > *:nth-child(8) { transition-delay: 0.35s; }
.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(7,7,15,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--fx-border); z-index: 100; padding: 0.3rem 0 env(safe-area-inset-bottom, 0.3rem); }
.fx-bottom-nav-inner { display: flex; justify-content: space-around; align-items: center; }
.fx-bottom-link { color: var(--fx-muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0.2rem 0.3rem; font-size: 0.5rem; font-weight: 500; transition: all 0.2s; }
.fx-bottom-link i { font-size: 1.1rem; }
.fx-bottom-link.active, .fx-bottom-link:hover { color: var(--fx-primary); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .fx-nav { padding: 0 0.8rem; height: 56px; }
  .fx-logo { font-size: 1.05rem; }
  .fx-logo i { font-size: 0.95rem; }
  .fx-nav-link { padding: 0.3rem 0.4rem; font-size: 0.65rem; }
  .fx-nav-link span { display: none; }
  .fx-nav-link i { font-size: 1rem; }
  .fx-balance { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
  .fx-balance-label { display: none; }
  .fx-main { padding-top: 64px; padding-bottom: 60px; }
  .fx-container { padding: 0 0.6rem; }
  .fx-games-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .fx-game-card { padding: 1rem 0.4rem; min-height: 110px; }
  .fx-game-icon { font-size: 1.8rem; margin-bottom: 0.25rem; }
  .fx-game-name { font-size: 0.65rem; }
  .fx-game-desc { display: none; }
  .fx-stats { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .fx-stat { padding: 0.5rem; }
  .fx-stat-value { font-size: 0.85rem; }
  .fx-stat-label { font-size: 0.48rem; }
  .fx-hero { padding: 1.2rem 0.5rem 0.8rem; }
  .fx-hero h1 { font-size: 1.3rem; }
  .fx-hero p { font-size: 0.68rem; }
  .fx-glass { padding: 0.8rem; }
  .fx-glass-title { font-size: 0.6rem; }
  .fx-auth-card { padding: 1.5rem; }
  .fx-auth-title { font-size: 1.2rem; }
  .fx-input { padding: 0.55rem 0.8rem; font-size: 0.78rem; }
  .fx-game-page { padding: 0.5rem; }
  .fx-controls { padding: 0.7rem; }
  .fx-controls-row .fx-input { font-size: 0.7rem; padding: 0.4rem 0.5rem; }
  .fx-bet-preset { padding: 0.2rem 0.35rem; font-size: 0.55rem; }
  .fx-bottom-nav { display: block; }
  .fx-btn { padding: 0.35rem 0.8rem; font-size: 0.7rem; }
  .fx-btn-sm { padding: 0.25rem 0.6rem; font-size: 0.62rem; }
  .fx-currency-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-finance-page { padding: 0.5rem; }
  .fx-jackpot { padding: 0.8rem; }
  .fx-daily { flex-direction: column; text-align: center; }
  .fx-daily-left { flex-direction: column; }
  .fx-ach-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .fx-games-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) {
  .fx-nav-link span { display: inline; }
  .fx-main { padding-bottom: 1rem; }
}

/* ─── Sound toggle ─── */
.fx-sound-btn {
  background: none; border: none; color: var(--fx-muted);
  font-size: 1.1rem; cursor: pointer; padding: 0.3rem;
  transition: all 0.2s;
}
.fx-sound-btn:hover { color: var(--fx-text); }

/* ─── Copy flash ─── */
@keyframes copyFlash { 0%,100% { background: rgba(108,92,231,0.15); } 50% { background: rgba(0,184,148,0.3); } }
.fx-copied { animation: copyFlash 0.6s ease; }
