/* SimBear frontend, 2026-11 rebuild. One stylesheet for the whole site: public
   pages, the customer panel and admin. No framework. Works without JavaScript;
   html.js (set by an inline script in <head>) only switches on motion and the
   few controls that need scripts. */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ----------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-1: #0c0e11;
  --bg-2: #111418;
  --bg-3: #171b20;
  --bg-4: #1e2329;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .22);
  --fg: #ededef;
  --fg-2: #a3a7af;
  --fg-3: #6b707a;
  --fg-4: #4a4f57;
  --red: #ef4452;
  --red-hi: #ff6b77;
  --red-lo: #b8212f;
  --red-ink: #ff8a93;
  --red-glow: rgba(239, 68, 82, .38);
  --red-wash: rgba(239, 68, 82, .1);
  --green: #3fd08f;
  --green-wash: rgba(63, 208, 143, .1);
  --amber: #f3b24a;
  --amber-wash: rgba(243, 178, 74, .1);
  --blue: #63a8ff;
  --blue-wash: rgba(99, 168, 255, .1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r1: 6px; --r2: 9px; --r3: 13px; --r4: 18px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 28px);
  --head-h: 58px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .7);
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font: 400 15px/1.55 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red-ink); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--fg); }
p a:not(.btn), .prose a:not(.btn), .note a, .lead a { text-decoration: underline; text-decoration-color: rgba(255, 138, 147, .35); }
p a:not(.btn):hover, .prose a:not(.btn):hover, .note a:hover { text-decoration-color: currentColor; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
code, kbd, samp, pre { font-family: var(--mono); font-size: .92em; }
b, strong { font-weight: 600; color: var(--fg); }
small { font-size: .85em; }
table { border-collapse: collapse; }
* { scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; }
[hidden] { display: none !important; }

/* No-JS switches: .js-only shows only with scripts, .nojs-only only without. */
html:not(.js) .js-only { display: none !important; }
html.js .nojs-only { display: none !important; }

/* ------------------------------------------------------------- typography */
h1, h2, h3, h4, h5 { margin: 0 0 var(--s3); color: var(--fg); font-weight: 600; line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.038em; font-weight: 640; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); letter-spacing: -.03em; }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }
h5 { font-size: .9rem; }
p { margin: 0 0 var(--s4); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--fg-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }
.mono { font-family: var(--mono); font-feature-settings: "zero"; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s3);
  font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--red-wash), 0 0 12px var(--red-glow); }
.kicker.plain::before { display: none; }
.label { font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.balance { text-wrap: balance; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ----------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(780px + var(--gutter) * 2); }
.wrap.slim { max-width: calc(460px + var(--gutter) * 2); }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section.tight { padding: clamp(24px, 4vw, 40px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.section-head p { margin: var(--s2) 0 0; color: var(--fg-2); max-width: 60ch; }
.stack > * + * { margin-top: var(--s4); }
.stack-sm > * + * { margin-top: var(--s2); }
.stack-lg > * + * { margin-top: var(--s6); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.top { align-items: flex-start; }
.row.tight { gap: var(--s2); }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--s4); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.grid.g2 { --cols: 2; } .grid.g3 { --cols: 3; } .grid.g4 { --cols: 4; }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(var(--min, 220px), 1fr)); }
.grid.gap-sm { gap: var(--s2); }
@media (max-width: 900px) { .grid.g3, .grid.g4 { --cols: 2; } }
@media (max-width: 600px) { .grid.g2, .grid.g3, .grid.g4 { --cols: 1; } }
.split { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.side { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 960px) { .split, .split.even, .split.side { grid-template-columns: minmax(0, 1fr); } }
.sticky { position: sticky; top: calc(var(--head-h) + 16px); }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: var(--s2) !important; } .mt-2 { margin-top: var(--s4) !important; } .mt-3 { margin-top: var(--s5) !important; } .mt-4 { margin-top: var(--s6) !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: var(--s2) !important; } .mb-2 { margin-bottom: var(--s4) !important; } .mb-3 { margin-bottom: var(--s5) !important; }
.center { text-align: center; }
.right { text-align: right; }
.w-100 { width: 100%; }

/* ----------------------------------------------------------------- header */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--red); color: #fff; border-radius: var(--r1); }
.skip:focus { left: 8px; }
.head {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  background: rgba(7, 8, 10, .74); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); view-transition-name: site-head;
}
.head .wrap { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); flex: none; }
.brand img { height: 26px; width: auto; }
.brand:hover { color: var(--fg); }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav a, .nav summary {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: var(--r2);
  color: var(--fg-2); font-size: 14px; font-weight: 450; cursor: pointer; list-style: none; white-space: nowrap;
}
.nav a:hover, .nav summary:hover { color: var(--fg); background: rgba(255, 255, 255, .045); }
.nav a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, .06); }
.head-actions { display: flex; align-items: center; gap: var(--s2); }
.burger { display: none; }
@media (max-width: 860px) {
  .head .nav, .head .head-actions .hide-sm { display: none; }
  .burger { display: block; margin-left: auto; }
  .head .head-actions { margin-left: 0; }
}
.burger > summary {
  list-style: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r2);
  border: 1px solid var(--line-2); cursor: pointer; color: var(--fg);
}
.burger > summary::-webkit-details-marker { display: none; }
.burger[open] > summary { background: var(--bg-3); }
/* absolute, not fixed: the header's backdrop-filter makes it the containing block */
.burger .sheet {
  position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--head-h)); height: calc(100dvh - var(--head-h)); overflow: auto;
  background: var(--bg);
  padding: var(--s4) var(--gutter) var(--s7); border-top: 1px solid var(--line);
}
.sheet a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; color: var(--fg); font-size: 17px; border-bottom: 1px solid var(--line); }
.sheet a .i { color: var(--fg-3); }
.sheet .label { display: block; margin: var(--s5) 0 var(--s1); }
.sheet .btn { margin-top: var(--s5); }

