/* ═══════════════════════════════════════════════════════════
   A1 Bot — Website Styles v4.0
   Redesigned: Clean dark UI · Gradient accents · Mesh BGs
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ─── Tokens ─── */
:root {
  /* Core palette */
  --bg-0: #09090b;
  --bg-1: #0f0f12;
  --bg-2: #16161a;
  --bg-3: #1e1e24;
  --bg-4: #26262e;

  /* Surface & cards */
  --surface: #13131a;
  --surface-hover: #1a1a22;
  --surface-active: #22222c;

  /* Accent — A1 Red */
  --accent: #EE1C25;
  --accent-light: #ff4d55;
  --accent-dark: #c41820;
  --accent-glow: rgba(238, 28, 37, 0.15);
  --accent-glow-strong: rgba(238, 28, 37, 0.3);

  /* Secondary accents */
  --blurple: #5865F2;
  --green: #22c55e;
  --yellow: #eab308;
  --orange: #f97316;
  --pink: #ec4899;
  --cyan: #06b6d4;

  /* Text */
  --text-0: #fafafa;
  --text-1: #e4e4e7;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --text-4: #52525b;

  /* Borders */
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --border-accent: rgba(238,28,37,0.3);

  /* Semantic aliases */
  --text-muted: #71717a;
  --surface-2: #1a1a22;

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.6);
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #EE1C25, #ff6b6b);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(238,28,37,0.12) 0%, transparent 60%);
  --gradient-card: linear-gradient(145deg, var(--surface) 0%, var(--bg-1) 100%);
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* native select baseline (hidden when custom-select replaces it) */
select {
  background-color: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-0);
  padding: 8px 12px; padding-right: 32px !important;
  font-size: 0.85rem;
  cursor: pointer; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; -moz-appearance: 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 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow);
}

/* ─── Custom Select Dropdown ─── */
.custom-select {
  position: relative; display: inline-block; min-width: 0;
}
.custom-select select { display: none; }
.cs-selected {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-0);
  padding: 8px 32px 8px 12px; font-size: 0.85rem;
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.cs-selected::after {
  content: ''; position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
  transition: transform 0.2s;
}
.custom-select.cs-open .cs-selected {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow);
}
.custom-select.cs-open .cs-selected::after {
  transform: translateY(-50%) rotate(180deg);
}
.cs-options {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 100%; width: max-content;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 1000; overflow: hidden;
  max-height: 240px; overflow-y: auto;
}
.custom-select.cs-open .cs-options { display: block; }
.cs-option {
  padding: 8px 14px; font-size: 0.85rem;
  color: var(--text-1); cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.cs-option:hover {
  background: var(--bg-3); color: var(--text-0);
}
.cs-option.cs-active {
  background: var(--accent); color: #fff; font-weight: 600;
}
.cs-options::-webkit-scrollbar { width: 6px; }
.cs-options::-webkit-scrollbar-track { background: transparent; }
.cs-options::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::selection { background: var(--accent); color: white; }

/* ─── Mesh Background ─── */
.mesh-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(238,28,37,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(88,101,242,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(34,197,94,0.03) 0%, transparent 50%),
    var(--bg-0);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem; height: 64px;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar.scrolled { background: rgba(9,9,11,0.95); box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

/* Brand */
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--text-0); letter-spacing: -0.02em;
}
.nav-brand .brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow-strong);
  display: inline-block;
  animation: dot-blink 2s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--accent-glow-strong); }
  50% { opacity: 0.3; box-shadow: 0 0 4px var(--accent-glow); }
}

/* Links */
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-2); transition: all var(--transition);
}
.nav-links a:hover { color: var(--text-0); background: var(--surface); }
.nav-links a.active { color: var(--text-0); background: var(--surface-active); }

/* Nav CTA */
.nav-cta {
  background: var(--accent) !important; color: white !important;
  font-weight: 600 !important; border-radius: var(--radius-sm) !important;
  padding: 8px 18px !important; gap: 8px !important;
  transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--accent-light) !important; transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow-strong); }

/* User dropdown */
.nav-user { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--transition);
}
.nav-user-btn:hover { border-color: var(--border-hover); }
.nav-user-btn img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
}
.nav-user-btn span {
  font-size: 0.85rem; font-weight: 500; color: var(--text-1);
  max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-user-btn i { font-size: 0.65rem; color: var(--text-3); transition: transform var(--transition); }
.nav-user-btn.open i { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-8px) scale(0.96);
  pointer-events: none; transition: all 0.15s ease;
  z-index: 200;
}
.nav-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.nav-dropdown a, .nav-dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500; color: var(--text-2);
  background: none; border: none; text-align: left;
  transition: all var(--transition);
}
.nav-dropdown a:hover, .nav-dropdown button:hover { color: var(--text-0); background: var(--surface); }
.nav-dropdown a i, .nav-dropdown button i { width: 16px; text-align: center; font-size: 0.8rem; }
.nav-dropdown .dd-divider { height: 1px; background: var(--border); margin: 4px 0; }
.nav-dropdown a.dd-active { color: var(--text-0); background: var(--surface-active); border-left: 3px solid var(--accent); }
.nav-dropdown .dd-logout { color: var(--accent); }
.nav-dropdown .dd-logout:hover { background: var(--accent-glow); }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
  cursor: pointer; z-index: 101;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text-1);
  border-radius: 2px; transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px; padding: 80px 1.5rem 2rem;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-1); border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform 0.3s ease;
    z-index: 99; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 12px 16px; font-size: 0.95rem; }
  .nav-user-btn span { max-width: 140px; }
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; border: none;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-accent); color: white;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow-strong); }
.btn-secondary {
  background: var(--surface); color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--border-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text-2);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text-0); background: var(--surface); }
.btn-discord {
  background: var(--blurple); color: white;
}
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(88,101,242,0.3); }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #ef4444; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.85rem;
}
.btn-icon:hover { color: var(--text-0); border-color: var(--border-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ═══════════════════════════════════════════════════════════
   BADGES & TAGS
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-accent { background: var(--accent-glow); color: var(--accent-light); }
.badge-green { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-blue { background: rgba(88,101,242,0.15); color: var(--blurple); }
.badge-yellow { background: rgba(234,179,8,0.15); color: var(--yellow); }
.badge-muted { background: rgba(255,255,255,0.06); color: var(--text-3); }
.badge-premium { background: linear-gradient(135deg, rgba(234,179,8,0.15), rgba(249,115,22,0.15)); color: var(--yellow); }

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-hover); }
.card-glow:hover { box-shadow: 0 0 0 1px var(--border-accent), 0 8px 32px var(--accent-glow); }

/* ═══════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.form-input, .form-select, .form-textarea {
  padding: 10px 14px; background: var(--bg-1);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-0); font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-4); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}
.form-select option {
  background: var(--bg-2) !important; color: var(--text-0) !important;
  padding: 8px 12px;
}
.form-select option:checked { background: var(--accent) !important; color: #fff !important; }
.form-toggle {
  position: relative; width: 44px; height: 24px;
  background: var(--bg-4); border-radius: var(--radius-full);
  cursor: pointer; transition: background var(--transition);
  border: none; flex-shrink: 0;
}
.form-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: white; transition: transform var(--transition);
}
.form-toggle.active { background: var(--accent); }
.form-toggle.active::after { transform: translateX(20px); }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════ */
.section-header {
  text-align: center; max-width: 640px; margin: 0 auto 3rem;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--accent-glow); color: var(--accent-light);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 1rem;
}
.section-header h2 {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  color: var(--text-0); letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1.05rem; color: var(--text-2); line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border); padding: 4rem 2rem 2rem;
  background: linear-gradient(to top, rgba(238,28,37,0.02), transparent);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.footer-brand h3 .brand-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: dot-blink 2s ease-in-out infinite;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-3); max-width: 280px; line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; margin-top: 0.5rem; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-socials a:hover { color: var(--text-0); border-color: var(--border-hover); transform: translateY(-2px); }
.footer-col h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-2); margin-bottom: 1rem;
}
.footer-col a {
  display: block; padding: 6px 0; font-size: 0.85rem;
  color: var(--text-3); transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-0); }
.footer-bottom {
  max-width: 1280px; margin: 3rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-4);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow-strong); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 50%, var(--bg-3) 75%);
  background-size: 200% 100%; animation: shimmer 1.8s infinite;
  border-radius: var(--radius-sm);
}

/* Loading spinner */
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */
#a1-toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column-reverse; gap: 8px;
  z-index: 10001; pointer-events: none;
  transition: bottom .3s ease;
}
.a1-toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius-md);
  background: var(--bg-2); border: 1px solid var(--border);
  backdrop-filter: blur(20px); color: var(--text-1);
  font-size: 0.85rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto; min-width: 240px; max-width: 400px;
  transform: translateX(120%); opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.a1-toast.show { transform: translateX(0); opacity: 1; }
.a1-toast i { font-size: 1rem; flex-shrink: 0; }
.a1-toast-success { border-color: rgba(34,197,94,0.3); }
.a1-toast-success i { color: var(--green); }
.a1-toast-error { border-color: rgba(220,38,38,0.3); }
.a1-toast-error i { color: #dc2626; }
.a1-toast-info { border-color: rgba(88,101,242,0.3); }
.a1-toast-info i { color: var(--blurple); }
.a1-toast-warning { border-color: rgba(234,179,8,0.3); }
.a1-toast-warning i { color: var(--yellow); }

/* ═══════════════════════════════════════════════════════════
   CUSTOM TOOLTIPS
   ═══════════════════════════════════════════════════════════ */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) scale(.92);
  background: rgba(10,10,18,.92); color: #fff;
  font-size: .72rem; font-weight: 500; line-height: 1.3;
  padding: 5px 10px; border-radius: 6px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .15s, transform .15s;
  z-index: 20000; border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }
/* Bottom variant */
[data-tip-pos="bottom"]::after { bottom: auto; top: calc(100% + 8px); }
/* Left variant */
[data-tip-pos="left"]::after { bottom: auto; top: 50%; left: auto; right: calc(100% + 8px); transform: translateY(-50%) scale(.92); }
[data-tip-pos="left"]:hover::after { transform: translateY(-50%) scale(1); }

/* ═══════════════════════════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════════════════════════ */
.scroll-top-btn {
  position: fixed; bottom: 5.5rem; right: 1.5rem;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-3); font-size: 0.85rem;
  cursor: pointer; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px);
  transition: all 0.3s ease; pointer-events: none;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   PAGE CONTAINER
   ═══════════════════════════════════════════════════════════ */
