/* ==========================================================================
   Ultra Pay — design system
   A Millennial Ultra Solutions product. Built on the MUS brand tokens:
   Ink and Paper, one violet, the violet→cyan gradient as a highlight only,
   Inter for everything, system mono for // labels.
   Three surfaces:  .site (Ink)  ·  .checkout (Paper, the product's accent)  ·  .console (Ink)
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --violet-deep: #5b3df5;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --cyan-soft: #8fe9fb;
  --ink: #06080f;
  --night: #0a0d18;
  --panel: #0e1220;
  --panel-2: #131829;
  --mist: #e7eaf4;
  --slate: #98a2bd;
  --paper: #f7f7fb;
  --rule: #dfe2ea;
  --graphite: #1a1d26;
  --body: #4a5163;
  --muted: #7a8194;
  --live: #34d399;
  --live-ink: #0f9d58;
  --dev: #fbbf24;
  --alert: #fb7185;
  --alert-ink: #b3261e;
  --gradient: linear-gradient(120deg, #5b3df5, #7c5cff 45%, #22d3ee);
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  --radius-lg: 20px;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glow: 0 24px 90px -34px rgba(124, 92, 255, 0.55);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; font-weight: 620; }
p { margin: 0; }
code, pre, .mono { font-family: var(--mono); }
[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 { position: absolute; left: 1rem; top: -3rem; background: var(--violet-deep); color: #fff; padding: .6rem 1rem; border-radius: 10px; z-index: 50; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- shared atoms ---------- */
.wrap { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.eyebrow::before { content: "// "; color: var(--violet); }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: 0 1.25rem; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: .98rem; letter-spacing: -.01em; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
/* Solid Violet Deep fill (white text 6.1:1) inside a gradient edge: the gradient stays a highlight. */
.btn-grad { background: linear-gradient(var(--violet-deep), var(--violet-deep)) padding-box, var(--gradient) border-box; border: 1.5px solid transparent; color: #fff; box-shadow: var(--glow); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 26px 70px -26px rgba(124, 92, 255, .75); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .02); color: var(--mist); }
.btn-ghost:hover { border-color: var(--violet); background: rgba(124, 92, 255, .1); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 .85rem; font-size: .88rem; border-radius: 10px; }
.tag { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--slate); }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; display: inline-block; }
.tag svg { width: 12px; height: 12px; }

/* ======================================================================
   SITE — the public face at pay.millennialultra.com (Ink)
   ====================================================================== */
.site { background: var(--ink); color: var(--mist); }
.site ::selection { background: rgba(124, 92, 255, .4); }
.site-nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(140%) blur(14px); background: rgba(6, 8, 15, .72); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { width: 40px; height: auto; }
.brand-name { font-weight: 640; font-size: 1.02rem; letter-spacing: -.02em; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-top: .15rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: .93rem; color: var(--slate); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--mist); }
@media (max-width: 900px) { .nav-links .hide-sm { display: none; } }

.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 30%, transparent 75%); opacity: .55; pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; background: radial-gradient(closest-side, rgba(124, 92, 255, .22), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); margin-top: 1.1rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--slate); max-width: 54ch; margin-top: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.note { font-family: var(--mono); font-size: .76rem; color: rgba(152, 162, 189, .72); margin-top: 1.6rem; display: flex; align-items: center; gap: .5rem; }
.note .dot { color: var(--dev); }

