/* ============================================================
   FunCore Website 1.0 — фирменный интерфейс платформы
   Источник истины: FunCore Design Spec v1.0 (bg/surface/lime/mono)
   ============================================================ */

:root {
  --bg: #0A0F14;
  --bg2: #0C1219;
  --surface: #111820;
  --surface2: #151F2A;
  --line: #1E2A35;
  --text: #E8EEF2;
  --muted: #8A94A6;
  --disabled: #4A5568;
  --accent: #B4FF39;
  --accent-dim: rgba(180, 255, 57, .12);
  --accent-ink: #0A0F14;
  --beta: #39C2FF;
  --update: #FFB800;
  --danger: #FF7A45;
  --radius: 14px;
  --radius-sm: 10px;
  --font-ui: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }

#site { min-height: 100vh; display: flex; flex-direction: column; }
#s-page { flex: 1; width: 100%; }
.s-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.s-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: rgba(10, 15, 20, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.s-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.s-logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 16px;
}
.s-logo-mark::before { content: "{"; color: var(--accent); }
.s-logo-mark::after { content: "}"; color: var(--accent); }
.s-logo-name { font-weight: 800; letter-spacing: .02em; font-size: 18px; }
.s-nav { display: flex; gap: 4px; flex: 1; }
.s-nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--muted);
  font-size: 14px; font-weight: 600; transition: color .15s, background .15s;
}
.s-nav a:hover { color: var(--text); background: var(--surface); }
.s-nav a.active { color: var(--accent); }
.s-head-actions { display: flex; align-items: center; gap: 12px; }
.s-cart-link { position: relative; display: flex; padding: 8px; color: var(--muted); }
.s-cart-link:hover { color: var(--text); }
.s-cart-link svg { width: 22px; height: 22px; }
.s-cart-link b {
  position: absolute; top: 0; right: -2px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10px; font-weight: 700; border-radius: 8px; padding: 1px 5px;
}
.s-burger { display: none; background: none; border: 0; width: 34px; height: 30px; position: relative; }
.s-burger span { display: block; height: 2px; background: var(--text); margin: 5px 6px; border-radius: 2px; }

/* ---------- Buttons / badges ---------- */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent);
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  font-family: var(--font-mono);
  transition: transform .12s, box-shadow .2s, background .15s;
}
.s-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(180, 255, 57, .25); }
.s-btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.s-btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.s-btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.s-btn-sm { padding: 8px 16px; font-size: 12px; }
.s-btn-block { width: 100%; }

.s-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
  white-space: nowrap;
}
.s-badge.stable { color: var(--accent); border-color: rgba(180,255,57,.35); background: var(--accent-dim); }
.s-badge.beta { color: var(--beta); border-color: rgba(57,194,255,.35); background: rgba(57,194,255,.1); }
.s-badge.update { color: var(--update); border-color: rgba(255,184,0,.35); background: rgba(255,184,0,.1); }
.s-badge.dev { color: var(--danger); border-color: rgba(255,122,69,.35); background: rgba(255,122,69,.1); }
.s-badge.lime { color: var(--accent); border-color: rgba(180,255,57,.35); background: var(--accent-dim); }

