:root {
  --bg: #0a0b0f;
  --bg-2: #0e1016;
  --surface: #14161d;
  --surface-2: #1c1f29;
  --surface-3: #232735;
  --border: #2a2e3d;
  --border-strong: #3a3f52;
  --text: #e7e8eb;
  --text-muted: #8b8f9c;
  --text-dim: #5d6172;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-2: #a855f7;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --container: 1180px;
  --header-h: 72px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-display: "Orbitron", "Inter", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Never let a stray element (a wide decorative layer, an off-canvas menu mid
   transition, a long unbroken string) create a horizontal scrollbar that makes
   the whole page zoom out on a phone. `clip` is used over `hidden` so <html>
   does NOT become a scroll container — that would break the sticky header;
   `hidden` is the fallback for Safari < 16 which predates `clip`. */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
/* Long tokens (hashes, URLs, PIDs) wrap instead of forcing the line wide. */
body { overflow-wrap: break-word; word-break: break-word; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 15% -10%, rgba(99,102,241,0.18), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(168,85,247,0.12), transparent 45%);
  background-attachment: fixed;
}
a { color: var(--accent-hover); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--text); }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 12px; z-index: 100; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------- header ------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 11, 15, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  background: rgba(10, 11, 15, 0.85);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { display: inline-flex; }
.brand-accent { color: var(--accent-hover); }