.page { padding-top: 64px; min-height: 100vh; }

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 2rem 4rem; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(238,28,37,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(88,101,242,0.06) 0%, transparent 50%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: 800px; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; color: var(--text-2);
  margin-bottom: 2rem; animation: slideUp 0.6s ease;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: pulse-glow 2s infinite;
  box-shadow: 0 0 8px rgba(34,197,94,0.4);
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.05;
  color: var(--text-0); margin-bottom: 1.5rem;
  animation: slideUp 0.6s ease 0.1s both;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-2); max-width: 560px;
  margin: 0 auto 2.5rem; line-height: 1.7;
  animation: slideUp 0.6s ease 0.2s both;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: slideUp 0.6s ease 0.3s both;
}
.hero-stats {
  display: flex; gap: 3rem; justify-content: center; margin-top: 4rem;
  animation: slideUp 0.6s ease 0.4s both;
}
.hero-stat {
  text-align: center;
}
.hero-stat .value {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--text-0); display: block;
}
.hero-stat .label {
  font-size: 0.8rem; color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.04em; font-weight: 600;
}
@media (max-width: 600px) {
  .hero-stats { gap: 1.5rem; }
  .hero-stat .value { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — FEATURES
   ═══════════════════════════════════════════════════════════ */
.features { padding: 6rem 2rem; }
.features-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feature-card {
  padding: 2rem; border-radius: var(--radius-lg);
  background: var(--gradient-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1.25rem;
}
.feature-icon.red { background: var(--accent-glow); color: var(--accent-light); }
.feature-icon.blue { background: rgba(88,101,242,0.15); color: var(--blurple); }
.feature-icon.green { background: rgba(34,197,94,0.15); color: var(--green); }
.feature-icon.yellow { background: rgba(234,179,8,0.15); color: var(--yellow); }
.feature-icon.pink { background: rgba(236,72,153,0.15); color: var(--pink); }
.feature-icon.cyan { background: rgba(6,182,212,0.15); color: var(--cyan); }
.feature-card h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — AI SHOWCASE
   ═══════════════════════════════════════════════════════════ */
.ai-showcase { padding: 6rem 2rem; }
.ai-showcase-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.ai-text { }
.ai-text h2 {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
  color: var(--text-0); letter-spacing: -0.02em; margin-bottom: 1rem;
}
.ai-text p { font-size: 1rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1.5rem; }
.ai-perks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 2rem; }
.ai-perk {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-1);
}
.ai-perk i { color: var(--green); width: 16px; text-align: center; }
.ai-demo {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; overflow: hidden;
}
.ai-demo-header {
  display: flex; align-items: center; gap: 8px; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border); margin-bottom: 1rem;
}
.ai-demo-header .dot { width: 8px; height: 8px; border-radius: 50%; }
.ai-demo-header .dot:nth-child(1) { background: #ff5f57; }
.ai-demo-header .dot:nth-child(2) { background: #ffbd2e; }
.ai-demo-header .dot:nth-child(3) { background: #28ca42; }
.ai-demo-header span { margin-left: 8px; font-size: 0.8rem; color: var(--text-3); font-weight: 500; }
.ai-demo-msgs { display: flex; flex-direction: column; gap: 12px; }
.ai-bubble {
  max-width: 85%; padding: 10px 14px;
  border-radius: var(--radius-md); font-size: 0.85rem; line-height: 1.5;
}
.ai-bubble.user {
  align-self: flex-end; background: var(--accent);
  color: white; border-bottom-right-radius: 4px;
}
.ai-bubble.bot {
  align-self: flex-start; background: var(--surface);
  color: var(--text-1); border-bottom-left-radius: 4px;
}
@media (max-width: 768px) {
  .ai-showcase-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — MUSIC SHOWCASE
   ═══════════════════════════════════════════════════════════ */
.music-showcase { padding: 6rem 2rem; background: linear-gradient(to bottom, transparent, rgba(238,28,37,0.02), transparent); }
.music-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.music-player-demo {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
}
.music-player-demo .album-art {
  width: 180px; height: 180px; border-radius: var(--radius-md);
  background: var(--gradient-accent); margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: white;
}
.music-player-demo .track-title { font-weight: 700; font-size: 1.1rem; color: var(--text-0); }
.music-player-demo .track-artist { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1rem; }
.music-player-demo .progress-bar {
  height: 4px; background: var(--bg-4); border-radius: var(--radius-full);
  margin-bottom: 0.5rem; overflow: hidden;
}
.music-player-demo .progress-fill {
  height: 100%; width: 35%; background: var(--accent); border-radius: var(--radius-full);
}
.music-player-demo .controls {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 1rem;
}
.music-player-demo .controls button {
  background: none; border: none; color: var(--text-2);
  font-size: 1.1rem; cursor: pointer; transition: color var(--transition);
}
.music-player-demo .controls button:hover { color: var(--text-0); }
.music-player-demo .controls .play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: all var(--transition);
}
.music-player-demo .controls .play-btn:hover { transform: scale(1.08); box-shadow: 0 4px 20px var(--accent-glow-strong); }
@media (max-width: 768px) { .music-inner { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — CTA
   ═══════════════════════════════════════════════════════════ */
.cta-section {
  padding: 8rem 2rem; text-align: center;
  background: radial-gradient(ellipse at 50% 50%, rgba(238,28,37,0.08) 0%, transparent 70%);
}
.cta-section h2 {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 900;
  color: var(--text-0); letter-spacing: -0.03em; margin-bottom: 1rem;
}
.cta-section p { font-size: 1.1rem; color: var(--text-2); margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   COMMANDS PAGE
   ═══════════════════════════════════════════════════════════ */
.commands-page { padding: 5rem 2rem 4rem; max-width: 1200px; margin: 0 auto; }
.commands-page .page-title {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--text-0); margin-bottom: 0.5rem;
}
.commands-page .page-desc { color: var(--text-2); margin-bottom: 2rem; }

/* Search & filter bar */
.cmd-toolbar {
  display: flex; gap: 12px; margin-bottom: 2rem; flex-wrap: wrap;
}
.cmd-search-wrap {
  flex: 1; min-width: 240px; position: relative;
}
.cmd-search-wrap i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-4); font-size: 0.85rem;
}
.cmd-search {
  width: 100%; padding: 10px 14px 10px 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-0);
  font-size: 0.9rem; outline: none;
  transition: border-color var(--transition);
}
.cmd-search:focus { border-color: var(--accent); }
.cmd-filter-tabs { display: flex; gap: 4px; }
.cmd-filter-tab {
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.cmd-filter-tab:hover { color: var(--text-0); border-color: var(--border-hover); }
.cmd-filter-tab.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Category sidebar + grid layout */
.cmd-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.cmd-sidebar { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 80px; align-self: flex-start; }
.cmd-cat-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: transparent; border: none; color: var(--text-2);
  font-size: 0.85rem; font-weight: 500; text-align: left;
  cursor: pointer; transition: all var(--transition);
}
.cmd-cat-btn:hover { color: var(--text-0); background: var(--surface); }
.cmd-cat-btn.active { color: var(--text-0); background: var(--surface-active); border-left: 3px solid var(--accent); }
.cmd-cat-btn .cat-emoji { font-size: 1rem; width: 20px; text-align: center; }
.cmd-cat-btn .cat-count {
  margin-left: auto; font-size: 0.7rem; font-weight: 700;
  background: rgba(255,255,255,0.06); padding: 2px 8px;
  border-radius: var(--radius-full); color: var(--text-3);
}
.cmd-list { display: flex; flex-direction: column; gap: 6px; }
.cmd-item {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 1rem;
  align-items: center; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.cmd-item:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.cmd-name {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  color: var(--accent-light);
}
.cmd-desc { font-size: 0.85rem; color: var(--text-2); }
.cmd-badges { display: flex; gap: 4px; }
.cmd-count-display {
  font-size: 0.85rem; color: var(--text-3); margin-bottom: 1rem;
}

/* Pagination */
.cmd-pagination {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 2rem; padding: 1rem 0; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 0.75rem;
}
.cmd-page-info {
  font-size: 0.8rem; color: var(--text-3);
}
.cmd-page-btns {
  display: flex; align-items: center; gap: 4px;
}
.cmd-page-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.cmd-page-btn:hover:not(:disabled):not(.active) {
  background: var(--surface-hover); border-color: var(--border-hover); color: var(--text-0);
}
.cmd-page-btn.active {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700;
}
.cmd-page-btn:disabled {
  opacity: 0.35; cursor: not-allowed;
}
.cmd-page-ellipsis {
  width: 28px; text-align: center; color: var(--text-4); font-size: 0.85rem;
}

@media (max-width: 768px) {
  .cmd-layout { grid-template-columns: 1fr; }
  .cmd-sidebar { flex-direction: row; overflow-x: auto; position: static; gap: 6px; padding-bottom: 8px; }
  .cmd-item { grid-template-columns: 1fr; gap: 4px; }
  .cmd-badges { margin-top: 4px; }
  .cmd-pagination { justify-content: center; flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */
.dash-page { padding: 5rem 2rem 4rem; max-width: 1200px; margin: 0 auto; }
.dash-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.dash-avatar { width: 48px; height: 48px; border-radius: 50%; }
.dash-greeting h1 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-0);
}
.dash-greeting p { font-size: 0.9rem; color: var(--text-2); }

/* Dashboard status ribbon */
.dash-status-ribbon {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin-bottom: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.85rem;
}
.dash-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--text-4);
}
.dash-status-dot.online { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.dash-status-dot.offline { background: #dc2626; }
.dash-status-ribbon span { color: var(--text-2); }
.dash-status-ping {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-3);
}

/* Server grid */
.dash-section-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.dash-tabs { display: flex; gap: 4px; margin-bottom: 1.5rem; }
.dash-tab {
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid transparent;
  color: var(--text-3); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.dash-tab:hover { color: var(--text-1); }
.dash-tab.active { background: var(--surface); color: var(--text-0); border-color: var(--border); }

.server-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.server-card {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all var(--transition); cursor: pointer;
}
.server-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.server-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
}
.server-icon-placeholder {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--bg-4); display: flex; align-items: center;
  justify-content: center; color: var(--text-3); font-weight: 700;
  font-size: 1.1rem; flex-shrink: 0;
}
.server-info { flex: 1; min-width: 0; }
.server-name {
  font-weight: 600; font-size: 0.9rem; color: var(--text-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.server-members { font-size: 0.75rem; color: var(--text-3); }
.server-actions { flex-shrink: 0; }

/* Music sessions */
.music-sessions {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem;
  margin-top: 1.5rem;
}
.music-session-card {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); transition: all var(--transition);
}
.music-session-card:hover { border-color: var(--accent); }
/* Compact variant for dashboard web-player / popular list cards */
.music-session-card.compact { padding: .55rem .75rem; border-radius: 10px; text-decoration: none; }
.music-session-card.compact img.music-session-thumb { width: 44px; height: 44px; border-radius: 8px; }
.dash-empty-music { padding: .75rem; }
.dash-empty-music i { font-size: 1.2rem; color: var(--text-4); }
.dash-empty-music p { color: var(--text-3); font-size: .8rem; }
.dash-stat-card { flex: 1; min-width: 100px; padding: .6rem .85rem; text-align: center; }
.dash-stat-val { font-size: 1.1rem; font-weight: 700; }
.dash-stat-lbl { font-size: .7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.music-session-thumb {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
}
.music-session-info { flex: 1; min-width: 0; }
.music-session-title { font-weight: 600; font-size: 0.85rem; color: var(--text-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-session-meta { font-size: 0.75rem; color: var(--text-3); }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: pulse-glow 2s infinite;
}

/* Quick Links (dashboard bottom) */
.dash-quick-links {
  display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap;
}
.dash-quick-link {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.25rem 1.5rem; min-width: 120px;
  text-decoration: none; color: var(--text-2); transition: all var(--transition);
}
.dash-quick-link:hover { color: var(--text-0); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dash-quick-link i { font-size: 1.3rem; }
.dash-quick-link span { font-size: 0.85rem; font-weight: 500; }

/* ── Dashboard mobile responsive ── */
@media (max-width: 768px) {
  .dash-page { padding: 5rem 1rem 3rem; }
  .dash-header { flex-direction: column; text-align: center; gap: 0.75rem; }
  .dash-avatar { width: 56px; height: 56px; }
  .dash-greeting h1 { font-size: 1.25rem; }
  .dash-status-ribbon { flex-wrap: wrap; font-size: 0.8rem; }
  .dash-status-ping { margin-left: 0; width: 100%; text-align: right; margin-top: 4px; }
  .dash-quick-links { gap: 0.5rem; }
  .dash-quick-link { min-width: 100px; padding: 1rem; }
}
@media (max-width: 480px) {
  .dash-page { padding: 4.5rem 0.75rem 2rem; }
  .dash-greeting h1 { font-size: 1.1rem; }
  .dash-greeting p { font-size: 0.8rem; }
  .server-grid { grid-template-columns: 1fr; }
  .music-sessions { grid-template-columns: 1fr; }
  .dash-quick-links { flex-direction: column; align-items: stretch; }
  .dash-quick-link { flex-direction: row; justify-content: center; min-width: unset; padding: 0.85rem 1rem; }
  .dash-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-section-title { font-size: 1rem; }
}

/* Dashboard login state */
.dash-login-state {
  max-width: 480px; margin: 4rem auto;
}
.dash-login-state > i { font-size: 3rem; color: var(--blurple); margin-bottom: 1rem; display: block; }
.dash-login-state h2 {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--text-0); margin-bottom: 0.5rem;
}
.dash-login-state p { color: var(--text-2); margin-bottom: 1.5rem; line-height: 1.6; }
.dash-login-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  margin-top: 2rem; width: 100%; max-width: 340px;
}
.dash-login-feature {
  padding: 0.75rem; text-align: center; font-size: 0.8rem; color: var(--text-2);
}
.dash-login-feature i { margin-right: 6px; }

/* Dashboard quick stats */
.dash-quick-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}
.dash-stat-card {
  padding: 1rem 1.25rem; display: flex; align-items: center; gap: 12px;
}
.dash-stat-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-stat-icon.accent { background: rgba(238, 28, 37, 0.1); color: var(--accent); }
.dash-stat-icon.green { background: rgba(34, 197, 94, 0.1); color: var(--green); }
.dash-stat-icon.blurple { background: rgba(88, 101, 242, 0.1); color: var(--blurple); }
.dash-stat-icon.yellow { background: rgba(234, 179, 8, 0.1); color: var(--yellow); }
.dash-stat-value {
  font-size: 1.25rem; font-weight: 700; color: var(--text-0);
}
.dash-stat-label { font-size: 0.75rem; color: var(--text-3); }

/* Dashboard section */
.dash-section { margin-bottom: 2.5rem; }
.dash-section-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem;
}
.dash-search-wrap { position: relative; }
.dash-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-4); font-size: 0.8rem; pointer-events: none;
}
.dash-search-input {
  padding-left: 36px; width: 240px; height: 38px; font-size: 0.85rem;
}
.dash-section-desc { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1rem; }

