/* AgentMarket — design system
   Dark indigo base, lilac (violet) + mint accents, peach only inside the brand gradient. */

:root {
  --bg: #0b0920;
  --bg-2: #0f0b29;
  --panel: #151134;
  --panel-2: #1b1643;
  --stage: #100c2b;
  --line: #29235b;
  --line-2: #373072;
  --matte: rgba(27, 22, 67, 0.56);
  --matte-strong: rgba(24, 19, 60, 0.86);
  --matte-line: rgba(185, 166, 255, 0.14);
  --matte-line-2: rgba(185, 166, 255, 0.26);
  --matte-hi: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  --fg: #f4f1ec;
  --fg-2: #d9d4ea;
  --muted: #a8a2cc;
  --dim: #8780b0;

  --lilac: #b9a6ff;
  --lilac-2: #c9b8ff;
  --violet-ink: #2c2270;
  --peach: #f4b39c;
  --mint: #8fe0b4;
  --mint-ink: #0f3a28;
  --amber: #f5c46b;
  --red: #ff8f8f;

  --grad: linear-gradient(120deg, var(--lilac) 0%, var(--peach) 100%);
  --shadow: 0 24px 60px rgba(4, 2, 18, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 68px;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lilac-2); text-decoration: none; }
a:hover { color: var(--fg); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lilac-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(185, 166, 255, 0.35); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--lilac); letter-spacing: 0; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: linear-gradient(90deg, rgba(185, 166, 255, 0.14), rgba(143, 224, 180, 0.1));
  border-bottom: 1px solid var(--matte-line);
  font-size: 13px;
  color: var(--fg-2);
}
.demo-banner .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 36px; text-align: center; flex-wrap: wrap; padding-block: 6px; }
.demo-banner strong { color: var(--fg); font-weight: 600; }
@media (max-width: 640px) { .demo-banner .hide-sm { display: none; } }
.demo-banner button { background: none; border: 0; padding: 0; color: var(--lilac-2); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 9, 32, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(185, 166, 255, 0.08);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { color: var(--fg); }
.brand svg { width: 30px; height: 30px; }
.brand .lite { color: var(--lilac); font-weight: 500; }
.nav-seg {
  margin: 0 auto;
  display: flex; gap: 2px; padding: 4px;
  border: 1px solid var(--matte-line-2);
  background: rgba(21, 17, 52, 0.6);
  border-radius: 12px;
}
.nav-seg a { padding: 7px 14px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-seg a:hover { color: var(--fg); }
.nav-seg a[aria-current="page"] { background: var(--panel-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--matte-line-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.site-header .menu-toggle { display: none; }
.site-header .mobile-nav { display: none; }
[tabindex="-1"]:focus { outline: none; }

@media (max-width: 860px) {
  .nav-seg { display: none; }
  .header-actions .btn-cream { display: none; }
  .site-header .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .site-header .mobile-nav[data-open="true"] { display: block; border-top: 1px solid var(--matte-line); padding: 12px 0 18px; }
  .mobile-nav a { display: block; padding: 12px 4px; color: var(--fg-2); font-weight: 500; border-bottom: 1px solid rgba(185, 166, 255, 0.07); }
  .mobile-nav a[aria-current="page"] { color: var(--lilac-2); }
  .mobile-nav .btn { margin-top: 14px; width: 100%; }
}
@media (max-width: 520px) {
  .wallet-btn .wallet-bal { display: none; }
  .brand .wordmark { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--grad); color: #1c1540; box-shadow: 0 8px 30px rgba(185, 166, 255, 0.22); }
.btn-primary:hover { color: #1c1540; box-shadow: 0 10px 36px rgba(185, 166, 255, 0.36); }
.btn-cream { background: var(--fg); color: #15112f; }
.btn-cream:hover { color: #15112f; background: #fff; }
.btn-ghost { background: rgba(27, 22, 67, 0.5); color: var(--fg); border-color: var(--matte-line-2); }
.btn-ghost:hover { color: var(--fg); border-color: rgba(185, 166, 255, 0.45); background: rgba(27, 22, 67, 0.85); }
.btn-mint { background: var(--mint); color: var(--mint-ink); }
.btn-mint:hover { color: var(--mint-ink); background: #a6ecc5; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(255, 143, 143, 0.38); }
.btn-danger:hover { background: rgba(255, 143, 143, 0.08); color: #ffb0b0; }
.btn-text { background: none; border: 0; color: var(--lilac-2); padding: 0 4px; min-height: 32px; font-weight: 500; }
.btn-text:hover { color: var(--fg); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; }
.icon-btn { width: 42px; padding: 0; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: currentColor; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges, chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid var(--matte-line-2); color: var(--fg-2); background: rgba(27, 22, 67, 0.6);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.badge.no-dot::before { display: none; }
.badge.tone-violet { color: var(--lilac-2); border-color: rgba(185, 166, 255, 0.35); background: rgba(185, 166, 255, 0.08); }
.badge.tone-mint { color: var(--mint); border-color: rgba(143, 224, 180, 0.35); background: rgba(143, 224, 180, 0.08); }
.badge.tone-amber { color: var(--amber); border-color: rgba(245, 196, 107, 0.35); background: rgba(245, 196, 107, 0.08); }
.badge.tone-peach { color: var(--peach); border-color: rgba(244, 179, 156, 0.38); background: rgba(244, 179, 156, 0.08); }
.badge.tone-red { color: var(--red); border-color: rgba(255, 143, 143, 0.38); background: rgba(255, 143, 143, 0.08); }
.badge.tone-neutral { color: var(--muted); }
.badge.demo { color: var(--amber); border-style: dashed; border-color: rgba(245, 196, 107, 0.45); background: transparent; }
.badge.demo::before { display: none; }

.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; color: var(--fg-2); background: rgba(185, 166, 255, 0.07); border: 1px solid rgba(185, 166, 255, 0.12); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tag { font-size: 12.5px; font-weight: 500; color: var(--lilac); display: inline-flex; align-items: center; gap: 6px; }
.cat-tag svg { width: 14px; height: 14px; }

/* ---------- Surfaces ---------- */
.panel {
  background: var(--matte);
  border: 1px solid var(--matte-line);
  box-shadow: var(--matte-hi);
  border-radius: var(--r-lg);
}
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(27, 22, 67, 0.62), rgba(21, 17, 52, 0.62));
  border: 1px solid var(--matte-line);
  box-shadow: var(--matte-hi);
  border-radius: var(--r-md);
  padding: 22px;
  transition: border-color 0.25s, transform 0.3s var(--ease), background 0.25s;
}
.card.interactive:hover { border-color: var(--matte-line-2); transform: translateY(-2px); }
.card .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .stretched:focus-visible { outline: none; }
.card:has(.stretched:focus-visible) { outline: 2px solid var(--lilac-2); outline-offset: 2px; }
.card-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--fg); }
.card-title a { color: inherit; }
.divider { height: 1px; background: var(--matte-line); border: 0; margin: 18px 0; }

/* ---------- Pattern backgrounds (word-texture motif) ---------- */
.pattern {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='40'%3E%3Ctext x='0' y='26' font-family='ui-monospace,Menlo,monospace' font-size='15' font-weight='600' fill='%23b9a6ff' fill-opacity='0.11'%3Epost%C2%B7propose%C2%B7deliver%C2%B7release%C2%B7%3C/text%3E%3C/svg%3E");
  background-size: 420px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 46%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 46%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%);
}
.glow { position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(80px); opacity: 0.55; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 72px; text-align: center; }
.hero .glow { width: 720px; height: 420px; left: 50%; top: 10%; transform: translateX(-50%); background: radial-gradient(circle, rgba(76, 58, 190, 0.55), transparent 70%); }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--matte-line-2); background: rgba(21, 17, 52, 0.75); font-size: 13.5px; font-weight: 500; color: var(--fg-2); }
.hero-pill .dot { width: 20px; height: 20px; border-radius: 6px; background: #ccff00; display: grid; place-items: center; }
.hero-pill .dot svg { width: 12px; height: 12px; color: #14140f; stroke-width: 2.6; }
.hero h1 { margin-top: 26px; font-size: clamp(42px, 7.2vw, 92px); letter-spacing: -0.045em; line-height: 0.98; font-weight: 600; max-width: 13ch; }
.hero h1 .line { display: block; }
.hero .lede { margin-top: 26px; max-width: 620px; font-size: clamp(17px, 2vw, 20px); color: var(--fg-2); line-height: 1.55; }
.hero .ctas { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .assure { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 13.5px; color: var(--muted); }
.hero .assure span { display: inline-flex; gap: 6px; align-items: center; }
.hero .assure svg { width: 15px; height: 15px; color: var(--mint); }

/* Hero mockup */
.mock { position: relative; z-index: 1; margin: 64px auto 0; max-width: 980px; text-align: left; display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.mock .panel { padding: 20px; background: rgba(21, 17, 52, 0.78); }
.mock-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.mock-proposal { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--matte-line); background: rgba(11, 9, 32, 0.45); }
.mock-proposal + .mock-proposal { margin-top: 8px; }
.mock-proposal.sel { border-color: rgba(143, 224, 180, 0.5); background: rgba(143, 224, 180, 0.06); }
.mock-proposal .nm { font-weight: 600; font-size: 14.5px; }
.mock-proposal .meta { font-size: 12.5px; color: var(--muted); }
.mock-proposal .px { font-family: var(--mono); font-size: 14px; text-align: right; }
.bubble { position: relative; padding: 14px 16px; border-radius: 16px; background: rgba(27, 22, 67, 0.92); border: 1px solid var(--matte-line-2); font-size: 14.5px; color: var(--fg-2); box-shadow: var(--shadow); }
.bubble .who { display: block; font-size: 12.5px; font-weight: 600; color: var(--lilac); margin-bottom: 4px; }
.pay-flow { display: flex; flex-direction: column; gap: 10px; }
.pay-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--matte-line); background: rgba(11, 9, 32, 0.4); font-size: 14px; }
.pay-step .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(185, 166, 255, 0.12); color: var(--lilac-2); flex: none; }
.pay-step .ic svg { width: 15px; height: 15px; }
.pay-step.done .ic { background: rgba(143, 224, 180, 0.14); color: var(--mint); }
.pay-step .amt { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); }
@media (max-width: 820px) { .mock { grid-template-columns: 1fr; } }

/* ---------- Ticker band ---------- */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--matte-line); padding: 14px 0; background: rgba(15, 11, 41, 0.6); }
.ticker-track { display: flex; gap: 28px; width: max-content; animation: tick 48s linear infinite; font-family: var(--mono); font-size: 13px; color: var(--dim); text-transform: lowercase; }
.ticker-track span { display: inline-flex; gap: 28px; align-items: center; }
.ticker-track i { width: 4px; height: 4px; border-radius: 50%; background: var(--lilac); opacity: 0.6; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; }
.section-sm { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; margin-top: 8px; }
.section-head p { color: var(--muted); max-width: 520px; margin-top: 10px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

/* How it works */
.steps { counter-reset: s; }
.step { padding: 24px; }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--lilac); }
.step h3 { margin-top: 18px; font-size: 21px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.step .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(185, 166, 255, 0.1); color: var(--lilac-2); margin-top: 18px; border: 1px solid rgba(185, 166, 255, 0.18); }
.step .ic svg { width: 20px; height: 20px; }

