/* ============================================================
   MemiGuard — Modern Dark-Mode SaaS Landing Page & Dashboard
   Design System: Linear / Vercel / Discord-inspired
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* — Background Layers — */
  --bg-main: #0b0e14;
  --bg-secondary: #0f1219;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-card-active: rgba(255, 255, 255, 0.08);

  /* — Discord Blurple Accents — */
  --blurple: #5865F2;
  --blurple-hover: #4752C4;
  --blurple-glow: rgba(88, 101, 242, 0.35);
  --blurple-subtle: rgba(88, 101, 242, 0.08);
  --blurple-border: rgba(88, 101, 242, 0.15);
  --blurple-border-strong: rgba(88, 101, 242, 0.25);

  /* — Secondary Primary (retained for sidebar/dashboard) — */
  --primary: #8b5cf6;
  --primary-dim: #7c3aed;
  --primary-glow: #a78bfa;
  --primary-bg: rgba(139, 92, 246, 0.08);

  /* — Typography — */
  --text: #ffffff;
  --text-secondary: #c9d1d9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  /* — Status Colors — */
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);

  /* — Borders — */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* — Radii — */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --radius-pill: 100px;

  /* — Shadows — */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --glow: 0 0 24px var(--blurple-glow);
  --glow-strong: 0 0 48px var(--blurple-glow);

  /* — Glass — */
  --glass-bg: rgba(11, 14, 20, 0.72);
  --glass-bg-heavy: rgba(11, 14, 20, 0.88);
  --glass-border: rgba(255, 255, 255, 0.06);

  /* — Accent Colors — */
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;
  --accent-teal: #14b8a6;
  --accent-orange: #f97316;

  /* — Transitions — */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-main);
  color: var(--text-secondary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
}

/* — Custom Scrollbar — */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(88, 101, 242, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(88, 101, 242, 0.45);
}

/* — Selection — */
::selection {
  background: rgba(88, 101, 242, 0.35);
  color: #fff;
}

/* — Utility — */
.hidden {
  display: none !important;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Gradient text for hero / section titles */
.hero-title-gradient,
.section-title-gradient {
  background: linear-gradient(135deg, #c4b5fd, var(--blurple), #a78bfa, #c4b5fd);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
}

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

/* ============================================================
   4. KEYFRAME ANIMATIONS
   ============================================================ */

/* Hero orb floating */
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.08); }
  66% { transform: translate(-30px, 30px) scale(0.92); }
}

/* Mesh background pulse */
@keyframes meshShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Hero glow pulse */
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.12); }
}

/* Badge shimmer */
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Green dot pulse */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Entrance */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pricing border glow */
@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Modal entrance */
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Toast entrance */
@keyframes toastSlide {
  from { opacity: 0; transform: translateX(60px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastTimer {
  from { width: 100%; }
  to { width: 0%; }
}

/* Skeleton shimmer */
@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Ambient background drift for section headers */
@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.05); }
}

/* ============================================================
   5. NAVIGATION BAR
   ============================================================ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 0 40px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-out);
}

.top-nav.scrolled {
  background: var(--glass-bg-heavy);
  box-shadow:
    0 4px 40px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(88, 101, 242, 0.03);
  border-bottom-color: transparent;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--blurple), var(--blurple-hover));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(88, 101, 242, 0.35);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.nav-logo:hover .nav-logo-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.5);
}

.nav-logo-icon svg {
  width: 18px;
  height: 18px;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #a5b4fc, var(--blurple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blurple);
  transition: width 0.3s var(--ease-out);
  border-radius: 1px;
}

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

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

/* Profile Dropdown */
.nav-profile {
  position: relative;
  cursor: pointer;
}

.nav-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.nav-profile-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.nav-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--blurple);
}

.nav-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: none;
  overflow: hidden;
}
.nav-dropdown.open {
  display: block;
  animation: fadeIn 0.2s var(--ease-out);
}

.nav-dropdown a,
.nav-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover,
.nav-dropdown button:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.nav-dropdown hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

/* ============================================================
   6. PUBLIC PAGES — LAYOUT
   ============================================================ */