@media (max-width: 480px) {
  .dash-login-features { grid-template-columns: 1fr; }
  .dash-search-input { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   SERVER DASHBOARD
   ═══════════════════════════════════════════════════════════ */

/* SD loading / error full-page states */
.sd-fullpage {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
}
.sd-error-card { max-width: 440px; }
.sd-error-card > i { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; display: block; }
.sd-error-card h2 {
  font-family: var(--font-display); font-size: 1.3rem;
  color: var(--text-0); margin-bottom: 0.5rem;
}
.sd-error-card p { color: var(--text-2); margin-bottom: 1.5rem; }
.sd-member-count { font-size: 0.75rem; color: var(--text-3); }

.sd-layout {
  display: grid; grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
  margin-top: 64px;
}
.sd-layout ~ .footer { margin-left: 240px; }
.sd-sidebar {
  position: fixed; top: 64px; bottom: 0; width: 240px;
  background: var(--bg-1); border-right: 1px solid var(--border);
  padding: 1.5rem 0; overflow-y: auto; z-index: 50;
}
.sd-guild-info {
  display: flex; align-items: center; gap: 10px;
  padding: 0 1.25rem 1.25rem; margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.sd-guild-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  object-fit: cover;
}
.sd-guild-name {
  font-weight: 700; font-size: 0.9rem; color: var(--text-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sd-nav-group {
  padding: 0.5rem 0.75rem;
}
.sd-nav-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-4); padding: 0 0.5rem;
  margin-bottom: 4px;
}
.sd-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition); border: none;
  background: none; width: 100%; text-align: left;
}
.sd-nav-item:hover { color: var(--text-0); background: var(--surface); }
.sd-nav-item.active { color: var(--text-0); background: var(--surface-active); }
.sd-nav-item.active::before {
  content: ''; width: 3px; height: 16px; border-radius: 2px;
  background: var(--accent); margin-right: -4px;
}
.sd-nav-item i { width: 16px; text-align: center; font-size: 0.8rem; }
.sd-main {
  padding: 2rem 2.5rem 4rem;
  max-width: 1100px; grid-column: 2;
}
.sd-module { display: none; animation: slideUp 0.3s ease; }
.sd-module.active { display: block; }
.sd-module-header { margin-bottom: 2rem; }
.sd-module-header h2 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--text-0); display: flex; align-items: center; gap: 10px;
}
.sd-module-header h2 i { color: var(--accent); }
.sd-module-header p { color: var(--text-2); font-size: 0.9rem; margin-top: 4px; }

/* Settings rows */
.settings-section { margin-bottom: 2rem; }
.settings-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-3); margin-bottom: 1rem;
}
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 8px; transition: all var(--transition);
}
.setting-row:hover { border-color: var(--border-hover); }
.setting-label { }
.setting-label h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-0); }
.setting-label p { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }

/* SD Mobile */
.sd-mobile-toggle {
  display: none; position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: white; border: none;
  font-size: 1.1rem; cursor: pointer; z-index: 60;
  box-shadow: 0 4px 20px var(--accent-glow-strong);
}
@media (max-width: 768px) {
  .sd-layout { grid-template-columns: 1fr; }
  .sd-layout ~ .footer { margin-left: 0; }
  .sd-sidebar {
    transform: translateX(-100%); transition: transform 0.3s ease;
    z-index: 70;
  }
  .sd-sidebar.open { transform: translateX(0); }
  .sd-mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .sd-main { grid-column: 1; padding: 2rem 1.5rem; }
}

/* SD Cards & Badges */
.sd-badges { display: flex; gap: 8px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.sd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
  background: rgba(234,179,8,0.12); color: var(--yellow);
}
.sd-badge i { font-size: 0.7rem; }
.sd-badge-lockdown { background: rgba(238,28,37,0.12); color: var(--accent); }

.sd-card {
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 1rem; transition: border-color var(--transition);
}
.sd-card:hover { border-color: var(--border-hover); }
.sd-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 1rem;
}
.sd-card-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.sd-card-icon.red { background: rgba(238,28,37,0.12); color: var(--accent); }
.sd-card-icon.blue { background: rgba(88,101,242,0.12); color: var(--blurple); }
.sd-card-icon.green { background: rgba(34,197,94,0.12); color: var(--green); }
.sd-card-icon.gold { background: rgba(234,179,8,0.12); color: var(--yellow); }
.sd-card-icon.purple { background: rgba(168,85,247,0.12); color: #a855f7; }
.sd-card-icon.pink { background: rgba(236,72,153,0.12); color: #ec4899; }
.sd-card-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-0); }
.sd-card-header p { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }
.sd-cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }

.sd-input-row { display: flex; gap: 8px; align-items: center; }
.sd-input, .sd-select {
  flex: 1; padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--bg-1); border: 1px solid var(--border);
  color: var(--text-0); font-size: 0.85rem; outline: none;
  transition: border-color var(--transition);
}
.sd-input:focus, .sd-select:focus { border-color: var(--accent); }

.sd-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.sd-info-item {
  padding: 10px 12px; background: var(--bg-1);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.sd-info-label { display: block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-4); margin-bottom: 2px; }
.sd-info-value { font-size: 0.85rem; color: var(--text-1); font-weight: 500; }
.sd-hint { font-size: 0.8rem; color: var(--text-4); margin-top: 1rem; display: flex; align-items: flex-start; gap: 6px; }
.sd-hint code { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-light); background: var(--surface); padding: 1px 5px; border-radius: 3px; }
.sd-empty { display: flex; align-items: center; gap: 8px; padding: 1rem; color: var(--text-3); font-size: 0.85rem; }
.sd-sub-count { font-size: 0.7rem; font-weight: 700; background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: var(--radius-full); color: var(--text-3); margin-left: 6px; }

/* SD Overview stats */
.sd-overview-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem;
  margin-bottom: 2rem;
}
.sd-ov-stat {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.sd-ov-icon { font-size: 1.1rem; }
.sd-ov-val { font-size: 1.25rem; font-weight: 700; color: var(--text-0); }
.sd-ov-lbl { font-size: 0.75rem; color: var(--text-3); }
.sd-ov-modules { }
.sd-ov-modules h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-0); margin-bottom: 0.75rem; }
.sd-ov-module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.sd-ov-module {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.8rem; color: var(--text-3);
}
.sd-ov-module i { width: 14px; text-align: center; font-size: 0.75rem; }
.sd-ov-module span:last-child { margin-left: auto; font-weight: 700; font-size: 0.7rem; }
.sd-ov-module.enabled { color: var(--text-1); border-color: rgba(34,197,94,0.3); }
.sd-ov-module.enabled .sd-ov-status { color: var(--green); }

/* SD Tags & Mod */
.sd-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.75rem; color: var(--text-2);
  border: 1px solid var(--border); background: var(--bg-1);
}
.sd-mod-list { display: flex; flex-direction: column; gap: 4px; }

/* SD Toast (inline) */
.sd-toast {
  position: fixed; bottom: 2rem; right: 2rem;
  padding: 10px 20px; background: var(--green);
  color: white; font-size: 0.85rem; font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s ease; z-index: 100;
}
.sd-toast.show { transform: translateY(0); opacity: 1; }
.sd-toast.error { background: var(--accent); }

/* SD Sidebar footer */
.sd-sidebar-footer {
  margin-top: auto; padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.sd-back-btn {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-3); font-size: 0.85rem; text-decoration: none;
  transition: color var(--transition);
}
.sd-back-btn:hover { color: var(--text-0); }

/* ═══════════════════════════════════════════════════════════
   MUSIC PLAYER (Server Dashboard)
   ═══════════════════════════════════════════════════════════ */