/* Escrow explainer */
.escrow { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 44px; overflow: hidden; position: relative; }
.escrow h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; }
.escrow p { color: var(--fg-2); }
.escrow .fine { font-size: 13.5px; color: var(--muted); }
.state-diagram { display: grid; gap: 10px; }
.state-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.state-node { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--matte-line-2); background: rgba(11, 9, 32, 0.5); font-size: 14px; font-weight: 600; }
.state-node small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.state-node.mint { border-color: rgba(143, 224, 180, 0.45); color: var(--mint); }
.state-node.violet { border-color: rgba(185, 166, 255, 0.45); color: var(--lilac-2); }
.state-node.red { border-color: rgba(255, 143, 143, 0.4); color: var(--red); }
.state-node.neutral { color: var(--fg-2); }
.state-arrow { color: var(--dim); width: 18px; height: 18px; flex: none; }
@media (max-width: 900px) { .escrow { grid-template-columns: 1fr; padding: 28px; } }

/* CTA */
.cta-band { text-align: center; padding: 96px 20px; position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--matte-line); background: radial-gradient(ellipse at 50% 0%, rgba(76, 58, 190, 0.4), transparent 65%), var(--stage); }
.cta-band h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.04em; position: relative; z-index: 1; }
.cta-band p { color: var(--fg-2); margin: 16px auto 0; max-width: 520px; position: relative; z-index: 1; }
.cta-band .row { justify-content: center; margin-top: 28px; position: relative; z-index: 1; }

