/* ================================================================
   LangCaptcha Developer Hub — Design System
   hub.css  |  2026
   ================================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Forest greens */
  --f900: #0d2b24;  --f800: #12382f;  --f700: #1a4d3f;
  --f600: #206050;  --f500: #2a7a66;  --f400: #3d9980;
  --f300: #6bbfac;  --f200: #a8ddd2;  --f100: #d9f0eb;  --f50: #edf8f5;

  /* Amber gold */
  --g500: #d99b26;  --g400: #e8b040;  --g300: #f0c86a;
  --g100: #fdf3d9;  --g50:  #fef9ec;

  /* Slate / neutral */
  --s950: #060d13;  --s900: #0f172a;  --s800: #1e293b;
  --s700: #334155;  --s600: #475569;  --s500: #64748b;
  --s400: #94a3b8;  --s300: #cbd5e1;  --s200: #e2e8f0;
  --s100: #f1f5f9;  --s50:  #f8faf9;

  /* Semantic */
  --bg:        var(--s50);
  --surface:   #ffffff;
  --border:    var(--s200);
  --text:      var(--s900);
  --text-soft: var(--s600);
  --text-muted:var(--s400);

  /* Accent */
  --accent:      var(--f500);
  --accent-deep: var(--f700);
  --accent-soft: var(--f50);
  --gold:        var(--g500);
  --gold-soft:   var(--g50);

  /* Type */
  --ff-body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --ff-display: "Bricolage Grotesque", "Inter", sans-serif;
  --ff-mono:    "JetBrains Mono", "Fira Code", "Consolas", monospace;

  /* Layout */
  --max-w: 1120px;
  --nav-h: 64px;

  /* Radius */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 14px;
  --r-xl: 18px; --r-2xl: 24px; --r-full: 9999px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --sh-md: 0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --sh-lg: 0 20px 50px rgba(15,23,42,.10), 0 8px 20px rgba(15,23,42,.05);
  --sh-gold: 0 2px 14px rgba(217,155,38,.30);
}