.site-nav { display: flex; gap: 28px; margin-left: 24px; flex: 1; }
.site-nav a {
  color: var(--text-muted); font-weight: 500; font-size: 14px;
  padding: 6px 2px; position: relative;
}
.site-nav a:hover { color: var(--text); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; gap: 10px; align-items: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(116,127,141,0.12); border: 1px solid rgba(116,127,141,0.28);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: #b6bcc7; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.status-pill .dot { background: #747f8d; }
.status-pill[data-state="ok"] { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.28); color: #4ade80; }
.status-pill[data-state="ok"] .dot { background: #22c55e; }
.status-pill[data-state="degraded"] { background: rgba(234,179,8,0.08); border-color: rgba(234,179,8,0.28); color: #facc15; }
.status-pill[data-state="degraded"] .dot { background: #eab308; box-shadow: 0 0 0 0 rgba(234,179,8,0.7); }
.status-pill[data-state="down"] { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.28); color: #f87171; }
.status-pill[data-state="down"] .dot { background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
.status-pill-label { white-space: nowrap; }
@media (max-width: 1100px) { .status-pill-label { display: none; } .status-pill { padding: 6px; } }

.btn-meta {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(34,197,94,0.15); color: #4ade80;
  margin-left: 4px;
}

@keyframes hintPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.lm-hint-pulse { animation: hintPulse 2s ease-in-out infinite; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 40px; height: 40px; padding: 10px; cursor: pointer;
  flex-direction: column; justify-content: space-between; align-items: stretch;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ------------------------- buttons ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover); color: #fff;
  box-shadow: 0 0 32px var(--accent-glow), 0 8px 28px rgba(99,102,241,0.45);
  transform: translateY(-1px) scale(1.02);
}
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--text); }
.btn[data-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ------------------------- hero ------------------------- */
.hero { position: relative; padding: 96px 0 96px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(99,102,241,0.20), transparent 55%),
    radial-gradient(700px 500px at 85% 20%, rgba(168,85,247,0.16), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
}
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: center;
}
.hero-text { text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(28, 31, 41, 0.6); backdrop-filter: blur(6px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
.dot-pulse { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.8vw, 76px);
  font-weight: 800; line-height: 1.0; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 0%, #b9bbc6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 22px 0 0; max-width: 540px;
  color: var(--text-muted); font-size: 17px; line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 48px;
  list-style: none; flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-mono); font-size: 18px; color: var(--text); }
.hero-stats span { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ------------------------- hero visual (Tauri loader mockup) ------------------------- */
.hero-visual { position: relative; }
.loader-mock {
  --lm-bg: #0e0f12;
  --lm-side-bg: #0a0b0e;
  --lm-bg-2: #1a1c20;
  --lm-bg-3: #23262b;
  --lm-border: #2a2d33;
  --lm-text: #dcdde1;
  --lm-dim: #9aa0a6;
  --lm-accent: #5865f2;
  --lm-ok: #43b581;
  --lm-warn: #faa61a;
  --lm-pending: #747f8d;

  width: 100%; max-width: 580px; margin-left: auto;
  background: var(--lm-bg);
  border: 1px solid var(--lm-border);
  border-radius: 12px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(99,102,241,0.08) inset,
    0 0 80px rgba(99,102,241,0.18);
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--lm-text);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.loader-mock-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px; padding: 0 12px;
  background: var(--lm-bg);
  border-bottom: 1px solid var(--lm-border);
}
.lm-title { font-size: 12px; font-weight: 600; color: var(--lm-dim); letter-spacing: 0.04em; }
.lm-window-controls { display: inline-flex; }
.lm-wc {
  width: 30px; height: 26px; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--lm-dim); font-size: 11px;
}
.lm-wc.close { color: #d18a8a; }

.loader-mock-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }

/* ---- sidebar ---- */
.lm-side {
  background: var(--lm-side-bg);
  border-right: 1px solid var(--lm-border);
  display: flex; flex-direction: column;
}
.lm-side-head {
  display: flex; gap: 6px; padding: 10px;
  border-bottom: 1px solid var(--lm-border);
}
.lm-side-search {
  flex: 1; min-width: 0;
  background: var(--lm-bg-3); border: 1px solid var(--lm-border);
  color: var(--lm-text); padding: 6px 9px; border-radius: 6px;
  font-size: 12px; font-family: inherit;
}
.lm-side-search::placeholder { color: var(--lm-dim); }
.lm-side-refresh {
  width: 28px; height: 28px;
  background: var(--lm-bg-3); border: 1px solid var(--lm-border);
  color: var(--lm-dim); border-radius: 6px; font-size: 13px; cursor: default;
}
.lm-side-list { flex: 1; padding: 6px 0; overflow: hidden; }
.lm-side-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--lm-dim); padding: 8px 12px 4px;
  font-family: var(--font-mono);
}
.lm-side-sep { height: 1px; background: var(--lm-border); margin: 8px 12px; }
.lm-row {
  display: grid; grid-template-columns: 32px 1fr 16px;
  gap: 8px; align-items: center;
  padding: 6px 10px 6px 12px;
  border-left: 2px solid transparent;
  transition: background .1s ease;
}
.lm-row.selected {
  background: rgba(88, 101, 242, 0.18);
  border-left-color: var(--lm-accent);
}
.lm-row-icon {
  width: 32px; height: 32px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; letter-spacing: 0.02em;
  color: #fff;
}
.lm-icon-script { background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%); }
.lm-icon-locked {
  background: var(--lm-bg-3);
  color: var(--lm-pending);
  border: 1px solid var(--lm-border);
}
.lm-row-main { min-width: 0; }
.lm-row-name {
  font-size: 12.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lm-row-status {
  font-size: 10.5px; color: var(--lm-dim); margin-top: 2px;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.lm-row-status.active { color: var(--lm-ok); }
.lm-row-status.locked { color: var(--lm-pending); }
.lm-row-fav {
  font-size: 13px; color: var(--lm-dim); justify-self: end;
  line-height: 1;
}
.lm-row-fav.on { color: var(--lm-warn); }
.lm-side-foot {
  border-top: 1px solid var(--lm-border);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
}
.lm-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--lm-bg-3);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: var(--lm-text);
}
.lm-side-name { font-size: 12px; font-weight: 600; color: var(--lm-text); }

