/* ============================================================
   LUXEA Platform — Neon Violet Web3 Design System
   ============================================================ */

/* ── Design Tokens ── */
:root {
  /* Backgrounds */
  --bg-primary:    #07071a;
  --bg-secondary:  #0d0d28;
  --bg-card:       #0d0d28;
  --bg-card-hover: #12123a;
  --bg-sidebar:    #050514;

  /* Borders */
  --border:        rgba(139,92,246,0.18);
  --border-strong: rgba(139,92,246,0.38);

  /* Accent — Violet + Pink */
  --accent:          #8b5cf6;
  --accent-hover:    #7c3aed;
  --accent-pink:     #ec4899;
  --accent-soft:     rgba(139,92,246,0.12);
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --accent-glow:     0 0 30px rgba(139,92,246,0.45), 0 0 80px rgba(139,92,246,0.15);
  --accent-cyan:     #06b6d4; /* kept for trading pair colors */

  /* Text — violet-tinted */
  --text-primary:  #f0e8ff;
  --text-muted:    #a78bfa;
  --text-dim:      #6b5fa0;

  /* Shadows */
  --shadow-sm:  0 2px 10px rgba(0,0,0,0.6);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.7);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.85);

  /* Legacy compat */
  --sidebar-w: 260px;
  --neon-cyan: none;
  --neon-purple: none;
  --accent-violet: #8b5cf6;
  --accent-purple: #7c3aed;
  --accent-blue: #3b82f6;
  --accent-yellow: #f59e0b;
  --border-strong: rgba(139,92,246,0.38);
}

/* ── Light Mode ── */
body.light-mode {
  --bg-primary:    #f3f0ff;
  --bg-secondary:  #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #faf5ff;
  --bg-sidebar:    #fefcff;
  --border:        rgba(139,92,246,0.22);
  --border-strong: rgba(139,92,246,0.45);
  --accent-soft:   rgba(139,92,246,0.09);
  --text-primary:  #1e1b4b;
  --text-muted:    #5b21b6;
  --text-dim:      #a78bfa;
  --shadow-sm:  0 2px 10px rgba(109,40,217,0.08);
  --shadow-md:  0 8px 32px rgba(109,40,217,0.12);
  --shadow-lg:  0 20px 60px rgba(109,40,217,0.16);
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Body + Ambient Mesh ── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Ambient background glow mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% -5%,  rgba(139,92,246,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 105%, rgba(236,72,153,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 110%, rgba(139,92,246,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,5,20,0.8);
  backdrop-filter: blur(6px);
  z-index: 39;
}

.sidebar-logo {
  padding: 1.25rem 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo-icon {
  width: 36px; height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(139,92,246,0.45);
}

/* ── Nav Items ── */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.875rem;
  border-radius: 10px;
  margin: 1px 0.625rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.845rem;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
}
.nav-item svg { flex-shrink: 0; }
.nav-item:hover {
  background: var(--accent-soft);
  color: var(--text-muted);
  border-color: rgba(139,92,246,0.12);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(236,72,153,0.08));
  color: #c4b5fd;
  font-weight: 600;
  border-color: rgba(139,92,246,0.25);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -1px; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--accent-gradient);
  border-radius: 0 3px 3px 0;
}

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Top Header ── */
.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7,7,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Gradient text ── */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cards ── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.glass-card:hover {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 8px 40px rgba(139,92,246,0.12), 0 0 0 1px rgba(139,92,246,0.08);
  transform: translateY(-2px);
}
.glass-card-glow:hover {
  box-shadow: 0 8px 40px rgba(139,92,246,0.18);
}

/* ── Buttons ── */
.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(139,92,246,0.4);
}
.btn-neon:hover {
  box-shadow: 0 6px 28px rgba(139,92,246,0.6), 0 0 0 1px rgba(236,72,153,0.3);
  transform: translateY(-2px);
}
.btn-neon:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(139,92,246,0.3); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 0.6rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: #c4b5fd;
  background: var(--accent-soft);
}