/* ── 2. BASE RESET ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
p { max-width: 68ch; }

/* ── 3. SKIP LINK ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 1rem; padding: .5rem 1rem;
  background: var(--f900); color: #fff; border-radius: var(--r-md);
  z-index: 999;
}
.skip-link:focus { left: 1rem; }

/* ── 4. CONTAINER ─────────────────────────────────────────────── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ── 5. NAVBAR ────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(13, 43, 36, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-nav .wrap {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.nav-brand {
  font-family: var(--ff-display); font-weight: 800; font-size: 1.2rem;
  color: #fff; letter-spacing: -.03em; white-space: nowrap;
}
.nav-brand em { font-style: normal; color: var(--f300); }
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none;
}
.nav-links a {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .8rem; border-radius: var(--r-md);
  color: rgba(255,255,255,.75); font-weight: 500; font-size: .9rem;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-cta {
  margin-left: .5rem;
  background: var(--gold); color: var(--f900) !important;
  font-weight: 700 !important; border-radius: var(--r-full) !important;
  padding: .45rem 1.1rem !important;
  box-shadow: var(--sh-gold);
}
.nav-cta:hover { background: var(--g400) !important; }

/* hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; padding: .5rem; background: transparent; border: 0;
  color: rgba(255,255,255,.8);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  display: none; flex-direction: column;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--f900); padding: 1.25rem; gap: .35rem;
  overflow-y: auto; z-index: 49;
}
.nav-open .nav-drawer { display: flex; }
.nav-drawer a {
  display: block; padding: .9rem 1rem;
  color: rgba(255,255,255,.8); font-weight: 500; font-size: 1.05rem;
  border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.07);
}
.nav-drawer a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-drawer a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-drawer .nav-cta {
  margin-top: .5rem; background: var(--gold); color: var(--f900) !important;
  font-weight: 700 !important; text-align: center;
}

/* ── 6. TYPOGRAPHY ────────────────────────────────────────────── */
.h-display {
  font-family: var(--ff-display); font-weight: 800; letter-spacing: -.04em;
  line-height: 1.08;
}
.h-xl { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.h-lg { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.h-md { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.h-sm { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }

.lede { font-size: 1.1rem; color: var(--text-soft); line-height: 1.65; }

/* ── 7. BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; padding: .72rem 1.3rem;
  border: 1px solid transparent; border-radius: var(--r-full);
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: var(--gold); color: var(--f900);
  box-shadow: var(--sh-gold);
}
.btn-gold:hover { background: var(--g400); box-shadow: 0 4px 18px rgba(217,155,38,.4); }
.btn-ghost {
  background: rgba(255,255,255,.1); color: #fff;
  border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
.btn-outline {
  background: transparent; color: var(--accent-deep);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--accent-soft); border-color: var(--f200); }
.btn-green {
  background: var(--accent); color: #fff;
}
.btn-green:hover { background: var(--accent-deep); }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-lg { padding: .88rem 1.6rem; font-size: 1rem; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-copy {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .65rem; font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-sm);
  cursor: pointer; transition: background .15s, color .15s;
}
.btn-copy:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-copy.copied { color: var(--f300); border-color: var(--f400); }

/* ── 8. BADGE / TAG ───────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: var(--r-sm);
}
.badge-green { background: var(--f100); color: var(--f700); }
.badge-blue  { background: #dbeafe;     color: #1d4ed8; }
.badge-gold  { background: var(--g100);  color: #92600a; }

/* ── 9. HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--f900);
  padding: 5rem 0 4.5rem;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .55;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--f300); margin-bottom: 1rem;
}
.hero-eyebrow::before {
  content: ""; display: block; width: 24px; height: 2px;
  background: var(--f300); border-radius: 2px;
}
.hero h1 { color: #fff; margin: .5rem 0 1.1rem; }
.hero .lede { color: rgba(255,255,255,.72); margin-bottom: 1.75rem; max-width: 36rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-visual svg { width: 100%; max-width: 440px; }

/* ── 10. SECTION WRAPPER ──────────────────────────────────────── */
.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}
.section-title { margin-bottom: .55rem; }
.section-sub { color: var(--text-soft); margin-bottom: 2rem; }

/* ── 11. PRODUCT CARDS ────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.75rem;
  position: relative; overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.product-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: 4px; background: var(--accent); border-radius: 0 2px 2px 0;
}
.product-card.rhythm::before { background: #3b82f6; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--accent-soft); flex-shrink: 0;
}
.product-card.rhythm .card-icon { background: #eff6ff; }
.card-title { font-family: var(--ff-display); font-size: 1.25rem; font-weight: 700; margin: .75rem 0 .4rem; }
.card-desc { color: var(--text-soft); font-size: .95rem; margin-bottom: 1.1rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.4rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .93rem; color: var(--text-soft);
}
.feature-list li::before {
  content: "✓"; color: var(--accent); font-weight: 700;
  flex-shrink: 0; margin-top: .05rem;
}
.product-card.rhythm .feature-list li::before { color: #3b82f6; }

/* ── 12. STEPS STRIP ──────────────────────────────────────────── */
.steps-band {
  background: linear-gradient(135deg, var(--f900) 0%, var(--f800) 100%);
  color: #fff; border: none; padding: 4rem 0;
}
.steps-band .section-label { color: var(--f300); }
.steps-band .section-title { color: #fff; }
.steps-band .section-sub { color: rgba(255,255,255,.65); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  counter-reset: step;
}
.step-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl); padding: 1.5rem 1.6rem;
  position: relative; overflow: hidden;
}
.step-card::after {
  content: ""; position: absolute; inset: auto 0 0 0;
  height: 3px; background: linear-gradient(90deg, var(--f300), var(--gold));
}
.step-num {
  font-family: var(--ff-display); font-size: 2.4rem; font-weight: 800;
  color: rgba(255,255,255,.12); line-height: 1; margin-bottom: .6rem;
  counter-increment: step;
}
.step-card:nth-child(1) .step-num::before { content: "01"; }
.step-card:nth-child(2) .step-num::before { content: "02"; }
.step-card:nth-child(3) .step-num::before { content: "03"; }
.step-card h3 { color: #fff; font-family: var(--ff-display); font-size: 1.1rem; margin-bottom: .4rem; }
.step-card p  { color: rgba(255,255,255,.65); font-size: .92rem; }
.steps-cta { margin-top: 2.25rem; }

/* ── 13. TRY SANDBOX ──────────────────────────────────────────── */
.sandbox-section { background: var(--surface); border-top: 1px solid var(--border); }
.sandbox-wrap { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.sandbox-stage {
  border: 1px solid var(--border); border-radius: var(--r-2xl);
  overflow: hidden; box-shadow: var(--sh-lg);
  background: var(--surface);
}
.sandbox-chrome {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1.1rem;
  background: linear-gradient(180deg, #f8faf9, #f1f5f9);
  border-bottom: 1px solid var(--border);
}
.sandbox-dots { display: flex; gap: .4rem; }
.sandbox-dots span {
  display: block; width: 11px; height: 11px; border-radius: 50%;
}
.sandbox-dots span:nth-child(1) { background: #fc5f5a; }
.sandbox-dots span:nth-child(2) { background: #febc2e; }
.sandbox-dots span:nth-child(3) { background: #28c840; }
.sandbox-tabs {
  display: inline-flex; gap: .3rem; padding: .2rem;
  background: var(--s200); border-radius: 10px;
}
.stab {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: .88rem; font-weight: 700;
  color: var(--text-soft); padding: .4rem .9rem;
  border-radius: 7px; cursor: pointer;
  transition: background .15s, color .15s;
}
.stab:hover { color: var(--text); }
.stab.is-active {
  background: #fff; color: var(--accent-deep);
  box-shadow: 0 1px 4px rgba(15,23,42,.1);
}
.stab.rhythm.is-active { color: #1d4ed8; }
.sandbox-status {
  font-size: .82rem; font-weight: 600; color: var(--text-muted);
  padding: .3rem .7rem; background: var(--s100);
  border: 1px solid var(--border); border-radius: var(--r-full);
  min-width: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.sandbox-status.ok { color: var(--accent-deep); background: var(--f50); border-color: var(--f200); }
.sandbox-body {
  padding: 1.5rem 1.25rem 1.75rem;
  min-height: 400px; display: flex; align-items: flex-start; justify-content: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--f50) 0%, transparent 60%), var(--bg);
}
.sandbox-pane { width: 100%; max-width: 540px; display: none; }
.sandbox-pane.is-active { display: block; }
.sandbox-pane iframe {
  width: 100%; min-height: 480px; border: 0;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
#rhythm-sandbox-root { min-height: 360px; }

/* ── 14. CODE / SNIPPET ───────────────────────────────────────── */
.code-block {
  position: relative;
  background: #0d1117; color: #e6edf3;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm);
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .9rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .78rem; font-weight: 600;
}
.code-lang { color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .07em; }
.code-block pre {
  margin: 0; padding: 1.1rem 1rem;
  font-family: var(--ff-mono); font-size: .82rem; line-height: 1.65;
  overflow-x: auto; white-space: pre; tab-size: 2;
  color: #e6edf3;
}
.code-block pre .cm { color: #8b949e; } /* comment */
.code-block pre .kw { color: #ff7b72; } /* keyword */
.code-block pre .st { color: #a5d6ff; } /* string */
.code-block pre .fn { color: #d2a8ff; } /* function */
.code-block pre .ky { color: #79c0ff; } /* property key */
.code-block pre .vl { color: #ffa657; } /* value/number */

.snippets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }

/* ── 15. DOCS LAYOUT ──────────────────────────────────────────── */
.docs-wrap {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 0; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem;
  min-height: calc(100vh - var(--nav-h));
}
.docs-sidebar {
  position: sticky; top: calc(var(--nav-h) + 1.5rem);
  align-self: start;
  padding: 2rem 1rem 2rem 0;
  max-height: calc(100vh - var(--nav-h) - 3rem);
  overflow-y: auto;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.toc-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .6rem; padding-left: .6rem;
}
.toc-nav { list-style: none; }
.toc-nav a {
  display: block; padding: .32rem .6rem;
  font-size: .88rem; font-weight: 500; color: var(--text-soft);
  border-radius: var(--r-sm); border-left: 2px solid transparent;
  transition: color .12s, background .12s, border-color .12s;
}
.toc-nav a:hover { color: var(--text); background: var(--s100); text-decoration: none; }
.toc-nav a.active { color: var(--accent-deep); border-left-color: var(--accent); font-weight: 600; }
.toc-group { margin-top: .75rem; }
.toc-group-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-muted);
  padding: .2rem .6rem .3rem; margin-top: .25rem;
}
.toc-nav .toc-child a { padding-left: 1.25rem; font-size: .85rem; }

.docs-content {
  padding: 2.5rem 0 4rem 2rem;
  border-left: 1px solid var(--border);
}
.docs-content h1 {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 800;
  letter-spacing: -.03em; margin-bottom: .4rem;
}
.docs-content h2 {
  font-family: var(--ff-display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: -.025em; margin: 2.5rem 0 .6rem;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
  color: var(--text);
}
.docs-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
.docs-content h3 {
  font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .4rem;
  color: var(--text);
}
.docs-content p { font-size: .97rem; color: var(--text-soft); margin-bottom: .8rem; }
.docs-content ul { padding-left: 1.25rem; color: var(--text-soft); font-size: .97rem; }
.docs-content li { margin-bottom: .3rem; }
.docs-content code {
  font-family: var(--ff-mono); font-size: .82em;
  background: var(--s100); color: var(--accent-deep);
  padding: .15em .4em; border-radius: 4px;
  border: 1px solid var(--border);
}
.docs-content .code-block { margin: .75rem 0 1.25rem; }
.docs-content .code-block code { background: none; color: inherit; border: none; padding: 0; }
.docs-content table {
  width: 100%; border-collapse: collapse;
  font-size: .91rem; margin: .75rem 0 1.25rem;
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
}
.docs-content th {
  background: var(--s100); font-weight: 700;
  text-align: left; padding: .6rem .85rem;
  border-bottom: 1px solid var(--border); font-size: .86rem;
}
.docs-content td {
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top; color: var(--text-soft);
}
.docs-content tr:last-child td { border-bottom: 0; }
.docs-callout {
  background: var(--gold-soft); border: 1px solid #f0d070;
  border-radius: var(--r-md); padding: .85rem 1rem;
  font-size: .93rem; color: #6b4800; margin: .75rem 0 1rem;
}
.docs-callout strong { color: #4a3200; }
/* ── LEGAL / POLICY PAGES ─────────────────────────────────────── */
.legal-page {
  padding: 2.5rem 1.25rem 4rem;
  max-width: 880px;
  margin: 0 auto;
}
.legal-hero { margin-bottom: 1.5rem; }
.legal-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: .35rem 0 .75rem;
  color: var(--s900);
}
.legal-lede {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 .75rem;
  max-width: 62ch;
}
.legal-meta {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
  background: var(--s50);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.legal-toc a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }
.legal-body section {
  margin-bottom: 1.75rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.legal-body h2 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--s900);
  margin: 0 0 .65rem;
}
.legal-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 1rem 0 .45rem;
  color: var(--s800);
}
.legal-body p,
.legal-body li {
  font-size: .97rem;
  color: var(--text-soft);
  line-height: 1.65;
}
.legal-body p { margin: 0 0 .75rem; }
.legal-body ul,
.legal-body ol {
  margin: 0 0 .9rem;
  padding-left: 1.25rem;
}
.legal-body li { margin-bottom: .35rem; }
.legal-body code {
  font-family: var(--ff-mono);
  font-size: .86em;
  background: var(--s50);
  border: 1px solid var(--border);
  padding: .05rem .35rem;
  border-radius: 4px;
}
.legal-note {
  margin-top: 1.25rem;
  padding: .85rem 1rem;
  background: #fff8e8;
  border: 1px solid #f0d9a0;
  border-radius: var(--r-lg);
  font-size: .9rem;
  color: #4a3200;
}
.legal-links {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .92rem;
  color: var(--text-muted);
}
.legal-email {
  font-size: 1.15rem;
  font-weight: 700;
}

.docs-note {
  background: var(--accent-soft); border: 1px solid var(--f100);
  border-radius: var(--r-md); padding: .85rem 1rem;
  font-size: .93rem; color: var(--f700); margin: .75rem 0 1rem;
}

/* ── 16. API KEY FORM / GET-KEY PAGE ──────────────────────────── */
.getkey-wrap { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.getkey-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border); margin-bottom: 2.5rem;
}

.gk-hero {
  background-color: #0d2b24;
  background-image: linear-gradient(135deg, #0d2b24 0%, #12382f 55%, #1a4d3f 100%);
  color: #ffffff;
  padding: 2.75rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.gk-hero .section-label { color: #6bbfac !important; }
.gk-hero h1,
.gk-hero p { color: #ffffff !important; }
.gk-hero-inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.gk-hero-lede {
  color: rgba(255,255,255,.78) !important;
  max-width: 36rem;
  margin: 0;
  font-size: 1.05rem;
}
.gk-hero-aside {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-xl);
  padding: 1rem 1.15rem;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  min-width: 220px;
}
.gk-hero-aside p { margin: 0 0 .7rem; max-width: none; color: inherit !important; }
.gk-hero-aside strong { color: #fff; }

.gk-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
  position: relative;
  z-index: 1;
}
.gk-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 1.25rem;
  padding: 0;
}
.gk-steps li {
  display: flex; gap: .7rem; align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: .9rem 1rem;
  box-shadow: var(--sh-sm);
}
.gk-step-num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1rem;
  color: #d99b26;
  line-height: 1.2;
}
.gk-steps strong { display: block; font-size: .92rem; color: var(--text); }
.gk-steps p { margin: .15rem 0 0; font-size: .8rem; color: var(--text-muted); max-width: none; }

.gk-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.gk-block {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.gk-block:last-of-type { border-bottom: 0; }
.gk-block-head { margin-bottom: 1.1rem; }
.gk-block-head h2 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 .2rem;
  color: var(--text);
}
.gk-block-head p {
  margin: 0;
  font-size: .88rem;
  color: var(--text-muted);
  max-width: none;
}
.gk-fields { display: flex; flex-direction: column; gap: 1rem; }
.gk-fields .field { margin: 0; }
.field-label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--text); margin-bottom: .45rem;
}
.req { color: #d99b26; }

.gk-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.gk-product {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .7rem;
  padding: .85rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  background: #f8faf9;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.gk-product > input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  width: 16px !important;
  min-width: 16px;
  max-width: 16px;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 16px;
  accent-color: #2a7a66;
  box-shadow: none !important;
  border: none !important;
}
.gk-product > span { display: block; min-width: 0; }
.gk-product strong { display: block; font-size: .92rem; color: var(--text); }
.gk-product em {
  display: block; font-style: normal; font-size: .8rem;
  color: var(--text-muted); margin-top: .1rem;
}
.gk-product.is-on,
.gk-product:has(input:checked) {
  border-color: #6bbfac;
  background: #edf8f5;
  box-shadow: inset 0 0 0 1px rgba(42,122,102,.12);
}

.gk-submit {
  padding: 1.25rem 1.5rem 1.5rem;
  background: #f4f7f6;
  border-top: 1px solid var(--border);
}
.gk-submit > div:first-child {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.gk-legal {
  margin: .75rem 0 0;
  font-size: .8rem;
  color: var(--text-muted);
  max-width: none;
}
.gk-error {
  margin: .75rem 0 0;
  color: #b91c1c;
  font-size: .9rem;
  font-weight: 600;
  max-width: none;
}

.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: 2rem;
  box-shadow: var(--sh-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--text); margin-bottom: .4rem;
}
.field input, .field textarea, .field select {
  width: 100%; padding: .7rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,122,102,.12);
}
.field textarea { min-height: 88px; resize: vertical; line-height: 1.55; }
.field .hint { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; max-width: none; }
.products-row {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.product-check {
  display: flex; align-items: flex-start; gap: .6rem;
  background: var(--s50); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: .9rem 1rem; cursor: pointer;
  flex: 1; min-width: 160px; transition: border-color .15s, background .15s;
}
.product-check input { margin-top: .15rem; accent-color: var(--accent); cursor: pointer; }
.product-check:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
}
.product-check-info strong { display: block; font-size: .93rem; }
.product-check-info span { font-size: .82rem; color: var(--text-muted); }
.form-actions { margin-top: 1.5rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.form-spinner {
  display: none; width: 20px; height: 20px;
  border: 2px solid var(--f200); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.form-spinner.show { display: block; }

@media (max-width: 720px) {
  .gk-steps { grid-template-columns: 1fr; }
  .gk-products { grid-template-columns: 1fr; }
  .gk-block, .gk-submit { padding-left: 1.15rem; padding-right: 1.15rem; }
}

/* Result box */
.key-result {
  display: none; margin-top: 2rem;
  background: var(--f900); border-radius: var(--r-2xl);
  overflow: hidden; box-shadow: var(--sh-lg);
}
.key-result.show { display: block; }
.key-result-header {
  padding: 1.1rem 1.4rem; display: flex; align-items: center;
  gap: .75rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.key-result-header .check-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--f400); display: grid; place-items: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}
.key-result-header h3 { color: #fff; font-family: var(--ff-display); font-size: 1.1rem; }
.key-result-header p { color: rgba(255,255,255,.55); font-size: .84rem; margin: 0; max-width: none; }
.key-blocks { padding: 1.1rem 1.4rem; display: flex; flex-direction: column; gap: .85rem; }
.key-block {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg); padding: 1rem 1.1rem;
}
.key-block-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: .55rem;
}
.key-row {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(0,0,0,.2); border-radius: var(--r-md);
  padding: .6rem .8rem; margin-bottom: .4rem;
}
.key-val {
  font-family: var(--ff-mono); font-size: .86rem;
  color: var(--f300); flex: 1; overflow: hidden; text-overflow: ellipsis;
}
.key-result-footer {
  padding: .9rem 1.4rem; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; gap: .75rem; flex-wrap: wrap;
}

/* ── 17. DEMO PAGE ────────────────────────────────────────────── */
.demo-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.demo-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm);
}
.demo-card-head {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--s50);
}
.demo-card-head h3 { font-family: var(--ff-display); font-size: 1rem; }
.demo-card-body { padding: .75rem; min-height: 480px; }
.demo-card-body iframe { width: 100%; min-height: 480px; border: 0; }
#demo-rhythm-root { min-height: 360px; display: flex; align-items: flex-start; justify-content: center; }

.protected-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm);
  margin-top: 2rem;
}
.protected-form-head {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  background: var(--s50); display: flex; align-items: center; gap: .6rem;
}
.protected-form-head h3 { font-family: var(--ff-display); font-size: 1rem; }
.protected-form-body { padding: 1.5rem; }
.protected-form-body .field { margin-bottom: 1rem; }
.form-captcha-row {
  margin: 1.25rem 0; padding: 1rem;
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}
.form-captcha-row p {
  font-size: .82rem; color: var(--text-muted); margin: 0 0 .6rem; max-width: none;
}

.hub-captcha {
  margin: 1.15rem 0 1.25rem;
  padding: .85rem .9rem 1rem;
  background: var(--s50);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .15s ease, background .15s ease;
}
.hub-captcha.is-verified {
  border-color: var(--f200);
  background: var(--f50);
}
.hub-captcha-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem .75rem;
  margin-bottom: .65rem;
}
.hub-captcha-head strong {
  font-size: .88rem;
  color: var(--text);
}
.hub-captcha-head span {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.hub-captcha.is-verified .hub-captcha-head span {
  color: var(--f700);
}
.hub-captcha iframe,
#login-langcaptcha,
#reg-langcaptcha {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: var(--r-md);
  overflow: hidden;
}

.status-log {
  background: var(--s900); border-radius: var(--r-xl);
  overflow: hidden; margin-top: 1.5rem; box-shadow: var(--sh-sm);
}
.status-log-head {
  padding: .6rem 1rem; border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: space-between;
}
.status-log-head span { color: rgba(255,255,255,.5); font-size: .8rem; font-weight: 600; }
.status-log-body {
  padding: .75rem 1rem; font-family: var(--ff-mono); font-size: .8rem;
  color: rgba(255,255,255,.65); min-height: 100px; max-height: 180px;
  overflow-y: auto; display: flex; flex-direction: column; gap: .3rem;
}
.log-entry { display: flex; gap: .6rem; }
.log-time { color: rgba(255,255,255,.3); flex-shrink: 0; }
.log-text.ok  { color: #4ade80; }
.log-text.err { color: #f87171; }
.log-text.inf { color: #93c5fd; }

/* ── 18. FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--f900);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .nav-brand { font-size: 1.3rem; margin-bottom: .5rem; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .9rem; max-width: 24rem; }
.footer-col h4 {
  color: rgba(255,255,255,.4); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .84rem; margin: 0; max-width: none; }

/* ── 19. ANIMATIONS ───────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}
.animate-up { animation: fadeUp .5s ease both; }
.animate-up-2 { animation: fadeUp .5s ease .1s both; }
.animate-up-3 { animation: fadeUp .5s ease .2s both; }

/* ── 20. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .snippets-grid { grid-template-columns: 1fr; }
  .demo-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .docs-wrap { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; max-height: none; padding: 1.5rem 0 .5rem; border-bottom: 1px solid var(--border); }
  .docs-content { padding: 2rem 0 3rem; border-left: 0; }
}
@media (max-width: 540px) {
  :root { --nav-h: 56px; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 2.75rem 0; }
  .steps-band { padding: 2.75rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .key-blocks { padding: .75rem 1rem; }
  .sandbox-chrome { flex-direction: column; align-items: flex-start; }
  .sandbox-status { max-width: 100%; }
}

/* ── DASHBOARD ────────────────────────────────────────────────── */
.dash {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.dash.dash-full {
  max-width: none;
  width: 100%;
  padding: 1.25rem 1.5rem 3rem;
  box-sizing: border-box;
}
@media (min-width: 1400px) {
  .dash.dash-full { padding-left: 2rem; padding-right: 2rem; }
}
.dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: 1.6rem 1.65rem 1.5rem;
  margin-bottom: 1.1rem;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(107,191,172,.22), transparent 55%),
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(217,155,38,.12), transparent 50%),
    linear-gradient(145deg, #0d2b24 0%, #1a4d3f 55%, #206050 100%);
  color: #fff;
  box-shadow: var(--sh-md);
  animation: dash-in .45s ease both;
}
.dash-hero.dash-hero-full {
  margin-bottom: 1rem;
}
.dash-month-form {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
}
.dash-month-form label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.dash-month-form select {
  appearance: none;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.22);
  color: #fff;
  border-radius: var(--r-lg);
  padding: .4rem .7rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.dash-month-form select:focus {
  outline: 2px solid rgba(232,176,64,.45);
  outline-offset: 1px;
}
.dash-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: .4rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: .72rem;
  font-weight: 800;
}
.admin-tab:not(.is-active) .dash-tab-count {
  background: var(--s100);
  color: var(--text-soft);
}
.dash-projects-panel .admin-panel-bar {
  flex-wrap: wrap;
  gap: .75rem;
}
.dash-projects-panel .dash-table {
  margin-top: .25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.admin-table-card > header a {
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
}
.admin-table-card > header a:hover {
  text-decoration: underline;
}
.dash-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(120deg, #000 20%, transparent 75%);
  pointer-events: none;
}
.dash-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.dash-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--f200);
  margin-bottom: .55rem;
}
.dash-kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--g400);
  box-shadow: 0 0 0 3px rgba(232,176,64,.25);
}
.dash-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 .45rem;
  color: #fff;
}
.dash-hero-lede {
  margin: 0;
  max-width: 42ch;
  font-size: .95rem;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}
