/* ========================================
   HEXA — Design System v3
   Minimal, Modern — Vercel/Linear inspired
   ======================================== */

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

:root {
  color-scheme: dark only;
  --bg: #0a0a0f;
  --bg-2: #0d0d14;
  --bg-3: #12121c;
  --bg-card: rgba(124,58,237,0.04);
  --bg-card-hover: rgba(124,58,237,0.1);
  --bg-glass: rgba(10,10,15,0.82);

  --purple: #7c3aed;
  --purple-dim: rgba(124,58,237,0.15);
  --purple-glow: rgba(124,58,237,0.3);
  --purple-glow-lg: rgba(124,58,237,0.2);
  --accent: #a855f7;
  --violet: #a855f7;
  --indigo: #6d28d9;

  --text: #f0eef6;
  --text-2: #a09bb8;
  --text-3: #5b5673;

  --border: rgba(124,58,237,0.1);
  --border-hover: rgba(124,58,237,0.25);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg) !important;
  color: var(--text) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > section, body > .dashboard-layout { flex: 1; }
body > footer { margin-top: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ========================================
   ANIMATED BACKGROUND EFFECTS
   ======================================== */
.bg-effects {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 30%, transparent 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: rgba(124,58,237,0.12);
  top: -200px; right: -150px;
}

.orb-2 {
  width: 500px; height: 500px;
  background: rgba(168,85,247,0.08);
  bottom: -150px; left: -200px;
  animation-delay: -7s;
}

.orb-3 {
  width: 350px; height: 350px;
  background: rgba(109,40,217,0.1);
  top: 40%; left: 60%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -50px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.02); }
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 0;
  transition: background 0.3s var(--ease), border 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: rgba(124,58,237,0.1);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.15rem;
}

.brand-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--purple), var(--accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}

.nav-brand span {
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 32px;
}

.nav-links a {
  font-size: 0.82rem; font-weight: 500; color: var(--text-2);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.btn-nav-login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  transition: all 0.25s var(--ease);
}

.btn-nav-login svg { flex-shrink: 0; }
.btn-nav-login:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(124,58,237,0.15);
  transform: translateY(-1px);
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  color: var(--text);
  font-family: inherit;
}

.user-menu-trigger:hover,
.user-menu-trigger.open {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
}

.user-menu-trigger .user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: block;
}

.user-menu-trigger .user-name {
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-chevron {
  transition: transform 0.2s var(--ease);
  color: var(--text-3);
  flex-shrink: 0;
}

.user-menu-trigger.open .user-menu-chevron {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(13,13,20,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease);
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 40px rgba(124,58,237,0.06);
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.15s var(--ease);
}

.dropdown-item svg {
  flex-shrink: 0;
  color: var(--text-3);
  transition: color 0.15s var(--ease);
}

.dropdown-item:hover {
  background: rgba(124,58,237,0.1);
  color: var(--text);
}

.dropdown-item:hover svg {
  color: var(--accent);
}

.dropdown-logout:hover {
  background: rgba(239,68,68,0.1);
  color: #f87171;
}

.dropdown-logout:hover svg {
  color: #f87171;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; padding: 4px;
}

.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.25s var(--ease);
}

.nav-login-mobile {
  display: none;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--purple), var(--accent));
  color: #fff !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; white-space: nowrap;
  transition: all 0.2s var(--ease); cursor: pointer; border: none;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--purple), var(--accent));
  color: #fff; border-radius: var(--radius-full);
  font-size: 0.88rem;
  box-shadow: 0 0 30px rgba(124,58,237,0.3), 0 0 60px rgba(124,58,237,0.1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s var(--ease);
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(124,58,237,0.4), 0 0 100px rgba(124,58,237,0.15);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 12px 24px;
  background: transparent; color: var(--text-2);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.btn-discord {
  padding: 12px 28px;
  background: #5865F2; color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  box-shadow: 0 0 30px rgba(88,101,242,0.25);
}

.btn-discord:hover {
  background: #4752C4;
  box-shadow: 0 0 50px rgba(88,101,242,0.35);
  transform: translateY(-1px);
}

.btn-sm { padding: 6px 14px; font-size: 0.75rem; border-radius: var(--radius-full); }

.btn-lg { padding: 14px 32px; font-size: 0.92rem; }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
  z-index: 1;
}

