*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-base: #030303;
  --bg-surface: rgba(255, 255, 255, 0.02);
  --bg-raised: rgba(255, 255, 255, 0.04);
  --bg-hover: rgba(255, 255, 255, 0.08);

  --violet: #7C5CFF;
  --violet-glow: rgba(124, 92, 255, 0.35);
  --pink: #E14FFF;
  --pink-glow: rgba(225, 79, 255, 0.3);

  --text-1: #FFFFFF;
  --text-2: #B0B3C1;
  --text-3: #63667B;

  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-bright: rgba(255, 255, 255, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --blur: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

* {
  cursor: none !important;
}

body {
  background: var(--bg-base);
  color: var(--text-1);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────── CURSOR ─────────────────────────── */
#cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 8px;
  height: 8px;
  background: var(--violet);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.6);
}

#cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(124, 92, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.2s, opacity 0.2s;
}

.cursor-hover #cursor-ring {
  width: 40px;
  height: 40px;
  border-color: rgba(124, 92, 255, 0.7);
  background: rgba(124, 92, 255, 0.06);
}

/* ─────────────────────────── PARTICLES ─────────────────────────── */
#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ─────────────────────────── DECORATIVE ORBS ─────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--violet);
  top: -150px;
  left: -150px;
  animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--pink);
  bottom: -200px;
  right: -200px;
  animation: orbFloat 25s infinite alternate-reverse ease-in-out;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 80px) scale(1.1);
  }
}

/* ─────────────────────────── HEADER ─────────────────────────── */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1160px;
  z-index: 500;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: all 0.4s var(--ease);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: none;
  border-radius: var(--radius-md);
}

header.scrolled {
  top: 10px;
  background: rgba(10, 10, 10, 0.7);
  border-color: var(--glass-border-bright);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.header-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  position: relative;
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.logo-mark svg {
  width: 34px;
  height: 34px;
}

.logo-wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
}

/* Nav */
nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}

/* Header actions */
.header-actions {
  flex-shrink: 0;
}

.btn-discord {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  background: var(--violet-dim);
  border: 1px solid var(--border-vi);
  color: var(--text-1);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}

.btn-discord:hover {
  background: rgba(124, 92, 255, 0.2);
  box-shadow: 0 0 22px rgba(124, 92, 255, 0.2);
  border-color: var(--violet);
  transform: translateY(-1px);
}

/* ─────────────────────────── SECTIONS LAYOUT ─────────────────────────── */
section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─────────────────────────── HERO ─────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 0;
  position: relative;
}

/* Radial ambient light */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 20%, rgba(124, 92, 255, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 8px;
  border-radius: 99px;
  background: var(--bg-raised);
  border: 1px solid var(--border-md);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 28px;
  opacity: 0;
  animation: revealUp 0.7s 0.1s var(--ease) forwards;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  flex-shrink: 0;
  animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 900px;
  margin-top: 20px;
  filter: drop-shadow(0 0 30px rgba(124, 92, 255, 0.15));
}