.public-page {
  display: none;
  padding-top: 64px;
  min-height: 100vh;
}
.public-page.active {
  display: block;
}

.page-section {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Section Headers */
.section-header-center {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--blurple-subtle);
  border: 1px solid var(--blurple-border);
  color: var(--primary-glow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Ambient glow behind section headers */
.section-header-center::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(88, 101, 242, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
  background: url('/images/hero-section/hero-section.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 14, 20, 0.85) 0%,
    rgba(11, 14, 20, 0.7) 40%,
    rgba(11, 14, 20, 0.9) 100%
  );
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero-orb-1 {
  width: 700px;
  height: 700px;
  background: rgba(88, 101, 242, 0.15);
  top: -25%;
  left: -15%;
  animation: orbFloat 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(72, 82, 196, 0.12);
  bottom: -15%;
  right: -8%;
  animation: orbFloat 14s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(167, 139, 250, 0.08);
  top: 35%;
  right: 15%;
  animation: orbFloat 20s ease-in-out infinite 3s;
}
.hero-orb-4 {
  width: 200px;
  height: 200px;
  background: rgba(59, 130, 246, 0.06);
  top: 20%;
  left: 15%;
  animation: orbFloat 22s ease-in-out infinite 5s;
}

/* Dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(88, 101, 242, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
}

/* Gradient mesh */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(88, 101, 242, 0.05), transparent 70%),
    radial-gradient(ellipse 60% 40% at 30% 60%, rgba(59, 130, 246, 0.03), transparent),
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(236, 72, 153, 0.02), transparent);
  animation: meshShift 20s ease-in-out infinite;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

/* Central glow behind hero content */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--blurple-subtle);
  border: 1px solid var(--blurple-border);
  color: var(--primary-glow);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
  animation: fadeInUp 0.7s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.hero-title {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.02;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
  color: var(--text);
}

.hero-title-gradient {
  background: linear-gradient(135deg, #c4b5fd, var(--blurple), #a78bfa, #c4b5fd);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 56px;
  justify-content: center;
  margin-top: 48px;
  animation: fadeInUp 0.7s var(--ease-out) 0.4s both;
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.5px;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blurple), var(--primary-glow));
  border-radius: 2px;
  margin: 0 auto 20px;
  opacity: 0.6;
}

/* ============================================================
   8. STATS BANNER
   ============================================================ */
.stats-banner {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 40px;
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.04), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-banner-item {
  text-align: center;
  transition: transform 0.3s var(--ease-out);
}
.stats-banner-item:hover {
  transform: translateY(-3px);
}

.stats-banner-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-glow);
  letter-spacing: -1px;
}

.stats-banner-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* ============================================================
   9. BUTTONS
   ============================================================ */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.25s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97) translateY(1px);
}

/* Ripple */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255, 255, 255, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.btn:active::after {
  opacity: 1;
}

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--blurple), var(--blurple-hover));
  color: #fff;
  box-shadow: 0 2px 12px rgba(88, 101, 242, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(88, 101, 242, 0.5);
  transform: translateY(-2px);
}

/* Secondary */
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Danger */
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Discord */
.btn-discord {
  background: linear-gradient(135deg, var(--blurple), var(--blurple-hover));
  color: #fff;
  box-shadow: 0 4px 24px rgba(88, 101, 242, 0.4);
}
.btn-discord:hover {
  box-shadow: 0 8px 36px rgba(88, 101, 242, 0.6), 0 0 60px rgba(88, 101, 242, 0.2);
  transform: translateY(-3px);
}
.btn-discord:active {
  transform: translateY(0) scale(0.98);
}

/* Sizes */
.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
  border-radius: 14px;
  font-weight: 700;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: var(--radius-xs);
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   10. FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(4px);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), var(--glow);
}

/* Top gradient line on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blurple), var(--primary-glow));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::before {
  opacity: 1;
}

/* Shimmer sweep */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.015), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.feature-card:hover::after {
  left: 100%;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: var(--blurple-subtle);
  border: 1px solid var(--blurple-border);
  transition: all 0.3s var(--ease-out);
}
.feature-card:hover .feature-icon {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.25);
}