.hero-glow {
  position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.2) 0%, rgba(168,85,247,0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px;
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeIn 0.6s var(--ease);
  background: rgba(124,58,237,0.06);
}

.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fbbf24;
  animation: pulse 2s ease-in-out infinite;
  transition: background 0.3s;
}

.pill-dot.online { background: #34d399; }
.pill-dot.offline { background: #ef4444; animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text);
  animation: fadeUp 0.7s var(--ease) 0.1s both;
}

.grad {
  background: linear-gradient(135deg, var(--purple), var(--accent), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 6s ease-in-out infinite alternate;
  background-size: 200% 200%;
}

@keyframes gradShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}

.hide-mobile { display: inline; }

.hero-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  animation: fadeUp 0.7s var(--ease) 0.3s both;
}

/* Stats Bar */
.stats-bar {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 72px;
  padding: 24px 48px;
  background: rgba(10,10,15,0.6);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-lg);
  animation: fadeUp 0.7s var(--ease) 0.45s both;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 40px rgba(0,0,0,0.25), 0 0 40px rgba(124,58,237,0.06);
}

.stat-item {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 0 32px;
  min-width: 100px;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--text) 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-lbl {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.3), transparent);
  flex-shrink: 0;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.section-alt {
  background: rgba(10,10,15,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(124,58,237,0.1);
  border-bottom: 1px solid rgba(124,58,237,0.1);
}

.sec-head {
  text-align: center;
  margin-bottom: 56px;
}

.sec-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sec-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
}

/* ========================================
   BENTO GRID (Features)
   ======================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bento-card {
  position: relative;
  padding: 28px 24px;
  background: rgba(10,10,15,0.6);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.bento-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.bento-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.bento-card:hover {
  background: rgba(10,10,15,0.7);
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(124,58,237,0.15), 0 0 60px rgba(124,58,237,0.08);
}

.bento-card:hover::before { opacity: 1; }
.bento-card:hover::after { opacity: 1; }

.bento-big {
  grid-column: span 2;
}

.bento-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(168,85,247,0.08));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
  transition: all 0.35s var(--ease);
  position: relative;
}

.bento-card:hover .bento-icon {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(168,85,247,0.15));
  box-shadow: 0 0 24px rgba(124,58,237,0.2);
  color: #c084fc;
}

.bento-card h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.bento-card p {
  font-size: 0.85rem; color: var(--text-2) !important;
  line-height: 1.55;
}

.bento-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 3px 10px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple), var(--accent));
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #fff;
  box-shadow: 0 0 16px rgba(124,58,237,0.3);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 16px rgba(124,58,237,0.3); }
  50% { box-shadow: 0 0 24px rgba(124,58,237,0.5); }
}

/* ========================================
   STEPS
   ======================================== */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  flex: 1;
  padding: 0 16px;
}

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(124,58,237,0.3), 0 0 60px rgba(124,58,237,0.1);
  animation: stepGlow 4s ease-in-out infinite;
  position: relative;
}

.step-num::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.2);
  animation: stepRing 4s ease-in-out infinite;
}

@keyframes stepGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(124,58,237,0.3), 0 0 60px rgba(124,58,237,0.1); }
  50% { box-shadow: 0 0 40px rgba(124,58,237,0.4), 0 0 80px rgba(124,58,237,0.15); }
}

@keyframes stepRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0; }
}

.step-body h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.step-body p {
  font-size: 0.85rem; color: var(--text-2);
  max-width: 220px; margin: 0 auto;
}

.step-line {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--purple), rgba(168,85,247,0.3), transparent);
  margin-top: 24px;
  flex-shrink: 0;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.step-line::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.6), transparent);
  animation: lineShimmer 3s ease-in-out infinite;
}