/* ---------- Hero + Core Console ---------- */
.s-hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.s-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 340px at 18% 0%, rgba(180,255,57,.07), transparent 60%),
    radial-gradient(560px 300px at 85% 20%, rgba(57,194,255,.05), transparent 60%);
}
.s-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 420px at 30% 10%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(700px 420px at 30% 10%, #000 0%, transparent 70%);
}
.s-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.s-hero-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 18px;
}
.s-hero h1 {
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 22px;
}
.s-hero h1 .mono { font-family: var(--font-mono); }
.s-hero h1 .lime { color: var(--accent); }
.s-hero-pillars { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.s-hero-sub { color: var(--muted); font-size: 17px; max-width: 520px; margin-bottom: 32px; }
.s-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Core Console — фирменный интерактивный элемент FunCore */
.core-console {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.core-console-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.core-console-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.core-console-dot:nth-child(1) { background: var(--danger); }
.core-console-dot:nth-child(2) { background: var(--update); }
.core-console-dot:nth-child(3) { background: var(--accent); }
.core-console-title {
  margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.core-console-body {
  padding: 18px 20px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85;
  min-height: 252px;
}
.cc-line { white-space: pre-wrap; word-break: break-all; }
.cc-prompt { color: var(--accent); }
.cc-cmd { color: var(--text); }
.cc-ok { color: var(--accent); }
.cc-info { color: var(--muted); }
.cc-warn { color: var(--update); }
.cc-cursor {
  display: inline-block; width: 8px; height: 16px; vertical-align: -2px;
  background: var(--accent); animation: cc-blink 1s steps(1) infinite;
}
@keyframes cc-blink { 50% { opacity: 0; } }
.core-console-flow {
  display: flex; border-top: 1px solid var(--line); background: var(--surface);
}
.ccf-step {
  flex: 1; padding: 10px 6px; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--disabled); text-transform: uppercase;
  border-right: 1px solid var(--line); transition: color .3s, background .3s;
}
.ccf-step:last-child { border-right: 0; }
.ccf-step.on { color: var(--accent); background: var(--accent-dim); }

/* ---------- Stats strip ---------- */
.s-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 56px 0 0;
}
.s-stat { background: var(--surface); padding: 26px 22px; }
.s-stat b {
  display: block; font-family: var(--font-mono); font-size: 32px; font-weight: 700;
  color: var(--accent); line-height: 1.1;
}
.s-stat span { color: var(--muted); font-size: 13px; }

/* ---------- Sections ---------- */
.s-section { padding: 72px 0; }
.s-section-h { margin-bottom: 36px; }
.s-section-h .eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.s-section-h h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.s-section-h p { color: var(--muted); margin-top: 10px; max-width: 620px; }

/* Ecosystem pillars */
.s-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.s-pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: border-color .2s, transform .2s;
}
.s-pillar:hover { border-color: rgba(180,255,57,.4); transform: translateY(-3px); }
.s-pillar-ico {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: var(--accent-dim); border: 1px solid rgba(180,255,57,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--accent); font-size: 19px; font-weight: 700;
}
.s-pillar h3 { font-size: 16px; margin-bottom: 8px; }
.s-pillar p { color: var(--muted); font-size: 13.5px; }

/* ---------- Page head (внутренние страницы) ---------- */
.s-pagehead { padding: 56px 0 30px; }
.s-pagehead h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.01em; }
.s-pagehead .eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
}
.s-pagehead p { color: var(--muted); margin-top: 12px; max-width: 640px; }

/* ---------- Catalog toolbar ---------- */
.s-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.s-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 16px;
}
.s-search svg { width: 18px; height: 18px; stroke: var(--muted); flex-shrink: 0; }
.s-search input {
  flex: 1; background: none; border: 0; outline: 0; color: var(--text);
  font-size: 15px; padding: 14px 0; font-family: inherit;
}
.s-search input::placeholder { color: var(--disabled); }
.s-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.s-chip {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: all .15s;
}
.s-chip:hover { color: var(--text); border-color: var(--disabled); }
.s-chip.on { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.s-select {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; font-family: inherit;
  outline: none;
}

/* ---------- Product cards ---------- */
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.s-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.s-card:hover { border-color: rgba(180,255,57,.45); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.s-card-cover {
  aspect-ratio: 16/9; background: var(--bg2); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.s-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.s-card-cover .s-card-ph {
  font-family: var(--font-mono); font-size: 40px; font-weight: 700; color: var(--line);
}
.s-card-cover .s-badge { position: absolute; top: 12px; left: 12px; }
.s-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.s-card-title { font-size: 17px; font-weight: 700; }
.s-card-slug { font-family: var(--font-mono); font-size: 11.5px; color: var(--disabled); }
.s-card-desc {
  color: var(--muted); font-size: 13.5px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.s-card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.s-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.s-price { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--text); }
.s-price.free { color: var(--accent); }

/* ---------- Product page ---------- */
.s-prod { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.s-prod-cover {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg2); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center; position: sticky; top: 90px;
}
.s-prod-cover img { width: 100%; height: 100%; object-fit: cover; }
.s-prod-cover .s-card-ph { font-family: var(--font-mono); font-size: 72px; font-weight: 700; color: var(--line); }
.s-prod h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin: 10px 0 6px; letter-spacing: -.01em; }
.s-prod-slug { font-family: var(--font-mono); color: var(--disabled); font-size: 13px; margin-bottom: 18px; }
.s-prod-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.s-prod-buy {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 22px 0; display: flex; flex-direction: column; gap: 14px;
}
.s-prod-buy .s-price { font-size: 28px; }
.s-prod-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.s-plan-note {
  display: flex; gap: 10px; align-items: center;
  background: var(--accent-dim); border: 1px solid rgba(180,255,57,.3);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13.5px; color: var(--accent);
}
.s-block { border-top: 1px solid var(--line); padding: 26px 0; }
.s-block h3 {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.s-block .s-text { color: var(--text); white-space: pre-wrap; font-size: 15px; }
.s-block .s-text.dim { color: var(--muted); }
.s-ver-list { display: flex; flex-direction: column; gap: 12px; }
.s-ver {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  background: var(--surface);
}
.s-ver-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.s-ver-head b { font-family: var(--font-mono); color: var(--accent); }
.s-ver-head time { color: var(--disabled); font-size: 12px; font-family: var(--font-mono); }
.s-ver p { color: var(--muted); font-size: 13.5px; white-space: pre-wrap; }

/* ---------- Plans ---------- */
.s-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 40px; }
.s-plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative;
  transition: border-color .2s, transform .2s;
}
.s-plan:hover { transform: translateY(-3px); }
.s-plan.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(180,255,57,.12); }
.s-plan-name { font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: .1em; }
.s-plan-price { font-family: var(--font-mono); font-size: 34px; font-weight: 700; }
.s-plan-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.s-plan-desc { color: var(--muted); font-size: 13.5px; }
.s-plan-feats { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; flex: 1; }
.s-plan-feats li { display: flex; gap: 8px; color: var(--muted); }
.s-plan-feats li::before { content: "+"; color: var(--accent); font-family: var(--font-mono); font-weight: 700; }
.s-plan-plugins { font-size: 12.5px; color: var(--disabled); font-family: var(--font-mono); }