.mp-now-playing {
  display: flex; gap: 16px; padding: 1.25rem;
  background: var(--bg-1); border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.mp-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.mp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mp-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-author { font-size: 0.8rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-progress { margin-top: 10px; }
.mp-bar { width: 100%; height: 4px; background: var(--bg-4); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 4px; }
.mp-bar-fill { height: 100%; background: var(--accent); border-radius: var(--radius-full); transition: width 0.5s linear; }
.mp-times { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mp-controls { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 1rem 0 0.75rem; }
.mp-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.85rem; cursor: pointer;
  transition: all var(--transition);
}
.mp-btn:hover { color: var(--text-0); border-color: var(--border-hover); }
.mp-btn-main { width: 44px; height: 44px; font-size: 1rem; background: var(--accent); border-color: var(--accent); color: white; }
.mp-btn-main:hover { transform: scale(1.08); box-shadow: 0 4px 16px var(--accent-glow-strong); }
.mp-btn-active { color: var(--accent); border-color: var(--accent); }
.mp-volume { display: flex; align-items: center; gap: 8px; padding: 0 0.5rem; margin-bottom: 1rem; }
.mp-volume i { color: var(--text-3); font-size: 0.8rem; }
.mp-volume input[type="range"] {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
  background: var(--bg-4); border-radius: var(--radius-full); outline: none; cursor: pointer;
}
.mp-volume input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.mp-volume input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: none; }
.mp-vol-label { font-size: 0.75rem; color: var(--text-3); min-width: 28px; text-align: right; }
.mp-queue-list { display: flex; flex-direction: column; gap: 4px; }
.mp-queue-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg-1); transition: background var(--transition); }
.mp-queue-item:hover { background: var(--surface); }
.mp-qi-num { font-size: 0.7rem; color: var(--text-3); min-width: 18px; text-align: center; font-weight: 600; }
.mp-qi-thumb { width: 36px; height: 28px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.mp-qi-info { flex: 1; min-width: 0; }
.mp-qi-title { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-qi-meta { font-size: 0.7rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .mp-now-playing { flex-direction: column; align-items: center; text-align: center; } .mp-thumb { width: 120px; height: 120px; } }

/* ═══════════════════════════════════════════════════════════
   PREMIUM PAGE
   ═══════════════════════════════════════════════════════════ */
.premium-page { padding: 5rem 2rem 4rem; }
.premium-hero {
  text-align: center; padding: 4rem 0 3rem;
  max-width: 640px; margin: 0 auto;
}
.premium-hero h1 {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 900;
  color: var(--text-0); margin-bottom: 1rem;
}
.premium-hero p { font-size: 1.05rem; color: var(--text-2); line-height: 1.7; }

/* Subscription status banner */
.sub-status-banner {
  max-width: 560px; margin: 0 auto 2rem; padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md); background: var(--surface);
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.sub-status-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.sub-status-banner.tier-starter::before { background: #5865F2; }
.sub-status-banner.tier-elite::before { background: #3498DB; }
.sub-status-banner.tier-legendary::before { background: linear-gradient(90deg, #FFD700, #F5A623); }
.sub-status-banner.tier-mythic::before { background: linear-gradient(90deg, #9B59B6, #8E44AD); }
.sub-status-banner.tier-celestial::before { background: linear-gradient(90deg, #FF4500, #FFD700, #FF4500); }
.sub-status-top {
  display: flex; align-items: center; gap: 14px;
}
.sub-status-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.sub-status-banner.tier-starter .sub-status-icon { background: rgba(88,101,242,0.12); color: #5865F2; }
.sub-status-banner.tier-elite .sub-status-icon { background: rgba(52,152,219,0.12); color: #3498DB; }
.sub-status-banner.tier-legendary .sub-status-icon { background: rgba(255,215,0,0.12); color: #FFD700; }
.sub-status-banner.tier-mythic .sub-status-icon { background: rgba(155,89,182,0.12); color: #9B59B6; }
.sub-status-banner.tier-celestial .sub-status-icon { background: rgba(255,69,0,0.12); color: #FF4500; }
.sub-status-info { flex: 1; min-width: 0; }
.sub-status-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-0);
}
.sub-badge {
  font-size: 0.65rem; padding: 3px 8px; border-radius: var(--radius-full);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(34,197,94,0.15); color: var(--green);
}
.sub-status-details {
  font-size: 0.8rem; color: var(--text-3); margin-top: 2px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.sub-status-details span { display: flex; align-items: center; gap: 4px; }
.sub-status-details i { font-size: 0.7rem; }
.btn-manage {
  margin-top: 1rem; padding: 0.5rem 1.25rem;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-1); border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.8rem; font-weight: 600; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-manage:hover { background: var(--surface-hover); border-color: var(--border-hover); color: var(--text-0); }
.btn-manage i { font-size: 0.75rem; }

/* Premium comparison table */
.premium-compare {
  max-width: 900px; margin: 3rem auto 0; text-align: center;
}
.premium-compare h2 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--text-0); margin-bottom: 0.5rem;
}
.premium-compare > p { color: var(--text-3); margin-bottom: 2rem; font-size: 0.9rem; }
.premium-compare-table { overflow-x: auto; }
.premium-compare-table table {
  width: 100%; border-collapse: collapse; text-align: left; font-size: 0.85rem;
}
.premium-compare-table thead tr { border-bottom: 2px solid var(--border); }
.premium-compare-table th {
  padding: 12px 16px; font-weight: 700;
}
.premium-compare-table th:first-child { color: var(--text-0); }
.premium-compare-table th:not(:first-child) { text-align: center; font-weight: 600; }
.premium-compare-table th.tier-free { color: var(--text-3); }
.premium-compare-table th.tier-starter { color: #5865F2; }
.premium-compare-table th.tier-elite { color: #3498DB; }
.premium-compare-table th.tier-legendary { color: #FFD700; }
.premium-compare-table th.tier-mythic { color: #9B59B6; }
.premium-compare-table th.tier-celestial { color: #FF4500; }
.premium-compare-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text-1); }
.premium-compare-table td:not(:first-child) { text-align: center; }
.premium-compare-table tr.stripe { background: var(--surface); }
.premium-compare-table .compare-feature { font-weight: 500; }
.premium-compare-table .compare-free { color: var(--text-3); }
.premium-compare-table .compare-celestial { color: var(--text-0); font-weight: 600; }

/* Premium FAQ section */
.premium-faq { max-width: 700px; margin: 4rem auto 0; }
.premium-faq h2 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--text-0); margin-bottom: 1.5rem; text-align: center;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 1000px; margin: 0 auto;
}
.pricing-grid.five-tier {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1400px;
}
.pricing-card {
  padding: 2rem; border-radius: var(--radius-lg);
  background: var(--gradient-card); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: all var(--transition);
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 32px var(--accent-glow);
}
.pricing-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; background: var(--accent); color: white;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}
.pricing-tier { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.pricing-tier.starter { color: #5865F2; }
.pricing-tier.elite { color: #3498DB; }
.pricing-tier.legendary { color: #FFD700; }
.pricing-tier.mythic { color: #9B59B6; }
.pricing-tier.celestial { color: #FF4500; }
.pricing-price {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 900;
  color: var(--text-0); margin-bottom: 0.25rem;
}
.pricing-price span { font-size: 0.9rem; font-weight: 500; color: var(--text-3); }
.pricing-desc { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.pricing-features { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 2rem; }
.pricing-feature {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.85rem; color: var(--text-1);
}
.pricing-feature i { color: var(--green); margin-top: 3px; font-size: 0.75rem; flex-shrink: 0; }
.pricing-feature.disabled { color: var(--text-4); }
.pricing-feature.disabled i { color: var(--text-4); }
.pricing-card .btn { width: 100%; justify-content: center; }
.pricing-compare-link {
  text-align: center; margin-top: 2rem;
  font-size: 0.85rem; color: var(--text-3);
}
.pricing-compare-link a { color: var(--accent); text-decoration: underline; }
@media (max-width: 1200px) { .pricing-grid.five-tier { grid-template-columns: repeat(3, 1fr); max-width: 1000px; } }
@media (max-width: 768px) { .pricing-grid, .pricing-grid.five-tier { grid-template-columns: 1fr; max-width: 400px; } }

/* ═══════════════════════════════════════════════════════════
   SUPPORT / TICKETS
   ═══════════════════════════════════════════════════════════ */
.support-page { padding: 5rem 2rem 4rem; max-width: 900px; margin: 0 auto; }
.support-page .page-title {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--text-0); margin-bottom: 0.5rem;
}
.support-page .page-desc { color: var(--text-2); margin-bottom: 2rem; }

/* Support extras */
.support-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  max-width: 500px; margin: 0 auto 2.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.support-search i { color: var(--text-4); }
.support-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-0); font-size: 0.9rem;
}
.support-search:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow);
}
.support-quick-links {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 3rem;
}
.support-quick-card {
  padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.support-quick-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.support-quick-card i.sq-icon { font-size: 1.5rem; margin-bottom: 0.75rem; display: block; }
.support-quick-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-0); margin-bottom: 4px; }
.support-quick-card p { font-size: 0.8rem; color: var(--text-3); }
.support-contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-bottom: 3rem;
}
.support-contact-card {
  padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  text-align: center;
}
.support-contact-card .sc-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.support-contact-card .sc-icon.discord { color: var(--blurple); }
.support-contact-card .sc-icon.docs { color: var(--green); }
.support-contact-card .sc-icon.ticket { color: var(--accent); }
.support-contact-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-0); margin-bottom: 0.5rem; }
.support-contact-card p { font-size: 0.8rem; color: var(--text-3); margin-bottom: 1rem; line-height: 1.6; }
@media (max-width: 768px) {
  .support-quick-links { grid-template-columns: repeat(2, 1fr); }
  .support-contact-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { margin-bottom: 3rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 8px; overflow: hidden; transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--surface); border: none;
  width: 100%; cursor: pointer; color: var(--text-0);
  font-size: 0.9rem; font-weight: 600; text-align: left;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--surface-hover); }
.faq-q i { color: var(--text-3); transition: transform var(--transition); font-size: 0.75rem; }
.faq-item.open .faq-q i { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  padding: 0 16px; max-height: 0; overflow: hidden;
  transition: all 0.3s ease; font-size: 0.85rem; color: var(--text-2); line-height: 1.7;
}
.faq-item.open .faq-a { padding: 12px 16px; max-height: 300px; }

/* Ticket system */
.ticket-section { margin-top: 3rem; }
.ticket-section h2 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 8px;
}
.ticket-section h2 i { color: var(--accent); }
.ticket-login-prompt {
  text-align: center; padding: 3rem 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.ticket-login-prompt i { font-size: 2rem; color: var(--text-4); margin-bottom: 1rem; display: block; }
.ticket-login-prompt p { color: var(--text-3); margin-bottom: 1.5rem; }

.ticket-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-top: 1.5rem;
}
.ticket-create {
  padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.ticket-create-header, .ticket-list-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.ticket-create-header i, .ticket-list-header i {
  font-size: 1.1rem; color: var(--accent);
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(238,28,37,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ticket-create-header h3, .ticket-list-header h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-0);
}
.ticket-create-header p, .ticket-list-header p {
  font-size: 0.8rem; color: var(--text-3); margin-top: 2px;
}
.ticket-form { display: flex; flex-direction: column; gap: 1rem; }
.ticket-form .btn { align-self: stretch; }
.ticket-list-panel {
  padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  display: flex; flex-direction: column;
}

/* Ticket list */
.ticket-list { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ticket-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg-1);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
}
.ticket-item:hover { border-color: var(--accent); transform: translateX(4px); }
.ticket-item-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ticket-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ticket-status-dot.open { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.ticket-status-dot.closed { background: var(--text-4); }
.ticket-item-subject { font-weight: 600; font-size: 0.9rem; color: var(--text-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-item-meta { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }

/* Ticket empty state */
.ticket-empty {
  text-align: center; padding: 2.5rem 1rem; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ticket-empty i { font-size: 1.5rem; color: var(--text-4); margin-bottom: 0.5rem; }
.ticket-empty p { color: var(--text-3); font-size: 0.85rem; }

@media (max-width: 768px) {
  .ticket-grid { grid-template-columns: 1fr; }
}

/* Ticket badges */
.ticket-status-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.ticket-status-badge.open { background: rgba(34,197,94,0.15); color: var(--green); }
.ticket-status-badge.closed { background: rgba(255,255,255,0.06); color: var(--text-3); }
.ticket-cat-badge { display: inline-flex; padding: 2px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 600; background: rgba(88,101,242,0.15); color: var(--blurple); text-transform: capitalize; }

/* Ticket detail */
.ticket-detail { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.ticket-back-btn { background: none; border: none; color: var(--text-3); font-size: 0.85rem; cursor: pointer; margin-bottom: 1rem; transition: color var(--transition); }
.ticket-back-btn:hover { color: var(--accent); }
.ticket-detail-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.ticket-detail-header h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.ticket-detail-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ticket-messages { display: flex; flex-direction: column; gap: 10px; max-height: 500px; overflow-y: auto; padding-right: 4px; margin-bottom: 1rem; }
.ticket-msg { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-1); border-left: 3px solid var(--border); }
.ticket-msg.admin { border-left-color: var(--accent); }
.ticket-msg-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.8rem; }
.ticket-msg-header strong { font-size: 0.85rem; }
.ticket-msg-role { padding: 1px 8px; border-radius: var(--radius-full); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; }
.ticket-msg-role.user { background: rgba(88,101,242,0.15); color: var(--blurple); }
.ticket-msg-role.admin { background: var(--accent-glow); color: var(--accent-light); }
.ticket-msg-time { color: var(--text-3); font-size: 0.75rem; margin-left: auto; }
.ticket-msg-body { font-size: 0.9rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ticket-reply-area { display: flex; flex-direction: column; gap: 10px; }
.ticket-reply-area .btn { align-self: flex-end; }

/* ═══════════════════════════════════════════════════════════
   STATUS PAGE
   ═══════════════════════════════════════════════════════════ */
.status-page { padding: 5rem 2rem 4rem; max-width: 800px; margin: 0 auto; }
.status-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 1.25rem 1.5rem; border-radius: var(--radius-md);
  margin-bottom: 2rem;
}
.status-banner.operational { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); }
.status-banner.degraded { background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.2); }
.status-banner.error { background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.2); }
.status-indicator { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-green { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.status-yellow { background: var(--yellow); box-shadow: 0 0 8px rgba(234,179,8,0.4); }
.status-red { background: #dc2626; box-shadow: 0 0 8px rgba(220,38,38,0.4); }
.status-text { font-weight: 600; font-size: 0.95rem; }

.status-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.status-service {
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: space-between;
}
.status-service-name { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.status-service-name i { color: var(--accent); }
.status-service-badge { font-size: 0.75rem; font-weight: 600; }
.status-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.status-metric {
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  text-align: center;
}
.status-metric-value {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  color: var(--text-0); display: block;
}
.status-metric-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 600px) {
  .status-services { grid-template-columns: 1fr; }
  .status-metrics { grid-template-columns: 1fr; }
}
/* Status extras */
.status-sysinfo {
  margin-top: 2rem; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.status-sysinfo h3 {
  font-size: 0.9rem; font-weight: 700; color: var(--text-0);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 8px;
}
.status-sysinfo h3 i { color: var(--accent); font-size: 0.85rem; }
.status-sysinfo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.status-sysinfo-item { padding: 10px; background: var(--bg-1); border-radius: var(--radius-sm); }
.status-sysinfo-label { font-size: 0.7rem; color: var(--text-3); display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.status-sysinfo-value { font-size: 0.85rem; color: var(--text-0); font-weight: 500; }
.status-refresh-note { text-align: center; font-size: 0.8rem; color: var(--text-3); margin-top: 2rem; }
.status-refresh-note i { margin-right: 4px; }
@media (max-width: 600px) { .status-sysinfo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Uptime history bar */
.status-history {
  margin-top: 2rem; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.status-history h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.status-history h3 i { color: var(--accent); font-size: 0.85rem; }
.uptime-bar {
  display: flex; gap: 2px; height: 32px; border-radius: var(--radius-sm);
  overflow: hidden;
}
.uptime-seg {
  flex: 1; border-radius: 2px; transition: opacity 0.15s;
  cursor: default; position: relative;
}
.uptime-seg:hover { opacity: 0.8; }
.uptime-seg.seg-up { background: var(--green); }
.uptime-seg.seg-warning { background: var(--yellow); }
.uptime-seg.seg-down { background: #dc2626; }
.uptime-seg.seg-unknown { background: var(--bg-4); }
.uptime-bar-labels {
  display: flex; justify-content: space-between;
  font-size: 0.7rem; color: var(--text-4); margin-top: 6px;
}
.uptime-summary {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-2);
}
.uptime-summary i { margin-right: 4px; }

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════ */
.profile-page { padding: 5rem 2rem 4rem; max-width: 900px; margin: 0 auto; }
.profile-header {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 2rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--border); }
.profile-info { flex: 1; }
.profile-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text-0); }
.profile-id { font-size: 0.8rem; color: var(--text-3); font-family: var(--font-mono); }
.profile-badges { display: flex; gap: 6px; margin-top: 8px; }

.profile-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 2rem;
}
.profile-stat {
  text-align: center; padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.profile-stat-value {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--text-0); display: block;
}
.profile-stat-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; }

.profile-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.profile-section {
  padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.profile-section h3 {
  font-size: 0.9rem; font-weight: 700; color: var(--text-0);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 8px;
}
.profile-section h3 i { color: var(--accent); font-size: 0.85rem; }
@media (max-width: 768px) {
  .profile-header { flex-direction: column; text-align: center; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-sections { grid-template-columns: 1fr; }
}
/* Profile extras */
.profile-premium-tag {
  display: inline-flex; padding: 3px 12px; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  margin-top: 6px;
}
.profile-premium-basic { background: rgba(88,101,242,0.15); color: var(--blurple); }
.profile-premium-pro { background: var(--accent-glow); color: var(--accent-light); }
.profile-premium-ultimate { background: rgba(234,179,8,0.15); color: var(--yellow); }
.profile-section-full { grid-column: 1 / -1; }
/* Level ring */
.profile-level-ring { display: flex; align-items: center; gap: 1.5rem; }
.profile-ring-wrap { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.profile-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.profile-ring-bg { fill: none; stroke: var(--bg-4); stroke-width: 8; }
.profile-ring-fill { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.profile-ring-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--text-0);
}
.profile-xp-info { flex: 1; }
.profile-xp-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; font-weight: 600; margin-bottom: 6px; display: block; }
.profile-xp-bar { height: 8px; background: var(--bg-4); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 4px; }
.profile-xp-fill { height: 100%; background: var(--accent); border-radius: var(--radius-full); transition: width 0.6s ease; }
.profile-xp-text { font-size: 0.8rem; color: var(--text-2); }
/* Stat rows */
.profile-stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.profile-stat-row:last-child { border-bottom: none; }
.profile-stat-row .stat-label { color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.profile-stat-row .stat-label i { font-size: 0.7rem; }
.profile-stat-row .stat-value { font-weight: 600; color: var(--text-0); }
.profile-stat-row .stat-value.green { color: var(--green); }
.profile-stat-row .stat-value.red { color: #dc2626; }
.profile-stat-row .stat-value.accent { color: var(--accent); }
/* Mini stats */
.profile-mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 8px; }
.profile-mini-stat { padding: 8px 10px; background: var(--bg-1); border-radius: var(--radius-sm); text-align: center; }
.profile-mini-stat-label { font-size: 0.7rem; color: var(--text-3); display: block; }
.profile-mini-stat-value { font-size: 0.85rem; font-weight: 700; color: var(--text-0); }
/* Inventory */
.profile-inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.profile-inv-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: var(--bg-1); border-radius: var(--radius-sm);
}
.profile-inv-emoji { font-size: 1.2rem; }
.profile-inv-name { flex: 1; font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-inv-qty { font-size: 0.75rem; color: var(--text-3); font-weight: 600; }
/* Birthday */
.profile-birthday-display { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.profile-birthday-display .bday-icon { font-size: 1.5rem; }
.profile-birthday-display .bday-date { font-weight: 600; color: var(--text-0); }
/* Warnings */
.profile-warn-item {
  padding: 10px 12px; background: var(--bg-1); border-radius: var(--radius-sm);
  margin-bottom: 6px; border-left: 3px solid var(--accent);
}
.profile-warn-item:last-child { margin-bottom: 0; }
.profile-warn-reason { font-size: 0.85rem; color: var(--text-1); display: flex; align-items: center; gap: 6px; }
.profile-warn-reason i { color: var(--accent); font-size: 0.75rem; }
.profile-warn-meta { font-size: 0.75rem; color: var(--text-3); margin-top: 4px; }
/* Profile empty */
.profile-empty {
  text-align: center; padding: 1.5rem; color: var(--text-3);
}
.profile-empty i { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; opacity: 0.5; }
.profile-empty p { font-size: 0.85rem; margin-bottom: 4px; }
.profile-empty code { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-light); }
/* Profile loading / login */
.profile-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 40vh; gap: 1rem;
}
.profile-login {
  display: flex; align-items: center; justify-content: center; min-height: 60vh;
}
.profile-login-card {
  text-align: center; padding: 3rem 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); max-width: 400px;
}
.profile-login-card i.login-icon { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; display: block; }
.profile-login-card h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; }
.profile-login-card p { color: var(--text-2); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════
   LEADERBOARD
   ═══════════════════════════════════════════════════════════ */
.lb-page { padding: 5rem 2rem 4rem; max-width: 900px; margin: 0 auto; }
.lb-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.lb-header h1 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text-0);
}
.lb-tabs { display: flex; gap: 4px; }
.lb-tab {
  padding: 8px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.lb-tab:hover { color: var(--text-0); }
.lb-tab.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Podium */
.lb-podium {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 1rem; margin-bottom: 2.5rem; min-height: 220px;
}
.lb-podium-item {
  text-align: center; padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  min-width: 140px; transition: all var(--transition);
}
.lb-podium-item.first { order: 2; min-height: 200px; border-color: var(--yellow); }
.lb-podium-item.second { order: 1; min-height: 160px; }
.lb-podium-item.third { order: 3; min-height: 130px; }
.lb-podium-avatar {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px;
  border: 3px solid var(--border);
}
.lb-podium-item.first .lb-podium-avatar { border-color: var(--yellow); width: 64px; height: 64px; }
.lb-podium-name { font-weight: 700; font-size: 0.9rem; color: var(--text-0); }
.lb-podium-value { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 1.1rem; }
.lb-podium-rank { font-size: 1.2rem; margin-bottom: 4px; }

/* Leaderboard list */
.lb-list { display: flex; flex-direction: column; gap: 6px; }
.lb-entry {
  display: grid; grid-template-columns: 40px 44px 1fr auto; gap: 12px;
  align-items: center; padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.lb-entry:hover { border-color: var(--border-hover); }
.lb-rank { font-family: var(--font-display); font-weight: 800; color: var(--text-3); text-align: center; font-size: 0.9rem; }
.lb-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.lb-user { }
.lb-username { font-weight: 600; font-size: 0.9rem; color: var(--text-0); }
.lb-user-sub { font-size: 0.75rem; color: var(--text-3); }
.lb-value { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--accent); text-align: right; }
@media (max-width: 600px) {
  .lb-podium { gap: 0.5rem; }
  .lb-podium-item { min-width: 100px; padding: 1rem 0.75rem; }
  .lb-entry { grid-template-columns: 30px 36px 1fr auto; gap: 8px; padding: 8px 12px; }
}
/* Leaderboard extras */
.lb-controls { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.lb-controls select {
  padding: 8px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-0); font-size: 0.85rem;
  max-width: 300px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.lb-controls select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow);
}
.lb-controls select option { background: var(--bg-2) !important; color: var(--text-0) !important; }
.lb-controls select option:checked { background: var(--accent) !important; color: #fff !important; }
.lb-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 30vh; gap: 1rem; }
.lb-loading p { color: var(--text-3); }
.lb-login { display: flex; align-items: center; justify-content: center; min-height: 40vh; }
.lb-login-card {
  text-align: center; padding: 3rem 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); max-width: 400px;
}
.lb-login-card i.login-icon { font-size: 3rem; color: var(--blurple); margin-bottom: 1rem; display: block; }
.lb-login-card h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; }
.lb-login-card p { color: var(--text-2); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════
   DOCS PAGE
   ═══════════════════════════════════════════════════════════ */
.docs-layout {
  padding-top: 64px;
  min-height: 100vh;
}
.docs-layout ~ .footer {
  margin-left: 240px;
}
.docs-sidebar {
  position: fixed; top: 64px; bottom: 0; width: 240px;
  background: var(--bg-1); border-right: 1px solid var(--border);
  padding: 1.5rem 0; overflow-y: auto;
}
.docs-sidebar .sd-nav-label { padding: 0 1.25rem; }
.docs-sidebar a {
  display: block; padding: 8px 1.25rem;
  font-size: 0.85rem; color: var(--text-2);
  transition: all var(--transition);
}
.docs-sidebar a:hover { color: var(--text-0); background: var(--surface); }
.docs-sidebar a.active { color: var(--text-0); background: var(--surface-active); border-left: 3px solid var(--accent); }
.docs-content {
  margin-left: 240px; padding: 2rem 3rem 4rem;
  max-width: 800px;
}
.docs-content h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text-0); margin-bottom: 1rem; }
.docs-content h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text-0); margin: 2rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.docs-content h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-0); margin: 1.5rem 0 0.5rem; }
.docs-content p { font-size: 0.95rem; color: var(--text-1); line-height: 1.8; margin-bottom: 1rem; }
.docs-content code {
  font-family: var(--font-mono); font-size: 0.85rem;
  background: var(--surface); padding: 2px 8px; border-radius: 4px;
  color: var(--accent-light);
}
.docs-content pre {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
  overflow-x: auto; margin-bottom: 1rem;
}
.docs-content pre code { background: none; padding: 0; color: var(--text-1); }
.docs-content ul, .docs-content ol { margin: 0 0 1rem 1.5rem; }
.docs-content li { font-size: 0.95rem; color: var(--text-1); margin-bottom: 0.5rem; line-height: 1.7; }
.docs-callout {
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  margin-bottom: 1rem; display: flex; gap: 10px;
}
.docs-callout.info { background: rgba(88,101,242,0.1); border-left: 3px solid var(--blurple); }
.docs-callout.warning { background: rgba(234,179,8,0.1); border-left: 3px solid var(--yellow); }
.docs-callout.danger { background: rgba(220,38,38,0.1); border-left: 3px solid #dc2626; }
.docs-callout i { margin-top: 2px; flex-shrink: 0; }
@media (max-width: 768px) {
  .docs-sidebar { position: static; width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 1rem 0; }
  .docs-content { margin-left: 0; padding: 1.5rem; }
  .docs-layout ~ .footer { margin-left: 0; }
}
/* Docs extras */
.docs-search-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin: 0 1.25rem 1rem;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.docs-search-wrap i { color: var(--text-4); font-size: 0.8rem; }
.docs-search-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-0); font-size: 0.8rem;
}
.docs-search-wrap:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow);
}
.docs-topic { display: none; }
.docs-topic.active { display: block; }
.docs-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.85rem; }
.docs-content th, .docs-content td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.docs-content th { background: var(--surface); font-weight: 700; color: var(--text-0); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.docs-content td { color: var(--text-1); }

/* Docs grid & info cards */
.docs-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin: 1rem 0 1.5rem;
}
@media (max-width: 768px) { .docs-grid-2 { grid-template-columns: 1fr; } }
.docs-info-card {
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.docs-info-card.premium-glow { border-color: rgba(234,179,8,0.25); }
.docs-info-card h3 {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 8px;
}

/* Docs job list */
.docs-job-list { display: flex; flex-direction: column; gap: 6px; }
.docs-job {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--bg-1); border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.docs-job-name { font-weight: 600; color: var(--text-0); }
.docs-job-pay { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   CHANGELOG
   ═══════════════════════════════════════════════════════════ */
.changelog-page { padding: 5rem 2rem 4rem; max-width: 700px; margin: 0 auto; }
.changelog-header { margin-bottom: 2rem; }
.changelog-header h1 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--text-0); margin-bottom: 0.5rem;
}
.changelog-header p { color: var(--text-2); }
.changelog-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 2rem; }
.changelog-nav select {
  padding: 8px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-0); font-size: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s; cursor: pointer;
}
.changelog-nav select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow);
}
.changelog-nav select option { background: var(--bg-2) !important; color: var(--text-0) !important; }
.changelog-nav select option:checked { background: var(--accent) !important; color: #fff !important; }
.changelog-entry { }
.changelog-version {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  color: var(--text-0); margin-bottom: 0.5rem;
}
.changelog-date { font-size: 0.8rem; color: var(--text-3); margin-bottom: 1.5rem; }
.changelog-section { margin-bottom: 1.5rem; }
.changelog-section h3 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 6px;
}
.changelog-section h3.added { color: var(--green); }
.changelog-section h3.changed { color: var(--blurple); }
.changelog-section h3.fixed { color: var(--yellow); }
.changelog-section h3.removed { color: #dc2626; }
.changelog-section ul { margin: 0; padding: 0; }
.changelog-section li {
  padding: 6px 0 6px 20px; position: relative;
  font-size: 0.9rem; color: var(--text-1); line-height: 1.6;
}
.changelog-section li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-4);
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════ */
.admin-page { padding: 5rem 2rem 4rem; max-width: 1200px; margin: 0 auto; }
.admin-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40vh; gap: 1rem; }
.admin-loading p { color: var(--text-3); }
.admin-denied { display: flex; align-items: center; justify-content: center; min-height: 60vh; }

