:root {
  color-scheme: dark;
  --type-page-title: clamp(1.65rem, 3vw, 2rem);
  --type-ui: .875rem;
  --type-caption: .75rem;
  --bg: #100f16;
  --surface: #181720;
  --surface-2: #201e2b;
  --surface-hover: #282533;
  --border: #302d3c;
  --border-strong: #464054;
  --text: #f5f3fb;
  --text-secondary: #cfcbda;
  --text-muted: #aaa4ba;
  --accent: #bcadff;
  --accent-solid: #b39dff;
  --accent-hover: #c8b8ff;
  --accent-text: #1d1437;
  --accent-wash: #2c2345;
  --accent-border: #554477;
  --success: #80dfb1;
  --danger: #ff9ba8;
  --warning: #edc387;
  --hero-bg: #1f1831;
  --hero-border: #46345d;
  --hero-glow: #8860d328;
  --hero-grid: #a489d657;
  --shadow: 0 20px 56px #09071167;
  font-family: "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5fb;
  --surface: #fff;
  --surface-2: #f2eef9;
  --surface-hover: #eae4f5;
  --border: #dfd9eb;
  --border-strong: #c9bedb;
  --text: #241c32;
  --text-secondary: #4b415b;
  --text-muted: #675d76;
  --accent: #603bb5;
  --accent-solid: #6743bd;
  --accent-hover: #5434a4;
  --accent-text: #fff;
  --accent-wash: #eee6fb;
  --accent-border: #c9b1f3;
  --success: #186947;
  --danger: #a92d48;
  --warning: #845408;
  --hero-bg: #efe7fb;
  --hero-border: #dfd0f4;
  --shadow: 0 20px 56px #3b215a28;
}

:root[data-palette="yellow"] {
  --bg: #121315;
  --surface: #191b1e;
  --surface-2: #222429;
  --surface-hover: #2a2d32;
  --border: #303238;
  --border-strong: #464950;
  --text: #f5f5f7;
  --text-secondary: #d4d6dc;
  --text-muted: #abadb7;
  --accent: #ffd565;
  --accent-solid: #ffd259;
  --accent-hover: #ffe28a;
  --accent-text: #251a06;
  --accent-wash: #302a1d;
  --accent-border: #715623;
  --hero-bg: #181a1e;
  --hero-border: #30333a;
  --hero-glow: #77829519;
  --hero-grid: #bec7d033;
  --shadow: 0 20px 56px #06070966;
}

:root[data-palette="yellow"][data-theme="light"] {
  --bg: #f6f7f8;
  --surface: #fff;
  --surface-2: #eff0f2;
  --surface-hover: #e5e7ea;
  --border: #dfe1e5;
  --border-strong: #c7cad0;
  --text: #202228;
  --text-secondary: #3e414b;
  --text-muted: #5f636f;
  --accent: #895300;
  --accent-solid: #ffd259;
  --accent-hover: #ffd96e;
  --accent-text: #251a06;
  --accent-wash: #fff0c8;
  --accent-border: #e8c575;
  --hero-bg: #eceef0;
  --hero-border: #dadde2;
  --shadow: 0 20px 56px #1f253b22;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }
html:has(dialog[open]) { overflow: hidden; overscroll-behavior: none; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 70%, var(--text-muted)) var(--bg); }
@supports not (scrollbar-color: red blue) {
  *::-webkit-scrollbar { width: 7px; height: 7px; }
  *::-webkit-scrollbar-track { background: var(--bg); }
  *::-webkit-scrollbar-thumb { background: var(--accent); border: 1px solid var(--bg); border-radius: 8px; }
}
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.5; }
h1, h2, h3, p, ol, pre { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .58; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: min(100% - 64px, 1320px); margin-inline: auto; }
.mono, code { font-family: "Cascadia Mono", "Consolas", monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); font-size: .875rem; }
.danger { color: var(--danger); }
.icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
.small-icon { width: 15px; height: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { width: min(100% - 64px, 1320px); margin-inline: auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 1.42rem; font-weight: 760; letter-spacing: -.065em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--accent); flex: 0 0 auto; }
.brand-logo { display: block; width: 38px; height: 38px; object-fit: contain; }
.brand-mark .icon { width: 21px; height: 21px; }
.brand-accent { color: var(--accent); }
.nav, .header-actions, .guest-controls, .user-controls { display: flex; align-items: center; gap: 6px; }
.nav { justify-content: center; }
.nav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-muted); font-size: .9rem; font-weight: 600; padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
.nav-count, .notification-count { display: inline-flex; justify-content: center; align-items: center; min-width: 18px; min-height: 18px; border-radius: 999px; padding-inline: 3px; background: var(--accent-solid); color: var(--accent-text); font-size: .68rem; font-weight: 760; font-variant-numeric: tabular-nums; line-height: 1; }
.notifications-trigger, .number-action { position: relative; }
.notification-count { position: absolute; z-index: 1; top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--surface); }
.nav-btn:hover { background: var(--surface-hover); color: var(--text); }
.nav-btn.active { background: var(--accent-wash); color: var(--accent); }
.header-actions { gap: 10px; flex: 0 0 auto; }
.user-controls { gap: 8px; }
.btn, .icon-btn, .section-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; font-weight: 650; line-height: 1.2; }
.btn { padding: 10px 15px; min-height: 40px; border: 1px solid transparent; font-size: .875rem; white-space: nowrap; }
.btn-primary { background: var(--accent-solid); color: var(--accent-text); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--border-strong); }
.btn-ghost { color: var(--text-secondary); background: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface-hover); }
.btn-outline-accent { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-border); }
.btn-outline-accent:hover { border-color: var(--accent); }
.btn-danger-soft { background: var(--surface); border-color: var(--border); color: var(--danger); }
.btn-danger-soft:hover:not(:disabled) { border-color: var(--danger); }
.btn-sm { min-height: 34px; padding: 7px 10px; font-size: .8125rem; }
.icon-btn { width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); color: var(--text-secondary); background: var(--surface); flex: 0 0 auto; }
.icon-btn:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border-strong); }
.profile-wrap { position: relative; }
.profile-trigger { display: flex; align-items: center; gap: 8px; padding: 4px 7px; min-height: 40px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent-wash); color: var(--accent); }
.profile-details { display: grid; text-align: left; line-height: 1.25; font-size: .8rem; }
.profile-email-short { max-width: 126px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); }
.dropdown { display: none; position: absolute; z-index: 5; top: calc(100% + 9px); right: 0; min-width: 232px; padding: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }
.dropdown.open { display: grid; }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: .875rem; }
.dropdown-item:hover { background: var(--surface-hover); }

