@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --bg: #07090c;
  --surface: #0c0f14;
  --surface-2: #12161d;
  --surface-3: #1a1f28;
  --surface-4: #232a36;
  --accent: #e8ff59;
  --accent-2: #59ffb3;
  --accent-3: #ffd659;
  --text: #e8ecf1;
  --text-2: #94a3b8;
  --text-3: #5f6d7e;
  --border: #161b24;
  --border-2: #1f2633;
  --danger: #ff5a5a;
  --ok: #47ff9a;
  --warn: #ffcc47;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-icon: 'Material Symbols Rounded', monospace;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(232,255,89,0.06);
  --gradient-accent: linear-gradient(135deg, #fff59d, #e8ff59, #59ffb3);
  --gradient-warm: linear-gradient(135deg, #ffd659, #e8ff59, #59ffb3, #59dfff);
  --gradient-card: linear-gradient(180deg, rgba(232,255,89,0.025) 0%, rgba(89,255,179,0.008) 100%);
  --gradient-border: linear-gradient(135deg, rgba(232,255,89,0.25), rgba(89,255,179,0.15), rgba(89,223,255,0.08));
  --gradient-hero: linear-gradient(135deg, #fff59d 0%, #e8ff59 30%, #59ffb3 70%, #59dfff 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 14.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ANIMATED DOT-MATRIX BACKGROUND
   ============================================ */
.dot-matrix {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(232,255,89,0.055) 0.8px, transparent 1.2px),
    radial-gradient(circle at 50% 50%, rgba(89,255,179,0.035) 0.6px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255,214,89,0.02) 1px, transparent 1.5px);
  background-size: 28px 28px, 56px 56px, 84px 84px;
  animation: dotMatrixDrift 60s linear infinite;
  pointer-events: none;
}
@keyframes dotMatrixDrift {
  0% { background-position: 0 0, 0 0, 0 0; }
  33% { background-position: 28px 14px, -28px 56px, 42px -42px; }
  66% { background-position: -14px 28px, 56px -28px, -42px 84px; }
  100% { background-position: 0 0, 0 0, 0 0; }
}

/* Subtle grid lines overlay */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(232,255,89,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,255,89,0.015) 1px, transparent 1px);
  background-size: 120px 120px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
}

/* ============================================
   PARALLAX MORNING LAYERS
   ============================================ */
.parallax-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.parallax-1 {
  background:
    radial-gradient(ellipse 80% 50% at 20% 25%, rgba(255,214,89,0.045) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 75%, rgba(89,255,179,0.03) 0%, transparent 50%);
  animation: parallaxFloat1 35s ease-in-out infinite alternate;
}
.parallax-2 {
  background:
    radial-gradient(ellipse 50% 70% at 65% 20%, rgba(232,255,89,0.025) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 35% 80%, rgba(89,223,255,0.02) 0%, transparent 50%);
  animation: parallaxFloat2 28s ease-in-out infinite alternate-reverse;
  mix-blend-mode: screen;
}
.parallax-3 {
  background: radial-gradient(ellipse 40% 30% at 50% 50%, rgba(232,255,89,0.015) 0%, transparent 60%);
  animation: parallaxFloat3 45s ease-in-out infinite alternate;
  mix-blend-mode: overlay;
}
@keyframes parallaxFloat1 {
  0% { transform: translate(0,0) scale(1); opacity: 0.8; }
  100% { transform: translate(60px,-40px) scale(1.08); opacity: 1; }
}
@keyframes parallaxFloat2 {
  0% { transform: translate(0,0) scale(1); opacity: 0.6; }
  100% { transform: translate(-50px,30px) scale(1.12); opacity: 0.9; }
}
@keyframes parallaxFloat3 {
  0% { transform: translate(0,0) rotate(0deg); opacity: 0.4; }
  100% { transform: translate(20px,-20px) rotate(2deg); opacity: 0.7; }
}

/* ============================================
   LAYOUT
   ============================================ */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: rgba(10,13,18,0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-right: 1px solid rgba(232,255,89,0.06);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  box-shadow: 4px 0 24px rgba(0,0,0,0.3), inset -1px 0 0 rgba(255,255,255,0.02);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(232,255,89,0.12); border-radius: 2px; }