.btn-purple {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(139,92,246,0.25);
  color: #c4b5fd;
  border-radius: 10px;
  padding: 0.6rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
}
.btn-purple:hover {
  background: rgba(139,92,246,0.22);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(139,92,246,0.25);
}

.btn-gold {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(217,119,6,0.35);
}
.btn-gold:hover { box-shadow: 0 6px 22px rgba(217,119,6,0.5); transform: translateY(-1px); }

.btn-green {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(5,150,105,0.35);
}
.btn-green:hover { box-shadow: 0 6px 22px rgba(5,150,105,0.5); transform: translateY(-1px); }

.btn-red {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(220,38,38,0.3);
}
.btn-red:hover { box-shadow: 0 6px 22px rgba(220,38,38,0.45); transform: translateY(-1px); }

/* ── Sidebar toggle ── */
.sidebar-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.sidebar-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ── Input Fields ── */
.lux-input {
  width: 100%;
  background: rgba(13,13,40,0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.lux-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.lux-input::placeholder { color: var(--text-dim); }
.lux-input option { background: var(--bg-secondary); }
body.light-mode .lux-input { background: #faf5ff; color: #1e1b4b; }

/* ── Tables ── */
.lux-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.lux-table thead th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: rgba(139,92,246,0.06);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.lux-table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(139,92,246,0.08);
  color: var(--text-muted);
  vertical-align: middle;
}
.lux-table tbody tr:hover td { background: rgba(139,92,246,0.07); }
.lux-table tbody tr:last-child td { border-bottom: none; }

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,20,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0,0,0,0.9), 0 0 60px rgba(139,92,246,0.18);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.show .modal-box { transform: scale(1) translateY(0); }
body.light-mode .modal-box { background: #ffffff; }

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid rgba(139,92,246,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 20px rgba(139,92,246,0.1);
  font-size: 0.85rem;
  max-width: 360px;
  animation: toastIn 0.25s ease forwards;
  color: var(--text-primary);
}
.toast.success { border-left: 3px solid #10b981; }
.toast.error   { border-left: 3px solid #ef4444; }
.toast.info    { border-left: 3px solid var(--accent); }
.toast.warning { border-left: 3px solid #f59e0b; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ── Status Pills ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.status-pending   { background: rgba(245,158,11,0.12);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.status-confirmed { background: rgba(16,185,129,0.12);  color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.status-rejected  { background: rgba(239,68,68,0.12);   color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.status-active    { background: rgba(139,92,246,0.12);  color: #c4b5fd; border: 1px solid rgba(139,92,246,0.25); }
.status-completed { background: rgba(236,72,153,0.12);  color: #f9a8d4; border: 1px solid rgba(236,72,153,0.2); }

/* ── Stat Cards ── */
.stat-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.08;
}
.stat-card.cyan::before   { background: radial-gradient(circle, #06b6d4, transparent); }
.stat-card.purple::before { background: radial-gradient(circle, #8b5cf6, transparent); }
.stat-card.gold::before   { background: radial-gradient(circle, #f59e0b, transparent); }
.stat-card.green::before  { background: radial-gradient(circle, #10b981, transparent); }

.stat-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}
.stat-icon.cyan   { background: rgba(6,182,212,0.12);    color: #67e8f9; }
.stat-icon.purple { background: rgba(139,92,246,0.14);   color: #c4b5fd; }
.stat-icon.gold   { background: rgba(245,158,11,0.12);   color: #fcd34d; }
.stat-icon.green  { background: rgba(16,185,129,0.12);   color: #6ee7b7; }

.counter { font-variant-numeric: tabular-nums; }

/* ── Progress Bar ── */
.progress-bar {
  height: 5px;
  background: rgba(139,92,246,0.12);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--accent-gradient);
  transition: width 1s ease;
  box-shadow: 0 0 8px rgba(139,92,246,0.5);
}

/* ── Countdown ── */
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(139,92,246,0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  min-width: 3rem;
}
.countdown-block span:first-child { font-size: 1.25rem; font-weight: 700; color: #c4b5fd; }
.countdown-block span:last-child  { font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; }

/* ── Crypto Icons ── */
.crypto-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.crypto-BTC  { background: rgba(247,147,26,0.15);  color: #f7931a; }
.crypto-ETH  { background: rgba(98,126,234,0.15);  color: #627eea; }
.crypto-BNB  { background: rgba(243,186,47,0.15);  color: #f3ba2f; }
.crypto-TRX  { background: rgba(229,9,20,0.12);    color: #e50914; }
.crypto-SOL  { background: rgba(153,69,255,0.15);  color: #9945ff; }
.crypto-DOGE { background: rgba(194,166,51,0.15);  color: #c2a633; }
.crypto-USDT { background: rgba(38,161,123,0.15);  color: #26a17b; }
.crypto-USDC { background: rgba(39,117,202,0.15);  color: #2775ca; }
.crypto-LUX  { background: rgba(139,92,246,0.15);  color: #c4b5fd; }

/* ── Gradient card border (premium look) ── */
.grad-border {
  position: relative;
  border-radius: 16px;
  background: var(--bg-card);
}
.grad-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.2s;
}
.grad-border:hover::after { opacity: 0.8; }

/* ── Staking Plan Cards ── */
.plan-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}
.plan-card.selected, .plan-card:hover {
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 8px 32px rgba(139,92,246,0.15);
}
.plan-card .plan-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
}

/* ── Badge levels ── */
.badge-bronze  { background: linear-gradient(135deg,#92400e,#d97706); }
.badge-silver  { background: linear-gradient(135deg,#475569,#94a3b8); }
.badge-gold    { background: linear-gradient(135deg,#92400e,#f59e0b); }
.badge-diamond { background: var(--accent-gradient); }

/* ── QR placeholder ── */
.qr-placeholder {
  width: 120px; height: 120px;
  background: repeating-conic-gradient(rgba(139,92,246,0.12) 0% 25%, var(--bg-primary) 0% 50%) 0 0 / 10px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ── Trophy Cards ── */
.trophy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.2s;
  text-align: center;
}
.trophy-card.earned { border-color: rgba(245,158,11,0.25); }
.trophy-card.earned:hover { box-shadow: 0 4px 20px rgba(245,158,11,0.15); }
.trophy-icon {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.trophy-icon.locked { background: var(--border); filter: grayscale(1); opacity: 0.3; }

/* ── Admin Tabs ── */
.admin-tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.15s;
  white-space: nowrap;
}
.admin-tab:hover { color: var(--text-muted); background: var(--accent-soft); }
.admin-tab.active { background: var(--accent-soft); color: #c4b5fd; font-weight: 600; border: 1px solid rgba(139,92,246,0.2); }

/* ── Spinner ── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(139,92,246,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Price Colors ── */
.price-up   { color: #34d399; }
.price-down { color: #f87171; }
.price-flat { color: var(--text-dim); }

/* ── Crypto Tab (deposit modal) ── */
.crypto-tab.selected,
.crypto-tab.active {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  box-shadow: 0 0 12px rgba(139,92,246,0.2) !important;
}

/* ── Conf dots ── */
.conf-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(139,92,246,0.15);
  transition: all 0.4s;
}
.conf-dot.active { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,0.5); }

/* ── Section headers ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Background grid ── */
.bg-grid {
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Glow helpers ── */
.glow-purple { box-shadow: 0 0 20px rgba(139,92,246,0.3); }
.glow-pink   { box-shadow: 0 0 20px rgba(236,72,153,0.25); }
.glow-cyan   { box-shadow: 0 0 16px rgba(6,182,212,0.2); }

/* ── Animations ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(139,92,246,0.25); }
  50%       { box-shadow: 0 0 24px rgba(139,92,246,0.5); }
}
.pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.35s ease forwards; }

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.float { animation: float 3.5s ease-in-out infinite; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(139,92,246,0.15) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

/* ── Timer ring ── */
.timer-ring { transition: stroke-dashoffset 1s linear; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 80px rgba(0,0,0,0.9); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex !important; }
  .sidebar-overlay { display: block !important; }
}
.sidebar-toggle { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .top-header { padding: 0.625rem 1rem; }
}
