/* Jonny Cashout Wiki - Custom Black & Gold Theme */

:root {
  color-scheme: dark;
  --ink: #050508;
  --ink-soft: #08080c;
  --surface: #0a0a0f;
  --surface-2: #11111a;
  --surface-3: #181825;
  --text: #f5f5f7;
  --text-soft: #a0a0ab;
  --muted: #5c5c66;
  --line: rgba(212, 175, 55, 0.08);
  --line-strong: rgba(212, 175, 55, 0.22);
  --accent: #d4af37; /* Metallic Gold */
  --accent-light: #f3c64f; /* Glowing Gold */
  --accent-rgb: 212, 175, 55;
  --success: #63e2b7;
  --warning: #f2c97d;
  --danger: #e88080;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  --body: "Manrope", system-ui, sans-serif;
  --display: "Outfit", "Manrope", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-height: 76px;
  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(212, 175, 55, 0.09), transparent 38%),
    var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  display: block;
}

::selection {
  background: rgba(var(--accent-rgb), 0.24);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Micro-noise overlay */
.page-noise {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Ambient glow lights */
.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(130px);
  pointer-events: none;
  opacity: 0.08;
}

.ambient-a {
  top: 10vh;
  left: -260px;
  background: var(--accent);
}

.ambient-b {
  right: -320px;
  bottom: 15vh;
  background: #aa7c11;
}

.ambient-c {
  left: 30%;
  bottom: -20vh;
  background: var(--accent-light);
  opacity: 0.05;
}

.icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Topbar Header */
.topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.78);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.14), transparent),
    var(--surface);
  box-shadow: inset 0 0 20px rgba(var(--accent-rgb), 0.05);
  color: var(--accent);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-copy small {
  margin-top: 5px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger {
  display: flex;
  min-width: 280px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 13.5px;
  text-align: left;
  transition: all var(--transition);
}

.search-trigger:hover {
  border-color: var(--line-strong);
  background: rgba(212, 175, 55, 0.04);
  color: var(--text);
}

.search-trigger span:nth-child(2) {
  flex: 1;
}

kbd {
  display: inline-flex;
  min-width: 23px;
  min-height: 21px;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-color: rgba(212, 175, 55, 0.35);
  border-radius: 5px;
  background: rgba(212, 175, 55, 0.05);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 700;
  transition: all var(--transition);
}

.support-link:hover {
  background: rgba(212, 175, 55, 0.06);
  color: var(--accent-light);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  align-items: center;
  gap: clamp(48px, 6vw, 100px);
  padding: clamp(78px, 10vh, 128px) clamp(24px, 7vw, 112px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  border: 1px solid rgba(var(--accent-rgb), 0.07);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 110px rgba(var(--accent-rgb), 0.012),
    0 0 0 220px rgba(var(--accent-rgb), 0.008);
}

.hero-copy {
  max-width: 680px;
}

.badge-online {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  padding: 6px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 99px;
  background: rgba(var(--accent-rgb), 0.04);
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-light);
  animation: pulse-gold 2.2s infinite;
}

@keyframes pulse-gold {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px var(--accent-light); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero h1 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent-light);
  background: linear-gradient(135deg, #fff 40%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
}

.hero p {
  margin: 0 0 40px;
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Premium Buttons */
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.15);
}

.primary-button:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 24px rgba(var(--accent-rgb), 0.35),
    0 0 15px rgba(var(--accent-rgb), 0.1);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.text-button:hover {
  border-color: var(--line-strong);
  background: rgba(212, 175, 55, 0.05);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.hero-stats div {
  display: grid;
  gap: 5px;
}

.hero-stats strong {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.hero-stats span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Console Simulator & Live Map Pipeline (Reference Layout) */
.hero-console {
  position: relative;
  width: min(100%, 760px);
  justify-self: start;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 35%),
    rgba(10, 10, 15, 0.85);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.hero-console::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    480px circle at var(--mouse-x, 70%) var(--mouse-y, 20%),
    rgba(var(--accent-rgb), 0.08),
    transparent 46%
  );
  content: "";
  pointer-events: none;
}