.sidebar-header {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(232,255,89,0.06);
  margin-bottom: 16px;
}
.sidebar-header a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
}
.sidebar-header a:hover {
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(232,255,89,0.2));
}
.sidebar-header .version {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 6px;
  margin-left: 34px;
  letter-spacing: 0.5px;
}
.sidebar-nav {
  flex: 1;
  padding: 0 14px;
}
.nav-section {
  display: block;
  padding: 14px 12px 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  text-decoration: none;
  border: none;
  margin-top: 8px;
  font-family: var(--font-heading);
  user-select: none;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 14px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  border: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  margin: 2px 0;
  position: relative;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(232,255,89,0.04);
}
.nav-link:hover::before { opacity: 0.3; }
.nav-link.active {
  color: var(--accent);
  background: rgba(232,255,89,0.06);
  font-weight: 600;
}
.nav-link.active::before { opacity: 1; }
.nav-link .micon {
  font-size: 18px;
  color: var(--text-3);
  transition: color 0.2s ease;
}
.nav-link:hover .micon, .nav-link.active .micon {
  color: var(--accent);
}

.main-content {
  margin-left: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   MOBILE TOPBAR
   ============================================ */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(7,9,12,0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(232,255,89,0.06);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 99;
}
.mobile-topbar .logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,255,89,0.04);
  border: 1px solid rgba(232,255,89,0.1);
  cursor: pointer;
  color: var(--text);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.mobile-toggle:hover {
  background: rgba(232,255,89,0.08);
  border-color: rgba(232,255,89,0.2);
  color: var(--accent);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 120px 40px 90px;
  border-bottom: 1px solid rgba(232,255,89,0.06);
  overflow: hidden;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(232,255,89,0.12));
  margin-bottom: 18px;
  position: relative;
}
/* Shimmer overlay on hero title */
.hero h1::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.hero .subtitle {
  font-size: 17px;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.2px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border-2);
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  text-decoration: none;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.btn:hover {
  border-color: rgba(232,255,89,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 20px rgba(232,255,89,0.06);
  color: var(--text);
}
.btn:hover::before { opacity: 0.04; }
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.btn > * { position: relative; z-index: 1; }
.btn.primary {
  background: rgba(232,255,89,0.08);
  border-color: rgba(232,255,89,0.3);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(232,255,89,0.05);
}
.btn.primary::before {
  background: var(--gradient-accent);
  opacity: 0.06;
}
.btn.primary:hover {
  background: rgba(232,255,89,0.12);
  border-color: rgba(232,255,89,0.5);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 30px rgba(232,255,89,0.1);
}
.btn.primary:hover::before { opacity: 0.1; }
.btn.danger {
  background: rgba(255,90,90,0.08);
  border-color: rgba(255,90,90,0.3);
  color: var(--danger);
}
.btn.danger:hover {
  background: rgba(255,90,90,0.12);
  border-color: rgba(255,90,90,0.5);
  box-shadow: 0 0 20px rgba(255,90,90,0.08);
}
.btn.ok {
  background: rgba(71,255,154,0.08);
  border-color: rgba(71,255,154,0.3);
  color: var(--ok);
}
.btn.small { padding: 7px 14px; font-size: 12px; }
.btn.large { padding: 15px 30px; font-size: 14.5px; }

/* ============================================
   SECTIONS
   ============================================ */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}
