@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/onest-cyrillic-variable.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/onest-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --page: #111820;
  --panel: #18212b;
  --panel-2: #1c2631;
  --field: #141c25;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f5f7fb;
  --muted: #8996a6;
  --accent: #35a9f1;
  --green: #69d49d;
  --radius: 12px;
  --shell-padding: 12px;
  font-family: "Onest", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -280px, rgba(61, 104, 145, 0.25), transparent 650px),
    var(--page);
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: auto;
}

button,
input,
select { font: inherit; }

button,
select { cursor: pointer; }

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button:disabled { cursor: default; }

.visual-picker--loading .visual-picker__trigger {
  opacity: 0.62;
}

.app-shell {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 0 var(--shell-padding) calc(48px + env(safe-area-inset-bottom));
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  margin-inline: calc(-1 * var(--shell-padding));
  padding-block: calc(10px + env(safe-area-inset-top)) 10px;
  padding-inline:
    max(var(--shell-padding), env(safe-area-inset-left), var(--tg-content-safe-area-inset-left, 0px))
    max(var(--shell-padding), env(safe-area-inset-right), var(--tg-content-safe-area-inset-right, 0px));
  background: rgba(17, 24, 32, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.brand > span:last-child { min-width: 0; }

.brand__mark {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #08131a;
  background: linear-gradient(145deg, #a4e8ff, #3aaff1);
  box-shadow: 0 8px 24px rgba(53, 169, 241, 0.2);
}

.brand__mark svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand strong,
.brand small { display: block; }

.brand strong {
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.055em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.user-pill {
  display: flex;
  min-width: 0;
  max-width: min(48vw, 230px);
  min-height: 39px;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: #18222d;
  appearance: none;
  text-align: left;
}

.user-pill__avatar {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  color: #082033;
  background: linear-gradient(145deg, #a4e8ff, #3aaff1);
}

.user-pill__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-pill__avatar b { font-size: 9px; font-weight: 900; }

.user-pill__copy {
  display: block;
  min-width: 0;
}

.user-pill__copy strong,
.user-pill__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill__copy strong { font-size: 10px; font-weight: 780; }
.user-pill__copy small { margin-top: 2px; color: #8f9dab; font-size: 8px; }

.user-pill__chevron {
  width: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: #718392;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 370px) {
  .brand small,
  .user-pill__copy small { display: none; }
  .user-pill { max-width: 43vw; }
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px 13px;
}

.eyebrow {
  margin: 0 0 5px;
  color: #70c9ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-head h1 {
  margin: 0;
  font-size: clamp(23px, 6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.filter-toggle,
.reset-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #c8d0da;
  background: #1a2430;
  font-size: 11px;
  font-weight: 750;
}

.filter-toggle svg,
.reset-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.filter-panel {
  position: relative;
  z-index: 80;
  max-height: 520px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(24, 33, 43, 0.83);
  transition: max-height 220ms ease, padding 220ms ease, opacity 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(14px);
}

.filter-panel--collapsed {
  max-height: 0;
  padding-block: 0;
  opacity: 0;
  border-color: transparent;
  pointer-events: none;
}

.filter-panel:not(.filter-panel--collapsed) { pointer-events: auto; }

.gift-modal-open { overflow: hidden; }
.gift-modal-open .filter-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 7px;
}

.field {
  min-width: 0;
  min-height: 62px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--field);
}

.field:focus-within {
  border-color: rgba(53, 169, 241, 0.4);
  background: #17212c;
}

.field > span:first-child,
.field legend {
  display: block;
  width: auto;
  margin: 0 0 6px;
  padding: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.field input::placeholder { color: #748191; }

.field select {
  padding-right: 17px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238996a6' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 15px;
  white-space: nowrap;
}

.visual-picker {
  position: relative;
}

.visual-picker__trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.visual-picker__trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-picker__trigger svg {
  width: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
}

.visual-picker__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.visual-picker__menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 300px);
  max-width: calc(100vw - 28px);
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #1d2833;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
}

.visual-picker[data-picker="model"] .visual-picker__menu,
.visual-picker[data-picker="symbol"] .visual-picker__menu {
  right: 0;
  left: auto;
}

.visual-picker__search {
  width: 100% !important;
  min-height: 38px;
  margin-bottom: 7px;
  padding: 0 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px;
  background: #141e27 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.visual-picker__options {
  max-height: min(430px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #3c4b59 transparent;
  scrollbar-width: thin;
}

.visual-picker__empty {
  display: block;
  padding: 20px 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.visual-option {
  display: grid;
  min-height: 58px;
  grid-template-columns: 20px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 5px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.visual-option:last-child { border-bottom: 0; }
.visual-option:hover { background: rgba(255, 255, 255, 0.035); }

.visual-option input {
  width: 16px !important;
  height: 16px;
  margin: 0;
  appearance: none;
  border: 1px solid #d7e0e8 !important;
  border-radius: 2px;
  background: transparent !important;
}

.visual-option input:checked {
  border-color: #44b6fa !important;
  background-color: #44b6fa !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%230c1821' stroke-width='2'/%3E%3C/svg%3E") !important;
}

.visual-option input[type="radio"] { border-radius: 50%; }

.visual-option input[type="radio"]:checked {
  background-image: radial-gradient(circle, #0c1821 0 3px, transparent 3.5px) !important;
}

.visual-option__image {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #16232d;
}

.visual-option__image--gift { background: #000; }

.visual-option__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-option__name {
  overflow: hidden;
  color: #f2f6fa;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-option__count {
  min-width: 25px;
  color: #eef3f7;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.visual-option__swatch {
  width: 36px;
  height: 36px;
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: var(--swatch-color);
  background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--swatch-color) 74%, white), var(--swatch-color) 65%, color-mix(in srgb, var(--swatch-color) 67%, black));
  box-shadow: inset -5px -7px 11px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.visual-option__symbol,
.sort-option__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #8795a4;
}

.visual-option__symbol img {
  display: block;
  width: 39px;
  height: 39px;
  object-fit: contain;
  filter: invert(67%) sepia(11%) saturate(456%) hue-rotate(169deg) brightness(88%) contrast(87%);
}

.visual-option__symbol svg,
.sort-option__icon svg {
  width: 33px;
  height: 33px;
  fill: rgba(135, 149, 164, 0.2);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.visual-picker__menu--sort { width: max(100%, 330px); }

.visual-option--sort {
  min-height: 52px;
  grid-template-columns: 20px 38px minmax(0, 1fr);
}

.visual-option--sort .sort-option__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #7ecfff;
  background: rgba(53, 169, 241, 0.08);
}

.visual-option--sort .sort-option__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
}

.visual-option--sort .sort-option__icon--currency img {
  display: block;
  width: 15px;
  height: 19px;
  object-fit: contain;
}

.sort-option__icon--currency { position: relative; }

.visual-option--sort .sort-option__icon .sort-direction {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 13px;
  height: 13px;
  padding: 1px;
  border-radius: 5px;
  background: #203847;
  stroke-width: 1.8;
}

.sort-trigger__label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.sort-trigger__label > svg {
  width: 14px;
  flex: 0 0 auto;
  transform: none !important;
}

.filter-panel--picker-open {
  z-index: 100;
  max-height: none;
  overflow: visible;
}

.field--gift,
.field--model { grid-column: span 6; }

.field--backdrop,
.field--symbol,
.field--sort,
.field--id { grid-column: span 6; }

.field--price { grid-column: span 6; }

.input-prefix {
  display: flex !important;
  align-items: center;
  gap: 3px;
  margin: 0 !important;
}

.input-prefix b {
  color: #a6b2bf;
  font-size: 12px;
}

.range-inputs {
  display: grid;
  grid-template-columns: 1fr 12px 1fr;
  align-items: center;
  gap: 2px;
}

.range-inputs i {
  width: 7px;
  height: 1px;
  margin: auto;
  background: #5e6a79;
}

.reset-button {
  grid-column: 1 / -1;
  min-height: 41px;
}

.gift-grid {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px 10px;
}

.gift-card {
  position: relative;
  min-width: 0;
  padding: 0 0 6px;
  overflow: hidden;
  contain: layout paint style;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0, rgba(255, 255, 255, 0.1), transparent 38%),
    linear-gradient(155deg, #1b2935, #111b24);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
  touch-action: pan-y manipulation;
}

.gift-card:active { transform: scale(0.985); }

.gift-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gift-card__visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 17px 17px 13px 13px;
  background: #1c2630;
  box-shadow: none;
}

.gift-card__visual::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 31%;
  background: linear-gradient(transparent, rgba(5, 10, 15, 0.34));
  content: "";
  pointer-events: none;
}

.gift-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 260ms ease;
}

.gift-card__lottie {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  overflow: hidden;
  contain: strict;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.gift-card__lottie svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.gift-card--animating .gift-card__image { opacity: 0; }
.gift-card--animating .gift-card__lottie { opacity: 1; }

.days-badge {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 5px;
  max-width: calc(100% - 10px);
  padding: 3px 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  background: rgba(48, 64, 78, 0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: clamp(9px, 2.6vw, 10px);
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-card__touch-hint {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 7px;
  bottom: auto;
  max-width: calc(100% - 14px);
  padding: 5px 7px;
  border-radius: 8px;
  opacity: 0;
  color: #e8f7ff;
  background: rgba(13, 24, 33, 0.94);
  font-size: 8px;
  font-weight: 760;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.gift-card--touch-preview .gift-card__touch-hint {
  opacity: 1;
  transform: translateY(0);
}

.gift-card__body {
  position: relative;
  z-index: 3;
  display: block;
  margin: -17px 6px 0;
  padding: 11px 9px 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(39, 53, 67, 0.97), rgba(16, 25, 34, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 7px 16px rgba(0, 0, 0, 0.16);
}

.gift-card__body::before {
  position: absolute;
  top: 0;
  left: 12%;
  width: 54%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  content: "";
}

.gift-card__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.gift-card__name {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(12px, 3.3vw, 14px);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-card__id {
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid rgba(119, 208, 255, 0.16);
  border-radius: 999px;
  color: #91dcff;
  background: rgba(53, 169, 241, 0.1);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.gift-card__prices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  margin-top: 9px;
}

.gift-card__prices > span {
  min-width: 0;
  padding: 7px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  text-align: center;
}

.gift-card__prices small,
.gift-card__prices strong { display: block; }

.gift-card__prices small {
  margin-bottom: 3px;
  overflow: hidden;
  color: #aebac5;
  font-size: clamp(9px, 2.6vw, 10px);
  font-weight: 570;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-card__prices strong {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  font-size: clamp(13px, 3.5vw, 16px);
  font-weight: 820;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.byn-icon {
  display: block;
  width: auto;
  height: 0.78em;
  flex: 0 0 auto;
  object-fit: contain;
  filter: none;
  align-self: center;
  transform: translateY(-0.01em);
}

.byn-fallback {
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.setup-state {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(53, 169, 241, 0.18);
  border-radius: 14px;
  background: rgba(24, 38, 50, 0.72);
}

.setup-state__icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #07131b;
  background: #58bdf7;
  font-size: 11px;
  font-weight: 950;
}

.setup-state h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.setup-state p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.setup-state code {
  display: inline-block;
  max-width: 100%;
  padding: 6px 8px;
  overflow: auto;
  border-radius: 7px;
  color: #a9ddfc;
  background: #101820;
  font-size: 9px;
}

.empty-state {
  padding: 52px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.empty-state > span {
  color: var(--accent);
  font-size: 34px;
}

.empty-state h2 {
  margin: 7px 0 4px;
  color: var(--text);
  font-size: 17px;
}

.empty-state p {
  margin: 0 0 17px;
  font-size: 11px;
}

.empty-state button,
.load-more,
.primary-button {
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  color: #07131a;
  background: linear-gradient(135deg, #77d0ff, #35a9f1);
  font-size: 11px;
  font-weight: 850;
}

.load-more {
  display: block;
  min-width: 150px;
  margin: 27px auto 0;
}

.load-more:disabled { opacity: 0.55; }

.skeleton {
  position: relative;
  min-width: 0;
  aspect-ratio: 0.72;
  overflow: hidden;
  border-radius: 9px;
  background: #19232d;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.055) 42%, transparent 66%);
  animation: shimmer 1.2s infinite linear;
  content: "";
  transform: translateX(-100%);
}

.sheet-backdrop {
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(7px);
}

.gift-sheet {
  position: fixed;
  z-index: 1000;
  inset: auto 0 0;
  width: min(100%, 520px);
  max-height: min(99dvh, calc(var(--app-viewport-height, 100dvh) - 4px));
  margin: auto auto 0;
  padding: 8px 8px calc(10px + max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px)));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px 22px 0 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% -10%, rgba(92, 197, 255, 0.16), transparent 320px),
    rgba(18, 28, 38, 0.9);
  box-shadow: 0 -28px 85px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(150%);
}

.gift-sheet::-webkit-scrollbar { display: none; }

.gift-sheet[open] { animation: sheet-in 200ms ease-out; }
.gift-sheet::backdrop { background: transparent; }

.gift-sheet__media {
  position: relative;
  height: min(calc(100vw - 16px), 44dvh, 360px);
  min-height: 200px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, #24323f, #17222d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.gift-sheet__media img {
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 260ms ease;
}

.gift-sheet__media-backdrop {
  position: absolute;
  z-index: 0;
  inset: -16px;
  width: calc(100% + 32px) !important;
  height: calc(100% + 32px) !important;
  opacity: 0.58;
  filter: blur(14px) saturate(1.15);
  object-fit: cover;
  transform: scale(1.05);
}

.gift-sheet__media-foreground {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.gift-sheet__lottie {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 260ms ease;
}

.gift-sheet__lottie svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.gift-sheet__media--animating > .gift-sheet__media-foreground { opacity: 0; }
.gift-sheet__media--animating > .gift-sheet__lottie { opacity: 1; }

.gift-sheet__media > span:last-child {
  position: absolute;
  z-index: 3;
  bottom: 8px;
  left: 8px;
  padding: 5px 7px;
  border-radius: 7px;
  color: white;
  background: rgba(22, 31, 40, 0.82);
  font-size: 10px;
  font-weight: 850;
  backdrop-filter: blur(5px);
}

.sheet-close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  color: white;
  background: rgba(14, 20, 26, 0.72);
  font-size: 23px;
  backdrop-filter: blur(7px);
}

.gift-sheet__content { padding: 11px 5px 2px; }

.gift-sheet h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 6.3vw, 29px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.gift-sheet__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.gift-sheet__tags span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #aeb9c6;
  background: #202b36;
  font-size: 9px;
  font-weight: 620;
}

.gift-sheet__description {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: #a7b2be;
  font-size: 10px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gift-sheet__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.gift-sheet__actions button {
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(112, 201, 255, 0.13);
  border-radius: 11px;
  color: #ccecff;
  background: rgba(53, 169, 241, 0.075);
  font-size: 9px;
  font-weight: 730;
  white-space: nowrap;
}

.gift-sheet__actions button:last-child {
  color: #f0f5f8;
  background: rgba(255, 255, 255, 0.055);
}

.gift-sheet__actions button:disabled { opacity: 0.48; }
.gift-sheet__actions button[aria-busy="true"] { cursor: wait; opacity: 0.62; }

.gift-sheet__actions svg {
  width: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.rental-calculator {
  position: relative;
  margin: 8px 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.13), transparent 42%),
    linear-gradient(135deg, rgba(39, 56, 70, 0.68), rgba(13, 22, 30, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 18px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px) saturate(155%);
}

.rental-calculator::before {
  position: absolute;
  top: 0;
  left: 8%;
  width: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  content: "";
}

.rental-calculator > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rental-calculator > header small,
.rental-calculator > header strong { display: block; }
.rental-calculator > header small { color: #8e9eac; font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.07em; }
.rental-calculator > header strong { margin-top: 3px; font-size: 12px; font-weight: 720; }

.rental-calculator > header > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9ddcff;
  font-size: 9px;
  font-weight: 670;
}

.rental-calculator > header > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55c9ff;
  box-shadow: 0 0 0 4px rgba(85, 201, 255, 0.09);
}

.rental-days-control {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 7px;
  margin-top: 8px;
}

.rental-days-control button,
.rental-days-control label {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(8, 16, 23, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.rental-days-control button {
  padding: 0;
  color: #dff4ff;
  font-size: 24px;
  font-weight: 420;
  transition: background 140ms ease, transform 140ms ease, opacity 140ms ease;
}

.rental-days-control button:hover:not(:disabled) { background: rgba(77, 188, 247, 0.14); }
.rental-days-control button:active:not(:disabled) { transform: scale(0.94); }
.rental-days-control button:disabled { cursor: default; opacity: 0.28; }

.rental-days-control label {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
}

.rental-days-control input {
  width: 1.15ch;
  min-width: 1.15ch;
  max-width: 4.15ch;
  padding: 0;
  border: 0;
  outline: 0;
  appearance: textfield;
  -moz-appearance: textfield;
  color: #fff;
  background: transparent;
  font-size: 21px;
  font-weight: 790;
  letter-spacing: -0.045em;
  text-align: center;
}

.rental-days-control label.rental-days-control__invalid {
  border-color: rgba(255, 111, 127, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 111, 127, 0.07);
}

.rental-days-control input::-webkit-inner-spin-button,
.rental-days-control input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.rental-days-control label span { color: #9aa9b6; font-size: 12px; font-weight: 570; }

.gift-sheet__prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 7px 0 0;
}

.gift-sheet__prices > div {
  padding: 8px 9px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.045);
}

.gift-sheet__prices .gift-sheet__price-total {
  border-color: rgba(93, 202, 255, 0.2);
  background: linear-gradient(145deg, rgba(65, 181, 239, 0.14), rgba(255, 255, 255, 0.035));
}

.gift-sheet__prices small,
.gift-sheet__prices strong { display: block; }

.gift-sheet__prices small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
}

.gift-sheet__prices strong {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.rental-discount-note {
  margin: 9px 2px 0;
  color: #8ed9ff;
  font-size: 9px;
  line-height: 1.4;
}

.primary-button { width: 100%; }

.primary-button--rent {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 17px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.42), transparent 45%),
    linear-gradient(135deg, #79d5ff, #2ca9ef 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 14px 30px rgba(35, 153, 219, 0.24);
}

.primary-button--rent > span { font-size: 12px; font-weight: 760; }
.primary-button--rent > strong { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 850; }
.primary-button--rent .byn-icon { filter: none; }
.primary-button--rent .byn-fallback { color: #fff; }
.primary-button--rent:disabled { cursor: not-allowed; filter: saturate(0.45); opacity: 0.5; box-shadow: none; }

.gift-sheet--confirming .gift-sheet__media { display: none; }
.gift-sheet--confirming .gift-sheet__content { padding-top: 8px; }

.rental-confirmation { padding: 4px 0 2px; }

.confirmation-back {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  margin: 0 0 19px;
  padding: 0 9px 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: #a9dfff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
  font-weight: 720;
}

.confirmation-back svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.rental-confirmation .eyebrow { margin: 0 0 4px; }
.rental-confirmation h2 { margin-top: 0; }

.confirmation-gift {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(8, 15, 22, 0.45);
}

.confirmation-gift img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.confirmation-gift strong,
.confirmation-gift span { display: block; }
.confirmation-gift strong { color: #fff; font-size: 14px; font-weight: 790; }
.confirmation-gift span { margin-top: 4px; color: #9eacb9; font-size: 10px; }

.confirmation-totals {
  margin: 14px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.confirmation-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.confirmation-totals > div:last-child { border-bottom: 0; }
.confirmation-totals dt { color: #a2afbc; font-size: 11px; }
.confirmation-totals dd { margin: 0; }
.confirmation-totals dd,
.confirmation-totals dd > strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.confirmation-totals__grand {
  background: linear-gradient(135deg, rgba(69, 184, 242, 0.14), rgba(255, 255, 255, 0.02));
}

.confirmation-totals__grand dt { color: #d8f2ff; font-weight: 740; }
.confirmation-totals__grand dd,
.confirmation-totals__grand dd > strong { font-size: 19px; }

.confirmation-note {
  margin: 10px 3px 14px;
  color: #8f9daa;
  font-size: 9px;
  line-height: 1.5;
}

.confirmation-payment-note,
.confirmation-error {
  margin: 0 3px 12px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.45;
}
.confirmation-payment-note { color: #a7defc; background: rgba(53, 169, 241, 0.075); }
.confirmation-payment-note i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #55c9ff; }
.confirmation-error { color: #ff9aa6; background: rgba(255, 77, 99, 0.1); }
.confirmation-pay:disabled { cursor: wait; filter: saturate(0.6); opacity: 0.72; }

.confirmation-pay { margin-top: 3px; }

.orders-menu {
  position: fixed;
  z-index: 1100;
  inset: auto 0 0;
  width: min(100%, 520px);
  max-height: min(88dvh, calc(var(--app-viewport-height, 100dvh) - 8px));
  margin: auto auto 0;
  padding: 12px 10px calc(12px + max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px)));
  overflow: hidden;
  border: 1px solid rgba(119, 208, 255, 0.18);
  border-radius: 22px 22px 0 0;
  color: #f7fbff;
  background: #111c26;
  box-shadow: 0 -28px 90px rgba(0, 0, 0, 0.64), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.orders-menu[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-in 180ms ease-out;
}

.orders-menu::backdrop { background: rgba(4, 8, 12, 0.78); backdrop-filter: blur(7px); }

.orders-menu__header {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.orders-menu__avatar {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  color: #082033;
  background: linear-gradient(145deg, #b5edff, #37aff3);
}

.orders-menu__avatar img { width: 100%; height: 100%; object-fit: cover; }
.orders-menu__avatar b { font-size: 12px; font-weight: 880; }
.orders-menu__header > div { min-width: 0; }
.orders-menu__header h2 { margin: 0; font-size: 17px; }
.orders-menu__header p { margin: 3px 0 0; overflow: hidden; color: #8799a8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.orders-menu__close {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  background: #1d2934;
  font-size: 21px;
}

.orders-menu__state {
  padding: 34px 14px;
  color: #8ea0af;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.orders-menu__list {
  display: grid;
  min-height: 0;
  padding-top: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  gap: 6px;
  scrollbar-width: none;
}

.orders-menu__list::-webkit-scrollbar { display: none; }

.order-history-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 14px;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  color: inherit;
  background: #17232e;
  text-decoration: none;
}

.order-history-card > img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; }
.order-history-card__main { min-width: 0; }
.order-history-card__main > strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.order-history-card__main > small { display: block; margin-top: 3px; color: #8798a7; font-size: 8px; }
.order-history-card__status { display: inline-block; margin-top: 5px; padding: 3px 5px; border-radius: 999px; font-size: 7px; font-weight: 780; }
.order-history-card__status--pending { color: #d5b981; background: rgba(220, 168, 69, 0.11); }
.order-history-card__status--ready { color: #8bd9ff; background: rgba(53, 169, 241, 0.11); }
.order-history-card__status--warning { color: #ffc28a; background: rgba(245, 141, 48, 0.11); }
.order-history-card__status--progress { color: #b8b8ff; background: rgba(113, 113, 238, 0.12); }
.order-history-card__status--active { color: #7de0a9; background: rgba(72, 196, 124, 0.11); }
.order-history-card__status--expired { color: #9aa6b0; background: rgba(150, 161, 170, 0.1); }
.order-history-card__price { text-align: right; white-space: nowrap; }
.order-history-card__price strong { display: block; font-size: 10px; }
.order-history-card__price small { display: block; margin-top: 2px; color: #718391; font-size: 7px; }
.order-history-card > svg { width: 14px; fill: none; stroke: #607481; stroke-width: 1.8; }

.share-preview-page {
  width: min(calc(100% - 28px), 430px);
  margin: 24px auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: #15212b;
  text-align: center;
}

.share-preview-page > img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 15px; object-fit: cover; }
.share-preview-page .eyebrow { margin-top: 18px; }
.share-preview-page h1 { margin: 4px 0 7px; font-size: 25px; }
.share-preview-page p:not(.eyebrow) { margin: 0 0 15px; color: #98a8b5; font-size: 11px; line-height: 1.5; }
.share-preview-page .primary-button { display: grid; min-height: 46px; place-items: center; text-decoration: none; }

.payment-return-card--missing code { overflow-wrap: anywhere; color: #a8dcf8; }
.payment-return__icon--missing { color: #ffd28c; background: rgba(246, 177, 68, 0.12); }

/* Checkout, payment return and paid-order instructions. */
.checkout-body,
.paid-order-body {
  background:
    radial-gradient(circle at 50% -220px, rgba(66, 177, 238, 0.22), transparent 580px),
    #101820;
}

.checkout-page {
  width: min(100% - 28px, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 0 calc(40px + env(safe-area-inset-bottom));
}

.checkout-brand { margin: 0 4px 28px; }

.payment-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(107, 211, 164, 0.18);
  border-radius: 999px;
  color: #9ae5c0;
  background: rgba(61, 177, 121, 0.09);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.025em;
}

.payment-status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #69d49d;
  box-shadow: 0 0 0 4px rgba(105, 212, 157, 0.1);
}

.payment-status-badge--expired { color: #aab5be; border-color: rgba(170, 181, 190, 0.16); background: rgba(140, 151, 160, 0.08); }
.payment-status-badge--expired i { background: #88959f; box-shadow: 0 0 0 4px rgba(136, 149, 159, 0.09); }

.payment-simulator {
  position: relative;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(75, 193, 255, 0.16), transparent 250px),
    linear-gradient(145deg, rgba(29, 42, 54, 0.97), rgba(17, 27, 36, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.payment-simulator::before {
  position: absolute;
  inset: 0 auto auto 15%;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  content: "";
}

.payment-simulator__gift {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(7, 14, 20, 0.42);
}

.payment-simulator__gift img {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 11px;
  object-fit: cover;
}

.payment-simulator__gift small,
.payment-simulator__gift strong,
.payment-simulator__gift span { display: block; }
.payment-simulator__gift small { color: #7f8e9d; font-size: 8px; }
.payment-simulator__gift strong { margin-top: 3px; color: #fff; font-size: 14px; font-weight: 780; }
.payment-simulator__gift span { margin-top: 4px; color: #a8b5c1; font-size: 10px; }

.payment-simulator__amount {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 23px 3px 19px;
}

.payment-simulator__amount > span { color: #91a0ae; font-size: 10px; }
.payment-simulator__amount strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 27px;
  font-weight: 830;
  letter-spacing: -0.045em;
}
.payment-simulator__status {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(83, 195, 255, 0.16);
  border-radius: 16px;
  background: rgba(47, 151, 210, 0.08);
}

.payment-simulator__status h1 { margin: 0; font-size: 14px; font-weight: 780; }
.payment-simulator__status p { margin: 4px 0 0; color: #9eacb8; font-size: 9px; line-height: 1.45; }
.payment-simulator__status--success { border-color: rgba(105, 212, 157, 0.24); background: rgba(105, 212, 157, 0.08); }
.payment-simulator__status--error { border-color: rgba(255, 103, 120, 0.3); background: rgba(255, 75, 96, 0.09); }

.payment-spinner {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 3px solid rgba(119, 208, 255, 0.15);
  border-top-color: #75cffd;
  border-radius: 50%;
  animation: payment-spin 760ms linear infinite;
}
.payment-simulator__status--success .payment-spinner { border-color: #69d49d; animation: none; }
.payment-simulator__status--error .payment-spinner { border-color: #ff6b7b; border-top-color: transparent; animation: none; }

.payment-progress {
  height: 4px;
  margin: 13px 2px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.payment-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #75d4ff, #35a9f1);
  animation: payment-progress 2.1s ease-out both;
  transform-origin: left;
}

.payment-simulator__notice { margin: 14px 3px 0; color: #7f8d99; font-size: 9px; line-height: 1.5; text-align: center; }
.payment-retry { width: 100%; margin-top: 14px; }

.checkout-page--return { display: grid; place-items: center; }
.payment-return {
  width: 100%;
  padding: 32px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(29, 42, 54, 0.97), rgba(17, 27, 36, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  text-align: center;
}
.payment-return__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid rgba(105, 212, 157, 0.24);
  border-radius: 19px;
  color: #b8f7d7;
  background: rgba(105, 212, 157, 0.12);
}
.payment-return__icon svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.payment-return h1 { margin: 5px 0 8px; font-size: clamp(25px, 7vw, 34px); letter-spacing: -0.04em; }
.payment-return > p:not(.eyebrow) { margin: 0 auto; color: #9ba9b6; font-size: 11px; line-height: 1.55; }
.payment-return__loader { display: block; width: 32px; height: 32px; margin: 20px auto 0; border: 3px solid rgba(117, 207, 253, 0.14); border-top-color: #75cffd; border-radius: 50%; animation: payment-spin 760ms linear infinite; }
.payment-return .paid-order-home { margin-top: 18px; }

.paid-order-page {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0 12px calc(56px + env(safe-area-inset-bottom));
}

.paid-order-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.paid-order-hero {
  max-width: 690px;
  margin: 48px auto 26px;
  text-align: center;
}

.paid-order-hero__check {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  place-items: center;
  border: 1px solid rgba(119, 229, 177, 0.25);
  border-radius: 19px;
  color: #b8f7d7;
  background: linear-gradient(145deg, rgba(105, 212, 157, 0.25), rgba(44, 148, 100, 0.1));
  box-shadow: 0 15px 40px rgba(44, 168, 108, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.paid-order-hero__check svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.paid-order-hero h1 { margin: 4px 0 8px; font-size: clamp(30px, 7vw, 46px); letter-spacing: -0.045em; line-height: 1; }
.paid-order-hero > p:last-child { max-width: 600px; margin: 0 auto; color: #9ba8b5; font-size: 11px; line-height: 1.55; }

.paid-gift-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 15px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(80, 191, 250, 0.13), transparent 300px),
    rgba(24, 35, 46, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px);
}

.paid-gift-card__image { width: 112px; height: 112px; border-radius: 15px; object-fit: cover; background: #131d26; }
.paid-gift-card__content { min-width: 0; align-self: center; }
.paid-gift-card__status { display: inline-flex; align-items: center; gap: 6px; color: #8ae1b5; font-size: 9px; font-weight: 750; }
.paid-gift-card__status i { width: 6px; height: 6px; border-radius: 50%; background: #69d49d; }
.paid-gift-card__content h2 { margin: 6px 0 2px; overflow-wrap: anywhere; font-size: clamp(20px, 5vw, 28px); letter-spacing: -0.04em; }
.paid-gift-card__id { display: block; color: #82d3ff; font-size: 10px; }
.paid-gift-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.paid-gift-card__tags span { padding: 5px 7px; border-radius: 999px; color: #aab7c3; background: rgba(255, 255, 255, 0.055); font-size: 8px; font-weight: 650; }

.paid-order-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(8, 15, 22, 0.35);
}
.paid-order-facts > div { min-width: 0; padding: 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); }
.paid-order-facts > div:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.055); }
.paid-order-facts dt { color: #81909e; font-size: 8px; }
.paid-order-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #ecf4fa; font-size: 10px; font-weight: 720; }
.paid-order-facts__total { grid-column: 1 / -1; border-right: 0 !important; background: rgba(57, 176, 238, 0.08); }
.paid-order-facts__total dd { display: inline-flex; align-items: center; gap: 5px; font-size: 18px; font-weight: 830; }

.order-receipt-link {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(103, 201, 255, 0.16);
  border-radius: 13px;
  color: #dff4ff;
  background: rgba(53, 169, 241, 0.07);
  text-decoration: none;
}
.order-receipt-link > svg:first-child { width: 25px; height: 25px; padding: 4px; border-radius: 8px; background: rgba(53, 169, 241, 0.12); }
.order-receipt-link > svg:last-child { width: 18px; height: 18px; }
.order-receipt-link svg { fill: none; stroke: #7bd1ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.order-receipt-link strong,
.order-receipt-link small { display: block; }
.order-receipt-link strong { font-size: 11px; }
.order-receipt-link small { margin-top: 2px; color: #8798a6; font-size: 8px; }

.rental-activation {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(97, 202, 255, 0.17);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(57, 182, 247, 0.15), transparent 290px),
    linear-gradient(145deg, rgba(26, 39, 51, 0.96), rgba(15, 24, 32, 0.96));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.rental-activation::after {
  position: absolute;
  top: -60px;
  right: -38px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(104, 211, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(66, 185, 245, 0.08);
  content: "";
  pointer-events: none;
}

.rental-activation__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(116, 214, 255, 0.2);
  border-radius: 15px;
  color: #9fe0ff;
  background: rgba(53, 169, 241, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.rental-activation__icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rental-activation__heading { position: relative; z-index: 1; min-width: 0; }
.rental-activation__heading h2 { margin: 1px 0 0; color: #f4f9fc; font-size: clamp(20px, 5vw, 28px); letter-spacing: -0.035em; }
.rental-activation__heading > p:last-child { max-width: 760px; margin: 8px 0 0; color: #9eafbc; font-size: 12px; line-height: 1.62; }

.ton-connect-help {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  background: rgba(7, 14, 20, 0.32);
}
.ton-connect-help span { display: flex; min-width: 0; align-items: center; gap: 8px; color: #aebbc6; font-size: 10px; line-height: 1.4; }
.ton-connect-help b { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: #9bddff; background: rgba(53, 169, 241, 0.12); font-size: 9px; }
.ton-connect-help code { color: #c8eaff; font-family: inherit; font-weight: 750; }

.ton-connect-form { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 8px; }
.ton-connect-form > label { color: #d9e5ed; font-size: 10px; font-weight: 780; }
.ton-connect-form__control {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(116, 207, 255, 0.16);
  border-radius: 12px;
  background: rgba(7, 14, 20, 0.55);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.ton-connect-form__control:focus-within { border-color: rgba(100, 205, 255, 0.48); box-shadow: 0 0 0 3px rgba(53, 169, 241, 0.09); }
.ton-connect-form__control > span { display: grid; place-items: center; color: #79cef9; border-right: 1px solid rgba(255, 255, 255, 0.055); }
.ton-connect-form__control svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ton-connect-form input { min-width: 0; height: 44px; padding: 0 12px; border: 0; outline: 0; color: #edf7fc; background: transparent; font-family: inherit; font-size: 12px; font-weight: 650; line-height: 1.2; }
.ton-connect-form input::placeholder { color: #657685; }
.ton-connect-form input:disabled { opacity: 0.65; }
.ton-connect-submit { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 0; }
.ton-connect-submit svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ton-connect-submit::after { display: none; width: 15px; height: 15px; border: 2px solid rgba(8, 26, 36, 0.22); border-top-color: #0b202a; border-radius: 50%; content: ""; }
.ton-connect-submit--loading svg { display: none; }
.ton-connect-submit--loading::after { display: block; animation: payment-spin 760ms linear infinite; }
.ton-connect-form__note { margin: 1px 2px 0; color: #7f909e; font-size: 9px; line-height: 1.5; }
.ton-connect-message { padding: 10px 11px; border-radius: 10px; font-size: 10px; font-weight: 650; line-height: 1.5; }
.ton-connect-message--error { border: 1px solid rgba(255, 99, 117, 0.18); color: #ff9aa6; background: rgba(255, 75, 96, 0.08); }
.ton-connect-message--success { border: 1px solid rgba(105, 212, 157, 0.2); color: #a5edc8; background: rgba(74, 195, 132, 0.09); }

.rental-activation__success {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(105, 212, 157, 0.18);
  border-radius: 13px;
  color: #d9f9e9;
  background: rgba(72, 191, 130, 0.09);
}
.rental-activation__success > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #a8efca; background: rgba(105, 212, 157, 0.12); }
.rental-activation__success svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rental-activation__success strong,
.rental-activation__success small { display: block; }
.rental-activation__success strong { font-size: 12px; }
.rental-activation__success small { margin-top: 3px; color: #93b7a5; font-size: 9px; }
.rental-activation--active { border-color: rgba(105, 212, 157, 0.18); }
.rental-activation--active .rental-activation__icon { border-color: rgba(105, 212, 157, 0.2); color: #a8efca; background: rgba(105, 212, 157, 0.11); }

.rental-activation__expired {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(255, 174, 88, 0.18);
  border-radius: 13px;
  color: #ffe1bf;
  background: rgba(194, 112, 42, 0.09);
}
.rental-activation__expired > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #ffc183; background: rgba(225, 136, 55, 0.12); font-weight: 900; }
.rental-activation__expired strong,
.rental-activation__expired small { display: block; }
.rental-activation__expired strong { font-size: 12px; }
.rental-activation__expired small { margin-top: 3px; color: #bda58e; font-size: 9px; }
.rental-activation--expired { border-color: rgba(255, 174, 88, 0.15); }
.rental-activation--expired .rental-activation__icon { border-color: rgba(255, 174, 88, 0.18); color: #ffc183; background: rgba(225, 136, 55, 0.09); }

.assignment-guide {
  margin-top: 24px;
  padding: 20px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(22, 32, 42, 0.82);
}
.assignment-guide__heading h2 { margin: 0; font-size: clamp(22px, 5vw, 32px); letter-spacing: -0.035em; }
.assignment-guide__heading > p:last-child { max-width: 690px; margin: 8px 0 0; color: #a5b2bd; font-size: 13px; line-height: 1.6; }

.assignment-alert {
  margin-top: 13px;
  padding: 12px;
  border-left: 3px solid;
  border-radius: 0 10px 10px 0;
}
.assignment-alert strong { display: block; font-size: 13px; }
.assignment-alert p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; }
.assignment-alert--danger { border-color: #ff5369; color: #ff8795; background: rgba(255, 67, 89, 0.1); }
.assignment-alert--warning { border-color: #ffad4b; color: #ffc173; background: rgba(255, 156, 46, 0.09); }

.instruction-videos { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.instruction-video { min-width: 0; padding: 8px; border: 1px solid rgba(93, 200, 255, 0.22); border-radius: 14px; background: rgba(7, 14, 20, 0.46); }
.instruction-video header { display: flex; align-items: center; gap: 8px; padding: 2px 2px 8px; }
.instruction-video header span { padding: 5px 8px; border-radius: 7px; color: #83d5ff; background: rgba(53, 169, 241, 0.12); font-size: 10px; font-weight: 800; }
.instruction-video header strong { font-size: 13px; }
.instruction-video__frame { position: relative; display: grid; min-height: 170px; place-items: center; overflow: hidden; border-radius: 9px; background: #080d12; }
.instruction-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #080d12; object-fit: contain; }
.instruction-video__missing { display: grid; width: 100%; min-height: 170px; padding: 20px; place-content: center; color: #81909e; text-align: center; }
.instruction-video__missing strong { color: #d9e5ed; font-size: 11px; }
.instruction-video__missing span { margin-top: 7px; font-size: 8px; line-height: 1.45; }
.instruction-video__missing code { color: #73caf8; overflow-wrap: anywhere; }

.assignment-steps { position: relative; display: grid; grid-template-columns: 1fr; max-width: 860px; margin: 25px auto 0; padding: 0; gap: 12px; list-style: none; }
.assignment-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 17px 18px;
  border: 1px solid transparent;
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(14, 24, 33, 0.96), rgba(9, 17, 24, 0.9)) padding-box,
    linear-gradient(120deg, rgba(98, 204, 255, 0.17), rgba(255, 255, 255, 0.035), rgba(98, 204, 255, 0.08)) border-box;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.assignment-steps li::after { position: absolute; left: 39px; bottom: -13px; width: 1px; height: 13px; background: linear-gradient(#41b8f4, rgba(65, 184, 244, 0.08)); content: ""; }
.assignment-steps li:last-child::after { display: none; }
.assignment-steps li:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.assignment-steps li > b { position: relative; z-index: 1; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(130, 222, 255, 0.25); border-radius: 14px; color: #dff6ff; background: linear-gradient(145deg, rgba(71, 190, 249, 0.32), rgba(30, 122, 175, 0.18)); box-shadow: 0 10px 24px rgba(53, 169, 241, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14); font-size: 15px; font-weight: 850; }
.assignment-steps strong,
.assignment-steps small { display: block; }
.assignment-steps strong { color: #f5f9fc; font-size: 15px; letter-spacing: -0.012em; line-height: 1.35; }
.assignment-steps small { max-width: 730px; margin-top: 6px; color: #a8b6c1; font-size: 13px; line-height: 1.58; }
.paid-order-home { display: grid; width: 100%; margin-top: 14px; place-items: center; text-decoration: none; }

.receipt-money {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28em;
}
.receipt-document .byn-icon { filter: brightness(0) saturate(100%); }

@keyframes payment-spin { to { transform: rotate(360deg); } }
@keyframes payment-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.service-information,
.merchant-information {
  margin-top: 58px;
  padding: 24px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(53, 169, 241, 0.1), transparent 320px),
    linear-gradient(145deg, rgba(28, 39, 50, 0.95), rgba(20, 29, 38, 0.95));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.merchant-information { margin-top: 16px; }

.information-heading h2 {
  margin: 0;
  font-size: clamp(20px, 5vw, 28px);
  letter-spacing: -0.025em;
}

.information-heading > p:last-child {
  max-width: 650px;
  margin: 8px 0 0;
  color: #9ca9b6;
  font-size: 12px;
  line-height: 1.5;
}

.order-steps {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.order-steps li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: rgba(12, 20, 28, 0.52);
}

.order-steps li > b {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #07131a;
  background: linear-gradient(145deg, #8ad8ff, #3badf0);
  font-size: 11px;
}

.order-steps strong,
.order-steps small { display: block; }

.order-steps strong {
  color: #f4f7fa;
  font-size: 12px;
}

.order-steps small {
  margin-top: 4px;
  color: #8997a6;
  font-size: 10px;
  line-height: 1.45;
}

.information-cards {
  display: grid;
  margin-top: 9px;
  gap: 8px;
}

.information-cards article {
  position: relative;
  min-width: 0;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: rgba(14, 23, 31, 0.65);
}

.information-card__icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  color: #79ceff;
  background: rgba(53, 169, 241, 0.1);
}

.information-card__icon svg,
.document-link svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.information-cards h3 {
  margin: 11px 0 6px;
  font-size: 14px;
}

.information-cards p,
.information-cards li {
  color: #98a6b4;
  font-size: 11px;
  line-height: 1.55;
}

.information-cards p { margin: 0; }

.information-cards ul {
  margin: 10px 0 0;
  padding-left: 17px;
}

.information-cards li + li { margin-top: 4px; }

.document-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 11px;
  border: 1px solid rgba(53, 169, 241, 0.2);
  border-radius: 9px;
  color: #8bd5ff;
  background: rgba(53, 169, 241, 0.07);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 16px;
  background: #141e27;
}

.contact-card__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-card__brand img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
}

.contact-card__brand strong,
.contact-card__requisites h3 { color: #f4f7f9; font-size: 12px; }
.contact-card__about > p { margin: 10px 0 0; color: #8d9ba8; font-size: 10px; }
.contact-card ul { margin: 11px 0 0; padding: 0; list-style: none; }
.contact-card li,
.contact-card__requisites p { margin: 0; color: #9aa8b5; font-size: 10px; line-height: 1.7; }
.contact-card li + li,
.contact-card__requisites p + p { margin-top: 2px; }
.contact-card a { color: #9fdcff; text-decoration: none; }
.contact-card__requisites h3 { margin: 0 0 8px; }

.payment-methods {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: #101820;
}

.payment-methods > span {
  color: #8f9dab;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-methods img {
  display: block;
  width: min(100%, 560px);
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 15px;
  padding: 22px 4px 4px;
  color: #71808f;
  font-size: 10px;
}

.site-footer a { color: #93a4b3; text-decoration: none; }

.receipt-body { background: #0d141b; }

.receipt-page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 12px 40px;
}

.receipt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.receipt-toolbar a,
.receipt-toolbar button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #b9c5cf;
  background: #18232d;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.receipt-toolbar a { display: inline-flex; align-items: center; }

.receipt-document {
  position: relative;
  padding: clamp(20px, 5vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #1a2630;
  background: #f7f9fa;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.receipt-document__badge {
  position: absolute;
  top: 17px;
  right: -35px;
  width: 150px;
  color: white;
  background: #3aaff1;
  font-size: 8px;
  font-weight: 900;
  line-height: 24px;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(38deg);
}

.receipt-document > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-right: 35px;
}

.receipt-document header small { color: #73808a; font-size: 9px; text-transform: uppercase; }
.receipt-document h1 { margin: 5px 0 0; font-size: clamp(22px, 6vw, 34px); letter-spacing: -0.035em; }
.receipt-document > header > strong { color: #168bca; font-size: 13px; letter-spacing: 0.06em; }

.receipt-warning {
  margin: 18px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  color: #8d5c13;
  background: #fff1d8;
  font-size: 9px;
  line-height: 1.4;
}

.receipt-metadata {
  display: grid;
  margin: 24px 0 0;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e1e6e9;
  border-radius: 12px;
  background: #e1e6e9;
}

.receipt-metadata > div,
.receipt-total > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
  padding: 10px 12px;
  background: white;
}

.receipt-metadata dt,
.receipt-total dt { color: #7a8791; font-size: 9px; }
.receipt-metadata dd,
.receipt-total dd { margin: 0; color: #23303a; font-size: 10px; font-weight: 750; text-align: right; overflow-wrap: anywhere; }

.receipt-status {
  padding: 3px 7px;
  border-radius: 99px;
  color: #197648;
  background: #def5e8;
}

.receipt-line-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 15px 12px;
  border-block: 1px solid #dde3e7;
}

.receipt-line-item strong,
.receipt-line-item small { display: block; }
.receipt-line-item strong { font-size: 11px; }
.receipt-line-item small { margin-top: 4px; color: #78858f; font-size: 9px; }
.receipt-line-item > b { flex: 0 0 auto; font-size: 12px; }

.receipt-total { margin: 0; }
.receipt-total > div { border-bottom: 1px solid #e5e9eb; }
.receipt-total > div:last-child dt,
.receipt-total > div:last-child dd { color: #111b23; font-size: 13px; font-weight: 900; }

.receipt-payment {
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  color: white;
  background: #17232d;
}

.receipt-payment span,
.receipt-payment strong { display: block; }
.receipt-payment span { color: #92a0ac; font-size: 8px; text-transform: uppercase; }
.receipt-payment strong { margin-top: 4px; font-size: 10px; }
.receipt-payment img { display: block; width: min(100%, 440px); max-height: 48px; margin-top: 13px; object-fit: contain; object-position: left; }

.receipt-document > footer {
  margin-top: 19px;
  color: #697781;
  font-size: 9px;
  line-height: 1.5;
}

.receipt-document > footer p { margin: 0 0 7px; }
.receipt-document > footer small { color: #9a6b22; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[hidden] { display: none !important; }

@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

.service-information,
.merchant-information,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

@media (max-width: 559px) {
  .gift-sheet {
    width: 100%;
    border-radius: 19px 19px 0 0;
  }
  .sheet-close { top: 15px; right: 15px; width: 34px; height: 34px; }
  .rental-calculator > header small { font-size: 8px; }
  .rental-calculator > header strong { font-size: 11px; }
  .rental-calculator > header > span { font-size: 8px; }
  .gift-sheet__actions button { font-size: 8px; }
}

@media (max-width: 559px) and (max-height: 650px) {
  .gift-sheet__media { height: min(calc(100vw - 16px), 38dvh, 235px); min-height: 180px; }
  .gift-sheet__description { display: none; }
  .gift-sheet__content { padding-top: 8px; }
  .gift-sheet__tags { flex-wrap: nowrap; overflow: hidden; }
  .gift-sheet__actions { margin-top: 6px; }
  .rental-calculator { margin-block: 6px; padding: 8px; }
  .rental-discount-note { display: none; }
}

@media (hover: hover) and (pointer: fine) {
  .gift-card {
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .gift-card:hover { transform: translateY(-3px); }
  .gift-card:active:hover { transform: translateY(-1px) scale(0.985); }
  .gift-card__image { transition: opacity 260ms ease, transform 180ms ease; }
  .gift-card:hover .gift-card__image { transform: scale(1.02); }
}

@media (hover: none), (pointer: coarse) {
  .app-header,
  .filter-panel,
  .sheet-backdrop,
  .gift-sheet,
  .gift-sheet__media > span:last-child,
  .sheet-close,
  .rental-calculator,
  .orders-menu,
  .orders-menu::backdrop,
  .paid-gift-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .app-header { background: #111820; }
  .filter-panel { background: #18212b; }
  .gift-sheet { background: #121c26; }
  .gift-card { box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16); }
  .sheet-backdrop { background: rgba(0, 0, 0, 0.72); }
}

@media (min-width: 560px) {
  .app-shell { --shell-padding: 16px; padding-inline: var(--shell-padding); }
  .gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .field--gift,
  .field--model,
  .field--backdrop,
  .field--symbol { grid-column: span 3; }
  .field--sort,
  .field--id,
  .field--price { grid-column: span 4; }
  .reset-button { grid-column: 1 / -1; }
  .order-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .information-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-methods { flex-direction: row; align-items: center; justify-content: space-between; }
  .payment-methods img { object-position: right center; }
  .paid-order-page { padding-inline: 20px; }
  .paid-gift-card { grid-template-columns: 156px minmax(0, 1fr); padding: 18px; gap: 18px; }
  .paid-gift-card__image { width: 156px; height: 156px; }
  .rental-activation { grid-template-columns: 54px minmax(0, 1fr); padding: 22px; gap: 16px; }
  .ton-connect-help { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ton-connect-help span { align-items: flex-start; }
  .ton-connect-form { grid-template-columns: minmax(0, 1fr) minmax(190px, 0.32fr); align-items: end; column-gap: 10px; }
  .ton-connect-form > label,
  .ton-connect-form__note,
  .ton-connect-message { grid-column: 1 / -1; }
  .assignment-guide { padding: 26px; }
  .instruction-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 820px) {
  .app-shell { --shell-padding: 20px; padding-inline: var(--shell-padding); }
  .gift-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 14px; }
  .gift-card__name { font-size: 14px; }
  .gift-card__prices small { font-size: 10px; }
  .gift-card__prices strong { font-size: 15px; }
  .days-badge { font-size: 10px; }
  .order-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .app-shell { --shell-padding: 16px; padding-inline: var(--shell-padding); }
  .app-header { min-height: 78px; }
  .catalog-head { padding-top: 24px; }
  .filter-panel { padding: 8px; }
  .field--gift,
  .field--model,
  .field--backdrop,
  .field--symbol { grid-column: span 2; }
  .field--sort { grid-column: span 2; }
  .field--id { grid-column: span 2; }
  .field--price { grid-column: span 6; }
  .reset-button { grid-column: span 6; }
  .gift-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 24px 16px; }
  .gift-card__body { padding-inline: 5px; }
}

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

@media print {
  :root { color-scheme: light; }
  .receipt-body { background: white; }
  .receipt-page { width: 100%; padding: 0; }
  .receipt-toolbar { display: none; }
  .receipt-document { border: 0; box-shadow: none; }
}