/* ---- main ---- */
.lm-main {
  padding: 20px 22px 14px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.lm-head { display: flex; flex-direction: column; gap: 8px; }
.lm-title-h {
  margin: 0; font-size: 17px; font-weight: 700;
  font-family: var(--font-sans); letter-spacing: -0.005em;
}
.lm-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.lm-pill {
  background: var(--lm-bg-3); border: 1px solid var(--lm-border);
  color: var(--lm-dim); font-size: 9.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: var(--font-mono);
}
.lm-pill-ok { color: var(--lm-ok); border-color: rgba(67, 181, 129, 0.4); }
.lm-section { display: flex; flex-direction: column; gap: 6px; }
.lm-section-h {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--lm-dim); font-family: var(--font-mono); font-weight: 600;
}
.lm-target-row { display: flex; gap: 6px; }
.lm-input {
  flex: 1; min-width: 0;
  background: var(--lm-bg-3); border: 1px solid var(--lm-border);
  color: var(--lm-text); padding: 7px 10px; border-radius: 6px;
  font-size: 12px; font-family: var(--font-mono);
}
.lm-ghost {
  background: transparent; border: 1px solid var(--lm-border);
  color: var(--lm-text); padding: 6px 12px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500; cursor: default;
}
.lm-hint {
  font-size: 11px; color: var(--lm-dim);
  font-family: var(--font-mono); letter-spacing: 0.01em;
}
.lm-hint code {
  background: var(--lm-bg-3); border: 1px solid var(--lm-border);
  padding: 1px 5px; border-radius: 3px; font-size: 10.5px;
}
.lm-hint-good { color: var(--lm-ok); font-weight: 600; }
.lm-check {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--lm-text); cursor: default;
}
.lm-check-box {
  width: 16px; height: 16px; border-radius: 3px;
  background: var(--lm-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.lm-check-mark { font-size: 11px; color: #fff; line-height: 1; }

.lm-done {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(67, 181, 129, 0.12) 0%, rgba(67, 181, 129, 0.02) 100%);
  border: 1px solid rgba(67, 181, 129, 0.35);
  border-radius: 8px;
}
.lm-done-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--lm-ok); color: #0e0f12;
  font-weight: 700; font-size: 10px;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 999px; margin-bottom: 8px;
  font-family: var(--font-mono);
}
.lm-done-title { font-size: 13px; font-weight: 600; color: var(--lm-text); margin-bottom: 6px; }

.lm-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--lm-border);
  font-size: 11px; color: var(--lm-dim); font-family: var(--font-mono);
}
.lm-foot .dot { background: var(--lm-ok); }
.lm-foot-ok { color: var(--lm-ok); font-weight: 700; }

/* ------------------------- sections ------------------------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(20, 22, 29, 0.6), transparent); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  color: var(--accent-hover); letter-spacing: 0.22em; text-transform: uppercase;
  padding: 5px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(99,102,241,0.08);
}
.section-head h2 {
  margin-top: 18px; font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  letter-spacing: -0.015em; line-height: 1.1;
}
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 16px; }

/* ------------------------- feature cards ------------------------- */
.cards-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: linear-gradient(180deg, rgba(28,31,41,0.55) 0%, rgba(14,16,22,0.55) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.08) inset, 0 0 24px rgba(99,102,241,0.1);
}
.card h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.005em; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.12); color: var(--accent-hover);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
  border: 1px solid rgba(99,102,241,0.25);
}
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.005em; }
.card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* ------------------------- products ------------------------- */
.product-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 920px; margin: 0 auto;
}
.product-card {
  position: relative;
  background: linear-gradient(180deg, rgba(28,31,41,0.6) 0%, rgba(14,16,22,0.6) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 24px rgba(99,102,241,0.1); }
.product-card.featured {
  border-color: rgba(99,102,241,0.45);
  background: linear-gradient(180deg, rgba(99,102,241,0.1) 0%, rgba(28,31,41,0.6) 60%);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.15) inset, 0 0 30px rgba(99,102,241,0.15);
}
.product-card h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.005em; }
.product-card.featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.product-tag {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: #fff;
}
.product-tag.muted { background: var(--surface-3); color: var(--text-muted); }
.product-art {
  width: 100%; aspect-ratio: 16/8;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(99,102,241,0.18) 0%, rgba(168,85,247,0.14) 100%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-art img { transform: scale(1.04); }
.product-art-letters {
  font-family: var(--font-mono); font-weight: 700; font-size: 44px;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.product-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.product-desc { color: var(--text-muted); font-size: 14.5px; }
.product-bullets { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.product-bullets li {
  font-size: 13.5px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.product-bullets li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-hover);
}
.product-prices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.price-pill {
  display: inline-flex; gap: 8px; align-items: baseline;
  font-size: 12px; color: var(--text-muted);
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.price-pill strong { font-family: var(--font-mono); color: var(--text); font-size: 13.5px; }

/* ------------------------- security cards ------------------------- */
.sec-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.sec-card {
  background: linear-gradient(180deg, rgba(28,31,41,0.6) 0%, rgba(14,16,22,0.6) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sec-card:hover {
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 0 32px rgba(99,102,241,0.08), 0 12px 30px rgba(0,0,0,0.35);
}
.sec-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sec-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--accent-hover); letter-spacing: 0.08em;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3);
  padding: 3px 8px; border-radius: var(--radius-sm);
}
.sec-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; letter-spacing: 0.005em; color: var(--text);
}
.sec-card > p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.sec-bullets { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.sec-bullets li {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  padding-left: 18px; position: relative;
}
.sec-bullets li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: rotate(45deg);
}
.sec-bullets code, .sec-card p code {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--surface-3); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px; color: var(--text);
}