.section {
  padding: 70px 0;
  border-bottom: 1px solid rgba(232,255,89,0.04);
  position: relative;
}
.section:last-child { border-bottom: none; }
.section h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: -0.8px;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}
.section h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 60px; height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  opacity: 0.6;
}
.section h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--accent-2);
  letter-spacing: -0.3px;
}
.section h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.section p {
  margin-bottom: 16px;
  color: var(--text-2);
  line-height: 1.75;
  font-size: 14.5px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  padding: 26px;
  margin-bottom: 18px;
  border-radius: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(232,255,89,0.1);
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.card:hover::before { opacity: 1; }
.card-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title .accent {
  color: var(--accent);
}

/* ============================================
   FEATURE GRID
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  padding: 24px 0;
}
.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover {
  border-color: rgba(232,255,89,0.12);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 40px rgba(232,255,89,0.04);
}
.feature-card:hover::before { opacity: 0.6; }
.feature-card .icon {
  color: var(--accent);
  margin-bottom: 14px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.feature-card:hover .icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(232,255,89,0.3));
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.2px;
}
.feature-card p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
}

/* Doc cards (overview links) */
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.doc-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.doc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.doc-card:hover {
  border-color: rgba(232,255,89,0.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 40px rgba(232,255,89,0.04);
  color: inherit;
}
.doc-card:hover::before { opacity: 0.6; }
.doc-card .icon {
  color: var(--accent);
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.doc-card:hover .icon { transform: scale(1.1); }
.doc-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.2px;
}
.doc-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   TABLES
   ============================================ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  font-size: 13.5px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
th, td {
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th {
  background: rgba(18,22,29,0.8);
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(232,255,89,0.08);
}
tr:last-child td { border-bottom: none; }
td {
  color: var(--text-2);
  font-size: 13.5px;
  transition: background 0.15s ease;
}
tr:hover td {
  background: rgba(232,255,89,0.02);
}

/* ============================================
   CODE
   ============================================ */
pre, code {
  font-family: var(--font-mono);
  font-size: 12.5px;
}
code {
  background: rgba(232,255,89,0.04);
  padding: 2px 7px;
  border: 1px solid rgba(232,255,89,0.08);
  color: var(--accent);
  border-radius: 5px;
  font-weight: 500;
}
pre {
  background: var(--surface-2);
  padding: 22px;
  border: 1px solid var(--border);
  overflow: auto;
  color: #c0c0d0;
  border-radius: 10px;
  line-height: 1.7;
  position: relative;
}
pre::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,255,89,0.15), transparent);
  border-radius: 10px 10px 0 0;
}
pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: inherit;
}

/* ============================================
   TIP/WARNING/DANGER BOXES
   ============================================ */
.box {
  border-left: 3px solid var(--border);
  padding: 18px 20px;
  margin: 18px 0;
  background: rgba(18,22,29,0.6);
  border-radius: 0 12px 12px 0;
  position: relative;
  overflow: hidden;
}
.box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.box:hover::before { opacity: 0.5; }
.box.tip { border-left-color: var(--accent); background: rgba(232,255,89,0.02); }
.box.tip::before { background: var(--accent); opacity: 1; }
.box.warn { border-left-color: var(--warn); background: rgba(255,204,71,0.02); }
.box.warn::before { background: var(--warn); opacity: 1; }
.box.danger { border-left-color: var(--danger); background: rgba(255,90,90,0.02); }
.box.danger::before { background: var(--danger); opacity: 1; }
.box h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.box p { margin-bottom: 0; font-size: 13.5px; }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  border-radius: 6px;
  transition: all 0.2s ease;
}
.badge:hover {
  border-color: rgba(232,255,89,0.15);
  color: var(--text-2);
}
.badge.accent {
  border-color: rgba(232,255,89,0.25);
  color: var(--accent);
  background: rgba(232,255,89,0.05);
  box-shadow: 0 0 12px rgba(232,255,89,0.04);
}

/* ============================================
   WIZARD
   ============================================ */
.wizard {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.wizard-step {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  position: relative;
  overflow: hidden;
}
.wizard-step:last-child { border-right: none; }
.wizard-step.active {
  background: rgba(232,255,89,0.06);
  color: var(--accent);
  box-shadow: inset 0 0 20px rgba(232,255,89,0.03);
}
.wizard-step.done {
  color: var(--ok);
  background: rgba(71,255,154,0.03);
}
.wizard-step:hover:not(.active) {
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.step-panel { display: none; animation: fadeIn 0.4s ease; }
.step-panel.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
  height: 6px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 3px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(232,255,89,0.2);
}

/* ============================================
   LAN STATUS
   ============================================ */
.lan-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-weight: 600;
}
.lan-status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-3);
  transition: all 0.3s ease;
}
.lan-status .dot.online {
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok), 0 0 24px rgba(71,255,154,0.3);
}
.lan-status .dot.offline {
  background: var(--danger);
  box-shadow: 0 0 12px var(--danger), 0 0 24px rgba(255,90,90,0.3);
}
.lan-status .dot.warn {
  background: var(--warn);
  box-shadow: 0 0 12px var(--warn), 0 0 24px rgba(255,204,71,0.3);
}