/* account / notification menus (details-based dropdowns) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r3);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  animation: pop .16s var(--ease);
}
.menu-pop.wide { width: min(380px, calc(100vw - 32px)); }
.menu-pop a, .menu-pop button.item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none;
  border-radius: var(--r2); color: var(--fg-2); font-size: 14px; text-align: left; cursor: pointer;
}
.menu-pop a:hover, .menu-pop button.item:hover { background: var(--bg-3); color: var(--fg); }
.menu-pop hr { margin: 6px 4px; }
.menu-pop .menu-head { padding: 8px 10px 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.dot-count {
  display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px;
  background: var(--red); color: #fff; font: 600 10.5px/1 var(--mono);
}
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r2);
  color: var(--fg-2); border: 1px solid transparent; background: none; cursor: pointer;
}
.icon-btn:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.icon-btn .dot-count { position: absolute; top: 2px; right: 0; }

/* panel sub-navigation */
.subnav { border-bottom: 1px solid var(--line); background: var(--bg-1); }
.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 12px 11px; color: var(--fg-2); font-size: 14px; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.subnav a:hover { color: var(--fg); }
.subnav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--red); }

/* ----------------------------------------------------------------- footer */
.foot { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg-1); font-size: 14px; }
.foot-top { display: grid; gap: var(--s6); grid-template-columns: 1.4fr repeat(3, 1fr); padding: var(--s7) 0 var(--s6); }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot h4 { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: var(--s4); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 8px; }
.foot a { color: var(--fg-2); }
.foot a:hover { color: var(--fg); }
.foot-brand p { color: var(--fg-2); max-width: 36ch; margin: var(--s4) 0; }
.foot-social { display: flex; gap: 8px; }
.foot-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r2); border: 1px solid var(--line-2); }
.foot-social a:hover { border-color: var(--line-3); background: var(--bg-3); }
.foot-mirrors { display: grid; gap: 6px; margin-top: var(--s4); }
.foot-mirrors a { display: flex; gap: 8px; align-items: center; font: 12px/1.3 var(--mono); color: var(--fg-3); word-break: break-all; }
.foot-mirrors a:hover { color: var(--fg-2); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; padding: var(--s4) 0 var(--s5); border-top: 1px solid var(--line); color: var(--fg-3); font-size: 13px; }
.foot-bottom a { color: var(--fg-3); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 38px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: var(--r2); border: 1px solid var(--line-2);
  background: var(--bg-3); color: var(--fg); font: 500 14px/1 var(--sans); letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap; text-decoration: none !important; user-select: none;
  transition: background .18s, border-color .18s, color .18s, box-shadow .25s, transform .12s;
}
.btn:hover { background: var(--bg-4); border-color: var(--line-3); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn .i { width: 16px; height: 16px; }
.btn-primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(180deg, #f2525f, #d92d3c);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 0 0 1px rgba(150, 10, 25, .6), 0 8px 22px -10px var(--red-glow);
}
.btn-primary:hover { background: linear-gradient(180deg, #ff6370, #e23544); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 0 0 1px rgba(150, 10, 25, .6), 0 10px 30px -8px var(--red-glow); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); }
.btn-quiet { background: none; border-color: transparent; color: var(--fg-2); padding: 0 10px; }
.btn-quiet:hover { background: rgba(255, 255, 255, .05); border-color: transparent; }
.btn-danger { background: transparent; border-color: rgba(239, 68, 82, .45); color: var(--red-ink); }
.btn-danger:hover { background: var(--red-wash); border-color: var(--red); color: #fff; }
.btn-ok { background: var(--green-wash); border-color: rgba(63, 208, 143, .4); color: var(--green); }
.btn-sm { --h: 31px; padding: 0 11px; font-size: 13px; border-radius: var(--r1); }
.btn-lg { --h: 46px; padding: 0 22px; font-size: 15px; border-radius: var(--r3); }
.btn-block { display: flex; width: 100%; }
.btn .spin { display: none; }
.btn.is-busy { pointer-events: none; color: transparent; }
.btn.is-busy::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { background: none; border: 0; padding: 0; color: var(--red-ink); cursor: pointer; font: inherit; }
.linkish:hover { color: var(--fg); }

/* ----------------------------------------------------------------- icons */
.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 22px; height: 22px; }
.flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); background: var(--bg-4); }
.flag.lg { width: 30px; height: 21px; border-radius: 3px; }
.flag.globe-ic { display: grid; place-items: center; box-shadow: none; background: none; color: var(--fg-3); }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: var(--s4); }
.field > label, .field > .label-text { font-size: 13px; font-weight: 500; color: var(--fg-2); }
.field .hint { font-size: 12.5px; color: var(--fg-3); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r2);
  background: var(--bg-1); border: 1px solid var(--line-2); color: var(--fg);
  font: 400 14.5px/1.4 var(--sans); transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(135deg, var(--fg-3) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--fg-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-wash); background: var(--bg-2); }