/* ------------------------- media gallery ------------------------- */
.media-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.media-tile {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden; cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.media-tile:hover, .media-tile:focus-visible {
  border-color: rgba(99,102,241,0.45);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 0 24px rgba(99,102,241,0.12);
  outline: none;
}
.media-thumb { position: absolute; inset: 0; display: flex; }
.media-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.media-tile:hover .media-img, .media-tile:focus-visible .media-img { transform: scale(1.05); }
.media-shimmer {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(99,102,241,0.18) 0%, rgba(168,85,247,0.14) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 24px);
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  padding: 5vh 5vw;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 100%; max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(28,31,41,0.85); border: 1px solid var(--border-strong);
  color: var(--text); border-radius: 50%; cursor: pointer;
  font-size: 22px; line-height: 1;
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); }
.media-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10,11,15,0.85) 100%);
  z-index: 1;
}
.media-label {
  position: absolute; bottom: 14px; left: 14px; right: 14px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
}
.media-eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-hover);
}
.media-title {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  line-height: 1.35;
}
.media-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(99,102,241,0.22); backdrop-filter: blur(8px);
  border: 1px solid rgba(99,102,241,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); z-index: 2;
  transition: transform .2s ease, background .2s ease;
}
.media-tile:hover .media-play { transform: translate(-50%, -50%) scale(1.1); background: rgba(99,102,241,0.4); }
.media-meta {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--text); background: rgba(10,11,15,0.75);
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border);
}
.media-disclaimer {
  margin-top: 28px; text-align: center;
  color: var(--text-dim); font-size: 13.5px;
}

