:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-elevated: #eef2f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-strong: #eef3f8;
  --glass: rgba(255, 255, 255, .84);
  --border: #dfe5ed;
  --border-strong: #cbd4e0;
  --text: #132033;
  --text-soft: #35445a;
  --muted: #6d7b8f;
  --faint: #9ba7b7;
  --brand: #5367e9;
  --brand-strong: #4154d8;
  --brand-soft: #eef0ff;
  --teal: #0ca5a5;
  --teal-soft: #e7f8f6;
  --success: #07835a;
  --success-soft: #e8f7f1;
  --warning: #a26300;
  --warning-soft: #fff5df;
  --danger: #c03648;
  --danger-soft: #fff0f2;
  --shadow-sm: 0 1px 2px rgba(24, 39, 61, .04), 0 4px 14px rgba(24, 39, 61, .05);
  --shadow-md: 0 2px 3px rgba(24, 39, 61, .05), 0 14px 36px rgba(24, 39, 61, .08);
  --shadow-lg: 0 24px 64px rgba(24, 39, 61, .13);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08111f;
  --bg-elevated: #0b1627;
  --surface: #101c2e;
  --surface-soft: #0d192a;
  --surface-strong: #15243a;
  --glass: rgba(8, 17, 31, .82);
  --border: #22324a;
  --border-strong: #30425d;
  --text: #eef4fc;
  --text-soft: #c4d0de;
  --muted: #8f9db1;
  --faint: #65748a;
  --brand: #8191ff;
  --brand-strong: #93a1ff;
  --brand-soft: rgba(112, 128, 255, .12);
  --teal: #47d6ca;
  --teal-soft: rgba(52, 211, 194, .1);
  --success: #5ed5a7;
  --success-soft: rgba(48, 190, 135, .1);
  --warning: #f0bd63;
  --warning-soft: rgba(223, 160, 49, .11);
  --danger: #ff8e9d;
  --danger-soft: rgba(235, 79, 104, .11);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .18), 0 5px 16px rgba(0, 0, 0, .14);
  --shadow-md: 0 2px 3px rgba(0, 0, 0, .2), 0 16px 42px rgba(0, 0, 0, .2);
  --shadow-lg: 0 28px 74px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -5%, rgba(83, 103, 233, .1), transparent 32rem),
    radial-gradient(circle at 92% 10%, rgba(12, 165, 165, .08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

::selection {
  background: var(--brand);
  color: #fff;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); }
h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 5.8vw, 74px);
  font-weight: 720;
  line-height: .99;
  letter-spacing: -.062em;
}
h2 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.034em;
}
h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.3;
}
p {
  margin-bottom: 16px;
  color: var(--muted);
}

button, input, select { font: inherit; }
button, .link {
  min-height: 44px;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  font-weight: 670;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
button:hover, .link:hover {
  border-color: var(--brand);
  background: var(--surface-strong);
  transform: translateY(-1px);
}
button:active, .link:active { transform: translateY(0); }
button:disabled {
  opacity: .56;
  cursor: wait;
  transform: none;
}
button:focus-visible, .link:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
  outline-offset: 2px;
}
.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 24%, transparent);
}
.primary:hover {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 11px 28px color-mix(in srgb, var(--brand) 32%, transparent);
}
.quiet { background: transparent; box-shadow: none; }
.alt {
  margin-top: 9px;
  background: var(--surface-soft);
  box-shadow: none;
}
.wide { width: 100%; }
.compact {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
}
.icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
}
input, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  outline: none;
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, .02);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
input::placeholder { color: var(--faint); }
input:hover, select:hover { border-color: color-mix(in srgb, var(--brand) 48%, var(--border)); }
input:focus, select:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}
select { cursor: pointer; }
select[size] {
  min-height: 278px;
  padding: 6px;
  font-size: 14px;
}
select[size] option {
  padding: 9px 10px;
  border-radius: 7px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-140%);
  transition: transform 150ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
}
.header-inner {
  width: min(1240px, 100%);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: auto;
  padding: 0 28px;
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), var(--teal));
  color: #fff;
  box-shadow: 0 8px 18px rgba(58, 81, 204, .2);
  font-size: 15px;
  font-weight: 820;
  letter-spacing: -.04em;
}
.brand-mark.small {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  font-size: 11px;
}
.brand > span:last-child { min-width: 0; display: grid; }
.brand strong { font-size: 16px; line-height: 1.15; letter-spacing: -.025em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 540; letter-spacing: .035em; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 570;
}
.trust i, .verified i, .eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