@keyframes lineShimmer {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* ========================================
   STATUS PANEL
   ======================================== */
.status-panel {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(10,10,15,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 40px rgba(0,0,0,0.25), 0 0 60px rgba(124,58,237,0.06);
}

.status-top {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.status-indicator {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.9rem;
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fbbf24;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(251,191,36,0.4);
}

.status-dot.online { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.4); }
.status-dot.offline { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.4); animation: none; }

.status-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.metric {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 20px 12px;
  background: rgba(10,10,15,0.8);
  transition: all 0.25s var(--ease);
}

.metric:hover {
  background: rgba(124,58,237,0.06);
}

.metric-label {
  font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-3);
}

.metric-value {
  font-size: 1.1rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.status-foot {
  padding: 12px 24px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

/* ========================================
   CTA
   ======================================== */
.cta { padding: 80px 0 120px; }

.cta-box {
  text-align: center;
  padding: 72px 48px;
  border-radius: var(--radius-lg);
  background: rgba(10,10,15,0.6);
  border: 1px solid rgba(124,58,237,0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 60px rgba(0,0,0,0.3), 0 0 80px rgba(124,58,237,0.08);
}

.cta-box::before {
  content: '';
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.18), rgba(168,85,247,0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: ctaGlow 6s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
  0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
  color: var(--text);
}

.cta-box p {
  font-size: 1rem; color: var(--text-2);
  margin-bottom: 32px;
  position: relative;
}

.cta-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  position: relative;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid rgba(124,58,237,0.1);
  padding: 48px 0 32px;
  position: relative; z-index: 1;
  background: rgba(10,10,15,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}

.footer-left {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}

.footer-left p {
  font-size: 0.82rem; color: var(--text-3);
}

.footer-links {
  display: flex; gap: 24px;
}

.footer-links a {
  font-size: 0.8rem; color: var(--text-2);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.72rem; color: var(--text-3);
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* Stagger children animations */
.bento.visible .bento-card { opacity: 0; animation: cardReveal 0.5s var(--ease) forwards; }
.bento.visible .bento-card:nth-child(1) { animation-delay: 0s; }
.bento.visible .bento-card:nth-child(2) { animation-delay: 0.08s; }
.bento.visible .bento-card:nth-child(3) { animation-delay: 0.16s; }
.bento.visible .bento-card:nth-child(4) { animation-delay: 0.24s; }
.bento.visible .bento-card:nth-child(5) { animation-delay: 0.32s; }
.bento.visible .bento-card:nth-child(6) { animation-delay: 0.40s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========================================
   LEGAL PAGES (Impressum, Datenschutz)
   ======================================== */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  flex: 1;
}

.legal-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 36px;
  background: rgba(10,10,15,0.6);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 40px rgba(0,0,0,0.25);
}

.legal-box h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--purple), var(--accent), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-box h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-box p, .legal-box li {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 10px;
}

.legal-box a {
  color: var(--accent);
  transition: color 0.2s var(--ease);
}

.legal-box a:hover {
  color: #c084fc;
}

.legal-box ul, .legal-box ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */
.dashboard-body { min-height: 100vh; }
.dashboard-body .hero-glow { display: none; }

/* Dashboard nav overrides */
.dashboard-body .navbar .container {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-separator {
  width: 1px; height: 20px;
  background: var(--border);
}

.nav-page-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  transition: all 0.25s var(--ease);
}

.btn-secondary:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--purple);
}

.dashboard-layout {
  display: flex; min-height: calc(100vh - 56px); padding-top: 56px;
}

/* ---- Sidebar ---- */
.sidebar {
  width: 260px; position: fixed;
  top: 56px; left: 0; bottom: 0;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(124,58,237,0.1);
  overflow-y: auto;
  display: flex; flex-direction: column;
  z-index: 100;
}

.sidebar-section { padding: 18px 12px 8px; }