.hero-console.reveal {
  animation-delay: 140ms;
}

.console-topline,
.console-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.console-topline {
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #344154;
}

.console-dots span:first-child { background: var(--danger); }
.console-dots span:nth-child(2) { background: var(--warning); }
.console-dots span:nth-child(3) { background: var(--success); }

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
}

.console-status::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-light);
}

.pipeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.pipeline-rail {
  position: absolute;
  z-index: -1;
  top: 63px;
  bottom: 63px;
  left: 42px;
  width: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.pipeline-rail span {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(transparent, var(--accent), transparent);
  animation: rail 3.2s linear infinite;
}

@keyframes rail {
  0% { transform: translateY(0); }
  100% { transform: translateY(240px); }
}

.pipeline-node {
  position: relative;
  display: grid;
  min-height: 94px;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 10, 15, 0.9);
  transition: all var(--transition);
}

.pipeline-node:hover {
  border-color: rgba(var(--accent-rgb), 0.27);
  background: rgba(212, 175, 55, 0.02);
  transform: translateX(-6px);
  box-shadow: inset 0 0 15px rgba(var(--accent-rgb), 0.03);
}

.node-index {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
  grid-row: 1;
  grid-column: 1;
}

.node-icon {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent);
  z-index: 1;
  grid-row: 1;
  grid-column: 1;
  margin-top: 10px;
}

.pipeline-node div {
  grid-column: 2;
}

.pipeline-node small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.pipeline-node strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--text);
}

.pipeline-node p {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.5;
}

.node-check,
.node-pulse {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.node-check {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent);
  font-size: 10px;
}

.node-pulse {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-light);
  animation: pulse-glow-node 1.5s infinite;
}

.console-footer {
  min-height: 50px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
}

.console-footer i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
}

/* Docs Stage / Main Layout */
.docs-stage {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 240px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-soft);
}

/* Sidebar Navigation */
.docs-sidebar {
  border-right: 1px solid var(--line);
  padding: 32px 24px;
  background: var(--ink);
  overflow-y: auto;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-head {
  display: none;
  align-items: center;
  justify-content: space-between;
}

.section-index {
  font-family: var(--display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--accent);
}

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

.nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 8px;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-label:first-child {
  margin-top: 0;
}

.badge-count {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 9px;
  font-family: var(--mono);
}

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: all var(--transition);
}

.docs-nav-link:hover {
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  padding-left: 15px;
}

.docs-nav-link.active {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 600;
  padding-left: 15px;
}

.plugin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plugin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-soft);
  transition: all var(--transition);
}

.plugin-nav-link:hover {
  background: rgba(255, 255, 255, 0.01);
  color: var(--text);
  padding-left: 14px;
}

.plugin-nav-link.active {
  background: rgba(212, 175, 55, 0.04);
  color: var(--accent);
  font-weight: 600;
  padding-left: 14px;
}

.plugin-nav-link .mark-badge {
  font-family: var(--mono);
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--muted);
  border: 1px solid var(--line);
}

.plugin-nav-link.active .mark-badge {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent);
  border-color: var(--line-strong);
}

/* Sidebar support promo-card */
.sidebar-card {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.sidebar-card .icon {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.sidebar-card strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
  color: var(--text);
}

.sidebar-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-soft);
}

.sidebar-card a {
  display: block;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.03);
  color: var(--accent);
  transition: all var(--transition);
}

.sidebar-card a:hover {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.25);
}

/* Main Content Panel */
.docs-main {
  padding: 48px clamp(24px, 5vw, 64px);
  min-height: calc(100vh - var(--header-height));
  border-right: 1px solid var(--line);
}

.docs-mobile-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 24px;
}

.docs-mobile-head button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.04);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.docs-mobile-head span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

/* Reference head / kicker layout */
.doc-head {
  position: relative;
  min-height: 280px;
  padding: clamp(30px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(var(--accent-rgb), 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 52%),
    var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  margin-bottom: 48px;
}

.doc-head::before,
.doc-head::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.doc-head::before {
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.28);
  border-right: 1px solid rgba(var(--accent-rgb), 0.28);
}

