:root {
  --indigo: #3a26d6;
  --indigo-2: #2a1aa8;
  --indigo-deep: #1b1170;
  --violet: #7b5cff;
  --cyan: #38e2ee;
  --cyan-ink: #0b5560;
  --ink: #15131f;
  --text: #2c2a38;
  --muted: #77748a;
  --line: #e7e5f1;
  --page: #f4f3fa;
  --surface: #ffffff;
  --ok: #18a46a;
  --ok-soft: #e1f6ec;
  --bad: #e0443a;
  --bad-soft: #fde8e6;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--page); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ── Nav ─────────────────────────────────────────────── */
.nav { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; padding: 0 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.mark { width: 34px; height: 34px; border-radius: 50%; background: var(--indigo); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 9px; }
.mark i { border-radius: 2px; background: #fff; }
.mark i:first-child { background: var(--cyan); }
.mark i:last-child { opacity: .55; }
.links { display: flex; gap: 30px; }
.links a { font-size: 14.5px; color: var(--muted); font-weight: 500; }
.links a.on { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--cyan); color: var(--cyan-ink); font-size: 11.5px; font-weight: 700; text-decoration: none; }
.count:empty { display: none; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--indigo); font-weight: 500; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 226, 238, .25); }
.live.off { color: var(--muted); }
.live.off i { background: var(--muted); box-shadow: none; }
.account { height: 40px; line-height: 40px; padding: 0 18px; border-radius: 99px; background: var(--cyan); color: var(--cyan-ink); font-weight: 700; font-size: 14px; display: inline-block; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.api-link { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.api-link:hover { text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────── */
.hero { max-width: 1320px; margin: 0 auto; padding: 24px 32px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.hero h1 u { text-decoration-thickness: 5px; text-underline-offset: 10px; text-decoration-color: var(--ink); }
.hero p { margin: 20px 0 0; max-width: 460px; color: var(--muted); font-size: 16px; }
.hero-cta { display: flex; gap: 14px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.btn { height: 48px; padding: 0 24px; border-radius: 99px; border: 0; background: var(--cyan); color: var(--cyan-ink); font-weight: 700; display: inline-flex; align-items: center; }
.btn.ghost { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; padding: 0 6px; }

/* Permissions, drawn as glass bank cards floating over an indigo glow */
.cards { position: relative; min-height: 340px; display: grid; place-items: center; }
.cards::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(123, 92, 255, .35), transparent 70%); filter: blur(10px); }
.stack { position: relative; width: min(420px, 100%); height: 300px; }
.pcard { position: absolute; left: 0; right: 0; height: 196px; padding: 20px 22px; border-radius: 22px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #7b5cff, #3a26d6 55%, #2bb7d6);
  box-shadow: 0 30px 50px -24px rgba(27, 17, 112, .7), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .5s var(--spring); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .28), transparent 40%); pointer-events: none; }
.pcard:nth-child(1) { top: 0; transform: rotate(-4deg) translateX(-18px); z-index: 1; }
.pcard:nth-child(2) { top: 52px; transform: rotate(2deg) translateX(14px); z-index: 2; }
.pcard:nth-child(3) { top: 104px; transform: rotate(-1deg); z-index: 3; }
.stack:hover .pcard:nth-child(1) { transform: rotate(-7deg) translate(-34px, -10px); }
.stack:hover .pcard:nth-child(2) { transform: rotate(4deg) translate(26px, -4px); }
.pcard.st-revoked, .pcard.st-expired { background: linear-gradient(135deg, #9b98ae, #66637c); }
.pc-top { display: flex; justify-content: space-between; font-size: 12px; opacity: .85; }
.pc-amt { margin-top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.pc-amt small { font-size: 14px; font-weight: 500; opacity: .8; }
.pc-bar { height: 6px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.pc-bar i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.pc-foot { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; justify-content: space-between; font-size: 12px; }
.pc-foot b { display: block; font-size: 14px; }
.stamp { position: absolute; right: 20px; top: 54px; padding: 4px 12px; border: 2px solid #fff; border-radius: 8px; font-weight: 800; letter-spacing: .12em; transform: rotate(-8deg); font-size: 13px; }
.cards-empty { position: relative; width: min(420px, 100%); height: 196px; border-radius: 22px; border: 2px dashed rgba(58, 38, 214, .3); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }

/* ── Band: stat petals + spending ─────────────────────── */
.band { margin-top: 48px; background: var(--indigo); color: #fff; }
.band-in { max-width: 1320px; margin: 0 auto; padding: 56px 32px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.petals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 420px; }
.petal { aspect-ratio: 1 / .82; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.petal:nth-child(1) { border-radius: 90px 90px 10px 90px; }
.petal:nth-child(2) { border-radius: 90px 90px 90px 10px; }
.petal:nth-child(3) { border-radius: 90px 10px 90px 90px; }
.petal:nth-child(4) { border-radius: 10px 90px 90px 90px; }
.petal b { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.petal span { font-size: 13px; opacity: .8; }
.band h2 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.band h2 u { text-decoration-thickness: 4px; text-underline-offset: 8px; }
.chart { padding: 22px; border-radius: 4px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; }
.chart-head b { font-size: 26px; font-weight: 800; color: var(--indigo); }
.chart-head span { font-size: 13px; color: var(--muted); }
.chart svg { width: 100%; height: 170px; margin-top: 10px; }
.chart .ln { fill: none; stroke: var(--indigo); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .ar { fill: url(#cg); }
.chart .tagbox { fill: var(--cyan); }
.chart .tagtext { fill: var(--cyan-ink); font: 700 12px var(--sans); }
.chart .empty-line { stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 8; }

/* ── Payments ─────────────────────────────────────────── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 48px 32px 64px; }
.wrap-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.wrap-head h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.wrap-head p { margin: 10px 0 0; color: var(--muted); max-width: 520px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.list { background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: 0 1px 2px rgba(21, 19, 31, .04), 0 20px 40px -30px rgba(27, 17, 112, .3); }
.pay { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) minmax(0, 1fr) 120px 140px; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.pay:last-child { border-bottom: 0; }
.pay:hover { background: #faf9ff; }
.pay.fresh { animation: flash 1.6s var(--ease); }
@keyframes flash { from { background: rgba(56, 226, 238, .2); } }
.p-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--indigo); }
.p-ic.bad { background: var(--bad); }
.p-t b { display: block; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-t span { font-size: 13px; color: var(--muted); }
.p-who { font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-amt { text-align: right; font-weight: 800; color: var(--ink); }
.p-amt.bad { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(224, 68, 58, .6); }
.chip { justify-self: end; display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ── Panel ───────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(27, 17, 112, .25); backdrop-filter: blur(3px); }
.panel { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 21; width: min(560px, calc(100vw - 24px)); display: flex; flex-direction: column; background: var(--surface); border-radius: 26px; box-shadow: 0 40px 80px -20px rgba(27, 17, 112, .45); transform: translateX(110%); transition: transform .45s var(--ease); }
.panel.open { transform: none; }
.panel-head { display: flex; justify-content: space-between; gap: 16px; padding: 24px 24px 8px; }
.panel-head h3 { margin: 2px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.panel-k { font-size: 12.5px; color: var(--muted); }
.icon { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--page); }
.panel-body { flex: 1; overflow-y: auto; padding: 8px 24px 28px; }
.sec { margin-top: 22px; }
.sec-k { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.verdict { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; }
.verdict.ok { background: var(--ok-soft); }
.verdict.bad { background: var(--bad-soft); }
.verdict .vi { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; }
.verdict.ok .vi { background: var(--ok); }
.verdict.bad .vi { background: var(--bad); }
.verdict b { display: block; font-size: 17px; color: var(--ink); }
.verdict span { font-size: 13.5px; color: var(--text); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.checks i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; flex: none; }
.checks .pass i { background: var(--ok-soft); color: var(--ok); }
.checks .fail { color: var(--bad); }
.checks .fail i { background: var(--bad); color: #fff; }
.checks em { margin-left: auto; font: 11.5px var(--mono); color: var(--muted); font-style: normal; }
.code { margin: 0; padding: 16px; border-radius: 16px; background: var(--indigo-deep); color: #e4e1ff; font: 12px/1.6 var(--mono); overflow: auto; max-height: 360px; white-space: pre; }
.jk { color: var(--cyan); } .js { color: #ffd88a; } .jn { color: #ffaf9a; }
.copy { height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; }
.kv { display: grid; grid-template-columns: 120px 1fr; border-radius: 16px; overflow: hidden; background: var(--page); }
.kv dt, .kv dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); word-break: break-all; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }

@media (max-width: 1100px) {
  .hero, .band-in { grid-template-columns: 1fr; }
  .cards { min-height: 320px; }
  .petals { max-width: none; }
  .pay { grid-template-columns: 44px minmax(0, 1fr) 110px 130px; }
  .p-who { display: none; }
}
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; grid-template-areas: "brand right" "links links"; height: auto; padding: 14px 16px 6px; row-gap: 10px; }
  .brand { grid-area: brand; }
  .nav-right { grid-area: right; }
  .links { grid-area: links; }
  .live { display: none; }
  .account { height: 36px; line-height: 36px; padding: 0 14px; font-size: 13px; max-width: 150px; }
  .hero, .band-in, .wrap { padding-left: 16px; padding-right: 16px; }
  .band-in { padding-top: 36px; padding-bottom: 36px; gap: 28px; }
  .petals { gap: 10px; }
  .pay { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ic t amt" "ic t chip"; row-gap: 4px; padding: 14px 14px; }
  .p-ic { grid-area: ic; width: 40px; height: 40px; }
  .p-t { grid-area: t; }
  .p-amt { grid-area: amt; }
  .pay .chip { grid-area: chip; }
  .panel { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The product name beside the logo, and the account menu's trigger */
.brand-product { font-size: 14px; font-weight: 500; color: var(--muted, #77748a); padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(0, 0, 0, .1); line-height: 20px; white-space: nowrap; }
@media (max-width: 760px) { .brand-product { display: none; } }