.sidebar-title {
  font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-3); padding: 0 8px; margin-bottom: 8px;
}

.server-list { display: flex; flex-direction: column; gap: 2px; }

.server-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 8px;
  cursor: pointer; transition: background 0.15s var(--ease);
  position: relative;
}

.server-item:hover { background: rgba(255,255,255,0.04); }
.server-item.active { background: rgba(139,92,246,0.1); }

.server-item.active::before {
  content: ''; position: absolute; left: -12px;
  width: 3px; height: 24px; border-radius: 0 3px 3px 0;
  background: var(--purple);
}

.server-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem; flex-shrink: 0;
}

.server-item-info { display: flex; flex-direction: column; min-width: 0; }

.server-item-name {
  font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.server-item-members { font-size: 0.68rem; color: var(--text-3); }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.sidebar-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: 8px;
  font-size: 0.82rem; color: var(--text-2);
  transition: all 0.15s var(--ease);
}

.sidebar-nav a svg {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--text-3); transition: color 0.15s var(--ease);
}

.sidebar-nav a:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sidebar-nav a:hover svg { color: var(--violet); }
.sidebar-nav a.active { background: rgba(139,92,246,0.1); color: var(--violet); }
.sidebar-nav a.active svg { color: var(--violet); }

.sidebar-footer {
  margin-top: auto;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
}

.sidebar-bot-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--text-3);
}

.sidebar-bot-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fbbf24;
  animation: pulse 2s ease-in-out infinite;
}

.sidebar-bot-dot.online { background: #34d399; }
.sidebar-bot-dot.offline { background: #ef4444; animation: none; }

/* ---- Main Content ---- */
.dash-main {
  flex: 1; margin-left: 260px;
  padding: 24px 32px;
  max-width: calc(100vw - 260px);
}

.dash-quick-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 24px;
}

.quick-stat-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(10,10,15,0.6);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s var(--ease);
}

.quick-stat-card:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 4px 20px rgba(124,58,237,0.08);
}

.quick-stat-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.quick-stat-icon svg { width: 16px; height: 16px; }