/* Stats grid */
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem;
  margin-bottom: 2rem;
}
.admin-stat {
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  text-align: center;
}
.admin-stat-value {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--text-0); display: block;
}
.admin-stat-label { font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.admin-stat-icon { font-size: 1.2rem; color: var(--accent); margin-bottom: 8px; }

/* Admin section cards */
.admin-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem;
}
.admin-section h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--text-0); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.admin-section h3 i { color: var(--accent); }

/* Guild list */
.admin-guild-list { display: flex; flex-direction: column; gap: 6px; }
.admin-guild-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--bg-1); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
}
.admin-guild-item:hover { background: var(--surface-hover); }
.admin-guild-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; }
.admin-guild-info { flex: 1; min-width: 0; }
.admin-guild-name { font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-guild-meta { font-size: 0.7rem; color: var(--text-3); }

/* Admin tickets */

/* Admin panel heading */
.admin-panel-title {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  color: var(--text-0); margin-bottom: 0.5rem;
}
.admin-panel-title i { color: var(--accent); margin-right: 8px; }
.admin-panel-subtitle { color: var(--text-2); margin-bottom: 2rem; }

/* Bot card inner layout */
.admin-bot-inner { flex: 1; }
.admin-bot-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-bot-name-row strong { font-size: 1.1rem; }
.admin-bot-meta { display: flex; gap: 1rem; margin-top: 6px; font-size: 0.8rem; color: var(--text-3); }

/* Admin section header flex */
.admin-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}
.admin-section-header h3 { margin-bottom: 0; }