/* ------------------------- how it works ------------------------- */
.steps {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none; counter-reset: step;
}
.steps li {
  background: linear-gradient(180deg, rgba(28,31,41,0.6) 0%, rgba(14,16,22,0.6) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.steps h3 { font-family: var(--font-display); font-weight: 700; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(99,102,241,0.12); color: var(--accent-hover);
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  border: 1px solid rgba(99,102,241,0.3);
  margin-bottom: 16px;
}
.steps h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }

/* ------------------------- faq ------------------------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 22px;
  transition: border-color .15s ease;
}
.faq details:hover { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 0; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 18px; color: var(--accent-hover);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0 0 20px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6;
}

/* ------------------------- cta band ------------------------- */
.cta-band {
  padding: 64px 0; margin: 32px 0 0;
  background:
    linear-gradient(180deg, rgba(99,102,241,0.08), rgba(168,85,247,0.06)),
    var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.015em; }
.cta-band p { color: var(--text-muted); margin-top: 6px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------- footer ------------------------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); margin-top: 0; }
.footer-inner {
  display: grid; gap: 40px;
  grid-template-columns: 1fr 2fr;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-copy { color: var(--text-dim); font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-weight: 600; margin-bottom: 12px;
}
.footer-links a {
  display: block; color: var(--text-muted); font-size: 14px; padding: 4px 0;
}
.footer-links a:hover { color: var(--text); }

/* ------------------------- responsive ------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-text { text-align: center; }
  .hero-text .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .loader-mock { margin: 0 auto; }
}

@media (max-width: 880px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open + main { filter: blur(2px); }
  .site-header.menu-open {
    height: auto;
    background: rgba(10, 11, 15, 0.95);
    border-bottom-color: var(--border);
  }
  .site-header.menu-open .header-inner {
    flex-wrap: wrap; padding-bottom: 16px;
  }
  .site-header.menu-open .site-nav,
  .site-header.menu-open .header-cta {
    display: flex; flex-basis: 100%; flex-direction: column; gap: 8px; margin: 12px 0 0;
  }
  .site-header.menu-open .header-cta .status-pill { display: none; }
  .site-header.menu-open .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }

  .hero { padding: 56px 0 72px; }
  .section { padding: 64px 0; }
  .hero-stats { gap: 24px; margin-top: 36px; }
  .cta-inner { text-align: center; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  /* Studio mockup: its 200px fixed sidebar + main panel is a desktop layout. On
     a phone the fixed column pushes min-content wider than the viewport and
     cramps the main panel. Drop the sidebar (it's the decorative half) so the
     mock reads as an intentional self-contained card. */
  .loader-mock-body { grid-template-columns: 1fr; min-height: 0; }
  .lm-side { display: none; }
  .lm-main { padding: 16px 16px 14px; }
}

@media (max-width: 520px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .container { padding: 0 18px; }
}

/* ------------------------- legal pages (terms / privacy) ------------------------- */
.legal { padding: 88px 0 96px; }
.legal-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.legal-head h1 {
  margin-top: 18px; font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1;
}
.legal-meta { color: var(--text-dim); font-family: var(--font-mono); font-size: 13px; margin-top: 12px; }
.legal section { max-width: 760px; margin: 32px auto; }
.legal section h2 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  margin-bottom: 12px; color: var(--text); letter-spacing: -0.005em;
}
.legal section p, .legal section li {
  color: var(--text-muted); font-size: 15px; line-height: 1.7;
}
.legal section ul {
  margin: 12px 0 0 20px; display: flex; flex-direction: column; gap: 8px;
}
.legal section a { color: var(--accent-hover); }
.legal section a:hover { color: var(--text); }
.legal section strong { color: var(--text); font-weight: 600; }

