﻿/* ================================================================
   BeatCore Docs — v5
   Font: Poppins | Light weights | No sticky topbar
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Fira+Code:wght@400;500&display=swap');

/* ── VARIABLES ─────────────────────────────────────────────────── */
:root {
  --primary:   #6366f1;
  --primary-h: #4f46e5;
  --radius:    8px;
  --sb-w:      256px;

  /* Light */
  --bg:        #f5f6fa;
  --surface:   #ffffff;
  --border:    #e5e7ef;
  --text:      #1a1d2e;
  --muted:     #6b7280;
  --code-bg:   #f0f2f8;
  --step-bg:   rgba(99,102,241,.07);
  --note-bg:   #eef2ff; --note-b: #6366f1;
  --tip-bg:    #f0fdf4; --tip-b:  #22c55e;
  --warn-bg:   #fffbeb; --warn-b: #f59e0b;
  --sh:        0 1px 3px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
  --sh-h:      0 4px 20px rgba(99,102,241,.14);
}
[data-theme="dark"] {
  --bg:      #0e0e1c;
  --surface: #161625;
  --border:  #21213a;
  --text:    #dde1f0;
  --muted:   #8892a4;
  --code-bg: #191930;
  --step-bg: rgba(99,102,241,.12);
  --note-bg: #0f1030; --note-b: #6366f1;
  --tip-bg:  #0a1f0f; --tip-b:  #22c55e;
  --warn-bg: #1a1200; --warn-b: #f59e0b;
  --sh:      0 1px 3px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.2);
  --sh-h:    0 4px 20px rgba(99,102,241,.22);
}

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SIDEBAR ───────────────────────────────────────────────────── */
.sidebar {
  width: var(--sb-w); min-width: var(--sb-w);
  background: #0f0f1e;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.08) transparent;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

/* Logo */
.sb-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-decoration: none; flex-shrink: 0;
}
.sb-icon { position: relative; width: 38px; height: 38px; flex-shrink: 0; }
.sb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 120deg,#818cf8,#6366f2,#3730a3,#6366f2,#818cf8);
  padding: 2px;
  box-shadow: 0 0 12px rgba(99,102,242,.5);
}
.sb-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%,#4f52c8 0%,#1e1f6e 52%,#0c0c3a 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sb-bars { display: flex; gap: 2px; height: 20px; align-items: center; }
.sb-bars span { display: block; width: 2px; border-radius: 2px; background: #fff; animation: sbp 1.2s ease-in-out infinite alternate; }
.sb-bars span:nth-child(1){height:4px;opacity:.4;animation-duration:1.1s;--mn:3px;--mx:7px}
.sb-bars span:nth-child(2){height:7px;opacity:.55;animation-duration:.9s;animation-delay:.15s;--mn:4px;--mx:10px}
.sb-bars span:nth-child(3){height:12px;opacity:.72;animation-duration:1.3s;animation-delay:.05s;--mn:7px;--mx:16px}
.sb-bars span:nth-child(4){height:18px;opacity:.88;animation-duration:.8s;animation-delay:.2s;--mn:10px;--mx:20px}
.sb-bars span:nth-child(5){height:18px;opacity:.88;animation-duration:1s;animation-delay:.1s;--mn:10px;--mx:20px}
.sb-bars span:nth-child(6){height:12px;opacity:.72;animation-duration:1.4s;animation-delay:.25s;--mn:7px;--mx:16px}
.sb-bars span:nth-child(7){height:7px;opacity:.55;animation-duration:.95s;animation-delay:.08s;--mn:4px;--mx:10px}
.sb-bars span:nth-child(8){height:4px;opacity:.4;animation-delay:.18s;--mn:3px;--mx:7px}
@keyframes sbp { 0%{height:var(--mn)} 100%{height:var(--mx)} }

.sb-name { line-height: 1.2; }
.sb-title { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.sb-title .beat { color: #818cf8; }
.sb-title .core { color: #fff; }
.sb-ver { font-size: 9px; color: rgba(255,255,255,.25); font-weight: 500; text-transform: uppercase; letter-spacing: 1.3px; margin-top: 2px; }

/* Nav sections */
.sb-section {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 16px 4px;
  font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.18);
}
.sb-section::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.04); }

nav a.sb-link {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 9px; margin: 1px 8px;
  border-radius: 7px; color: rgba(255,255,255,.78);
  text-decoration: none; font-size: 12px; font-weight: 400;
  transition: background .15s, color .15s;
}
nav a.sb-link:hover  { background: rgba(255,255,255,.07); color: #fff; }
nav a.sb-link.active { background: rgba(99,102,241,.22); color: #fff; font-weight: 500; }

.sb-link-icon {
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: rgba(255,255,255,.65);
  transition: color .15s, background .15s;
}
.sb-link-icon svg { width: 14px; height: 14px; }
nav a.sb-link:hover .sb-link-icon  { color: #fff; background: rgba(255,255,255,.1); }
nav a.sb-link.active .sb-link-icon { background: rgba(99,102,241,.3); color: #a5b4fc; }

.sb-foot {
  margin-top: auto; padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.sb-foot a { font-size: 10.5px; color: rgba(255,255,255,.18); text-decoration: none; display: block; padding: 2px 0; transition: color .15s; }
.sb-foot a:hover { color: rgba(255,255,255,.45); }

/* ── PAGE HEADER (not sticky) ─────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ph-left  { display: flex; align-items: center; gap: 10px; }
.ph-right { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; width: 32px; height: 32px;
  background: none; border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; color: var(--text);
  align-items: center; justify-content: center; padding: 0;
}
.menu-btn svg { width: 16px; height: 16px; }
.ph-title { font-size: 13px; font-weight: 500; color: var(--muted); }
.ph-title b { color: var(--text); font-weight: 600; }
.icon-btn {
  width: 32px; height: 32px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Lang switcher */
.lw { position: relative; }
.lb {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer;
  font-size: 11.5px; font-weight: 500; color: var(--text);
  font-family: inherit; transition: border-color .15s;
}
.lb svg { width: 14px; height: 14px; color: var(--muted); }
.lb:hover { border-color: var(--primary); }
.lm {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--sh); min-width: 146px;
  overflow: hidden; display: none; z-index: 300;
}
.lm.open { display: block; }
.lm button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px;
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 400; color: var(--text);
  text-align: left; font-family: inherit; transition: background .12s;
}
.lm button:hover  { background: var(--code-bg); }
.lm button.active { color: var(--primary); font-weight: 600; }

/* ── MAIN ──────────────────────────────────────────────────────── */
.main { margin-left: var(--sb-w); flex: 1; min-width: 0; }
.content { padding: 40px 52px 80px; }

/* ── TYPOGRAPHY ────────────────────────────────────────────────── */
h1 { font-size: 24px; font-weight: 600; letter-spacing: -.3px; line-height: 1.25; margin-bottom: 8px; }
h1 .hl { color: var(--primary); }
.sub { font-size: 13.5px; color: var(--muted); margin-bottom: 32px; line-height: 1.6; font-weight: 400; }
h2 {
  font-size: 16px; font-weight: 600;
  margin: 40px 0 12px; padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
h3 { font-size: 13px; font-weight: 600; margin: 20px 0 8px; color: var(--text); }
p  { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 400; }
p strong, p b { color: var(--text); font-weight: 500; }
ul, ol { padding-left: 18px; color: var(--muted); margin-bottom: 10px; font-size: 13px; }
li { margin-bottom: 4px; }
code {
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 11.5px; background: var(--code-bg);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 1px 6px; color: var(--primary);
}
hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* Route label */
.route { font-family: 'Fira Code', monospace; font-size: 11px; color: var(--primary); background: rgba(99,102,241,.07); padding: 2px 8px; border-radius: 4px; }

/* ── CALLOUT ───────────────────────────────────────────────────── */
.callout {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; border-radius: var(--radius);
  border-left: 3px solid; margin: 12px 0; font-size: 12.5px;
}
.ci { display: flex; align-items: center; flex-shrink: 0; margin-top: 2px; color: inherit; }
.ci svg { width: 15px; height: 15px; }
.callout b { font-weight: 600; color: var(--text); }
.callout p { margin: 0; font-size: 12.5px; }
.callout.note   { background: var(--note-bg); border-color: var(--note-b); color: var(--muted); }
.callout.note .ci { color: var(--note-b); }
.callout.tip    { background: var(--tip-bg);  border-color: var(--tip-b);  color: var(--muted); }
.callout.tip .ci  { color: var(--tip-b); }
.callout.warn   { background: var(--warn-bg); border-color: var(--warn-b); color: var(--muted); }
.callout.warn .ci { color: var(--warn-b); }

/* ── TABLE ─────────────────────────────────────────────────────── */
.tbl { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--surface); }
thead tr { background: var(--code-bg); }
th { padding: 8px 14px; text-align: left; font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); }
td { padding: 9px 14px; border-top: 1px solid var(--border); color: var(--muted); vertical-align: top; font-size: 12.5px; }
td b, td strong { color: var(--text); font-weight: 500; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: var(--code-bg); }

/* ── BADGE ─────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.b-green  { background: rgba(34,197,94,.1); color: #16a34a; }
.b-amber  { background: rgba(245,158,11,.1); color: #b45309; }
.b-red    { background: rgba(239,68,68,.1);  color: #b91c1c; }
.b-purple { background: rgba(99,102,241,.1); color: #4f46e5; }
.b-blue   { background: rgba(56,189,248,.1); color: #0284c7; }
.b-gray   { background: rgba(100,116,139,.1);color: #475569; }

/* ── STEPS ─────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; margin: 12px 0; }
.step  { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.step:not(:last-child)::before {
  content: ''; position: absolute; left: 14px; top: 32px; bottom: 0;
  width: 1px; background: var(--border);
}
.sn {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--step-bg); border: 1px solid rgba(99,102,241,.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 11.5px; color: var(--primary); z-index: 1;
}
.sb2 { flex: 1; padding-top: 4px; }
.st  { font-weight: 500; font-size: 13px; color: var(--text); margin-bottom: 3px; }
.sd  { font-size: 12.5px; color: var(--muted); font-weight: 400; }

/* ── IMG ZONE ──────────────────────────────────────────────────── */
.iz {
  position: relative; border: 1.5px dashed var(--border);
  border-radius: var(--radius); background: var(--code-bg);
  text-align: center; padding: 30px 20px;
  cursor: pointer; overflow: hidden; margin: 14px 0;
  transition: border-color .15s, background .15s;
}
.iz:hover { border-color: var(--primary); background: var(--step-bg); }
.iz input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.iz.loaded { padding: 0; border-style: solid; }
.iz.loaded img { width: 100%; display: block; border-radius: calc(var(--radius) - 1px); }
.iz-icon { display: flex; justify-content: center; margin-bottom: 7px; color: var(--muted); opacity: .45; }
.iz-icon svg { width: 24px; height: 24px; }
.iz-text { font-size: 12px; font-weight: 500; color: var(--muted); }
.iz-sub  { font-size: 11px; color: var(--muted); opacity: .55; margin-top: 3px; }
.iz.loaded .iz-icon, .iz.loaded .iz-text, .iz.loaded .iz-sub { display: none; }
.iz-del {
  position: absolute; top: 7px; right: 7px;
  background: rgba(0,0,0,.5); color: #fff; border: none;
  border-radius: 50%; width: 22px; height: 22px; font-size: 12px;
  cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 2;
}
.iz.loaded .iz-del { display: flex; }
/* Locked zone — image set, no further editing */
.iz.locked { cursor: default; }
.iz.locked:hover { border-color: var(--border); background: var(--code-bg); }
.iz.locked input[type="file"] { pointer-events: none; cursor: default; }
.iz.locked .iz-del  { display: none; }
.iz-lock {
  position: absolute; top: 7px; left: 7px;
  background: rgba(99,102,241,.92); color: #fff;
  border-radius: 5px; padding: 3px 9px 3px 6px;
  font-size: 10px; font-weight: 600; letter-spacing: .3px;
  display: none; align-items: center; gap: 4px; z-index: 2;
  pointer-events: none;
}
.iz-lock svg { width: 11px; height: 11px; flex-shrink: 0; }
.iz.locked .iz-lock { display: flex; }

/* ── SEALED SCREENSHOT IMAGE ───────────────────────────────────── */
.sc-img {
  width: 100%; display: block; margin: 16px 0;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.10);
}

/* ── SEAL BUTTON ────────────────────────────────────────────── */
.seal-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: none; cursor: pointer;
  border-radius: 8px; font-size: 12px; font-weight: 600; font-family: inherit;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,.35);
  transition: opacity .15s, box-shadow .15s;
  white-space: nowrap;
}
.seal-btn:hover { opacity: .9; box-shadow: 0 4px 14px rgba(16,185,129,.45); }
.seal-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.seal-btn.working { opacity: .65; pointer-events: none; }
@media (max-width: 520px) { .seal-btn span { display: none; } }

