/* OtpOwl — site styles
   Tokens first; change colours/fonts here. */
:root {
  --bg: #F5F3EE;
  --surface: #FFFFFF;
  --surface-alt: #FAF8F4;
  --sand: #EDE8DD;
  --ink: #15171C;
  --ink-2: #3B3F47;
  --muted: #4A4F58;
  --line: #E3DFD6;
  --line-2: #CFC9BC;
  --line-soft: #EFEBE3;
  --accent: #A4500B;
  --accent-hover: #7E3D08;
  --accent-light: #F0B067;
  --ok: #2F6B4F;
  --ok-bg: #F1F8F4;
  --ok-line: #CFE3D7;
  --no: #9A2E1F;
  --dark: #15171C;
  --dark-2: #0D0E11;
  --dark-line: #2A2D34;
  --on-dark: #F5F3EE;
  --on-dark-2: #D9D5CC;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-s: 10px;
  --radius: 12px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --container: 1280px;
  --gutter: 80px;
  --section: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* Horizontal page scroll: clip only main/footer, NOT body — body overflow-x
   non-visible forces overflow-y to auto and breaks position:sticky on .site-header. */
main, .site-footer {
  overflow-x: clip;
  max-width: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); z-index: 100; }
.skip-link:focus { left: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); }

/* Type */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; font-size: clamp(40px, 5vw, 68px); }
.h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(30px, 3.4vw, 48px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.section-head .h2 { max-width: 660px; }
.section-head p { max-width: 480px; font-size: 18px; color: var(--ink-2); }

/* Buttons — soft depth, inset highlight, pressable feel */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-s);
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .15s ease;
}
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: var(--radius); }
.btn-primary {
  background: linear-gradient(180deg, #B85C14 0%, var(--accent) 55%, var(--accent-hover) 100%);
  color: #fff; font-weight: 700;
  border-color: color-mix(in srgb, var(--accent-hover) 75%, #000 25%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 1px 2px rgba(21,23,28,.1),
    0 10px 22px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #C4681C 0%, #94480A 50%, #6A3407 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 2px 4px rgba(21,23,28,.12),
    0 14px 28px -12px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn-primary:active {
  box-shadow: inset 0 2px 4px rgba(21,23,28,.22);
}
.btn.is-loading {
  position: relative;
  pointer-events: none;
  cursor: wait;
  color: transparent !important;
}
.btn.is-loading > * {
  visibility: hidden;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15em;
  height: 1.15em;
  margin: -0.575em 0 0 -0.575em;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: btn-spin .7s linear infinite;
  visibility: visible;
}
html[data-theme="dark"] .btn-dark.is-loading::after {
  border-color: rgba(21,23,28,.25);
  border-top-color: var(--ink);
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
form.is-submitting {
  pointer-events: none;
  user-select: none;
}
.btn-dark {
  background: linear-gradient(180deg, #2A2D34 0%, var(--btn-on-light-bg, var(--ink)) 55%, var(--dark-2) 100%);
  color: var(--btn-on-light-fg, #fff);
  border-color: color-mix(in srgb, var(--ink) 85%, #000 15%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 1px 2px rgba(21,23,28,.12),
    0 8px 18px -12px rgba(21,23,28,.45);
}
.btn-dark:hover {
  background: linear-gradient(180deg, #3B3F47 0%, var(--btn-on-light-bg-hover, #2a2d34) 100%);
  color: var(--btn-on-light-fg, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 2px 4px rgba(21,23,28,.14),
    0 12px 24px -12px rgba(21,23,28,.5);
}
.btn-outline {
  border-color: var(--line-2); color: var(--ink); background: var(--surface);
  box-shadow: 0 1px 2px rgba(21,23,28,.04);
}
.btn-outline:hover {
  border-color: var(--ink); color: var(--ink); background: var(--sand);
  box-shadow: 0 2px 6px rgba(21,23,28,.06);
}
.btn-light {
  background: linear-gradient(180deg, #fff 0%, var(--on-dark) 100%);
  color: var(--ink); font-weight: 700;
  border-color: color-mix(in srgb, var(--on-dark) 70%, #000 8%);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(0,0,0,.35);
}
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-ghost-dark {
  border-color: #3B3F47; color: var(--on-dark);
  background: transparent;
  box-shadow: none;
}
.btn-ghost-dark:hover { border-color: var(--on-dark); color: #fff; background: rgba(255,255,255,.04); }

/* Header — single row like design/html-originals (+ theme toggle) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); overflow: visible; }
.site-header .container { min-height: 112px; height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: visible; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img,
.brand-logo { width: 34px; height: 34px; object-fit: contain; display: block; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
/* S1 owl tile: graphite on light pages, cream on dark ones. */
.brand-logo--dark { display: none !important; }
html[data-theme="dark"] .brand-logo--light { display: none !important; }
html[data-theme="dark"] .brand-logo--dark { display: block !important; }
.main-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; flex: 1 1 auto; justify-content: center; flex-wrap: nowrap; min-width: 0; }
.main-nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"] { font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.header-actions .btn { white-space: nowrap; flex-shrink: 0; }
.header-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
/* Flag-only trigger: the language name lives in the dropdown, so the collapsed
   switcher is a square that matches the theme toggle beside it. */
.lang { min-height: 44px; min-width: 44px; padding: 0; border: 1px solid var(--line-2); background: transparent; border-radius: var(--radius-s); font: inherit; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 0; flex: 0 0 auto; cursor: pointer; white-space: nowrap; }
.signin { color: var(--ink); font-weight: 600; text-decoration: none; padding: 0 10px; white-space: nowrap; flex-shrink: 0; }
.header-session {
  display: inline-flex; align-items: stretch; height: 44px; flex-shrink: 0;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
}
.header-session:hover { border-color: var(--ink); }
.header-session:has([aria-current="page"]) { border-color: var(--accent); background: var(--sand); }
.header-balance {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px 0 16px; border: 0; border-radius: 999px 0 0 999px;
  text-decoration: none; color: var(--ink); white-space: nowrap; background: transparent;
}
.header-balance:hover { background: var(--sand); color: var(--ink); }
.header-balance-value {
  /* Body font, not the display serif: the amount is UI text and must match
     the rest of the header. Tabular figures keep it from shifting as it
     changes; line-height 1 centres it in the 44px pill. */
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  display: inline-block;
}
.account-menu { position: relative; display: flex; flex-shrink: 0; }
.header-account {
  display: inline-flex; align-items: center; gap: 4px; height: 100%;
  padding: 0 10px 0 8px; border: 0; border-left: 1px solid var(--line-2);
  border-radius: 0 999px 999px 0; background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.header-account:hover { background: var(--sand); color: var(--ink); }
.header-account[aria-expanded="true"] { background: var(--sand); }
.header-account svg { flex-shrink: 0; color: var(--muted); }
.header-account:hover svg,
.header-account[aria-expanded="true"] svg { color: var(--ink); }
.header-account-mark {
  width: 28px; height: 28px; border-radius: 50%; background: var(--sand); color: var(--ink);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; line-height: 1;
}
.header-session:has([aria-current="page"]) .header-account-mark { background: var(--surface); }
.account-dropdown { min-width: 220px; }
.account-dropdown form { margin: 0; }
.account-dropdown-email {
  padding: 8px 12px 10px; margin: 0 0 4px; max-width: 280px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.account-dropdown a[aria-current="page"] { font-weight: 700; background: var(--sand); }
.mobile-menu-meta {
  display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: transparent; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.mobile-menu { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero .container { position: relative; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-copy .lead { max-width: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.checks { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding-top: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; }

/* Product card */
.product-card { width: 100%; max-width: 520px; justify-self: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 60px -30px rgba(21, 23, 28, 0.25); }
.pc-top { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.pc-top strong { font-weight: 700; }
.pc-top span { font-size: 13px; color: var(--muted); }
.pc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-field { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pc-field small { font-size: 12px; color: var(--muted); }
.pc-field span { font-size: 15px; font-weight: 600; }
.pc-number { background: var(--bg); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.pc-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.pc-digits { font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: 0.01em; line-height: 1.2; }
.pc-code { border: 1px solid var(--ok-line); background: var(--ok-bg); border-radius: 16px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pc-code small { display: block; font-size: 13px; color: var(--ok); font-weight: 600; }
.pc-code span { font-size: 14px; color: var(--ink-2); }
.pc-code strong { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; }
.pc-note { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.pc-note svg { flex-shrink: 0; margin-top: 2px; }


/* Animated hero: drifting warm gradient + globe (assets/hero.js) */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .7; will-change: transform; animation: drift 22s ease-in-out infinite alternate; }
.aurora .a1 { width: 50vw; height: 50vw; max-width: 740px; max-height: 740px; background: #F6D7AE; left: -10%; top: -32%; }
.aurora .a2 { width: 42vw; height: 42vw; max-width: 620px; max-height: 620px; background: #DCE8DF; right: -8%; top: -20%; animation-duration: 26s; animation-delay: -6s; }
.aurora .a3 { width: 38vw; height: 38vw; max-width: 560px; max-height: 560px; background: #F3E3CF; left: 34%; top: 8%; animation-duration: 30s; animation-delay: -12s; }
.aurora .a4 { width: 28vw; height: 28vw; max-width: 440px; max-height: 440px; background: #EBC9A4; right: 18%; top: 40%; opacity: .45; animation-duration: 34s; animation-delay: -3s; }
.aurora::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(rgba(245,243,238,0), var(--bg)); }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(8%, 6%) scale(1.08); }
  66%  { transform: translate(-6%, 10%) scale(.94); }
  100% { transform: translate(4%, -4%) scale(1.04); }
}
.globe-wrap { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; justify-self: center; overflow: visible; }
#globe { width: 100%; height: 100%; display: block; border-radius: 50%; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 40px -24px rgba(21,23,28,.35); white-space: nowrap; animation: bob 7s ease-in-out infinite; }
.float-card small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.float-card b { font-size: 15px; font-weight: 700; }
.fc-badge { width: 34px; height: 34px; border-radius: var(--radius-s); background: var(--sand); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.fc-badge-flag { padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.fc-badge-flag .lang-flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: none; }
.fc-ok { border-color: var(--ok-line); background: rgba(241,248,244,.92); }
.fc-ok .fc-badge { background: #DDEFE4; color: var(--ok); }
.fc-ok small { color: var(--ok); font-weight: 600; }
.fc-code { font-family: var(--font-display); font-size: 22px !important; font-weight: 600 !important; letter-spacing: .08em; }
.fc-1 { left: -4%; top: 16%; }
.fc-2 { right: -6%; top: 46%; animation-delay: -2.5s; }
.fc-3 { left: 2%; bottom: 8%; animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }


/* Keep float-cards fully inside at tablet/desktop mid widths (QA @1024) */
@media (max-width: 1100px) {
  .globe-wrap { overflow: visible; }
  .fc-1 { left: 0; top: 12%; }
  .fc-2 { right: 0; top: 44%; }
  .fc-3 { left: 0; bottom: 6%; }
  .float-card {
    max-width: 100%;
    white-space: normal;
    box-sizing: border-box;
  }
  .float-card small,
  .float-card b {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .fc-code { letter-spacing: 0.04em; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 36px 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--font-display); font-size: 40px; font-weight: 500; line-height: 1.1; }
.stat-label { font-size: 15px; color: var(--muted); }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 19px; font-weight: 700; line-height: 1.35; }
.card p { font-size: 15px; color: var(--muted); }
.card-dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.card-dark p { color: var(--on-dark-2); }
.card-dark a { color: var(--accent-light); font-weight: 600; }
.card-link { text-decoration: none; color: var(--ink); }
.card-link:hover { color: var(--ink); border-color: var(--line-2); }
.card-title-accent { font-family: var(--font-display); font-size: 22px; color: var(--accent); }

/* Steps */
.step { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.step h3 { font-size: 22px; font-weight: 700; }
.step p { color: var(--muted); }

/* Pricing teaser & table */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; color: var(--ink-2); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 3px; }
.price-table { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table table { width: 100%; border-collapse: collapse; }
.price-table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.price-table td { padding: 20px 28px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.price-table td:first-child { font-weight: 600; }
.price-table .num { text-align: right; font-weight: 700; white-space: nowrap; }
.price-table .stock { color: var(--muted); }
.price-table tfoot td { background: var(--surface-alt); font-size: 13px; color: var(--muted); border-bottom: 0; padding: 14px 28px; font-weight: 400; }
.price-table .action { text-align: right; }
.price-table .action .btn { white-space: nowrap; }
.price-table th { white-space: nowrap; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select { width: 100%; max-width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); }
.catalog-filters {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 20px;
  flex-wrap: wrap; margin-bottom: 20px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: 0 1px 0 rgba(21, 23, 28, 0.03);
}
.catalog-filters-fields {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; flex: 1 1 420px; min-width: 0;
}
.catalog-filters-actions {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto;
}
.catalog-filter-btn {
  height: 50px; min-height: 50px; padding: 0 22px; box-sizing: border-box;
}
.field-country { width: min(360px, 100%); max-width: 100%; }
.field-site { width: min(300px, 100%); max-width: 100%; }
.ms { position: relative; }
.ms-box {
  position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px;
  height: 50px; min-height: 50px; max-height: 50px; overflow: hidden;
  padding: 0 40px 0 12px; box-sizing: border-box;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg);
  cursor: text;
}
.ms-box:focus-within, .ms.is-open .ms-box { border-color: var(--ink); background: var(--surface); }
.ms.has-selection:not(.is-open) .ms-box { cursor: pointer; }
.field .ms-search {
  flex: 1 1 auto; min-width: 0; width: 100%; max-width: none; height: 34px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink);
}
.ms.has-selection:not(.is-open) .ms-search.is-compact {
  position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}
.ms-search:focus { outline: none; }
.ms-caret {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0;
  border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.ms-summary {
  display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto;
}
.ms-summary[hidden] { display: none !important; }
.ms-summary-faces {
  display: flex; align-items: center; flex: 0 0 auto; padding-left: 2px;
}
.ms-summary-face {
  width: 28px; height: 28px; margin-left: -6px; border-radius: 999px;
  display: grid; place-items: center; background: var(--surface);
  border: 1.5px solid var(--surface); box-shadow: 0 0 0 1px var(--line);
  font-size: 14px; line-height: 1; font-weight: 700; color: var(--ink-2);
}
.ms-summary-face .flag { width: 20px; height: 20px; border-radius: 50%; box-shadow: none; }
.ms-summary-faces .ms-summary-face:first-child { margin-left: 0; }
.ms-summary-face-more {
  font-size: 11px; background: var(--sand); color: var(--ink);
}
.ms-summary-text {
  min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.2;
}
.ms-summary-clear {
  width: 28px; height: 28px; flex-shrink: 0; margin-left: auto; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
}
.ms-summary-clear:hover { color: var(--ink); background: var(--sand); }
.ms-panel {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0;
  max-height: 320px; overflow: auto; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: 0 18px 44px rgba(21, 23, 28, 0.16);
}
.ms-option {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0;
  border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 600;
  transition: background-color .12s ease;
}
.ms-option[hidden],
.ms-option.is-filtered-out,
.ms-empty[hidden] { display: none !important; }
.ms-option:hover { background: var(--sand); }
.ms-option:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.field .ms-option input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; padding: 0;
  border: 0; clip: rect(0 0 0 0); overflow: hidden;
}
.ms-flag,
.ms-badge {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center; background: var(--sand);
  font-size: 18px; line-height: 1; color: var(--ink-2); font-weight: 700;
}
.ms-badge { font-size: 13px; letter-spacing: 0.02em; }
.ms-option-name {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink); font-weight: 700; line-height: 1.25;
}
.ms-mark {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 999px;
  opacity: 0; transform: scale(0.85);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.7 9.5 3.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: opacity .12s ease, transform .12s ease;
}
.ms-option:has(input:checked) .ms-mark { opacity: 1; transform: scale(1); }
.ms-empty { margin: 10px 12px; color: var(--muted); font-size: 14px; }
.field-sort { width: 220px; max-width: 100%; }
.empty-row td { text-align: center; color: var(--muted); font-weight: 400 !important; }

/* Developers */
.dev { background: var(--dark); color: var(--on-dark); border-radius: var(--radius-xl); padding: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.dev .eyebrow { color: var(--accent-light); }
.dev .h2 { font-size: clamp(28px, 3vw, 44px); }
.dev p { color: var(--on-dark-2); font-size: 17px; }
.code { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 16px; padding: 28px; font-family: var(--font-mono); font-size: 14px; line-height: 1.8; color: var(--on-dark-2); white-space: pre; overflow-x: auto; }
.code .c { color: #8A8F98; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq-list details { border-top: 1px solid var(--line-2); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-2); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 19px; font-weight: 700; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { padding: 0 0 24px; color: var(--muted); max-width: 720px; }

/* CTA band */
.cta-band { background: var(--sand); border-radius: var(--radius-xl); padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.cta-band .h2 { font-size: clamp(28px, 3vw, 44px); max-width: 720px; }

/* Footer — company details and navigation share a compact two-column layout. */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 30px 0; font-size: 13px; color: var(--muted); }
.footer-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "company links" "company copyright"; align-items: start; gap: 10px 40px; }
.footer-links { grid-area: links; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 22px; min-width: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--ink); }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { grid-area: copyright; margin: 0; font-size: 12px; color: var(--muted); text-align: right; }
.footer-company { grid-area: company; min-width: 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.footer-company p { margin: 0; }
.footer-company-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; }
.footer-company-heading strong { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.footer-registration { font-size: 11px; }
.footer-company address { margin-top: 4px; font-style: normal; }
.footer-address-break { display: none; }
@media (max-width: 1000px) {
  .footer-bar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "links" "company" "copyright"; gap: 18px; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { text-align: left; }
}

/* Legal page */
.legal { padding-top: 80px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 24px 48px; }
.toc { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; gap: 14px; font-size: 15px; padding-top: 12px; }
.toc span { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.legal-body { display: flex; flex-direction: column; gap: 44px; max-width: 820px; }
.legal-body section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 110px; }
.legal-body h2 { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.2; }
.legal-body p, .legal-body li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.legal-body ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.summary-box > strong { font-size: 15px; }
.summary-box div { display: flex; gap: 12px; color: var(--ink-2); }
.summary-box svg { flex-shrink: 0; margin-top: 4px; }

/* Page intro */
.page-intro { padding: 80px 0 48px; }
.page-intro .container > * + * { margin-top: 20px; }
.page-intro .display { font-size: clamp(38px, 4.4vw, 60px); max-width: 900px; }
.page-intro .lead { max-width: 760px; }

/* Visually hidden */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 48px; --section: 96px; }
  .main-nav { gap: 18px; }
  .header-actions { gap: 12px; }
  .header-actions .btn-dark { padding: 0 16px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .container { gap: 48px; }
}

/* Collapse desktop nav earlier: theme + lang + CTA need room (vs originals) */
@media (max-width: 1360px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu[data-open="true"] { display: block; border-top: 1px solid var(--line); background: var(--bg); }
  .mobile-menu nav { display: flex; flex-direction: column; padding: 12px var(--gutter) 24px; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; }
}

@media (max-width: 960px) {
  :root { --gutter: 32px; --section: 80px; }
  .header-actions .lang-menu, .header-actions .lang, .header-actions .signin { display: none; }
  .header-actions { gap: 10px; }
  .header-session { height: 40px; }
  .header-balance { padding: 0 12px 0 14px; }
  .header-account { padding: 0 8px 0 6px; }
  .hero .container, .split, .dev, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 56px 0 64px; }
  .product-card { justify-self: stretch; max-width: none; }
  .globe-wrap { max-width: 480px; overflow: visible; }
  .fc-1 { left: 0; top: 12%; }
  .fc-2 { right: 0; top: 46%; }
  .fc-3 { left: 0; bottom: 6%; }
  .float-card { max-width: calc(100% - 16px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px 0; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dev { padding: 40px 32px; gap: 40px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .legal { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
  .toc { position: static; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; --section: 64px; }
  body { font-size: 15px; }
  .site-header .container { height: 88px; min-height: 88px; }
  .brand-logo, .brand img { width: 30px; height: 30px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 20px; }
  .header-actions .btn-dark { display: none; }
  .cta-row .btn { width: 100%; }
  .checks { flex-direction: column; gap: 10px; }
  .product-card { padding: 20px; gap: 14px; border-radius: 20px; }
  .globe-wrap { max-width: 350px; }
  .float-card { padding: 8px 10px 8px 8px; gap: 8px; white-space: normal; }
  .float-card small { font-size: 11px; }
  .float-card b { font-size: 13px; }
  .fc-code { font-size: 17px !important; }
  .fc-badge { width: 28px; height: 28px; font-size: 11px; }
  .fc-1 { left: 0; top: 8%; } .fc-2 { right: 0; top: 48%; } .fc-3 { left: 0; bottom: 2%; }
  .aurora span { width: 110vw; height: 110vw; }
  .pc-fields { grid-template-columns: minmax(0, 1fr); }
  .pc-digits, .pc-code strong { font-size: 26px; }
  .pc-code { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
  .stat-num { font-size: 30px; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .price-table th, .price-table td { padding: 14px 12px; }
  .price-table th:first-child, .price-table td:first-child { padding-left: 16px; }
  /* compact action: the label stays for screen readers, an arrow shows instead */
  .price-table .action .btn { font-size: 0; width: 44px; padding: 0; }
  .price-table .action .btn::after { content: "\2192"; font-size: 18px; }
  .price-table .stock, .price-table .hide-sm { display: none; }
  .field-country, .field-site, .field-sort { width: 100%; }
  .dev { padding: 28px 22px; border-radius: 22px; }
  .code { font-size: 12.5px; padding: 18px; }
  .cta-band { padding: 32px 22px; border-radius: 22px; }
  .cta-band .btn { width: 100%; }
  .site-footer { margin-top: 56px; padding: 24px 0; }
  .footer-links { gap: 10px 18px; }
  .footer-company-heading { display: block; }
  .footer-registration { display: block; margin-top: 2px; }
  .footer-address-break { display: initial; }
  .legal-body h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .float-card { animation: none; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ========== Stage 4: dark theme ========== */
html[data-theme="dark"] {
  --btn-on-light-bg: #F5F3EE;
  --btn-on-light-fg: #15171C;
  --btn-on-light-bg-hover: #ffffff;
  --bg: #0F1115;
  --surface: #1A1D24;
  --surface-alt: #15181E;
  --sand: #242830;
  --ink: #F2EFE8;
  --ink-2: #C8C4BA;
  --muted: #9A958A;
  --line: #2A2E36;
  --line-2: #3A3F49;
  --line-soft: #22262E;
  --accent: #E08A3C;
  --accent-hover: #F0B067;
  --accent-light: #F0B067;
  --ok: #5CB88A;
  --ok-bg: #143024;
  --ok-line: #2A5A40;
  --no: #E07060;
  --dark: #0A0B0E;
  --dark-2: #050506;
  --dark-line: #2A2D34;
  --on-dark: #F5F3EE;
  --on-dark-2: #D9D5CC;
  --header-bg: rgba(15, 17, 21, 0.92);
  --warn: #D4A017;
  --warn-bg: #2A2410;
  --warn-line: #5A4A18;
  --info-bg: #1A2430;
  --info-line: #2A4058;
}

:root {
  --btn-on-light-bg: #15171C;
  --btn-on-light-fg: #ffffff;
  --btn-on-light-bg-hover: #2a2d34;
  --header-bg: rgba(245, 243, 238, 0.92);
  --warn: #A4500B;
  --warn-bg: #FBF3E8;
  --warn-line: #E8D4B8;
  --info-bg: #EEF3F8;
  --info-line: #C8D6E4;
}

html[data-theme="dark"] .site-header {
  background: var(--header-bg);
}
html[data-theme="dark"] .aurora::after {
  background: linear-gradient(rgba(15,17,21,0), var(--bg));
}
html[data-theme="dark"] .float-card {
  background: rgba(26, 29, 36, 0.92);
}
html[data-theme="dark"] .faq-list details,
html[data-theme="dark"] .faq-list details:last-child {
  border-color: var(--line);
}
html[data-theme="dark"] .menu-toggle svg {
  stroke: var(--ink);
}
html[data-theme="dark"] .lang,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .theme-toggle {
  border-color: var(--line-2);
  color: var(--ink-2);
}
/* pagination current page uses the accent outline */

.theme-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: var(--radius-s);
  font: inherit;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.lang:hover { color: var(--ink); border-color: var(--ink); }
.lang-menu, .theme-menu { position: relative; flex-shrink: 0; align-self: center; z-index: 60; }
.lang-dropdown, .chrome-dropdown, .account-dropdown {
  /* fixed + JS anchor avoids sticky/backdrop-filter clipping and “floating” gap */
  position: fixed;
  right: auto;
  left: 0;
  top: 0;
  min-width: 168px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -20px rgba(0,0,0,.35);
  padding: 8px;
  display: none;
  z-index: 200;
  max-height: min(70vh, 320px);
  overflow-y: auto;
}
.lang-dropdown[data-open="true"], .chrome-dropdown[data-open="true"], .account-dropdown[data-open="true"] { display: block; }
.lang-dropdown button, .lang-dropdown a,
.account-dropdown button, .account-dropdown a {
  display: flex; width: 100%; align-items: center; gap: 8px;
  padding: 10px 12px; border: 0; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink); text-decoration: none;
  border-radius: var(--radius-s); cursor: pointer; text-align: start;
}
.lang-dropdown button:hover, .lang-dropdown a:hover,
.account-dropdown button:hover, .account-dropdown a:hover { background: var(--sand); }
.lang-dropdown button[aria-current="true"] { font-weight: 700; }
.account-dropdown { min-width: 220px; }

/* ========== App / cabinet UI ========== */
.app-shell { padding: 40px 0 80px; }
.app-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.app-nav {
  position: sticky; top: 112px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 10px;
}
.app-nav-list { display: flex; flex-direction: column; gap: 2px; }
.app-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-s);
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px;
}
.app-nav a svg { flex-shrink: 0; color: var(--muted); }
.app-nav a:hover { background: var(--sand); color: var(--ink); }
.app-nav a:hover svg { color: var(--ink); }
.app-nav a[aria-current="page"] {
  background: var(--sand);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--accent);
}
.app-nav a[aria-current="page"] svg { color: var(--accent); }
.app-nav-foot {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.app-nav-signout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 42px; padding: 8px 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: transparent; color: var(--ink-2);
  font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer;
}
.app-nav-signout svg { flex-shrink: 0; }
.app-nav-signout:hover {
  border-color: var(--ink); color: var(--ink); background: var(--sand);
}
.app-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.app-head h1 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05; letter-spacing: -0.02em; min-width: 0; overflow-wrap: anywhere;
}
.chip {
  display: inline-flex; align-items: center; padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent-hover);
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; line-height: 1;
}
html[data-theme="dark"] .chip {
  color: var(--accent-light);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}
.balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.balance-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.balance-card .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.balance-card .value {
  font-family: var(--font-body); font-size: 34px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1.15;
}
.balance-card .unit { font-size: 14px; color: var(--muted); }
.balance-strip {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 16px 20px;
}
.balance-strip-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.balance-strip-stat .label {
  font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .04em; font-weight: 600;
}
.balance-strip-stat .value {
  font-family: var(--font-body); font-size: 26px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1.2;
}
.balance-strip-stat .unit {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted);
}
.balance-strip .btn { margin-left: auto; }
.segmented {
  display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.segmented a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px;
  color: var(--ink-2);
}
.segmented a:hover { background: var(--sand); color: var(--ink); }
.segmented a[aria-current="page"] { background: var(--ink); color: #fff; }
html[data-theme="dark"] .segmented a[aria-current="page"] { background: var(--accent); color: #111; }

.numbers-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 18px 40px -28px rgba(21,23,28,.28);
}
.numbers-board-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.numbers-board .segmented {
  background: var(--sand);
  border-color: transparent;
}
.filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--sand);
  border-radius: 999px;
  margin-left: auto;
}
.filter-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-2);
}
.filter-pills a:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); }
.filter-pills a[aria-current="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(21,23,28,.08);
}
.numbers-board-pad {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--surface-alt);
}
.numbers-board-pad .number-card {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 18px 40px -30px rgba(21,23,28,.28);
}
html[data-theme="dark"] .numbers-board-pad .number-card {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px -28px rgba(0,0,0,.55);
}
.board-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 56px 28px 64px;
}
.board-empty-mark {
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  color: var(--accent-hover);
  background:
    radial-gradient(circle at 30% 22%, #fff 0%, transparent 48%),
    linear-gradient(160deg, #F8E7D2 0%, #F3D2AE 52%, #E7C09A 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 14px 28px -18px color-mix(in srgb, var(--accent) 75%, transparent);
}
.board-empty h2,
.board-empty strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}
.board-empty p {
  max-width: 56ch;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.history-list { list-style: none; margin: 0; padding: 0; }
.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 28px;
  align-items: center;
  padding: 18px 22px;
  border-top: 1px solid var(--line-soft);
}
.history-list .history-row:first-child { border-top: 0; }
.history-row:hover { background: color-mix(in srgb, var(--sand) 55%, var(--surface)); }
.history-row-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.history-flag {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sand);
  font-size: 22px;
  line-height: 1;
}
.history-copy { min-width: 0; }
.history-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}
.history-service {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--line-2);
  font-weight: 600;
  color: var(--ink-2);
}
.history-meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.history-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
  flex-wrap: wrap;
}
.history-codes { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.code-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.history-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
html[data-theme="dark"] .numbers-board {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px -28px rgba(0,0,0,.65);
}
html[data-theme="dark"] .board-empty-mark {
  color: var(--accent-light);
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.12), transparent 48%),
    linear-gradient(160deg, #3A2A1C 0%, #2A2118 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
html[data-theme="dark"] .filter-pills a[aria-current="true"] {
  background: var(--surface);
  color: var(--ink);
}
@media (max-width: 720px) {
  .numbers-board-bar { flex-direction: column; align-items: stretch; }
  .filter-pills { width: 100%; margin-left: 0; }
  .filter-pills a { flex: 1 1 0; }
  .numbers-board .segmented { align-self: flex-start; }
  .history-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }
  .history-side { justify-content: flex-start; padding-left: 58px; }
}

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 24px 28px; display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}
.panel h2 { font-size: 18px; font-weight: 700; }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Auth pages — wider canvas, warm wash, less “blank white box” */
/* padding (not margin) on wrap: child margin-top collapses through main and
   leaves a plain body strip under the sticky header (the “strange gap”). */
body:has(.auth-wrap) .site-header {
  border-bottom: none;
}
main:has(.auth-wrap) {
  position: relative;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, color-mix(in srgb, var(--accent-light) 28%, transparent), transparent 68%),
    radial-gradient(ellipse 45% 35% at 100% 30%, color-mix(in srgb, var(--sand) 90%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 30% at 0% 70%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 65%);
}
.auth-wrap {
  max-width: 640px;
  margin: 0 auto 96px;
  padding: 40px var(--gutter) 0;
}
.auth-card {
  position: relative;
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 4px);
  padding: 44px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 1px 0 rgba(255,255,255,.4),
    0 28px 56px -32px rgba(21,23,28,.32),
    0 12px 24px -18px color-mix(in srgb, var(--accent) 18%, transparent);
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 42%, transparent 88%);
}
.auth-card::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -80px; top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-light) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.auth-card > * { position: relative; z-index: 1; }
.auth-card h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4vw, 38px); letter-spacing: -0.025em; line-height: 1.12;
}
.auth-card .lead {
  font-size: 15.5px; line-height: 1.55; color: var(--ink-2);
  max-width: 46ch; margin-top: -6px;
}
.auth-card .field input {
  height: 52px;
  background: color-mix(in srgb, var(--surface) 70%, var(--sand));
  border-color: var(--line);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-card .field input:hover { border-color: var(--line-2); }
.auth-card .field input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.auth-card .checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.auth-card .field .checkline input { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.auth-card .field .checkline input[aria-invalid="true"] { outline: 2px solid var(--no); outline-offset: 2px; }
.checkline a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.field-error, .form-error {
  color: var(--no); font-size: 14px; margin-top: 6px;
}
.field-error[hidden] { display: none !important; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--no);
}
.form-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.form-actions .btn { flex: 0 0 auto; }
.auth-card .form-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 12px;
}
.auth-card .form-actions .btn { width: 100%; }
.auth-card .form-actions a {
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 3px;
}
@media (max-width: 600px) {
  .form-actions { flex-direction: column; align-items: stretch; }
}
.form-footer {
  font-size: 14px; color: var(--muted); text-align: center;
  padding-top: 18px; margin-top: 4px;
  border-top: 1px solid var(--line-soft);
}
.form-footer a { font-weight: 600; text-underline-offset: 3px; }
html[data-theme="dark"] main:has(.auth-wrap) {
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%),
    radial-gradient(ellipse 40% 30% at 0% 70%, color-mix(in srgb, var(--accent-light) 6%, transparent), transparent 65%);
}
html[data-theme="dark"] .auth-card {
  background: linear-gradient(165deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 88%, #000) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 28px 56px -32px rgba(0,0,0,.55),
    0 12px 24px -18px color-mix(in srgb, var(--accent) 22%, transparent);
}
html[data-theme="dark"] .auth-card .field input {
  background: color-mix(in srgb, var(--surface) 85%, #000);
}
html[data-theme="dark"] .btn-dark {
  background: linear-gradient(180deg, #fff 0%, var(--btn-on-light-bg, #F5F3EE) 100%);
  border-color: color-mix(in srgb, var(--btn-on-light-bg, #F5F3EE) 70%, #000 10%);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px -12px rgba(0,0,0,.4);
}
html[data-theme="dark"] .btn-dark:hover {
  background: linear-gradient(180deg, #fff 0%, var(--btn-on-light-bg-hover, #fff) 100%);
}

/* Password field: generate + show/hide actions inside the input */
.input-with-actions {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-with-actions input {
  width: 100%;
  padding-right: 52px;
}
.input-with-actions.has-generate input {
  padding-right: 92px;
}
.input-actions {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.input-action {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, background .15s;
}
.input-action:hover,
.input-action:focus-visible {
  color: var(--accent);
  background: var(--sand);
}
.input-action.is-revealed { color: var(--accent); }
.input-action .icon-eye-off { display: none; }
.input-action.is-revealed .icon-eye { display: none; }
.input-action.is-revealed .icon-eye-off { display: block; }
html[data-theme="dark"] .input-action:hover,
html[data-theme="dark"] .input-action:focus-visible {
  background: rgba(224, 138, 60, 0.12);
}

/* Transient toast (password copied, etc.) */
.ui-toast-host {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(420px, calc(100% - 32px));
}
.ui-toast {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 16px 40px -18px rgba(21,23,28,.55);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.ui-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ui-toast--ok {
  background: var(--ok);
  color: #fff;
}
.ui-toast--error {
  background: var(--no);
  color: #fff;
}
html[data-theme="dark"] .ui-toast {
  background: var(--accent);
  color: #111;
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.55);
}
html[data-theme="dark"] .ui-toast--ok {
  background: var(--ok);
  color: #fff;
}
html[data-theme="dark"] .ui-toast--error {
  background: var(--no);
  color: #fff;
}

.alert {
  border-radius: var(--radius); padding: 14px 16px; font-size: 15px;
  border: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start;
}
.alert[hidden] { display: none !important; }
.alert-error { background: #FBEDEC; border-color: #E8C4BE; color: var(--no); }
html[data-theme="dark"] .alert-error { background: #2A1614; border-color: #5A3028; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.alert-info { background: var(--info-bg); border-color: var(--info-line); color: var(--ink-2); }

.state-box {
  text-align: center; padding: 48px 24px; border: 1px dashed var(--line-2);
  border-radius: var(--radius-l); background: var(--surface-alt); color: var(--muted);
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.state-box strong { color: var(--ink); font-size: 18px; }

.mono { font-family: var(--font-mono); }
.amount-pos { color: var(--ok); font-weight: 600; }
.amount-neg { color: var(--no); font-weight: 600; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code, .copy-value {
  flex: 1; min-width: 0; padding: 12px 14px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-mono);
  font-size: 14px; word-break: break-all;
}
.timer { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: 0.04em; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--sand); color: var(--ink-2);
}
.badge-ledger {
  font-size: 13px; font-weight: 600; letter-spacing: 0; padding: 4px 12px;
  text-transform: none;
}
.badge-ledger-topup, .badge-ledger-release { background: var(--ok-bg); color: var(--ok); }
.badge-ledger-hold { background: var(--warn-bg); color: var(--warn); }
.badge-ledger-capture { background: var(--sand); color: var(--ink); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-wait { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: #FBEDEC; color: var(--no); }
html[data-theme="dark"] .badge-err { background: #2A1614; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.data-table-ledger { min-width: 0; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.data-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.data-table tr:last-child td { border-bottom: 0; }
.table-status td {
  text-align: center; color: var(--muted); font-weight: 600; padding: 28px 18px;
}
.table-status-label {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.table-status-loading { display: none; }
.is-loading .table-status-loading,
.catalog-shell.is-loading .table-status-loading { display: table-row; }
.table-status-loading .catalog-spinner { width: 18px; height: 18px; border-width: 2px; }
.catalog-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px;
  flex-wrap: wrap; margin-top: 20px;
}
.pager-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-width: 0; }
.page-size { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.page-size label { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.page-size select {
  height: 36px; min-width: 76px; padding: 0 32px 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background-color: var(--surface); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%234A4F58' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
html[data-theme="dark"] .page-size select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%239A958A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pager-range { margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.pagination { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.pagination a, .pagination span, .pagination button.pagination-gap {
  min-width: 36px; height: 36px; padding: 0 8px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface);
  text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600;
}
.pagination a:hover, .pagination button.pagination-gap:hover { border-color: var(--ink); color: var(--ink); }
.pagination [aria-current="page"] {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.pagination [aria-current="page"]:hover { color: #fff; border-color: var(--accent-hover); background: var(--accent-hover); }
.pagination .pagination-gap {
  color: var(--muted); letter-spacing: 0.04em; cursor: pointer; font: inherit;
}
.pagination .pagination-gap[aria-expanded="true"] { border-color: var(--ink); color: var(--ink); }
.pagination-jump { position: relative; }
.pagination-jump-panel {
  position: absolute; z-index: 40; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; min-width: 168px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(21, 23, 28, 0.14);
}
.pagination-jump-panel[hidden] { display: none; }
.pagination-jump-panel label { font-size: 12px; font-weight: 600; color: var(--muted); }
.pagination-jump-panel input[type="number"] {
  width: 100%; height: 40px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600;
}
.pagination-jump-panel .btn { width: 100%; height: 40px; }
.pagination .pagination-step[aria-disabled="true"] {
  color: var(--muted); opacity: 0.4; pointer-events: none;
}
.pagination .pagination-step svg { display: block; }

.number-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 18px 40px -30px rgba(21,23,28,.28);
}
.number-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 48%, transparent 92%);
}
.number-card--received::before {
  background: linear-gradient(90deg, var(--ok) 0%, color-mix(in srgb, var(--ok) 55%, var(--accent-light)) 52%, transparent 92%);
}
.number-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: start;
}
.number-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.number-card-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.number-card-route .country-with-flag {
  align-items: center;
  gap: 0.4rem;
  line-height: 1.25;
}
.number-card-route .country-flag {
  font-size: 1.05em;
  line-height: 1;
  transform: translateY(0.5px);
}
.number-card-dot {
  color: var(--muted);
  font-weight: 500;
  line-height: 1;
}
.number-card-service {
  color: var(--ink-2);
  font-weight: 600;
  line-height: 1.25;
}
.number-card-price {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--sand);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.number-card-price span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.number-card-clock {
  min-width: 128px;
  padding: 12px 18px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.number-card-clock .pay-label { margin-bottom: 4px; }
.number-card-timer {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent-hover);
}
.number-card-timer.is-urgent { color: var(--no); }
.number-card-phone {
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  background:
    radial-gradient(ellipse 60% 90% at 0% 0%, color-mix(in srgb, var(--accent-light) 22%, transparent), transparent 70%),
    var(--surface);
}
.number-card-phone .pay-label { margin-bottom: 8px; }
.number-card-phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.number-card-copy-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.number-card-copy-actions .pay-icon-btn {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  min-height: 40px;
}
.number-card .phone {
  flex: 0 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  color: var(--ink);
}
.number-card-hint {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: color-mix(in srgb, var(--warn-bg) 86%, var(--surface));
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.number-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
}
.number-card-actions form { margin: 0; }
.btn.btn-cancel { color: var(--no); border-color: color-mix(in srgb, var(--no) 35%, var(--line)); }
.btn.btn-cancel:hover { background: color-mix(in srgb, var(--no) 8%, var(--surface)); }
.sms-list { display: flex; flex-direction: column; gap: 10px; }
.sms-item {
  border: 1px solid var(--ok-line); background: var(--ok-bg); border-radius: var(--radius-l);
  padding: 14px 16px; display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap;
}
.sms-item-body { min-width: 0; flex: 1 1 180px; }
.sms-item-text { margin-top: 4px; color: var(--ink); line-height: 1.45; }
.sms-item-code {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.sms-item-code .mono {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.sms-item-code .pay-icon-btn {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 10px;
}
html[data-theme="dark"] .number-card {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px -28px rgba(0,0,0,.55);
}
html[data-theme="dark"] .number-card-clock {
  box-shadow: none;
}
html[data-theme="dark"] .number-card-timer { color: var(--accent-light); }
html[data-theme="dark"] .number-card-timer.is-urgent { color: var(--no); }
.qr-box {
  width: 180px; height: 180px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); display: grid; place-items: center; color: #15171C;
  font-size: 12px; text-align: center; padding: 12px; box-sizing: border-box;
  overflow: hidden;
}
.qr-box img, .qr-box canvas, .qr-box table, .qr-box svg {
  width: 156px !important; height: 156px !important; max-width: 100%;
  display: block; margin: 0 auto;
}
html[data-theme="dark"] .qr-box { border-color: #ccc; }

/* Invoice — payment slip */
.pay-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 22px 48px -32px rgba(21,23,28,.32);
}
.pay-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 48%, transparent 92%);
}
.pay-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.pay-head-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pay-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pay-id {
  margin-top: 0;
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}
.pay-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}
.pay-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}
.pay-status-paid {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-line);
}
.pay-status-expired,
.pay-status-cancelled,
.pay-status-paused {
  background: #FBEDEC;
  color: var(--no);
  border-color: #E8C4BE;
}
.pay-lead {
  margin: -4px 0 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.pay-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.pay-hero-solo { grid-template-columns: minmax(0, 1fr); }
.pay-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pay-amount-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
}
.pay-amount-value {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pay-figure {
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  font-variant-numeric: inherit;
}
.pay-currency {
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.pay-asset {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pay-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}
.pay-icon-btn svg { display: block; }
.pay-icon-btn .pay-icon-check { display: none; }
.pay-icon-btn.is-copied .pay-icon-copy { display: none; }
.pay-icon-btn.is-copied .pay-icon-check { display: block; }
.btn.pay-icon-btn.is-copied {
  background: var(--surface);
  color: var(--ok);
  border-color: var(--ok);
}
.pay-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.pay-asset-inline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pay-sub strong { font-weight: 700; color: var(--ink); }
.pay-net {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.pay-clock {
  min-width: 132px;
  padding: 14px 16px 12px;
  text-align: right;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.pay-clock .pay-label { margin-bottom: 2px; }
.pay-clock-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent-hover);
}
.pay-clock-value.is-urgent { color: var(--no); }
.pay-transfer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "qr note"
    "addr addr";
  gap: 16px 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  background:
    radial-gradient(ellipse 55% 80% at 8% 18%, color-mix(in srgb, var(--accent-light) 26%, transparent), transparent 70%),
    var(--surface);
}
.pay-transfer[hidden] { display: none !important; }
.pay-qr {
  grid-area: qr;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 24px -18px rgba(21,23,28,.45);
}
.pay-qr .qr-box {
  width: 192px;
  height: 192px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
}
.pay-qr .qr-box img,
.pay-qr .qr-box canvas,
.pay-qr .qr-box table,
.pay-qr .qr-box svg {
  width: 168px !important;
  height: 168px !important;
}
.pay-address-block { grid-area: addr; min-width: 0; }
.pay-address {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.pay-address code {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.35;
  word-break: break-all;
}
.pay-address .pay-icon-btn { align-self: center; }
.pay-caution {
  grid-area: note;
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: color-mix(in srgb, var(--warn-bg) 86%, var(--surface));
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.pay-demo {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.pay-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}
html[data-theme="dark"] .pay-card {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 22px 48px -28px rgba(0,0,0,.55);
}
html[data-theme="dark"] .pay-status-expired,
html[data-theme="dark"] .pay-status-cancelled,
html[data-theme="dark"] .pay-status-paused {
  background: #2A1614;
  border-color: #5A3028;
}
html[data-theme="dark"] .pay-clock {
  box-shadow: none;
}
html[data-theme="dark"] .pay-clock-value { color: var(--accent-light); }
html[data-theme="dark"] .pay-clock-value.is-urgent { color: var(--no); }
html[data-theme="dark"] .pay-qr,
html[data-theme="dark"] .pay-qr .qr-box { border-color: #d9d5cc; }
@media (max-width: 720px) {
  .pay-card { padding: 22px 18px 18px; border-radius: 22px; }
  .pay-hero { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .pay-clock { text-align: left; }
  .pay-figure { font-size: 34px; }
  .pay-transfer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "qr" "addr" "note";
    justify-items: center;
    padding: 14px;
  }
  .pay-address-block,
  .pay-caution { width: 100%; justify-self: stretch; }
  .pay-actions .btn { flex: 1 1 auto; }
}

.catalog-shell { position: relative; min-height: 200px; }
.catalog-shell.is-loading { cursor: wait; }
.catalog-shell.is-loading .catalog-filters,
.catalog-shell.is-loading .catalog-pager,
.catalog-shell.is-loading .state-box {
  pointer-events: none;
  opacity: 0.45;
  filter: grayscale(0.1);
}
.catalog-shell.is-loading .table-wrap { pointer-events: none; }
.catalog-shell.is-loading .data-table tbody tr:not(.table-status-loading) { opacity: 0.45; }
.catalog-shell.is-loading:has(.table-status-loading) .catalog-loading { display: none; }
.catalog-loading {
  position: absolute; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 160px; padding: 32px 16px; box-sizing: border-box;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--ink); font-size: 15px; font-weight: 700;
  backdrop-filter: blur(1px);
}
.catalog-loading[hidden] { display: none; }
.catalog-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--line-2); border-top-color: var(--accent);
  animation: catalog-spin .7s linear infinite;
}
@keyframes catalog-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .catalog-spinner { animation: none; border-top-color: var(--accent); opacity: 0.85; }
}
.catalog-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 20px; }
@media (max-width: 600px) {
  .catalog-filters { padding: 16px; }
  .catalog-filters-actions { width: 100%; margin-left: 0; }
  .catalog-filters-actions .catalog-filter-btn { flex: 1 1 0; }
}
.status-pill {
  display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.status-available { background: var(--ok-bg); color: var(--ok); }
.status-unavailable { background: var(--sand); color: var(--muted); }

@media (max-width: 960px) {
  .app-layout { grid-template-columns: minmax(0, 1fr); }
  .app-nav { position: static; }
  .app-nav-list { flex-direction: row; flex-wrap: wrap; }
  .app-nav-list a { white-space: nowrap; }
  .balance-grid { grid-template-columns: minmax(0, 1fr); }
  .header-actions .theme-toggle { display: inline-flex; }
  .app-shell { padding: 28px 0 64px; }
}
@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; border-radius: 22px; }
  .auth-card h1 { font-size: 26px; }
  .auth-wrap { padding-top: 28px; width: 100%; box-sizing: border-box; }
  .form-actions .btn { width: 100%; }
  .auth-card::after { width: 140px; height: 140px; right: -50px; top: -60px; }
  .panel { padding: 20px; }
  .data-table th, .data-table td { padding: 12px; }
  .app-shell { padding: 20px 0 48px; }
  .app-nav {
    overflow-x: visible;
    gap: 8px;
    padding: 10px;
  }
  .app-nav-list { gap: 6px; }
  .app-nav a {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 14px;
  }
  .app-nav-foot { padding-top: 8px; }
  .app-nav-signout { min-height: 40px; }
  .balance-card .value { font-size: 28px; word-break: break-all; }
  .balance-strip { gap: 16px; padding: 14px 16px; }
  .balance-strip-stat .value { font-size: 22px; }
  .balance-strip .btn { margin-left: 0; width: 100%; }
  .number-card { padding: 18px 16px 16px; border-radius: 22px; gap: 14px; }
  .number-card-head { grid-template-columns: minmax(0, 1fr); }
  .number-card-clock { text-align: center; width: 100%; box-sizing: border-box; }
  .number-card .phone { font-size: 26px; }
  .number-card-timer { font-size: 28px; }
  .qr-box { width: min(180px, 100%); height: auto; aspect-ratio: 1; }
  .catalog-toolbar .btn,
  .catalog-filters-actions .catalog-filter-btn { width: 100%; }
  .app-head .btn { flex: 0 0 auto; }
  .data-table .hide-sm { display: none; }
  .data-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
    /* separate: overflow:hidden on td actually clips (collapse ignores it) */
    border-collapse: separate;
    border-spacing: 0;
  }
  .data-table th,
  .data-table td {
    padding: 10px 6px;
    vertical-align: middle;
    /* max-width:0 is required for overflow clip under table-layout:fixed */
    max-width: 0;
    overflow: hidden;
  }
  /* Country | Service | (Stock hidden) | Price | Action */
  .data-table th:nth-child(1),
  .data-table td:nth-child(1) { width: 40%; }
  .data-table th:nth-child(2),
  .data-table td:nth-child(2) { width: 24%; }
  .data-table th:nth-child(4),
  .data-table td:nth-child(4) { width: 20%; }
  /* Keep Country text inside its column (QA: no overlap onto Service @360) */
  .data-table .country-with-flag {
    display: grid;
    grid-template-columns: 1.25em minmax(0, 1fr);
    column-gap: 0.3rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .data-table .country-with-flag strong {
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .data-table td:nth-child(2) {
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .data-table td:nth-child(4) {
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
  }
  .data-table th.action,
  .data-table td.action {
    width: 48px;
    max-width: 48px;
    padding-left: 4px;
    padding-right: 6px;
    position: sticky;
    right: 0;
    background: var(--surface);
    z-index: 1;
    box-shadow: -6px 0 10px -8px rgba(21, 23, 28, 0.35);
    overflow: visible;
  }
  .data-table th.action { z-index: 2; }
  /* Compact CTA so Select fits in-viewport without horizontal scroll */
  .data-table .action .btn {
    font-size: 0;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: inline-grid;
    place-items: center;
  }
  .data-table .action .btn::after {
    content: "\2192";
    font-size: 18px;
    line-height: 1;
  }
  .data-table .action form { display: inline; }
}

.card-link.is-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* Country flags (Unicode regional-indicator emoji) */
.country-with-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.country-flag {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  flex: 0 0 auto;
}
.country-flag .flag,
.ms-flag .flag {
  display: block;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.country-flag .flag { width: 1.35em; height: 1.35em; }
.ms-flag .flag { width: 24px; height: 24px; }


/* Pricing page — compact intro + dual-column picker */
.pricing-page { padding: 32px 0 64px; }
.pricing-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.pricing-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-size: clamp(26px, 3vw, 36px);
  max-width: 22ch;
}
.pricing-lead {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46rem;
}
.pricing-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pricing-facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pricing-facts strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.pricing-facts span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.pricing-picker { display: flex; flex-direction: column; gap: 12px; }
.pricing-picker[hidden] { display: none !important; }
.pricing-mode {
  display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line);
  border-radius: var(--radius-s); background: var(--sand); align-self: flex-start;
}
.pricing-mode-btn {
  appearance: none; border: 0; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px;
  border-radius: 8px; cursor: pointer;
}
.pricing-mode-btn.is-active {
  background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(21,23,28,.08);
}
.pricing-cols {
  display: grid; grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.32fr); gap: 12px;
  align-items: stretch;
}
.pricing-col {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 520px;
}
.pricing-search {
  width: 100%; min-height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  padding: 0 12px; font: inherit; font-size: 14px; background: var(--bg); color: var(--ink);
}
.pricing-list {
  flex: 1 1 auto; overflow: auto; max-height: 560px; display: flex; flex-direction: column; gap: 4px;
  padding-right: 2px;
}
.pricing-row {
  appearance: none; border: 1px solid transparent; background: var(--bg);
  border-radius: 8px; padding: 8px 10px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); display: flex; align-items: center; gap: 8px;
  width: 100%; transition: border-color .15s, background .15s;
}
.pricing-row:hover { border-color: var(--line-2); }
.pricing-row.is-selected {
  border-color: var(--accent); background: var(--sand);
}
.pricing-row-main {
  display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto;
}
.pricing-row-name { min-width: 0; font-weight: 600; font-size: 14px; }
.pricing-row-price .pricing-row-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pricing-flag { flex: 0 0 auto; font-size: 1.1em; line-height: 1; }
.pricing-flag .flag { display: block; width: 1.3em; height: 1.3em; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.pricing-row-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 6px 10px;
  align-items: center;
  cursor: default;
}
.pricing-row-amount {
  justify-self: end; font-size: 14px; font-weight: 700; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pricing-row-stock { justify-self: end; white-space: nowrap; }
.pricing-buy {
  justify-self: end;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  box-shadow: none;
}
.pricing-row-amount .unit { color: var(--muted); font-weight: 500; font-size: 11px; }
.pricing-row.is-unavailable .pricing-row-name { color: var(--muted); }
.pricing-stock {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 8px;
}
.pricing-right-head {
  display: flex; align-items: center; gap: 12px;
}
.pricing-right-title {
  margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px;
  min-width: 0; flex: 1 1 auto; line-height: 1.25;
}
.pricing-right-head .pricing-search { max-width: 240px; flex: 0 0 240px; }
.pricing-cta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.pricing-empty { padding: 24px 12px; color: var(--muted); text-align: center; font-size: 14px; }
.pricing-row-count { flex: 0 0 auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.pricing-skeleton { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.pricing-skeleton-row {
  height: 36px; border-radius: 8px;
  background: linear-gradient(90deg, var(--bg) 0%, var(--sand) 50%, var(--bg) 100%);
  background-size: 200% 100%;
  animation: pricing-shimmer 1.1s ease-in-out infinite;
}
@keyframes pricing-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.pricing-page .empty-state {
  text-align: center; padding: 36px 24px; border: 1px dashed var(--line-2);
  border-radius: var(--radius-l); background: var(--surface);
}
.pricing-faq {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1fr);
  gap: 16px 40px;
  align-items: start;
}
.pricing-faq-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0;
}
.pricing-faq .faq-list summary { font-size: 16px; padding: 14px 36px 14px 0; }
.pricing-faq .faq-list details p { padding: 0 0 14px; font-size: 14px; }
@media (max-width: 960px) {
  .pricing-title { max-width: none; }
  .pricing-facts { grid-template-columns: minmax(0, 1fr); }
  .pricing-faq { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 800px) {
  .pricing-page { padding: 24px 0 48px; }
  .pricing-cols { grid-template-columns: minmax(0, 1fr); }
  .pricing-col { min-height: 280px; }
  .pricing-list { max-height: 320px; }
  .pricing-right-head { flex-direction: column; align-items: stretch; }
  .pricing-right-head .pricing-search { max-width: none; flex: 1 1 auto; }
  .pricing-row-price {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name price"
      "stock buy";
  }
  .pricing-row-price .pricing-row-main { grid-area: name; }
  .pricing-row-price .pricing-row-amount { grid-area: price; }
  .pricing-row-price .pricing-row-stock { grid-area: stock; justify-self: start; }
  .pricing-row-price .pricing-buy { grid-area: buy; }
}
@media (max-width: 600px) {
  .pricing-mode { width: 100%; }
  .pricing-mode-btn { flex: 1 1 0; text-align: center; }
  .pricing-cta-row .btn { width: 100%; }
}

/* Purchase wait — full-viewport backdrop until the buy request returns */
html.purchase-wait,
html.purchase-wait body { overflow: hidden; }

.purchase-backdrop {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.purchase-backdrop[hidden] { display: none !important; }
.purchase-backdrop-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--accent-light) 28%, transparent), transparent 58%),
    color-mix(in srgb, #12141A 58%, transparent);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  animation: purchase-veil-in .28s ease;
}
.purchase-backdrop-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 36px 32px 28px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--accent-light) 42%, var(--line));
  color: var(--ink);
  background-color: var(--surface);
  background-image:
    linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 46%, transparent 88%),
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent-light) 34%, transparent), transparent 58%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  background-size: 100% 3px, 100% 180px, auto;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    0 28px 70px -28px rgba(13,14,17,.62),
    0 12px 32px -18px color-mix(in srgb, var(--accent) 35%, transparent);
  animation: purchase-card-in .38s cubic-bezier(.2,.8,.2,1);
}
.purchase-loader {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
}
.purchase-loader-orbit,
.purchase-loader-glow {
  position: absolute;
  border-radius: 50%;
}
.purchase-loader-orbit {
  inset: 0;
  border: 2.5px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-top-color: var(--accent);
  border-right-color: var(--accent-light);
  animation: purchase-spin 1.05s linear infinite;
}
.purchase-loader-orbit-b {
  inset: 12px;
  border-color: color-mix(in srgb, var(--accent-light) 28%, transparent);
  border-top-color: transparent;
  border-bottom-color: var(--accent);
  border-left-color: var(--accent-light);
  animation-duration: 1.65s;
  animation-direction: reverse;
}
.purchase-loader-glow {
  inset: 28px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-light) 70%, #fff) 0%, transparent 72%);
  animation: purchase-pulse 1.6s ease-in-out infinite;
}
.purchase-loader-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px color-mix(in srgb, var(--accent) 32%, transparent));
}
.purchase-result-badge {
  display: none;
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px -8px rgba(21,23,28,.45);
}
.purchase-backdrop[data-state="success"] .purchase-result-badge,
.purchase-backdrop[data-state="error"] .purchase-result-badge {
  display: grid;
}
.purchase-backdrop[data-state="success"] .purchase-result-badge { background: var(--ok); }
.purchase-backdrop[data-state="success"] .purchase-result-badge::before { content: "✓"; }
.purchase-backdrop[data-state="error"] .purchase-result-badge { background: var(--no); }
.purchase-backdrop[data-state="error"] .purchase-result-badge::before { content: "!"; }
.purchase-backdrop[data-state="success"] .purchase-loader-orbit,
.purchase-backdrop[data-state="error"] .purchase-loader-orbit,
.purchase-backdrop[data-state="confirm"] .purchase-loader-orbit {
  animation: none;
}
.purchase-backdrop[data-state="success"] .purchase-loader-orbit {
  border-color: color-mix(in srgb, var(--ok) 55%, transparent);
}
.purchase-backdrop[data-state="error"] .purchase-loader-orbit {
  border-color: color-mix(in srgb, var(--no) 50%, transparent);
}
.purchase-backdrop[data-state="confirm"] .purchase-loader-orbit {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.purchase-backdrop[data-state="success"] .purchase-backdrop-track,
.purchase-backdrop[data-state="error"] .purchase-backdrop-track,
.purchase-backdrop[data-state="confirm"] .purchase-backdrop-track,
.purchase-backdrop[data-state="loading"] .purchase-backdrop-actions {
  display: none;
}
.purchase-backdrop-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.purchase-backdrop-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.purchase-backdrop-detail {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.purchase-backdrop-detail:empty { display: none; }
.purchase-backdrop-phone {
  margin: 14px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.purchase-backdrop-phone[hidden] { display: none !important; }
.purchase-backdrop-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.purchase-backdrop-track {
  margin: 22px auto 0;
  width: min(220px, 70%);
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--sand);
}
.purchase-backdrop-track span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light));
  animation: purchase-slide 1.15s ease-in-out infinite;
}
.purchase-backdrop-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.purchase-backdrop-actions .btn { min-width: 132px; }
.purchase-backdrop-actions .btn[hidden] { display: none !important; }
@keyframes purchase-spin { to { transform: rotate(360deg); } }
@keyframes purchase-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.86); opacity: .72; }
}
@keyframes purchase-slide {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(280%); }
}
@keyframes purchase-veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes purchase-card-in {
  from { opacity: 0; transform: translateY(14px) scale(.975); }
  to { opacity: 1; transform: none; }
}
html[data-theme="dark"] .purchase-backdrop-panel {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 28px 70px -24px rgba(0,0,0,.72);
}
@media (prefers-reduced-motion: reduce) {
  .purchase-loader-orbit,
  .purchase-loader-glow,
  .purchase-backdrop-track span,
  .purchase-backdrop-veil,
  .purchase-backdrop-panel {
    animation: none;
  }
  .purchase-backdrop-track span { transform: none; width: 100%; opacity: .85; }
}