main {
  width: min(1240px, 100%);
  min-height: calc(100vh - 150px);
  margin: auto;
  padding: 62px 28px 92px;
}

footer {
  width: min(1184px, calc(100% - 56px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
footer > div { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-weight: 700; }
footer p { margin: 0; font-size: inherit; }
footer a { color: var(--muted); }

.eyebrow, .card-kicker, .field-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .105em;
  line-height: 1.3;
  text-transform: uppercase;
}
.card-kicker {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}
.field-kicker { color: var(--muted); font-size: 10px; }

/* Entry screen */
.gate {
  min-height: calc(100vh - 225px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .72fr);
  align-items: center;
  gap: clamp(52px, 8vw, 110px);
}
.hero { min-width: 0; max-width: 720px; }
.hero h1 { max-width: 700px; margin: 20px 0 23px; }
.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--brand) 4%, var(--teal) 94%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-copy {
  max-width: 640px;
  margin-bottom: 29px;
  color: var(--text-soft);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.62;
}
.product-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.product-strip article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: var(--shadow-sm);
}
.product-strip article > div { min-width: 0; }
.product-strip strong, .product-strip small { display: block; }
.product-strip strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-strip small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.product-icon, .stat-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 820;
}
.product-icon.plus { background: var(--teal-soft); color: var(--teal); font-size: 18px; }
.product-icon.number { background: var(--warning-soft); color: var(--warning); font-size: 15px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}
.hero-trust span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--success);
  font-weight: 800;
}
.models {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.models summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 2px;
  list-style: none;
  cursor: pointer;
}
.models summary::-webkit-details-marker { display: none; }
.models summary > span:first-child { display: grid; gap: 1px; }
.models summary strong { font-size: 12px; }
.models summary small { color: var(--muted); font-size: 10px; }
.verified {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 10px;
  font-weight: 760;
}
.verified i { width: 6px; height: 6px; }
.models summary::after {
  content: "+";
  order: 3;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.models[open] summary::after { content: "−"; }
.model-list { padding: 0 2px 10px; }
.model-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}
.model-list article > div { min-width: 0; }
.model-list strong, .model-list small { display: block; }
.model-list strong { font-size: 12px; }
.model-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.model-list code { flex: 0 0 auto; color: var(--muted); font-size: 10px; }

.auth-wrap { position: relative; }
.auth-card, .card, .save-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.auth-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.auth-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--brand), var(--teal));
}
.auth-intro h2 { margin: 8px 0 7px; font-size: 27px; }
.auth-intro p { margin-bottom: 23px; font-size: 13px; }
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}
.tab {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 12px;
}
.tab:hover {
  border: 0;
  background: var(--surface-strong);
  transform: none;
}
.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.auth-panel { padding-top: 25px; }
.auth-panel h3 { font-size: 17px; }
.auth-panel p { margin-bottom: 21px; font-size: 13px; }
.auth-panel .primary { margin-top: 2px; }
.security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.security-note > span:first-child { color: var(--success); font-weight: 800; }
.security-note a { color: inherit; white-space: nowrap; }

.error {
  min-height: 18px;
  margin-top: 9px;
  color: var(--danger);
  font-size: 12px;
}
.success { color: var(--success); font-weight: 670; }

/* Save secret */
.save-screen {
  min-height: calc(100vh - 240px);
  display: grid;
  place-items: center;
}
.save-card {
  width: min(640px, 100%);
  padding: clamp(27px, 5vw, 43px);
}
.save-card h1 {
  margin-bottom: 15px;
  font-size: clamp(36px, 6vw, 50px);
}
.save-card > p { max-width: 540px; }
.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.step span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--danger-soft);
}
.secret-box, .payment, .reveal {
  margin: 23px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.secret-box code, .payment code, .reveal code {
  display: block;
  margin: 7px 0 16px;
  color: var(--text);
  font: 12px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}
.secret-box > div, .reveal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.suffix-input, .search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding-left: 13px;
  background: var(--surface-soft);
}
.suffix-input:focus-within, .search-input:focus-within {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}
.suffix-input span, .search-input span { color: var(--faint); }
.suffix-input input, .search-input input {
  border: 0;
  border-radius: 0;
  padding-left: 0;
  background: transparent;
  box-shadow: none;
}
.suffix-input input { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.suffix-input input:focus, .search-input input:focus { background: transparent; box-shadow: none; }

/* Store */
.store-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 31px;
}
.store-head h1 {
  margin: 8px 0 6px;
  font-size: clamp(40px, 5vw, 58px);
}
.store-head p { margin: 0; }
.head-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 10px;
}
.capacity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.balance-icon { background: var(--teal-soft); color: var(--teal); }
.capacity > div { min-width: 0; display: grid; }
.capacity small { color: var(--muted); font-size: 9px; font-weight: 730; letter-spacing: .06em; text-transform: uppercase; }
.capacity strong {
  overflow: hidden;
  margin: 1px 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
}
.capacity div > span { color: var(--muted); font-size: 10px; }