.dash-hero-lede strong { color: #fff; font-weight: 600; }
.dash-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .65rem;
}
.dash-stat {
  display: flex;
  gap: .75rem;
}
.dash-stat-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: .55rem .85rem;
  text-align: center;
  min-width: 4.5rem;
}
.dash-stat-pill b {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.dash-stat-pill span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.dash-hero-btns {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dash-hero .btn-gold {
  box-shadow: var(--sh-gold);
}
.dash-hero .btn-ghost-light {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-full);
  padding: .5rem 1rem;
  font-weight: 600;
  font-size: .88rem;
  transition: background .15s, border-color .15s;
}
.dash-hero .btn-ghost-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.35);
  text-decoration: none;
  color: #fff;
}

.dash-add {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--sh-sm);
  animation: dash-in .4s ease .05s both;
}
.dash-add[hidden] { display: none !important; }
.dash-add h2 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  margin: 0 0 .3rem;
}
.dash-add > p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: .9rem;
}

.dash-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-2xl);
  animation: dash-in .4s ease .08s both;
}
.dash-empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto .9rem;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--f50);
  color: var(--f600);
  font-size: 1.5rem;
}
.dash-empty h2 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  margin: 0 0 .35rem;
}
.dash-empty p {
  margin: 0 auto 1.15rem;
  color: var(--text-soft);
  max-width: 36ch;
}

