@font-face {
  font-family: Manrope;
  src: url('./assets/fonts/Manrope-Variable.woff2?v=1') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111315;
  --sidebar: #16181a;
  --surface: #1a1d20;
  --surface-raised: #202428;
  --surface-hover: #272c31;
  --surface-inset: #14171a;
  --text: #eef0f3;
  --muted: #a8afb8;
  --subtle: #9099a5;
  --line: #32373e;
  --line-soft: #292d32;
  --accent: #a9c9f4;
  --accent-strong: #c1d9fa;
  --accent-ink: #172c47;
  --accent-soft: #243449;
  --accent-faint: #1b2838;
  --success: #a4d5b4;
  --success-soft: #23382d;
  --warning: #dfc493;
  --danger: #e8a4a4;
  --shadow: 0 16px 48px #0005;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  view-transition-name: none;
  --sidebar-width: 216px;
  --header-height: 68px;
  --page-gutter: 32px;
  --page-width: 1152px;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  font-size: 14px;
}

[data-accent='sage'] { --accent: #b2d4bc; --accent-strong: #c5e3ce; --accent-ink: #1b3425; --accent-soft: #293a2f; --accent-faint: #202d25; }
[data-accent='lavender'] { --accent: #c8baf0; --accent-strong: #d7cbfa; --accent-ink: #302346; --accent-soft: #342c45; --accent-faint: #292434; }
[data-theme='light'] {
  color-scheme: light;
  --bg: #e8eef4; --sidebar: #1a2838; --surface: #f3f6f9; --surface-raised: #edf2f7;
  --surface-hover: #e0e8f1; --surface-inset: #eaf0f5; --text: #1d2a3a; --muted: #485a6e;
  --subtle: #52647a; --line: #cbd6e3; --line-soft: #d6dfe9;
  --accent: #255eaa; --accent-strong: #194989; --accent-ink: #fff; --accent-soft: #dce8f8;
  --accent-faint: #e8f0fb; --success: #28663d; --success-soft: #e3f1e7; --warning: #785510;
  --danger: #9e3434; --shadow: 0 16px 48px #22335024;
}
[data-theme='light'][data-accent='sage'] { --accent: #316444; --accent-strong: #244b33; --accent-soft: #e0efe5; --accent-faint: #edf6ef; }
[data-theme='light'][data-accent='lavender'] { --accent: #674a9c; --accent-strong: #50377f; --accent-soft: #ebe4f7; --accent-faint: #f5f0fb; }

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: calc(var(--header-height) + 16px); scrollbar-color: var(--line) transparent; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, a { transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
input, select { min-width: 0; color: var(--text); accent-color: var(--accent); caret-color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; background: currentColor; mask: var(--icon) center / contain no-repeat; }
.skip-link { position: fixed; z-index: 100; top: -70px; left: 16px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 9px; }
.skip-link:focus { top: 8px; }
.app-shell, .workspace { min-height: 100dvh; }
.workspace { margin-left: var(--sidebar-width); }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  background: var(--sidebar);
  border-right: 1px solid var(--line-soft);
  padding: 0 14px 20px;
  overflow-y: auto;
}
[data-theme='light'] .sidebar {
  color-scheme: dark;
  --text: #edf3fa;
  --muted: #becbd9;
  --line: #394b60;
  --line-soft: #2a3a4e;
  --surface-raised: #24364a;
  --surface-hover: #31465d;
  --accent: #bbd5f7;
  --accent-soft: #304866;
  --accent-ink: #1a2a3f;
  color: var(--text);
  scrollbar-color: var(--line) transparent;
}
[data-theme='light'][data-accent='sage'] .sidebar { --accent: #c3e0cb; --accent-soft: #2e493e; }
[data-theme='light'][data-accent='lavender'] .sidebar { --accent: #ddd0f7; --accent-soft: #43375a; }
.brand { display: flex; align-items: center; gap: 10px; width: fit-content; font-size: 20px; font-weight: 760; letter-spacing: -.03em; }
.brand img { display: block; border-radius: 9px; flex: 0 0 auto; }
.sidebar > .brand { margin: 16px 10px 29px; }
.primary-nav, .secondary-nav { display: grid; gap: 4px; }
.secondary-nav { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; min-height: 44px; border-radius: 9px; font-size: 13px; color: var(--muted); font-weight: 580; white-space: nowrap; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item:hover { color: var(--text); background: var(--surface-raised); }
.nav-item.active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.sidebar-links { --indicator-radius: 9px; }
.nav-count, .count-badge { font-size: 11px; background: var(--surface-hover); color: var(--muted); min-width: 23px; padding: 1px 5px; text-align: center; border-radius: 6px; font-variant-numeric: tabular-nums; }
.nav-count { margin-left: auto; }

.topbar { position: sticky; top: 0; z-index: 20; height: var(--header-height); border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.topbar-inner, .main-content { width: 100%; max-width: var(--page-width); padding-inline: var(--page-gutter); margin-inline: auto; }
.topbar-inner { display: flex; align-items: center; gap: 8px; height: 100%; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-button { display: inline-flex; width: 38px; height: 38px; padding: 8px; align-items: center; justify-content: center; border-radius: 9px; color: var(--muted); }
.icon-button .icon { width: 18px; height: 18px; }
.icon-button > .icon { transition: scale .14s var(--motion-ease); }
.icon-button:not(:disabled):active > .icon { scale: .88; }
.icon-button:hover { background: var(--surface-hover); color: var(--text); }
.notification-button { position: relative; }
.notification-button[aria-expanded='true'] { background: var(--accent-soft); color: var(--accent); }
.notification-dot { position: absolute; inset: 8px 9px auto auto; width: 7px; height: 7px; background: var(--accent); border: 1px solid var(--bg); border-radius: 50%; }
.notification-dot:not([hidden]) { animation: notification-in .32s var(--motion-ease); }
@keyframes notification-in { from { opacity: .45; scale: .6; } 45% { scale: 1.35; } }
.notifications-popover {
  position: fixed;
  inset: var(--notification-top) auto auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  opacity: 0;
  transform: translateY(-5px) scale(.92, .76);
  transform-origin: var(--notification-arrow) -8px;
  transition: opacity .13s ease-in, transform .16s ease, display .16s allow-discrete, overlay .16s allow-discrete;
  pointer-events: none;
}
.notifications-popover:popover-open {
  opacity: 1;
  transform: none;
  transition: opacity .095s var(--motion-ease), transform .28s cubic-bezier(.25, .58, .38, 1), display .28s allow-discrete, overlay .28s allow-discrete;
  pointer-events: auto;
}
@starting-style {
  .notifications-popover:popover-open { opacity: 0; transform: translateY(-5px) scale(.76, .6); }
}
.notifications-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: var(--notification-arrow);
  width: 11px;
  height: 11px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}
.notifications-content {
  position: relative;
  max-height: min(380px, calc(100dvh - var(--notification-top) - 12px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px 10px;
  border-radius: inherit;
}
.notifications-content h2 { margin: 0; font-size: 16px; font-weight: 730; }
.notifications-empty { margin: 8px 0 5px; color: var(--muted); font-size: 13px; }
.notifications-content .notification-link { margin-top: 5px; color: var(--accent); }
.balance-shortcut { display: flex; align-items: center; min-height: 40px; border-radius: 24px; background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 0 9px 0 14px; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.balance-shortcut:hover { background: var(--accent-strong); }
.balance-plus { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: color-mix(in srgb, var(--accent-ink) 13%, transparent); }
.balance-plus .icon { width: 16px; height: 16px; }
.profile-shortcut { display: block; border-radius: 50%; }
.profile-shortcut:hover, .profile-shortcut.active { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar { display: block; object-fit: cover; border-radius: 50%; flex: 0 0 auto; background: var(--surface-hover); }
.mobile-menu, .mobile-brand, .sidebar-close, .sidebar-scrim { display: none; }

.main-content { padding-top: 28px; padding-bottom: 44px; outline: none; }
#page-content { view-transition-name: dotred-page; background: var(--bg); }
::view-transition { pointer-events: none; }
::view-transition-group(dotred-page) { animation: none; }
::view-transition-old(dotred-page), ::view-transition-new(dotred-page) { mix-blend-mode: normal; }
::view-transition-old(dotred-page) { animation: page-out .075s var(--motion-ease) both; }
::view-transition-new(dotred-page) { animation: page-in .22s var(--motion-ease) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: .85; translate: 0 4px; } }
.page-enter, .results-enter {
  animation: view-in .23s var(--motion-ease) backwards;
}
.results-enter { --view-offset: 5px; --view-opacity: .82; }
.page-enter.page-heading { --view-offset: 4px; animation-duration: .18s; }
.page-enter:not(.page-heading) { animation-delay: .025s; }
@keyframes view-in { from { opacity: var(--view-opacity, .66); translate: 0 var(--view-offset, 7px); } }
.page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-heading { margin-bottom: 23px; }
.page-heading h1 { margin: 0; font-size: 30px; font-weight: 730; line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
.section-heading { margin-bottom: 13px; }
.section-heading h2 { margin: 0; font-size: 21px; font-weight: 710; letter-spacing: -.025em; }
.text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.text-button:hover { color: var(--accent); }
.text-button .icon { width: 15px; height: 15px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 9px; padding: 9px 15px; font-size: 13px; font-weight: 700; }
.primary-button { background: var(--accent); color: var(--accent-ink); }
.primary-button:hover { background: var(--accent-strong); }
.secondary-button { border: 1px solid var(--line); background: var(--surface); }
.secondary-button:hover { background: var(--surface-hover); }
.primary-button .icon, .secondary-button .icon { width: 16px; height: 16px; }
.muted { color: var(--muted); }

.catalog-heading { margin-bottom: 16px; }
.catalog-heading .search-field { width: min(43%, 340px); }
.search-field, .sort-control { display: flex; align-items: center; gap: 9px; height: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; }
.search-field:focus-within, .sort-control:focus-within, .amount-field:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-field .icon, .sort-control .icon { width: 16px; height: 16px; color: var(--subtle); }
.search-field input, .sort-control select { width: 100%; height: 100%; background: transparent; border: 0; outline: none; font-size: 13px; }
.search-field input::placeholder { color: var(--subtle); }
.sort-control select { cursor: pointer; }
select option { background: var(--surface); color: var(--text); }
.search-shortcut { font: inherit; font-size: 11px; border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; color: var(--subtle); }
.filter-tabs, .numbers-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.filter-tab { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 11px; border-radius: 8px; font-size: 13px; color: var(--muted); font-weight: 630; }
.filter-tab:hover { color: var(--text); background: var(--surface-raised); }
.filter-tab.active { background: var(--accent-soft); color: var(--accent); }
.selection-group { position: relative; isolation: isolate; }
.selection-indicator {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: -1;
  border-radius: var(--indicator-radius, 8px);
  background: var(--accent-soft);
  pointer-events: none;
  transition: transform .28s var(--motion-ease), width .28s var(--motion-ease);
}
.selection-group:has(> .selection-indicator:not([hidden])) :is(.active, [aria-pressed='true']) { background: transparent; }
.services-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.services-grid > .service-tile { z-index: 1; }
.catalog-exits { position: absolute; inset: 0; pointer-events: none; }
.service-tile { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: background-color .16s ease, border-color .16s ease; }
.service-tile:hover { background: var(--surface-raised); border-color: var(--subtle); }
.service-tile.selected { background: var(--accent-faint); border-color: var(--accent); }
.service-pick { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 2px 11px; width: 100%; height: 100%; min-height: 70px; text-align: left; padding: 12px 29px 12px 13px; border-radius: inherit; }
.brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; color: var(--brand-color); background: color-mix(in srgb, var(--brand-color) 12%, transparent); flex: 0 0 auto; }
[data-theme='light'] .brand-icon { color: color-mix(in srgb, var(--brand-color) 59%, #263449); }
.brand-icon i { display: block; width: 21px; height: 21px; background: currentColor; mask: var(--brand) center / contain no-repeat; }
.service-pick .brand-icon { grid-row: 1 / 3; transition: scale .14s var(--motion-ease); }
.service-pick:active .brand-icon { scale: .94; }
.service-pick strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.service-pick small { grid-column: 2; color: var(--muted); font-size: 12px; white-space: nowrap; }
.service-pick small b { color: var(--text); font-weight: 640; }
.selected-check {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  opacity: 0;
  scale: .7;
  transition: scale .22s var(--motion-ease), opacity .14s ease;
  pointer-events: none;
}
.service-tile.selected .selected-check { opacity: 1; scale: 1; }
.selected-check .icon { width: 10px; height: 10px; }
.show-all { display: flex; width: fit-content; margin: 5px 0 0 auto; padding-inline: 5px; }
.show-all .icon { transition: rotate .22s var(--motion-ease); }
.show-all[aria-expanded='true'] .icon { rotate: 180deg; }

.service-skeleton, .country-skeleton { pointer-events: none; }
.skeleton-shape { height: 10px; border-radius: 4px; background: var(--surface-hover); }
.service-pick .brand-icon.skeleton-shape { height: 38px; background: var(--surface-hover); }
.service-skeleton strong { width: min(80%, 86px); }
.service-skeleton small { width: min(58%, 58px); height: 8px; }
.service-skeleton .service-pick, .country-skeleton .country-row, .quote-skeleton .skeleton-shape {
  animation: skeleton-pulse 1.05s ease-in-out .18s;
}
@keyframes skeleton-pulse { 50% { opacity: .53; } }
.services-results-enter { animation: services-in .18s var(--motion-ease); }
@keyframes services-in { from { opacity: .82; } }

.countries-section { margin-top: 29px; }
.country-selection-hint.inline-status { margin-top: 20px; padding: 12px 0; }
.service-context { color: var(--muted); font-size: 13px; font-weight: 680; }
.service-context-label { display: flex; align-items: center; gap: 7px; }
.service-context-enter { animation: service-context-in .22s var(--motion-ease); }
@keyframes service-context-in { from { opacity: .82; translate: -6px 0; } }
.service-context .brand-icon { width: 24px; height: 24px; border-radius: 6px; }
.service-context .brand-icon i { width: 14px; height: 14px; }
.country-toolbar, .history-toolbar { display: flex; gap: 9px; margin-bottom: 11px; }
.country-toolbar .search-field, .history-toolbar .search-field { flex: 1; min-width: 0; }
.country-table, .saved-routes { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.country-table-head, .country-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(76px, .29fr) minmax(64px, .25fr) 112px; align-items: center; gap: 12px; padding: 0 15px; }
.country-table-head { min-height: 36px; background: var(--surface-inset); color: var(--muted); font-size: 12px; font-weight: 650; }
.country-row { position: relative; min-height: 57px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.country-row:hover { background: var(--surface-raised); }
.country-results-enter .country-row:nth-child(-n+5) {
  animation: country-result-in .22s var(--motion-ease) .048s backwards;
}
.country-results-enter .country-row:nth-child(2) { animation-delay: 0s; }
.country-results-enter .country-row:nth-child(3) { animation-delay: .016s; }
.country-results-enter .country-row:nth-child(4) { animation-delay: .032s; }
@keyframes country-result-in { from { opacity: .82; translate: 0 5px; } }
.skeleton-flag { width: 24px; height: 18px; flex: 0 0 auto; }
.skeleton-country-name { width: min(65%, 110px); }
.country-skeleton :is(.country-stock, .country-price).skeleton-shape { width: 36px; justify-self: end; }
.skeleton-action { height: 31px; border-radius: 8px; }
.country-info { display: flex; gap: 11px; align-items: center; min-width: 0; padding-block: 5px; }
.country-info > div { min-width: 0; }
.country-name { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.flag {
  display: block;
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 3px;
  background-image: url('./assets/flags/countries.webp?v=1');
  background-image: image-set(url('./assets/flags/countries.avif?v=1') type('image/avif'), url('./assets/flags/countries.webp?v=1') type('image/webp'));
  background-repeat: no-repeat;
  background-size: 384px 234px;
  background-position: calc(-24px * var(--flag-column)) calc(-18px * var(--flag-row));
}
.country-info strong { display: block; font-weight: 690; overflow-wrap: anywhere; }
.country-info small { display: block; color: var(--subtle); font-size: 12px; }
.country-stock, .country-price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.country-stock { color: var(--muted); }
.country-stock-mobile { display: none; }
.country-price { font-weight: 720; }
.buy-button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 35px; border-radius: 8px; padding: 5px 8px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 750; }
.buy-button .icon { width: 14px; height: 14px; transition: translate .18s var(--motion-ease); }
.buy-button:is(:hover, :focus-visible) .icon { translate: 2px 0; }
.buy-button:hover { background: var(--accent); color: var(--accent-ink); }
.buy-button, .primary-button { transition: background-color .16s ease, color .16s ease, scale .14s var(--motion-ease); }
.buy-button:active, .primary-button:active { scale: .975; }
.pin-button, .favorite-star { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border-radius: 8px; color: var(--subtle); }
.pin-button .icon, .favorite-star .icon { width: 17px; height: 17px; }
.pin-button:hover, .favorite-star:hover { color: var(--text); background: var(--surface-hover); }
.pin-button[aria-pressed='true'] { color: var(--accent); background: var(--accent-soft); }
.favorite-star[aria-pressed='true'] { color: var(--warning); }
.favorite-star .icon { grid-area: 1 / 1; transition: opacity .14s ease, scale .2s var(--motion-ease); }
.favorite-star [data-icon='star-filled'] { opacity: 0; scale: .65; }
.favorite-star[aria-pressed='true'] [data-icon='star'] { opacity: 0; scale: 1.16; }
.favorite-star[aria-pressed='true'] [data-icon='star-filled'] { opacity: 1; scale: 1; }
.country-controls { display: flex; align-items: center; gap: 2px; }
.country-controls button, .service-pin { width: 26px; height: 26px; border-radius: 6px; }
.country-controls .icon, .service-pin .icon { width: 14px; height: 14px; }
.service-pin { position: absolute; inset: 3px 3px auto auto; }
.saved-routes { list-style: none; margin: 0; padding: 0; }
#favorite-results { position: relative; }
.saved-route { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 112px 36px; align-items: center; gap: 12px; min-height: 65px; padding: 9px 15px; background: var(--surface); }
.saved-route + .saved-route { border-top: 1px solid var(--line-soft); }
.saved-route-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.saved-route-info > div { min-width: 0; }
.saved-route-info strong { display: block; font-weight: 690; overflow-wrap: anywhere; }
.saved-route-info small { display: flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 12px; overflow-wrap: anywhere; }
.saved-route-info .flag { width: 18px; height: 13px; }
.empty-state { grid-column: 1 / -1; padding: 30px 18px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.empty-state > .icon { color: var(--subtle); width: 23px; height: 23px; }
.empty-state h3 { margin: 8px 0 4px; font-size: 16px; font-weight: 700; }
.empty-state p { font-size: 13px; margin: 0; color: var(--muted); }
.empty-state .secondary-button { margin-top: 14px; }
.empty-state .primary-button { margin-top: 16px; }
.inline-status { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 8px 0; }
.chart .empty-state { padding: 14px 10px; }
.flow-status { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; margin-bottom: 14px; background: var(--surface); }
.flow-status p { color: var(--muted); margin: 0; font-size: 13px; }
.flow-status strong { color: var(--text); }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.invoice-actions .secondary-button { background: transparent; }
.invoice-actions .secondary-button:hover { background: var(--surface-hover); }
.load-more { margin: 12px 8px 0 0; }

.numbers-tabs { margin-bottom: 17px; }
.numbers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.activation-card, .content-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 19px; }
.activation-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.activation-head strong { display: block; font-size: 14px; font-weight: 720; }
.activation-head small { display: block; color: var(--muted); font-size: 12px; }
.activation-head > .flag { width: 22px; height: 15px; margin-left: auto; }
.phone-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 9px; }
.phone-number { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.phone-line .icon-button, .sms-received .icon-button { width: 36px; height: 36px; }
.sms-waiting, .sms-received { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 8px; min-height: 67px; }
.sms-waiting { justify-content: flex-start; color: var(--muted); background: var(--surface-raised); font-size: 13px; }
.sms-waiting .icon { color: var(--accent); width: 16px; height: 16px; }
.sms-waiting time { margin-left: auto; color: var(--subtle); font-variant-numeric: tabular-nums; }
.sms-received { position: relative; isolation: isolate; overflow: clip; background: var(--success-soft); color: var(--success); }
.sms-arrival { animation: sms-arrival .38s var(--motion-ease); }
.sms-arrival::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 27%, color-mix(in srgb, var(--success) 16%, transparent) 50%, transparent 73%);
  animation: sms-signal .52s ease-out both;
}
.sms-arrival strong { animation: sms-code-in .26s var(--motion-ease) .06s backwards; }
@keyframes sms-arrival { from { background-color: var(--surface-raised); } }
@keyframes sms-code-in { from { opacity: .85; translate: 0 5px; } }
@keyframes sms-signal {
  from { translate: -72% 0; opacity: 0; }
  45% { opacity: 1; }
  to { translate: 72% 0; opacity: 0; }
}
.sms-received small { font-size: 11px; display: flex; align-items: center; gap: 5px; }
.sms-received small .icon { width: 14px; height: 14px; }
.sms-received strong { display: block; letter-spacing: .12em; font-size: 22px; line-height: 1.35; font-weight: 720; font-variant-numeric: tabular-nums; }
.sms-received .icon-button { color: var(--success); }
.activation-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; color: var(--subtle); font-size: 12px; }
.activation-footer button { min-height: 34px; color: var(--muted); padding: 3px 0; text-align: left; }
.activation-footer button:hover { color: var(--accent); }
.activation-footer span:last-child { margin-left: auto; }
button:disabled { opacity: .55; cursor: default; }
.buy-button:disabled:hover { background: var(--accent-soft); color: var(--accent); }
.sms-received > div { min-width: 0; }
.sms-received strong, .profile-identity h1 { overflow-wrap: anywhere; }

.history-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.history-table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; font-size: 13px; }
.history-table th { font-size: 12px; color: var(--muted); font-weight: 660; background: var(--surface-inset); padding: 11px 15px; }
.history-table td { border-top: 1px solid var(--line-soft); padding: 12px 15px; background: var(--surface); }
.history-service { display: flex; align-items: center; gap: 9px; }
.history-service .brand-icon { width: 29px; height: 29px; border-radius: 7px; }
.history-service .brand-icon i { width: 17px; height: 17px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; font-size: 11px; background: var(--success-soft); color: var(--success); }
.status-pill.cancelled { background: var(--surface-hover); color: var(--muted); }
.status-pill .icon { width: 13px; height: 13px; }

.balance-summary { margin-bottom: 23px; }
.big-balance { display: block; margin-top: 7px; font-size: 39px; line-height: 1.13; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.wallet-layout, .profile-charts { display: grid; gap: 15px; align-items: start; }
.wallet-layout { grid-template-columns: minmax(0, 1.62fr) minmax(240px, 1fr); }
.profile-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-identity { display: flex; align-items: center; gap: 15px; }
.profile-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.statistics-heading { margin-top: 33px; }
.content-card h2 { margin: 0; font-size: 17px; font-weight: 710; letter-spacing: -.02em; }
.chart-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 13px; }
.metric-value { display: block; margin-top: 4px; font-size: 27px; font-weight: 740; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.period-switch { --indicator-radius: 6px; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-inset); }
.period-switch button { border-radius: 6px; min-height: 31px; padding: 4px 9px; font-size: 12px; font-weight: 660; color: var(--muted); transition: color .16s ease; }
.period-switch button:hover { background: var(--surface-hover); color: var(--text); }
.period-switch button[aria-pressed='true'] { color: var(--accent); background: var(--accent-soft); }
.chart { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 10px; row-gap: 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-y-axis { grid-column: 1; display: flex; flex-direction: column; align-items: end; justify-content: space-between; line-height: 16px; }
.chart-x-axis { grid-column: 2; display: flex; justify-content: space-between; gap: 4px; white-space: nowrap; }
.chart-plot { position: relative; min-width: 0; height: 182px; color: var(--accent); }
.chart-plot:has(.chart-picker:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.chart-plot canvas, .chart-picker { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-picker { margin: 0; opacity: 0; cursor: crosshair; touch-action: pan-y; }
.chart-tooltip { position: absolute; z-index: 1; top: var(--point-y); left: clamp(61px, var(--point-x), calc(100% - 61px)); transform: translateX(-50%); pointer-events: none; min-width: 105px; white-space: nowrap; display: grid; gap: 1px; background: var(--surface-raised); color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; }
.chart-tooltip strong { color: var(--text); font-size: 13px; }
.transactions { list-style: none; padding: 0; margin: 6px 0 -5px; }
.transaction { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.transaction:last-child { border-bottom: 0; }
.transaction > .icon { color: var(--subtle); width: 17px; height: 17px; }
.transaction strong { display: block; font-size: 13px; font-weight: 690; }
.transaction small { display: block; color: var(--subtle); font-size: 11px; }
.transaction > b { margin-left: auto; font-weight: 730; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.transaction > .credit { color: var(--success); }

.settings-panel, .faq { max-width: 650px; }
.security-panel { margin-bottom: 14px; }
.security-panel > p { margin: 8px 0 14px; }
.security-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.security-row > div { display: grid; gap: 4px; }
.security-row code { color: var(--text); font-size: 14px; }
.setting-label { font-size: 13px; font-weight: 650; margin: 17px 0 9px; display: block; }
.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.theme-option { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.theme-option:hover { background: var(--surface-raised); }
.theme-option.active { border-color: var(--accent); color: var(--accent); background: var(--accent-faint); }
.swatches { display: flex; gap: 12px; padding: 2px; }
.swatch { width: 37px; height: 37px; border: 4px solid var(--surface); border-radius: 50%; outline: 1px solid var(--line); background: var(--swatch); }
.swatch.active { outline: 2px solid var(--accent); }
.swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line-soft); cursor: pointer; }
.setting-row strong { display: block; font-size: 13px; font-weight: 660; }
.setting-row small { display: block; color: var(--subtle); font-size: 12px; }
.switch { appearance: none; width: 37px; height: 22px; padding: 2px; background: var(--surface-hover); border: 1px solid var(--line); border-radius: 20px; cursor: pointer; flex: 0 0 auto; }
.switch::after { content: ''; display: block; width: 16px; height: 16px; background: var(--subtle); border-radius: 50%; transition: transform .16s ease; }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { background: var(--accent-ink); transform: translateX(15px); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; font-weight: 690; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 17px; height: 17px; color: var(--subtle); transition: transform .23s var(--motion-ease); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { font-size: 13px; color: var(--muted); margin: 0 0 15px; max-width: 65ch; }
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  .faq-item::details-content {
    interpolate-size: allow-keywords;
    height: 0;
    opacity: 0;
    overflow: clip;
    transition: height .23s var(--motion-ease), opacity .17s ease, content-visibility .23s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; opacity: 1; }
}

.modal { width: min(445px, calc(100% - 30px)); border: 1px solid var(--line); border-radius: 15px; padding: 21px; background: var(--surface); color: var(--text); max-height: calc(100dvh - 36px); overflow-y: auto; }
.modal::backdrop { background: #03070bb3; }
.modal[open] { animation: modal-in .2s var(--motion-ease); }
.modal[open]::backdrop { animation: backdrop-in .18s ease-out; }
@keyframes modal-in { from { opacity: .8; translate: 0 7px; scale: .985; } }
@keyframes backdrop-in { from { opacity: 0; } }
.modal-step-enter { --view-offset: 3px; animation: view-in .16s var(--motion-ease); }
@supports (transition-behavior: allow-discrete) {
  .modal {
    opacity: 0;
    transform: translateY(5px) scale(.99);
    transition: opacity .14s ease-in, transform .14s ease-in, display .14s allow-discrete, overlay .14s allow-discrete;
  }
  .modal:not([open]), .modal:not([open])::backdrop { pointer-events: none; }
  .modal[open] {
    animation: none;
    opacity: 1;
    transform: none;
    transition-duration: .2s;
    transition-timing-function: var(--motion-ease);
  }
  .modal::backdrop {
    opacity: 0;
    transition: opacity .14s ease-in, display .14s allow-discrete, overlay .14s allow-discrete;
  }
  .modal[open]::backdrop { animation: none; opacity: 1; transition-duration: .18s; }
  @starting-style {
    .modal[open] { opacity: 0; transform: translateY(5px) scale(.99); }
    .modal[open]::backdrop { opacity: 0; }
  }
}
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal h2 { margin: 0 34px 13px 0; font-size: 23px; font-weight: 710; line-height: 1.3; letter-spacing: -.025em; }
.modal-description { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.modal[data-mode='auth'].telegram-auth h2 { display: flex; align-items: center; gap: 9px; }
.modal[data-mode='auth'].telegram-auth h2::before { content: ''; flex: 0 0 21px; height: 21px; background: var(--accent); mask: url('./assets/brands/telegram.svg') center / contain no-repeat; }
.modal[data-mode='auth'] .full-width { min-height: 44px; }
.auth-copy { margin: 0 0 16px; color: var(--muted); font-size: 1rem; }
.access-form { display: grid; gap: 11px; }
.access-form .full-width { margin-top: 3px; }
.access-form .form-error { margin: 0; }
.access-field { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.access-field input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: var(--surface-inset);
  font-size: 16px;
}
.access-hint { color: var(--muted); font-size: 12px; margin: 9px 0; }
.access-form .access-hint { margin: -5px 0 0; }
.access-links { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 16px; margin-top: 9px; }
.access-links .text-button { min-height: 39px; }
.access-secret {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: var(--surface-inset);
}
.access-secret span { color: var(--muted); font-size: 13px; }
.access-secret code { grid-column: 1 / -1; overflow-wrap: anywhere; color: var(--text); font-size: 13px; }
.access-secret .secondary-button { min-height: 36px; padding-inline: 9px; font-size: 12px; }
.recovery-code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-inset);
}
.recovery-code-field code { overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; text-wrap: balance; }
.recovery-code-copy { width: 44px; height: 44px; }
.recovery-code-copy [data-icon='check'], .recovery-code-copy.is-copied [data-icon='copy'] { display: none; }
.recovery-code-copy.is-copied { color: var(--success); }
.recovery-code-copy.is-copied [data-icon='check'] { display: inline-block; }
.recovery-code-status:not(.visually-hidden) { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.recovery-code-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.recovery-code-actions .primary-button { min-width: 104px; min-height: 44px; }
@media (max-width: 420px) {
  .create-account-suffix { display: none; }
  .recovery-code-actions .primary-button { flex: 1; }
}
.pairing-code { display: grid; gap: 3px; margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; background: var(--surface-inset); text-align: center; }
.pairing-code span { color: var(--muted); font-size: 12px; }
.pairing-code strong { color: var(--text); font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
[data-auth-error] { margin-bottom: 0; }
.order-summary { margin: 15px 0; padding: 14px; background: var(--surface-inset); border-radius: 9px; }
.order-service { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.order-service strong { font-size: 14px; font-weight: 700; }
.order-service small { display: block; font-size: 12px; color: var(--muted); }
.order-service .flag { margin-left: auto; }
.auth-order .order-service { margin-bottom: 0; }
.summary-line { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 7px 0; gap: 10px; }
.summary-line span { color: var(--muted); }
.summary-line strong { font-weight: 690; }
.summary-line.total { border-top: 1px solid var(--line); padding: 10px 0 0; margin-top: 6px; }
.summary-line.total strong { font-size: 20px; }
.quote-skeleton .skeleton-shape { width: 68px; }
.quote-skeleton .total .skeleton-shape { height: 15px; margin-block: 8px; }
.modal .full-width { display: flex; width: 100%; margin-top: 10px; }
.danger-button {
  border-color: color-mix(in srgb, var(--danger) 34%, var(--line));
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 9%, var(--surface));
}
.danger-button:hover { background: color-mix(in srgb, var(--danger) 17%, var(--surface)); }
.modal[data-mode='topup'] {
  width: min(720px, calc(100% - 32px));
  padding: 24px;
  border-radius: 16px;
  overscroll-behavior: contain;
}
.modal[data-mode='topup'] h2 { margin-bottom: 20px; font-size: 25px; }
.modal[data-mode='topup'] .modal-close { top: 17px; right: 17px; }
.topup-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.topup-section-title { display: block; margin: 0 0 9px; font-size: 14px; font-weight: 720; }
.topup-methods { min-width: 0; margin: 0; padding: 0; border: 0; }
.topup-methods legend { padding: 0; }
.topup-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.topup-method {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 7px;
  min-height: 76px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-inset);
  transition: background-color .16s ease, border-color .16s ease;
}
.topup-method:has(input:enabled) { cursor: pointer; }
.topup-method:has(input:enabled:not(:checked)):hover { background: var(--surface-hover); }
.topup-method:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.topup-method:has(input:disabled) { color: var(--muted); }
.topup-method:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
  background: var(--accent-faint);
}
.topup-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.topup-sbp-mark { background: #f6f8ff; }
.topup-crypto-mark { background: var(--accent-soft); color: var(--accent); }
.topup-crypto-mark .icon { width: 19px; height: 19px; }
.topup-method-name { font-size: 14px; font-weight: 740; line-height: 1.3; }
.topup-check {
  position: absolute;
  inset: 14px 11px auto auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--subtle);
  border-radius: 50%;
}
.topup-method:has(input:disabled) .topup-check { visibility: hidden; }
.topup-method:has(input:checked) .topup-check { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.topup-check .icon { width: 13px; height: 13px; visibility: hidden; }
.topup-method:has(input:checked) .topup-check .icon { visibility: visible; }
.topup-soon { margin: 13px 0 7px; color: var(--subtle); font-size: 12px; font-weight: 690; }
.topup-future { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.topup-future li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-inset);
  font-size: 12px;
  font-weight: 660;
}
.topup-brand { flex: 0 0 17px; height: 17px; background: currentColor; mask: var(--payment-mark) center / contain no-repeat; }
.topup-brand.heleket { --payment-mark: url('/miniapp/assets/heleket.svg'); }
.topup-brand.ton { --payment-mark: url('/miniapp/assets/service-icons/ton.svg'); }
.topup-brand.usdt { --payment-mark: url('/miniapp/assets/service-icons/tether.svg'); }
.amount-field { display: flex; align-items: center; padding: 0 13px; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-inset); }
.amount-field:has(input:user-invalid) { border-color: var(--danger); }
.amount-field input { width: 100%; border: 0; background: none; padding: 8px 0; font-size: 27px; font-weight: 670; font-variant-numeric: tabular-nums; outline: none; appearance: textfield; }
.amount-field input::-webkit-inner-spin-button { appearance: none; }
.amount-field span { color: var(--subtle); font-size: 20px; }
.topup-range, .topup-rates { margin: 7px 0 0; color: var(--subtle); font-size: 12px; }
.amount-field:has(input:user-invalid) + .topup-range { color: var(--danger); }
.topup-rates { color: var(--muted); }
.amount-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.amount-presets button { flex: 1 0 auto; padding: 4px 7px; border: 1px solid var(--line); border-radius: 8px; min-height: 38px; color: var(--muted); font-size: 12px; font-weight: 690; white-space: nowrap; }
.amount-presets button:hover { background: var(--surface-hover); color: var(--text); }
.amount-presets button[aria-pressed='true'] { color: var(--accent); border-color: var(--accent); background: var(--accent-faint); }
.topup-state { display: grid; align-content: center; justify-items: start; gap: 9px; min-height: 142px; height: 100%; padding: 16px; border-radius: 12px; background: var(--surface-inset); color: var(--muted); }
.topup-state p { margin: 0; }
.topup-state .icon { color: var(--subtle); }
.topup-state .skeleton-shape { width: 60%; height: 20px; }
.topup-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line); }
.topup-credit > span { display: block; color: var(--muted); font-size: 12px; }
.topup-credit > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; }
.topup-credit strong { font-size: 25px; line-height: 1.25; font-weight: 750; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.topup-credit small { padding: 3px 8px; border-radius: 6px; color: var(--success); background: var(--success-soft); font-size: 11px; font-weight: 700; }
.topup-footer .primary-button { min-height: 46px; min-width: 198px; }
.form-error { font-size: 13px; color: var(--danger); margin: 10px 0 0; }
.topup-result { margin: 8px 0 13px; }
.toast { position: fixed; bottom: calc(22px + env(safe-area-inset-bottom)); left: calc(50% + var(--sidebar-width) / 2); transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 9px; width: max-content; max-width: calc(100vw - 30px); background: var(--text); color: var(--bg); box-shadow: var(--shadow); border-radius: 9px; padding: 11px 14px; font-size: 13px; pointer-events: none; animation: toast-in .18s var(--motion-ease); }
.toast .icon { width: 17px; height: 17px; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); color: var(--text); z-index: 200; padding: 26px; }
@keyframes toast-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@supports (transition-behavior: allow-discrete) {
  .toast { opacity: 0; translate: 0 6px; animation: none; transition: opacity .14s ease-in, translate .14s ease-in, display .14s allow-discrete; }
  .toast:not([hidden]) { opacity: 1; translate: 0 0; transition-duration: .18s; transition-timing-function: var(--motion-ease); }
  @starting-style {
    .toast:not([hidden]) { opacity: 0; translate: 0 6px; }
  }
}

@media (max-width: 1050px) {
  :root { --page-gutter: 23px; --sidebar-width: 204px; }
  .services-grid { gap: 8px; }
  .service-pick { padding-inline: 9px 24px; column-gap: 8px; }
  .service-pick .brand-icon { width: 32px; height: 32px; }
  .service-pick .brand-icon.skeleton-shape { height: 32px; }
  .service-pick .brand-icon i { width: 18px; height: 18px; }
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 930px) and (min-width: 761px) {
  .service-pick { grid-template-columns: 1fr; padding: 11px; gap: 4px; }
  .service-pick .brand-icon { grid-row: auto; margin-bottom: 3px; }
  .service-pick small { grid-column: auto; }
  .wallet-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 0px; --header-height: 62px; --page-gutter: 16px; }
  .services-grid { touch-action: manipulation; }
  .sidebar { transform: translateX(-100%); transition: transform .18s ease-in; width: min(252px, 85vw); z-index: 60; }
  .sidebar.open { transform: translateX(0); transition: transform .24s var(--motion-ease); }
  .sidebar-close { display: inline-flex; position: absolute; right: 12px; top: 14px; }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #0009;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility 0s linear .18s;
  }
  .menu-open .sidebar-scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  body.menu-open { overflow: hidden; }
  .mobile-menu { display: inline-flex; margin-left: -5px; }
  .mobile-brand { display: flex; gap: 7px; font-size: 17px; }
  .topbar-actions { gap: 7px; }
  .profile-shortcut .avatar { width: 36px; height: 36px; }
  .balance-shortcut { min-height: 36px; padding-left: 11px; gap: 6px; font-size: 13px; }
  .balance-plus { width: 22px; height: 22px; }
  .balance-plus .icon { width: 14px; height: 14px; }

  .main-content { padding-top: 22px; }
  .page-heading { gap: 11px; margin-bottom: 17px; }
  .page-heading h1 { font-size: 25px; }
  .section-heading h2 { font-size: 19px; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 12px; }
  .catalog-heading .search-field { width: 100%; }
  .filter-tabs { gap: 4px; }
  .filter-tab { font-size: 12px; padding-inline: 7px; }
  .search-shortcut { display: none; }
  .service-pick {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-height: 64px;
    padding: 6px;
    text-align: center;
  }
  .service-pick .brand-icon { width: 22px; height: 22px; background: transparent; }
  .service-pick .brand-icon.skeleton-shape { height: 22px; }
  .service-pick .brand-icon i { width: 100%; height: 100%; }
  .service-pick strong { max-width: 100%; font-size: 12px; }
  .service-pick small, .service-tile .selected-check { display: none; }
  .countries-section { margin-top: 20px; }
  .country-table-head, .country-row { grid-template-columns: minmax(0, 1fr) minmax(40px, auto) 77px; padding-inline: 10px; gap: 8px; }
  .saved-route { grid-template-columns: minmax(0, 1fr) auto 68px 36px; padding-inline: 10px; gap: 7px; }
  .saved-route-info { gap: 7px; }
  .saved-route-info .brand-icon { width: 30px; height: 30px; }
  .saved-route-info .brand-icon i { width: 17px; height: 17px; }
  .country-stock { display: none; }
  .skeleton-action { height: 39px; }
  .country-stock-mobile { display: inline; }
  .country-info { gap: 8px; }
  .country-info strong, .country-price { font-size: 13px; }
  .country-info small { font-size: 12px; }
  .buy-button { min-height: 44px; }
  .buy-button .icon { display: none; }
  .sort-control { padding-inline: 8px; gap: 5px; }
  .sort-control select { font-size: 12px; }
  .wallet-layout { grid-template-columns: 1fr; }

  .profile-identity { gap: 9px; }
  .profile-identity .avatar { width: 48px; height: 48px; }
  .chart-plot { height: 166px; }
}
@media (max-width: 560px) {
  .modal[data-mode='topup'] {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    margin: 0;
    padding: 18px 16px max(16px, env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }
  .modal[data-mode='topup'] h2 { margin-bottom: 14px; font-size: 22px; }
  .modal[data-mode='topup'] .modal-close { top: 7px; right: 8px; width: 44px; height: 44px; }
  .topup-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .topup-footer { align-items: stretch; flex-direction: column; gap: 11px; margin-top: 14px; padding-top: 12px; }
  .amount-presets button { min-height: 44px; }
  .numbers-grid, .profile-charts { grid-template-columns: 1fr; gap: 11px; }
  .profile-settings { width: 42px; flex: 0 0 auto; padding: 0; }
  .profile-settings span { display: none; }
  .history-toolbar .secondary-button { padding-inline: 10px; }
  .history-toolbar .secondary-button span { display: none; }
  .history-table td, .history-table th { padding: 10px 12px; }
  .big-balance { font-size: 34px; }
  .content-card { padding: 15px; }
}
@media (max-width: 560px) and (max-height: 650px) {
  .modal[data-mode='topup'] { padding-block: 13px max(12px, env(safe-area-inset-bottom)); }
  .modal[data-mode='topup'] h2 { margin-bottom: 10px; }
  .topup-layout { gap: 12px; }
  .topup-method { min-height: 65px; gap: 4px; padding-block: 6px; }
  .topup-check { top: 11px; }
  .topup-soon { margin-top: 10px; }
  .amount-field input { padding-block: 6px; font-size: 24px; }
  .topup-range, .topup-rates { margin-top: 4px; }
  .topup-footer { flex-direction: row; align-items: center; margin-top: 11px; padding-top: 10px; }
  .topup-credit > div { display: grid; justify-items: start; gap: 2px; }
  .topup-footer .primary-button { min-width: 0; padding-inline: 11px; }
}
@media (max-width: 430px) {
  .profile-actions .secondary-button { padding-inline: 8px; }
  .invoice-actions { width: 100%; }
  .invoice-actions button { flex: 1 1 auto; min-height: 44px; }
  .saved-route { grid-template-columns: minmax(0, 1fr) 66px 36px; gap: 2px 5px; }
  .saved-route-info { grid-row: span 2; }
  .saved-route .country-price { grid-area: 1 / 2; text-align: center; align-self: end; }
  .saved-route .buy-button { grid-area: 2 / 2; align-self: start; }
  .saved-route .favorite-star { grid-area: 1 / 3 / 3; }
}
@media (max-width: 375px) {
  :root { --page-gutter: 13px; }
  .mobile-brand span { display: none; }
  .profile-identity h1 { font-size: 21px; }
  .profile-identity .avatar { width: 40px; height: 40px; }
  .country-info { gap: 6px; }
}
@media (max-width: 360px) {
  .filter-tabs { flex-wrap: nowrap; gap: 2px; overflow-x: auto; padding: 3px; margin-inline: -3px; scrollbar-width: none; }
  .filter-tab { padding-inline: 4px; font-size: 11px; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (hover: hover) and (pointer: fine) {
  .country-controls > button, .service-pin {
    opacity: 0;
    translate: -3px 0;
    pointer-events: none;
    transition: opacity .18s ease, translate .18s ease, background-color .16s ease, color .16s ease;
  }
  .country-row:is(:hover, :has(:focus-visible)) .country-controls > button,
  .service-tile:is(:hover, :has(:focus-visible)) .service-pin,
  .country-controls > button[aria-pressed='true'],
  .service-pin[aria-pressed='true'] {
    opacity: 1;
    translate: 0;
    pointer-events: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, .modal::backdrop { transition: none !important; animation: none !important; }
  .faq-item::details-content { transition: none !important; }
  ::view-transition-old(dotred-page), ::view-transition-new(dotred-page) { animation: none; }
}
[data-motion='reduced'] *, [data-motion='reduced'] *::before, [data-motion='reduced'] *::after,
[data-motion='reduced'] .modal::backdrop { transition: none !important; animation: none !important; }
[data-motion='reduced'] .faq-item::details-content { transition: none !important; }