.input.mono { font-family: var(--mono); letter-spacing: .02em; }
.input-sm { height: 32px; font-size: 13px; }
.input-lg { height: 48px; font-size: 16px; padding: 0 16px; border-radius: var(--r3); }
.input-group { display: flex; }
.input-group .input { border-radius: var(--r2) 0 0 var(--r2); }
.input-group .btn { border-radius: 0 var(--r2) var(--r2) 0; margin-left: -1px; height: auto; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--fg-2); }
.check input { appearance: none; flex: none; width: 17px; height: 17px; margin: 2px 0 0; border-radius: 5px; border: 1px solid var(--line-3); background: var(--bg-1); display: grid; place-content: center; cursor: pointer; }
.check input[type="radio"] { border-radius: 50%; }
.check input::after { content: ""; width: 9px; height: 9px; border-radius: 2px; transform: scale(0); transition: transform .12s; background: #fff; }
.check input[type="radio"]::after { border-radius: 50%; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.form-actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s5); }

/* segmented options (radio cards). Works without JS via :checked. */
.choices { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(var(--min, 150px), 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice .box { display: grid; gap: 2px; padding: 11px 12px; border-radius: var(--r2); border: 1px solid var(--line-2); background: var(--bg-1); transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover .box { border-color: var(--line-3); }
.choice input:checked + .box { border-color: var(--red); background: var(--red-wash); box-shadow: 0 0 0 1px var(--red) inset; }
.choice input:focus-visible + .box { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.choice .t { font-weight: 550; }
.choice .s { font-size: 12.5px; color: var(--fg-3); }

/* ------------------------------------------------------------------ cards */
.card {
  position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r3);
  padding: var(--s5); box-shadow: var(--shadow); isolation: isolate;
}
.card.flat { box-shadow: none; }
.card.pad-sm { padding: var(--s4); }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.card-head h3, .card-head h2 { margin: 0; font-size: 1rem; }
.card-body { padding: var(--s5); }
.card-foot { padding: var(--s3) var(--s5); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
a.card { color: inherit; display: block; transition: border-color .2s, transform .2s var(--ease); }
a.card:hover { border-color: var(--line-3); }
/* pointer spotlight (JS sets --mx/--my); harmless without JS */
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(239, 68, 82, .1), transparent 45%);
}
.spot:hover::before { opacity: 1; }
/* console corner brackets */
.frame { position: relative; }
.frame::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(var(--red), var(--red)) top left / 14px 1px no-repeat, linear-gradient(var(--red), var(--red)) top left / 1px 14px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom right / 14px 1px no-repeat, linear-gradient(var(--red), var(--red)) bottom right / 1px 14px no-repeat;
  opacity: .8;
}

/* key/value readouts */
.readout { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r3); background: var(--bg-1); overflow: hidden; }
.readout > div { padding: 14px 16px; border-right: 1px solid var(--line); }
.readout > div:last-child { border-right: 0; }
.readout .v { font: 550 1.35rem/1.15 var(--mono); letter-spacing: -.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.readout .k { font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-top: 6px; }
@media (max-width: 700px) { .readout { --cols: 2 !important; } .readout > div:nth-child(2n) { border-right: 0; } .readout > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; margin: 0; font-size: 14px; }
.kv dt { color: var(--fg-3); }
.kv dd { margin: 0; color: var(--fg); min-width: 0; overflow-wrap: anywhere; }

/* ----------------------------------------------------------- chips, badges */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); font-size: 13.5px; white-space: nowrap;
  transition: border-color .15s, background .15s, transform .15s var(--ease);
}
.chip:hover { border-color: var(--line-3); background: var(--bg-3); color: var(--fg); }
.chip .p { font: 12px/1 var(--mono); color: var(--fg-3); }
.chip.on { border-color: var(--red); background: var(--red-wash); }
.dest-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.dest {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border-radius: var(--r2);
  border: 1px solid var(--line); background: var(--bg-1); color: var(--fg); isolation: isolate; overflow: hidden;
  transition: border-color .15s, background .15s;
}
.dest:hover { border-color: var(--line-3); background: var(--bg-2); color: var(--fg); }
.dest .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.dest .p { font: 12.5px/1 var(--mono); color: var(--fg-3); white-space: nowrap; }
.dest:hover .p { color: var(--red-ink); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 99px;
  font: 500 11.5px/1 var(--sans); white-space: nowrap; border: 1px solid var(--line-2); color: var(--fg-2); background: rgba(255, 255, 255, .03);
}
.badge.red { color: var(--red-ink); border-color: rgba(239, 68, 82, .35); background: var(--red-wash); }
.badge.green { color: var(--green); border-color: rgba(63, 208, 143, .3); background: var(--green-wash); }
.badge.amber { color: var(--amber); border-color: rgba(243, 178, 74, .3); background: var(--amber-wash); }
.badge.blue { color: var(--blue); border-color: rgba(99, 168, 255, .3); background: var(--blue-wash); }
.badge .pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
.tag { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: var(--bg-4); color: var(--fg-2); }
kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--bg-3); font-size: 12px; }
.code, pre { display: block; padding: 12px 14px; border-radius: var(--r2); background: var(--bg-1); border: 1px solid var(--line); color: var(--fg); font: 13px/1.6 var(--mono); overflow-x: auto; white-space: pre; }
:not(pre) > code { padding: 1px 5px; border-radius: 5px; background: var(--bg-3); border: 1px solid var(--line); color: var(--fg); font-size: .86em; }
.copyable { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r2); background: var(--bg-1); border: 1px dashed var(--line-3); font: 14px/1.4 var(--mono); word-break: break-all; }
.copyable .v { flex: 1; min-width: 0; }