/* ------------------------- status page ------------------------- */
.status-page { padding: 88px 0 96px; }
.status-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.status-head h1 {
  margin-top: 18px; font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1;
}
.status-head p { color: var(--text-muted); margin-top: 14px; }
.status-meta { color: var(--text-dim); font-family: var(--font-mono); font-size: 13px; margin-top: 16px; }
.status-meta span { color: var(--text); }
.status-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.status-row {
  display: grid; grid-template-columns: 16px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(28,31,41,0.6) 0%, rgba(14,16,22,0.6) 100%);
  backdrop-filter: blur(10px); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.status-dot-lg {
  width: 14px; height: 14px; border-radius: 50%;
  background: #747f8d; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(116,127,141,0.5);
}
.status-row[data-state="ok"] { border-color: rgba(34,197,94,0.32); }
.status-row[data-state="ok"] .status-dot-lg { background: #22c55e; box-shadow: 0 0 12px rgba(34,197,94,0.55); animation: pulse 2s infinite; }
.status-row[data-state="degraded"] { border-color: rgba(234,179,8,0.32); }
.status-row[data-state="degraded"] .status-dot-lg { background: #eab308; box-shadow: 0 0 12px rgba(234,179,8,0.55); }
.status-row[data-state="down"] { border-color: rgba(239,68,68,0.32); }
.status-row[data-state="down"] .status-dot-lg { background: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.55); }
.status-row-main h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  letter-spacing: 0.005em;
}
.status-row-sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; font-family: var(--font-mono); }
.status-row-pill {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(116,127,141,0.12); border: 1px solid rgba(116,127,141,0.28);
  color: #b6bcc7;
}
.status-row[data-state="ok"] .status-row-pill { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #4ade80; }
.status-row[data-state="degraded"] .status-row-pill { background: rgba(234,179,8,0.1); border-color: rgba(234,179,8,0.3); color: #facc15; }
.status-row[data-state="down"] .status-row-pill { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #f87171; }
.status-foot { max-width: 820px; margin: 36px auto 0; text-align: center; color: var(--text-dim); font-size: 13.5px; }
.status-foot code { font-family: var(--font-mono); background: var(--surface-3); padding: 1px 6px; border-radius: 4px; }

/* ------------------------- portal (login / dashboard) ------------------------- */
.portal-body { min-height: 100vh; display: flex; flex-direction: column; }
.portal-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 64px 24px;
}

.auth-card {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, rgba(28,31,41,0.85) 0%, rgba(20,22,29,0.85) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
}
.auth-card-narrow { max-width: 420px; text-align: center; padding: 56px 36px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 {
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  letter-spacing: -0.01em; margin-top: 12px;
}
.auth-sub { color: var(--text-muted); font-size: 14px; margin-top: 10px; line-height: 1.5; }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  background: transparent; border: 0; color: var(--text-muted);
  padding: 9px 12px; border-radius: 6px;
  font-family: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.auth-tab.active { background: var(--surface-3); color: var(--text); }

.btn-discord {
  background: #5865f2; color: #fff;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}
.btn-discord:hover { background: #4854e3; color: #fff; box-shadow: 0 6px 22px rgba(88, 101, 242, 0.5); }
.btn-discord:disabled { opacity: 0.55; pointer-events: none; }

.auth-sep {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0;
  color: var(--text-dim); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row-inline { flex-direction: row; align-items: center; gap: 10px; }
.form-row-inline .form-label { display: none; }
.form-row-inline input { flex: 1; }
.form-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase;
}
.form-row input {
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text); padding: 11px 14px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

.auth-error, .form-result {
  font-size: 13.5px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5; line-height: 1.45;
}
.form-result-ok {
  background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #86efac;
}
.form-result-err {
  background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #fca5a5;
}

.auth-foot { text-align: center; margin-top: 22px; color: var(--text-dim); font-size: 13px; }
.auth-foot a { color: var(--text-muted); }
.auth-foot a:hover { color: var(--text); }

/* spinner */
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--surface-3); border-top-color: var(--accent);
  border-radius: 50%; margin: 0 auto 18px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-state[data-state="error"] .spinner { display: none; }
.auth-state h1 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.auth-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ------------------------- dashboard ------------------------- */
.dashboard { padding: 56px 0 96px; }
.dash-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.dash-head h1 {
  margin-top: 18px; font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -0.015em; line-height: 1.1;
}
.dash-head p { margin-top: 14px; color: var(--text-muted); }

.dash-section {
  max-width: 920px; margin: 0 auto 36px;
  background: linear-gradient(180deg, rgba(28,31,41,0.55) 0%, rgba(14,16,22,0.55) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  backdrop-filter: blur(10px);
}
.dash-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.dash-section-head h2 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: 0.005em;
}
.dash-hint { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }

.dash-user {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.dash-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.dash-username { font-size: 13px; font-weight: 600; color: var(--text); }

.dash-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 32px 24px;
  color: var(--text-muted);
}
.dash-empty h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.dash-empty .btn { margin-top: 16px; }

.redeem-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.redeem-form .form-row { flex: 1; min-width: 220px; }
.redeem-form input { font-family: var(--font-mono); letter-spacing: 0.04em; }

/* responsive */
@media (max-width: 640px) {
  .auth-card { padding: 32px 24px; }
  .dash-section { padding: 22px 20px; }
}

/* ------------------------- admin panel ------------------------- */
.admin-badge {
  margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  background: rgba(168,85,247,0.18); color: #c4b5fd;
  border: 1px solid rgba(168,85,247,0.35);
  letter-spacing: 0.08em; text-transform: uppercase;
  vertical-align: middle;
}
.admin-tabs {
  display: flex; gap: 4px; margin: 0 auto 24px; max-width: 920px;
  background: var(--surface-2); padding: 4px; border-radius: var(--radius-sm);
  overflow-x: auto;
}
.admin-tab {
  background: transparent; border: 0; color: var(--text-muted);
  padding: 8px 14px; border-radius: 6px;
  font-family: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.admin-tab.active { background: var(--surface-3); color: var(--text); }
.admin-tab:hover:not(.active) { color: var(--text); }

.admin-form { display: flex; flex-direction: column; gap: 14px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }
.admin-form select, .admin-search {
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text); padding: 11px 14px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px;
}
.admin-search { min-width: 260px; }
.admin-subhead { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-top: 8px; }

.btn-small { padding: 6px 12px; font-size: 12.5px; }

.admin-result {
  margin-top: 18px; padding: 16px 18px;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
}
.admin-result h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.admin-result pre {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--font-mono); font-size: 12.5px;
  white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow-y: auto;
}

.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.admin-table th, .admin-table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase;
}
.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.admin-table code { font-family: var(--font-mono); font-size: 12px; }

.admin-price-row {
  display: grid; grid-template-columns: 1fr 100px 100px 36px; gap: 8px;
  margin-bottom: 6px;
}
@media (max-width: 640px) { .admin-price-row { grid-template-columns: 1fr 1fr 1fr 36px; } }
.admin-price-row input {
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text); padding: 8px 10px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 13.5px;
}

.admin-abuse-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 880px) { .admin-abuse-row { grid-template-columns: 1fr; } }
.admin-abuse-col h3 {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  margin-bottom: 10px; color: var(--text);
}