/* Compare table */
.s-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.s-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.s-table th, .s-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.s-table th { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.s-table tr:last-child td { border-bottom: 0; }
.s-table td { color: var(--text); }
.s-table td.mut { color: var(--muted); }

/* ---------- Wiki ---------- */
.s-wiki { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.s-wiki-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 6px; }
.s-wiki-group { margin-bottom: 14px; }
.s-wiki-group-h {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); padding: 8px 12px;
}
.s-wiki-link {
  display: block; padding: 8px 12px 8px 22px; border-radius: 8px;
  color: var(--muted); font-size: 14px; transition: all .12s;
}
.s-wiki-link:hover { color: var(--text); background: var(--surface); }
.s-wiki-link.on { color: var(--accent); background: var(--accent-dim); }
.s-wiki-content {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 36px; min-height: 300px;
}
.s-wiki-content h2 { font-size: 26px; margin-bottom: 6px; }
.s-wiki-content .s-wiki-sec { color: var(--disabled); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.wiki-body { font-size: 15px; line-height: 1.75; color: var(--text); }
.wiki-body h2, .wiki-body h3, .wiki-body h4 { margin: 22px 0 10px; }
.wiki-body p { margin: 10px 0; color: var(--muted); }
.wiki-body code {
  font-family: var(--font-mono); font-size: 13px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--accent);
}
.wiki-body ul, .wiki-body ol { margin: 10px 0 10px 22px; color: var(--muted); }

/* ---------- Updates feed ---------- */
.s-feed { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.s-update {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 20px 22px;
}
.s-update-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.s-update-head b { font-size: 16px; }
.s-update-head .v { font-family: var(--font-mono); color: var(--accent); font-weight: 700; }
.s-update-head time { color: var(--disabled); font-family: var(--font-mono); font-size: 12px; margin-left: auto; }
.s-update p { color: var(--muted); font-size: 14px; white-space: pre-wrap; }

/* ---------- Installer ---------- */
.s-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; counter-reset: step; margin: 30px 0; }
.s-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; counter-increment: step;
}
.s-step::before {
  content: "0" counter(step);
  font-family: var(--font-mono); color: var(--accent); font-size: 13px; font-weight: 700;
  display: block; margin-bottom: 10px;
}
.s-step p { color: var(--muted); font-size: 13.5px; }
.s-cmd {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; margin: 18px 0;
}
.s-cmd code {
  flex: 1; font-family: var(--font-mono); font-size: 14.5px; color: var(--accent);
  overflow-x: auto; white-space: nowrap; min-width: 200px;
}
.s-cmd code::before { content: "$ "; color: var(--disabled); }