/* ----------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r3); background: var(--bg-1); }
.table { width: 100%; font-size: 14px; }
.table th { position: sticky; top: 0; text-align: left; padding: 10px 14px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table .r { text-align: right; }
.table .sub { display: block; font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }
.table.dense td { padding: 8px 12px; }
@media (max-width: 700px) {
  .table.stackable thead { display: none; }
  .table.stackable tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table.stackable td { padding: 0; border: 0; }
  .table.stackable td[data-l]::before { content: attr(data-l) " "; color: var(--fg-3); font-size: 12px; }
}

/* ------------------------------------------------------------------ notes */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r2); border: 1px solid var(--line-2); background: var(--bg-2); font-size: 14px; color: var(--fg-2); }
.note > .i { margin-top: 2px; color: var(--fg-3); }
.note b { color: var(--fg); }
.note .grow > :last-child { margin-bottom: 0; }
.note.ok { border-color: rgba(63, 208, 143, .3); background: var(--green-wash); } .note.ok > .i { color: var(--green); }
.note.warn { border-color: rgba(243, 178, 74, .3); background: var(--amber-wash); } .note.warn > .i { color: var(--amber); }
.note.err { border-color: rgba(239, 68, 82, .35); background: var(--red-wash); } .note.err > .i { color: var(--red-ink); }
.note.info { border-color: rgba(99, 168, 255, .28); background: var(--blue-wash); } .note.info > .i { color: var(--blue); }
.note .x { margin-left: auto; color: var(--fg-3); }
.flash { margin-bottom: var(--s4); }