.storenav {
  position: sticky;
  top: 84px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 34px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--glass);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px) saturate(140%);
}
.navtab {
  min-height: 40px;
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 12px;
  white-space: nowrap;
}
.navtab > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.navtab:hover {
  border: 0;
  background: var(--surface-strong);
  color: var(--text);
  transform: none;
}
.navtab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.navtab.active > span { background: var(--brand-soft); color: var(--brand); }

.view { animation: view-in 280ms ease both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 17px;
  padding: 0 4px;
}
.section-heading h2 { margin: 5px 0 0; font-size: 27px; }
.section-heading > p { max-width: 475px; margin: 0; font-size: 13px; text-align: right; }
.grid {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(430px, 1.18fr);
  align-items: start;
  gap: 17px;
  margin-bottom: 24px;
}
.card { padding: clamp(22px, 3vw, 29px); }
.collection-card { min-height: 420px; }
.card-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.card-head > div:first-child { min-width: 0; }
.card-head h2 { margin: 0; }
.card-head p { margin: 5px 0 0; font-size: 12px; }
.plan-head { justify-content: space-between; }
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.checkout-note {
  margin: -3px 0 17px;
  color: var(--muted);
  font-size: 11px;
}
.push { margin-left: auto; }
.stack { display: grid; gap: 9px; }
.empty {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 58px 26px 26px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--surface) 60%, transparent));
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.empty::before {
  position: absolute;
  top: 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  content: "◇";
  font-size: 14px;
  font-weight: 800;
}

.key-row, .payment-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 3px;
  border-top: 1px solid var(--border);
}
.key-row:first-child, .payment-row:first-child { border-top: 0; }
.key-row > div, .payment-row > div:first-child { min-width: 0; flex: 1; }
.key-row strong, .key-row small, .payment-row small { display: block; }
.key-row strong { font-size: 13px; }
.key-row small, .payment-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.payment-row .money { flex: 0 0 auto; text-align: right; }

.status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.status.paid { background: var(--success-soft); color: var(--success); }
.status.waiting { background: var(--warning-soft); color: var(--warning); }
.status.failed, .status.action { background: var(--danger-soft); color: var(--danger); }
.status.action { display: flex; margin-bottom: 11px; }

.reveal {
  margin: 0;
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
  background: linear-gradient(145deg, var(--brand-soft), var(--surface));
}
.reveal h3 { margin: 9px 0; }
.reveal-actions {
  justify-content: flex-start;
  margin: 0 0 17px;
}
.reveal-actions button, .reveal-actions .link { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.reveal a { color: var(--brand); }
.reveal .status.waiting, .reveal .status.paid, .reveal .status.failed { margin-bottom: 8px; }
code.big {
  font-size: 23px !important;
  font-weight: 780;
  letter-spacing: .12em;
}
.memo {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 11px;
}
.dm {
  overflow: auto;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-soft);
  font: 11px/1.6 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ChatGPT plan */
.pricebox {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
}
.pricebox strong {
  font-size: 34px;
  font-weight: 740;
  line-height: 1;
  letter-spacing: -.05em;
}
.pricebox span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.benefits {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--text-soft);
}
.benefits li {
  position: relative;
  padding-left: 24px;
}
.benefits li::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  content: "✓";
  font-size: 9px;
  font-weight: 900;
}
.benefits.tight {
  margin: 0 0 22px;
  gap: 9px;
  font-size: 12px;
}
.flow {
  margin-bottom: 22px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}