/* ---------- Account ---------- */
.s-account { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.s-acc-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; }
.s-acc-nav button {
  text-align: left; padding: 10px 14px; border-radius: 8px; border: 0;
  background: none; color: var(--muted); font-size: 14px; font-weight: 600; transition: all .12s;
}
.s-acc-nav button:hover { color: var(--text); background: var(--surface); }
.s-acc-nav button.on { color: var(--accent); background: var(--accent-dim); }
.s-panel { display: flex; flex-direction: column; gap: 16px; }
.s-panel-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.s-panel-card h3 { font-size: 16px; margin-bottom: 14px; }
.s-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.s-kv .kv { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.s-kv .kv b { display: block; font-family: var(--font-mono); font-size: 22px; color: var(--accent); }
.s-kv .kv span { color: var(--muted); font-size: 12.5px; }
.s-lic {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px; background: var(--bg2);
}
.s-lic + .s-lic { margin-top: 12px; }
.s-lic-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.s-lic-head b { font-size: 15px; }
.s-lic-key {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  background: var(--surface); border: 1px dashed var(--line); border-radius: 8px;
  padding: 8px 12px; word-break: break-all; cursor: pointer;
}
.s-lic-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.s-lic-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.s-empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 24px;
  text-align: center; color: var(--muted);
}

/* ---------- Cart ---------- */
.s-cart-row {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; background: var(--surface); margin-bottom: 12px;
}
.s-cart-row .t { flex: 1; font-weight: 600; }
.s-cart-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: 18px;
}
.s-cart-total b { font-family: var(--font-mono); font-size: 26px; color: var(--accent); }
.s-icon-btn {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; width: 34px; height: 34px; font-size: 15px; transition: all .15s;
}
.s-icon-btn:hover { color: var(--danger); border-color: var(--danger); }

/* ---------- Login gate ---------- */
.s-login-gate { max-width: 460px; margin: 70px auto; text-align: center; }
.s-login-gate .s-logo-mark { width: 64px; height: 64px; font-size: 26px; margin: 0 auto 20px; border-radius: 16px; }
.s-login-gate h2 { font-size: 26px; margin-bottom: 12px; }
.s-login-gate p { color: var(--muted); margin-bottom: 26px; font-size: 14.5px; }

/* ---------- About / Support ---------- */
.s-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

/* ---------- Skeleton / misc ---------- */
.s-skel {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: skel 1.2s infinite linear;
  border-radius: var(--radius-sm); min-height: 20px;
}
@keyframes skel { to { background-position: -200% 0; } }
.s-note { color: var(--muted); font-size: 13px; }
.s-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--surface2); border: 1px solid var(--accent); color: var(--text);
  padding: 12px 22px; border-radius: 10px; z-index: 100; font-size: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); max-width: 90vw;
}
.s-hidden { display: none !important; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt40 { margin-top: 40px; }

/* ---------- Footer ---------- */
.s-footer { border-top: 1px solid var(--line); margin-top: 60px; background: var(--bg2); }
.s-footer-grid {
  max-width: 1180px; margin: 0 auto; padding: 48px 24px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
}
.s-footer-logo { margin-bottom: 14px; }
.s-footer-tag { color: var(--muted); font-size: 13.5px; max-width: 280px; }
.s-footer-h { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--disabled); margin-bottom: 14px; }
.s-footer-grid a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.s-footer-grid a:hover { color: var(--accent); }
.s-footer-bottom {
  border-top: 1px solid var(--line); padding: 18px 24px; text-align: center;
  color: var(--disabled); font-size: 12.5px; font-family: var(--font-mono);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .s-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .s-prod { grid-template-columns: 1fr; }
  .s-prod-cover { position: static; }
  .s-wiki { grid-template-columns: 1fr; }
  .s-wiki-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .s-account { grid-template-columns: 1fr; }
  .s-acc-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .s-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .s-header { padding: 12px 16px; gap: 14px; }
  .s-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; gap: 2px;
  }
  .s-nav.open { display: flex; }
  .s-burger { display: block; }
  .s-stats { grid-template-columns: repeat(2, 1fr); }
  .s-hero { padding: 52px 0 44px; }
  .s-section { padding: 48px 0; }
  .s-wiki-content { padding: 24px 20px; }
  .s-hero-cta .s-btn { flex: 1; }
  .s-prod-cta .s-btn { flex: 1; }
}
