/* ============================================================
   SuperDevAI — product website design system
   Enterprise dark theme. Self-contained, no framework.
   ============================================================ */

:root {
  /* surfaces */
  --bg: #05070E;
  --bg-2: #080B15;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --text: #EAEEF7;
  --muted: #9AA6BE;
  --faint: #6B7690;

  /* brand — vibrant, tuned to the chevron mark (blue → cyan → violet) */
  --indigo: #3B6BF0;
  --violet: #7B46E0;
  --cyan: #38C6F2;
  --sky: #4B93EC;
  --emerald: #3FB68A;
  --amber: #D9A441;
  --accent-blue: #2E6BFF;

  --grad: linear-gradient(118deg, #2E6BFF 0%, #4C86EE 48%, #38C6F2 100%);
  --grad-soft: linear-gradient(120deg, rgba(46,107,255,.15), rgba(56,198,242,.10));

  --ring: 0 0 0 1px var(--border);
  --shadow-lg: 0 24px 64px -32px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 44px -20px rgba(93, 124, 230, 0.35);

  --radius: 16px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

.observability-tabs{display:flex;gap:8px;overflow:auto;margin:18px 0;border-bottom:1px solid #22304a}.observability-tabs button{border:0;background:transparent;color:#93a4bf;padding:10px 14px;white-space:nowrap;cursor:pointer}.observability-tabs button.active{color:#fff;border-bottom:2px solid #46bdf0}.observability-filters{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr)) auto;gap:12px;align-items:end;margin-bottom:16px}.observability-filters label{display:grid;gap:6px}.observability-pager{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:14px}.copy-support-id{margin-left:8px;border:1px solid #30415d;border-radius:6px;background:transparent;color:#69b7ff;font-size:11px;padding:3px 7px;cursor:pointer}.observability-view[hidden]{display:none}@media(max-width:720px){.observability-filters{grid-template-columns:1fr}.observability-tabs{margin-inline:-8px}}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background: restrained mesh glow + subtle grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 18% 0%, rgba(93, 124, 230, 0.12), transparent 60%),
    radial-gradient(45% 40% at 88% 3%, rgba(86, 169, 216, 0.09), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 40%, transparent 85%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--indigo); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #0A0713; background: var(--grad);
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(99, 102, 241, 0.75); }
.btn-ghost { color: var(--text); background: var(--panel-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }

/* ---------- nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(5, 7, 14, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.topbar.scrolled { border-bottom-color: var(--border); background: rgba(5, 7, 14, 0.85); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(99,102,241,.5)); }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.brand-name b { font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 13px; border-radius: 9px; transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; border-radius: 11px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 68px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
}
.eyebrow .tag {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #0A0713; background: var(--grad); padding: 3px 8px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(29px, 3.6vw, 46px); font-weight: 800; margin: 22px 0 0;
  letter-spacing: -0.035em; line-height: 1.1;
}
.hero-sub {
  font-size: clamp(15.5px, 1.4vw, 17.5px); color: var(--muted); margin-top: 20px;
  max-width: 560px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--faint); margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-note b { color: var(--muted); font-weight: 600; }

.demo-caption { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--muted); }
.demo-caption b { color: var(--text); font-weight: 600; }

/* ---------- product mock ---------- */
.mock-shell {
  margin-top: 56px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(18,22,38,.9), rgba(8,11,21,.95));
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}
.mock-shell::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%);
}
.mock-topbar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-dot.r { background: #FF5F57; } .mock-dot.y { background: #FEBC2E; } .mock-dot.g { background: #28C840; }
.mock-title { margin-left: 12px; font-size: 12.5px; color: var(--faint); font-family: var(--mono); }
.mock-body { display: grid; grid-template-columns: 1.05fr 1.35fr; min-height: 440px; }
.mock-chat { padding: 20px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; background: rgba(4,6,12,.35); }
.chat-row { display: flex; gap: 11px; align-items: flex-start; }
.chat-av { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.chat-av.user { background: rgba(255,255,255,.08); color: var(--muted); }
.chat-av.ai { background: var(--grad); color: #0A0713; }
.chat-bubble { font-size: 13.5px; color: var(--text); }
.chat-bubble.muted { color: var(--muted); }
.plan-card { border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; background: rgba(255,255,255,.02); }
.plan-card h5 { margin: 0 0 9px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.plan-step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); padding: 4px 0; }
.plan-step .ck { width: 17px; height: 17px; border-radius: 50%; background: rgba(52,211,153,.15); color: var(--emerald); display: grid; place-items: center; font-size: 11px; flex: none; }
.plan-step .pd { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--indigo); flex: none; box-sizing: border-box; }
.approve-row { display: flex; gap: 8px; margin-top: 4px; }
.mini-btn { font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 9px; }
.mini-btn.approve { background: var(--grad); color: #0A0713; }
.mini-btn.review { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); }

.mock-preview { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; }
.pv-title { font-size: 14px; font-weight: 700; }
.pv-badge { font-size: 11px; font-weight: 700; color: var(--emerald); background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.pv-badge .dotlive { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pv-stat { border: 1px solid var(--border); border-radius: 12px; padding: 13px; background: rgba(255,255,255,.02); }
.pv-stat .k { font-size: 11px; color: var(--faint); }
.pv-stat .v { font-size: 21px; font-weight: 800; margin-top: 5px; letter-spacing: -0.03em; }
.pv-stat .d { font-size: 11px; margin-top: 4px; color: var(--emerald); }
.pv-chart { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: rgba(255,255,255,.02); flex: 1; display: flex; flex-direction: column; }
.pv-chart .cl { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 120px; }
.bars i { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad); opacity: .85; display: block; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,182,138,.5); } 70% { box-shadow: 0 0 0 7px rgba(63,182,138,0); } 100% { box-shadow: 0 0 0 0 rgba(63,182,138,0); } }