.hero h1 .accent {
  background: linear-gradient(to right, #fff 20%, var(--violet) 50%, var(--pink) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.hero-sub {
  margin-top: 24px;
  font-size: 20px;
  color: var(--text-2);
  font-weight: 400;
  max-width: 600px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  opacity: 0;
  animation: revealUp 0.8s 0.55s var(--ease) forwards;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  background: var(--violet);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, background 0.2s;
  box-shadow: 0 4px 24px rgba(124, 92, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 36px rgba(124, 92, 255, 0.45);
  background: #8c6fff;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-md);
  color: var(--text-2);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 56px;
  padding-top: 56px;
  border-top: none;
  opacity: 0;
  animation: revealUp 0.8s 0.7s var(--ease) forwards;
}

.hero-stat-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.hero-divider {
  width: 1px;
  height: 36px;
  background: var(--border-md);
}

/* ─────────────────────────── WAVE DIVIDER ─────────────────────────── */
.wave-divider {
  width: 100%;
  line-height: 0;
  margin-top: 80px;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ─────────────────────────── FEATURES ─────────────────────────── */
.features-section {
  background: var(--bg-surface);
  padding: 100px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 540px;
}

.section-title em {
  font-style: normal;
  color: var(--text-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.feat-card {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s var(--ease);
}

.feat-card:hover {
  border-color: var(--glass-border-bright);
  background: var(--bg-raised);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(124, 92, 255, 0.1);
}

.feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--violet-dim);
  border: 1px solid rgba(124, 92, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--violet);
}

.feat-icon svg {
  width: 20px;
  height: 20px;
}

.feat-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feat-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─────────────────────────── NUMBERS BAND ─────────────────────────── */
.numbers-band {
  background: var(--bg-base);
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.num-item {
  padding: 20px;
  border-right: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.num-item.visible {
  opacity: 1;
  transform: none;
}

.num-item:last-child {
  border-right: none;
}

.num-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-1);
}

.num-value span {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.num-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ─────────────────────────── MODULES ─────────────────────────── */
.modules-section {
  background: var(--bg-surface);
  padding: 100px 0;
}

.modules-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 56px;
  align-items: start;
}

/* Module sidebar tabs */
.mod-tabs {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.mod-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.mod-tab:hover {
  background: var(--bg-hover);
  color: var(--text-1);
}

.mod-tab.active {
  background: var(--violet-dim);
  border-left-color: var(--violet);
  color: var(--text-1);
}

.mod-tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.mod-tab.active .mod-tab-icon {
  background: var(--violet-dim);
  color: var(--violet);
}

.mod-tab-icon svg {
  width: 15px;
  height: 15px;
}

.role-tag {
  background: var(--violet-dim);
  color: var(--violet);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(124, 92, 255, 0.2);
}

.role-tag i {
  cursor: pointer;
  opacity: 0.7;
}

.multi-select-container {
  background: var(--bg-raised);
  border: 1px solid var(--border-md);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 45px;
  align-items: center;
}

.role-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px dashed var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.2s;
}

.role-add-btn:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: rgba(124, 92, 255, 0.1);
}

.setup-step-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-md);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.setup-step-box.locked {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(1);
}

.setup-step-num {
  width: 24px;
  height: 24px;
  background: var(--violet);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Module content panel */
.mod-panels {
  position: relative;
}

.mod-panel {
  display: none;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: panelIn 0.3s var(--ease);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.mod-panel.active {
  display: block;
}

.mod-panel-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mod-panel-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mod-panel-body {
  padding: 24px 26px;
}

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-info {
  flex: 1;
}

.toggle-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
}

.toggle-desc {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* Toggle switch */
.switch,
.toggle-switch {
  width: 40px;
  height: 22px;
  background: var(--bg-hover);
  border: 1px solid var(--glass-border);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}

.switch.on,
.toggle-switch.on {
  background: var(--violet);
  box-shadow: 0 0 15px var(--violet-glow);
}

.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.switch.on .switch-knob {
  transform: translateX(18px);
}

/* Select field */
.field {
  margin: 14px 0;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}

.field select,
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

.field select option {
  background: var(--bg-surface);
}

.field textarea {
  resize: vertical;
}

/* Channel selector */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.channel-item:hover {
  border-color: var(--border-md);
  color: var(--text-1);
}

.channel-item.selected {
  border-color: rgba(124, 92, 255, 0.4);
  background: var(--violet-dim);
  color: var(--text-1);
}

.channel-hash {
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
}

/* ─────────────────────────── DASHBOARD PREVIEW ─────────────────────────── */
.dashboard-section {
  background: var(--bg-base);
  padding: 100px 0;
}

.dash-preview {
  margin-top: 56px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.dash-preview.visible {
  opacity: 1;
  transform: none;
}

.dash-topbar {
  height: 48px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 14px;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dots {
  display: flex;
  gap: 7px;
}

.dash-url-bar {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 28px;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--text-3);
  gap: 6px;
}

.lock-icon {
  color: var(--violet);
  font-size: 10px;
}

.dash-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 440px;
}

.dash-sidebar {
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-server {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.dash-server-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.dash-server-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.dash-server-tag {
  font-size: 11px;
  color: var(--text-3);
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dash-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-2);
}

.dash-nav-item.active {
  background: var(--violet-dim);
  border-left-color: var(--violet);
  color: var(--text-1);
}

.dash-nav-item svg {
  width: 14px;
  height: 14px;
}

.dash-main {
  padding: 28px;
  overflow: hidden;
}

.dash-page-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--text-1);
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-stat-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.dash-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.dash-stat-val {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dash-stat-delta {
  font-size: 12px;
  color: #22c55e;
  margin-top: 4px;
}

.dash-mod-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.dash-mod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dash-mod-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.dash-toggle-mini {
  width: 34px;
  height: 18px;
  background: var(--violet);
  border-radius: 9px;
  position: relative;
}

.dash-toggle-mini::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
}

.dash-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dash-mini-row:last-child {
  border: none;
}

.dash-mini-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--violet);
  background: var(--violet-dim);
  padding: 1px 7px;
  border-radius: 4px;
}

/* ─────────────────────────── PRICING / CTA SECTION ─────────────────────────── */
.cta-section {
  background: var(--bg-surface);
  padding: 100px 0;
}

.cta-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 200px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 79, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.cta-sub {
  font-size: 15px;
  color: var(--text-2);
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ─────────────────────────── FOOTER ─────────────────────────── */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 10px;
  max-width: 220px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--text-1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}

/* ─────────────────────────── SERVER SELECT OVERLAY ─────────────────────────── */
#server-select-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 17, 21, 0.96);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: overlayIn 0.35s var(--ease);
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#server-select-overlay.show {
  display: flex;
}