.qs-purple { background: rgba(139,92,246,0.1); color: var(--violet); }
.qs-green { background: rgba(52,211,153,0.1); color: #34d399; }
.qs-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.qs-orange { background: rgba(251,191,36,0.1); color: #fbbf24; }

.quick-stat-info { display: flex; flex-direction: column; }
.quick-stat-value { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.quick-stat-label { font-size: 0.68rem; color: var(--text-3); }

.dash-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 24px;
}

.dash-header-left h1 { font-size: 1.35rem; font-weight: 800; margin-bottom: 2px; }
.dash-header-left p { color: var(--text-2); font-size: 0.85rem; }

/* Toggle */
.toggle-switch {
  position: relative; display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle-slider {
  position: relative; width: 40px; height: 22px;
  background: rgba(255,255,255,0.08);
  border-radius: 22px; transition: background 0.2s var(--ease);
  flex-shrink: 0;
}

.toggle-slider::before {
  content: ''; position: absolute;
  height: 16px; width: 16px; left: 3px; bottom: 3px;
  background: var(--text); border-radius: 50%;
  transition: transform 0.2s var(--ease);
}

.toggle-switch input:checked + .toggle-slider { background: var(--purple); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

.toggle-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-2);
}

/* Dashboard Grid */
.dash-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; align-items: start;
}

.dash-col { min-width: 0; }

/* Module Sections */
.module-section { animation: fadeInModule 0.25s ease; }
@keyframes fadeInModule {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stats Big Grid */
.stats-big-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.stats-big-card {
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.stats-big-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.06);
}
.stats-big-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stats-big-value {
  font-size: 1.5rem; font-weight: 800; color: var(--text-1);
  line-height: 1.1;
}
.stats-big-label {
  font-size: 0.75rem; font-weight: 500; color: var(--text-3);
  margin-top: 2px;
}
.stats-big-info { display: flex; flex-direction: column; }

/* Stats Detail Grid */
.stats-detail-grid {
  display: grid; gap: 0;
}
.stats-detail-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.stats-detail-item:last-child { border-bottom: none; }
.stats-detail-label {
  font-size: 0.82rem; color: var(--text-3); font-weight: 500;
}
.stats-detail-value {
  font-size: 0.85rem; color: var(--text-1); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}

/* Stats Status Dot */
.stats-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  background: var(--text-3);
}
.stats-status-dot.online { background: #57F287; box-shadow: 0 0 6px rgba(87, 242, 135, 0.5); }
.stats-status-dot.offline { background: #ED4245; }

/* Stats Refresh Row */
.stats-refresh-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.stats-auto-refresh {
  font-size: 0.72rem; color: var(--text-3); font-weight: 500;
}

/* Settings Module */
.settings-modules { display: flex; flex-direction: column; gap: 0; }
.settings-module-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.settings-module-item:last-child { border-bottom: none; }
.settings-module-info { display: flex; flex-direction: column; gap: 2px; }
.settings-module-name { font-size: 0.85rem; font-weight: 600; color: var(--text-1); }
.settings-module-desc { font-size: 0.72rem; color: var(--text-3); }

.toggle-sm .toggle-slider {
  width: 36px; height: 20px;
}
.toggle-sm .toggle-slider::before {
  width: 16px; height: 16px;
}
.toggle-sm input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

/* Danger Zone */
.danger-zone {
  border-color: rgba(237, 66, 69, 0.25) !important;
  margin-top: 16px;
}
.danger-zone .config-panel-header h2 { color: #ED4245; }
.danger-zone .config-panel-header h2 svg { color: #ED4245; }
.danger-zone-desc {
  font-size: 0.8rem; color: var(--text-3); margin-bottom: 16px;
}
.danger-zone-actions { display: flex; flex-direction: column; gap: 0; }
.danger-zone-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.danger-zone-item:last-child { border-bottom: none; }
.danger-zone-label { font-size: 0.82rem; font-weight: 600; color: var(--text-1); display: block; }
.danger-zone-hint { font-size: 0.72rem; color: var(--text-3); display: block; margin-top: 2px; }

.btn-danger {
  background: rgba(237, 66, 69, 0.12);
  color: #ED4245;
  border: 1px solid rgba(237, 66, 69, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-danger:hover {
  background: rgba(237, 66, 69, 0.25);
  border-color: rgba(237, 66, 69, 0.5);
}

/* ── Moderation Module ── */
.mod-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(124,58,237,0.08);
}
.mod-toggle-item:last-child { border-bottom: none; }
.mod-toggle-info { flex: 1; min-width: 0; }
.mod-toggle-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
}
.mod-toggle-desc {
  display: block;
  font-size: 0.73rem;
  color: var(--text-3);
  margin-top: 2px;
}
.mod-sub-setting {
  margin-left: 8px;
  padding: 10px 14px;
  background: rgba(124,58,237,0.04);
  border-left: 2px solid rgba(124,58,237,0.2);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 4px;
}
.form-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-hint-inline {
  font-size: 0.73rem;
  color: var(--text-3);
}
.form-textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-family: 'Inter', monospace;
  color: var(--text-1);
  background: rgba(10,10,15,0.5);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius);
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-textarea:focus {
  outline: none;
  border-color: var(--purple);
}
.mod-warn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.mod-warn-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(10,10,15,0.4);
  border: 1px solid rgba(124,58,237,0.08);
  border-radius: var(--radius);
}
.mod-warn-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  min-width: 110px;
}
.mod-warn-item .form-select-wrapper { flex: 1; }

/* ── Commands Module ── */
.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 400px;
  overflow-y: auto;
}
.cmd-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  text-align: center;
  color: var(--text-3);
}
.cmd-list-empty p { margin: 0; font-size: 0.82rem; }
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(10,10,15,0.3);
  border: 1px solid rgba(124,58,237,0.08);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}
