:root {
  color-scheme: dark;
  --bg: #0c0c0e;
  --surface: #16161a;
  --surface-2: #222228;
  --border: #3a3a42;
  --accent: #ff8a00;
  --accent-hot: #ff6b35;
  --accent-gold: #ffc233;
  --accent-coral: #ff7b54;
  --text: #ffffff;
  --text-dim: #d2d2d8;
  --orange-2: #ffb347;
  --orange-soft: #ffd5a3;
  --nav-bg: rgba(12, 12, 14, 0.88);
  --particle-color: rgba(255, 180, 80, 0.45);
  --hero-glow-1: rgba(255, 107, 53, 0.28);
  --hero-glow-2: rgba(255, 138, 0, 0.22);
  --hero-glow-3: rgba(255, 194, 51, 0.18);
  --discord-bg: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(255, 138, 0, 0.14), rgba(255, 194, 51, 0.12));
  --card-inset: rgba(255, 255, 255, 0.04);
  --toast-shadow: rgba(255, 138, 0, 0.35);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #fff4ea;
  --border: #ecd9c4;
  --text: #121214;
  --text-dim: #5c5c68;
  --nav-bg: rgba(255, 252, 248, 0.92);
  --particle-color: rgba(255, 138, 0, 0.32);
  --hero-glow-1: rgba(255, 107, 53, 0.16);
  --hero-glow-2: rgba(255, 138, 0, 0.14);
  --hero-glow-3: rgba(255, 194, 51, 0.12);
  --discord-bg: linear-gradient(135deg, rgba(255, 107, 53, 0.10), rgba(255, 138, 0, 0.08), rgba(255, 194, 51, 0.08));
  --card-inset: rgba(255, 138, 0, 0.04);
  --toast-shadow: rgba(255, 138, 0, 0.22);
}

.theme-toggle {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.theme-btn.active {
  background: var(--accent);
  color: #fff;
}

.theme-btn:hover:not(.active) {
  color: var(--text);
}

.loading-dots {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 1.75rem;
  vertical-align: middle;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: jump-dot 0.9s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes jump-dot {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.35; }
  35% { transform: translateY(-10px); opacity: 1; }
}

.stat-value.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
}