.hero-wrap { grid-area: hero; container-type: inline-size; min-width: 0; }
.home-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 12px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.home-metric { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 5px; min-width: 0; min-height: 33px; padding: 4px 7px; font-size: .8125rem; }
.home-metric dt { display: flex; align-items: center; gap: 5px; color: var(--text-muted); }
.home-metric dt::before { content: ""; inline-size: 5px; block-size: 5px; flex: none; border-radius: 50%; background: var(--success); }
.home-metric dd { margin: 0; font-weight: 680; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-metric dd a { color: var(--accent); }
.home-metric dd a:hover { text-decoration: underline; }
.hero { min-height: 355px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; overflow: hidden; isolation: isolate; border: 1px solid var(--hero-border); border-radius: 19px; background: radial-gradient(ellipse at 82% 54%, var(--hero-glow), transparent 61%), var(--hero-bg); }
.hero-copy { padding: 36px 12px 36px 34px; }
.hero h1 { font-size: clamp(2.2rem, 5.55cqi, 3.35rem); line-height: 1.07; letter-spacing: -.045em; font-weight: 780; }
.hero h1 span { display: block; color: var(--accent); }
.hero-copy p { max-width: 42ch; margin-top: 16px; color: var(--text-secondary); font-size: 1rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-actions .btn { min-height: 44px; padding-inline: 15px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--text-secondary); font-size: .8125rem; }
.hero-benefits li { display: flex; align-items: center; gap: 5px; }
.hero-benefits .icon { flex: none; inline-size: 14px; block-size: 14px; color: var(--success); }
.hero-payments { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; margin-top: 18px; color: var(--text-muted); font-size: .78rem; }
.hero-payments ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.hero-payments li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text-secondary); font-size: .72rem; font-weight: 670; }
.payment-symbol { inline-size: 16px; block-size: 16px; flex: none; object-fit: contain; }
.payment-wordmark { display: block; }
.payment-mir { margin-inline: -3px; }
:root[data-theme="dark"] .payment-visa { filter: brightness(0) invert(1); }
.hero-art { position: relative; align-self: stretch; min-width: 0; background: radial-gradient(circle, var(--hero-grid) .8px, transparent 1px) center / 15px 15px; }
.hero-orbit { position: absolute; inset: 23% 12%; transform: rotate(-21deg); border: 1px solid var(--border-strong); border-radius: 50%; }
.hero-orbit::after { content: ""; position: absolute; inset: -17px; border: 1px solid var(--border); border-radius: inherit; }
.hero-art-mark { position: absolute; z-index: 1; inset-block-start: calc(50% - 120px); inset-inline-end: 16%; display: grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 12px; background: var(--accent-solid); color: var(--accent-text); transform: rotate(12deg); box-shadow: var(--shadow); }
.hero-art-mark .icon { width: 24px; height: 24px; }
.hero-art .hero-number-preview, .hero-art .hero-sms-preview { position: absolute; border-color: var(--border-strong); box-shadow: var(--shadow); }
.hero-number-preview { inset-block-start: calc(50% - 81px); inset-inline-start: 6%; inline-size: min(78%, 255px); padding: 12px; transform: rotate(-7deg); }
.hero-preview-header { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.hero-preview-header .icon { padding: 6px; background: var(--accent-wash); color: var(--accent); border-radius: 8px; box-sizing: content-box; }
.hero-number-preview .order-phone { justify-content: space-between; margin-block: 10px 8px; font-size: clamp(.88rem, 1.9cqi, 1.1rem); }
.hero-sms-preview { inset-block-start: calc(50% + 36px); inset-inline-end: 8%; inline-size: min(62%, 193px); transform: rotate(6deg); }
.hero-sms-preview .sms-chat-meta { align-items: center; flex-wrap: nowrap; gap: 6px; }
.hero-sms-preview .sms-chat-meta .icon { width: 14px; height: 14px; }
.hero-sms-check { color: var(--success); margin-inline-start: auto; }

.main-wrap { margin-top: 24px; margin-bottom: 46px; flex: 1 0 auto; min-width: 0; container: workspace / inline-size; }
.page-title { font-size: var(--type-page-title); font-weight: 740; line-height: 1.2; letter-spacing: -.036em; }
.page-intro { margin-bottom: 20px; }
.page-intro .page-title { margin-bottom: 8px; }
.page-intro p { max-width: 67ch; color: var(--text-secondary); }
.legal-layout { display: none; grid-template-columns: minmax(215px, 260px) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 56px); }
.legal-layout:has(:target), #view-privacy:not(:has(.legal-layout :target)) > .legal-layout:first-child { display: grid; }
.legal-nav { position: sticky; inset-block-start: 16px; max-block-size: calc(100dvh - 32px); padding: 0 16px 0 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; border-inline-end: 1px solid var(--border); }
.legal-nav-group summary { display: flex; align-items: center; justify-content: space-between; min-block-size: 44px; gap: 8px; padding: 8px; font-size: .9rem; font-weight: 680; cursor: pointer; list-style: none; }
.legal-nav-group summary::-webkit-details-marker { display: none; }
.legal-nav-group summary .icon { flex: none; inline-size: 15px; block-size: 15px; color: var(--text-muted); }
.legal-nav-group[open] summary .icon { transform: rotate(180deg); }
.legal-nav-group ol { margin: 0 0 8px; padding: 0; list-style: none; }
.legal-nav-group a { display: block; border-inline-start: 2px solid transparent; border-radius: 4px; padding: 7px 8px 7px 10px; color: var(--text-secondary); font-size: .875rem; }
.legal-nav-group a:hover, .legal-nav-group summary:hover { background: var(--surface-hover); }
.legal-nav-group a[aria-current="location"] { border-inline-start-color: var(--accent); background: var(--accent-wash); color: var(--accent); font-weight: 650; }
.legal-nav :is(a, summary):focus-visible { outline-offset: -2px; }
.legal-content { min-width: 0; max-width: 76ch; }
.legal-content [id] { scroll-margin-block-start: 20px; }
.legal-content .page-title { margin-block-end: 24px; scroll-margin-block-start: 150px; }
.legal-content section + section { margin-block-start: 20px; }
.legal-content section h2 { margin-block-end: 6px; font-size: 1.125rem; font-weight: 700; }
.legal-content h3 { margin-block: 16px 6px; font-size: 1rem; }
.legal-content :is(p, li) { color: var(--text-secondary); line-height: 1.65; }
.legal-content p + p, .legal-content li + li { margin-block-start: 6px; }
.legal-content ul { margin: 0; padding-inline-start: 22px; }
.legal-content .page-title:has(+ .legal-revision) { margin-block-end: 8px; }
.legal-content .legal-revision { color: var(--text-muted); font-size: .875rem; }
.legal-content .legal-intro { margin-block: 12px 24px; }
.legal-content p + ul, .legal-content ul + p { margin-block-start: 8px; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-nav { position: static; max-block-size: none; padding: 0 12px; overflow: visible; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
}
.section-link { flex: 0 0 auto; padding: 7px 0; color: var(--accent); font-size: .875rem; }
.section-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.shell { display: grid; grid-template-columns: clamp(327px, 31vw, 372px) minmax(0, 1fr); grid-template-areas: "catalog content"; align-items: start; gap: 18px; }
.shell[data-route="/"] { grid-template-areas: "catalog hero" "catalog content"; grid-template-rows: auto 1fr; }
.shell:is([data-route="/number"], [data-route="/mail"]) { grid-template-areas: "catalog intro" "catalog content"; grid-template-rows: auto 1fr; }
.workspace-intro { display: none; grid-area: intro; min-width: 0; }
.shell[data-route="/number"] #numberIntro, .shell[data-route="/mail"] #mailIntro { display: block; }
.workspace-intro .page-title { margin: 0; }
.shell.full-width { grid-template-columns: minmax(0, 1fr); grid-template-areas: "content"; }
.shell.full-width .left-sidebar { display: none; }
.main-content { grid-area: content; container: order-pane / inline-size; }
.left-sidebar { grid-area: catalog; }
@media (min-width: 761px) {
  .left-sidebar {
    position: sticky;
    top: 12px;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    scrollbar-gutter: stable;
  }
}
.main-content, .left-sidebar { min-width: 0; }
.shell[data-route="/mail"] .left-sidebar, .catalog-column, .card, .ref-card, .faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; }
.view-section { display: none; }
.view-section.active { display: block; }
.page-title { margin-bottom: 16px; }
.card-title.page-title { margin-bottom: 0; }
.card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 19px; border-bottom: 1px solid var(--border); }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 700; }
.card-body { padding: 22px; }