.server-modal {
  width: 100%;
  max-width: 560px;
  padding: 24px;
  animation: modalIn 0.35s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.server-modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.server-modal-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 28px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.server-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
  text-align: center;
}

.server-card:hover {
  border-color: var(--border-vi);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.1);
  transform: translateY(-2px);
}

.server-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.server-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}

.server-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
}

.badge-installed {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-invite {
  background: rgba(124, 92, 255, 0.15);
  color: var(--violet);
  border: 1px solid rgba(124, 92, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.badge-invite:hover {
  background: var(--violet);
  color: #fff;
}

.server-card.bot-missing {
  opacity: 0.8;
  filter: grayscale(0.5);
  transition: all 0.3s;
}

.server-card.bot-missing:hover {
  filter: none;
  opacity: 1;
}

.badge-add {
  background: var(--violet-dim);
  color: var(--violet);
  border: 1px solid rgba(124, 92, 255, 0.25);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-1);
}

/* ─────────────────────────── DASHBOARD APP ─────────────────────────── */
#dashboard-app {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background-clip: padding-box;
  display: none;
  animation: overlayIn 0.6s var(--ease);
}

#dashboard-app.show {
  display: flex !important;
  flex-direction: column;
}

.app-topbar {
  height: 64px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
  z-index: 10;
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-server-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-server-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.app-server-name {
  font-size: 14px;
  font-weight: 600;
}

.online-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.save-changes-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--violet), #b372ff);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 15px rgba(124, 92, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.save-changes-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: 0.5s;
}

.save-changes-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.45);
  filter: brightness(1.1);
}

.save-changes-btn:hover::after {
  left: 100%;
}

.user-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border-md);
  transition: border-color 0.2s;
}

.user-avatar-btn:hover {
  border-color: rgba(124, 92, 255, 0.5);
}

.exit-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.exit-btn:hover {
  background: var(--bg-hover);
  color: var(--text-1);
  border-color: var(--border-md);
}

.app-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.app-sidebar {
  width: 240px;
  background: rgba(255, 255, 255, 0.01);
  border-right: 1px solid var(--glass-border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 10px 4px;
  margin-top: 8px;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  margin-bottom: 4px;
}

.app-nav-item:hover {
  background: var(--bg-hover);
  color: #fff;
  transform: translateX(4px);
}

.app-nav-item.active {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 8px 16px var(--violet-glow);
}

.app-nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px;
  background: var(--bg-base);
}

.app-page {
  display: none;
}

.app-page.active {
  display: block;
  animation: panelIn 0.3s var(--ease);
}

.app-page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  background: linear-gradient(to right, var(--text-1), var(--text-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-page-sub {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 32px;
}

.dash-mod-card {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
  outline: none;
}

/* ─────────────────────────── KEYFRAMES ─────────────────────────── */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ─────────────────────────── SCROLLBAR ─────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.3);
}

/* ─────────────────────────── TOAST ─────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 92, 255, 0.1);
  display: flex;
  align-items: center;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
  pointer-events: all;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.toast-error .toast-icon {
  background: rgba(215, 38, 56, 0.15);
  color: #d72638;
}

.toast-info .toast-icon {
  background: rgba(124, 92, 255, 0.15);
  color: var(--violet);
}

.toast-msg {
  font-size: 14px;
  color: var(--text-1);
  font-weight: 500;
  line-height: 1.4;
}

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */
@media(max-width:900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .numbers-grid .num-item:nth-child(2) {
    border-right: none;
  }

  .modules-layout {
    grid-template-columns: 1fr;
  }

  .mod-tabs {
    position: static;
  }

  header {
    padding: 0 20px;
  }

  nav {
    display: none;
  }
}

@media(max-width:640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-divider {
    display: none;
  }

  .cta-card {
    flex-direction: column;
    padding: 40px 28px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .server-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }
}