/* -------------------------------------------------------- details / FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 16px 2px; cursor: pointer; list-style: none; font-weight: 500; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--fg-3); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--red); }
.faq details > div, .faq details > p { padding: 0 2px 18px; color: var(--fg-2); max-width: 72ch; margin: 0; }
.disclosure { border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg-1); }
.disclosure > summary { padding: 10px 14px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 14px; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .i { transition: transform .2s; }
.disclosure[open] > summary .i.chev { transform: rotate(90deg); }
.disclosure > .body { padding: 0 14px 14px; }

/* ---------------------------------------------------------- tabs / segments */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r2); background: var(--bg-1); border: 1px solid var(--line); }
.seg a, .seg button, .seg label { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 7px; border: 0; background: none; color: var(--fg-2); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.seg a:hover, .seg button:hover, .seg label:hover { color: var(--fg); }
.seg .on, .seg [aria-selected="true"], .seg [aria-current="page"], .seg input:checked + label { background: var(--bg-4); color: var(--fg); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 1px 2px rgba(0, 0, 0, .5); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }

/* -------------------------------------------------------------- meters */
.meter { height: 6px; border-radius: 99px; background: var(--bg-4); overflow: hidden; }
.meter > span { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--red-lo), var(--red)); transition: width .8s var(--ease); }
.meter.ok > span { background: linear-gradient(90deg, #1f9e68, var(--green)); }
.meter.warn > span { background: linear-gradient(90deg, #c4861c, var(--amber)); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 3px; border-radius: 1px; background: var(--fg-4); }
.bars i:nth-child(1) { height: 30%; } .bars i:nth-child(2) { height: 55%; } .bars i:nth-child(3) { height: 80%; } .bars i:nth-child(4) { height: 100%; }
.bars.l1 i:nth-child(-n+1), .bars.l2 i:nth-child(-n+2), .bars.l3 i:nth-child(-n+3), .bars.l4 i { background: var(--green); }

/* --------------------------------------------------------------- steps */
.steps { counter-reset: step; display: grid; gap: var(--s3); }
.steps > li { list-style: none; counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.steps > li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); font: 500 11.5px/1 var(--mono); color: var(--fg-2); background: var(--bg-1); }
.steps > li > div > :last-child { margin-bottom: 0; }
.steps { padding: 0; margin: 0; }

/* -------------------------------------------------------------- empty */
.empty { display: grid; justify-items: center; gap: var(--s3); padding: var(--s7) var(--s5); text-align: center; color: var(--fg-2); border: 1px dashed var(--line-2); border-radius: var(--r3); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, .012) 10px 20px); }
.empty .i { width: 28px; height: 28px; color: var(--fg-3); }
.empty h3 { margin: 0; }
.empty p { margin: 0; max-width: 46ch; }

/* -------------------------------------------------------------- prose */
.prose { font-size: 16px; line-height: 1.72; color: #d6d8dc; max-width: 70ch; }
.prose > * + * { margin-top: 1.05em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { font-size: 1.45rem; margin-top: 2.1em; margin-bottom: .2em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.7em; margin-bottom: .1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--fg-3); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 14px 18px; border-left: 2px solid var(--red); background: var(--bg-2); border-radius: 0 var(--r2) var(--r2) 0; color: var(--fg-2); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose table { width: 100%; font-size: 14.5px; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); font-weight: 600; color: var(--fg); }
.prose img { border-radius: var(--r2); }
.prose hr { margin: 2em 0; }
.prose strong { color: var(--fg); }

/* ------------------------------------------------------------- page head */
.page-head { padding: clamp(20px, 4vw, 40px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head h1 { margin-bottom: var(--s3); }
.page-head .lead { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: var(--s4); font: 12px/1 var(--mono); color: var(--fg-3); }
.crumbs a { color: var(--fg-3); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { opacity: .5; }

/* dotted-grid backdrop */
.dots-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 0%, transparent 75%);
}
.glow-bg { position: absolute; z-index: -1; pointer-events: none; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 82, .16), transparent 62%); filter: blur(10px); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vw, 84px) 0 clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.25rem); line-height: 1.02; margin-bottom: var(--s4); }
.hero h1 .accent { color: transparent; background: linear-gradient(100deg, #fff 0%, #ffb3b9 45%, var(--red) 100%); -webkit-background-clip: text; background-clip: text; }
.hero .lead { margin-bottom: var(--s5); }
.search { position: relative; max-width: 560px; }
.search .input { height: 52px; padding-left: 46px; padding-right: 110px; border-radius: 14px; font-size: 16px; background: rgba(12, 14, 17, .85); border-color: var(--line-3); }
.search > .i { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; color: var(--fg-3); pointer-events: none; }
.search .btn { position: absolute; right: 6px; top: 6px; --h: 40px; }
.search-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: 360px; overflow: auto; padding: 6px; border-radius: var(--r3); background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px #000; }
.search-pop a, .search-pop .opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r2); color: var(--fg); cursor: pointer; }
.search-pop a:hover, .search-pop a.active, .search-pop .opt:hover, .search-pop .opt.active { background: var(--bg-4); }
.search-pop .sub { font-size: 12px; color: var(--fg-3); }
.search-pop .p { margin-left: auto; font: 12.5px/1 var(--mono); color: var(--fg-2); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: var(--s4); font: 12px/1.4 var(--mono); color: var(--fg-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .i { color: var(--green); width: 14px; height: 14px; }

/* globe (canvas over an SVG fallback) */
.globe { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin: 0 auto; touch-action: pan-y; }
.globe > img, .globe > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe > canvas { opacity: 0; transition: opacity .9s var(--ease); cursor: grab; }
.globe > canvas:active { cursor: grabbing; }
.globe.live > canvas { opacity: 1; }
.globe.live > img { opacity: 0; transition: opacity .9s var(--ease); }
.globe::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(239, 68, 82, .13), transparent 66%); filter: blur(20px); z-index: -1; }
.globe-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font: 12px/1.4 var(--mono); color: var(--fg-3); margin-top: var(--s3); }
.globe-legend span { display: inline-flex; align-items: center; gap: 7px; }
.globe-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red-glow); }
.globe-legend i.exit { background: var(--blue); box-shadow: 0 0 10px rgba(99, 168, 255, .5); }
.globe-legend i.local { background: var(--green); box-shadow: 0 0 10px rgba(63, 208, 143, .5); }