.catalog-instruction { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin: 0 12px 12px; padding: 8px 10px; border: 1px solid var(--accent-border); border-radius: 9px; background: var(--accent-wash); color: var(--accent); font-size: .85rem; font-weight: 650; }
.catalog-instruction .icon-btn { flex: 0 0 auto; width: 27px; height: 27px; color: inherit; background: transparent; }
.catalog-column.catalog-guided { border-color: var(--accent); }
.mail-picker.catalog-guided { box-shadow: inset 0 0 0 1px var(--accent-border); border-radius: 11px; }
.catalog-column > .catalog-instruction, .mail-picker > .catalog-instruction { margin: 0 0 10px; }
.catalog-instruction[data-float] { position: fixed; z-index: 8; left: var(--guide-left); top: var(--guide-top); margin: 0; width: max-content; max-width: min(205px, calc(100vw - var(--guide-left) - 9px)); box-shadow: var(--shadow); }
.catalog-instruction[data-float]::before { content: ""; position: absolute; top: calc(50% - 4px); left: -5px; width: 8px; height: 8px; background: var(--accent-wash); border-left: 1px solid var(--accent-border); border-bottom: 1px solid var(--accent-border); transform: rotate(45deg); }
.catalog-instruction[data-offscreen] { visibility: hidden; }
.catalog-toolbar .mode-tabs { display: flex; flex: 1; }
.catalog-toolbar .mode-btn { flex: 1; min-block-size: var(--catalog-control-size); }
.catalog-toolbar { --catalog-control-size: 36px; display: flex; align-items: center; gap: 10px; }
.catalog-toolbar .catalog-help { color: var(--accent); background: var(--bg); }
.catalog-toolbar .catalog-help:hover { background: var(--surface-hover); }
.mode-tabs, .segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.mode-btn, .segmented-btn, .pill-btn, .dur-chip { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text-muted); font-size: .875rem; font-weight: 650; }
.mode-btn:hover, .segmented-btn:hover, .pill-btn:hover, .dur-chip:hover { color: var(--text); background: var(--surface-hover); }
.mode-btn.active, .segmented-btn.active, .pill-btn.active, .dur-chip.active { background: var(--accent-wash); border-color: var(--accent-border); color: var(--accent); }
.mode-btn .icon { width: 16px; height: 16px; }
.catalog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-block-start: 12px; }
.catalog-column { min-width: 0; padding: 14px 15px 15px; }
.catalog-column:has(> .catalog-selection:not([hidden])) { padding: 0; border-color: var(--accent-border); background: var(--accent-wash); }
.catalog-selection { border-radius: inherit; }
.step-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 24px; margin-bottom: 9px; color: var(--text-muted); font-size: .8125rem; }
.step-label h3 { color: var(--text); font-size: .9375rem; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.selected-service { color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-box { position: relative; margin-bottom: 9px; min-width: 0; }
.search-box > .icon { position: absolute; top: 50%; left: 11px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; width: 16px; height: 16px; }
.input { width: 100%; min-width: 0; min-height: 41px; padding: 8px 11px; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 8px; font-size: .9375rem; }
.input::placeholder { color: var(--text-muted); opacity: 1; }
.input:focus { border-color: var(--accent); }
.search-box .input { padding-left: 35px; font-size: .875rem; }
.country-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-bottom: 9px; }
.country-filters .search-box { margin-bottom: 0; }
.sort-box { position: relative; }
.sort-box select { appearance: none; cursor: pointer; padding-left: 8px; padding-right: 24px; font-size: .78125rem; }
.sort-box .icon { position: absolute; top: 50%; right: 7px; width: 13px; height: 13px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.list-message { color: var(--text-muted); font-size: .875rem; padding: 17px 8px; text-align: center; }
.list-message button { margin-top: 8px; }
.scroll-list { display: grid; gap: 3px; }
.scroll-list.expanded { max-height: 342px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.catalog-column .scroll-list {
  --catalog-row-size: 3.375rem;
  --catalog-row-gap: 3px;
  grid-auto-rows: var(--catalog-row-size);
  gap: var(--catalog-row-gap);
  overflow: hidden auto;
  scrollbar-gutter: stable;
  overflow-anchor: none;
}
.catalog-column .scroll-list.expanded {
  max-block-size: calc(var(--catalog-visible-rows) * var(--catalog-row-size) + (var(--catalog-visible-rows) - 1) * var(--catalog-row-gap));
  overscroll-behavior-y: auto;
}
.catalog-column .scroll-list:has(> .list-message) { grid-auto-rows: auto; }
.catalog-column .scroll-list button:focus-visible { outline-offset: -2px; }
.service-item, .country-item { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 44px; padding: 4px 7px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; }
.service-item.active { background: var(--accent-wash); border-color: var(--accent-border); }
.service-item:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.country-option:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.country-option .country-sub { display: block; }
.catalog-choice { display: grid; grid-template-columns: 15px 26px minmax(0, 1fr) 15px; align-items: center; gap: 9px; width: 100%; min-block-size: 46px; padding: 7px 12px; border: 0; border-radius: inherit; background: transparent; color: var(--text); text-align: left; }
.catalog-choice:hover { background: var(--surface-hover); }
.catalog-choice:focus-visible { outline-offset: -3px; }
.catalog-choice > .icon { width: 15px; height: 15px; color: var(--text-muted); }
.catalog-choice-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-choice-check { color: var(--accent); }
.catalog-choice-check .icon { width: 15px; height: 15px; }
.catalog-purchase { display: grid; gap: 9px; margin-block-start: 12px; }
.catalog-purchase h3 { font-size: .9375rem; }
.catalog-purchase-detail { display: flex; align-items: center; gap: 9px; min-width: 0; }
.purchase-logos { display: flex; align-items: center; flex: 0 0 auto; }
.purchase-logos .logo-tile { margin-inline-start: -6px; }
.purchase-copy { min-width: 0; overflow-wrap: anywhere; }
.purchase-copy strong { font-size: .875rem; }
.catalog-purchase .btn:disabled { cursor: default; }
.country-item + .country-item,
:where([data-theme="light"] .catalog-column) .service-item + .service-item { border-top: 1px solid var(--border); border-top-left-radius: 0; border-top-right-radius: 0; }
.service-info, .country-info { display: flex; align-items: center; gap: 8px; min-width: 0; }
.service-text { min-width: 0; }
.service-name, .country-name { display: block; font-size: var(--type-ui); font-weight: 650; overflow-wrap: anywhere; }
.service-sub, .country-sub { color: var(--text-muted); font-size: var(--type-caption); }
.catalog-column .country-option .country-info > span:last-child { min-width: 0; }
.catalog-column .country-option .country-line { flex-wrap: nowrap; }
.catalog-column :is(.service-name, .country-name, .service-sub, .country-sub) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-buy { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; }
.country-buy .btn-primary { color: var(--accent); background: var(--surface-2); border-color: var(--border-strong); }
.country-buy .btn-primary:hover:not(:disabled) { color: var(--accent-text); background: var(--accent-solid); border-color: var(--accent-solid); }
.price-pill, .country-price { color: var(--text); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.price-pill { color: var(--text-secondary); }
.service-item.active .price-pill { color: var(--accent); }
.logo-tile { position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; background: var(--surface-2); color: var(--text-secondary); }
.logo-tile .icon { width: 17px; height: 17px; }
.logo-tile.brand-tile { background: transparent; }
.service-avatar { display: block; width: 24px; height: 24px; background: url('/images/flashsms/service-avatars-v6.webp') no-repeat; background-size: 192px auto; }
.service-monogram { --monogram-color: #6884e8; color: var(--text-secondary); background: color-mix(in srgb, var(--monogram-color) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--monogram-color) 25%, var(--border)); font-size: .69rem; font-weight: 750; letter-spacing: -.01em; }
.service-monogram[data-color="1"] { --monogram-color: #2d9a7a; }
.service-monogram[data-color="2"] { --monogram-color: #9969d3; }
.service-monogram[data-color="3"] { --monogram-color: #cb7597; }
.service-monogram[data-color="4"] { --monogram-color: #c39649; }
.service-monogram[data-color="5"] { --monogram-color: #4a9eb4; }
.service-monogram[data-color="6"] { --monogram-color: #d57b65; }
.mono-symbol { filter: brightness(0); }
:root[data-theme="dark"] .mono-symbol { filter: brightness(0) invert(.93); }
:root[data-theme="dark"] .contrast-symbol { filter: drop-shadow(0 0 1px #d8dde6); }
.brand-symbol { width: 23px; height: 23px; }
.flag-tile { position: relative; display: grid; place-items: center; width: 26px; height: 19px; flex: 0 0 26px; color: var(--text-muted); }
.flag-tile .icon { width: 15px; height: 15px; }
.flag-tile img { position: absolute; inset: 0; margin: auto; width: 26px; height: 19px; border-radius: 3px; object-fit: cover; opacity: 0; }
.flag-tile.loaded img { opacity: 1; }
.flag-tile.loaded .icon { visibility: hidden; }
.catalog-choice > :is(.logo-tile, .flag-tile) { width: 26px; height: 26px; }
.catalog-choice .flag-tile img { width: 24px; height: 17px; }
.country-line { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.country-type { color: var(--accent); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; padding: 2px 7px; border-radius: 6px; background: var(--accent-wash); color: var(--accent); font-size: .75rem; font-weight: 650; line-height: 1.45; }
.show-all-btn { width: 100%; margin-top: 6px; padding: 8px 6px; border: 1px solid transparent; border-radius: 8px; color: var(--accent); background: transparent; font-size: .85rem; font-weight: 620; }
.show-all-btn .icon { margin-left: 4px; width: 14px; height: 14px; }
.show-all-btn:hover { background: var(--surface-hover); }
.dur-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 13px; }
.catalog-purchase .dur-chips { margin-block-end: 0; }
.dur-chip { background: var(--surface-2); border-color: var(--border); padding-inline: 9px; }
.mail-picker { display: grid; gap: 10px; padding: 19px; }
.mail-picker .search-box, .mail-picker .form-label { margin-bottom: 0; }
.mail-site-field { display: flex; align-items: center; padding-left: 35px; font-size: .875rem; }
.mail-site-field:focus-within { border-color: var(--accent); }
.mail-site-field:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.mail-site-field label { flex: none; color: var(--text-secondary); cursor: text; user-select: none; }
.mail-site-field input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: inherit; }
.mail-site-field input::placeholder { color: var(--text-muted); opacity: 1; }
.mail-picker .btn { justify-self: start; }
.mail-restriction { border-left: 2px solid var(--accent-border); padding-left: 10px; }
.mail-picker .step-label { align-items: start; flex-wrap: wrap; }

#view-home.active { display: grid; gap: 16px; }
.home-panel { padding: 20px 22px; }
.home-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 15px; margin-bottom: 13px; }
.home-panel h2 { font-size: clamp(1.08rem, 2.5cqi, 1.3rem); line-height: 1.25; font-weight: 730; letter-spacing: -.02em; }
.home-panel h3 { font-size: .95rem; line-height: 1.32; font-weight: 700; }
.home-panel p { margin-top: 4px; color: var(--text-secondary); font-size: .875rem; line-height: 1.5; }
.home-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.home-services a { display: flex; align-items: center; gap: 9px; min-height: 59px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); font-size: .875rem; font-weight: 680; }
.home-services a:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.home-services .brand-symbol { width: 22px; height: 22px; flex: none; }
.home-instagram { color: #d94483; }
.home-services span { overflow-wrap: anywhere; }
.home-services small { display: block; color: var(--text-muted); font-size: .75rem; font-weight: 530; font-variant-numeric: tabular-nums; }
.home-steps, .home-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.home-steps { list-style: none; }
.home-steps li { display: flex; align-items: start; gap: 10px; padding: 11px 2px; }
.home-step, .home-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--accent-wash); color: var(--accent); font-size: .875rem; font-weight: 750; }
.home-options { padding: 5px 0 0; }
.home-options .home-panel-head { padding: 0 2px; }
.home-formats article { display: grid; align-content: start; grid-template-rows: auto auto 1fr auto; gap: 7px; padding: 15px; }
.home-formats .section-link { justify-self: start; padding-block: 5px 0; }
.home-questions { border-top: 1px solid var(--border); }
.home-questions details + details { border-top: 1px solid var(--border); }
.home-questions summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 2px; cursor: pointer; font-size: .91rem; font-weight: 680; list-style: none; }
.home-questions summary::-webkit-details-marker { display: none; }
.home-questions summary .icon { color: var(--text-muted); }
.home-questions details[open] summary .icon { transform: rotate(180deg); }
.home-questions p { margin: 0 0 12px 2px; max-width: 65ch; }
.home-questions a { color: var(--accent); text-decoration: underline; }
.home-support { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 14px; }
.home-support .btn { margin-inline-start: auto; }

@container (max-width: 720px) {
  .home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 520px) {
  .home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 14px; }
  .home-metric:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .home-steps, .home-formats { grid-template-columns: minmax(0, 1fr); }
  .home-steps { gap: 4px; }
  .home-panel { padding: 15px; }
  .home-options { padding: 3px 0 0; }
  .home-support .btn { margin-inline-start: 0; }
}


.orders-card { font-size: var(--type-ui); }
.filters-bar { --filter-control-size: 34px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.filters-bar :is(.pill-btn, .sort-box select) { min-block-size: var(--filter-control-size); font-size: var(--type-ui); line-height: 1.2; }
.pill-group { display: flex; flex-wrap: wrap; gap: 3px; }
.pill-btn { min-height: 31px; padding: 5px 7px; font-size: .8rem; }
.empty-state { display: grid; justify-items: center; gap: 9px; padding: 34px 15px; text-align: center; color: var(--text-muted); }
.empty-state strong { color: var(--text); font-size: 1rem; }
.empty-state p { max-inline-size: 46ch; font-size: var(--type-ui); text-wrap: pretty; }
.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent); background: var(--accent-wash); }
.empty-icon .icon { width: 22px; height: 22px; }
.empty-state .btn { margin-top: 3px; }
.orders-list { display: grid; padding: 11px; gap: 8px; }
.orders-table-wrap { overflow-x: auto; }
.numbers-table { width: 100%; border-collapse: collapse; text-align: left; font-size: inherit; }
.numbers-table th, .numbers-table td { text-align: left; vertical-align: middle; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.numbers-table th { color: var(--text-muted); background: var(--surface-2); font-size: var(--type-caption); font-weight: 670; white-space: nowrap; }
.numbers-table tr:last-child td { border-bottom: 0; }
.numbers-table td:empty { min-width: 28px; }
.number-order-row:hover { background: var(--surface-hover); }
.order-phone, .mail-order-status { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.order-phone { flex-wrap: nowrap; white-space: nowrap; }
.order-phone strong, .order-value { font-weight: 680; letter-spacing: -.025em; }
.copy-number { width: 30px; height: 30px; }
.copy-number .icon { width: 15px; height: 15px; }
.number-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 77px; }
.number-action { width: 34px; height: 34px; }
.number-action .icon { width: 16px; height: 16px; }
.number-cancel { color: var(--danger); }
.number-finish { color: var(--success); }
.number-action.number-cancel:hover { color: var(--danger); border-color: var(--danger); }
.number-action.number-finish:hover { color: var(--success); border-color: var(--success); }
.message-loading {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 47px;
  min-height: 23px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  vertical-align: middle;
}
.message-loading i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: message-pulse 1.15s ease-in-out infinite;
}
.message-loading i:nth-child(2) { animation-delay: .14s; }
.message-loading i:nth-child(3) { animation-delay: .28s; }
@keyframes message-pulse {
  0%, 60%, 100% { opacity: .45; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes message-fade {
  0%, 60%, 100% { opacity: .45; }
  30% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .message-loading i { animation-name: message-fade; }
}
@container order-pane (max-width: 640px) {
  .numbers-table, .numbers-table tbody { display: block; }
  .numbers-table thead { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow: hidden; }
  .numbers-table .number-order-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 12px; border-bottom: 1px solid var(--border); }
  .numbers-table .number-order-row:last-child { border-bottom: 0; }
  .numbers-table td { display: block; padding: 0; min-width: 0; border-bottom: 0; }
  .numbers-table td::before { content: attr(data-label); display: block; padding-bottom: 2px; font: 500 .72rem/1.35 system-ui, sans-serif; color: var(--text-muted); }
  .numbers-table td[data-label="Номер"] { grid-column: span 2; }
  .numbers-table .order-table-actions { grid-column: 1 / -1; }
}
@container order-pane (max-width: 435px) {
  .numbers-table .number-order-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers-table td[data-label="Сервис"], .numbers-table td[data-label="Номер"] { grid-column: 1 / -1; }
}
.order-item { display: grid; gap: 8px; min-width: 0; padding: 10px 11px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); }
.order-row { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-width: 0; }
.order-row.top { justify-content: space-between; }
.order-row.bottom { justify-content: space-between; align-items: start; }
.order-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; font-size: var(--type-caption); color: var(--text-muted); }
.order-value { overflow-wrap: anywhere; }
.copy-btn { color: var(--accent); background: transparent; border: 0; border-radius: 5px; padding: 1px 3px; min-width: 22px; max-width: 100%; text-align: left; }
.copy-btn:hover { background: var(--accent-wash); }
.state-pill { display: inline-flex; border-radius: 6px; padding: 2px 6px; font-weight: 650; font-size: .75rem; background: var(--surface); color: var(--text-muted); }
.state-pill.ok { color: var(--success); }
.state-pill.wait { color: var(--warning); }
.state-pill.bad { color: var(--danger); }
.code-pill { background: var(--accent-wash); color: var(--accent); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.price-toolbar { display: grid; justify-items: start; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border); }
.price-filters { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.price-filters .form-label { flex: 1 1 160px; min-width: 0; margin: 0; }
.price-service-filter { flex: 1.4 1 245px; display: grid; align-self: start; grid-template-columns: 1fr 1fr; gap: 5px; min-width: 0; }
.price-service-filter label { grid-column: 1 / -1; }
.price-service-filter .input { min-width: 0; }
.table-wrap { overflow: auto; }
.price-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
.price-table th, .price-table td { padding: 9px 16px; border-bottom: 1px solid var(--border); }
.price-table th { background: var(--surface-2); color: var(--text-muted); font-size: .8125rem; font-weight: 650; white-space: nowrap; }
.column-sort { color: inherit; background: transparent; padding: 0; border: 0; text-align: left; font: inherit; }
.column-sort:hover, th[aria-sort="ascending"] .column-sort, th[aria-sort="descending"] .column-sort { color: var(--accent); }
.column-sort .icon { width: 13px; height: 13px; margin-left: 2px; }
th[aria-sort="ascending"] .column-sort .icon { transform: rotate(180deg); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody .price-row:hover { background: var(--surface-2); }
.table-service, .table-country { display: flex; align-items: center; gap: 8px; }
.table-service strong { font-weight: 650; overflow-wrap: anywhere; }
.price-row-value { font-weight: 700; white-space: nowrap; }
.table-action { text-align: right; }
.price-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.price-footer:has(#priceSummary:empty):has(#morePrices[hidden]) { display: none; }
.faq-list { display: grid; gap: 9px; max-width: 840px; }
.faq-item { padding: 0 16px; }
.faq-q { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; font-weight: 650; padding: 13px 0; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .icon { color: var(--accent); }
.faq-item[open] .faq-q .icon { transform: rotate(180deg); }
.faq-a { padding: 0 0 16px; color: var(--text-muted); }

.field-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field-row .input { flex: 1 1 185px; }
.form-label { display: block; margin-bottom: 5px; color: var(--text-secondary); font-size: .9rem; font-weight: 630; }
.form-label .input { display: block; margin-top: 5px; }
.form-group { margin-bottom: 15px; }
.form-title { margin-bottom: 10px; font-size: 1rem; }
.order-preferences, .phone-format-setting { border: 0; padding: 0; margin: 0; min-width: 0; }
.order-preferences { display: grid; gap: 13px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; }
.setting-row strong, .setting-row small { display: block; }
.setting-row small { color: var(--text-muted); margin-top: 2px; }
.setting-row input { appearance: none; position: relative; width: 40px; height: 23px; margin: 0; flex: 0 0 auto; border-radius: 40px; border: 1px solid var(--border-strong); background: var(--surface-2); cursor: pointer; }
.setting-row input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--text-muted); }
.setting-row input:checked { background: var(--accent-solid); border-color: var(--accent-solid); }
.setting-row input:checked::before { left: 20px; background: var(--accent-text); }
.phone-format-setting legend { font-weight: 670; }
.format-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.format-options label { cursor: pointer; padding: 6px 11px; display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; border: 1px solid var(--border); }
.format-options label:has(input:checked) { background: var(--accent-wash); border-color: var(--accent-border); }
.format-options input { margin: 0; accent-color: var(--accent-solid); }
.order-preferences [role="status"]:empty { display: none; }
.pwd-grid, .ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.ref-card { padding: 16px; }
.ref-card-val { display: block; font-size: 1.2rem; margin-block: 5px 8px; }
.ref-card-sub { color: var(--text-muted); font-size: .875rem; }
.ref-card .muted, .api-endpoint { margin-top: 7px; }
.api-endpoint code { color: var(--text-secondary); overflow-wrap: anywhere; }
.account-email { margin-bottom: 12px; overflow-wrap: anywhere; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner, .footer-inner > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.footer-inner { justify-content: space-between; padding-block: 18px; font-size: .875rem; color: var(--text-muted); }
.footer-inner > span { color: var(--text-secondary); font-weight: 680; }
.footer a:hover { color: var(--accent); }

.modal { width: min(100% - 24px, 490px); padding: 0; max-height: calc(100dvh - 24px); overflow: auto; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow); }
.modal { overscroll-behavior: contain; }
.modal::backdrop { background: rgb(0 0 0 / .68); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 1.12rem; font-weight: 700; }
.modal-close { width: 33px; height: 33px; }
.modal-body { padding: 16px; }
.modal-notices { display: grid; gap: 7px; padding: 0 16px 16px; }
.modal-notices:empty { display: none; }
.modal-notices .toast { box-shadow: none; }
.modal-body h3 { font-size: 1rem; margin-bottom: 5px; }
.notifications-dialog {
  position: fixed;
  inset: var(--notifications-top, 68px) max(12px, (100vw - 1320px) / 2) auto auto;
  margin: 0;
  width: min(100% - 24px, 414px);
  max-height: min(680px, 100dvh - var(--notifications-top, 68px) - 12px);
  overflow: hidden;
}
.notifications-dialog[open] { display: flex; flex-direction: column; }
.notifications-dialog::backdrop { background: transparent; }
.notification-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.notification-entry { display: grid; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notification-service { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.notification-service .logo-tile { width: 28px; height: 28px; }
.notification-service time, .notification-phone { font-size: .8rem; color: var(--text-muted); }
.notification-codes { display: grid; gap: 6px; }
.notification-code { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 9px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; text-align: left; }
.notification-code:hover { background: var(--surface-hover); }
.notification-code > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; overflow-wrap: anywhere; }
.notification-code small { color: var(--text-muted); }
.notification-code .icon { color: var(--text-muted); }
.notification-chat { justify-self: start; }
.notification-tip ol { padding-inline-start: 22px; color: var(--text-secondary); }
.notification-tip li + li { margin-block-start: 5px; }
.notifications-state { padding: 20px 16px; text-align: center; color: var(--text-muted); }
.notifications-more { display: flex; margin: 12px auto; }
.notifications-dialog .modal-notices:not(:empty) { padding-top: 8px; }
.order-dialog .modal-body { display: grid; gap: 11px; }
.order-dialog-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.order-dialog-actions .btn { white-space: normal; }
.sms-chat { width: min(100% - 24px, 530px); }
.sms-chat-order { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sms-chat-phone .copy-btn { padding-left: 0; font-size: .86rem; }
.sms-chat-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-secondary); font-size: .83rem; }
.sms-chat-list { display: grid; align-content: start; gap: 10px; min-height: min(240px, 35dvh); max-height: min(410px, 62dvh); overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; background: var(--bg); }
.sms-chat .modal-notices:not(:empty) { padding-top: 12px; }
.sms-chat-empty { display: grid; justify-items: center; align-content: center; gap: 8px; align-self: center; text-align: center; min-height: min(200px, 29dvh); }
.sms-chat-empty p { color: var(--text-muted); font-size: .85rem; }
.sms-chat-message { justify-self: start; display: grid; gap: 7px; max-width: min(100%, 340px); padding: 9px 10px; border: 1px solid var(--border); border-radius: 4px 12px 12px; background: var(--surface-2); }
.sms-chat-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; font-size: .78rem; }
.sms-chat-meta > span { color: var(--text-muted); }
.sms-chat-copy { width: fit-content; max-width: 100%; min-height: 32px; padding: 4px 8px; font-size: .95rem; }
.sms-chat-copy > span { overflow-wrap: anywhere; }
.modes-info { display: grid; gap: 16px; }
.modes-info .mode-btn { flex: 1; }
.modes-info section p { color: var(--text-secondary); }
.modes-info section p + p { margin-top: 12px; }
.modes-info section strong { color: var(--text); }
.info-block p { color: var(--text-secondary); font-size: .95rem; }
.auth-modal { max-width: 438px; }
.auth-modal .modal-header { padding: 18px 21px 13px; }
.auth-modal .modal-title { font-size: 1.25rem; }
.auth-modal .modal-body { padding: 16px 21px 20px; }
.auth-modal .wide-btn { min-height: 44px; }
.google-button-slot { display: grid; justify-items: center; overflow: hidden; min-height: 40px; }
.google-button-slot:empty { display: none; }
.auth-providers { display: grid; gap: 8px; width: min(100%, 236px); margin-inline: auto; }
.auth-providers:not(:has(.auth-google:not([hidden]), .auth-telegram:not([hidden]))) + .auth-divider { display: none; }
.auth-telegram { display: flex; align-items: center; gap: 10px; height: 40px; width: 100%; padding: 2px 8px 2px 2px; font: 500 14px/1.2 Arial, sans-serif; text-align: left; color: #3c4043; border: 1px solid #dadce0; border-radius: 4px; background: #fff; }
.auth-telegram:hover { background: #f3f8fc; border-color: #b8d5ef; }
.auth-provider-logo { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: #fff; color: #229ed9; border-radius: 2px; }
.auth-provider-logo .icon { width: 19px; height: 19px; }
[data-theme="dark"] .auth-telegram { background: #202124; color: #e8eaed; border-color: #202124; }
[data-theme="dark"] .auth-telegram:hover { background: #303134; border-color: #303134; }
.google-confirmation { display: grid; gap: 12px; }
.google-confirmation .form-group { margin-bottom: 0; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin-block: 13px 14px; color: var(--text-muted); font-size: .8125rem; text-align: center; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.password-input { position: relative; }
.password-input .input { padding-right: 86px; }
.password-input .text-button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.text-button { padding: 2px 0; border: 0; border-radius: 4px; background: transparent; color: var(--accent); font-size: .875rem; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.auth-switch { margin-top: 15px; color: var(--text-muted); text-align: center; font-size: .875rem; }
.auth-error { padding: 8px 10px; margin-bottom: 12px; border-radius: 7px; background: var(--surface-2); color: var(--danger); font-size: .875rem; }
.verification-form { margin-top: 12px; }
.verification-actions, .preset-grid { display: flex; flex-wrap: wrap; gap: 7px; justify-content: space-between; margin-top: 12px; }
.preset-grid { margin: 0 0 13px; }
.preset-grid .btn { flex: 1 1 auto; }
.deposit-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; }
.deposit-label output { font-size: .875rem; color: var(--accent); font-weight: 700; white-space: nowrap; }
.wide-btn { width: 100%; }
.code-input { letter-spacing: .16em; }
.mail-message { color: var(--text-secondary); background: var(--bg); padding: 12px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast-wrap { position: fixed; z-index: 10; right: 16px; bottom: 16px; display: grid; gap: 7px; max-width: min(100% - 32px, 400px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); padding: 10px 13px; border-radius: 9px; box-shadow: var(--shadow); font-size: .9rem; overflow-wrap: anywhere; }
.toast.success .icon { color: var(--success); }
.toast.error .icon { color: var(--danger); }

.theme-wave { position: fixed; inset: 0; z-index: 10000; pointer-events: none; background: #100f16; }
.theme-wave[data-theme="light"] { background: #f7f5fb; }
:root[data-palette="yellow"] .theme-wave[data-theme="dark"] { background: #121315; }
:root[data-palette="yellow"] .theme-wave[data-theme="light"] { background: #f6f7f8; }

@container (max-width: 605px) {
  .hero { display: block; min-height: auto; }
  .hero-copy { padding: 25px 21px 27px; }
  .hero-art { display: none; }
}

@media (max-width: 1120px) {
  .container, .topbar-inner { width: calc(100% - 40px); }
  .topbar-inner { gap: 11px; }
  .nav-btn { padding-inline: 8px; }
  .shell { gap: 14px; }
  .country-buy { gap: 5px; }
}

@media (max-width: 920px) {
  .topbar-inner { flex-wrap: wrap; padding-top: 11px; padding-bottom: 8px; }
  .nav { order: 3; justify-content: start; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "catalog" "content"; }
  .shell[data-route="/"] { grid-template-areas: "hero" "catalog" "content"; grid-template-rows: auto auto 1fr; }
  .shell:is([data-route="/number"], [data-route="/mail"]) { grid-template-areas: "intro" "catalog" "content"; grid-template-rows: auto auto 1fr; }
  .main-wrap { margin-top: 17px; }
}

@media (max-width: 660px) {
  .container, .topbar-inner { width: calc(100% - 28px); }
  .hero-copy p { margin-top: 12px; }
  .hero-actions { margin-top: 17px; }
  .profile-email-short { display: none; }
  .btn-topup span { display: none; }
  .pwd-grid, .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .price-toolbar, .price-footer { padding: 12px; }
  .price-filters .form-label { flex-basis: min(135px, 44%); }
  .price-table thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .price-table, .price-table tbody { display: block; }
  .price-table .price-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; padding: 10px 12px 12px; border-bottom: 1px solid var(--border); }
  .price-table .price-row:last-child { border-bottom: 0; }
  .price-table td { border-bottom: 0; padding: 0; min-width: 0; }
  .price-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; font: 500 .73rem/1.4 system-ui, sans-serif; color: var(--text-muted); }
  .price-row-service { grid-column: 1 / -1; }
  .price-table .table-action { grid-column: 1 / -1; text-align: left; }
  .price-table .list-message { padding: 16px 12px; }
}

@media (max-width: 410px) {
  .topbar-inner, .header-actions { gap: 5px; }
  .guest-controls { gap: 2px; }
  .guest-controls .btn { padding-inline: 7px; }
  .notifications-trigger { width: 34px; }
  .brand { font-size: 1.22rem; gap: 6px; }
  .brand-mark, .brand-logo { width: 29px; height: 29px; }
  .nav { gap: 3px; }
  .nav-btn { padding-inline: 7px; font-size: .84rem; }
  .hero h1 { font-size: clamp(1.9rem, 8.6cqi, 2.35rem); }
  .hero-actions .btn { gap: 6px; padding-inline: 8px; font-size: .8125rem; }
}

@media (max-width: 355px) {
  .country-filters { grid-template-columns: minmax(0, 1fr); }
}

.tg-dialog-body { display: grid; gap: 14px; }
.tg-dialog-body [hidden], .telegram-app #guestControls,
.telegram-app #themeToggleBtn, .telegram-app .dropdown-item[onclick*="logout"] { display: none !important; }
#tgCode { font-size: 2rem; letter-spacing: .16em; }
#tgApproval { display: grid; gap: 10px; }
#tgStatus:empty { display: none; }
#linkTelegram { margin-bottom: 14px; }
.telegram-app .nav [data-route="/prices"], .telegram-app .home-panel-head a[href^="/prices"] { display: none; }
.telegram-app #headerEmail { display: block; max-width: 13ch; }
.deposit-checkout { display: grid; gap: 10px; }
.deposit-checkout .text-button { justify-self: center; }
.tg-switch { display: none; }
.telegram-app body { min-height: var(--tg-viewport-stable-height, 100dvh); }
@media (max-width: 760px) {
  .telegram-app { --mini-bottom: max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)); }
  .telegram-app body { padding: max(env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)) max(env(safe-area-inset-right), var(--tg-content-safe-area-inset-right, 0px)) calc(74px + var(--mini-bottom)) max(env(safe-area-inset-left), var(--tg-content-safe-area-inset-left, 0px)); }
  .telegram-app .topbar { position: static; }
  .telegram-app .topbar-inner { flex-wrap: nowrap; justify-content: space-between; }
  .telegram-app .btn-topup span { display: inline; }
  .telegram-app .nav { position: fixed; inset: auto 0 0; z-index: 12; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; padding: 5px 4px calc(5px + var(--mini-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
  .telegram-app .nav-btn { position: relative; padding: 0 1px; min-height: 44px; font-size: clamp(10px,2.9vw,13px); }
  .telegram-app .nav-count { position: absolute; top: -2px; right: 0; }
  .telegram-app .tg-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
  .tg-switch button { font: inherit; font-weight: 600; min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted); }
  .tg-switch button[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent); }
  .telegram-app[data-tg-pane="catalog"] .shell:is([data-route="/number"],[data-route="/mail"]) .main-content,
  .telegram-app[data-tg-pane="orders"] .shell:is([data-route="/number"],[data-route="/mail"]) .left-sidebar { display: none; }
  .telegram-app .support-launcher { inset-block-end: calc(66px + var(--mini-bottom)); }
  .telegram-app .toast-wrap { bottom: calc(70px + var(--mini-bottom)); }
  .telegram-app .modal { max-height: calc(var(--tg-viewport-height, 100dvh) - 24px - var(--mini-bottom)); }
  .telegram-app input:not([type="checkbox"]):not([type="radio"]), .telegram-app select { font-size: 16px; }
}
@media (max-width: 410px) {
  .telegram-app .btn-topup { font-size: .75rem; min-height: 36px; padding-inline: 8px; }
  .telegram-app .btn-topup .icon { display: none; }
  .telegram-app #headerEmail { max-width: 9ch; }
  .telegram-app .profile-trigger { gap: 4px; padding-inline: 5px; }
  .telegram-app .profile-trigger .avatar { display: none; }
}