/* ── VIDEO ZONE ────────────────────────────────────────────────── */
.vz-wrap {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 14px; overflow: hidden; margin: 18px 0 26px;
}
.vz-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--code-bg);
}
.vz-header svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.vz-title { font-size: 13px; font-weight: 600; color: var(--text); }
.vz-badge {
  margin-left: auto; font-size: 10px; font-weight: 600;
  background: rgba(99,102,241,.15); color: var(--primary);
  border: 1px solid rgba(99,102,241,.3); border-radius: 99px;
  padding: 2px 10px; letter-spacing: .3px;
}
.vz {
  position: relative; background: var(--code-bg);
  text-align: center; padding: 40px 20px;
  cursor: pointer;
}
.vz input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.vz-icon { display: flex; justify-content: center; margin-bottom: 10px; color: var(--primary); opacity: .6; }
.vz-icon svg { width: 36px; height: 36px; }
.vz-text  { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.vz-sub   { font-size: 11.5px; color: var(--muted); opacity: .7; }
.vz:hover .vz-icon { opacity: 1; }
.vz.loaded { padding: 0; cursor: default; }
.vz.loaded video {
  width: 100%; display: block;
  background: #000;
  max-height: 520px;
  outline: none;
}
.vz.loaded .vz-icon, .vz.loaded .vz-text, .vz.loaded .vz-sub { display: none; }
.vz.loaded input[type="file"] { pointer-events: none; }
.vz-lock {
  position: absolute; top: 10px; left: 12px;
  background: rgba(99,102,241,.92); color: #fff;
  border-radius: 6px; padding: 4px 10px 4px 8px;
  font-size: 10px; font-weight: 600; letter-spacing: .3px;
  display: none; align-items: center; gap: 5px; z-index: 5; pointer-events: none;
}
.vz-lock svg { width: 11px; height: 11px; flex-shrink: 0; }
.vz.locked .vz-lock { display: flex; }
.vz-hint {
  padding: 10px 18px; font-size: 11.5px; color: var(--muted);
  border-top: 1px solid var(--border); text-align: left;
  display: none; gap: 6px; align-items: flex-start;
}
.vz-hint svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; color: var(--primary); }
.vz.locked ~ .vz-hint { display: flex; }