/* Compact project table — scales to dozens of projects */
.dash-toolbar {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
  animation: dash-in .35s ease .05s both;
}
.dash-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: .45rem .9rem;
  box-shadow: var(--sh-sm);
}
.dash-search:focus-within {
  border-color: var(--f300);
  box-shadow: 0 0 0 3px rgba(42,122,102,.12);
}
.dash-search-icon {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}
.dash-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: .92rem;
  color: var(--text);
  min-width: 0;
}
.dash-toolbar-meta {
  margin: 0;
  font-size: .84rem;
  color: var(--text-muted);
  max-width: none;
  white-space: nowrap;
}
.dash-toolbar-meta strong { color: var(--text-soft); }

.dash-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  animation: dash-in .4s ease .08s both;
}
.dash-table-head,
.dash-row-main {
  display: grid;
  grid-template-columns: 22px minmax(120px, 1.3fr) minmax(100px, 1.1fr) 88px minmax(92px, .95fr) 88px 72px;
  gap: .65rem;
  align-items: center;
}
.col-usage {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.dash-usage-total {
  font-weight: 700;
  font-size: .9rem;
  color: var(--s800);
  font-variant-numeric: tabular-nums;
}
.dash-usage-split {
  font-size: .68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-table-head {
  padding: .55rem .9rem .55rem .75rem;
  background: var(--s50);
  border-bottom: 1px solid var(--border);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dash-table-head .col-name { padding-left: 0; grid-column: 2; }

.dash-row {
  border-bottom: 1px solid var(--border);
}
.dash-row:last-of-type { border-bottom: 0; }
.dash-row[hidden] { display: none; }
.dash-row.is-open {
  background: linear-gradient(180deg, var(--f50) 0%, #fff 48px);
}
.dash-row-main {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: .7rem .9rem .7rem .75rem;
  cursor: pointer;
  color: inherit;
  transition: background .12s;
}
.dash-row-main:hover { background: var(--s50); }
.dash-row.is-open > .dash-row-main { background: transparent; }
.dash-chevron {
  width: 0; height: 0;
  border-left: 5px solid var(--f400);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .15s;
  justify-self: center;
}
.dash-row.is-open .dash-chevron { transform: rotate(90deg); }
.dash-row-main .col-name strong {
  font-family: var(--ff-display);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-row-main .col-date {
  font-size: .8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.dash-muted { color: var(--text-muted); font-size: .85rem; }
.dash-origin {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .12rem .5rem;
  border-radius: var(--r-full);
  background: var(--s100);
  border: 1px solid var(--border);
  color: var(--s700);
  font-family: var(--ff-mono);
  font-size: .7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-origin-more {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: .25rem;
}
.col-origin {
  display: flex;
  align-items: center;
  min-width: 0;
}
.col-keys {
  display: flex;
  gap: .3rem;
}
.dash-mini-copy {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--r-sm);
  padding: .22rem .4rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  line-height: 1;
  transition: background .12s, border-color .12s, color .12s;
}
.dash-mini-copy.lc { color: var(--f700); }
.dash-mini-copy.rtc { color: #1d4ed8; }
.dash-mini-copy:hover { background: var(--f50); border-color: var(--f200); }
.dash-mini-copy.rtc:hover { background: #eff6ff; border-color: #bfdbfe; }
.dash-mini-copy.copied {
  background: var(--f100) !important;
  border-color: var(--f300) !important;
  color: var(--f700) !important;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .5rem;
  border-radius: var(--r-full);
  background: var(--f100);
  color: var(--f700);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dash-badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--f500);
}

.dash-row-panel {
  padding: 0 1rem 1rem 2.1rem;
  border-top: 1px dashed var(--border);
  animation: dash-panel .2s ease both;
}
.dash-row-panel[hidden] { display: none !important; }
.dash-origins-editor {
  margin: 0 0 .9rem;
  padding: .85rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--s50);
}
.dash-origins-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .7rem;
  margin-bottom: .65rem;
}
.dash-origins-head strong {
  font-size: .88rem;
  color: var(--text);
}
.dash-origins-head span {
  font-size: .78rem;
  color: var(--text-muted);
}
.dash-domain-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .75rem;
  margin-bottom: .7rem;
}
.dash-domain-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .65rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--s800);
}
.dash-domain-hint {
  font-size: .78rem;
  color: var(--text-muted);
}
.dash-domain-hint code {
  font-size: .74rem;
  color: var(--accent-deep);
}
.dash-origin-add {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
}
.dash-origin-add input {
  flex: 1;
  min-width: 180px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: .45rem .65rem;
  font-size: .88rem;
  background: #fff;
}
.dash-origin-add input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,122,102,.12);
}
.dash-origin-msg {
  margin: .55rem 0 0;
  font-size: .82rem;
  max-width: none;
}
.dash-origin-msg.is-error { color: #b91c1c; }
.dash-origin-msg.is-ok { color: var(--f700); }

.dash-keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  padding: .9rem 0 .75rem;
}
.dash-key {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: .65rem .75rem;
  background: var(--s50);
}
.dash-key-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.dash-key-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-key-dot.lc { background: var(--f500); box-shadow: 0 0 0 3px var(--f100); }
.dash-key-dot.rtc { background: #3b82f6; box-shadow: 0 0 0 3px #dbeafe; }
.dash-key-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.dash-key-row code {
  flex: 1;
  min-width: 0;
  font-family: var(--ff-mono);
  font-size: .82rem;
  color: var(--s800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-key-row .btn-sm {
  flex-shrink: 0;
  padding: .28rem .55rem;
  font-size: .76rem;
}

.dash-snips {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.dash-snips details + details { border-top: 1px solid var(--s100); }
.dash-snips summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .85rem;
  font-size: .86rem;
  font-weight: 600;
  color: var(--accent-deep);
}
.dash-snips summary::-webkit-details-marker { display: none; }
.dash-snips summary:hover { background: var(--f50); }
.dash-snips summary::before {
  content: "";
  width: 0; height: 0;
  border-left: 5px solid var(--f400);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .15s;
}
.dash-snips details[open] > summary::before { transform: rotate(90deg); }
.dash-snip-tag {
  margin-left: auto;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--s100);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: .1rem .45rem;
}
.dash-snip-tag.rtc { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.dash-snip-body { padding: 0 .85rem .85rem; }
.dash-snip-body > p {
  margin: 0 0 .55rem;
  font-size: .82rem;
  color: var(--text-soft);
  max-width: none;
}
.dash-snip-body .code-block { margin: 0; }
.dash-iframe-hint {
  margin: .55rem 0 0;
  font-size: .78rem;
  color: var(--text-muted);
  max-width: none;
}
.dash-iframe-hint code {
  font-family: var(--ff-mono);
  font-size: .74rem;
  background: var(--s100);
  padding: .12rem .35rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  word-break: break-all;
}
.dash-no-match {
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .92rem;
  max-width: none;
}

@keyframes dash-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dash-panel {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .dash-table-head { display: none; }
  .dash-table-head,
  .dash-row-main {
    grid-template-columns: 18px 1fr auto;
    grid-template-areas:
      "chev name status"
      "chev origin origin"
      "chev keys date";
  }
  .dash-chevron { grid-area: chev; }
  .col-name { grid-area: name; }
  .col-status { grid-area: status; justify-self: end; }
  .col-origin { grid-area: origin; }
  .col-keys { grid-area: keys; }
  .col-date { grid-area: date; justify-self: end; }
  .dash-row-panel { padding-left: 1rem; }
  .dash-keys { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dash-hero-actions { align-items: stretch; width: 100%; }
  .dash-hero-btns { justify-content: flex-start; }
  .dash-stat { justify-content: flex-start; }
}

/* ── ADMIN CONSOLE ────────────────────────────────────────────── */
.admin {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}
.admin.admin-full {
  max-width: none;
  width: 100%;
  padding: 1.25rem 1.5rem 3rem;
  box-sizing: border-box;
}
@media (min-width: 1400px) {
  .admin.admin-full { padding-left: 2rem; padding-right: 2rem; }
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 1.1rem;
  padding: .35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  position: sticky;
  top: calc(var(--nav-h) + .5rem);
  z-index: 20;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1rem;
  border-radius: var(--r-lg);
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-soft);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.admin-tab:hover {
  background: var(--s50);
  color: var(--accent-deep);
  text-decoration: none;
}
.admin-tab.is-active {
  background: var(--f800);
  color: #fff;
}
.admin-tab-panel {
  min-height: 420px;
}
.admin-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.admin-quick {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: transform .15s ease, border-color .15s ease;
}
.admin-quick:hover {
  transform: translateY(-2px);
  border-color: var(--f200);
  text-decoration: none;
}
.admin-quick strong {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--s900);
}
.admin-quick span {
  font-size: .82rem;
  color: var(--text-muted);
}
.admin-chart-tall { height: 280px !important; }
.admin-table-scroll-tall {
  max-height: min(62vh, 560px);
  overflow: auto;
}
.admin-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: .85rem;
  padding: 1rem;
}
.admin-site-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  animation: dash-in .35s ease both;
  animation-delay: var(--delay, 0s);
}
.admin-site-card:hover {
  border-color: var(--f200);
  box-shadow: var(--sh-sm);
}
.admin-site-card-top {
  display: flex;
  gap: .7rem;
  align-items: center;
}
.admin-site-card-title { min-width: 0; }
.admin-site-card-title h2 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-site-card-title p {
  margin: .15rem 0 0;
  font-size: .78rem;
  color: var(--text-muted);
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-site-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.admin-site-card .admin-site-keys {
  display: grid;
  gap: .55rem;
}
.admin-site-card .admin-site-usage {
  max-width: none;
}
.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(107,191,172,.2), transparent 55%),
    linear-gradient(135deg, #0d2b24 0%, #1a4d3f 60%, #206050 100%);
  color: #fff;
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
  animation: dash-in .4s ease both;
}
.admin-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(120deg, #000 10%, transparent 70%);
  pointer-events: none;
}
.admin-hero-copy,
.admin-hero-side {
  position: relative;
  z-index: 1;
}
.admin-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--f200);
  margin: 0 0 .45rem;
}
.admin-kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--g400);
  box-shadow: 0 0 0 3px rgba(232,176,64,.25);
}
.admin-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 .4rem;
  color: #fff;
}
.admin-hero-copy p {
  margin: 0;
  max-width: 42ch;
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}
.admin-hero-copy strong { color: #fff; }
.admin-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
.admin-metrics {
  display: flex;
  gap: .55rem;
}
.admin-metric {
  min-width: 4.4rem;
  text-align: center;
  padding: .55rem .7rem;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.admin-metric b {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}
.admin-metric span {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.admin-hero-links {
  display: flex;
  gap: .65rem;
}
.admin-hero-links a {
  color: rgba(255,255,255,.75);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}
.admin-hero-links a:hover { color: #fff; text-decoration: underline; }
.admin-hero-links {
  flex-wrap: wrap;
  align-items: center;
}
.admin-month-form {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-right: .35rem;
}
.admin-month-form label {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-month-form select {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: var(--r-md);
  padding: .35rem .55rem;
  font-size: .84rem;
  font-weight: 600;
}
.admin-month-form select option { color: var(--s900); }

/* Admin usage analytics */
.admin-usage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  animation: dash-in .4s ease both;
}
.admin-usage-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.admin-kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1rem 1.1rem;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
}
.admin-kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--f400);
}
.admin-kpi.kpi-lc::before { background: var(--f500); }
.admin-kpi.kpi-rtc::before { background: var(--g500); }
.admin-kpi-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.admin-kpi strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--s900);
  line-height: 1.1;
}
.admin-kpi-soft {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 700;
}
.admin-kpi em {
  display: block;
  margin-top: .35rem;
  font-style: normal;
  font-size: .8rem;
  color: var(--text-soft);
}

