/* Hero Hub design language, after the warp-card inspo.
   One designer's hand across the site:
   - cards are editorial: a quiet two-line label top-left, one big Doto figure, a short footer line
   - surfaces are the earlier two-hue gradients, now with the same film grain as the warp cards
   - hairline details (ticks, crosshair, ring) instead of icons and glows
   - data stays flat, dark and tight */

:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- quieter stage, flat buttons ---- */
body::before { background: radial-gradient(55% 40% at 50% -12%, rgba(47,123,255,.12), transparent 70%), #09090b; }
.btn.blue { background: #2f6bff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.btn.blue:hover { background: #3d78ff; filter: none; }
.btn.ghost { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.dot.live { box-shadow: none; }

/* ---- grain on every gradient surface ---- */
.svc { isolation: isolate; }
.svc::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: var(--grain), linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%);
  background-size: 160px 160px, auto; mix-blend-mode: overlay; opacity: .55;
}

/* ---- data surfaces ---- */
.plat.on { box-shadow: none; border-color: rgba(116,183,255,.45); }
.grp-head { background: #141418; }
.node-tile.on { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.5); }
.warp { border: 0; }


/* catalog groups are <section>s: drop the generic section padding */
section.grp { padding: 0; margin-bottom: 16px; }

/* home: the numbers carousel continues straight out of the hero */
.sx-hero.flows { padding-bottom: 0; }
.sx-hero.flows::after { display: none; }
.warp-sec { padding: 0; margin-top: -24px; }
.warp-sec .warp { border-radius: 0; background: transparent; height: 560px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* ---- hero: chromed-out lens edges from the warp carousel, no grid, no purple bands ---- */
.sx-grid::before, .sx-grid::after { display: none !important; }
.sx-hero::before, .sx-hero::after { display: none !important; }
.sx-grid > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sx-grid { -webkit-mask: linear-gradient(180deg, #000 75%, transparent); mask: linear-gradient(180deg, #000 75%, transparent); }
/* keep the middle calm so the headline reads */
.sx-hero > :not(.sx-grid) { position: relative; z-index: 1; }

/* chromed-out lens edges (hero-edges.js): a 1px colour column stretched into streaks on each side */
.edge-band { position: absolute; top: 8%; height: 74%; width: min(26vw, 380px); pointer-events: none; opacity: .9;
  --fade: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 35%, transparent 100%);
  -webkit-mask: var(--fade), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask: var(--fade), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect; }
.edge-band.l { left: 0; }
.edge-band.r { right: 0; transform: scaleX(-1); }
.edge-band canvas { width: 100%; height: 100%; display: block; image-rendering: auto; filter: blur(.6px) saturate(1.15); }
/* a few sharper streaks on top, like the stretched card rim in the flare */
.edge-band::after { content: ""; position: absolute; inset: 0; mix-blend-mode: screen; opacity: .35;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.0) 0 7px, rgba(255,255,255,.5) 7px 8px, rgba(255,255,255,0) 8px 19px); }
@media (max-width: 760px) { .edge-band { width: 22vw; opacity: .7; } }
/* flare shape: tall at the outer edge, tapering toward the centre; no uniform scanlines */
.edge-band { top: 4%; height: 82%; width: min(30vw, 440px);
  -webkit-mask: radial-gradient(100% 52% at 0% 50%, #000 50%, rgba(0,0,0,.6) 72%, transparent 100%); mask: radial-gradient(100% 52% at 0% 50%, #000 50%, rgba(0,0,0,.6) 72%, transparent 100%); }
.edge-band::after { display: none; }
.edge-band canvas { filter: saturate(1.2); }
.edge-band { width: min(24vw, 360px); }
/* weaker, pushed further out */
.edge-band { width: min(16vw, 240px); opacity: .55; }
@media (max-width: 760px) { .edge-band { width: 14vw; opacity: .45; } }

/* carousel: fade top and bottom into black so its glow bands never end on a hard edge */
.warp-sec { margin-top: -60px; }
.warp-sec .warp { height: 620px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%);
  mask-composite: intersect; }

/* ================= audit pass: one hand, less noise ================= */

/* colour: one blue for every gradient card, quieter than before; hue classes no longer change anything */
.svc.blue, .svc.violet, .svc.teal, .svc.azure, .svc.green, .svc.amber, .svc.pink { --glow: #2f6bff; --glow2: #1d2f7a; }
.svc::before { opacity: .45 !important; }
.svc { border-radius: 24px; }

/* type scale: two heading sizes, used the same way everywhere */
body { letter-spacing: -.01em; }
.title-1 { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -.026em; }
.title-2 { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; }
.headline { font-size: 17px; line-height: 22px; font-weight: 600; }
.svc-d, .why-list, .ticks, .sx-sub { max-width: 60ch; }

/* rhythm: one section spacing, one hero spacing, one form-card padding */
.vp-group { padding: 48px 0; }
section.grp { padding: 0; }
.sx-hero { padding-top: 112px; padding-bottom: 56px; }
.sx-hero.sm { padding-top: 112px; padding-bottom: 40px; }
.sx-hero.flows { padding-bottom: 0; }
.form-card, .form-card.single { padding: 32px; }
.xlist .xrow, .grp-row { padding-left: 24px; padding-right: 24px; }

/* Doto lives in the carousel and the MM step numbers only */
.rank { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--muted); }
.step-n { opacity: 1; color: rgba(255,255,255,.3); }

/* neutral tags; green is reserved for guarantees and live status */
.cat-tag, .cat-tag.aged, .cat-tag.softreg, .cat-tag.fresh { color: var(--text-2); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.creator-av, .creator-av.meshed { background: #1a1a1f !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.bdg { border-radius: 6px; }

/* home: "Why Hero Hub" is a calm two-column list, not another card grid */
.why .title-2 { margin-bottom: 24px; }
.why-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px; border-radius: 24px; background: #0d0d10; border: 1px solid rgba(255,255,255,.07); }
.why-cols .headline { margin-bottom: 16px; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why-list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 22px; color: var(--text-2); }
.why-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: rgba(116,183,255,.7); }
.why-cta { margin-top: 24px; }
@media (max-width: 760px) { .why-cols { grid-template-columns: 1fr; gap: 32px; padding: 24px; } }

/* services list: rows like the accounts catalog */
.svc-head h3 { font-size: 16px; font-weight: 600; }
.svc-head span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.svc-row .svc-ic.sm { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.svc-row .svc-ic.sm svg { width: 18px; height: 18px; }
.svc-row .grp-main .d { max-width: 60ch; }
.svc-row .grp-stock { color: var(--text-2); }
.svc-row .btn { white-space: nowrap; }
.svc-row, .svc-head { grid-template-columns: 48px 1fr 90px 110px 112px; }
.svc-head { grid-template-columns: 1fr 90px 110px 112px; }

/* ================= second audit pass ================= */
/* inner pages: compact, left-aligned header (home keeps the centred hero) */
.sx-hero.sm { text-align: left; padding-top: 112px; padding-bottom: 32px; }
.sx-hero.sm .sx-title { font-size: clamp(34px, 4.4vw, 52px); }
.sx-hero.sm .sx-sub { margin-left: 0; margin-right: 0; }
.sx-hero.sm .sx-cta { justify-content: flex-start; }
.sx-hero.sm .edge-band { opacity: .35; }
.sx-strong { display: block; }

/* fewer effects: no lifts, no big shadows, no text glow */
.svc:hover, .svc.meshed:hover, .handle-card:hover, .plat:hover { transform: none; }
.node-tile { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.node-tile.on { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(116,183,255,.25); }
.sx-hero .sx-title, .sx-hero .sx-sub { text-shadow: none; }

/* catalog: Buy is an outline action, badges are text only */
.btn.buy { color: #9cc4ff; border-color: rgba(47,107,255,.45); background: rgba(47,107,255,.08); }
.btn.buy:hover { background: rgba(47,107,255,.16); color: #fff; }
.bdg svg { display: none; }

/* auth: flat segmented control */
.seg-thumb { background: #2f6bff; box-shadow: none; }

/* accessibility: readable secondary text, visible focus everywhere */
:root { --muted: #8a8a94; }
:focus-visible { outline: 2px solid #2f6bff; outline-offset: 2px; }
.vp-grid.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .vp-grid.six { grid-template-columns: 1fr; } }

/* price bookmarks */
.grp-head, .grp-row { grid-template-columns: 48px 1fr 110px 150px 140px; }
.grp-head { grid-template-columns: 1fr 110px 150px 140px; }
.svc-row, .svc-head { grid-template-columns: 48px 1fr 90px 110px 112px; }
.svc-head { grid-template-columns: 1fr 90px 110px 112px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bm { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  color: var(--muted); background: transparent; border: 1px solid rgba(255,255,255,.1); transition: color .2s, background .2s, border-color .2s; }
.bm:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.bm.on { color: #9cc4ff; border-color: rgba(47,107,255,.45); background: rgba(47,107,255,.12); }
.bm.on svg path { fill: currentColor; }
#saved-btn b { font-weight: 600; margin-left: 4px; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .grp-row { grid-template-columns: 40px 1fr auto; } .grp-row .row-actions { grid-column: 2 / -1; } }

/* home: closing call to action */
.end-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 72px 0 24px; }
.end-cta .subhead { max-width: 46ch; }
.end-cta .btn { margin-top: 12px; }

/* account status in the nav */
.mod-tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; color: #9cc4ff; background: rgba(47,107,255,.12); border: 1px solid rgba(47,107,255,.3); white-space: nowrap; }

/* orders */
.order-row { grid-template-columns: 1fr 160px 160px; }
.ostat { justify-self: start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.ostat.delivered { color: #9cc4ff; background: rgba(47,107,255,.12); border-color: rgba(47,107,255,.3); }
.ostat.completed { color: #86efac; background: rgba(34,211,122,.1); border-color: rgba(34,211,122,.25); }
.order-row .btn { justify-self: end; white-space: nowrap; }
@media (max-width: 620px) { .order-row { grid-template-columns: 1fr auto; } .order-row .btn { grid-column: 1 / -1; justify-self: start; } }

/* listing ID */
.lid { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--muted); margin-right: 8px; }

/* ---- panels ---- */
.notice { padding: 16px 20px; margin-bottom: 16px; border-color: rgba(47,107,255,.35); background: rgba(47,107,255,.08); font-size: 15px; }
.kv-list { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 0 0 16px; font-size: 15px; }
.kv-list dt { color: var(--muted); }
.kv-list dd { margin: 0; color: var(--text); }
.ok.bad { color: #fca5a5; }
.forgot { justify-self: end; margin-top: -6px; }
.order-item { border-top: 1px solid var(--border); }
.order-item:first-child { border-top: 0; }
.order-item .xrow { border-top: 0; }
.order-row { grid-template-columns: 1fr 150px auto; }
.order-extra { padding: 0 24px 20px; }
.inline-form { display: grid; gap: 12px; }
.inline-form textarea { height: 110px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); font-family: var(--mono); font-size: 13px; }
.delivery { white-space: pre-wrap; word-break: break-all; font-family: var(--mono); font-size: 13px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border); margin: 0 0 8px; }
.ostat.disputed { color: #fca5a5; background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }
.ostat.refunded, .ostat.closed { color: var(--text-2); }
.seller-head, .seller-item { grid-template-columns: 1fr 110px 110px 70px auto; }
.seller-head { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 14px; padding-bottom: 6px; }
.seller-item input { height: 36px; padding: 0 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); width: 100%; }
.seller-item.paused { opacity: .55; }
.admin-user, .admin-order { grid-template-columns: 1fr 120px auto; }
.audit-row { grid-template-columns: 170px 140px 170px 1fr 120px; font-size: 13px; }
[data-tab] b { margin-left: 6px; color: var(--text-2); font-weight: 600; }
@media (max-width: 760px) {
  .seller-head { display: none; }
  .seller-item, .admin-user, .admin-order, .audit-row, .order-row { grid-template-columns: 1fr; }
  .kv-list { grid-template-columns: 1fr; }
}

/* discounts */
.grp-price b.sale { color: #fca5a5; }
.grp-price .was { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.grp-price .was i { font-style: normal; font-weight: 600; color: #fff; background: rgba(239,68,68,.75); padding: 0 5px; border-radius: 5px; }