/* Unique icon colors per card */
.feature-card:nth-child(2) .feature-icon { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.12); }
.feature-card:nth-child(3) .feature-icon { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.12); }
.feature-card:nth-child(4) .feature-icon { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.12); }
.feature-card:nth-child(5) .feature-icon { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.12); }
.feature-card:nth-child(6) .feature-icon { background: rgba(236, 72, 153, 0.1); border-color: rgba(236, 72, 153, 0.12); }
.feature-card:nth-child(7) .feature-icon { background: rgba(20, 184, 166, 0.1); border-color: rgba(20, 184, 166, 0.12); }
.feature-card:nth-child(8) .feature-icon { background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.12); }
.feature-card:nth-child(9) .feature-icon { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.12); }
.feature-card:nth-child(10) .feature-icon { background: rgba(6, 182, 212, 0.1); border-color: rgba(6, 182, 212, 0.12); }
.feature-card:nth-child(11) .feature-icon { background: rgba(88, 101, 242, 0.1); border-color: rgba(88, 101, 242, 0.12); }
.feature-card:nth-child(12) .feature-icon { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.12); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   11. WHY GRID
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blurple), var(--primary-glow));
  opacity: 0;
  transition: opacity 0.3s;
}

.why-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}
.why-card:hover::before {
  opacity: 1;
}

.why-num {
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blurple), var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  line-height: 1;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   12. TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  backdrop-filter: blur(4px);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 64px;
  font-weight: 900;
  color: rgba(88, 101, 242, 0.06);
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.testimonial-stars {
  color: var(--warning);
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blurple), var(--primary-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  box-shadow:
    0 0 0 2px var(--bg-main),
    0 0 0 4px rgba(88, 101, 242, 0.3);
}

.testimonial-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   13. FAQ ACCORDION
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.faq-item.open {
  border-color: var(--blurple-border-strong);
  box-shadow: var(--glow);
  background: var(--bg-card-hover);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
  min-height: 48px;
}
.faq-question:hover {
  color: var(--primary-glow);
}

.faq-arrow {
  transition: transform 0.35s var(--ease-spring);
  font-size: 12px;
  color: var(--text-muted);
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   14. NEWSLETTER
   ============================================================ */
.newsletter-section {
  text-align: center;
  padding: 120px 40px;
  background: linear-gradient(180deg, transparent, rgba(88, 101, 242, 0.04), transparent);
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 14px;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.25s var(--ease-out);
  backdrop-filter: blur(4px);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--blurple);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.12);
  transform: translateY(-1px);
}
.newsletter-form input::placeholder {
  color: var(--text-muted);
}

/* ============================================================
   15. PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  position: relative;
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(4px);
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-strong);
  background: var(--bg-card-hover);
}

/* Featured card */
.pricing-card.featured {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.1) 0%, var(--bg-card) 50%);
  box-shadow: var(--glow);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--blurple), var(--primary-glow), var(--blurple));
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite;
}
.pricing-card.featured:hover {
  box-shadow: 0 0 60px rgba(88, 101, 242, 0.3), var(--glow-strong);
}
.pricing-card.featured::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blurple), var(--primary-glow));
  color: #fff;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}

.pricing-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 56px;
  font-weight: 900;
  margin: 20px 0;
  letter-spacing: -3px;
  line-height: 1.1;
  color: var(--text);
}

.pricing-price span {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 28px 0;
}

.pricing-features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  transition: transform 0.2s;
}
.pricing-features li:hover {
  transform: translateX(4px);
}

.pricing-features li svg {
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.5;
}
.pricing-features li.disabled:hover {
  transform: none;
}

.pricing-cta {
  width: 100%;
  margin-top: 12px;
}

/* ============================================================
   16. ABOUT
   ============================================================ */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(4px);
}
.about-value-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.about-value-icon {
  font-size: 44px;
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease-spring);
}
.about-value-card:hover .about-value-icon {
  transform: scale(1.15);
}

.about-value-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-value-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.about-story {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-story p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 18px;
}