.cmd-item:hover {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.2);
}
.cmd-item.active {
  background: rgba(124,58,237,0.12);
  border-color: var(--purple);
}
.cmd-item-info { flex: 1; min-width: 0; }
.cmd-item-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Inter', monospace;
}
.cmd-item-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-item-type {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3);
  background: rgba(124,58,237,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.cmd-prefix-hint {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Inter', monospace;
  padding: 0 2px 0 0;
  user-select: none;
}
.cmd-response-types {
  display: flex;
  gap: 10px;
}
.cmd-type-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.cmd-type-option input[type="radio"] {
  accent-color: var(--purple);
}
.cmd-type-label {
  font-size: 0.82rem;
  color: var(--text-2);
}
.cmd-editor-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(124,58,237,0.08);
}
.cmd-editor-placeholder { min-height: 200px; display: flex; align-items: center; justify-content: center; }
.cmd-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmd-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(124,58,237,0.06);
}
.cmd-info-item:last-child { border-bottom: none; }
.cmd-info-label { font-size: 0.78rem; color: var(--text-3); }
.cmd-info-value { font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.form-optional { font-size: 0.72rem; font-weight: 400; color: var(--text-3); }

/* Config Panel */
.config-panel {
  background: rgba(10,10,15,0.6);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.config-panel-header { margin-bottom: 20px; }
.config-panel-header h2 {
  font-size: 0.95rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}

.config-panel-header h2 svg { color: var(--violet); }

/* Forms */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text-2); margin-bottom: 6px;
}

.form-select-wrapper { position: relative; }

.form-select-arrow {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--text-3);
}

.form-select, .form-input, .form-textarea {
  width: 100%; padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 0.85rem;
  transition: border-color 0.15s var(--ease);
}