/* ── KEY FIELDS (capsule design for API keys) ──────────────────── */
.key-grid { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.key-field {
  display: flex; align-items: flex-start; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.key-field:hover { border-color: rgba(99,102,241,.4); box-shadow: var(--sh); }
.key-label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--code-bg);
  border-right: 1px solid var(--border);
  min-width: 160px; flex-shrink: 0;
  font-size: 12px; font-weight: 500; color: var(--text);
}
.key-label svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
.key-val {
  flex: 1; padding: 10px 14px;
  font-size: 11.5px; color: var(--muted); font-family: 'Fira Code', monospace;
  line-height: 1.5;
}
.key-opt { padding: 4px 10px; align-self: center; }
.key-opt .badge { font-size: 9.5px; }

/* ── ADMIN CARDS ───────────────────────────────────────────────── */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 12px; margin: 14px 0; }
.acard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--sh); display: flex; flex-direction: column; gap: 7px;
  transition: border-color .15s, box-shadow .15s;
}
.acard:hover { border-color: rgba(99,102,241,.3); box-shadow: var(--sh-h); }
.acard-head { display: flex; align-items: flex-start; gap: 10px; }
.acard-ico  {
  width: 36px; height: 36px; border-radius: 8px; background: var(--step-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--primary); transition: background .15s;
}
.acard-ico svg { width: 17px; height: 17px; }
.acard:hover .acard-ico { background: rgba(99,102,241,.15); }
.acard-name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.acard-desc { font-size: 12px; color: var(--muted); line-height: 1.55; font-weight: 400; }
.atags { display: flex; flex-wrap: wrap; gap: 5px; }
.atag { font-size: 10px; font-weight: 500; background: var(--code-bg); border: 1px solid var(--border); color: var(--muted); padding: 2px 7px; border-radius: 4px; }