.admin-charts {
  display: grid;
  grid-template-columns: 1.55fr .85fr;
  gap: .75rem;
}
.admin-chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  padding: 1rem 1.1rem 1.1rem;
}
.admin-chart-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}
.admin-chart-card header h2 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: var(--s900);
}
.admin-chart-card header span {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.admin-chart-wrap {
  position: relative;
  height: 220px;
}
.admin-chart-donut { height: 180px; }
.admin-chart-wide .admin-chart-wrap { height: 200px; }
.admin-mix-legend {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.admin-mix-legend li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .86rem;
  color: var(--s700);
}
.admin-mix-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.admin-mix-legend .dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  display: inline-block;
}
.admin-mix-legend .dot.lc { background: var(--f500); }
.admin-mix-legend .dot.rtc { background: var(--g500); }

.admin-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.admin-table-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  padding: 1rem 1.05rem 1.05rem;
  min-width: 0;
}
.admin-table-card > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .7rem;
}
.admin-table-card > header h2 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}
.admin-table-card > header span {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.admin-table-empty {
  margin: 0;
  padding: 1.25rem .25rem;
  color: var(--text-muted);
  font-size: .9rem;
  max-width: none;
}
.admin-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.admin-data-table th {
  text-align: left;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  padding: .4rem .45rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-data-table td {
  padding: .55rem .45rem;
  border-bottom: 1px solid var(--s100);
  vertical-align: top;
  color: var(--s800);
}
.admin-data-table tr:last-child td { border-bottom: 0; }
.admin-data-table td.num,
.admin-data-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 1%;
  white-space: nowrap;
  padding-left: .85rem;
}
.admin-data-table td.strong { font-weight: 800; color: var(--s900); }
.admin-data-table td.muted { color: var(--text-soft); }
.admin-data-table td.nowrap { white-space: nowrap; }
.admin-data-table strong { display: block; font-size: .88rem; }
.admin-data-table .sub {
  display: block;
  font-size: .74rem;
  color: var(--text-muted);
  margin-top: .1rem;
}
.admin-data-table code {
  font-family: var(--ff-mono);
  font-size: .74rem;
  background: var(--s50);
  border: 1px solid var(--border);
  padding: .1rem .35rem;
  border-radius: 4px;
}
.admin-pill {
  display: inline-flex;
  align-items: center;
  padding: .15rem .45rem;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
}
.admin-pill.lc { background: var(--f50); color: var(--f700); }
.admin-pill.rtc { background: var(--g50); color: #92600a; }
.admin-exempt-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  cursor: pointer;
  user-select: none;
}
.admin-exempt-toggle input {
  width: 1rem;
  height: 1rem;
}
.admin-bar {
  display: block;
  height: 6px;
  width: 100%;
  max-width: 88px;
  border-radius: var(--r-full);
  background: var(--s100);
  position: relative;
  overflow: hidden;
}
.admin-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--f500), var(--g400));
  border-radius: inherit;
}
.admin-data-table .bar-cell { min-width: 96px; }