.flow h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  font-size: 12px;
}
.flow h3 > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
}
.flow ol {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.flow li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.flow li > span {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.flow li > div { display: grid; }
.flow li strong { color: var(--text-soft); font-size: 11px; }
.flow li small { color: var(--muted); font-size: 10px; }

/* Payment */
.payment {
  margin-bottom: 0;
  border-color: color-mix(in srgb, var(--brand) 24%, var(--border));
  container-name: payment;
  container-type: inline-size;
}
.payment h3 { margin: 10px 0; }
.payment .check { width: 100%; }
.crypto-invoice {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin: 14px 0 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.payment-qr {
  width: 100%;
  max-width: 194px;
  aspect-ratio: 1;
  border: 9px solid #fff;
  border-radius: 12px;
  background: #fff;
  color: #111;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
}
.payment-qr svg { width: 100%; height: 100%; display: block; }
.payment-qr.qr-fallback {
  display: grid;
  place-items: center;
  padding: 16px;
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--danger);
  box-shadow: none;
  font-size: 11px;
  text-align: center;
}
.payment-instructions { min-width: 0; }
.invoice-kicker {
  color: var(--muted);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 7px;
}
.amount-row h3 {
  min-width: 0;
  flex: 1;
  margin: 0;
  font-size: clamp(17px, 5.7cqw, 23px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}
.amount-row button { flex: 0 0 auto; min-height: 36px; padding: 7px 10px; font-size: 11px; }
.payment-network { margin: 0 0 8px; color: var(--text-soft); font-size: 12px; }
.qr-note { margin: 0; color: var(--muted); font-size: 10px; }
.payment-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 11px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.payment-field > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.payment-field code { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.payment-field button { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.payment-extra { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); background: var(--warning-soft); }
.payment-extra > span { color: var(--warning); }
.chain-link {
  display: inline-block;
  margin: 4px 0 16px;
  color: var(--text-soft);
  font-size: 11px;
}

@container payment (max-width: 560px) {
  .crypto-invoice {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 17px;
    margin-bottom: 12px;
    padding: 7px 0 16px;
    border: 0;
    background: transparent;
    text-align: center;
  }
  .payment-qr { max-width: 190px; }
  .payment-instructions { width: 100%; }
  .amount-row {
    align-items: center;
    flex-direction: column;
    gap: 9px;
    margin: 7px 0 10px;
  }
  .amount-row h3 {
    width: 100%;
    flex: none;
  }
  .amount-row button {
    width: auto;
    min-width: 132px;
  }
  .qr-note {
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
  }
}

@container payment (max-width: 460px) {
  .payment-field { grid-template-columns: 1fr; }
  .payment-field > span { grid-column: auto; }
  .payment-field button { width: 100%; }
}

/* Verification */
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--warning) 34%, var(--border));
  border-radius: 11px;
  background: var(--warning-soft);
  color: var(--text-soft);
  font-size: 11px;
}
.notice::before { color: var(--warning); content: "!"; font-weight: 900; }
.notice span { flex: 1; }
.quote {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  margin-bottom: 16px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
}
.quote small { display: block; color: var(--muted); font-size: 9px; font-weight: 670; text-transform: uppercase; }
.quote strong { display: block; margin-top: 3px; font-size: 14px; }
.quote-price strong, .quote-bal strong { text-align: right; }
.sms-text {
  margin: 4px 0 11px;
  padding: 11px 12px;
  border-left: 2px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.pulse {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--warning);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.address-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.address-line code { min-width: 0; flex: 1; margin: 0; }
.address-line button { flex: 0 0 auto; min-height: 36px; padding: 7px 10px; font-size: 11px; }

/* Receipts */
.history .card-head { margin-bottom: 12px; }
.receipt { border-top: 1px solid var(--border); }
.receipt:first-child { border-top: 0; }
.receipt summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 3px;
  list-style: none;
  cursor: pointer;
}
.receipt summary::-webkit-details-marker { display: none; }
.receipt summary > div:first-child { min-width: 0; flex: 1; }
.receipt summary strong { font-size: 13px; }
.receipt summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.receipt .money { font-size: 12px; }
.receipt .chevron { color: var(--muted); transition: transform 160ms ease; }
.receipt[open] .chevron { transform: rotate(180deg); }
.receipt-body { padding: 4px 3px 21px; }
.receipt dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px 20px;
  margin: 0 0 18px;
}
.receipt dl div { min-width: 0; }
.receipt dt, .receipt-address > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.receipt dd { margin: 3px 0 0; color: var(--text-soft); font-size: 12px; overflow-wrap: anywhere; }
.receipt dd code { font-size: 11px; }
.receipt-payment {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.payment-qr-small { max-width: 118px; border-width: 6px; border-radius: 8px; }
.receipt-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-soft);
}
.receipt-address > span { grid-column: 1 / -1; }
.receipt-address code { min-width: 0; font-size: 11px; overflow-wrap: anywhere; }
.receipt-address button { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.receipt-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.receipt-actions a { color: var(--text-soft); font-size: 11px; }
.receipt-actions button { min-height: 36px; margin-left: auto; padding: 7px 11px; font-size: 11px; }

/* Feedback */
.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: min(370px, calc(100% - 32px));
  display: grid;
  gap: 9px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  animation: toast-in 220ms ease both;
  pointer-events: auto;
}
.toast::before {
  flex: 0 0 auto;
  color: var(--success);
  content: "✓";
  font-weight: 900;
}
.toast.error::before { color: var(--danger); content: "!"; }
.toast.leaving { animation: toast-out 180ms ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(5px) scale(.98); } }