/* Profile — password row + change dialog */
.profile-panel { max-width: 560px; }
.profile-security {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.profile-security-label { font-size: 14px; font-weight: 700; }
.profile-security-copy p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.profile-security .btn { flex: 0 0 auto; }

html.pwd-modal-open,
html.pwd-modal-open body { overflow: hidden; }

.pwd-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.pwd-modal[hidden] { display: none !important; }
.pwd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #15171C 46%, transparent);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .2s ease;
}
.pwd-modal.is-open .pwd-modal-backdrop { opacity: 1; }
.pwd-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: min(720px, calc(100dvh - 48px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--ink);
  background-color: var(--surface);
  background-image:
    linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 42%, transparent 88%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent-light) 26%, transparent), transparent 46%),
    linear-gradient(165deg, var(--surface) 0%, var(--surface-alt) 100%);
  background-size: 100% 3px, 240px 180px, auto;
  background-repeat: no-repeat;
  background-position: top left, top right, 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 28px 64px -32px rgba(21,23,28,.5),
    0 12px 28px -18px color-mix(in srgb, var(--accent) 22%, transparent);
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition: opacity .2s ease, transform .2s ease;
}
.pwd-modal.is-open .pwd-dialog {
  opacity: 1;
  transform: none;
}
.pwd-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.pwd-dialog-close:hover {
  color: var(--ink);
  border-color: var(--line-2);
  background: var(--sand);
}
.pwd-dialog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 36px;
}
.pwd-dialog-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.pwd-dialog h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.pwd-dialog .lead {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.pwd-form { margin-top: 18px; }
.pwd-editor {
  overflow: auto;
  min-height: 0;
  padding: 28px 28px 24px;
}
.pwd-editor[hidden],
.pwd-success[hidden] { display: none !important; }
.pwd-dialog .field input {
  height: 48px;
  background: color-mix(in srgb, var(--surface) 68%, var(--sand));
  border-color: var(--line);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pwd-dialog .field input:hover { border-color: var(--line-2); }
.pwd-dialog .field input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.pwd-guide { display: flex; flex-direction: column; gap: 10px; }
.pwd-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  height: 4px;
}
.pwd-meter[hidden] { display: none !important; }
.pwd-meter span {
  border-radius: 99px;
  background: var(--line);
}
.pwd-meter[data-score="1"] span:nth-child(-n+1) { background: var(--no); }
.pwd-meter[data-score="2"] span:nth-child(-n+2) { background: var(--warn); }
.pwd-meter[data-score="3"] span:nth-child(-n+3) { background: var(--accent); }
.pwd-meter[data-score="4"] span:nth-child(-n+4) { background: var(--ok); }
.pwd-rules {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--sand) 70%, var(--surface));
}
.pwd-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
}
.pwd-rules li[data-rule="match"] { grid-column: 1 / -1; }
.pwd-rules li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  flex-shrink: 0;
}
.pwd-rules li.is-met { color: var(--ok); }
.pwd-rules li.is-met::before {
  border-color: var(--ok);
  background-color: var(--ok);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.4'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.pwd-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.pwd-dialog-actions .btn { flex: 1 1 0; }
.pwd-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  overflow: auto;
  min-height: 0;
  padding: 48px 28px 24px;
}
.pwd-success-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
}
.pwd-success h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.025em;
}
.pwd-success p { color: var(--ink-2); max-width: 32ch; }
.pwd-success .btn { width: 100%; margin-top: 12px; }
html[data-theme="dark"] .pwd-modal-backdrop {
  background: color-mix(in srgb, #000 64%, transparent);
}
html[data-theme="dark"] .pwd-dialog {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 28px 64px -24px rgba(0,0,0,.72);
}
html[data-theme="dark"] .pwd-dialog .field input {
  background: color-mix(in srgb, var(--surface) 85%, #000);
}
html[data-theme="dark"] .pwd-rules li.is-met::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2311171C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.4'/%3E%3C/svg%3E");
}
@media (max-width: 600px) {
  .profile-security { flex-direction: column; align-items: stretch; }
  .profile-security .btn { width: 100%; }
  .pwd-modal { padding: 0; align-items: end; }
  .pwd-dialog {
    width: 100%;
    max-height: min(92dvh, 760px);
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
  .pwd-editor,
  .pwd-success {
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  }
  .pwd-success { padding-top: 48px; }
  .pwd-dialog h2 { font-size: 26px; }
  .pwd-rules { grid-template-columns: 1fr; }
  .pwd-dialog-actions { flex-direction: column; }
  .pwd-dialog-actions .btn { width: 100%; }
}

/* --- Alipay coupon ops + top-up ------------------------------------------------ */
.alipay-ops-controls {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(180px, 220px);
  gap: 16px;
}
.alipay-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.alipay-value-button {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: auto;
  padding: 12px 14px;
  text-align: left;
}
.alipay-value-amount { font-size: 17px; font-weight: 700; }
.alipay-value-meta { font-size: 12px; color: var(--muted); }
.alipay-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 200px) minmax(140px, 180px) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}
.alipay-filters-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.alipay-steps {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  padding-left: 22px;
  color: var(--muted);
}
.alipay-steps li { line-height: 1.55; }
.alipay-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0; }
.alipay-code-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.alipay-code-form .field { flex: 1 1 260px; }
.alipay-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) {
  .alipay-ops-controls,
  .alipay-filters { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* Locale: language suggestion card (IP/browser detection)            */
/* ------------------------------------------------------------------ */
.lang-suggest {
  position: fixed;
  inset-inline-start: 24px;
  bottom: 24px;
  z-index: 80;
  width: min(430px, calc(100vw - 32px));
  padding: 20px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 26px 70px -24px rgba(21, 23, 28, .4), 0 2px 8px rgba(21, 23, 28, .06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  animation: lang-suggest-in .35s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes lang-suggest-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-suggest.is-hiding { opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.lang-suggest-close {
  position: absolute;
  inset-inline-end: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.lang-suggest-close:hover { background: var(--sand); color: var(--ink); }
.lang-suggest-title {
  margin: 0;
  padding-inline-end: 26px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.lang-suggest-name { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lang-flag {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(21, 23, 28, .14);
  overflow: hidden;
}
.lang-suggest-copy { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.lang-suggest-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.lang-suggest-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14.5px;
  flex: 1 1 auto;
  justify-content: center;
}
@media (max-width: 560px) {
  .lang-suggest {
    inset-inline: 12px;
    bottom: 12px;
    width: auto;
    padding: 18px;
  }
  .lang-suggest-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-suggest { animation: none; }
}

/* ------------------------------------------------------------------ */
/* Locale: Devanagari and Urdu typography                             */
/* ------------------------------------------------------------------ */
html[lang="hi"] {
  /* Latin first: Manrope draws English and numbers, Devanagari falls through
     to Noto. Putting the script font first made Latin headings and labels
     render in the Devanagari face. */
  --font-display: "Fraunces", "Noto Sans Devanagari", Georgia, serif;
  --font-body: "Manrope", "Noto Sans Devanagari", system-ui, sans-serif;
}
html[lang="hi"] .display,
html[lang="hi"] .h2 { letter-spacing: 0; line-height: 1.25; }
html[lang="hi"] .eyebrow { letter-spacing: 0.05em; }

html[lang="ur"] {
  /* Same rule as Hindi: Latin and digits use the brand fonts, Urdu script
     falls through to Naskh/Nastaliq. This keeps "English", "Русский" and
     money values identical to every other locale. */
  --font-display: "Fraunces", "Noto Nastaliq Urdu", "Noto Naskh Arabic", Georgia, serif;
  --font-body: "Manrope", "Noto Naskh Arabic", "Noto Nastaliq Urdu", system-ui, sans-serif;
}
html[lang="ur"] body { line-height: 1.85; }
html[lang="ur"] .display,
html[lang="ur"] .h2 {
  letter-spacing: 0;
  line-height: 1.75;
  font-weight: 600;
}
html[lang="ur"] .eyebrow { letter-spacing: 0; text-transform: none; }
html[lang="ur"] .btn,
html[lang="ur"] .main-nav,
html[lang="ur"] .lang { line-height: 1.9; }
html[lang="ur"] input,
html[lang="ur"] select,
html[lang="ur"] textarea { font-family: var(--font-body); }

/* ------------------------------------------------------------------ */
/* Locale switcher: one row per language, identical alignment          */
/* ------------------------------------------------------------------ */
.lang-current { display: inline-flex; align-items: center; gap: 7px; min-width: 0; line-height: 1; }
.lang-current .lang-flag { width: 20px; height: 14px; }
.lang-chev { color: var(--muted); flex: 0 0 auto; }
.lang-dropdown { min-width: 212px; }
.lang-dropdown .lang-flag { width: 22px; height: 15px; }
.lang-dropdown a bdi {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-weight: 600;
}
.lang-dropdown a[aria-current="true"] bdi { font-weight: 700; }
.lang-check { margin-inline-start: auto; color: var(--accent); flex: 0 0 auto; }

/* Keep the header one row on 13–16" laptops: tighten gaps before the nav
   collapses, and drop the duplicated “Get a number” button when the session
   pill + long localised nav labels no longer fit. */
@media (max-width: 1600px) {
  .main-nav { gap: 16px; font-size: 14px; }
  .header-actions { gap: 10px; }
  .header-actions .btn-dark { padding: 0 14px; }
  .brand-name { font-size: 21px; }
}
@media (max-width: 1480px) {
  .site-header.is-auth .header-actions > .btn-dark { display: none; }
}

/* Mobile menu language picker: 2-column grid with native names and flags */
.mobile-lang {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 0 4px;
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.mobile-menu .mobile-lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
}
.mobile-menu .mobile-lang-item:hover { border-color: var(--line-2); background: var(--surface); }
.mobile-menu .mobile-lang-item[aria-current="true"] {
  border-color: var(--accent);
  background: var(--sand);
}
.mobile-lang-item bdi { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-lang-item .lang-flag { width: 22px; height: 15px; }
.mobile-lang-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (max-width: 480px) {
  .header-tools .theme-toggle { display: none; }
  .brand-name { font-size: 19px; }
  .brand-logo, .brand img { width: 28px; height: 28px; }
}

/* ------------------------------------------------------------------ */
/* Cookie consent: bottom card + settings dialog                      */
/* ------------------------------------------------------------------ */
.cookie-consent {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 95;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 70px -28px rgba(21, 23, 28, .45), 0 2px 8px rgba(21, 23, 28, .06);
  color: var(--ink);
  animation: cookie-in .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-icon { display: block; line-height: 0; }
.cookie-consent-icon svg { width: 44px; height: 44px; }
.cookie-consent-title {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.cookie-consent-copy { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.cookie-consent-copy a { color: var(--accent); font-weight: 600; }
.cookie-consent-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.cookie-consent-actions .btn {
  min-height: 42px;
  padding: 0 12px;
  font-size: 14px;
  justify-content: center;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, .55);
  backdrop-filter: blur(2px);
}
.cookie-modal-card {
  position: relative;
  width: min(480px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
  color: var(--ink);
}
.cookie-modal-card h2 {
  margin: 0 0 8px;
  padding-inline-end: 34px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}
html[lang="ur"] .cookie-modal-card h2 { font-size: 23px; line-height: 2; padding-top: 12px; }
.cookie-modal-copy { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cookie-modal-close {
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.cookie-modal-close:hover { background: var(--sand); color: var(--ink); }
.cookie-options { list-style: none; margin: 8px 0 0; padding: 0; }
.cookie-options > li { border-top: 1px solid var(--line-soft); }
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
}
.cookie-option-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cookie-option-text strong { font-size: 15px; font-weight: 700; }
.cookie-option-text small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.cookie-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.cookie-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--line-2);
  transition: background .18s ease;
}
.cookie-switch > span {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .18s ease;
}
.cookie-switch.is-on { background: var(--accent); }
.cookie-switch.is-on > span { transform: translateX(18px); }
.cookie-switch.is-locked { opacity: .75; }
.cookie-option input:checked + .cookie-switch { background: var(--accent); }
.cookie-option input:checked + .cookie-switch > span { transform: translateX(18px); }
html[dir="rtl"] .cookie-switch.is-on > span,
html[dir="rtl"] .cookie-option input:checked + .cookie-switch > span { transform: translateX(-18px); }
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-actions .btn { min-height: 46px; padding: 0 18px; }
html.cookie-modal-open { overflow: hidden; }

.footer-cookie {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}
.footer-cookie:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 560px) {
  .cookie-consent {
    inset-inline: 12px;
    bottom: 12px;
    width: auto;
    padding: 16px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }
  .cookie-consent-icon svg { width: 38px; height: 38px; }
  .cookie-consent-actions .btn { font-size: 13.5px; padding: 0 10px; }
  .cookie-modal { padding: 12px; }
  .cookie-modal-card { padding: 22px 18px; }
  .cookie-modal-actions { flex-direction: column-reverse; }
  .cookie-modal-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent { animation: none; }
}

@media (max-width: 600px) {
  .fc-badge-flag .lang-flag { width: 20px; height: 14px; }
}

/* Phones keep a compact flag switcher in the header; the full grid stays in
   the burger menu for signed-in users who need the room for balance + account. */
@media (max-width: 600px) {
  .site-header:not(.is-auth) .header-actions .lang-menu { display: block; }
  .site-header:not(.is-auth) .header-actions .lang {
    display: inline-flex;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
  .site-header:not(.is-auth) .lang-code,
  .site-header:not(.is-auth) .lang-chev { display: none; }
  .site-header:not(.is-auth) .lang-current .lang-flag { width: 24px; height: 16px; }
  .lang-dropdown { max-height: calc(100vh - 108px); }
}

/* Copy buttons: say what exactly is copied (full number vs. without country code). */
.pay-icon-btn[data-tip] { position: relative; }
.pay-icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  padding: 6px 10px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  z-index: 20;
}
.pay-icon-btn[data-tip]:hover::after,
.pay-icon-btn[data-tip]:focus-visible::after { opacity: 1; }
.pay-icon-btn.is-copied[data-tip]::after { opacity: 0; }
.history-phone { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.history-phone .mono { font-size: 15px; }
.history-phone .pay-icon-btn,
.history-codes .pay-icon-btn { flex-basis: 36px; width: 36px; height: 36px; min-height: 36px; }
@media (prefers-reduced-motion: reduce) { .pay-icon-btn[data-tip]::after { transition: none; } }

/* Live numbers board: a card that just changed (new SMS, status) glows briefly. */
.number-card.is-fresh { animation: number-card-fresh 1.6s ease-out; }
@keyframes number-card-fresh {
  0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
  100% { box-shadow: 0 0 0 3px transparent; }
}
@media (prefers-reduced-motion: reduce) { .number-card.is-fresh { animation: none; } }