.admin-site-usage {
  margin-top: .55rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  max-width: 280px;
}
.admin-site-usage-nums {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .55rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.admin-site-usage-nums strong {
  font-size: .95rem;
  color: var(--s900);
  font-variant-numeric: tabular-nums;
}
.admin-site-usage-nums .split {
  width: 100%;
  font-size: .74rem;
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  animation: dash-in .45s ease .06s both;
}
.admin-panel-bar {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--f50), #fff);
}
.admin-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: .5rem .95rem;
  box-shadow: var(--sh-sm);
}
.admin-search:focus-within {
  border-color: var(--f300);
  box-shadow: 0 0 0 3px rgba(42,122,102,.12);
}
.admin-search span { color: var(--text-muted); }
.admin-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: .92rem;
  color: var(--text);
  min-width: 0;
}
.admin-count {
  margin: 0;
  font-size: .84rem;
  color: var(--text-muted);
  max-width: none;
  white-space: nowrap;
}
.admin-count strong { color: var(--accent-deep); }

.admin-empty {
  text-align: center;
  padding: 3rem 1.25rem;
}
.admin-empty h2 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  margin: 0 0 .35rem;
}
.admin-empty p {
  margin: 0 auto 1rem;
  color: var(--text-soft);
  max-width: 36ch;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-site {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .95fr);
  gap: 1rem 1.25rem;
  padding: 1.05rem 1.2rem;
  border-bottom: 1px solid var(--border);
  animation: dash-in .4s ease both;
  animation-delay: var(--delay, 0s);
  transition: background .15s;
}
.admin-site:last-child { border-bottom: 0; }
.admin-site:hover { background: var(--f50); }

