/* ============ PandaLua — design system ============ */
:root {
  --bg: #070a10;
  --bg2: #0b0f19;
  --panel: #101624;
  --panel2: #131a2b;
  --line: #1e2740;
  --line2: #2a3554;
  --text: #e7ecf3;
  --muted: #8b98ad;
  --muted2: #64748b;
  --violet: #8b5cf6;
  --violet2: #a78bfa;
  --cyan: #22d3ee;
  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
  --grad: linear-gradient(90deg, #8b5cf6, #22d3ee);
  --grad2: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #22d3ee 100%);
  --mono: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 480px at 15% -5%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(800px 500px at 90% 15%, rgba(34, 211, 238, .10), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(99, 102, 241, .10), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 55%, transparent 100%);
}
::selection { background: rgba(139, 92, 246, .45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #263049; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #33405f; }
a { color: var(--violet2); text-decoration: none; }
a:hover { color: var(--cyan); }
img, svg { vertical-align: middle; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* ---------- navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 16, .78);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .3px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 4px 18px rgba(139, 92, 246, .45);
}
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 10px; transition: .18s;
}
.nav-links a:hover { color: var(--text); background: rgba(139, 92, 246, .12); }
.nav-links a.active { color: var(--text); background: rgba(139, 92, 246, .16); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav .btn { padding: 9px 18px; font-size: 14px; }
.user-chip { display: none; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.user-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hamburger { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 11px; font-size: 17px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  border-radius: 12px; padding: 12px 24px; cursor: pointer;
  border: 1px solid transparent; transition: .18s; text-decoration: none;
  white-space: nowrap; user-select: none;
}
.btn-primary { background: var(--grad); color: #050810; box-shadow: 0 8px 28px rgba(139, 92, 246, .38); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(139, 92, 246, .5); color: #050810; }
.btn-ghost { background: rgba(139, 92, 246, .08); border-color: var(--line2); color: var(--text); }
.btn-ghost:hover { border-color: var(--violet); background: rgba(139, 92, 246, .16); color: var(--text); }
.btn-danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); color: #fca5a5; }
.btn-danger:hover { background: rgba(248, 113, 113, .22); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 60px; text-align: center; position: relative; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .1);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.badge-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; max-width: 900px; margin: 0 auto 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }

/* code window */
.code-window {
  max-width: 780px; margin: 0 auto; text-align: left;
  background: #0b0f19; border: 1px solid var(--line2); border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(139, 92, 246, .08);
  overflow: hidden; animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.code-titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #0d1220; }
.code-titlebar .c { width: 12px; height: 12px; border-radius: 50%; }
.code-titlebar .c1 { background: #ff5f57; } .code-titlebar .c2 { background: #febc2e; } .code-titlebar .c3 { background: #28c840; }
.code-titlebar .fname { margin-left: 10px; color: var(--muted2); font-family: var(--mono); font-size: 12.5px; }
.code-window pre { padding: 20px 22px; overflow: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #c9d5e6; }
.tok-fn { color: #c792ea; } .tok-str { color: #a5e075; } .tok-cm { color: #5c6a84; font-style: italic; }
.tok-kw { color: #7dd3fc; } .tok-num { color: #f78c6c; } .tok-api { color: #ffd76d; }

/* ---------- stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 780px; margin: 40px auto 0; }
.stat-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-box .num { font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-box .lbl { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }

/* ---------- sections ---------- */
.section { padding: 74px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-tag { color: var(--violet2); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.4px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

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

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .2s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--line2); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 0, 0, .4); }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; font-size: 23px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
  background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .3);
}
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .tagline { position: absolute; top: 18px; right: 18px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: var(--green); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step .n {
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; color: #050810; margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }
.step code, .inline-code { font-family: var(--mono); font-size: 12.5px; background: #0b0f19; border: 1px solid #263049; border-radius: 7px; padding: 2px 8px; color: #7dd3fc; word-break: break-all; }

/* demo browser */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.browser { background: #0b0f19; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; font-size: 13px; }
.browser .bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #0d1220; align-items: center; }
.browser .bar .c { width: 9px; height: 9px; border-radius: 50%; }
.browser .bar .url { flex: 1; margin-left: 8px; background: #080b13; border: 1px solid var(--line); border-radius: 7px; padding: 3px 10px; color: var(--muted2); font-family: var(--mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser .body { padding: 18px 14px; text-align: center; min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.browser .big { font-size: 26px; }
.browser .msg { font-size: 12px; color: var(--muted); line-height: 1.5; }
.browser .ok { color: var(--green); font-weight: 700; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
details.faq-item summary { cursor: pointer; padding: 17px 20px; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 20px; color: var(--violet2); transition: .2s; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .a { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

/* cta band */
.cta-band {
  background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(34, 211, 238, .1));
  border: 1px solid rgba(139, 92, 246, .4); border-radius: 22px;
  padding: 46px 34px; text-align: center; margin: 30px 0 60px;
}
.cta-band h2 { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 24px; }

/* ---------- page header (sub pages) ---------- */
.page-head { padding: 56px 0 10px; }
.page-head h1 { font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; letter-spacing: -.4px; }
.page-head p { color: var(--muted); margin-top: 8px; font-size: 16.5px; max-width: 640px; }

/* ---------- hub ---------- */
.hub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0; }
.hub-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.hub-stat .num { font-size: 25px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.hub-stat .num.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub-stat .lbl { font-size: 12.5px; color: var(--muted2); font-weight: 600; }
.hub-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 26px 0 18px; flex-wrap: wrap; }
.hub-toolbar h2 { font-size: 21px; }
.script-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.script-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: .18s; display: flex; flex-direction: column; gap: 12px; }
.script-card:hover { border-color: var(--line2); }
.script-card .top { display: flex; align-items: flex-start; gap: 12px; }
.script-card .fic { font-size: 22px; }
.script-card h3 { font-size: 16px; font-family: var(--mono); word-break: break-all; }
.script-card .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); background: var(--panel2); }
.chip.lock { color: #c4b5fd; border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .12); }
.chip.key { color: #fcd34d; border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .1); }
.chip.ok { color: var(--green); border-color: rgba(74, 222, 128, .4); }
.script-card .url-box { font-family: var(--mono); font-size: 11.5px; color: #7dd3fc; background: #0b0f19; border: 1px solid #263049; border-radius: 9px; padding: 8px 11px; word-break: break-all; }
.script-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.empty {
  border: 2px dashed var(--line2); border-radius: var(--radius);
  padding: 60px 26px; text-align: center; color: var(--muted);
}
.empty .big { font-size: 46px; margin-bottom: 14px; }
.login-wall { border: 2px dashed rgba(139, 92, 246, .5); border-radius: 20px; padding: 60px 30px; text-align: center; margin-top: 30px; background: rgba(139, 92, 246, .05); }

/* ---------- forms & modal ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(3, 5, 9, .78); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-bg.show { display: flex; animation: fadein .18s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 20px;
  width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6); animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; }
.modal-head h3 { font-size: 18px; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; padding: 4px 8px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 18px 24px 24px; }
.tabs { display: flex; background: #0b0f19; border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; background: none; border: none; color: var(--muted); font-family: inherit; font-weight: 700; font-size: 14px; padding: 9px; border-radius: 8px; cursor: pointer; transition: .15s; }
.tabs button.on { background: var(--grad); color: #050810; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.field input[type=text], .field input[type=password], .field select, .field textarea {
  width: 100%; background: #0b0f19; border: 1px solid var(--line2); border-radius: 11px;
  color: var(--text); font-family: inherit; font-size: 14.5px; padding: 11px 14px; outline: none; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.field textarea { font-family: var(--mono); font-size: 13px; line-height: 1.6; min-height: 210px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted2); margin-top: 5px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--violet); cursor: pointer; }
.form-err { display: none; background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .4); color: #fca5a5; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }

/* ---------- obfuscator page ---------- */
.obf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.obf-pane { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.obf-pane .pane-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.obf-pane .pane-head h3 { font-size: 15px; }
.obf-pane textarea { flex: 1; min-height: 420px; background: #0b0f19; border: none; outline: none; resize: vertical; color: #c9d5e6; font-family: var(--mono); font-size: 13px; line-height: 1.7; padding: 18px; }
.obf-pane output, .obf-pane .out { flex: 1; min-height: 120px; padding: 18px; overflow: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: #93c5fd; white-space: pre-wrap; word-break: break-all; }
.obf-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 18px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.seg { display: inline-flex; background: #0b0f19; border: 1px solid var(--line2); border-radius: 11px; padding: 4px; gap: 2px; }
.seg button { background: none; border: none; color: var(--muted); font-family: inherit; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--grad); color: #050810; }
.warnbox { background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .35); border-radius: 13px; padding: 15px 18px; font-size: 13.5px; color: #fde68a; margin-top: 16px; }
.infobox { background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .3); border-radius: 13px; padding: 15px 18px; font-size: 13.5px; color: #a5f3fc; margin-top: 16px; }
.obf-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.obf-stats .chip { font-size: 12px; }

/* ---------- docs ---------- */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 34px; margin-top: 30px; }
.doc-toc { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.doc-toc a { color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 9px; border-left: 2px solid var(--line); }
.doc-toc a:hover { color: var(--text); background: rgba(139, 92, 246, .08); }
.doc-body h2 { font-size: 24px; margin: 38px 0 14px; padding-top: 12px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 17px; margin: 22px 0 10px; }
.doc-body p, .doc-body li { color: var(--muted); font-size: 15px; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.doc-body pre { background: #0b0f19; border: 1px solid var(--line2); border-radius: 13px; padding: 16px 18px; overflow: auto; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #c9d5e6; margin: 14px 0; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.doc-body th { background: var(--panel2); color: var(--text); }
.doc-body td { color: var(--muted); }
.doc-body td code { font-family: var(--mono); color: #7dd3fc; font-size: 12.5px; }
.copyblock { position: relative; }
.copyblock .btn { position: absolute; top: 10px; right: 10px; padding: 6px 12px; font-size: 12px; }

/* ---------- toast ---------- */
#toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--panel2); border: 1px solid var(--line2); border-left: 4px solid var(--violet);
  border-radius: 12px; padding: 13px 18px; font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5); animation: slidein .25s ease; max-width: 340px;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 38px 0 46px; }
.foot { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.foot .col { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }
.foot .col b { color: var(--text); font-size: 14px; margin-bottom: 4px; }
.foot a { color: var(--muted); font-size: 13.5px; }
.foot a:hover { color: var(--violet2); }
.foot-bottom { color: var(--muted2); font-size: 12.5px; margin-top: 28px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .steps, .demo-grid, .stats-strip { grid-template-columns: 1fr 1fr; }
  .hub-stats { grid-template-columns: 1fr 1fr; }
  .obf-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: rgba(7, 10, 16, .97); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .grid-3, .steps, .demo-grid, .stats-strip, .grid-2 { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 54px 0 40px; }
}

/* ============ Sub4Unlock ============ */
.captcha-row { display: inline-flex; align-items: center; gap: 10px; background: #0b0f19; border: 1px solid var(--line2); border-radius: 11px; padding: 9px 13px; }
.captcha-row .cap-q { font-family: var(--mono); font-weight: 700; font-size: 16px; color: #7dd3fc; letter-spacing: 1px; }
.captcha-row .cap-a { width: 74px; background: #111624; border: 1px solid var(--line2); border-radius: 8px; color: var(--text); font-family: var(--mono); font-size: 15px; padding: 7px 10px; text-align: center; outline: none; }
.captcha-row .cap-a:focus { border-color: var(--violet); }
.captcha-row .cap-re { background: none; border: 1px solid var(--line2); border-radius: 8px; color: var(--muted); cursor: pointer; padding: 6px 9px; }
.captcha-row .cap-re:hover { color: var(--text); border-color: var(--violet); }

.bg-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.bg-sw { width: 64px; height: 44px; border-radius: 11px; border: 2px solid var(--line2); cursor: pointer; transition: .15s; }
.bg-sw:hover { transform: translateY(-2px); }
.bg-sw.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(139, 92, 246, .5); }
.bg-sw.aurora { background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); }
.bg-sw.sunset { background: linear-gradient(135deg, #42275a, #734b6d); }
.bg-sw.ocean { background: linear-gradient(135deg, #0f2027, #2c5364); }
.bg-sw.forest { background: linear-gradient(135deg, #0b3d2e, #1d976c); }
.bg-sw.midnight { background: linear-gradient(135deg, #000428, #004e92); }
.bg-sw.candy { background: linear-gradient(135deg, #8360c3, #2ebf91); }

.s4page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 22px; }
.s4page.bg-aurora { background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); }
.s4page.bg-sunset { background: linear-gradient(135deg, #42275a, #734b6d); }
.s4page.bg-ocean { background: linear-gradient(135deg, #0f2027, #2c5364); }
.s4page.bg-forest { background: linear-gradient(135deg, #0b3d2e, #1d976c); }
.s4page.bg-midnight { background: linear-gradient(135deg, #000428, #004e92); }
.s4page.bg-candy { background: linear-gradient(135deg, #8360c3, #2ebf91); }
.s4-wrap { width: 100%; max-width: 620px; }
.s4-card { background: rgba(8, 11, 18, .82); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 34px 30px; backdrop-filter: blur(14px); box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.s4-brand { color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .3px; margin-bottom: 20px; opacity: .92; }
.s4-brand b { color: #22d3ee; }
.s4-badge { font-size: 10px; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; }
.s4-title { color: #fff; font-size: 24px; margin-bottom: 10px; }
.s4-desc { color: rgba(255, 255, 255, .78); font-size: 14.5px; margin-bottom: 14px; }
.s4-steps { color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px; text-align: center; }
.s4-caparea { background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 14px; margin-bottom: 18px; }
.s4-caplabel { color: rgba(255, 255, 255, .75); font-size: 12.5px; margin-bottom: 10px; }
.s4-caparea .captcha-row { background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .2); }
.s4-caparea .cap-a { background: rgba(0, 0, 0, .5); color: #fff; border-color: rgba(255, 255, 255, .25); }
.s4-note { color: rgba(255, 255, 255, .55); font-size: 12.5px; margin-top: 14px; text-align: center; }
.s4-note b { color: rgba(255, 255, 255, .8); }
.s4page a { color: #7dd3fc; }
.s4-loading { color: rgba(255, 255, 255, .7); text-align: center; padding: 30px 0; }
.s4-adnote { color: rgba(255, 255, 255, .85); font-size: 13.5px; margin-bottom: 14px; }
.s4-adslot { display: flex; gap: 14px; align-items: stretch; margin-bottom: 18px; }
.s4-adfake { flex: 1; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .3); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; min-height: 150px; }
.s4-adtag { font-size: 9.5px; letter-spacing: 2.5px; color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); padding: 5px 12px; }
.s4-adinner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: rgba(255, 255, 255, .8); font-size: 14px; text-align: center; padding: 12px; }
.s4-ring { position: relative; width: 118px; flex: 0 0 118px; display: flex; align-items: center; justify-content: center; }
.s4-ring svg { width: 118px; height: 118px; transform: rotate(-90deg); }
.s4-ring .ring-bg { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 9; }
.s4-ring .ring-fg { fill: none; stroke: #22d3ee; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
.ring-num { position: absolute; font-size: 30px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.s4-reveal { background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 18px; color: #d7e3f4; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow: auto; margin: 0 0 16px; }
.s4page .btn-primary { color: #050810; }
.s4page .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); }
.s4-foot { color: rgba(255, 255, 255, .45); font-size: 12.5px; text-align: center; margin-top: 18px; }
/* layout varian */
.s4page.lay2 .s4-card { text-align: left; border-radius: 26px 6px 6px 26px; border-left: 5px solid #22d3ee; }
.s4page.lay3 .s4-card { font-family: var(--mono); border-radius: 10px; background: rgba(0, 0, 0, .78); }
.s4page.lay3 .s4-title { font-family: var(--mono); color: #4ade80; }
.s4page.lay3 .s4-brand { font-family: var(--mono); color: #4ade80; }
@media (max-width: 560px) { .s4-adslot { flex-direction: column; align-items: center; } .s4-ring { margin-top: 4px; } }

/* nav lebih longgar saat menu nambah */
.nav-links { flex-wrap: wrap; }

/* ============ PandaAI ============ */
#aiFab { position: fixed; right: 22px; bottom: 22px; z-index: 140; width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; font-size: 27px; background: linear-gradient(135deg,#8b5cf6,#22d3ee); box-shadow: 0 10px 30px rgba(139,92,246,.5); display:flex; align-items:center; justify-content:center; transition:.2s; }
#aiFab:hover { transform: scale(1.08); }
#aiFab .ai-spark { position:absolute; top:-2px; right:-2px; font-size:16px; animation: pulse 1.8s infinite; }
#aiPanel { position: fixed; right: 22px; bottom: 92px; z-index: 141; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: 70vh; background: var(--panel2); border: 1px solid var(--line2); border-radius: 18px; display: none; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
#aiPanel.open { display: flex; animation: pop .18s ease; }
.ai-head { display:flex; align-items:baseline; gap:8px; padding:13px 16px; border-bottom:1px solid var(--line); background:#0d1220; }
.ai-head b { font-size:15px; }
.ai-sub { color: var(--muted2); font-size:11.5px; flex:1; }
.ai-close { background:none;border:none;color:var(--muted);font-size:20px;cursor:pointer; }
.ai-box { flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; }
.ai-msg { max-width: 86%; padding: 10px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.ai-msg.user { align-self: flex-end; background: linear-gradient(135deg,#8b5cf6,#6366f1); color:#fff; border-bottom-right-radius: 4px; }
.ai-msg.bot { align-self: flex-start; background: #0b0f19; border: 1px solid var(--line2); color: #c9d5e6; border-bottom-left-radius: 4px; }
.ai-typing { opacity:.65; font-style: italic; }
.ai-chips { display:flex; flex-wrap:wrap; gap:6px; padding: 0 12px 8px; }
.ai-chips button { font-size: 11px; font-weight:700; color: var(--muted); background:#0b0f19; border:1px solid var(--line2); border-radius:999px; padding:5px 10px; cursor:pointer; font-family:inherit; }
.ai-chips button:hover { color: var(--text); border-color: var(--violet); }
.ai-inputrow { display:flex; gap:8px; padding:10px 12px 12px; border-top:1px solid var(--line); }
.ai-inputrow textarea { flex:1; resize:none; background:#0b0f19; border:1px solid var(--line2); border-radius:11px; color:var(--text); font-family:inherit; font-size:13.5px; padding:9px 12px; outline:none; max-height:90px; }
.ai-inputrow textarea:focus { border-color: var(--violet); }
.ai-inputrow button { width:42px; border:none; border-radius:11px; background: var(--grad); color:#050810; font-size:16px; cursor:pointer; font-weight:800; }
@media (max-width: 560px) { #aiPanel { right: 12px; } }

/* ============ video sub4unlock ============ */
.s4-video { flex: 1; position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.2); min-height: 170px; }
.s4-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.s4-video.yt { aspect-ratio: 16/9; }
.s4-video.tt { aspect-ratio: 9/13; max-height: 330px; margin: 0 auto; width: auto; min-width: 55%; }
.s4-videolabel { position:absolute; bottom:0; left:0; right:0; font-size:9.5px; letter-spacing:2px; color:rgba(255,255,255,.75); background:linear-gradient(transparent,rgba(0,0,0,.7)); padding:14px 10px 5px; z-index:2; }
.bg-customprev { width: 64px; height: 44px; border-radius: 11px; border: 2px dashed var(--line2); background: #0b0f19 center/cover; display:flex; align-items:center; justify-content:center; font-size:18px; cursor:pointer; }
.bg-customprev.on { border-color:#fff; box-shadow:0 0 0 3px rgba(139,92,246,.5); }