/* ============================================================
   AUTO-PLAY DEMOS (desktop + VS Code) — JS-driven timelines
   ============================================================ */
.demo-wrap { position: relative; }
.demo-speed {
  position: absolute; top: 13px; right: 14px; z-index: 5;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .02em;
  color: var(--muted); background: rgba(0,0,0,.4); border: 1px solid var(--border);
  padding: 4px 10px 4px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.demo-speed .ffdot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 1.6s infinite; }

/* generic sequenced reveal state (toggled by JS) */
.seq { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s cubic-bezier(.16,1,.3,1); }
.seq.in { opacity: 1; transform: none; }

/* typewriter input line */
.mock-input {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px;
  background: rgba(0,0,0,.35); font-size: 13px; min-height: 44px;
}
.mock-input .ph { color: var(--faint); }
.mock-input .typed { color: var(--text); }
.mock-input .caret { width: 2px; height: 15px; background: var(--indigo); display: inline-block; animation: blink 1s step-end infinite; }
.mock-input .sendic { margin-left: auto; color: var(--faint); display: grid; }
.mock-input .sendic svg { width: 16px; height: 16px; }
@keyframes blink { 50% { opacity: 0; } }

/* tool activity lines */
.tool-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); font-family: var(--mono); padding: 2px 0; }
.tool-line .tk { width: 13px; height: 13px; flex: none; color: var(--sky); }
.tool-line .tk svg { width: 13px; height: 13px; }
.tool-line.done .tk { color: var(--emerald); }

/* plan step check flip */
.plan-step .ck { background: rgba(255,255,255,.06); color: transparent; transition: background .3s ease, color .3s ease; }
.plan-step.checked .ck { background: rgba(63,182,138,.16); color: var(--emerald); }

/* approve auto-click */
.mini-btn.approve { transition: transform .15s ease, box-shadow .2s ease; }
.mini-btn.approve.clicked { transform: scale(.94); box-shadow: 0 0 0 4px rgba(93,124,230,.28); }

/* build progress */
.build-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.build-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.build-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width 1.6s cubic-bezier(.4,0,.2,1); }
.build-pct { font-family: var(--mono); font-size: 12px; color: var(--faint); min-width: 34px; text-align: right; }

/* preview empty → live */
.pv-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--faint); font-size: 13px; border: 1px dashed var(--border); border-radius: 12px; gap: 8px; }
.pv-empty svg { width: 30px; height: 30px; opacity: .5; }
.pv-live { display: none; flex-direction: column; gap: 14px; flex: 1; }
.pv-live.on { display: flex; }
.pv-empty.off { display: none; }
.bars i { transition: height 1s cubic-bezier(.16,1,.3,1); height: 6%; }