/* price ticker: pure CSS, pauses on hover, off for reduced motion */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-1); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; color: var(--fg-2); font-size: 13.5px; border-right: 1px solid var(--line); white-space: nowrap; }
.ticker a:hover { color: var(--fg); background: var(--bg-2); }
.ticker .p { font: 12.5px/1 var(--mono); color: var(--green); }
@keyframes tick { to { transform: translateX(-50%); } }

/* 3D eSIM card (CSS only; JS adds pointer tilt) */
.esim3d { perspective: 1100px; display: grid; place-items: center; padding: var(--s5) 0; }
.esim3d .card3d {
  --rx: 14deg; --ry: -22deg;
  position: relative; width: min(340px, 82vw); aspect-ratio: 1.586; border-radius: 18px; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease);
  background: linear-gradient(135deg, #1b1f26 0%, #0f1115 60%, #191216 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09) inset, 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px var(--red-glow);
  animation: float 7s ease-in-out infinite;
}
html.js .esim3d .card3d { animation: none; }
.card3d::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .07) 38%, rgba(255, 120, 130, .09) 45%, transparent 60%); background-size: 220% 100%; background-position: var(--sheen, 60%) 0; }
.card3d .chip { position: absolute; left: 9%; top: 32%; width: 17%; aspect-ratio: 1.25; border-radius: 6px; transform: translateZ(18px);
  background: linear-gradient(135deg, #e8c78a, #a87b3c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3) inset; }
.card3d .chip::before { content: ""; position: absolute; inset: 18% 12%; border-radius: 3px; background:
  linear-gradient(90deg, transparent 31%, rgba(0, 0, 0, .35) 31% 35%, transparent 35% 65%, rgba(0, 0, 0, .35) 65% 69%, transparent 69%),
  linear-gradient(0deg, transparent 46%, rgba(0, 0, 0, .35) 46% 54%, transparent 54%); }
.card3d .logo { position: absolute; left: 9%; top: 11%; height: 12%; transform: translateZ(24px); }
.card3d .qr { position: absolute; right: 8%; bottom: 12%; width: 30%; aspect-ratio: 1; border-radius: 8px; transform: translateZ(30px); background: #f5f5f5; padding: 6%; overflow: hidden; }
.card3d .qr svg { width: 100%; height: 100%; }
.card3d .qr::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; top: 0; background: var(--red); box-shadow: 0 0 12px 2px var(--red-glow); animation: scan 2.6s ease-in-out infinite; }
.card3d .meta { position: absolute; left: 9%; bottom: 12%; transform: translateZ(20px); font: 500 11px/1.5 var(--mono); color: var(--fg-2); letter-spacing: .06em; }
.card3d .meta b { display: block; font-size: 15px; color: var(--fg); letter-spacing: -.01em; }
@keyframes float { 0%, 100% { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(0); } 50% { transform: rotateX(calc(var(--rx) - 4deg)) rotateY(calc(var(--ry) + 8deg)) translateY(-8px); } }
@keyframes scan { 0%, 100% { top: 6%; } 50% { top: 92%; } }

/* feature tiles */
.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.tiles > * { background: var(--bg-1); padding: var(--s5); position: relative; isolation: isolate; }
.tiles h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 6px; }
.tiles h3 .i { color: var(--red); width: 18px; height: 18px; }
.tiles p { margin: 0; color: var(--fg-2); font-size: 14px; }
.tiles .proof { margin-top: 10px; font: 12px/1.4 var(--mono); color: var(--fg-3); }
@media (max-width: 900px) { .tiles { --cols: 2 !important; } }
@media (max-width: 600px) { .tiles { --cols: 1 !important; } }

/* CTA band */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 6vw, 64px); border-radius: var(--r4); border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 100% 0%, rgba(239, 68, 82, .18), transparent 55%), var(--bg-1); }
.cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); max-width: 22ch; }
.cta p { color: var(--fg-2); max-width: 56ch; }