/* ---------- Page headers ---------- */
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.04em; margin-top: 8px; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 640px; }
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }

/* ---------- Task card ---------- */
.task-card { display: flex; flex-direction: column; gap: 12px; }
.task-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.task-card .summary { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-card .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--matte-line); display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: end; }
.reward { font-family: var(--mono); font-weight: 600; font-size: 18px; color: var(--fg); letter-spacing: -0.02em; }
.reward small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.meta-sm { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.meta-sm svg { width: 14px; height: 14px; }
.meta-sm.warn { color: var(--amber); }
.meta-sm.bad { color: var(--red); }

/* ---------- Agent card ---------- */
.agent-card { display: flex; flex-direction: column; gap: 14px; }
.agent-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 15px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #15112f; letter-spacing: -0.02em; position: relative; overflow: hidden; }
.avatar.lg { width: 84px; height: 84px; border-radius: 24px; font-size: 30px; }
.avatar.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
.avatar.xs { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.agent-name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--fg); }
.agent-name a { color: inherit; }
.agent-tag { font-size: 13.5px; color: var(--muted); }
.stat-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; border-top: 1px solid var(--matte-line); }
.stat-line div { font-size: 12px; color: var(--muted); }
.stat-line b { display: block; font-family: var(--mono); font-size: 15px; color: var(--fg); font-weight: 600; margin-bottom: 2px; }
.stars { color: var(--amber); }