.theme-ready body,
.theme-ready .site-header,
.theme-ready footer,
.theme-ready .auth-card,
.theme-ready .card,
.theme-ready .save-card,
.theme-ready .secret-box,
.theme-ready .payment,
.theme-ready .reveal,
.theme-ready input,
.theme-ready select,
.theme-ready button,
.theme-ready .link,
.theme-ready .storenav,
.theme-ready .capacity {
  transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

@media (max-width: 980px) {
  .gate {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 12px 0 20px;
  }
  .hero { max-width: 760px; margin: auto; text-align: center; }
  .hero .eyebrow, .hero-trust { justify-content: center; }
  .hero-copy { margin-left: auto; margin-right: auto; }
  .product-strip, .models { text-align: left; }
  .auth-wrap { width: min(540px, 100%); margin: auto; }
  .store-head { align-items: flex-start; flex-direction: column; }
  .head-stats { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 0; }
  .section-heading > p { max-width: 410px; }
}

@media (max-width: 720px) {
  .header-inner { height: 64px; padding: 0 18px; }
  .brand small, .trust { display: none; }
  main { padding: 40px 18px 70px; }
  footer {
    width: calc(100% - 36px);
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 25px;
  }
  .storenav {
    top: 73px;
    overflow-x: auto;
    justify-content: flex-start;
    margin-right: -18px;
    margin-left: -18px;
    padding: 6px 18px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    scrollbar-width: none;
  }
  .storenav::-webkit-scrollbar { display: none; }
  .navtab { flex: 0 0 auto; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .section-heading > p { max-width: none; text-align: left; }
  .plan-head { align-items: flex-start; }
  .receipt summary { align-items: flex-start; flex-wrap: wrap; }
  .receipt summary > div:first-child { flex-basis: calc(100% - 95px); }
  .receipt .money { order: 3; }
  .receipt .status { margin-left: auto; }
}

@media (max-width: 540px) {
  h1 { font-size: 43px; }
  .header-actions { gap: 7px; }
  .header-actions .compact { padding-right: 10px; padding-left: 10px; }
  .product-strip { grid-template-columns: 1fr; }
  .product-strip article { padding: 11px 12px; }
  .product-strip strong { overflow: visible; white-space: normal; }
  .hero-trust { display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
  .model-list article { align-items: flex-start; flex-direction: column; gap: 5px; }
  .auth-card, .card { padding: 20px; border-radius: 18px; }
  .save-card { border-radius: 18px; }
  .head-stats { grid-template-columns: 1fr; }
  .store-head h1 { font-size: 42px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .plan-head { flex-direction: column; }
  .pricebox { justify-items: start; }
  .pricebox strong { font-size: 30px; }
  .quote { grid-template-columns: 1fr 1fr; }
  .quote > div:first-child { grid-column: 1 / -1; }
  .quote-price strong, .quote-bal strong { text-align: left; }
  .key-row, .payment-row { align-items: flex-start; flex-wrap: wrap; }
  .address-line { align-items: stretch; flex-direction: column; }
  .address-line button { width: 100%; }
  .receipt dl { grid-template-columns: 1fr 1fr; }
  .receipt-payment { grid-template-columns: 1fr; justify-items: center; }
  .receipt-address { width: 100%; }
  .receipt-actions { align-items: flex-start; flex-direction: column; }
  .receipt-actions button { margin-left: 0; }
  .crypto-invoice { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .payment-instructions { width: 100%; }
  .amount-row { align-items: stretch; flex-direction: column; }
  .amount-row button { width: 100%; }
  .payment-field { grid-template-columns: 1fr; }
  .payment-field > span { grid-column: auto; }
  .payment-field button { width: 100%; }
  .toast-region { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