.buy-modal-card-wide { max-width: 640px; }

/* ------------------------- buy modal ------------------------- */
.buy-modal {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0,0,0,0.78); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.buy-modal[hidden] { display: none; }
.buy-modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, rgba(28,31,41,0.97) 0%, rgba(20,22,29,0.97) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 60px rgba(99,102,241,0.15);
}
.buy-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: transparent; border: 0; color: var(--text-dim);
  cursor: pointer; font-size: 22px; line-height: 1;
  border-radius: 50%; transition: background .15s ease;
}
.buy-modal-close:hover { background: var(--surface-3); color: var(--text); }
.buy-modal-head { text-align: center; margin-bottom: 20px; }
.buy-modal-head h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  letter-spacing: -0.01em; margin-top: 10px;
}
.buy-modal-sub { color: var(--text-muted); font-size: 13.5px; margin-top: 8px; }

.buy-prices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.buy-price {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.buy-price input { margin: 0; accent-color: var(--accent); }
.buy-price:hover { border-color: var(--border-strong); }
.buy-price.selected { border-color: var(--accent); background: rgba(99,102,241,0.08); }
.buy-price-main {
  flex: 1; display: flex; justify-content: space-between; align-items: baseline;
}
.buy-price-dur { font-size: 14px; font-weight: 600; }
.buy-price-amount { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--accent-hover); }

.buy-providers { margin-bottom: 18px; }
.buy-provider-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.buy-provider {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; font-size: 13px;
}
.buy-provider input { accent-color: var(--accent); margin: 0; }

.buy-modal-foot {
  margin-top: 16px; text-align: center;
  color: var(--text-dim); font-size: 12.5px;
}
.buy-modal-foot a { color: var(--accent-hover); }