.form-select {
  appearance: none; -webkit-appearance: none;
  padding-right: 32px; cursor: pointer;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

.form-select option { background: var(--bg-2); }
.form-textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.form-hint { font-size: 0.72rem; color: var(--text-3); margin-top: 4px; }

.placeholder-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

.placeholder-tag {
  padding: 2px 8px; background: var(--purple-dim);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.7rem; color: var(--violet);
  cursor: pointer; font-family: 'Courier New', monospace;
  transition: all 0.15s var(--ease);
}

.placeholder-tag:hover {
  background: rgba(139,92,246,0.18);
  border-color: var(--purple);
}

/* Color Picker */
.color-picker-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.color-picker-input {
  width: 36px; height: 32px; border: none; border-radius: 6px;
  cursor: pointer; background: transparent; padding: 0;
}

.color-picker-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-input::-webkit-color-swatch {
  border: 2px solid var(--border); border-radius: 6px;
}

.color-picker-value {
  font-size: 0.78rem; color: var(--text-2);
  font-family: 'Courier New', monospace;
}

.color-presets { display: flex; gap: 4px; margin-left: auto; }

.color-preset {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.15s var(--ease);
}

.color-preset:hover { border-color: var(--text); transform: scale(1.15); }

/* Preview */
.preview-container {
  background: rgba(10,10,15,0.6);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky; top: 80px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.preview-header h2 {
  font-size: 0.88rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}

.preview-header h2 svg { color: var(--violet); }

.preview-badge {
  padding: 2px 8px; border-radius: var(--radius-full);
  background: rgba(52,211,153,0.1); color: #34d399;
  font-size: 0.65rem; font-weight: 600;
}

.preview-discord { background: #313338; }

.preview-channel-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #2b2d31;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem; font-weight: 600; color: #fff;
}

.preview-channel-bar svg { color: #b5bac1; }

.preview-message-area { padding: 14px; }

.preview-system-msg {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; margin-bottom: 10px;
  font-size: 0.78rem; color: #b5bac1;
}

.preview-system-msg strong { color: #fff; }

.preview-msg { display: flex; gap: 12px; }

.preview-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 700; font-size: 0.85rem;
}

.preview-body { flex: 1; min-width: 0; }

.preview-bot-name {
  font-weight: 700; color: var(--violet);
  font-size: 0.85rem; display: flex; align-items: center; gap: 6px;
  margin-bottom: 3px;
}

.preview-bot-name .bot-tag {
  padding: 1px 5px; background: #5865F2;
  border-radius: 3px; font-size: 0.55rem;
  font-weight: 600; color: #fff;
}

.preview-timestamp {
  font-size: 0.65rem; color: #949ba4; margin-left: 6px; font-weight: 400;
}

.preview-embed {
  margin-top: 4px;
  padding: 10px 14px;
  border-left: 3px solid var(--purple);
  background: rgba(47,49,54,0.6);
  border-radius: 0 4px 4px 0;
}

.preview-embed-title {
  font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; color: #fff;
}

.preview-embed-text {
  font-size: 0.82rem; color: #dcddde; line-height: 1.45;
}

/* Save bar */
.save-bar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* User Info (legacy) */
.user-avatar { width: 28px; height: 28px; border-radius: 50%; }
.user-name { font-size: 0.82rem; font-weight: 600; }

/* Dashboard Nav Status */
.nav-status-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 500; color: var(--text-2);
}

.status-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fbbf24;
  animation: pulse 2s ease-in-out infinite;
}

.status-pill-dot.online { background: #34d399; }
.status-pill-dot.offline { background: #ef4444; animation: none; }

/* Sidebar Mobile */
.sidebar-toggle-mobile {
  display: none;
  position: fixed; bottom: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  color: #fff;
  box-shadow: 0 0 30px var(--purple-glow);
  align-items: center; justify-content: center;
  z-index: 200;
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 20px;
  background: var(--bg-3);
  border: 1px solid var(--border-hover);
  color: #fff; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(80px); opacity: 0;
  transition: all 0.25s var(--ease);
  z-index: 9999;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast-error { border-color: #ED4245; background: rgba(237, 66, 69, 0.15); }

/* Loading states */
.server-list-loading,
.server-list-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 12px; color: var(--text-3); font-size: 0.8rem; text-align: center;
}
.server-list-empty .text-muted { font-size: 0.75rem; color: var(--text-3); opacity: 0.7; }

.loading-spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.loading-spinner-sm {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
  .dash-grid { grid-template-columns: 1fr; }
  .preview-container { position: static; }
}

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-big { grid-column: span 2; }
  .dash-quick-stats { grid-template-columns: repeat(2, 1fr); }
  .status-metrics { grid-template-columns: repeat(2, 1fr); }
  .stats-big-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg);
    flex-direction: column; justify-content: center;
    align-items: center; gap: 28px; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-login-mobile { display: block; }
  .nav-toggle { display: flex; z-index: 1001; }

  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; }
  .hide-mobile { display: none; }

  .stats-bar {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 0;
  }
  .stat-item { padding: 10px 16px; min-width: 120px; flex: 1 1 40%; }
  .stat-sep { display: none; }

  .bento { grid-template-columns: 1fr; }
  .bento-big { grid-column: span 1; }

  .steps { flex-direction: column; align-items: center; gap: 12px; }
  .step-line { width: 1px; height: 32px; }

  .status-metrics { grid-template-columns: repeat(2, 1fr); }

  .cta-box { padding: 48px 24px; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { width: 100%; }

  /* Dashboard */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
    z-index: 200;
  }
  .sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding: 16px; max-width: 100vw; }
  .dash-quick-stats { grid-template-columns: 1fr 1fr; }
  .dash-header { flex-direction: column; gap: 10px; }
  .sidebar-toggle-mobile { display: flex; }
  .nav-status-pill { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; letter-spacing: -0.5px; }
  .hero-sub { font-size: 0.95rem; }
  .stat-item { flex: 1 1 100%; text-align: center; }
  .dash-quick-stats { grid-template-columns: 1fr; }
  .status-metrics { grid-template-columns: 1fr; }
  .stats-big-grid { grid-template-columns: 1fr; }
}