/* ============================================================
   17. CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 920px;
  margin: 0 auto;
}

.contact-form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(4px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(4px);
}
.contact-info-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.contact-info-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.contact-info-card a {
  color: var(--primary-glow);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-card a:hover {
  color: var(--text);
}

/* ============================================================
   18. BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-strong);
  background: var(--bg-card-hover);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--blurple-subtle), var(--bg-card-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-card-body {
  padding: 28px;
}

.blog-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.blog-tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--blurple-subtle);
  color: var(--primary-glow);
  border: 1px solid var(--blurple-border);
}

.blog-date {
  font-size: 12px;
  color: var(--text-muted);
}

.blog-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
  color: var(--text);
}

.blog-card-body p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Featured post */
.blog-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(4px);
}
.blog-featured:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}
.blog-featured .blog-card-img {
  height: 100%;
  min-height: 300px;
}
.blog-featured .blog-card-body {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured h3 {
  font-size: 26px;
}

/* Blog search / filters */
.blog-search {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.blog-search input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.25s var(--ease-out);
}
.blog-search input:focus {
  outline: none;
  border-color: var(--blurple);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.12);
}
.blog-search input::placeholder {
  color: var(--text-muted);
}

.blog-cat-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-cat-btn {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  font-family: inherit;
}
.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: var(--blurple-subtle);
  color: var(--primary-glow);
  border-color: var(--blurple-border-strong);
}

/* Blog post view */
.blog-post-view {
  max-width: 760px;
  margin: 0 auto;
}

.blog-post-view h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.blog-post-view .post-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.blog-post-view .post-content {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
}
.blog-post-view .post-content h2 {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.blog-post-view .post-content h3 {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.blog-post-view .post-content p { margin-bottom: 16px; }
.blog-post-view .post-content ul,
.blog-post-view .post-content ol {
  margin: 12px 0;
  padding-left: 24px;
}
.blog-post-view .post-content li { margin-bottom: 6px; }
.blog-post-view .post-content code {
  background: var(--bg-card-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary-glow);
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.blog-back:hover {
  color: var(--primary-glow);
}

/* ============================================================
   19. DOCS
   ============================================================ */
.docs-layout {
  display: flex;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px;
}

.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.docs-sidebar-nav a {
  display: block;
  padding: 9px 16px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease-out);
  margin-bottom: 2px;
  border-left: 2px solid transparent;
  cursor: pointer;
}
.docs-sidebar-nav a:hover {
  color: var(--text-secondary);
  background: var(--bg-card-hover);
  transform: translateX(2px);
}
.docs-sidebar-nav a.active {
  color: var(--primary-glow);
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.12), rgba(88, 101, 242, 0.04));
  border-left-color: var(--blurple);
}

.docs-sidebar-nav h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 14px 16px 6px;
  font-weight: 700;
}

.docs-content {
  flex: 1;
  min-width: 0;
}

.docs-content h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.docs-content h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.docs-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.docs-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.docs-content ul {
  margin: 8px 0 18px;
  padding-left: 22px;
}
.docs-content li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 6px;
}
.docs-content code {
  background: var(--bg-card-hover);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary-glow);
}
.docs-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 18px;
  margin: 18px 0;
  overflow-x: auto;
  font-size: 13px;
}
.docs-content pre code {
  background: none;
  padding: 0;
}

.docs-content .callout {
  background: var(--blurple-subtle);
  border: 1px solid var(--blurple-border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 18px 0;
}
.docs-content .callout-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-glow);
  margin-bottom: 6px;
}

/* ============================================================
   20. FOOTER
   ============================================================ */
.site-footer {
  padding: 72px 40px 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 14px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 0;
  transition: all 0.2s var(--ease-out);
}
.footer-col a:hover {
  color: var(--primary-glow);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* ============================================================
   21. DASHBOARD LAYOUT
   ============================================================ */
.app-container {
  display: none;
  height: 100vh;
  overflow: hidden;
}
.app-container.active {
  display: flex;
}

/* Sidebar */
.dash-sidebar {
  width: 256px;
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  position: fixed;
  left: 0;
  top: 0;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dash-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blurple), var(--blurple-hover));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(88, 101, 242, 0.35);
  flex-shrink: 0;
}

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