/* ------------------------- Studio mockup ------------------------- */
.studio-mock {
  margin: 32px auto 40px;
  max-width: 1080px;
  background: linear-gradient(180deg, #14161d 0%, #0e1016 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(99,102,241,0.05);
}
.studio-mock-top {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.studio-mock-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-3);
}
.studio-mock-dot:nth-child(1) { background: #ef4444; }
.studio-mock-dot:nth-child(2) { background: #eab308; }
.studio-mock-dot:nth-child(3) { background: #22c55e; }
.studio-mock-tab {
  margin-left: 12px;
  font-family: var(--font-mono); font-size: 12px;
  padding: 4px 12px; border-radius: 6px 6px 0 0;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-bottom: 0;
}
.studio-mock-tab:first-of-type { margin-left: 20px; }
.studio-mock-tab.active {
  color: var(--text);
  background: rgba(99,102,241,0.08);
  border-color: var(--border);
}
.studio-mock-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 320px;
}
.studio-code {
  padding: 22px 24px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(99,102,241,0.02) 0%, transparent 40%),
    #0e1016;
  border-right: 1px solid var(--border);
}
.studio-code .c-com { color: #64748b; font-style: italic; }
.studio-code .c-kw  { color: #a78bfa; font-weight: 600; }
.studio-code .c-fn  { color: #60a5fa; }
.studio-code .c-str { color: #6ee7b7; }
.studio-code .c-num { color: #fbbf24; }
.studio-side {
  padding: 18px 18px 20px;
  background: rgba(255,255,255,0.015);
  font-size: 12px;
  color: var(--text-muted);
}
.studio-side-head {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-family: var(--font-mono); font-weight: 700;
  margin-bottom: 8px;
}
.studio-side-head + .studio-side-head { margin-top: 20px; }
.studio-side-list, .studio-side-log {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.studio-side-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text);
}
.studio-side-meta {
  margin-left: auto;
  font-size: 10.5px; color: var(--text-dim);
  font-family: var(--font-mono);
}
.studio-side-log li {
  font-size: 11.5px; color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.studio-side-log code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  margin-right: 6px;
}
.studio-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}
.studio-dot.ok { background: var(--success); box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.studio-bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.studio-bullet {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.studio-bullet h4 {
  font-size: 15px; font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.studio-bullet p {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.55;
}
@media (max-width: 780px) {
  .studio-mock-body { grid-template-columns: 1fr; }
  .studio-side { border-top: 1px solid var(--border); }
  .studio-code { border-right: 0; }
}

/* ------------------------- Admin extensions ------------------------- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.admin-stat-label {
  display: block;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-family: var(--font-mono); font-weight: 700;
  margin-bottom: 8px;
}
.admin-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.admin-stat-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px; color: var(--text-muted);
}

.admin-panel-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: -6px 0 18px;
  max-width: 720px;
}

.admin-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.admin-inline-actions {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.admin-inline-actions .btn { white-space: nowrap; }

.admin-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.01);
}

.admin-log-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.admin-log-list li {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: baseline;
}
.admin-log-list time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}
.admin-log-list strong { color: var(--text); font-weight: 600; }
.admin-log-list .log-actor { color: var(--accent-hover); }

.admin-catalog-preview {
  background: #0e1016;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  overflow-x: auto;
  max-height: 420px;
}

.admin-badge-role {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 999px;
  background: rgba(168,85,247,0.14);
  color: #c4b5fd;
  border: 1px solid rgba(168,85,247,0.35);
  font-family: var(--font-mono); font-weight: 600;
}
.admin-badge-role.role-user {
  background: rgba(255,255,255,0.04); color: var(--text-muted);
  border-color: var(--border);
}

.admin-subhead {
  margin-top: 18px; margin-bottom: 10px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-family: var(--font-mono); font-weight: 700;
}

.form-hint {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 8px;
}

.product-picker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}
.pp-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .12s ease;
}
.pp-row:hover { background: var(--surface-2); }
.pp-row:has(.pp-check:checked) {
  background: rgba(99,102,241,0.08);
  outline: 1px solid rgba(99,102,241,0.35);
}
.pp-check { accent-color: var(--accent); margin: 0; flex-shrink: 0; }
.pp-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.pp-slug {
  font-size: 11.5px; color: var(--text-dim);
  font-family: var(--font-mono);
}
.pp-badge {
  display: inline-block;
  padding: 1px 7px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 999px;
  font-family: var(--font-mono); font-weight: 700;
  background: rgba(234,179,8,0.14);
  color: #fde68a;
  border: 1px solid rgba(234,179,8,0.35);
}
.pp-badge-private {
  background: rgba(168,85,247,0.14);
  color: #c4b5fd;
  border-color: rgba(168,85,247,0.35);
}

.admin-price-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 44px;
  gap: 8px;
  margin-bottom: 8px;
}
.admin-price-row input {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); padding: 8px 10px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 13px;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .admin-log-list li { grid-template-columns: 1fr; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