/* Ticket modal subject */
.admin-modal-subject {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
}
.admin-modal-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.admin-modal-messages-scroll { max-height: 400px; overflow-y: auto; margin: 16px 0; }
.admin-reply-actions { display: flex; gap: 8px; }
.admin-ticket-tabs { display: flex; gap: 4px; }
.admin-tab {
  padding: 6px 14px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid transparent;
  color: var(--text-3); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.admin-tab:hover { color: var(--text-1); }
.admin-tab.active { background: var(--accent); color: white; }
.admin-ticket-list { display: flex; flex-direction: column; gap: 6px; }
.admin-ticket-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg-1);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition); border: 1px solid transparent;
}
.admin-ticket-item:hover { border-color: var(--accent); }
.admin-ticket-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.admin-ticket-info { flex: 1; min-width: 0; }
.admin-ticket-subject { font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-ticket-meta { font-size: 0.7rem; color: var(--text-3); }
.admin-ticket-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.admin-ticket-user-info { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.admin-ticket-user-avatar { width: 28px; height: 28px; border-radius: 50%; }

/* Admin modals */
.admin-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.admin-modal {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; width: 100%;
  max-width: 600px; max-height: 80vh; overflow-y: auto;
  position: relative; animation: slideUp 0.2s ease;
}
.admin-modal-close {
  transition: color 0.2s, background 0.2s;
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--text-3);
  font-size: 1rem; cursor: pointer;
}
.admin-modal-close:hover { color: var(--text-0); }

/* Bot identity card */
.admin-bot-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 2rem;
}
.admin-bot-avatar { width: 56px; height: 56px; border-radius: 50%; }
.admin-bot-id { font-size: 0.75rem; color: var(--text-3); font-family: var(--font-mono); }
.admin-badge { padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.admin-badge-online { background: rgba(34,197,94,0.15); color: var(--green); }
.admin-badge-warn { background: rgba(234,179,8,0.15); color: var(--yellow); }

/* Toast reuse for admin */
.admin-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  padding: 12px 18px; border-radius: var(--radius-md);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-1); font-size: 0.85rem; display: flex;
  align-items: center; gap: 8px;
  transform: translateY(20px); opacity: 0;
  transition: all 0.3s ease; z-index: 10000;
}
.admin-toast.show { transform: translateY(0); opacity: 1; }

/* Fun banner */
.admin-fun-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 2rem;
}
.admin-fun-icon { font-size: 1.5rem; }
.admin-fun-text { flex: 1; font-size: 0.9rem; color: var(--text-2); transition: opacity 0.2s; }
.admin-fun-refresh {
  background: none; border: none; color: var(--text-3);
  cursor: pointer; font-size: 0.9rem; transition: color 0.2s;
}
.admin-fun-refresh:hover { color: var(--accent); }

/* System grid */
.admin-sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.admin-sys-item { padding: 10px; background: var(--bg-1); border-radius: var(--radius-sm); }
.admin-sys-label { font-size: 0.7rem; color: var(--text-3); display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-sys-value { font-size: 0.85rem; color: var(--text-0); font-weight: 500; }
@media (max-width: 600px) { .admin-sys-grid { grid-template-columns: repeat(2, 1fr); } }

/* Admin search bar */
.admin-search-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--bg-1);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-search-bar i { color: var(--text-4); font-size: 0.85rem; }
.admin-search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-0); font-size: 0.85rem;
}
.admin-search-bar:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Admin modal extras */
.admin-modal-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.admin-modal-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); }
.admin-modal-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 1rem 0; }
.admin-modal-stat { text-align: center; padding: 12px; background: var(--bg-1); border-radius: var(--radius-sm); }
.admin-modal-stat i { color: var(--accent); margin-bottom: 4px; }
.admin-modal-stat span { display: block; font-family: var(--font-display); font-weight: 800; }
.admin-modal-stat small { font-size: 0.65rem; color: var(--text-3); text-transform: uppercase; }
.admin-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 1rem 0; }
.admin-modal-info { padding: 10px; background: var(--bg-1); border-radius: var(--radius-sm); }
.admin-modal-actions { margin-top: 1.5rem; display: flex; gap: 8px; justify-content: flex-end; }
.admin-modal-banner { height: 120px; background-size: cover; background-position: center; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.admin-modal-desc { font-size: 0.85rem; color: var(--text-2); margin-bottom: 1rem; }
.admin-ticket-modal { max-width: 720px; }

/* Admin count badge */
.admin-count { font-size: 0.75rem; color: var(--text-3); font-weight: 400; }

/* Admin tables */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem;
}
.admin-table th {
  text-align: left; padding: 8px 12px;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-3); border-bottom: 1px solid var(--border);
  font-weight: 600; white-space: nowrap;
}
.admin-table td {
  padding: 8px 12px; border-bottom: 1px solid var(--border-light, rgba(255,255,255,0.04));
  color: var(--text-1); vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table code {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-2); background: var(--bg-1); padding: 2px 6px;
  border-radius: 4px;
}