/* ---------- Marketplace layout ---------- */
.market { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; padding-bottom: 80px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); padding: 20px; }
.filters h2 { font-size: 15px; letter-spacing: -0.01em; }
.filter-group { border-top: 1px solid var(--matte-line); padding-top: 16px; margin-top: 16px; }
.filter-group legend, .filter-group .legend { font-size: 13px; font-weight: 600; color: var(--fg-2); margin-bottom: 10px; padding: 0; }
.filter-group fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; color: var(--fg-2); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--lilac); margin: 0; }
.check .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 280px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; }
.result-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.filter-toggle { display: none; }
@media (max-width: 960px) {
  .market { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; display: none; }
  .filters[data-open="true"] { display: block; }
  .filter-toggle { display: inline-flex; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field + .field { margin-top: 18px; }
.label { font-size: 14px; font-weight: 600; color: var(--fg); }
.label .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.error-msg { font-size: 13px; color: var(--red); display: flex; gap: 6px; align-items: center; }
.error-msg svg { width: 14px; height: 14px; flex: none; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(11, 9, 32, 0.66); color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .select:hover, .textarea:hover { border-color: #4a428a; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(185, 166, 255, 0.2); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8a2cc' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.select option { background: var(--panel); }
.input-group { position: relative; }
.input-group .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 13px; color: var(--muted); pointer-events: none; }
.input-group .input { padding-right: 64px; font-family: var(--mono); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field + .field { margin-top: 0; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.counter { font-size: 12px; color: var(--dim); font-family: var(--mono); margin-left: auto; }
.list-editor { display: flex; flex-direction: column; gap: 8px; }
.list-editor .item { display: flex; gap: 8px; }
.list-editor .item .input { flex: 1; }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); font-size: 14px; background: rgba(11, 9, 32, 0.4); transition: border-color 0.2s, background 0.2s; }
.dropzone.drag { border-color: var(--lilac); background: rgba(185, 166, 255, 0.06); }
.dropzone label { color: var(--lilac-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(185, 166, 255, 0.06); border: 1px solid var(--matte-line); font-size: 13.5px; }
.file-item svg { width: 16px; height: 16px; color: var(--lilac); flex: none; }
.file-item .sz { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.error-summary { border: 1px solid rgba(255, 143, 143, 0.4); background: rgba(255, 143, 143, 0.06); border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; font-size: 14px; }
.error-summary h3 { font-size: 14.5px; color: var(--red); margin-bottom: 6px; }
.error-summary ul { padding-left: 18px; }
.error-summary a { color: var(--fg-2); text-decoration: underline; }

/* ---------- Post wizard ---------- */
.wizard { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; padding-bottom: 80px; }
.wizard-steps { position: sticky; top: calc(var(--header-h) + 16px); list-style: none; display: flex; flex-direction: column; gap: 4px; }
.wizard-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.wizard-steps li .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line-2); flex: none; }
.wizard-steps li[aria-current="step"] { background: var(--panel-2); color: var(--fg); }
.wizard-steps li[aria-current="step"] .n { border-color: var(--lilac); color: var(--lilac-2); }
.wizard-steps li.done .n { background: rgba(143, 224, 180, 0.14); border-color: rgba(143, 224, 180, 0.4); color: var(--mint); }
.wizard-body { padding: 32px; }
.wizard-body h2 { font-size: 26px; letter-spacing: -0.03em; }
.wizard-body > .sub { color: var(--muted); margin-top: 8px; margin-bottom: 26px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--matte-line); flex-wrap: wrap; }
.cat-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cat-picker label { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(11, 9, 32, 0.5); cursor: pointer; font-size: 14px; font-weight: 600; transition: border-color 0.2s, background 0.2s; }
.cat-picker label svg { width: 20px; height: 20px; color: var(--lilac); }
.cat-picker input { position: absolute; opacity: 0; pointer-events: none; }
.cat-picker input:checked + label { border-color: var(--lilac); background: rgba(185, 166, 255, 0.1); }
.cat-picker input:focus-visible + label { outline: 2px solid var(--lilac-2); outline-offset: 2px; }
@media (max-width: 900px) {
  .wizard { grid-template-columns: minmax(0, 1fr); }
  .wizard-steps { position: static; flex-direction: row; overflow-x: auto; }
  .wizard-steps li .lbl { display: none; }
  .wizard-steps li[aria-current="step"] .lbl { display: inline; }
  .cat-picker { grid-template-columns: repeat(2, 1fr); }
  .wizard-body { padding: 22px; }
}

/* Cost breakdown */
.cost { border-radius: 16px; border: 1px solid var(--matte-line-2); background: rgba(11, 9, 32, 0.5); padding: 18px; }
.cost-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--fg-2); }
.cost-row span:last-child { font-family: var(--mono); }
.cost-row.total { border-top: 1px solid var(--matte-line-2); margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--fg); font-size: 16px; }
.network-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.net-dot { width: 18px; height: 18px; border-radius: 6px; background: #ccff00; display: inline-grid; place-items: center; flex: none; }
.net-dot svg { width: 11px; height: 11px; }

/* Funding flow */
.fund-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.fund-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--matte-line); font-size: 14.5px; color: var(--muted); }
.fund-steps li .st { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.fund-steps li .st svg { width: 18px; height: 18px; }
.fund-steps li[data-state="active"] { color: var(--fg); border-color: var(--matte-line-2); }
.fund-steps li[data-state="done"] { color: var(--fg-2); }
.fund-steps li[data-state="done"] .st { color: var(--mint); }

/* ---------- Detail layout ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-bottom: 80px; }
.detail aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1000px) { .detail { grid-template-columns: minmax(0, 1fr); } .detail aside { position: static; } }
@media (max-width: 640px) { .block { padding: 18px; } .wizard-body { padding: 18px; } .escrow { padding: 22px; } .proposal { padding: 16px; } .msg { max-width: 100%; } }
.prose h2 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 12px; }
.prose p { color: var(--fg-2); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 20px; color: var(--fg-2); }
.prose li + li { margin-top: 6px; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li svg { width: 18px; height: 18px; color: var(--mint); flex: none; margin-top: 3px; }
.block { padding: 26px; }
.block + .block { margin-top: 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; color: var(--fg); }
.big-reward { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.big-reward small { font-size: 15px; color: var(--muted); font-weight: 500; }

/* Proposals */
.proposal { padding: 20px; border-radius: var(--r-md); border: 1px solid var(--matte-line); background: rgba(21, 17, 52, 0.6); }
.proposal + .proposal { margin-top: 12px; }
.proposal.selected { border-color: rgba(143, 224, 180, 0.5); background: rgba(143, 224, 180, 0.05); }
.proposal.mine { border-color: rgba(185, 166, 255, 0.45); }
.proposal.declined { opacity: 0.6; }
.proposal .pitch { color: var(--fg-2); font-size: 14.5px; margin-top: 12px; }
.proposal .nums { display: flex; gap: 22px; flex-wrap: wrap; }
.proposal .nums div { font-size: 12.5px; color: var(--muted); }
.proposal .nums b { display: block; font-family: var(--mono); font-size: 16px; color: var(--fg); }
.proposal .past { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.proposal .past li { list-style: none; display: flex; gap: 8px; }
.proposal .past li::before { content: "↳"; color: var(--dim); }
.proposal .actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.compare-bar { position: sticky; bottom: 16px; z-index: 20; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--matte-strong); border: 1px solid var(--matte-line-2); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: var(--shadow); flex-wrap: wrap; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--matte-line); vertical-align: top; }
.compare-table th[scope="row"] { color: var(--muted); font-weight: 500; white-space: nowrap; }
.compare-table thead th { font-size: 15px; }
.compare-table .best { color: var(--mint); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- Lifecycle stepper ---------- */
.lifecycle { display: flex; gap: 0; list-style: none; overflow-x: auto; padding-bottom: 4px; }
.lifecycle li { flex: 1 1 0; min-width: 92px; position: relative; padding-top: 26px; font-size: 12.5px; color: var(--dim); font-weight: 500; }
.lifecycle li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line-2); }
.lifecycle li:first-child::before { left: 8px; }
.lifecycle li::after { content: ""; position: absolute; top: 1px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.lifecycle li.done { color: var(--fg-2); }
.lifecycle li.done::before { background: var(--mint); }
.lifecycle li.done::after { background: var(--mint); border-color: var(--mint); }
.lifecycle li.current { color: var(--fg); font-weight: 600; }
.lifecycle li.current::before { background: linear-gradient(90deg, var(--mint), var(--line-2)); }
.lifecycle li.current::after { border-color: var(--lilac); background: var(--lilac); box-shadow: 0 0 0 4px rgba(185, 166, 255, 0.22); }
.lifecycle li.halt::after { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 4px rgba(255, 143, 143, 0.2); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--matte-line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 12px 14px; border: 0; background: none; color: var(--muted); font-weight: 500; font-size: 14.5px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.tab .n { font-family: var(--mono); font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: rgba(185, 166, 255, 0.12); color: var(--fg-2); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--matte-line-2); background: rgba(21, 17, 52, 0.6); gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--matte-line-2); }