.admin-site-main {
  display: flex;
  gap: .85rem;
  min-width: 0;
  align-items: flex-start;
}
.admin-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}
.admin-avatar.hue-0 { background: linear-gradient(145deg, #1a4d3f, #3d9980); }
.admin-avatar.hue-1 { background: linear-gradient(145deg, #0f3d4d, #3d8f99); }
.admin-avatar.hue-2 { background: linear-gradient(145deg, #3d3a1a, #99803d); }
.admin-avatar.hue-3 { background: linear-gradient(145deg, #1a2f4d, #3d6b99); }
.admin-avatar.hue-4 { background: linear-gradient(145deg, #2b1a4d, #6b3d99); }

.admin-site-info { min-width: 0; flex: 1; }
.admin-site-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .4rem;
}
.admin-site-title h2 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-site-title time {
  font-size: .75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.admin-site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.admin-owner-chip,
.admin-origin-chip {
  display: inline-flex;
  max-width: 100%;
  padding: .18rem .55rem;
  border-radius: var(--r-full);
  font-size: .72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.admin-owner-chip {
  background: var(--g50);
  border: 1px solid #f0d070;
  color: #7a5808;
  font-weight: 600;
}
.admin-origin-chip {
  background: var(--s100);
  border: 1px solid var(--border);
  color: var(--s700);
  font-family: var(--ff-mono);
}
.admin-origin-chip:hover {
  background: var(--f50);
  border-color: var(--f200);
  color: var(--accent-deep);
}
.admin-more {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-site-keys {
  display: grid;
  gap: .45rem;
  align-content: start;
}
.admin-keyblock {
  background: var(--s50);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .4rem .55rem .45rem;
  transition: border-color .15s, background .15s;
}
.admin-site:hover .admin-keyblock {
  background: #fff;
  border-color: var(--f200);
}
.admin-key-label {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}
.admin-key-label.lc { color: var(--f700); }
.admin-key-label.rtc { color: #1d4ed8; }
.admin-key-label.lc::before,
.admin-key-label.rtc::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
}
.admin-key-label.lc::before { background: var(--f500); }
.admin-key-label.rtc::before { background: #3b82f6; }
.admin-key-row {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.admin-key-row code {
  flex: 1;
  min-width: 0;
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--s800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-copy {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--r-sm);
  padding: .22rem .5rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent-deep);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.admin-copy:hover {
  background: var(--f50);
  border-color: var(--f200);
}
.admin-copy.copied {
  background: var(--f100);
  border-color: var(--f300);
  color: var(--f700);
}

.admin-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .85rem 1.1rem;
  border-top: 1px solid var(--border);
  background: var(--s50);
}
.admin-pager-btn {
  display: inline-flex;
  align-items: center;
  padding: .45rem .85rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--accent-deep);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .12s, border-color .12s;
}
.admin-pager-btn:hover {
  background: var(--f50);
  border-color: var(--f200);
  text-decoration: none;
}
.admin-pager-btn.is-disabled {
  opacity: .4;
  pointer-events: none;
  color: var(--text-muted);
}
.admin-pager-pages {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.admin-page-num {
  min-width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-md);
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid transparent;
}
.admin-page-num:hover {
  background: #fff;
  border-color: var(--border);
  color: var(--accent-deep);
  text-decoration: none;
}
.admin-page-num.is-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.admin-page-gap {
  color: var(--text-muted);
  padding: 0 .15rem;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .admin-usage-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-charts,
  .admin-tables-grid,
  .admin-quick-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .admin-site {
    grid-template-columns: 1fr;
  }
  .admin-hero-side {
    align-items: flex-start;
    width: 100%;
  }
  .admin-metrics { flex-wrap: wrap; }
  .admin-pager { justify-content: center; }
  .admin-usage-kpis,
  .admin-charts,
  .admin-tables-grid,
  .admin-quick-links { grid-template-columns: 1fr; }
  .admin-tabs {
    position: static;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .admin-tab { white-space: nowrap; }
}

/* ── Confirm dialog ───────────────────────────────────────────── */
body.lc-confirm-open {
  overflow: hidden;
}
.lc-confirm {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity .16s ease;
}
.lc-confirm.is-open { opacity: 1; }
.lc-confirm.is-leaving { opacity: 0; }
.lc-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 19, .48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lc-confirm-panel {
  position: relative;
  width: min(100%, 400px);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(255,255,255,.4) inset;
  transform: translateY(10px) scale(.97);
  transition: transform .18s cubic-bezier(.2,.8,.2,1);
  text-align: left;
}
.lc-confirm.is-open .lc-confirm-panel { transform: none; }
.lc-confirm.is-leaving .lc-confirm-panel {
  transform: translateY(6px) scale(.98);
}
.lc-confirm-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  margin-bottom: .85rem;
  background: var(--f50);
  color: var(--f600);
  border: 1px solid var(--f100);
}
.lc-confirm-panel.is-danger .lc-confirm-icon {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.lc-confirm-title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--s900);
  margin: 0 0 .35rem;
  line-height: 1.25;
}
.lc-confirm-msg {
  margin: 0;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.5;
  max-width: none;
}
.lc-confirm-detail {
  margin: .65rem 0 0;
  padding: .45rem .65rem;
  border-radius: var(--r-md);
  background: var(--s50);
  border: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: var(--s700);
  word-break: break-all;
  max-width: none;
}
.lc-confirm-panel.is-danger .lc-confirm-detail {
  background: #fff7f7;
  border-color: #fecaca;
  color: #991b1b;
}
.lc-confirm-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.15rem;
}
.btn-danger {
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
  box-shadow: 0 2px 10px rgba(220, 38, 38, .25);
}
.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  text-decoration: none;
}
.btn-danger:focus-visible {
  outline: 2px solid #fecaca;
  outline-offset: 2px;
}

/* ── Pricing page ─────────────────────────────────────────────── */
.price-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(61,153,128,.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(217,155,38,.14), transparent 50%),
    linear-gradient(165deg, var(--f900) 0%, #0a221c 48%, var(--s950) 100%);
  padding: 4.5rem 0 3.75rem;
  color: #fff;
}
.price-hero-glow {
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(107,191,172,.18), transparent 65%);
  pointer-events: none;
}
.price-hero-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  pointer-events: none;
}
.price-path-line {
  stroke-dasharray: 12 10;
  animation: price-path-drift 18s linear infinite;
}
@keyframes price-path-drift {
  to { stroke-dashoffset: -220; }
}
.price-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}
.price-hero .section-label { color: var(--f300); }
.price-hero h1 {
  color: #fff;
  margin: .45rem 0 1rem;
}
.price-hero .lede {
  color: rgba(255,255,255,.72);
  margin-bottom: 1.4rem;
  max-width: 38rem;
}
.price-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.price-hero-meta span {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .35rem .7rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
}

.price-seo-intro {
  padding: 2.5rem 0 0.5rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.price-seo-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 1.5rem 2rem;
  align-items: start;
  padding-bottom: 2.25rem;
}
.price-seo-grid h2 {
  margin: 0 0 .85rem;
  color: var(--s900);
}
.price-seo-grid p {
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.65;
  margin: 0 0 .9rem;
  max-width: 62ch;
}
.price-seo-aside {
  padding: 1.15rem 1.2rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, var(--f50), #fff 55%);
}
.price-seo-aside h3 {
  font-family: var(--ff-display);
  font-size: 1rem;
  margin: 0 0 .7rem;
  color: var(--f800);
}
.price-seo-aside ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  color: var(--s700);
  font-size: .88rem;
}
.price-seo-footer-copy {
  padding: 0 0 2.75rem;
  background: #fff;
}
.price-seo-footer-copy h2 {
  margin: 0 0 .65rem;
  color: var(--s900);
}
.price-seo-footer-copy p {
  margin: 0;
  color: var(--text-soft);
  max-width: 70ch;
  font-size: .95rem;
  line-height: 1.65;
}

.price-section {
  padding: 3rem 0 2.5rem;
  background:
    linear-gradient(180deg, #edf4f1 0%, var(--s50) 28%, #fff 100%);
}
.price-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.price-toolbar-copy h2 { margin: 0 0 .35rem; }
.price-toolbar-copy p {
  margin: 0;
  color: var(--text-soft);
  max-width: 36rem;
}
.price-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.price-toggle {
  display: inline-flex;
  padding: .2rem;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.price-toggle button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  font-size: .84rem;
  padding: .45rem .9rem;
  border-radius: var(--r-full);
  cursor: pointer;
}
.price-toggle button em {
  font-style: normal;
  color: var(--f600);
  font-size: .75rem;
  margin-left: .2rem;
}
.price-toggle button.is-on {
  background: var(--f800);
  color: #fff;
}
.price-toggle button.is-on em { color: var(--g300); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.15rem 1.2rem;
  box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.price-card.is-featured {
  border-color: rgba(217,155,38,.55);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(217,155,38,.2);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(160deg, rgba(217,155,38,.35), rgba(61,153,128,.25)) border-box;
}
.price-card-ribbon {
  position: absolute;
  top: .85rem;
  right: .85rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #92600a;
  background: var(--g100);
  padding: .2rem .5rem;
  border-radius: var(--r-sm);
}
.price-card-head h3 {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: .35rem 0 0;
  color: var(--s900);
}
.price-card-tag {
  font-size: .75rem;
  font-weight: 700;
  color: var(--f600);
}
.price-card-amount {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin: 1rem 0 .45rem;
}
.price-amount {
  font-family: var(--ff-display);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--s900);
  line-height: 1;
}
.price-period {
  color: var(--text-muted);
  font-weight: 600;
  font-size: .9rem;
}
.price-includes {
  margin: 0 0 .25rem;
  font-size: .9rem;
  color: var(--text-soft);
  max-width: none;
}
.price-includes strong { color: var(--s800); }
.price-overage,
.price-projects {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
  max-width: none;
}
.price-projects { margin-bottom: .9rem; }
.price-features {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .86rem;
  color: var(--s700);
  line-height: 1.4;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--f400);
  box-shadow: 0 0 0 3px var(--f50);
}
.price-cta {
  width: 100%;
  margin-top: auto;
}

.price-enterprise {
  margin-top: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(13,43,36,.04), transparent 40%),
    #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.price-enterprise h3 { margin: .45rem 0 .4rem; }
.price-enterprise p {
  margin: 0;
  color: var(--text-soft);
  max-width: 46rem;
}
.price-meter-note {
  margin: 1.25rem 0 0;
  padding: .85rem 1rem;
  border-radius: var(--r-lg);
  background: var(--f50);
  border: 1px dashed var(--f200);
  color: var(--f800);
  font-size: .9rem;
  max-width: none;
}

.price-proof {
  padding: 3.5rem 0;
  background: var(--s900);
  color: #fff;
}
.price-proof .section-label { color: var(--f300); }
.price-proof h2 { color: #fff; margin: .4rem 0 .75rem; }
.price-proof .lede {
  color: rgba(255,255,255,.68);
  max-width: 40rem;
  margin-bottom: 1.75rem;
}
.price-chats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.price-chat {
  margin: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  animation: price-chat-in .55s ease both;
  animation-delay: var(--d, 0s);
}
@keyframes price-chat-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.price-chat figcaption {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: .75rem;
}
.price-chat-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.18);
}
.price-chat blockquote {
  margin: 0;
}
.price-chat p {
  margin: 0 0 .75rem;
  color: rgba(255,255,255,.78);
  font-size: .92rem;
  line-height: 1.55;
  max-width: none;
}
.price-chat-punch {
  margin: 0 !important;
  padding: .7rem .8rem;
  border-radius: var(--r-md);
  background: rgba(217,155,38,.12);
  border-left: 3px solid var(--g400);
  color: #f8e3b0 !important;
  font-weight: 600;
}
.price-proof-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.price-proof-points div {
  padding: 1rem 1.05rem;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.price-proof-points strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.02rem;
  margin-bottom: .35rem;
  color: #fff;
}
.price-proof-points p {
  margin: 0;
  font-size: .86rem;
  color: rgba(255,255,255,.62);
  max-width: none;
}

.price-compare-section {
  padding: 3rem 0;
  background: #fff;
}
.price-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.price-compare > div {
  padding: 1.25rem 1.35rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--s50);
}
.price-compare h3 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  margin: 0 0 .75rem;
}
.price-compare ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-size: .92rem;
}
.price-compare code {
  font-family: var(--ff-mono);
  font-size: .8rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: .05rem .3rem;
  border-radius: 4px;
}

.price-faq-section {
  padding: 0 0 3rem;
  background: #fff;
}
.price-faq {
  max-width: 720px;
}
.price-faq h2 { margin: .35rem 0 1rem; }
.price-faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--s50);
  padding: .85rem 1rem;
  margin-bottom: .55rem;
}
.price-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--s800);
  list-style: none;
}
.price-faq summary::-webkit-details-marker { display: none; }
.price-faq details p {
  margin: .55rem 0 0;
  color: var(--text-soft);
  font-size: .92rem;
  max-width: none;
}

.price-cta-band {
  background: var(--f900);
  padding: 2.75rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.price-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.price-cta-inner h2 {
  color: #fff;
  margin: 0 0 .35rem;
}
.price-cta-inner p {
  margin: 0;
  color: rgba(255,255,255,.65);
  max-width: none;
}
.price-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .price-hero { padding: 3.5rem 0 2.75rem; }
  .price-grid { grid-template-columns: 1fr; }
  .price-chats,
  .price-proof-points,
  .price-compare,
  .price-seo-grid { grid-template-columns: 1fr; }
  .price-card.is-featured { order: -1; }
}
