/* ================================================================
   WINCITY — Design System
   Theme: Neon City Night — deep dark with electric cyan + violet + gold
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-void:     #05080F;
  --bg-deep:     #090D18;
  --bg-surface:  #0E1526;
  --bg-card:     #111E35;
  --bg-elevated: #162240;
  --bg-hover:    #1A2A4D;

  /* Brand */
  --cyan:        #00D4FF;
  --cyan-soft:   rgba(0,212,255,0.15);
  --violet:      #7C3AFF;
  --violet-soft: rgba(124,58,255,0.15);
  --gold:        #FFB300;
  --gold-soft:   rgba(255,179,0,0.15);

  /* Status */
  --green:       #00E87A;
  --green-soft:  rgba(0,232,122,0.12);
  --red:         #FF3D5A;
  --red-soft:    rgba(255,61,90,0.12);

  /* Text */
  --text-1:      #F0F4FF;
  --text-2:      #8A9BBF;
  --text-3:      #4D5F80;
  --text-link:   #00D4FF;

  /* Borders */
  --border-1:    rgba(255,255,255,0.06);
  --border-2:    rgba(255,255,255,0.12);
  --border-cyan: rgba(0,212,255,0.3);
  --border-gold: rgba(255,179,0,0.3);

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, #00D4FF 0%, #7C3AFF 100%);
  --grad-gold:   linear-gradient(135deg, #FFB300 0%, #FF6B00 100%);
  --grad-surface:linear-gradient(180deg, #0E1526 0%, #090D18 100%);
  --grad-card:   linear-gradient(135deg, #111E35 0%, #0E1526 100%);

  /* Glows */
  --glow-cyan:   0 0 30px rgba(0,212,255,0.25), 0 0 60px rgba(0,212,255,0.1);
  --glow-violet: 0 0 30px rgba(124,58,255,0.25), 0 0 60px rgba(124,58,255,0.1);
  --glow-gold:   0 0 30px rgba(255,179,0,0.25), 0 0 60px rgba(255,179,0,0.1);
  --glow-green:  0 0 20px rgba(0,232,122,0.3);
  --glow-red:    0 0 20px rgba(255,61,90,0.3);

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-normal: 250ms ease;
  --t-slow:   400ms ease;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

/* ── Typography ──────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text-2); }
a  { color: var(--text-link); text-decoration: none; transition: opacity var(--t-fast); }
a:hover { opacity: 0.8; }

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted  { color: var(--text-2); }
.text-faint  { color: var(--text-3); }
.text-cyan   { color: var(--cyan); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-sm     { font-size: 0.85rem; }
.text-xs     { font-size: 0.75rem; }
.font-display{ font-family: var(--font-display); }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.fw-800      { font-weight: 800; }

/* ── Layout ──────────────────────────────────────────────────── */
.container  { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1      { gap: 8px; }
.gap-2      { gap: 16px; }
.gap-3      { gap: 24px; }
.gap-4      { gap: 32px; }
.grid-2     { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4     { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.w-full { width: 100%; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}
.card:hover { border-color: var(--border-2); }

.card-glow:hover {
  border-color: var(--border-cyan);
  box-shadow: var(--glow-cyan);
}
.card-gold-glow:hover {
  border-color: var(--border-gold);
  box-shadow: var(--glow-gold);
}

.card-sm  { padding: 16px; border-radius: var(--r-md); }
.card-lg  { padding: 32px; border-radius: var(--r-xl); }

/* Gradient border card (signature element) */
.card-neon {
  position: relative;
  background: var(--grad-card);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card-neon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-normal);
}
.card-neon:hover::before { opacity: 1; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Primary — cyan gradient */
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.2);
}
.btn-primary:hover {
  box-shadow: var(--glow-cyan);
  filter: brightness(1.1);
  color: #fff;
}

/* Gold — win/reward actions */
.btn-gold {
  background: var(--grad-gold);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,179,0,0.2);
}
.btn-gold:hover {
  box-shadow: var(--glow-gold);
  filter: brightness(1.1);
  color: #000;
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
}

/* Danger */
.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(255,61,90,0.3);
}
.btn-danger:hover { background: var(--red); color: #fff; }

/* Success */
.btn-success {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(0,232,122,0.3);
}
.btn-success:hover { background: var(--green); color: #000; }

/* Icon */
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  border-radius: var(--r-sm);
}
.btn-icon:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-xl { padding: 16px 40px; font-size: 1.1rem; border-radius: var(--r-lg); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-control {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.form-control::placeholder { color: var(--text-3); }
.form-control::-webkit-inner-spin-button { -webkit-appearance: none; }

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BBF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-hint { font-size: 0.78rem; color: var(--text-3); }
.form-error { font-size: 0.82rem; color: var(--red); }

/* Input with icon */
.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none; font-size: 1rem;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.badge-cyan    { background: var(--cyan-soft);   color: var(--cyan);  border: 1px solid rgba(0,212,255,0.25); }
.badge-green   { background: var(--green-soft);  color: var(--green); border: 1px solid rgba(0,232,122,0.25); }
.badge-red     { background: var(--red-soft);    color: var(--red);   border: 1px solid rgba(255,61,90,0.25); }
.badge-gold    { background: var(--gold-soft);   color: var(--gold);  border: 1px solid rgba(255,179,0,0.25); }
.badge-violet  { background: var(--violet-soft); color: var(--violet);border: 1px solid rgba(124,58,255,0.25); }
.badge-muted   { background: var(--bg-elevated); color: var(--text-2);border: 1px solid var(--border-1); }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem;
}
.table th {
  background: var(--bg-surface);
  color: var(--text-3);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-1);
  text-align: left; white-space: nowrap;
}
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-1);
  color: var(--text-1);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--bg-hover); }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--r-md);
  font-size: 0.88rem; display: flex; align-items: center; gap: 10px;
  border: 1px solid transparent;
}
.alert-success { background: var(--green-soft); color: var(--green); border-color: rgba(0,232,122,0.2); }
.alert-danger  { background: var(--red-soft);   color: var(--red);   border-color: rgba(255,61,90,0.2); }
.alert-warning { background: var(--gold-soft);  color: var(--gold);  border-color: rgba(255,179,0,0.2); }
.alert-info    { background: var(--cyan-soft);  color: var(--cyan);  border-color: rgba(0,212,255,0.2); }