/* auth / narrow card pages */
.auth { display: grid; place-items: center; padding: clamp(28px, 7vw, 80px) 0; }
.auth .card { width: 100%; max-width: 440px; }
.auth h1 { font-size: 1.6rem; }

/* dialog (JS); without JS the same content lives on its own page */
dialog.sheet-dialog { width: min(560px, calc(100vw - 24px)); padding: 0; border-radius: var(--r4); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); box-shadow: 0 40px 100px -30px #000; }
dialog.sheet-dialog::backdrop { background: rgba(3, 4, 6, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.sheet-dialog[open] { animation: pop .2s var(--ease); }

/* toasts (JS) */
.toasts { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r3); background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000; font-size: 14px; animation: toastIn .3s var(--ease); }
.toast.ok .i { color: var(--green); } .toast.err .i { color: var(--red-ink); }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* QR block */
.qr-box { display: grid; place-items: center; padding: 16px; border-radius: var(--r3); background: #fff; width: min(240px, 100%); aspect-ratio: 1; }
.qr-box img, .qr-box svg { width: 100%; height: 100%; image-rendering: pixelated; }

/* pagination */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: var(--s5); }
.pager a, .pager span { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--r2); border: 1px solid var(--line-2); color: var(--fg-2); font: 13px/1 var(--mono); }
.pager .on { background: var(--bg-4); color: var(--fg); }

/* panel (customer + admin) density */
.panel-main { padding-top: var(--s5); padding-bottom: var(--s7); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin: var(--s3) 0 var(--s5); }
.panel-title h1 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 0; letter-spacing: -.03em; }
.stat { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r3); background: var(--bg-1); }
.stat .k { font: 500 10.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.stat .v { margin-top: 8px; font: 550 1.6rem/1 var(--mono); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat .d { margin-top: 6px; font-size: 12.5px; color: var(--fg-3); }
.list { border: 1px solid var(--line); border-radius: var(--r3); background: var(--bg-1); overflow: hidden; }
.list > * { display: flex; align-items: center; gap: var(--s3); padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--fg); }
.list > *:last-child { border-bottom: 0; }
.list > a:hover { background: var(--bg-2); color: var(--fg); }
.list .t { font-weight: 500; }
.list .s { font-size: 12.5px; color: var(--fg-3); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--fg-4); }
.status-dot.ok { background: var(--green); box-shadow: 0 0 8px rgba(63, 208, 143, .6); }
.status-dot.warn { background: var(--amber); }
.status-dot.err { background: var(--red); }
.status-dot.live { animation: pulse 2s infinite; color: var(--green); }

/* -------------------------------------------------------------- motion */
html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js .split-words .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); animation: wordIn .8s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 80ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; overflow-x: auto; }
  @view-transition { navigation: none; }
}