/* Admin form rows */
.admin-form-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.admin-form-row .form-input {
  padding: 8px 12px; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-0); font-size: 0.85rem;
  outline: none; transition: border-color 0.2s;
  flex: 1; min-width: 0;
}
.admin-form-row .form-input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow);
}
.admin-form-row select.form-input { flex: 0 0 auto; cursor: pointer; }

/* Admin chips */
.admin-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: 0.75rem; color: var(--text-1);
}
.admin-chip-icon { width: 16px; height: 16px; border-radius: 50%; }

/* Admin team cards */
.admin-team-list { display: flex; flex-direction: column; gap: 8px; }
.admin-team-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg-1);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: border-color var(--transition);
}
.admin-team-card:hover { border-color: var(--border); }
.admin-team-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.admin-team-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.admin-team-info strong { font-size: 0.9rem; }
.admin-team-perms { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-perm-chip {
  padding: 2px 8px; background: rgba(238,28,37,0.1); color: var(--accent);
  border-radius: var(--radius-full); font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.admin-team-actions { flex-shrink: 0; }

/* Permission toggle grid */
.admin-perm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px;
}
.admin-perm-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: var(--bg-1);
  border-radius: var(--radius-sm); font-size: 0.8rem;
  color: var(--text-1); cursor: pointer;
  transition: background var(--transition);
}
.admin-perm-toggle:hover { background: var(--surface-hover); }
.admin-perm-toggle input[type="checkbox"] {
  accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer;
}

/* User lookup quick actions */
.ul-quick-actions {
  display: flex; gap: 6px; flex-shrink: 0; margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════════════ */
.error-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: calc(100vh - 64px);
  text-align: center; padding: 2rem;
}
.error-code {
  font-family: var(--font-display); font-size: 8rem; font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.error-msg {
  font-size: 1.2rem; color: var(--text-2); margin: 1rem 0 2rem;
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 3rem 2rem; color: var(--text-3);
}
.empty-state i { font-size: 2rem; margin-bottom: 0.75rem; display: block; opacity: 0.5; }
.empty-state p { font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════
   PLAYING INDICATOR
   ═══════════════════════════════════════════════════════════ */
.playing-indicator { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.playing-indicator span {
  width: 3px; background: var(--accent); border-radius: 2px;
  animation: equalizer 0.8s ease-in-out infinite alternate;
}
.playing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.playing-indicator span:nth-child(3) { animation-delay: 0.4s; }
.playing-indicator span:nth-child(4) { animation-delay: 0.6s; }
@keyframes equalizer {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   TRACK PAGE
   ═══════════════════════════════════════════════════════════ */
.track-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 64px); padding: 2rem;
}
.track-card {
  text-align: center; max-width: 400px; width: 100%;
  padding: 2rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.track-thumb {
  width: 200px; height: 200px; border-radius: var(--radius-md);
  object-fit: cover; margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-lg);
}
.track-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-0); margin-bottom: 4px; }
.track-artist { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1rem; }

/* Track page — full layout */
.track-container {
  text-align: center; max-width: 420px; width: 100%;
  padding: 2rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.track-inner { display: flex; flex-direction: column; align-items: center; }
.track-not-found {
  text-align: center; padding: 2rem;
}
.track-not-found h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-0); margin-bottom: 0.5rem; }
.track-not-found p { color: var(--text-2); font-size: 0.9rem; }
.now-playing-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(238, 28, 37, 0.1); border: 1px solid rgba(238, 28, 37, 0.25);
  color: var(--accent); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.track-thumbnail {
  width: 220px; height: 220px; border-radius: var(--radius-md);
  object-fit: cover; margin-bottom: 1.25rem; box-shadow: var(--shadow-lg);
}
.track-author { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1.25rem; }
.track-progress { width: 100%; margin-bottom: 1.25rem; }
.progress-bar-bg {
  width: 100%; height: 4px; border-radius: 2px;
  background: var(--bg-3); overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--accent); transition: width 0.3s linear;
}
.progress-times {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-3); margin-top: 6px;
  font-family: var(--font-mono);
}
.track-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.track-meta-item {
  font-size: 0.8rem; color: var(--text-2);
  display: flex; align-items: center; gap: 4px;
}
.track-meta-item i { color: var(--text-3); font-size: 0.75rem; }
.track-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}

/* Dash-spinner alias for spinner */
.dash-spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-3) !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   CUSTOM SCROLLBAR
   ═══════════════════════════════════════════════════════════ */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-4) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--bg-4); border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* ═══════════════════════════════════════════════════════════
   TEXTAREA RESIZE DISABLED
   ═══════════════════════════════════════════════════════════ */
.form-textarea { resize: none !important; }
textarea { resize: none !important; }

/* ═══════════════════════════════════════════════════════════
   AI CHAT MODAL
   ═══════════════════════════════════════════════════════════ */
.ai-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.ai-modal-overlay.active { opacity: 1; pointer-events: all; }
.ai-modal {
  width: 90%; max-width: 750px; height: 80vh; max-height: 800px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
.ai-modal-overlay.active .ai-modal { transform: translateY(0) scale(1); }
.ai-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.ai-modal-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--text-0); display: flex; align-items: center; gap: 8px;
}
.ai-modal-title i { color: var(--accent); }
.ai-modal-close {
  background: none; border: none; color: var(--text-3); font-size: 1.1rem;
  cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.ai-modal-close:hover { color: var(--text-0); background: var(--bg-3); }
.ai-modal-messages {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.ai-modal-welcome {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; text-align: center; gap: 8px; color: var(--text-3);
}
.ai-modal-welcome i { font-size: 2rem; color: var(--text-4); }
.ai-modal-welcome h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-1); }
.ai-modal-welcome p { font-size: 0.85rem; max-width: 300px; }
.ai-chat-bubble {
  max-width: 85%; padding: 10px 14px;
  border-radius: var(--radius-md); font-size: 0.88rem; line-height: 1.6;
  word-break: break-word;
}
.ai-chat-bubble.user {
  align-self: flex-end; background: var(--accent);
  color: #fff; border-bottom-right-radius: 4px;
}
.ai-chat-bubble.bot {
  align-self: flex-start; background: var(--bg-1);
  border: 1px solid var(--border); color: var(--text-1);
  border-bottom-left-radius: 4px;
}
.ai-chat-bubble.bot code {
  background: var(--bg-3); padding: 1px 5px; border-radius: 3px;
  font-family: var(--font-mono); font-size: 0.82em;
}
.ai-chat-bubble.error { color: var(--accent-light); }
.ai-chat-bubble.bot h3, .ai-chat-bubble.bot h4 {
  font-family: var(--font-display); margin: 8px 0 4px 0; color: var(--text-0);
}
.ai-chat-bubble.bot h3 { font-size: 0.95rem; }
.ai-chat-bubble.bot h4 { font-size: 0.9rem; }
.ai-chat-bubble.bot ul, .ai-chat-bubble.bot ol {
  margin: 4px 0; padding-left: 20px;
}
.ai-chat-bubble.bot li { margin: 2px 0; }
.ai-chat-bubble.bot pre {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  overflow-x: auto; margin: 6px 0; font-size: 0.82em;
}
.ai-chat-bubble.bot pre code {
  background: none; padding: 0; font-size: inherit;
}
.ai-chat-bubble.ai-question {
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, var(--bg-1), rgba(238, 28, 37, 0.05));
}

/* AI Link Buttons — clickable styled links in AI responses */
.ai-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; margin: 4px 2px;
  background: var(--bg-3); border: 1px solid var(--border-hover);
  border-radius: var(--radius-full); font-size: 0.82rem;
  color: var(--accent-light); text-decoration: none;
  transition: all var(--transition); cursor: pointer;
  font-weight: 500; white-space: nowrap;
}
.ai-link-btn:hover {
  background: var(--accent-glow-strong); border-color: var(--accent);
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--accent-glow);
}
.ai-link-btn i { font-size: 0.72rem; }
.ai-typing {
  display: flex; gap: 4px; padding: 4px 0;
}
.ai-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3); animation: aiTyping 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.ai-modal-input-area {
  display: flex; gap: 8px; padding: 14px 20px;
  border-top: 1px solid var(--border); flex-shrink: 0;
  align-items: flex-end;
}
.ai-modal-input-area .form-input {
  flex: 1; resize: none; overflow-y: auto;
  min-height: 42px; max-height: 150px; line-height: 1.4;
  padding: 10px 14px;
}
.ai-modal-input-area .btn { padding: 10px 16px; flex-shrink: 0; height: 42px; }
@media (max-width: 480px) {
  .ai-modal { height: 85vh; max-height: none; width: 95%; }
}

/* ═══ AI MODAL HEADER ACTIONS ═══ */
.ai-modal-header-actions { display: flex; align-items: center; gap: 4px; }
.ai-header-btn {
  background: none; border: none; color: var(--text-3);
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); cursor: pointer; font-size: 0.9rem;
}
.ai-header-btn:hover { color: var(--text-0); background: var(--bg-3); }

/* ═══ AI CONVERSATION HISTORY PANEL ═══ */
.ai-history-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: 280px;
  background: var(--bg-1); border-right: 1px solid var(--border);
  z-index: 10; flex-direction: column; border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  animation: slideInLeft 0.2s ease;
}
@keyframes slideInLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.ai-history-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.ai-history-header h4 {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  color: var(--text-1); display: flex; align-items: center; gap: 8px;
}
.ai-history-header h4 i { color: var(--accent); }
.ai-history-list {
  flex: 1; overflow-y: auto; padding: 8px;
}
.ai-history-item {
  position: relative; padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition); margin-bottom: 2px;
}
.ai-history-item:hover { background: var(--surface-hover); }
.ai-history-item.active { background: var(--accent-glow); border-left: 2px solid var(--accent); }
.ai-history-item-title {
  font-size: 0.82rem; font-weight: 500; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-right: 24px;
}
.ai-history-item-meta { font-size: 0.72rem; color: var(--text-3); margin-top: 2px; }
.ai-history-delete {
  position: absolute; top: 10px; right: 8px;
  background: none; border: none; color: var(--text-4);
  cursor: pointer; font-size: 0.72rem; padding: 4px;
  opacity: 0; transition: all var(--transition);
}
.ai-history-item:hover .ai-history-delete { opacity: 1; }
.ai-history-delete:hover { color: var(--accent); }
.ai-history-empty, .ai-history-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; color: var(--text-3); text-align: center; gap: 8px;
}
.ai-history-empty i { font-size: 1.5rem; color: var(--text-4); }
@media (max-width: 600px) { .ai-history-panel { width: 100%; border-radius: var(--radius-lg); } }

/* ═══ ANNOUNCEMENT SYSTEM (Global — injected by main.js) ═══ */