/* ============================================
   PAGE NAV (Next/Prev)
   ============================================ */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  margin-top: 48px;
  border-top: 1px solid rgba(232,255,89,0.06);
  gap: 12px;
  flex-wrap: wrap;
}
.page-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 11px 18px;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.page-nav a:hover {
  color: var(--accent);
  border-color: rgba(232,255,89,0.25);
  background: rgba(232,255,89,0.03);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid rgba(232,255,89,0.04);
  padding: 44px 40px;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
  margin-top: auto;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,255,89,0.1), transparent);
}
.footer a {
  color: var(--text-2);
  transition: color 0.2s ease;
}
.footer a:hover { color: var(--accent); }

/* ============================================
   LINKS
   ============================================ */
a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}
a:hover {
  border-color: rgba(89,255,179,0.3);
  color: var(--accent);
}

/* ============================================
   INPUTS
   ============================================ */
input[type="text"], input[type="number"], input[type="password"], select, textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  width: 100%;
  border-radius: 10px;
  transition: all 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(232,255,89,0.3);
  box-shadow: 0 0 0 3px rgba(232,255,89,0.06), 0 0 20px rgba(232,255,89,0.03);
}

/* Toggle */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--surface-3);
  border: 1px solid var(--border);
  transition: 0.2s ease;
  border-radius: 24px;
}
.toggle .slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--text-3);
  transition: 0.2s ease;
  border-radius: 50%;
}
.toggle input:checked + .slider {
  background: rgba(232,255,89,0.15);
  border-color: rgba(232,255,89,0.4);
  box-shadow: 0 0 12px rgba(232,255,89,0.1);
}
.toggle input:checked + .slider::before {
  transform: translateX(20px);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(232,255,89,0.4);
}

/* ============================================
   MERMAID
   ============================================ */
.mermaid {
  background: rgba(18,22,29,0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 18px 0;
  position: relative;
  overflow: hidden;
}
.mermaid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,255,89,0.1), transparent);
}

/* ============================================
   ICONS
   ============================================ */
.micon {
  font-family: var(--font-icon);
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
  font-variation-settings: 'wght' 400;
  transition: all 0.2s ease;
}
.micon-sm { font-size: 15px; }
.micon-lg { font-size: 26px; }
.micon-xl { font-size: 40px; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(232,255,89,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(232,255,89,0.2); }

/* ============================================
   TOAST
   ============================================ */
.toast {
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 14px 18px;
  font-size: 13px;
  border-radius: 10px;
  box-shadow: var(--shadow), 0 0 20px rgba(0,0,0,0.2);
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 360px;
}
@keyframes toastIn {
  from { transform: translateX(100%) scale(0.95); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}
.toast.success { border-color: rgba(71,255,154,0.3); color: var(--ok); box-shadow: 0 0 16px rgba(71,255,154,0.06); }
.toast.error { border-color: rgba(255,90,90,0.3); color: var(--danger); box-shadow: 0 0 16px rgba(255,90,90,0.06); }
.toast.warn { border-color: rgba(255,204,71,0.3); color: var(--warn); box-shadow: 0 0 16px rgba(255,204,71,0.06); }

/* ============================================
   SIDEBAR OVERLAY
   ============================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
}
.sidebar-overlay.show { display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(7,9,12,0.97);
    width: 300px;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-topbar { display: flex; }
  .hero { padding: 90px 24px 60px; }
  .hero h1 { font-size: 36px; }
  .container { padding: 0 24px; }
  .features { grid-template-columns: 1fr; }
  .wizard { flex-direction: column; }
  .wizard-step { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   LISTS
   ============================================ */
ul, ol {
  margin: 0 0 18px 20px;
  color: var(--text-2);
}
li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ============================================
   LABELS
   ============================================ */
label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-3);
  margin-bottom: 5px;
  font-family: var(--font-heading);
  font-weight: 600;
}