/* ---------------------------------------------------------------- print */
@media print {
  .head, .foot, .subnav, .btn, .burger { display: none !important; }
  body { background: #fff; color: #000; }
}

/* destination page: plan filter (radio + :has, no JS) */
#plans:has(#pf-fixed:checked) tr[data-type="day"], #plans:has(#pf-day:checked) tr[data-type="fixed"] { display: none; }
.plans-table { scrollbar-gutter: stable; }

/* ------------------------------------------------------------ payments */
.coins { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.coin { position: relative; }
.coin input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.coin .box { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: var(--r2); border: 1px solid var(--line-2); background: var(--bg-1); font-size: 13.5px; font-weight: 500; transition: border-color .15s, background .15s; }
.coin .box img { width: 20px; height: 20px; border-radius: 50%; }
.coin .net { margin-left: auto; font: 500 10px/1 var(--mono); letter-spacing: .04em; color: var(--fg-3); padding: 3px 4px; border-radius: 4px; background: var(--bg-3); }
.coin:hover .box { border-color: var(--line-3); }
.coin input:checked + .box { border-color: var(--red); background: var(--red-wash); box-shadow: 0 0 0 1px var(--red) inset; }
.coin input:focus-visible + .box { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.paybox { border: 1px solid var(--line-2); border-radius: var(--r3); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); padding: var(--s5); }
.paybox-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.paybox-amt { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; flex-wrap: wrap; }
.paybox-amt .num { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; word-break: break-all; }
.paybox-amt .cur { font: 500 13px/1 var(--mono); color: var(--fg-2); }
.paybox-body { display: flex; gap: var(--s5); align-items: flex-start; margin-top: var(--s4); flex-wrap: wrap; }
.paybox-status { display: flex; align-items: flex-start; gap: 10px; margin-top: var(--s4); padding: 10px 12px; border-radius: var(--r2); background: var(--bg-3); color: var(--fg-2); font-size: 13.5px; }
.paybox-status .bars { margin-top: 2px; }
.paybox-status.ok { color: var(--green); background: var(--green-wash); }
.paybox-status.warn { color: var(--amber); background: var(--amber-wash); }
.paybox-status.err { color: var(--red-ink); background: var(--red-wash); }
.paybox-foot { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 13.5px; }
.paybox-foot a { display: inline-flex; gap: 6px; align-items: center; color: var(--fg-2); }
.cardbox { border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--bg-1); }
.cardbox-gate { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--fg); text-align: left; cursor: pointer; border-radius: inherit; }
.cardbox-gate:hover { background: var(--bg-2); }
.cardbox-gate .s { display: block; font-size: 12.5px; color: var(--fg-3); font-weight: 400; }
.cardbox-gate.is-busy { opacity: .6; pointer-events: none; }
.cardbox-field { padding: 13px 14px; }
.cardbox-err { margin: 0; padding: 0 14px 12px; color: var(--red-ink); font-size: 13px; }

/* ---------------------------------------------------------------- shop */
.shop { scroll-margin-top: calc(var(--head-h) + 8px); }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s5); align-items: start; }
@media (max-width: 960px) { .shop-grid { grid-template-columns: minmax(0, 1fr); } }
.shop-main { min-width: 0; }
.shop-summary { position: sticky; top: calc(var(--head-h) + 16px); }
@media (max-width: 960px) { .shop-summary { position: static; } }
.shop-dest { padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.shop-step-h { display: flex; align-items: center; gap: 10px; margin: var(--s5) 0 var(--s3); font-weight: 600; font-size: 15px; }
.tiers { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.tier { display: grid; gap: 4px; padding: 12px; text-align: left; border-radius: var(--r2); border: 1px solid var(--line-2); background: var(--bg-1); color: var(--fg); cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.tier:hover { border-color: var(--line-3); transform: translateY(-1px); }
.tier .v { font: 600 1.05rem/1.1 var(--mono); letter-spacing: -.02em; }
.tier .v small { font-size: .72em; color: var(--fg-3); font-weight: 500; }
.tier .s { font-size: 12px; color: var(--fg-3); }
.tier.on { border-color: var(--red); background: var(--red-wash); box-shadow: 0 0 0 1px var(--red) inset; }
.opts { display: grid; gap: 6px; }
.opt { display: flex; align-items: center; gap: var(--s4); width: 100%; padding: 11px 14px; text-align: left; border-radius: var(--r2); border: 1px solid var(--line); background: var(--bg-1); color: var(--fg); cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--line-3); background: var(--bg-2); }
.opt.on { border-color: var(--red); background: var(--red-wash); box-shadow: 0 0 0 1px var(--red) inset; }
.opt .t { display: block; font-weight: 550; font-size: 14.5px; }
.opt .s { display: block; font-size: 12.5px; color: var(--fg-3); margin-top: 1px; }
.opt .b { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.opt .b:empty { display: none; }
.opt .pr { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.opt .pr b { font-size: 1.05rem; }
.daysel { display: grid; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg-1); }
.daysel input[type="range"] { width: 100%; accent-color: var(--red); }
.plan-rows { display: grid; gap: 6px; }
.plan-row { position: relative; display: block; }
.plan-row input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.plan-row .box { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 11px 14px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--bg-1); }
.plan-row .t { font-weight: 550; }
.plan-row .s { grid-column: 1; font-size: 12.5px; color: var(--fg-3); }
.plan-row .pr { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 600; }
.plan-row:hover .box { border-color: var(--line-3); }
.plan-row input:checked + .box { border-color: var(--red); background: var(--red-wash); box-shadow: 0 0 0 1px var(--red) inset; }
.plan-row input:focus-visible + .box { outline: 2px solid var(--red-hi); outline-offset: 2px; }