/* ---------- Dashboard ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.tile { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--matte-line); background: rgba(21, 17, 52, 0.6); }
.tile .k { font-size: 13px; color: var(--muted); }
.tile .v { font-family: var(--mono); font-size: 26px; font-weight: 600; margin-top: 6px; letter-spacing: -0.03em; }
.tile .s { font-size: 12.5px; color: var(--dim); margin-top: 4px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--matte-line); background: rgba(21, 17, 52, 0.55); position: relative; transition: border-color 0.2s; }
.list-row:hover { border-color: var(--matte-line-2); }
.list-row .t { font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.list-row .t a { color: inherit; }
.list-row .sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.list-row .right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 640px) { .list-row { grid-template-columns: 1fr; } .list-row .right { justify-content: flex-start; } }

/* Ledger */
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--matte-line); }
.ledger td { padding: 12px; border-bottom: 1px solid var(--matte-line); vertical-align: top; }
.ledger td.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.ledger th.num { text-align: right; }
.ledger .ref { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.amt-in { color: var(--mint); }
.amt-out { color: var(--fg-2); }

/* ---------- Workspace ---------- */
.ws-head { padding: 32px 0 24px; }
.ws-head h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; margin-top: 10px; }
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 12px; max-width: 88%; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg .body { padding: 12px 15px; border-radius: 16px; background: rgba(27, 22, 67, 0.85); border: 1px solid var(--matte-line); font-size: 14.5px; color: var(--fg-2); }
.msg.me .body { background: rgba(185, 166, 255, 0.12); border-color: rgba(185, 166, 255, 0.3); }
.msg .who { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; }
.msg .who b { color: var(--fg); font-weight: 600; }
.sys { align-self: center; font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--matte-line); background: rgba(11, 9, 32, 0.5); text-align: center; }
.sys svg { width: 14px; height: 14px; color: var(--lilac); }
.update-card { border: 1px solid rgba(185, 166, 255, 0.24); background: rgba(185, 166, 255, 0.05); border-radius: 16px; padding: 14px 16px; }
.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width 0.6s var(--ease); }
.composer { display: flex; gap: 10px; margin-top: 18px; align-items: flex-end; }
.composer .textarea { min-height: 48px; height: 48px; }
.delivery { border: 1px solid var(--matte-line-2); border-radius: 18px; padding: 18px; background: rgba(21, 17, 52, 0.7); }
.delivery + .delivery { margin-top: 12px; }
.delivery.approved { border-color: rgba(143, 224, 180, 0.45); }
.delivery .fb { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(245, 196, 107, 0.06); border: 1px solid rgba(245, 196, 107, 0.25); font-size: 14px; color: var(--fg-2); }
.timeline { list-style: none; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 26px; font-size: 14px; color: var(--fg-2); }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -6px; width: 1px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--lilac); background: var(--bg); }
.timeline li.pay::after { border-color: var(--mint); }
.timeline li.warn::after { border-color: var(--red); }
.timeline time { display: block; font-size: 12px; color: var(--dim); font-family: var(--mono); margin-top: 2px; }
.action-panel { padding: 22px; }
.action-panel h2 { font-size: 16px; }
.action-panel .btn + .btn { margin-top: 8px; }
.notice { padding: 14px 16px; border-radius: 14px; font-size: 14px; border: 1px solid var(--matte-line-2); background: rgba(11, 9, 32, 0.45); color: var(--fg-2); display: flex; gap: 10px; align-items: flex-start; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--lilac); }
.notice.mint { border-color: rgba(143, 224, 180, 0.35); background: rgba(143, 224, 180, 0.05); }
.notice.mint svg { color: var(--mint); }
.notice.amber { border-color: rgba(245, 196, 107, 0.35); background: rgba(245, 196, 107, 0.05); }
.notice.amber svg { color: var(--amber); }
.notice.red { border-color: rgba(255, 143, 143, 0.35); background: rgba(255, 143, 143, 0.05); }
.notice.red svg { color: var(--red); }
.demo-ctrl { border: 1px dashed rgba(245, 196, 107, 0.4); border-radius: var(--r-md); padding: 18px; }
.demo-ctrl h3 { font-size: 13px; color: var(--amber); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.demo-ctrl p { font-size: 13.5px; color: var(--muted); margin: 6px 0 12px; }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 44px 0 28px; }
.profile-head h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.04em; }
.sample { padding: 18px; border-radius: 16px; border: 1px solid var(--matte-line); background: rgba(11, 9, 32, 0.5); }
.sample pre { margin: 10px 0 0; white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); line-height: 1.6; max-height: 220px; overflow: auto; }
.review { padding: 16px 0; border-bottom: 1px solid var(--matte-line); }
.review:last-child { border-bottom: 0; }
.review p { color: var(--fg-2); font-size: 14.5px; margin-top: 6px; }
.stats-block { padding: 22px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.stats-grid div { font-size: 12.5px; color: var(--muted); }
.stats-grid b { display: block; font-family: var(--mono); font-size: 22px; color: var(--fg); font-weight: 600; letter-spacing: -0.02em; }
.bar-row { display: grid; grid-template-columns: 26px 1fr 28px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.bar-row + .bar-row { margin-top: 6px; }
.bar-row .bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar-row .bar span { display: block; height: 100%; background: var(--amber); border-radius: inherit; }

/* ---------- Empty, skeleton ---------- */
.empty { text-align: center; padding: 56px 24px; border-radius: var(--r-md); border: 1px dashed var(--line-2); background: rgba(15, 11, 41, 0.5); }
.empty .ic { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 16px; display: grid; place-items: center; background: rgba(185, 166, 255, 0.1); color: var(--lilac-2); }
.empty .ic svg { width: 24px; height: 24px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); margin: 8px auto 0; max-width: 420px; font-size: 14.5px; }
.empty .row { justify-content: center; margin-top: 18px; }
.skel { position: relative; overflow: hidden; background: rgba(41, 35, 91, 0.6); border-radius: 8px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(185, 166, 255, 0.08), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-line { height: 12px; margin-top: 10px; }
.skel-title { height: 20px; width: 70%; }
.skel-card { height: 220px; border-radius: var(--r-md); }
.route-loading { padding: 48px 0 80px; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(5, 3, 18, 0.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade 0.2s ease; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--matte-line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); animation: pop 0.28s var(--ease); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 0; }
.modal-head h2 { font-size: 21px; letter-spacing: -0.02em; }
.modal-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.modal-body { padding: 20px 24px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid var(--matte-line); flex-wrap: wrap; }
.close-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--matte-line-2); background: transparent; display: grid; place-items: center; color: var(--muted); flex: none; }
.close-btn:hover { color: var(--fg); }
.close-btn svg { width: 16px; height: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.wallet-option { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--matte-line-2); background: rgba(11, 9, 32, 0.5); text-align: left; transition: border-color 0.2s; }
.wallet-option:hover { border-color: var(--lilac); }
.wallet-option + .wallet-option { margin-top: 10px; }
.wallet-option[disabled] { opacity: 0.5; cursor: not-allowed; }
.wallet-option .wi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #1c1540; flex: none; }
.wallet-option .wi svg { width: 20px; height: 20px; }
.wallet-btn { font-family: var(--font); }
.wallet-btn .addr { font-family: var(--mono); font-size: 13px; }
.wallet-btn .wallet-bal { font-family: var(--mono); font-size: 13px; color: var(--mint); }
.wallet-btn .live { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(143, 224, 180, 0.2); }
.rating-input { display: flex; gap: 4px; }
.rating-input button { background: none; border: 0; padding: 4px; color: var(--line-2); }
.rating-input button svg { width: 26px; height: 26px; }
.rating-input button[aria-pressed="true"] { color: var(--amber); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: min(400px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--matte-line-2); box-shadow: var(--shadow); font-size: 14.5px; animation: pop 0.3s var(--ease); }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--lilac); }
.toast.success svg { color: var(--mint); }
.toast.error svg { color: var(--red); }
.toast .t { font-weight: 600; }
.toast .d { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.toast a { color: var(--lilac-2); }
.toast.out { opacity: 0; transform: translateY(6px); transition: 0.25s; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--matte-line); margin-top: 40px; padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h3 { font-size: 13px; color: var(--fg); margin-bottom: 12px; font-weight: 600; }
.site-footer li { list-style: none; margin-top: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--matte-line); font-size: 12.5px; color: var(--dim); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer .btn-text { padding: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* page fade */
.view-enter { animation: rise 0.45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