/* ── QUICK NAV CARDS ───────────────────────────────────────────── */
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 10px; margin: 20px 0; }
.qcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 13px;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 7px;
  box-shadow: var(--sh); transition: border-color .15s, box-shadow .15s;
}
.qcard:hover { border-color: var(--primary); box-shadow: var(--sh-h); }
.qc-icon  { width: 36px; height: 36px; background: var(--step-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.qc-icon svg { width: 18px; height: 18px; }
.qc-title { font-weight: 500; font-size: 12.5px; color: var(--text); }
.qc-desc  { font-size: 11px; color: var(--muted); line-height: 1.45; font-weight: 400; }

/* ── REQUIREMENTS GRID ─────────────────────────────────────────── */
.req-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 9px; margin: 14px 0; }
.req-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 13px;
  transition: border-color .15s;
}
.req-item:hover { border-color: rgba(99,102,241,.3); }
.req-ico  { width: 34px; height: 34px; border-radius: 7px; background: var(--step-bg); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.req-ico svg { width: 16px; height: 16px; }
.req-label { font-size: 12.5px; font-weight: 500; color: var(--text); }
.req-val   { font-size: 11px; color: var(--muted); margin-top: 1px; font-weight: 400; }

/* ── CODE BLOCK ────────────────────────────────────────────────── */
.cb { border-radius: var(--radius); overflow: hidden; margin: 12px 0; border: 1px solid var(--border); }
.cb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 13px; background: var(--code-bg); border-bottom: 1px solid var(--border);
  font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.cb pre { background: var(--code-bg); padding: 14px 16px; overflow-x: auto; font-family: 'Fira Code', monospace; font-size: 11.5px; line-height: 1.65; color: var(--text); }
.copy-btn {
  background: transparent; border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 8px; font-size: 10px; font-weight: 600; cursor: pointer;
  color: var(--muted); font-family: inherit; transition: background .12s, color .12s;
}
.copy-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.copy-btn.ok    { background: #22c55e; color: #fff; border-color: #22c55e; }

/* ── TECH TAGS ─────────────────────────────────────────────────── */
.tech-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0 18px; }
.tech-tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  background: var(--code-bg); border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 500; color: var(--text);
  letter-spacing: .01em; transition: border-color .15s, color .15s;
}
.tech-tag:hover { border-color: var(--primary); color: var(--primary); }