/* ── Nav ─────────────────────────────────────────────────────── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: rgba(9,13,24,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-1);
  display: flex; align-items: center;
}
.topnav-inner {
  max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.5rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 0.88rem; font-weight: 500; color: var(--text-2);
  padding: 8px 14px; border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-1);
  background: var(--bg-elevated);
}
.nav-link.active { color: var(--cyan); }
.nav-balance {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 8px 16px;
  font-size: 0.88rem; font-weight: 600; color: var(--text-1);
  display: flex; align-items: center; gap: 8px;
}
.nav-balance .bal-label { color: var(--text-3); font-size: 0.76rem; }

/* ── Sidebar app layout ──────────────────────────────────────── */
.app-layout {
  display: flex; min-height: 100vh; padding-top: 64px;
}
.sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-1);
  position: fixed; top: 64px; left: 0; bottom: 0;
  overflow-y: auto; padding: 20px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-section {
  font-size: 0.68rem; font-weight: 600; color: var(--text-3);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 8px 6px;
}
.sidebar-section:first-child { padding-top: 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-2); font-size: 0.88rem; font-weight: 500;
  padding: 10px 12px; border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.sidebar-link:hover { background: var(--bg-elevated); color: var(--text-1); }
.sidebar-link.active {
  background: var(--cyan-soft);
  color: var(--cyan);
  border-left: 2px solid var(--cyan);
}
.sidebar-link svg, .sidebar-link .icon { width: 18px; opacity: 0.7; }
.sidebar-link.active svg, .sidebar-link.active .icon { opacity: 1; }

.main-content {
  flex: 1; margin-left: 220px;
  padding: 32px 32px 64px;
  min-width: 0;
}

/* ── Dividers ────────────────────────────────────────────────── */
.divider {
  height: 1px; background: var(--border-1);
  margin: 24px 0;
}
.divider-text {
  display: flex; align-items: center; gap: 16px;
  color: var(--text-3); font-size: 0.82rem;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border-1);
}

/* ── Stats / KPI cards ───────────────────────────────────────── */
.stat-card {
  background: var(--grad-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 20px 24px;
}
.stat-label {
  font-size: 0.76rem; font-weight: 600;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800; color: var(--text-1);
  line-height: 1;
}
.stat-sub {
  font-size: 0.8rem; color: var(--text-3); margin-top: 6px;
}
.stat-change-up   { color: var(--green); font-size: 0.82rem; font-weight: 600; }
.stat-change-down { color: var(--red);   font-size: 0.82rem; font-weight: 600; }

/* ── Modals ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,8,15,0.8);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 32px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  animation: modal-in 250ms ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 4px;
}
.modal-sub { color: var(--text-2); font-size: 0.88rem; margin-bottom: 24px; }

/* ── Game card ───────────────────────────────────────────────── */
.game-card {
  position: relative; overflow: hidden;
  background: var(--grad-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: all var(--t-normal);
  text-decoration: none;
  display: block;
}
.game-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}
.game-card-thumb {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  position: relative; overflow: hidden;
}
.game-card-body { padding: 18px 20px; }
.game-card-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem; color: var(--text-1);
  margin-bottom: 4px;
}
.game-card-edge { font-size: 0.8rem; color: var(--text-3); }