.doc-head::after {
  right: 25px;
  bottom: -48px;
  color: rgba(212, 175, 55, 0.018);
  content: attr(data-ghost);
  font-family: var(--display);
  font-size: 150px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.doc-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.doc-head h2 {
  max-width: 670px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 4.2vw, 57px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.13;
}

.doc-lead {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 25px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.78;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.13);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 9px;
}

.meta-chip .icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 99px;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}

/* Heading structures */
.section-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 28px;
  margin-top: 48px;
}

.section-number {
  padding-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.section-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.25;
  color: var(--text);
}

.section-heading p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 13.5px;
}

/* Dynamic Overview Cards */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.plugin-card {
  position: relative;
  display: grid;
  min-height: 260px;
  align-content: space-between;
  gap: 26px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.026), transparent 50%),
    var(--surface);
  transition: all var(--transition);
}

.plugin-card:hover {
  border-color: rgba(var(--accent-rgb), 0.29);
  background:
    radial-gradient(circle at 90% 5%, rgba(var(--accent-rgb), 0.1), transparent 37%),
    var(--surface-2);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.05);
}

.plugin-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.plugin-card-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 13px;
  background: rgba(var(--accent-rgb), 0.065);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.plugin-card-version {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.plugin-card h4 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.plugin-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.plugin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
}

.plugin-card-footer span:first-child {
  color: var(--accent);
}

/* Grids for steps / requirements */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.quick-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(18, 18, 25, 0.6);
  transition: all var(--transition);
}

.quick-card:hover {
  border-color: var(--line-strong);
  background: rgba(18, 18, 25, 0.9);
}

.quick-card .icon,
.info-card > .icon {
  margin-bottom: 24px;
  color: var(--accent);
}

.quick-card small,
.info-card small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.quick-card strong,
.info-card strong {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--text);
}

.quick-card p,
.info-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.65;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(18, 18, 25, 0.6);
  transition: all var(--transition);
}

.info-card:hover {
  border-color: var(--line-strong);
  background: rgba(18, 18, 25, 0.9);
}

/* Verification Checklist Grid */
.verification-grid {
  display: grid;
  gap: 10px;
}

/* Dynamic Step Timeline */
.step-list {
  display: grid;
  gap: 0;
  counter-reset: steps;
  margin: 24px 0;
}

.step {
  position: relative;
  display: grid;
  min-height: 112px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  counter-increment: steps;
}

.step:not(:last-child)::before {
  position: absolute;
  top: 45px;
  bottom: 0;
  left: 21px;
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line));
  content: "";
}

.step-number {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.05);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.step-copy {
  padding: 6px 0 32px;
}

.step-copy strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.step-copy p {
  max-width: 690px;
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

/* Call to action panel */
.action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 26px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-md);
  background:
    linear-gradient(120deg, rgba(var(--accent-rgb), 0.07), transparent 55%),
    var(--surface-2);
}

.action-panel strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.04em;
  color: var(--text);
}

.action-panel p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 11px;
}

.action-panel a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: all var(--transition);
}

.action-panel a:hover {
  background: var(--accent-light);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3);
}

/* Document detailed tabs */
.doc-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  padding-bottom: 1px;
}

.tab-btn {
  padding: 10px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.015);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.tabs-panels-container .doc-section {
  display: none;
}

.tabs-panels-container .doc-section.active {
  display: block;
  animation: fade-in 200ms ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.doc-section h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.doc-section h2:first-child {
  margin-top: 0;
}

.doc-section p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

.doc-section ul,
.doc-section ol {
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--text-soft);
}

.doc-section li {
  margin-bottom: 8px;
}

/* Warnings and callout tiles */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.02);
  margin: 24px 0;
}

.callout.warning {
  border-left-color: var(--warning);
  background: rgba(242, 201, 125, 0.02);
  border-color: rgba(242, 201, 125, 0.1);
}

.callout.danger {
  border-left-color: var(--danger);
  background: rgba(232, 128, 128, 0.02);
  border-color: rgba(232, 128, 128, 0.1);
}

.callout .icon {
  margin-top: 2px;
}

.callout-content {
  flex: 1;
}