/* ── TECH STACK GRID ──────────────────────────────────────────── */
.stack-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 4px 0 24px; }
.stack-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 14px; }
.sg-label { font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.sg-tags  { display: flex; flex-wrap: wrap; gap: 5px; }

/* ── SUPPORT BOX ───────────────────────────────────────────────── */
.supp-box {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,.05), rgba(99,102,241,.02));
  border: 1px solid rgba(99,102,241,.2); border-radius: var(--radius);
  padding: 13px 16px; margin: 18px 0 4px;
}
.supp-ico { width: 34px; height: 34px; border-radius: 8px; background: var(--step-bg); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.supp-ico svg { width: 17px; height: 17px; }
.supp-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 1px; }
.supp-text  { font-size: 11.5px; color: var(--muted); }
.supp-text a { color: var(--primary); text-decoration: none; font-weight: 500; }
.supp-text a:hover { text-decoration: underline; }

/* ── FIELD CARDS ───────────────────────────────────────────────── */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 10px; margin: 14px 0; }
.field-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field-card:hover { border-color: rgba(99,102,241,.3); box-shadow: var(--sh); }
.fc-name { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.fc-req  { font-size: 9.5px; font-weight: 600; background: rgba(99,102,241,.1); color: var(--primary); padding: 2px 6px; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; }
.fc-desc { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ── LICENSE TIER CARDS ────────────────────────────────────────── */
.lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; margin: 14px 0; }
.lic-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--sh); transition: border-color .15s, box-shadow .15s;
}
.lic-card:hover { border-color: rgba(99,102,241,.3); box-shadow: var(--sh-h); }
.lic-tier  { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.lic-name  { font-size: 18px; font-weight: 600; color: var(--text); }
.lic-price { font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -.5px; }
.lic-files { display: flex; flex-wrap: wrap; gap: 5px; }

/* ── CHECKOUT OPTION CARDS ─────────────────────────────────────── */
.cko-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px,1fr)); gap: 12px; margin: 14px 0; }
.cko-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--sh); transition: border-color .15s;
}
.cko-card:hover { border-color: rgba(99,102,241,.3); }
.cko-top  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.cko-name { font-size: 13px; font-weight: 600; color: var(--text); }
.cko-rec  { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.rec-on   { background: rgba(34,197,94,.1); color: #16a34a; }
.cko-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── STATUS CARDS (Orders) ─────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px,1fr)); gap: 10px; margin: 14px 0; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 15px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s;
}
.stat-card:hover { border-color: rgba(99,102,241,.3); }
.stat-desc { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ── ACTION CARDS (Users) ──────────────────────────────────────── */
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px,1fr)); gap: 10px; margin: 14px 0; }
.action-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 15px;
  display: flex; flex-direction: column; gap: 5px;
  transition: border-color .15s, box-shadow .15s;
}
.action-card:hover { border-color: rgba(99,102,241,.3); box-shadow: var(--sh); }
.ac-icon { width: 30px; height: 30px; border-radius: 7px; background: var(--step-bg); display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 4px; }
.ac-icon svg { width: 15px; height: 15px; }
.ac-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.ac-desc { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* ── AUDIO FILE CARDS (Beats Step 2) ──────────────────────────── */
.audio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px,1fr)); gap: 10px; margin: 14px 0; }
.audio-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 15px;
  display: flex; flex-direction: column; gap: 5px;
  transition: border-color .15s;
}
.audio-card:hover { border-color: rgba(99,102,241,.3); }
.au-top   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.au-label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.au-pub   { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; background: rgba(34,197,94,.1); color: #16a34a; }
.au-lock  { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; background: rgba(99,102,241,.08); color: var(--primary); }
.au-desc  { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* ── MISC ──────────────────────────────────────────────────────── */
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; background: var(--code-bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--text); font-weight: 400; }

/* Overlay */
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 199; }

/* Google Translate — hide their injected UI */
.goog-te-banner-frame, .goog-te-menu-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }
#gtel { display: none; }

/* Footer */
.footer {
  padding: 18px 52px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--muted); flex-wrap: wrap; gap: 6px; font-weight: 400;
}
.footer a { color: var(--muted); text-decoration: none; transition: color .15s; }
.footer a:hover { color: var(--primary); }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .sb-overlay.open { display: block; }
  .menu-btn { display: flex !important; }
  .main { margin-left: 0; }
  .content { padding: 28px 22px 60px; }
  .footer { padding: 16px 22px; }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .agrid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  h1 { font-size: 19px; }
  .content { padding: 20px 16px 50px; }
  .req-grid { grid-template-columns: 1fr; }
}