.logo-text {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #a5b4fc, var(--blurple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.server-info {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid var(--blurple);
  object-fit: cover;
  flex-shrink: 0;
}

.server-details {
  flex: 1;
  min-width: 0;
}

.server-name {
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-tier {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tier-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tier-dot.free { background: #64748b; }
.tier-dot.basic { background: var(--blurple); }
.tier-dot.pro { background: var(--warning); }

.user-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 6px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--blurple);
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  color: var(--text-muted);
  font-size: 10px;
}

/* Nav Items */
.nav-section {
  margin-bottom: 2px;
}

.nav-section-title {
  color: var(--text-muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 10px 10px 4px;
  font-weight: 700;
}

.nav-item {
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  transition: all 0.2s var(--ease-out);
  margin-bottom: 1px;
  font-size: 12px;
  font-weight: 500;
  border-left: 3px solid transparent;
  position: relative;
}
.nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-secondary);
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.12), rgba(88, 101, 242, 0.04));
  color: var(--primary-glow);
  border-left-color: var(--blurple);
  font-weight: 600;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: all 0.2s;
}
.nav-item.active svg {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(88, 101, 242, 0.3));
}

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

.premium-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.03));
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.premium-banner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), transparent, rgba(245, 158, 11, 0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.premium-banner:hover::before {
  opacity: 1;
}

.premium-banner h4 {
  color: var(--warning);
  font-size: 12px;
  margin-bottom: 2px;
  font-weight: 700;
}

.premium-banner p {
  color: var(--text-muted);
  font-size: 10px;
  margin-bottom: 8px;
}

.premium-btn {
  background: linear-gradient(135deg, var(--warning), #d97706);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  width: 100%;
  transition: all 0.25s var(--ease-out);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.premium-btn:hover {
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger svg {
  width: 24px;
  height: 24px;
  color: var(--text);
  transition: transform 0.3s;
}
.hamburger.active svg {
  transform: rotate(90deg);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
}

/* Main Content */
.dash-main {
  margin-left: 256px;
  padding: 24px 28px;
  padding-top: 88px;
  min-height: 100vh;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

/* Dashboard Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.header-left h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}

.header-left p {
  color: var(--text-muted);
  font-size: 13px;
}

.server-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 36px 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 220px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  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='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.25s var(--ease-out);
}
.server-select:focus {
  outline: none;
  border-color: var(--blurple);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.12);
  transform: translateY(-1px);
}

/* ============================================================
   22. DASHBOARD STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-strong);
  border-color: var(--border-strong);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blurple), var(--primary-glow));
  opacity: 0.7;
  transition: opacity 0.3s;
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-card.danger::before { background: linear-gradient(90deg, var(--danger), #f87171); }
.stat-card.success::before { background: linear-gradient(90deg, var(--success), #4ade80); }
.stat-card.warning::before { background: linear-gradient(90deg, var(--warning), #fbbf24); }

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s var(--ease-spring);
}
.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-icon.purple { background: rgba(88, 101, 242, 0.12); }
.stat-icon.red { background: rgba(239, 68, 68, 0.12); }
.stat-icon.green { background: rgba(34, 197, 94, 0.12); }
.stat-icon.yellow { background: rgba(245, 158, 11, 0.12); }

.stat-value {
  font-size: 32px;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -1.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ============================================================
   23. DASHBOARD SECTIONS & TABLES
   ============================================================ */
.section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.3s;
  backdrop-filter: blur(4px);
}
.section:hover {
  border-color: var(--border-strong);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.section-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Tables */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-xs);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 1;
}
.table th:first-child { border-radius: var(--radius-xs) 0 0 0; }
.table th:last-child { border-radius: 0 var(--radius-xs) 0 0; }

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  transition: background 0.15s;
}

.table tbody tr {
  transition: background 0.15s;
}
.table tbody tr:hover td {
  background: rgba(88, 101, 242, 0.05);
}
.table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}
.table tbody tr:nth-child(even):hover td {
  background: rgba(88, 101, 242, 0.06);
}
.table tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   24. BADGES
   ============================================================ */
.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s;
}
.badge:hover {
  transform: scale(1.05);
}