.callout-content h4 {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.callout.warning .callout-content h4 { color: var(--warning); }
.callout.danger .callout-content h4 { color: var(--danger); }

.callout-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

/* Code Blocks & Copy Trigger */
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--accent);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.copy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.25);
}

pre {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  background: #030305;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: #e5a93b;
}

code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--line);
  color: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  word-break: keep-all;
}

/* Right Sidebar (On this page) */
.on-this-page {
  border-left: 1px solid var(--line);
  padding: 32px 20px;
  background: var(--ink);
  overflow-y: auto;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.on-this-page nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-link {
  font-size: 12.5px;
  color: var(--text-soft);
  transition: all var(--transition);
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

.toc-link.active {
  color: var(--accent);
  font-weight: 700;
  padding-left: 4px;
}

.version-stamp {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.version-stamp strong {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px clamp(20px, 4vw, 56px);
  background: var(--ink);
  border-top: 1px solid var(--line);
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand .brand-mark svg {
  width: 18px;
  height: 18px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 13px;
  color: var(--text);
}

.footer-brand span {
  font-size: 10.5px;
  color: var(--muted);
}

.footer-credit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link-gold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.footer-link-gold:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.footer-sep {
  color: var(--muted);
  opacity: 0.4;
  font-size: 12px;
}

.footer-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* Dialog / Search Panel */
.search-dialog {
  padding: 0;
  border: none;
  background: none;
  max-width: 580px;
  width: calc(100vw - 32px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-dialog::backdrop {
  background: rgba(5, 5, 8, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.search-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 30px rgba(var(--accent-rgb), 0.02);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.search-input-wrap .icon {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  background: none;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.search-input-wrap input::placeholder {
  color: var(--muted);
}

.search-input-wrap button {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
  transition: all var(--transition);
}

.search-input-wrap button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.search-hint {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.search-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.search-item:hover,
.search-item.selected {
  border-color: var(--line);
  background: rgba(212, 175, 55, 0.05);
}

.search-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.search-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.search-item:hover .search-item-title,
.search-item.selected .search-item-title {
  color: var(--accent);
}

.search-item-desc {
  font-size: 11px;
  color: var(--text-soft);
}

.search-item-type {
  font-family: var(--mono);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--muted);
  border: 1px solid var(--line);
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}

.search-footer kbd {
  font-size: 8px;
  min-width: 18px;
  min-height: 16px;
  padding: 1px 3px;
  margin: 0 2px;
}

/* Toast Notifications */
.toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow);
  transform: translateY(100px);
  opacity: 0;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast .icon {
  background: rgba(212, 175, 55, 0.1);
  padding: 2px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .docs-stage {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .on-this-page {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 20px;
  }
  .search-trigger {
    min-width: auto;
    padding: 10px;
  }
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  .mobile-menu-button {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 20px;
  }
  .hero-console {
    width: 100%;
    justify-self: center;
  }
  .docs-stage {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: fixed;
    z-index: 90;
    top: var(--header-height);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--header-height));
    transform: translateX(-100%);
    transition: transform var(--transition);
  }
  body.menu-open .docs-sidebar {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
  }
  body.menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  body.menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }
  body.menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
  .sidebar-head {
    display: flex;
  }
  .sidebar-head button {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
  }
  .sidebar-head button:hover {
    color: var(--text);
  }
  .docs-main {
    padding: 24px 20px;
  }
  .docs-mobile-head {
    display: flex;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }
  .step-number {
    width: 38px;
    height: 38px;
  }
  .step:not(:last-child)::before {
    left: 18px;
  }
  .pipeline-rail {
    left: 42px;
  }
  .pipeline-node {
    min-height: 94px;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 15px;
  }
  .pipeline-node p {
    font-size: 9px;
  }
  .console-topline > span:nth-of-type(1) {
    display: none;
  }
  .doc-head {
    min-height: 250px;
    padding: 28px 22px;
    border-radius: 20px;
  }
  .doc-head h2 {
    font-size: clamp(27px, 9vw, 40px);
  }
  .doc-lead {
    font-size: 14px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .section-heading h3 {
    font-size: 24px;
  }
}