/* ---------- VS Code demo ---------- */
.vs { display: grid; grid-template-columns: 172px 1fr 320px; min-height: 430px; font-size: 13px; }
@media (max-width: 1000px) { .vs { grid-template-columns: 1fr; } .vs-tree, .vs-editor { display: none; } }
.vs-tree { border-right: 1px solid var(--border); background: rgba(4,6,12,.4); padding: 12px 8px; }
.vs-tree .th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 4px 8px 10px; }
.vs-file { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; color: var(--muted); font-size: 12.5px; }
.vs-file.active { background: rgba(93,124,230,.14); color: var(--text); }
.vs-file .fi { width: 13px; height: 13px; flex: none; color: var(--sky); }
.vs-file.mod::after { content: "M"; margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--amber); }
.vs-editor { border-right: 1px solid var(--border); padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; overflow: hidden; background: rgba(4,6,12,.25); }
.vs-editor .ln { display: flex; gap: 14px; color: #8b96ad; white-space: pre; }
.vs-editor .ln .g { color: #4a5670; user-select: none; width: 18px; text-align: right; flex: none; }
.vs-editor .ln.del { background: rgba(217,80,80,.14); color: #e79a9a; }
.vs-editor .ln.add { background: rgba(63,182,138,.14); color: #8fe0bd; }
.vs-editor .kw { color: #8aa0ee; } .vs-editor .st { color: #9bcf8f; } .vs-editor .cm { color: #5a6580; }
.vs-agent { padding: 16px; display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,.015); }
.vs-agent .ah { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.vs-agent .ah .ai-mark { width: 20px; height: 20px; border-radius: 6px; background: var(--grad); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #0A0713; }
.vs-diff { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.vs-diff .dh { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 8px 11px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); display: flex; justify-content: space-between; }
.vs-diff .dh .stat-add { color: var(--emerald); } .vs-diff .dh .stat-del { color: #d95050; }
.vs-diff .dl { font-family: var(--mono); font-size: 11.5px; padding: 2px 11px; white-space: pre; color: #8b96ad; }
.vs-diff .dl.del { background: rgba(217,80,80,.13); color: #e79a9a; }
.vs-diff .dl.add { background: rgba(63,182,138,.13); color: #8fe0bd; }
.vs-toast { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--emerald); background: rgba(63,182,138,.12); border: 1px solid rgba(63,182,138,.3); padding: 10px 14px; border-radius: 11px; }
.vs-toast svg { width: 17px; height: 17px; }

/* ============================================================
   DESKTOP-APP-FAITHFUL demo chrome (mirrors the real app shell)
   ============================================================ */
.appwin { font-size: 12px; }
/* app top bar */
.app-top { display: flex; align-items: center; gap: 10px; padding: 8px 13px; border-bottom: 1px solid var(--border); background: rgba(10,13,21,.72); }
.app-top .bm { display: flex; align-items: center; gap: 8px; }
.app-top .bm .tile { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; }
.app-top .bm .tile svg { width: 13px; height: 13px; color: #fff; }
.app-top .bm b { font-size: 12.5px; font-weight: 700; letter-spacing: -0.02em; }
.badge-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: var(--emerald); background: rgba(63,182,138,.1); border: 1px solid rgba(63,182,138,.24); padding: 3px 8px; border-radius: 999px; }
.badge-live .bd { width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); }
.app-top .seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: rgba(0,0,0,.28); }
.app-top .seg .s { font-size: 10.5px; font-weight: 500; padding: 4px 10px; border-radius: 6px; color: var(--faint); display: inline-flex; align-items: center; gap: 5px; }
.app-top .seg .s { transition: background .3s ease, color .3s ease; }
.app-top .seg .s.on { background: var(--accent-blue); color: #fff; }
.app-top .seg svg, .pill-auto svg, .chip-top svg { width: 12px; height: 12px; }
.pill-auto { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--emerald); border: 1px solid rgba(63,182,138,.24); background: rgba(63,182,138,.1); padding: 4px 9px; border-radius: 9px; }
.app-top .sp { margin-left: auto; }
.chip-top { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); border: 1px solid var(--border); background: rgba(0,0,0,.28); padding: 4px 9px; border-radius: 9px; }
.chip-top b { color: var(--text); font-weight: 700; }
.chip-top .diamond { color: var(--emerald); }
.chip-av { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg,#3FB68A,#2f8f78); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }

/* main region: nav | builder | preview | utility */
.app-main { display: grid; grid-template-columns: 50px 292px 1fr 208px; min-height: 424px; }
.navrail { border-right: 1px solid var(--border); background: rgba(4,6,12,.42); display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 0; }
.navrail .new { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-blue); color: #fff; display: grid; place-items: center; margin-bottom: 5px; box-shadow: 0 6px 16px -6px rgba(79,123,240,.6); }
.navrail .nb { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--faint); }
.navrail .nb.on { background: rgba(93,124,230,.16); color: #aebbf2; }
.navrail svg { width: 16px; height: 16px; }

/* builder pane */
.pane-builder { border-right: 1px solid var(--border); display: flex; flex-direction: column; background: rgba(8,11,21,.5); min-width: 0; }
.pane-head { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-bottom: 1px solid var(--border); }
.pane-head .phic { color: #8fa2f2; display: grid; } .pane-head .phic svg { width: 15px; height: 15px; }
.pane-head h6 { font-size: 12px; font-weight: 700; margin: 0; color: var(--text); }
.pane-head .sub { font-size: 10px; color: var(--faint); }
.builder-log { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.composer { margin: 0 10px 10px; border: 1px solid var(--border); border-radius: 11px; background: rgba(0,0,0,.32); padding: 9px 11px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.composer .caret { width: 2px; height: 14px; background: var(--accent-blue); display: inline-block; animation: blink 1s step-end infinite; }
.composer .sendic { margin-left: auto; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-blue); display: grid; place-items: center; color: #fff; }
.composer .sendic svg { width: 13px; height: 13px; }
/* builder bubbles (mirror the app) */
.bmsg { max-width: 90%; border-radius: 14px; padding: 8px 11px; font-size: 12.5px; line-height: 1.5; }
.bmsg.user { align-self: flex-end; background: rgba(79,123,240,.12); box-shadow: inset 0 0 0 1px rgba(79,123,240,.22); color: #dbe3f7; }
.bmsg.ai { align-self: flex-start; background: rgba(255,255,255,.045); }
.bmsg.ai .lbl { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: #8fa2f2; margin-bottom: 5px; }
.bmsg.ai .lbl svg { width: 11px; height: 11px; }
.plan-inner { display: flex; flex-direction: column; gap: 2px; }
.plan-inner .plan-step { font-size: 12px; }

/* preview pane */
.pane-preview { display: flex; flex-direction: column; padding: 10px; gap: 8px; min-width: 0; }
.pv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pv-toolbar .lt { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pv-toolbar .ttl { font-size: 13px; font-weight: 700; }
.pv-run { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--emerald); }
.pv-run .bd { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(63,182,138,.6); animation: pulse 2s infinite; }
.pv-run.stopped { color: var(--faint); } .pv-run.stopped .bd { background: var(--faint); animation: none; }
.port-chip { font-family: var(--mono); font-size: 9.5px; color: var(--faint); border: 1px solid var(--border); background: rgba(0,0,0,.25); padding: 2px 7px; border-radius: 6px; }
.pv-devbtns { display: flex; gap: 2px; border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.pv-devbtns .d { width: 24px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--faint); }
.pv-devbtns .d.on { background: var(--accent-blue); color: #fff; }
.pv-devbtns svg { width: 13px; height: 13px; }
.browser { flex: 1; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: rgba(8,11,21,.6); }
.browser-chrome { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-bottom: 1px solid var(--border); background: rgba(10,13,21,.72); }
.browser-chrome .lights { display: flex; gap: 5px; }
.browser-chrome .lights i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.url-bar { flex: 1; display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); background: rgba(0,0,0,.3); border-radius: 7px; padding: 4px 10px; font-family: var(--mono); }
.url-bar .lock { color: var(--emerald); }
/* preview surface — light app (like the real webview) */
.appview { flex: 1; background: #eef1f7; padding: 13px; overflow: hidden; display: flex; flex-direction: column; }
.appview.dim { filter: grayscale(.2) brightness(.98); }
.av-empty { flex: 1; display: grid; place-items: center; color: #8a93a6; font-size: 12px; text-align: center; gap: 8px; }
.av-empty svg { width: 26px; height: 26px; opacity: .5; }
.av-live { display: none; flex-direction: column; flex: 1; }
.av-live.on { display: flex; }
.av-empty.off { display: none; }
.av-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.av-title { font-size: 13px; font-weight: 800; color: #1d2438; }
.av-sub { font-size: 9.5px; color: #7b8598; }
.av-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#6E8BEA,#4FA6CE); }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-card { background: #fff; border: 1px solid #e3e8f1; border-radius: 10px; padding: 10px 11px; }
.dash-card .k { font-size: 9.5px; color: #7b8598; font-weight: 500; }
.dash-card .v { font-size: 18px; font-weight: 800; color: #1d2438; margin-top: 3px; letter-spacing: -0.02em; }
.dash-card .d { font-size: 9.5px; margin-top: 2px; color: #2f9e74; font-weight: 600; }
.dash-card .d.warn { color: #c98a1e; }
.dash-chart { background: #fff; border: 1px solid #e3e8f1; border-radius: 10px; padding: 11px 12px; margin-top: 8px; flex: 1; display: flex; flex-direction: column; }
.dash-chart .cl { font-size: 10px; color: #5c6舗; color: #6b7586; margin-bottom: 10px; font-weight: 600; }
.dash-bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; }
.dash-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg,#6E8BEA,#4FA6CE); height: 6%; transition: height 1s cubic-bezier(.16,1,.3,1); }

/* utility rail (right) */
.pane-util { border-left: 1px solid var(--border); display: flex; background: rgba(4,6,12,.42); }
.util-pane { flex: 1; padding: 11px; border-right: 1px solid var(--border); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.util-pane .uh { font-size: 11.5px; font-weight: 700; color: var(--text); }
.approval-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: rgba(255,255,255,.02); }
.approval-item .at { font-size: 11px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.approval-item .at svg { width: 13px; height: 13px; color: var(--amber); flex: none; }
.approval-item .ad { font-size: 10px; color: var(--faint); margin: 5px 0 9px; font-family: var(--mono); }
.approval-item .ab-btns { display: flex; gap: 6px; }
.approval-item .ab-btns .b { font-size: 10.5px; font-weight: 600; padding: 5px 10px; border-radius: 7px; }
.approval-item .ab-btns .b.ok { background: var(--accent-blue); color: #fff; transition: transform .15s ease, box-shadow .2s ease; }
.approval-item .ab-btns .b.ok.clicked { transform: scale(.94); box-shadow: 0 0 0 4px rgba(79,123,240,.28); }
.approval-item .ab-btns .b.no { border: 1px solid var(--border); color: var(--muted); }
.approval-done { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: var(--emerald); }
.approval-done svg { width: 13px; height: 13px; }
.util-empty { font-size: 10.5px; color: var(--faint); }
.util-iconbar { width: 40px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 0; }
.util-iconbar .ub { position: relative; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--faint); border: 1px solid transparent; }
.util-iconbar .ub.on { background: rgba(93,124,230,.16); color: #aebbf2; border-color: var(--border); }
.util-iconbar svg { width: 15px; height: 15px; }
.util-iconbar .ub .cnt { position: absolute; top: -3px; right: -3px; min-width: 13px; height: 13px; padding: 0 3px; border-radius: 999px; background: var(--amber); color: #1a1206; font-size: 8.5px; font-weight: 800; display: grid; place-items: center; }

/* bottom build-activity bar */
.app-bottom { display: flex; align-items: center; gap: 13px; padding: 9px 14px; border-top: 1px solid var(--border); background: rgba(10,13,21,.62); }
.app-bottom .ab-l { min-width: 92px; }
.app-bottom .ab-title { font-size: 11px; font-weight: 700; color: #8fa2f2; }
.app-bottom .ab-pct { font-size: 9px; color: var(--faint); margin-top: 1px; }
.app-bottom .ab-mid { flex: 1; min-width: 0; }
.ab-status { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #c3cbdb; }
.ab-status svg { width: 12px; height: 12px; color: #8fa2f2; }
.ab-status .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ab-track { margin-top: 5px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.ab-track i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width .6s cubic-bezier(.4,0,.2,1); }
.ab-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); border: 1px solid var(--border); background: rgba(0,0,0,.25); padding: 4px 9px; border-radius: 999px; }
.ab-chip svg { width: 12px; height: 12px; }
.ab-chip.need { color: var(--amber); border-color: rgba(217,164,65,.3); }
.ab-chip.ok svg { color: var(--emerald); }

/* ---- capability-tour demo: nav | builder | PREVIEW (stays) | docked utility pane | icon rail ----
   Mirrors the real app: the Live Preview stays visible; the utility feature opens as a narrow
   docked side panel (it does NOT take over the preview). ---- */
.app-main.tour { grid-template-columns: 50px 244px minmax(0,1fr) 202px 44px; }
.util-content { display: flex; flex-direction: column; min-width: 0; background: rgba(8,11,21,.45); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.uc-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.uc-head .uc-ic { color: #8fa2f2; display: grid; } .uc-head .uc-ic svg { width: 14px; height: 14px; }
.uc-head .uc-title { font-size: 12px; font-weight: 700; color: var(--text); }
.uc-head .uc-tag { margin-left: auto; font-size: 9.5px; font-family: var(--mono); color: var(--faint); }
.uc-body { flex: 1; padding: 13px; overflow: hidden; position: relative; }
.tour-scene { display: none; }
.tour-scene.on { display: block; animation: tourfade .5s cubic-bezier(.16,1,.3,1); }
@keyframes tourfade { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.tour-scene.on .stagger > * { opacity: 0; animation: tourfade .5s cubic-bezier(.16,1,.3,1) forwards; }
.tour-scene.on .stagger > *:nth-child(1) { animation-delay: .05s; }
.tour-scene.on .stagger > *:nth-child(2) { animation-delay: .18s; }
.tour-scene.on .stagger > *:nth-child(3) { animation-delay: .31s; }
.tour-scene.on .stagger > *:nth-child(4) { animation-delay: .44s; }
.tour-scene.on .stagger > *:nth-child(5) { animation-delay: .57s; }

/* findings list (investigate / audit) */
.findings { display: flex; flex-direction: column; gap: 8px; }
.finding { display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; background: rgba(255,255,255,.02); }
.finding .sev { font-size: 8.5px; font-weight: 800; padding: 2px 6px; border-radius: 5px; text-transform: uppercase; flex: none; margin-top: 1px; }
.sev.high { background: rgba(217,80,80,.16); color: #e79a9a; }
.sev.med { background: rgba(217,164,65,.16); color: #e0b877; }
.sev.low { background: rgba(63,182,138,.16); color: #8fe0bd; }
.sev.ok { background: rgba(93,124,230,.16); color: #aebbf2; }
.finding .fb { min-width: 0; }
.finding .ft { font-size: 12px; color: var(--text); }
.finding .fp { font-size: 10px; color: var(--faint); font-family: var(--mono); margin-top: 2px; }

/* nav-rail active dot for the tour's cycling capability */
.navrail .nb.pulse { background: rgba(93,124,230,.16); color: #aebbf2; }

@media (max-width: 1040px) {
  .app-main { grid-template-columns: 1fr; }
  .app-main.tour { grid-template-columns: 1fr; }
  .navrail, .pane-util, .util-iconbar { display: none; }
  .app-main.tour .util-content { border-right: none; border-top: 1px solid var(--border); }
  .pane-builder { border-right: none; border-bottom: 1px solid var(--border); }
  .app-top .seg, .app-top .pill-auto, .chip-top { display: none; }
  .app-top .sp + * { display: none; }
}

/* ---------- generic section ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.section-head h2 { font-size: clamp(26px, 3.2vw, 37px); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; margin-top: 15px; }

/* ---------- feature grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  background: var(--panel); position: relative; overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.feat:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--panel-2); }
.feat .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: #c9d2ff; margin-bottom: 18px;
}
.feat .ic svg { width: 23px; height: 23px; }
.feat h3 { font-size: 18px; margin-bottom: 9px; }
.feat p { color: var(--muted); font-size: 14.5px; }

/* ---------- products split ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product-card {
  border: 1px solid var(--border); border-radius: 22px; padding: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  position: relative; overflow: hidden;
}
.product-card::after {
  content: ""; position: absolute; top: -40%; right: -20%; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(99,102,241,.22), transparent);
  pointer-events: none;
}
.product-card .pk { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.product-card h3 { font-size: 26px; margin: 12px 0 12px; }
.product-card > p { color: var(--muted); font-size: 15px; }
.product-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 11px; }
.product-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.product-list li svg { width: 19px; height: 19px; flex: none; color: var(--emerald); margin-top: 2px; }
.product-tag { position: absolute; top: 26px; right: 26px; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; background: var(--panel); position: relative; }
.step .n {
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: #0A0713;
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }
.step-connector { position: absolute; top: 42px; right: -12px; color: var(--faint); z-index: 2; }

/* ---------- security band ---------- */
.band {
  border: 1px solid var(--border); border-radius: 26px; padding: 52px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(56,189,248,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  position: relative; overflow: hidden;
}
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.band h2 { font-size: clamp(28px, 3.6vw, 40px); }
.band p.lead { color: var(--muted); font-size: 17px; margin-top: 16px; }
.sec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.sec-list li { display: flex; gap: 13px; align-items: flex-start; }
.sec-list .si { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--cyan); }
.sec-list .si svg { width: 20px; height: 20px; }
.sec-list h4 { font-size: 15.5px; }
.sec-list p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-cell { text-align: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 18px; background: var(--panel); }
.stat-cell .num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; }
.stat-cell .cap { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- early access / pricing ---------- */
.access {
  border: 1px solid var(--border-strong); border-radius: 26px; padding: 56px;
  text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(99,102,241,.22), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: var(--shadow-glow);
}
.access h2 { font-size: clamp(30px, 4.4vw, 46px); }
.access p { color: var(--muted); font-size: 18px; margin: 16px auto 0; max-width: 560px; }
.access-form { display: flex; gap: 12px; justify-content: center; max-width: 500px; margin: 32px auto 0; flex-wrap: wrap; }
.access-form input {
  flex: 1; min-width: 240px; padding: 15px 18px; border-radius: 13px;
  background: rgba(0,0,0,.35); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 15px; font-family: var(--font);
}
.access-form input::placeholder { color: var(--faint); }
.access-form input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.access-tiny { font-size: 13px; color: var(--faint); margin-top: 16px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; }
.about-copy p { color: var(--muted); font-size: 16px; margin-top: 16px; }
.about-copy p b { color: var(--text); }
.founder-card { border: 1px solid var(--border); border-radius: 22px; padding: 30px; background: var(--panel); }
.founder-top { display: flex; align-items: center; gap: 16px; }
.founder-av { width: 58px; height: 58px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #0A0713; flex: none; }
.founder-card h4 { font-size: 18px; }
.founder-card .role { color: var(--muted); font-size: 14px; }
.founder-card blockquote { margin: 20px 0 0; color: var(--text); font-size: 15px; font-style: italic; border-left: 2px solid var(--indigo); padding-left: 16px; }

/* ---------- faq ---------- */
.faq-wrap { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq {
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
  overflow: hidden; transition: border-color .2s ease;
}
.faq:hover { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .22s ease; color: var(--muted); flex: none; }
.faq[open] summary .chev { transform: rotate(180deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; margin-top: 40px; background: rgba(0,0,0,.25); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 300px; }
.footer-col h5 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 11px; transition: color .18s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom p { color: var(--faint); font-size: 13.5px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); display: grid; place-items: center; color: var(--muted); transition: all .18s ease; }
.socials a:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .feat-grid, .steps, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .products, .band-grid, .about-grid, .mock-body { grid-template-columns: 1fr; }
  .mock-chat { border-right: none; border-bottom: 1px solid var(--border); }
  .step-connector { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(5,7,14,.97); border-bottom: 1px solid var(--border); padding: 14px 24px 20px; gap: 4px;
    backdrop-filter: blur(14px);
  }
  .nav-links.open a { padding: 12px 14px; }
  .nav-toggle { display: grid; }
  .hero .btn { flex: 1; justify-content: center; }
  .section { padding: 70px 0; }
  .band, .access, .product-card { padding: 30px 22px; }
  .feat-grid, .steps, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .desktop-only { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- authenticated account and admin surfaces ---------- */
.account-body { min-height: 100vh; display: grid; align-items: start; }
.account-shell { width: min(100% - 32px, 520px); margin: 7vh auto; }
.account-shell-wide { width: min(100% - 32px, 900px); }
.account-brand { justify-content: center; margin: 0 0 24px; }
.account-card, .admin-panel { border: 1px solid var(--border); border-radius: 22px; background: rgba(8,11,21,.9); box-shadow: var(--shadow-lg); padding: 32px; }
.account-card h1, .admin-heading h1 { font-size: clamp(28px,4vw,42px); margin: 5px 0 10px; }
.account-kicker { color: var(--cyan); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.account-muted { color: var(--muted); margin: 8px 0 22px; }
.text-link { color: var(--cyan); }
.account-form { display: grid; gap: 16px; margin: 25px 0 18px; }
.account-form .btn { justify-content: center; }
.account-form label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 600; }
.account-form input, .account-form textarea, .inline-form input { width: 100%; color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 13px 14px; font: inherit; }
.account-form textarea { resize: vertical; min-height: 120px; }
.account-form input:focus, .account-form textarea:focus, .inline-form input:focus { outline: 2px solid rgba(56,198,242,.3); border-color: var(--cyan); }
.account-form small { color: var(--faint); font-weight: 400; }
.form-message { min-height: 24px; color: var(--amber); margin: 10px 0; }
.success-message { color: #58e6a9; }
.confirmation-card { text-align: center; }
.confirmation-icon { width: 68px; height: 68px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 20px; color: #58e6a9; background: rgba(88,230,169,.1); border: 1px solid rgba(88,230,169,.3); box-shadow: 0 18px 50px -28px rgba(88,230,169,.9); }
.confirmation-icon svg { width: 38px; height: 38px; }
.confirmation-lead { line-height: 1.65; }
.confirmation-notice { margin: 22px 0; padding: 14px 16px; border-radius: 12px; color: #b9f7df; background: rgba(88,230,169,.08); border: 1px solid rgba(88,230,169,.2); font-size: 14px; line-height: 1.55; }
.confirmation-steps { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; text-align: left; }
.confirmation-steps li { display: flex; align-items: flex-start; gap: 13px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); }
.confirmation-steps li > span { width: 29px; height: 29px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--cyan); background: rgba(56,198,242,.1); font: 700 12px var(--mono); }
.confirmation-steps strong, .confirmation-steps small { display: block; }
.confirmation-steps strong { color: var(--text); font-size: 14px; }
.confirmation-steps small { color: var(--muted); margin-top: 3px; line-height: 1.45; }
.confirmation-action { width: 100%; justify-content: center; }
.confirmation-hint { margin: 14px 0 0; color: var(--faint); font-size: 12px; line-height: 1.5; }
.account-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 26px 0; }
.metric-grid article { padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); }
.metric-grid span { display: block; color: var(--muted); font-size: 13px; }
.metric-grid strong { display: block; margin-top: 5px; font-size: 23px; }
.hidden { display: none !important; }
.admin-shell { width: min(100% - 32px, 1180px); margin: 40px auto 80px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 34px 0 22px; }
.inline-form { display: flex; gap: 8px; width: min(100%,430px); }
.admin-panel { margin-top: 20px; padding: 24px; }
.admin-panel h2 { margin-bottom: 18px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
td { color: var(--muted); font-size: 14px; }
td strong, td small { display: block; color: var(--text); }
td small { color: var(--faint); }
td button { color: var(--cyan); background: transparent; border: 0; cursor: pointer; padding: 5px; }
.audit-list { display: grid; gap: 10px; }
.audit-list article { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.audit-list span { color: var(--muted); font-size: 13px; }
@media(max-width:720px){.metric-grid{grid-template-columns:1fr}.admin-heading,.inline-form,.audit-list article{align-items:stretch;flex-direction:column}.account-card{padding:24px}}

/* ---------- credit policy administration ---------- */
.admin-shell .metric-grid { grid-template-columns: repeat(4,1fr); }
.admin-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-panel-heading h2, .admin-panel-heading h3 { margin: 0; }
.admin-panel-heading.compact { align-items: center; margin-bottom: 14px; }
.admin-panel-heading.compact h3 { font-size: 17px; }
.admin-panel-heading .account-muted { margin-bottom: 0; }
.admin-chip { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.025); font: 600 11px var(--mono); white-space: nowrap; }
.admin-chip.enabled { color: #58e6a9; border-color: rgba(88,230,169,.28); background: rgba(88,230,169,.08); }
.admin-chip.warning { color: var(--amber); border-color: rgba(250,190,70,.28); background: rgba(250,190,70,.08); }
.policy-state { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.policy-section { padding: 22px 0; border-top: 1px solid var(--border); }
.policy-enable-row { display: grid; grid-template-columns: minmax(300px,1fr) 1fr; align-items: center; gap: 20px; }
.policy-enable-row .account-muted { margin: 0; text-align: right; }
.admin-switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; }
.admin-switch input { position: absolute; opacity: 0; pointer-events: none; }
.admin-switch > span { width: 42px; height: 24px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-2); transition: .2s ease; }
.admin-switch > span::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--faint); transition: .2s ease; }
.admin-switch input:checked + span { border-color: rgba(88,230,169,.45); background: rgba(88,230,169,.18); }
.admin-switch input:checked + span::after { transform: translateX(18px); background: #58e6a9; }
.policy-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.policy-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.policy-grid label, .policy-publish label, .preview-controls label, .dialog-form label, .compact-select { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.policy-grid input, .policy-grid select, .policy-publish textarea, .preview-controls select, .editable-table input, .compact-select select, .dialog-form input, .dialog-form textarea, .dialog-form select { width: 100%; min-height: 42px; padding: 10px 11px; color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; font: inherit; }
.policy-grid input:focus, .policy-grid select:focus, .policy-publish textarea:focus, .preview-controls select:focus, .editable-table input:focus, .compact-select select:focus, .dialog-form input:focus, .dialog-form textarea:focus, .dialog-form select:focus { outline: 2px solid rgba(56,198,242,.24); border-color: var(--cyan); }
.checkbox-field { display: flex !important; flex-direction: row; align-items: center; align-self: end; min-height: 42px; gap: 9px !important; }
.checkbox-field input, .confirmation-check input { width: 17px; min-height: 17px; accent-color: var(--cyan); }
.btn-small { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.editable-table input { min-width: 120px; }
.editable-table td:first-child input { min-width: 210px; }
.key-value-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.key-value-row { display: grid; grid-template-columns: minmax(0,1fr) 110px 32px; gap: 8px; }
.key-value-row input { min-width: 0; min-height: 40px; padding: 9px 10px; color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; }
.key-value-row button, .editable-table [data-remove-row] { color: #ff7d90; font-size: 20px; }
.compact-select { width: min(100%,300px); margin: 0 0 14px; }
.preview-section { display: grid; gap: 16px; }
.preview-controls { display: grid; grid-template-columns: repeat(4,1fr) auto; align-items: end; gap: 12px; }
.preview-result { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; margin: 0; }
.preview-result article { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.preview-result span, .credit-summary span { display: block; color: var(--faint); font-size: 11px; }
.preview-result strong, .credit-summary strong { display: block; margin-top: 4px; color: var(--text); font-size: 18px; }
.preview-result .preview-total { border-color: rgba(56,198,242,.35); background: rgba(56,198,242,.07); }
.preview-result p { grid-column: 1/-1; margin: 0; color: var(--faint); font-size: 12px; }
.policy-publish { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; padding-top: 22px; border-top: 1px solid var(--border); }
.policy-publish .btn, .dialog-form .btn { justify-content: center; }
.admin-actions { min-width: 180px; }
.admin-actions button { padding: 6px 8px; border: 1px solid transparent; border-radius: 7px; }
.admin-actions button:hover { border-color: var(--border); background: rgba(255,255,255,.035); }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.05); font: 600 11px var(--mono); text-transform: capitalize; }
.status-active { color: #58e6a9; background: rgba(88,230,169,.09); }
.status-pending_approval { color: var(--amber); background: rgba(250,190,70,.09); }
.admin-dialog { width: min(100% - 32px,900px); max-height: calc(100vh - 48px); overflow: auto; padding: 28px; color: var(--text); background: #090d18; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 28px 100px rgba(0,0,0,.65); }
.admin-dialog::backdrop { background: rgba(1,4,12,.78); backdrop-filter: blur(4px); }
.admin-dialog > form:first-child { position: sticky; top: 0; z-index: 2; height: 0; text-align: right; }
.dialog-close { position: relative; top: -15px; right: -12px; width: 34px; height: 34px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; font-size: 22px; cursor: pointer; }
.dialog-heading { padding-right: 40px; }
.dialog-heading h2 { margin: 5px 0; }
.dialog-form { display: grid; gap: 15px; margin-top: 20px; }
.dialog-form textarea { min-height: 90px; resize: vertical; }
.dialog-error { margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.credit-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 18px 0; }
.credit-summary article { padding: 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); }
.compact-form { padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.02); }
.dialog-table { margin: 10px 0 24px; }
.dialog-table th, .dialog-table td { padding: 10px 8px; }
.credit-positive { color: #58e6a9; }
.credit-negative { color: #ff7d90; }
.confirmation-check { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 13px; }
.policy-json { max-height: 60vh; overflow: auto; padding: 16px; color: #c6d6f5; background: #060912; border: 1px solid var(--border); border-radius: 11px; font: 12px/1.55 var(--mono); white-space: pre-wrap; }

@media(max-width:900px){
  .admin-shell .metric-grid,.policy-grid,.preview-result { grid-template-columns: repeat(2,1fr); }
  .key-value-grid { grid-template-columns: 1fr; }
  .preview-controls { grid-template-columns: 1fr 1fr; }
}
@media(max-width:620px){
  .admin-panel { padding: 18px; }
  .admin-panel-heading,.policy-enable-row,.policy-publish { grid-template-columns: 1fr; flex-direction: column; }
  .policy-state { justify-content: flex-start; }
  .policy-enable-row .account-muted { text-align: left; }
  .policy-grid,.policy-grid.three,.preview-controls,.preview-result,.credit-summary,.form-row { grid-template-columns: 1fr; }
  .policy-publish .btn { width: 100%; }
}