/* Game glow backgrounds */
.game-bg-dice   { background: radial-gradient(ellipse at 50% 60%, rgba(0,212,255,0.15) 0%, transparent 70%); }
.game-bg-crash  { background: radial-gradient(ellipse at 50% 60%, rgba(124,58,255,0.15) 0%, transparent 70%); }
.game-bg-wheel  { background: radial-gradient(ellipse at 50% 60%, rgba(255,179,0,0.15) 0%, transparent 70%); }
.game-bg-slots  { background: radial-gradient(ellipse at 50% 60%, rgba(0,232,122,0.15) 0%, transparent 70%); }

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  background: var(--bg-surface);
  padding: 4px; border-radius: var(--r-lg);
  border: 1px solid var(--border-1);
}
.tab-btn {
  flex: 1; padding: 10px 16px; border: none; cursor: pointer;
  background: transparent; color: var(--text-2);
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.tab-btn:hover { color: var(--text-1); background: var(--bg-elevated); }
.tab-btn.active { background: var(--bg-elevated); color: var(--cyan); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Live dot ────────────────────────────────────────────────── */
.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--green);
}
.live-dot::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.8); }
}

/* ── Deposit Network selector ────────────────────────────────── */
.network-option {
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 14px 18px;
  cursor: pointer; transition: all var(--t-fast);
  display: flex; align-items: center; gap: 12px;
}
.network-option:hover { border-color: var(--border-2); background: var(--bg-elevated); }
.network-option.selected {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: 0 0 0 1px var(--cyan);
}
.network-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

/* ── Balance pill ────────────────────────────────────────────── */
.balance-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 6px 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 600;
}

/* ── Copy input ──────────────────────────────────────────────── */
.copy-wrap { position: relative; }
.copy-wrap .form-control { padding-right: 90px; }
.copy-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--bg-elevated); color: var(--cyan);
  border: 1px solid var(--border-cyan);
  padding: 5px 12px; border-radius: var(--r-sm);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all var(--t-fast);
}
.copy-btn:hover { background: var(--cyan); color: #000; }

/* ── QR Box ──────────────────────────────────────────────────── */
.qr-box {
  background: #fff;
  padding: 12px; border-radius: var(--r-md);
  display: inline-flex;
}

/* ── Landing hero ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 64px;
}

/* Ambient orbs */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.12), transparent 60%);
  top: -100px; left: -200px; animation: float1 8s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,255,0.1), transparent 60%);
  bottom: -100px; right: -100px; animation: float2 10s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,179,0,0.08), transparent 60%);
  top: 40%; right: 20%; animation: float3 12s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,20px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,30px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(15px,-25px)} }

/* Grid overlay */
.grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Ticker */
.live-ticker {
  display: flex; gap: 32px; overflow: hidden;
  background: var(--bg-surface); border: 1px solid var(--border-1);
  border-radius: var(--r-md); padding: 10px 20px;
}
.ticker-item { display: flex; gap: 8px; font-size: 0.82rem; white-space: nowrap; }

/* ── Admin sidebar ───────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; padding-top: 64px; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-1);
  position: fixed; top: 64px; left: 0; bottom: 0;
  overflow-y: auto; padding: 20px 12px;
}
.admin-main { flex: 1; margin-left: 240px; padding: 32px 36px 64px; }

/* Alert badge on nav */
.nav-badge {
  background: var(--red); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-in 400ms ease both; }

@keyframes spin-slow { to { transform: rotate(360deg); } }
.spin-slow { animation: spin-slow 3s linear infinite; }

/* ── Utility ─────────────────────────────────────────────────── */
.d-none   { display: none !important; }
.d-flex   { display: flex !important; }
.d-block  { display: block !important; }
.hidden   { visibility: hidden; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.cursor-pointer { cursor: pointer; }
.rounded  { border-radius: var(--r-md); }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.opacity-50  { opacity: 0.5; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar, .admin-sidebar { display: none; }
  .main-content { margin-left: 0; padding: 20px 16px 80px; }
  .admin-main { margin-left: 0; padding: 20px 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .card-lg { padding: 20px; }
  .hero h1 { font-size: 2.2rem; }
  .modal { padding: 20px; }
  h1 { font-size: 2rem; }
  .topnav .nav-links { display: none; }
}

/* ── Page transition ─────────────────────────────────────────── */
.page-enter { animation: fade-in 300ms ease; }

/* ── Toast notifications ─────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; min-width: 280px;
  animation: slide-in-right 300ms ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.success { border-color: rgba(0,232,122,0.3); }
.toast.error   { border-color: rgba(255,61,90,0.3); }
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Loading spinner ─────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border-2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin-slow 0.7s linear infinite;
}
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }

/* ── Number highlight ────────────────────────────────────────── */
.num-win  { color: var(--green); font-weight: 700; }
.num-loss { color: var(--red);   font-weight: 700; }
.num-gold { color: var(--gold);  font-weight: 700; }
