:root {
  --pink: #ffb6c1;
  --pink-dark: #d4537e;
  --bg: #0d0d0f;
  --bg2: #141418;
  --border: rgba(255,182,193,0.15);
  --border-strong: rgba(255,182,193,0.3);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-faint: #555;
  --radius: 10px;
  --mono: 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; }

/* ── Announcement banner ──────────────────────────────────────── */
.docs-announcement {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245,158,11,0.1);
  border-bottom: 1px solid rgba(245,158,11,0.2);
  padding: 10px 2rem;
  font-size: 14px;
  color: #fde68a;
}

/* ── Nav ──────────────────────────────────────────────────────── */
.docs-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,15,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; gap: 1.5rem; height: 60px;
}
.docs-nav-logo { font-size: 18px; font-weight: 700; color: var(--pink); text-decoration: none; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.docs-nav-logo span { color: var(--text); }
.docs-nav-links { display: flex; gap: 1.25rem; flex: 1; flex-wrap: wrap; }
.docs-nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.docs-nav-links a:hover { color: var(--pink); }
.docs-nav-actions { display: flex; gap: 8px; flex-shrink: 0; }

.docs-btn { text-decoration: none; padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; }
.docs-btn-discord { background: rgba(88,101,242,0.15); border: 1px solid rgba(88,101,242,0.35); color: #a5b4fc; }
.docs-btn-discord:hover { background: rgba(88,101,242,0.25); }
.docs-btn-primary { background: rgba(255,182,193,0.12); border: 1px solid var(--border-strong); color: var(--pink); }
.docs-btn-primary:hover { background: rgba(255,182,193,0.2); }
.docs-btn-add { background: var(--pink-dark); color: white; }
.docs-btn-add:hover { background: #c04570; }

/* ── Status pill in nav ──────────────────────────────────────── */
.nav-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  flex-shrink: 0; white-space: nowrap; transition: all 0.4s;
}
.nav-status-checking { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #555; }
.nav-status-online   { background: rgba(68,255,136,0.08);  border: 1px solid rgba(68,255,136,0.25); color: #44ff88; }
.nav-status-offline  { background: rgba(255,68,68,0.08);   border: 1px solid rgba(255,68,68,0.25);  color: #ff6b6b; }

/* ── Hero ────────────────────────────────────────────────────── */
.docs-hero { text-align: center; padding: 5rem 2rem 4rem; border-bottom: 1px solid var(--border); }
.docs-hero-badge { display: inline-block; background: rgba(255,182,193,0.1); border: 1px solid var(--border-strong); color: var(--pink); font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 20px; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
.docs-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; color: #fff; }
.docs-hero p { font-size: 17px; color: var(--text-muted); max-width: 580px; margin: 0 auto 2rem; }
.docs-hero-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.docs-hero-stats { display: flex; justify-content: center; gap: 3rem; }
.docs-stat { text-align: center; }
.docs-stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--pink); line-height: 1; }
.docs-stat-lbl { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Search ──────────────────────────────────────────────────── */
.docs-search-wrap { padding: 2rem; border-bottom: 1px solid var(--border); }
#docs-search {
  display: block; width: 100%; max-width: 600px; margin: 0 auto;
  background: var(--bg2); border: 1px solid var(--border-strong);
  border-radius: 30px; padding: 12px 20px 12px 44px;
  color: var(--text); font-size: 15px; outline: none;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px center;
}
#docs-search:focus { border-color: var(--pink); }
#docs-search::placeholder { color: var(--text-faint); }

/* ── VTuber spotlight ────────────────────────────────────────── */
.vt-spotlight { position: relative; padding: 4rem 2rem; background: #100d1c; background-image: radial-gradient(ellipse at 70% 40%, rgba(139,92,246,0.12) 0%, transparent 55%), radial-gradient(circle at 1px 1px, rgba(167,139,250,0.07) 1px, transparent 0); background-size: auto, 28px 28px; border-top: 1px solid rgba(139,92,246,0.2); border-bottom: 1px solid rgba(139,92,246,0.2); }
.vt-inner { max-width: 1100px; margin: 0 auto; }
.vt-label { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #a78bfa; border: 1px solid rgba(167,139,250,0.35); background: rgba(167,139,250,0.08); padding: 4px 12px; border-radius: 4px; margin-bottom: 1.25rem; }
.vt-headline { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 0.9rem; max-width: 640px; }
.vt-headline span { color: #c4b5fd; }
.vt-sub { font-size: 16px; color: #999; max-width: 540px; line-height: 1.65; margin-bottom: 2.5rem; }
.vt-sub strong { color: #ccc; font-weight: 600; }
.vt-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 3rem; }
.vt-pill { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 6px 14px; font-size: 13px; color: #ccc; }
.vt-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 2.5rem; }
.vt-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 1.4rem; transition: border-color 0.2s; }
.vt-card:hover { border-color: rgba(167,139,250,0.3); }
.vt-card.vt-featured { grid-column: span 2; border-color: rgba(167,139,250,0.2); }
.vt-card-icon { font-size: 22px; margin-bottom: 0.75rem; display: block; }
.vt-card h3 { font-size: 15px; font-weight: 700; color: #eee; margin-bottom: 0.45rem; }
.vt-card p { font-size: 13px; color: #888; line-height: 1.6; }
.vt-card p strong { color: #aaa; font-weight: 600; }
.vt-cmds { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07); margin-bottom: 2rem; }
.vt-cmd { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; }
.vt-cmd code { font-family: var(--mono); font-size: 12px; color: #a78bfa; white-space: nowrap; flex-shrink: 0; }
.vt-cmd span { font-size: 12px; color: #777; line-height: 1.5; }
.vt-verify { display: flex; align-items: flex-start; gap: 14px; background: rgba(34,197,94,0.05); border: 1px solid rgba(34,197,94,0.18); border-radius: 10px; padding: 1.1rem 1.4rem; }
.vt-verify-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.vt-verify h4 { font-size: 14px; font-weight: 700; color: #86efac; margin-bottom: 3px; }
.vt-verify p { font-size: 13px; color: #888; line-height: 1.5; }
.vt-verify p a { color: #86efac; text-decoration: none; }
.vt-verify p a:hover { text-decoration: underline; }

/* ── Stream Alerts hero ──────────────────────────────────────── */
.sa-hero { padding: 4rem 2rem; background: #0a0f14; background-image: radial-gradient(ellipse at 20% 60%, rgba(145,70,255,0.1) 0%, transparent 50%), radial-gradient(ellipse at 80% 30%, rgba(255,80,80,0.08) 0%, transparent 45%); border-top: 1px solid rgba(255,80,80,0.15); border-bottom: 1px solid rgba(255,80,80,0.15); }
.sa-inner { max-width: 1100px; margin: 0 auto; }
.sa-label { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #f87171; border: 1px solid rgba(248,113,113,0.35); background: rgba(248,113,113,0.08); padding: 4px 12px; border-radius: 4px; margin-bottom: 1.25rem; }
.sa-headline { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 0.9rem; max-width: 640px; }
.sa-headline span { color: #fca5a5; }
.sa-sub { font-size: 16px; color: #999; max-width: 560px; line-height: 1.65; margin-bottom: 2.5rem; }
.sa-sub strong { color: #ccc; font-weight: 600; }
.sa-free-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); border-radius: 6px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #86efac; margin-bottom: 2.5rem; }
.sa-features { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 2.5rem; }
.sa-feat { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 1.25rem; transition: border-color 0.2s; }
.sa-feat:hover { border-color: rgba(248,113,113,0.25); }
.sa-feat-icon { font-size: 20px; margin-bottom: 0.6rem; display: block; }
.sa-feat h3 { font-size: 14px; font-weight: 700; color: #eee; margin-bottom: 0.35rem; }
.sa-feat p { font-size: 13px; color: #666; line-height: 1.55; }
.sa-feat p strong { color: #aaa; }
.sa-cmds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07); }
.sa-cmd { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; }
.sa-cmd code { font-family: var(--mono); font-size: 12px; color: #fca5a5; white-space: nowrap; flex-shrink: 0; }
.sa-cmd span { font-size: 12px; color: #555; line-height: 1.5; }

/* ── Main docs layout ────────────────────────────────────────── */
.docs-container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.docs-with-sidebar { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: start; }
.docs-sidebar { position: sticky; top: 80px; padding: 1.5rem 0; max-height: calc(100vh - 100px); overflow-y: auto; }
.docs-sidebar h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 0.5rem; padding: 0 0.75rem; }
.docs-sidebar ul { list-style: none; margin-bottom: 1.5rem; }
.docs-sidebar ul li a { display: block; padding: 5px 0.75rem; color: var(--text-muted); text-decoration: none; font-size: 13.5px; border-radius: var(--radius); transition: all 0.15s; }
.docs-sidebar ul li a:hover { color: var(--pink); background: rgba(255,182,193,0.06); }

#docs-main { padding: 3rem 0 5rem; }
#no-results { display: none; text-align: center; padding: 3rem; color: var(--text-muted); font-size: 15px; }

.section-anchor { scroll-margin-top: 80px; margin-bottom: 2.5rem; }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.section-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,182,193,0.1); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.section-header h2 { font-size: 20px; font-weight: 700; color: var(--text); }
.section-header p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 3rem; }
.cmd-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; transition: border-color 0.2s, transform 0.15s; }
.cmd-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.cmd-card.hidden { display: none; }
.cmd-name { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--pink); margin-bottom: 5px; }
.cmd-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.cmd-opts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.opt-pill { font-size: 11px; font-family: var(--mono); background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-muted); padding: 2px 8px; border-radius: 4px; }
.opt-pill.req { border-color: rgba(255,182,193,0.3); color: var(--pink); }

.callout { background: rgba(255,182,193,0.06); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 13.5px; color: var(--text-muted); }
.callout strong { color: var(--pink); }
.callout code { font-family: var(--mono); font-size: 12px; color: var(--pink); background: rgba(255,182,193,0.08); padding: 1px 6px; border-radius: 4px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 2rem; }
.info-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.info-card .ic { font-size: 22px; margin-bottom: 8px; }
.info-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.info-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Transparency ─────────────────────────────────────────────── */
.docs-transparency { background: #0a0a0c; border-top: 1px solid rgba(255,255,255,0.06); padding: 3rem 2rem; }
.docs-transparency .docs-container { max-width: 860px; }
.docs-transparency h3 { font-size: 14px; font-weight: 700; color: #ccc; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.08em; }
.docs-transparency p { font-size: 13px; color: #555; line-height: 1.75; margin-bottom: 1.25rem; }
.docs-transparency a { color: #888; text-decoration: none; }
.docs-transparency a:hover { color: var(--pink); }
.docs-transparency code { font-family: var(--mono); font-size: 12px; color: #888; background: rgba(255,255,255,0.05); padding: 1px 6px; border-radius: 4px; }
.docs-transparency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; margin-bottom: 1.5rem; }
.docs-transparency-label { font-size: 12px; font-weight: 600; color: #888; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }
.docs-transparency ul { font-size: 13px; color: #555; line-height: 1.9; list-style: none; padding: 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.docs-footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; font-size: 13px; color: var(--text-faint); }
.docs-footer a { color: var(--pink); text-decoration: none; }
.docs-footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .docs-with-sidebar { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .docs-nav-links { display: none; }
  .vt-grid { grid-template-columns: 1fr; }
  .vt-card.vt-featured { grid-column: span 1; }
  .sa-features { grid-template-columns: 1fr; }
  .docs-transparency-grid { grid-template-columns: 1fr; }
  .docs-hero-stats { gap: 1.5rem; }
}

/* ── Command preview button ──────────────────────────────────── */
.cmd-preview-btn {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px;
  background: rgba(255,182,193,0.08); border: 1px solid rgba(255,182,193,0.2);
  color: var(--pink); border-radius: 6px; padding: 4px 10px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.cmd-preview-btn:hover { background: rgba(255,182,193,0.15); }