.badge-warn { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.15); }
.badge-kick { background: rgba(249, 115, 22, 0.12); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.15); }
.badge-ban { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.15); }
.badge-mute { background: rgba(88, 101, 242, 0.12); color: var(--primary-glow); border: 1px solid rgba(88, 101, 242, 0.15); }
.badge-open { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.15); }
.badge-closed { background: rgba(100, 116, 139, 0.12); color: var(--text-muted); border: 1px solid rgba(100, 116, 139, 0.15); }

/* ============================================================
   25. FORMS
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  transition: all 0.25s var(--ease-out);
  font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blurple);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.12);
  background: var(--bg-main);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-strong);
}

.form-select {
  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='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}

.form-hint {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 5px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ============================================================
   26. TOGGLES
   ============================================================ */
.toggle {
  width: 48px;
  height: 26px;
  background: var(--bg-card-hover);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.toggle:hover {
  border-color: var(--border-strong);
}

.toggle.active {
  background: var(--blurple);
  border-color: var(--blurple);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.35);
}

.toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.toggle.active::after {
  transform: translateX(22px);
}

/* ============================================================
   27. MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideUp 0.35s var(--ease-spring);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(88, 101, 242, 0.08);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.modal-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* ============================================================
   28. TOASTS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: toastSlide 0.45s var(--ease-spring);
  min-width: 300px;
  max-width: 420px;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--blurple);
  animation: toastTimer 4s linear forwards;
}
.toast.success::after { background: var(--success); }
.toast.error::after { background: var(--danger); }
.toast.warning::after { background: var(--warning); }

.toast span:first-child { font-size: 18px; flex-shrink: 0; }
.toast span:last-child { font-size: 13px; font-weight: 500; line-height: 1.4; }

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

/* ============================================================
   29. EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
  border-radius: var(--radius);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
  filter: grayscale(0.3);
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* ============================================================
   30. LOADING STATES
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-xs);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--blurple);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn .loading-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

/* ============================================================
   31. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.animate-in {
  animation: fadeIn 0.35s ease-out;
}

/* ============================================================
   32. RESPONSIVE — TABLET (max-width: 1200px)
   ============================================================ */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid,
  .features-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   33. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .dash-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .dash-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .sidebar-overlay.active {
    display: block;
  }

  .dash-main {
    margin-left: 0;
    padding: 20px 16px;
    padding-top: 84px;
  }

  .header {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .server-select {
    min-width: 100%;
  }

  .stats-grid,
  .form-grid,
  .pricing-grid,
  .features-grid,
  .blog-grid,
  .about-values,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 20px;
    min-height: auto;
    padding-top: 100px;
  }
  .hero-title {
    letter-spacing: -2px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    min-height: 48px;
  }
  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .page-section {
    padding: 80px 20px;
  }

  .top-nav {
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
  }

  .table {
    font-size: 12px;
  }
  .table th,
  .table td {
    padding: 10px 12px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    flex-direction: column;
    padding: 32px 20px;
  }
  .docs-sidebar {
    width: 100%;
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 44px;
  }
  .nav-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .stats-banner {
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 20px;
    max-width: 100%;
  }
  .stats-banner-item {
    min-width: calc(50% - 12px);
  }

  .newsletter-section {
    padding: 80px 20px;
  }
}

/* ============================================================
   34. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
    letter-spacing: -2px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .pricing-price {
    font-size: 44px;
  }
  .section-title {
    font-size: 28px;
  }
  .feature-card {
    padding: 28px 24px;
  }
  .stats-banner {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    max-width: 100%;
  }
  .stats-banner-item {
    min-width: calc(50% - 20px);
  }

  .newsletter-section {
    padding: 60px 16px;
  }
}

/* ============================================================
   35. ACCESSIBILITY — WCAG AA COMPLIANCE
   ============================================================ */
/* Ensure minimum 4.5:1 contrast ratio on text */
@media (prefers-contrast: high) {
  :root {
    --text: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    --border: rgba(255, 255, 255, 0.15);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--blurple);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   END OF STYLESHEET
   ============================================================ */