/* the live-looking checkout in the hero */
.mock { position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), var(--glow); padding: 1.35rem; }
.mock::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--slate); }
.mock-amount { font-size: 2.2rem; font-weight: 650; letter-spacing: -.03em; margin: .9rem 0 .2rem; color: #fff; }
.mock-amount small { font-size: .95rem; color: var(--slate); font-weight: 500; margin-right: .35rem; }
.mock-row { display: flex; align-items: center; gap: .8rem; padding: .85rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); margin-top: .6rem; font-size: .92rem; }
.mock-row.on { border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .1); }
.mock-row .meth { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .78rem; color: #fff; }
.mock-steps { margin-top: 1rem; display: grid; gap: .45rem; font-family: var(--mono); font-size: .76rem; color: var(--slate); }
.mock-steps .ok { color: var(--live); }
.mock-steps .run { color: var(--cyan-soft); }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); margin-top: .8rem; }
.section-head p { color: var(--slate); margin-top: 1rem; font-size: 1.05rem; }
.grid { display: grid; gap: 1rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, var(--panel), rgba(14, 18, 32, .6)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; transition: border-color .25s, transform .25s var(--ease); }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; margin: .7rem 0 .45rem; }
.card p { color: var(--slate); font-size: .95rem; }
.num { font-family: var(--mono); font-size: .78rem; color: var(--violet); letter-spacing: .1em; }
.methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
@media (max-width: 760px) { .methods { grid-template-columns: repeat(2, 1fr); } }
.method { display: flex; align-items: center; gap: .8rem; padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.method strong { display: block; font-size: .98rem; }
.method span { display: block; font-size: .8rem; color: var(--slate); }
.method .glyph { display: grid; place-items: center; color: #fff; font-size: .74rem; font-weight: 750; }
.glyph { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 750; font-size: .8rem; letter-spacing: -.02em; color: #fff; }
.g-ecocash { background: #1f6fd1; } .g-onemoney { background: #f28c28; } .g-innbucks { background: #c8102e; } .g-omari { background: #2bb673; }
.g-card { background: linear-gradient(135deg, #1a1d26, #3b3f4d); } .g-smile { background: #7c5cff; } .g-ewallet { background: #0e7490; } .g-zwg { background: #8a6d1f; }
.product-card { display: flex; flex-direction: column; gap: .9rem; }
.product-card .pc-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.swatch { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.status-live { color: var(--live); border-color: rgba(52, 211, 153, .4); }
.status-next { color: var(--dev); border-color: rgba(251, 191, 36, .35); }
.honest { border: 1px dashed rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .05); border-radius: var(--radius); padding: 1.4rem; }
.honest li { color: var(--slate); margin: .45rem 0; }
.honest strong { color: var(--mist); }
.code { background: var(--night); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; overflow-x: auto; font-size: .82rem; line-height: 1.7; color: var(--mist); }
.code .k { color: var(--violet); } .code .s { color: var(--cyan-soft); } .code .c { color: rgba(152, 162, 189, .7); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--slate); font-size: .88rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.site-foot img { width: 220px; }
.foot-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.foot-links a:hover { color: var(--mist); }
.doc h2 { font-size: 1.55rem; margin: 2.6rem 0 .9rem; scroll-margin-top: 90px; }
.doc h3 { font-size: 1.1rem; margin: 1.8rem 0 .6rem; }
.doc p, .doc li { color: var(--slate); }
.doc p + p { margin-top: .8rem; }
.doc code { color: var(--cyan-soft); font-size: .88em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.doc th, .doc td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--mist); font-weight: 600; }
.doc td { color: var(--slate); }
.toc { position: sticky; top: 90px; display: grid; gap: .4rem; font-size: .9rem; color: var(--slate); }
.toc a:hover { color: var(--mist); }
.doc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; }
@media (max-width: 860px) { .doc-grid { grid-template-columns: 1fr; } .toc { position: static; } }

/* ======================================================================
   CHECKOUT — where customers pay (Paper; the product's accent leads)
   ====================================================================== */
.checkout { --accent: var(--violet-deep); --accent-ink: #fff; --accent-text: var(--violet-deep); --muted: #5f6678; background: var(--paper); color: var(--graphite); min-height: 100vh; display: flex; flex-direction: column; }
.checkout :focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; box-shadow: 0 0 0 5px #fff; }
.co-bar { background: var(--ink); color: var(--mist); }
.co-bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 58px; width: min(560px, 100% - 2rem); }
.co-product { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.co-badge { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 750; font-size: .95rem; }
.co-name { font-weight: 640; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-tagline { display: block; font-size: .74rem; color: var(--slate); font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.co-secure { display: flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); white-space: nowrap; flex: none; }
@media (max-width: 420px) { .co-bar .co-secure .txt { display: none; } }
.co-secure svg { width: 14px; height: 14px; }
.co-test { background: #fff7e0; color: #7a5600; border-bottom: 1px solid #f1d58a; text-align: center; font-size: .82rem; padding: .45rem 1rem; }
.co-main { flex: 1; width: min(560px, 100% - 2rem); margin: 1.6rem auto 2rem; }
.co-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 80px -50px rgba(26, 29, 38, .45); overflow: hidden; }
.co-summary { padding: 1.4rem 1.5rem 1.2rem; border-bottom: 1px solid var(--rule); position: relative; }
.co-summary::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); opacity: .9; }
.co-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.co-amount { font-size: clamp(2.1rem, 8vw, 2.6rem); font-weight: 680; letter-spacing: -.035em; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.co-amount small { font-size: 1rem; color: var(--body); font-weight: 560; margin-right: .4rem; letter-spacing: 0; }
.co-desc { color: var(--body); margin-top: .3rem; }
.co-ref { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-top: .55rem; }
.co-body { padding: 1.4rem 1.5rem 1.6rem; }
.co-body h1 { font-size: 1.25rem; letter-spacing: -.02em; }
.co-body .sub { color: var(--body); margin-top: .35rem; font-size: .95rem; }
.co-methods { display: grid; gap: .6rem; margin-top: 1.1rem; border: 0; padding: 0; }
.co-method { position: relative; display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1.5px solid var(--rule); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.co-method:hover { border-color: #c5c9d6; }
.co-method input { position: absolute; opacity: 0; pointer-events: none; }
.co-method:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); background: color-mix(in srgb, var(--accent) 4%, #fff); }
.co-method:has(input:focus-visible) { outline: 2px solid var(--graphite); outline-offset: 2px; }
.co-method strong { display: block; font-size: 1rem; font-weight: 620; }
.co-method span.hint { display: block; font-size: .84rem; color: var(--body); }
.co-method .tick { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c5c9d6; flex: none; display: grid; place-items: center; }
.co-method:has(input:checked) .tick { border-color: var(--accent); background: var(--accent); }
.co-method:has(input:checked) .tick::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
.co-field { margin-top: 1rem; }
.co-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.co-field input { width: 100%; min-height: 50px; border: 1.5px solid var(--rule); border-radius: 12px; padding: 0 .95rem; font-size: 1.08rem; letter-spacing: .02em; background: #fff; font-variant-numeric: tabular-nums; }
.co-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.co-field .help { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.co-pay { margin-top: 1.2rem; width: 100%; min-height: 54px; border-radius: 14px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .6rem; transition: transform .2s var(--ease), filter .2s, box-shadow .2s; box-shadow: 0 16px 36px -20px color-mix(in srgb, var(--accent) 80%, #000); }
.co-pay:hover { transform: translateY(-1px); filter: brightness(1.05); }
.co-pay:disabled { opacity: .6; cursor: progress; transform: none; }
.co-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent-text); font-weight: 600; font-size: .92rem; margin-top: 1rem; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.countdown .co-link { margin: 0 0 0 .3rem; font-family: var(--sans); font-size: .82rem; }
.co-link:hover { text-decoration: underline; }
.co-alert { border-radius: 12px; padding: .85rem 1rem; font-size: .92rem; margin-top: 1rem; display: flex; gap: .65rem; align-items: flex-start; }
.co-alert svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; }
.co-alert.warn { background: #fff7e6; color: #7a4a00; border: 1px solid #f3d6a1; }
.co-alert.err { background: #fdecec; color: var(--alert-ink); border: 1px solid #f5c2c0; }
.co-alert.info { background: #eef0ff; color: #3a2bb0; border: 1px solid #d6d1ff; }
.co-alert.pin { background: #f3f4f8; color: var(--graphite); border: 1px solid var(--rule); }
.co-state { text-align: center; padding: .4rem 0 .2rem; }
.co-state h1 { font-size: 1.45rem; margin-top: 1rem; }
.co-state .sub { max-width: 40ch; margin-inline: auto; }
.pulse { width: 74px; height: 74px; margin: .4rem auto 0; position: relative; display: grid; place-items: center; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: .5; animation: ring 2s var(--ease) infinite; }
.pulse::after { animation-delay: 1s; }
.pulse .core { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.pulse .core svg { width: 22px; height: 22px; }
@keyframes ring { from { transform: scale(.65); opacity: .7; } to { transform: scale(1.25); opacity: 0; } }
.big-check { width: 76px; height: 76px; margin: .4rem auto 0; border-radius: 50%; background: #e8f8ef; display: grid; place-items: center; }
.big-check svg { width: 38px; height: 38px; stroke: var(--live-ink); }
/* The check is always drawn: a confirmation must never depend on an animation
   running (low-power modes and background tabs freeze them). Only the circle moves. */
.big-check { animation: pop .45s var(--ease); }
@keyframes pop { from { transform: scale(.82); } to { transform: scale(1); } }
.big-wait { width: 76px; height: 76px; margin: .4rem auto 0; border-radius: 50%; background: #fff4e0; display: grid; place-items: center; color: #9a6400; }
.big-wait svg { width: 36px; height: 36px; }
.code-box { margin: 1.2rem auto 0; max-width: 320px; border: 1.5px dashed var(--accent); border-radius: 16px; padding: 1rem; text-align: center; }
.code-box .code-digits { font-family: var(--mono); font-size: clamp(1.5rem, 8vw, 2.2rem); letter-spacing: .12em; font-weight: 700; color: var(--graphite); overflow-wrap: anywhere; }
.co-steps { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .55rem; text-align: left; font-size: .92rem; color: var(--body); }
.co-steps li { display: flex; gap: .65rem; align-items: flex-start; }
.co-steps .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent-text); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.countdown { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-top: .9rem; }
.co-foot { width: min(560px, 100% - 2rem); margin: 0 auto 2rem; display: flex; flex-direction: column; align-items: center; gap: .7rem; color: var(--muted); font-size: .8rem; text-align: center; }
.co-foot img { width: 230px; opacity: .9; }
.co-foot a { text-decoration: underline; text-underline-offset: 2px; }
.co-help { color: var(--body); font-size: .86rem; margin-top: 1.2rem; text-align: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ======================================================================
   CONSOLE — the operators' view (Ink)
   ====================================================================== */
.console { background: var(--ink); color: var(--mist); min-height: 100vh; }
.cx { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .cx { grid-template-columns: 1fr; } .cx-side { position: static !important; height: auto !important; } }
.cx-side { position: sticky; top: 0; height: 100vh; background: var(--night); border-right: 1px solid var(--line); padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 1.4rem; }
.cx-side nav { display: grid; gap: .2rem; }
.cx-side nav a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .75rem; border-radius: 10px; color: var(--slate); font-size: .93rem; }
.cx-side nav a:hover { background: rgba(255, 255, 255, .04); color: var(--mist); }
.cx-side nav a[aria-current="page"] { background: rgba(124, 92, 255, .14); color: #fff; }
.cx-count { font-family: var(--mono); font-size: .72rem; background: var(--alert); color: var(--ink); border-radius: 999px; padding: .05rem .45rem; font-weight: 700; }
.cx-side .foot { margin-top: auto; display: grid; gap: .6rem; }
.cx-main { padding: 1.6rem clamp(1rem, 3vw, 2.4rem) 3rem; min-width: 0; }
.cx-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.cx-top h1 { font-size: 1.6rem; }
.mode { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; padding: .3rem .65rem; border-radius: 999px; font-weight: 700; }
.mode-test { background: rgba(251, 191, 36, .14); color: var(--dev); border: 1px solid rgba(251, 191, 36, .35); }
.mode-live { background: rgba(52, 211, 153, .14); color: var(--live); border: 1px solid rgba(52, 211, 153, .35); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.kpi .k-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.kpi .k-value { font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; margin-top: .35rem; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: .8rem; color: var(--slate); margin-top: .1rem; }
.kpi.attn { border-color: rgba(251, 113, 133, .45); }
.kpi.attn .k-value { color: var(--alert); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 1.2rem; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 1.02rem; letter-spacing: -.01em; }
.panel-body { padding: 1.1rem; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 500; padding: .65rem 1.1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .025); }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl a.row-link { color: var(--mist); font-weight: 560; }
.tbl a.row-link:hover { color: var(--cyan-soft); }
.muted { color: var(--slate); }
.small { font-size: .82rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-succeeded { background: rgba(52, 211, 153, .13); color: var(--live); }
.p-pending { background: rgba(34, 211, 238, .12); color: var(--cyan-soft); }
.p-failed { background: rgba(251, 113, 133, .12); color: var(--alert); }
.p-requires_review { background: rgba(251, 191, 36, .14); color: var(--dev); }
.p-cancelled, .p-expired { background: rgba(152, 162, 189, .12); color: var(--slate); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cx-input, .cx-select, .cx-textarea { background: var(--night); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--mist); min-height: 40px; padding: 0 .8rem; font-size: .9rem; }
.cx-textarea { padding: .6rem .8rem; min-height: 90px; width: 100%; resize: vertical; }
.cx-input:focus, .cx-select:focus, .cx-textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid label { display: grid; gap: .35rem; font-size: .85rem; color: var(--slate); }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid .cx-input { width: 100%; }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: .55rem 1rem; font-size: .9rem; }
.dl dt { color: var(--slate); }
.dl dd { margin: 0; word-break: break-word; }
@media (max-width: 600px) { .dl { grid-template-columns: 1fr; } }
.callout { border-radius: 12px; padding: 1rem 1.1rem; border: 1px solid; font-size: .9rem; margin-top: 1rem; }
.callout.secret { border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .07); }
.callout.secret code { display: block; margin-top: .35rem; padding: .55rem .7rem; background: var(--night); border-radius: 8px; color: var(--cyan-soft); word-break: break-all; user-select: all; }
.callout.ok { border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .07); }
.callout.bad { border-color: rgba(251, 113, 133, .45); background: rgba(251, 113, 133, .07); }
pre.json { background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; font-size: .76rem; overflow-x: auto; color: var(--slate); max-height: 360px; }
details > summary { cursor: pointer; color: var(--slate); font-size: .86rem; }
.timeline { display: grid; gap: .7rem; }
.tl-item { border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; background: rgba(255, 255, 255, .015); }
.tl-head { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: center; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--glow); }
.login-card h1 { font-size: 1.4rem; margin-top: 1.2rem; }
.login-card p { color: var(--slate); margin-top: .5rem; font-size: .93rem; }
.empty { padding: 2.2rem 1rem; text-align: center; color: var(--slate); font-size: .92rem; }
.swatch-sm { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; margin-right: .4rem; }