/* ── Persistent Toast Notification ── */
.ann-toast {
  position: fixed; bottom: 24px; left: 24px; z-index: 9500;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4); cursor: pointer;
  transform: translateX(-120%); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-width: 360px;
}
.ann-toast-visible { transform: translateX(0); opacity: 1; }
.ann-toast:hover { border-color: var(--accent); box-shadow: 0 8px 32px var(--accent-glow); }
.ann-toast-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--accent-glow); display: flex;
  align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.ann-toast-content { flex: 1; min-width: 0; }
.ann-toast-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); margin-bottom: 2px; }
.ann-toast-title { font-size: 0.85rem; font-weight: 600; color: var(--text-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-toast-badge {
  background: var(--blurple); color: #fff; font-size: 0.65rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ann-toast-close {
  background: none; border: none; color: var(--text-4); cursor: pointer;
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all var(--transition);
}
.ann-toast-close:hover { color: var(--text-0); background: var(--bg-3); }

/* ── Full Popup Overlay ── */
.ann-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.ann-overlay-visible { opacity: 1; pointer-events: all; }
.ann-popup {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); max-width: 540px; width: 92%;
  box-shadow: var(--shadow-xl); overflow: hidden;
  transform: scale(0.92) translateY(20px); opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.ann-overlay-visible .ann-popup { transform: scale(1) translateY(0); opacity: 1; }
.ann-popup-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px 12px;
}
.ann-popup-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--accent-glow); display: flex;
  align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0;
}
.ann-popup-header-text { flex: 1; min-width: 0; }
.ann-popup-header-text h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--text-0); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ann-popup-type {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px;
  border-radius: 99px; margin-top: 4px;
}
.ann-type-info { background: rgba(88,101,242,0.15); color: #5865f2; }
.ann-type-update { background: rgba(87,242,135,0.15); color: #57f287; }
.ann-type-important { background: rgba(238,28,37,0.15); color: #ee1c25; }
.ann-type-event { background: rgba(254,231,92,0.15); color: #fee75c; }
.ann-popup-close {
  background: none; border: none; color: var(--text-3);
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition); flex-shrink: 0;
}
.ann-popup-close:hover { color: var(--text-0); background: var(--bg-3); }
.ann-popup-body {
  padding: 4px 24px 18px; color: var(--text-2);
  font-size: 0.88rem; line-height: 1.7;
  max-height: 320px; overflow-y: auto;
}
.ann-popup-body strong { color: var(--text-1); }
.ann-popup-body code { background: var(--bg-3); padding: 1px 5px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.82em; }
.ann-popup-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-top: 1px solid var(--border); gap: 12px; flex-wrap: wrap;
}
.ann-popup-meta { display: flex; align-items: center; gap: 12px; font-size: 0.75rem; color: var(--text-3); }
.ann-popup-views {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-3); padding: 3px 10px; border-radius: 99px;
  font-size: 0.72rem; font-weight: 600; color: var(--text-2);
}
.ann-popup-views i { font-size: 0.65rem; }
.ann-popup-actions { display: flex; align-items: center; gap: 8px; }
.ann-popup-nav-btn {
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text-2);
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.7rem; transition: all var(--transition);
}
.ann-popup-nav-btn:hover { background: var(--bg-hover); color: var(--text-0); }
.ann-popup-nav-label { font-size: 0.72rem; color: var(--text-3); font-weight: 600; }

/* ── Floating Bell ── */
.ann-bell {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  display: none; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}
.ann-bell:hover { transform: scale(1.08); box-shadow: 0 4px 20px var(--accent-glow-strong); }
.ann-bell-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--blurple); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-0);
}

/* Animate bell when there are unread */
@keyframes annBellPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow-strong); }
  50% { box-shadow: 0 0 0 8px rgba(238,28,37,0); }
}
.ann-bell:has(.ann-bell-badge[style*="display: flex"]) { animation: annBellPulse 2s infinite; }

/* Mobile adjustments */
@media (max-width: 600px) {
  .ann-toast { left: 12px; right: 12px; max-width: none; bottom: 16px; }
  .ann-popup { width: 95%; }
  .ann-popup-footer { flex-direction: column; align-items: flex-start; }
  .ann-popup-actions { width: 100%; justify-content: flex-end; }
  .ann-bell { bottom: 16px; right: 16px; }
}

/* ═══ LEGACY ANNOUNCEMENT (kept for backward compat) ═══ */
.announcement-overlay { display: none !important; }
.announcement-bell { display: none !important; }

/* ═══ OWNER PAGE ═══ */
.owner-page { padding: 100px 2rem 4rem; max-width: 1200px; margin: 0 auto; }
.owner-page-title {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  color: var(--text-0); margin-bottom: 4px;
  display: flex; align-items: center; gap: 12px;
}
.owner-page-title i { color: var(--accent); }
.owner-page-subtitle { color: var(--text-3); font-size: 0.9rem; margin-bottom: 2rem; }
.owner-page .admin-section { margin-bottom: 2rem; }
.owner-stat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.owner-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px; text-align: center;
  transition: all var(--transition);
}
.owner-stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.owner-stat-card .stat-value {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  color: var(--text-0); display: block;
}
.owner-stat-card .stat-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }
.owner-stat-card .stat-icon { font-size: 1.2rem; margin-bottom: 8px; }

.owner-visitors-table {
  width: 100%; border-collapse: collapse; font-size: 0.82rem;
}
.owner-visitors-table th {
  text-align: left; padding: 10px 12px; color: var(--text-3);
  border-bottom: 1px solid var(--border); font-weight: 600;
  text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.5px;
}
.owner-visitors-table td {
  padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-2);
}
.owner-visitors-table tr:hover td { background: var(--surface-hover); }
.visitor-type-badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 600;
}
.visitor-type-badge.user { background: var(--accent-glow); color: var(--accent-light); }
.visitor-type-badge.anonymous { background: rgba(113,113,122,0.15); color: var(--text-3); }

.owner-top-pages { list-style: none; padding: 0; }
.owner-top-pages li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.82rem; color: var(--text-2); gap: 12px;
}
.owner-top-pages li:hover { background: var(--surface-hover); }
.owner-page-path { color: var(--text-1); font-weight: 600; font-size: 0.85rem; }
.owner-page-views { color: var(--text-4); font-family: var(--font-mono); font-size: 0.7rem; flex: 1; text-align: right; }
.owner-page-count { color: var(--text-3); font-weight: 600; white-space: nowrap; }

/* Owner pagination buttons */
.ow-pag-btn {
  background: none; border: 1px solid var(--border); color: var(--text-3);
  font-size: .7rem; padding: 4px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all .2s;
}
.ow-pag-btn:hover:not(:disabled) { color: var(--text-1); border-color: var(--border-hover); }
.ow-pag-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Owner announcement management */
.owner-announcement-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px;
}
.owner-announcement-form .form-group { margin-bottom: 12px; }
.owner-announcement-form label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-2); margin-bottom: 6px;
}
.owner-announcement-form input,
.owner-announcement-form textarea,
.owner-announcement-form select {
  width: 100%; padding: 10px 12px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-1); font-size: 0.85rem;
}
.owner-announcement-form textarea { min-height: 100px; resize: vertical; }
.owner-announcement-form input:focus,
.owner-announcement-form textarea:focus,
.owner-announcement-form select:focus { outline: none; border-color: var(--accent); }
.owner-announcement-list { display: flex; flex-direction: column; gap: 8px; }
.owner-announcement-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  display: flex; align-items: center; gap: 12px;
}
.owner-announcement-item .ann-info { flex: 1; }
.owner-announcement-item .ann-title { font-weight: 600; color: var(--text-1); font-size: 0.88rem; }
.owner-announcement-item .ann-meta { font-size: 0.72rem; color: var(--text-3); margin-top: 2px; }
.owner-announcement-item .ann-type {
  padding: 2px 8px; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 600;
}
.ann-type.info { background: rgba(88,101,242,0.15); color: var(--blurple); }
.ann-type.update { background: rgba(34,197,94,0.15); color: var(--green); }
.ann-type.important { background: var(--accent-glow); color: var(--accent-light); }
.ann-type.event { background: rgba(234,179,8,0.15); color: var(--yellow); }

/* ═══ SERVER DASHBOARD MUSIC PLAYER ═══ */
.web-music-player {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 2rem;
}
.web-music-player-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.web-music-player-header h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--text-0); display: flex; align-items: center; gap: 8px;
}
.web-music-player-header h3 i { color: var(--accent); }
.web-np-area {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.web-np-thumb {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  background: var(--bg-3); object-fit: cover; flex-shrink: 0;
}
.web-np-info { flex: 1; min-width: 0; }
.web-np-title {
  font-weight: 600; font-size: 0.95rem; color: var(--text-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.web-np-author { font-size: 0.8rem; color: var(--text-3); }
.web-np-progress {
  width: 100%; height: 4px; background: var(--bg-3);
  border-radius: 2px; margin-top: 8px; overflow: hidden;
}
.web-np-progress-fill {
  height: 100%; background: var(--accent); border-radius: 2px;
  transition: width 1s linear;
}
.web-np-times {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-4); margin-top: 4px;
}
.web-music-controls {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 16px;
}
.web-music-btn {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-2); width: 40px; height: 40px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition); font-size: 0.9rem;
}
.web-music-btn:hover { background: var(--surface-hover); color: var(--text-0); border-color: var(--border-hover); }
.web-music-btn.play-pause {
  width: 48px; height: 48px; background: var(--accent);
  color: #fff; border-color: var(--accent); font-size: 1rem;
}
.web-music-btn.play-pause:hover { background: var(--accent-dark); }
.web-music-btn.active { color: var(--accent-light); border-color: var(--accent); }
.web-music-search {
  display: flex; gap: 8px;
}
.web-music-search input {
  flex: 1; padding: 10px 14px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-1); font-size: 0.85rem;
}
.web-music-search input:focus { outline: none; border-color: var(--accent); }
.web-music-queue { margin-top: 16px; }
.web-music-queue h4 {
  font-size: 0.85rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.web-queue-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  transition: all var(--transition); font-size: 0.82rem;
}
.web-queue-item:hover { background: var(--surface-hover); }
.web-queue-item .queue-num { color: var(--text-4); font-weight: 600; min-width: 20px; }
.web-queue-item .queue-title { flex: 1; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.web-queue-item .queue-dur { color: var(--text-3); font-family: var(--font-mono); font-size: 0.75rem; }

/* ── Website Music Player — Search & Play ── */
.wmp-search-row {
  display: flex; gap: 10px; align-items: center; margin-top: 16px;
}
.wmp-search-wrap {
  flex: 1; position: relative;
}
.wmp-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-4); font-size: 0.85rem; pointer-events: none;
}
.wmp-search-input {
  width: 100%; padding: 12px 14px 12px 40px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-1); font-size: 0.88rem; font-family: var(--font-body);
  transition: all var(--transition);
}
.wmp-search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-alpha); }
.wmp-search-input::placeholder { color: var(--text-4); }
.wmp-play-btn {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  padding: 12px 20px; font-weight: 600; white-space: nowrap;
}
.wmp-status {
  margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; display: flex; align-items: center; gap: 8px;
  animation: wmpSlideIn 0.3s ease;
}
.wmp-status.loading { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); }
.wmp-status.success { background: rgba(67, 181, 129, 0.1); color: var(--green); border: 1px solid rgba(67, 181, 129, 0.3); }
.wmp-status.error { background: rgba(237, 66, 69, 0.1); color: var(--red); border: 1px solid rgba(237, 66, 69, 0.3); }
@keyframes wmpSlideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .wmp-search-row { flex-direction: column; }
  .wmp-play-btn { width: 100%; justify-content: center; }
}
