:root {
  color-scheme: dark;
  --bg: #111111;
  --phone: #373737;
  --phone-soft: #424343;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f4f4f2;
  --muted: rgba(244, 244, 242, 0.55);
  --faint: rgba(244, 244, 242, 0.34);
  --white: #f7f7f5;
  --black: #181818;
  --warm: #f0a360;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --tg-safe-top: 0px;
  --tg-safe-bottom: 0px;
  --tg-content-safe-top: 0px;
  --tg-content-safe-bottom: 0px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin: 0;
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  opacity: 0.92;
}

.ui-icon-manage-change,
.ui-icon-manage-switch,
.ui-icon-manage-traffic,
.ui-icon-manage-renew,
.ui-icon-device-qr,
.ui-icon-device-key,
.ui-icon-device-delete,
.ui-icon-notification,
.ui-icon-telegram,
.ui-icon-tariff-controls,
.ui-icon-email,
.ui-icon-account-delete,
.ui-icon-gift-certificate,
.ui-icon-gift-key,
.ui-icon-support-contact {
  filter: brightness(0) invert(1);
}

.app,
.noscript {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.08), transparent 28rem),
    radial-gradient(circle at 50% 86%, rgba(255, 255, 255, 0.05), transparent 22rem),
    var(--bg);
}

.channel-gate-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  padding:
    max(22px, calc(var(--tg-content-safe-top) + 16px))
    max(18px, env(safe-area-inset-right))
    max(22px, calc(var(--tg-content-safe-bottom) + 16px))
    max(18px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 44%, rgba(240, 163, 96, 0.07), transparent 22rem),
    #111315;
}

.channel-gate-lines,
.channel-gate-lines::before,
.channel-gate-lines::after {
  position: absolute;
  left: -18%;
  width: 136%;
  height: 180px;
  border: 1px solid rgba(240, 163, 96, 0.16);
  border-right-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.channel-gate-lines { top: 86px; transform: rotate(-4deg); }
.channel-gate-lines::before { top: 380px; left: 0; width: 100%; border-color: rgba(255,255,255,.07) transparent; transform: rotate(8deg); }
.channel-gate-lines::after { top: 650px; left: 0; width: 100%; transform: rotate(-3deg); }

.channel-gate-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(100%, 1240px);
  margin: 0 auto;
}

.channel-gate-header > span:last-child strong,
.channel-gate-header > span:last-child small {
  display: block;
}

.channel-gate-header > span:last-child strong {
  font-size: 18px;
  line-height: 1.05;
  font-weight: 760;
}

.channel-gate-header > span:last-child small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.channel-gate-card {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100%, 420px);
  margin: 28px auto 0;
  padding: 34px 24px 27px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(31, 34, 37, .97);
  box-shadow: 0 32px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.04);
  text-align: center;
}

.channel-gate-telegram {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 10px rgba(240,163,96,.055), 0 16px 36px rgba(0,0,0,.3);
}

.channel-gate-telegram img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  filter: invert(1);
  mix-blend-mode: screen;
}

.channel-gate-kicker {
  color: var(--warm);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 3.4px;
}

.channel-gate-card h1 {
  margin-top: 13px;
  font-size: clamp(32px, 8.5vw, 38px);
  line-height: 1.05;
  letter-spacing: -1px;
}

.channel-gate-lead {
  max-width: 330px;
  margin: 17px auto 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.channel-gate-channel {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0,0,0,.14);
  text-align: left;
}

.channel-gate-channel-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.channel-gate-channel-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.25));
}

.channel-gate-channel-copy {
  min-width: 0;
}

.channel-gate-channel-copy strong,
.channel-gate-channel-copy small {
  display: block;
}

.channel-gate-channel-copy strong {
  font-size: 14px;
  line-height: 1.1;
}

.channel-gate-channel-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.channel-gate-channel button {
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid var(--warm);
  border-radius: 8px;
  color: var(--warm);
  background: transparent;
  font-size: 12px;
  font-weight: 820;
}

.channel-gate-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 55px;
  margin-top: 16px;
  border-radius: 9px;
  color: #ffffff;
  background: var(--warm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  font-size: 15px;
  font-weight: 850;
}

.channel-gate-check:disabled {
  cursor: wait;
  opacity: .7;
}

.channel-gate-check span {
  min-width: 18px;
  font-size: 18px;
}

.channel-gate-hint {
  min-height: 35px;
  margin: 17px 8px 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}

.channel-gate-hint.is-error { color: #e68f7f; }

@media (min-width: 900px) {
  .channel-gate-card {
    width: 460px;
    padding: 38px 30px 30px;
  }
}

@media (max-height: 720px) {
  .channel-gate-card {
    align-self: start;
    margin-top: 24px;
    padding-block: 24px 21px;
  }
  .channel-gate-telegram {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
  }
  .channel-gate-telegram img { width: 45px; height: 45px; }
  .channel-gate-lead { margin-block: 13px 18px; }
}

.noscript {
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.stage {
  min-height: 100svh;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 18px 14px 30px;
}

.phone-shell {
  position: relative;
  width: min(430px, calc(100vw - 22px));
  min-height: min(1050px, calc(100svh - 48px));
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.26);
  border-radius: 44px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.12) 47%, rgba(255, 255, 255, 0.04)),
    var(--phone);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.46),
    0 30px 100px rgba(0, 0, 0, 0.58);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 55% 12%, rgba(255, 255, 255, 0.12), transparent 16rem),
    radial-gradient(circle at 62% 73%, rgba(185, 205, 215, 0.08), transparent 16rem);
}

.phone-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.30;
  background-image: url("data:image/svg+xml,%3Csvg width='430' height='1200' viewBox='0 0 430 1200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.40)' stroke-width='1'%3E%3Cpath d='M-80 98 C20 84 86 120 166 112 C268 100 320 58 520 78'/%3E%3Cpath d='M-74 188 C70 198 108 158 214 168 C300 176 340 220 520 198'/%3E%3Cpath d='M-88 294 C36 268 110 302 210 294 C316 286 360 246 526 270'/%3E%3Cpath d='M-70 398 C44 392 124 424 214 418 C324 410 370 374 528 394'/%3E%3Cpath d='M-86 512 C22 492 108 528 204 520 C300 512 364 472 528 496'/%3E%3Cpath d='M-74 636 C40 648 120 616 214 626 C316 638 382 674 520 654'/%3E%3Cpath d='M-84 746 C22 728 102 762 210 756 C316 750 370 708 528 732'/%3E%3Cpath d='M-78 866 C48 884 120 846 224 858 C330 870 380 914 526 892'/%3E%3Cpath d='M-86 986 C28 958 118 994 218 982 C316 972 368 930 526 954'/%3E%3Cpath d='M-66 1102 C36 1116 118 1082 214 1092 C314 1102 370 1138 526 1122'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% auto;
}

.notch {
  position: relative;
  z-index: 2;
  width: 116px;
  height: 28px;
  margin: 10px auto 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.screen {
  position: relative;
  z-index: 2;
  padding: 0 22px 150px;
}

.content {
  display: grid;
  gap: 18px;
}

.app-header {
  min-height: 86px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-lockup,
.header-actions,
.hero-row,
.panel-head,
.traffic-row,
.muted-row,
.user-row {
  display: flex;
  align-items: center;
}

.brand-lockup {
  min-width: 0;
  gap: 8px;
}

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

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

.brand-lockup strong {
  white-space: nowrap;
  max-width: 122px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 760;
}

.brand-lockup small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.logo-mark,
.panel-icon,
.avatar {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.logo-mark {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.logo-mark--plain {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.logo-mark svg {
  width: 34px;
  height: 34px;
}

.logo-image {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.18))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.26));
}

.panel-icon .ui-icon {
  width: 30px;
  height: 30px;
}

.logo-stripe {
  fill: currentColor;
  stroke: none;
}

.header-actions {
  gap: 8px;
}

.icon-button,
.lang-button,
.menu-button {
  min-width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
}

.lang-button {
  min-width: 60px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 760;
}

.lang-wrap {
  position: relative;
}

.lang-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 142px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(36, 36, 36, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.lang-popover button {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 15px;
  font-weight: 720;
}

.lang-popover button span {
  margin-right: 8px;
}

.lang-popover .is-active {
  color: var(--warm);
  background: rgba(240, 163, 96, 0.12);
}

.hero,
.page-head {
  padding-top: 18px;
}

.hero h1 {
  font-size: 31px;
  line-height: 1.08;
  font-weight: 570;
  letter-spacing: 0;
}

.page-head h1 {
  color: rgba(244, 244, 242, 0.74);
  font-size: 15px;
  line-height: 1.12;
  font-weight: 860;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.page-head p,
.hero-row span {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.35;
}

.page-head p {
  margin-top: 12px;
}

.hero-row {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 14px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.panel,
.mini-panel,
.action-item,
.subscription-cabinet,
.subscription-action,
.subscription-devices,
.device-actions button,
.device-card,
.support-line,
.tariff-card,
.period-list button {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 55px rgba(0, 0, 0, 0.24);
}

.panel {
  border-radius: var(--radius-xl);
  padding: 20px;
}

.profile-panel {
  margin-top: 10px;
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055) 58%, rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.045);
}

.profile-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.10) 48%, transparent 62%),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.12), transparent 9rem);
  opacity: 0.72;
}

.profile-panel > * {
  position: relative;
  z-index: 1;
}

.subscription-head {
  padding-top: 8px;
}

.subscription-cabinet {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-xl);
  border-color: rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.055) 55%, rgba(255, 255, 255, 0.10)),
    rgba(255, 255, 255, 0.045);
}

.subscription-summary {
  padding: 18px;
}

.summary-plan {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.summary-plan .panel-icon {
  width: 42px;
  height: 42px;
}

.summary-plan strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  line-height: 1.06;
  font-weight: 820;
}

.summary-plan .status {
  min-height: 32px;
  padding: 4px 10px 6px;
  font-size: 14px;
}

.summary-active {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.2;
}

.summary-countdown {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.075);
}

.summary-countdown span {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.15;
}

.summary-countdown strong {
  color: var(--warm);
  font-size: 35px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.summary-traffic {
  margin: 12px 0 -4px;
}

.summary-traffic span,
.summary-traffic strong {
  font-size: 18px;
}

.summary-progress {
  margin-bottom: 2px;
}

.cabinet-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.cabinet-title small,
.cabinet-title strong {
  display: block;
}

.cabinet-title small {
  color: var(--muted);
  font-size: 14px;
}

.cabinet-title strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 820;
}

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

.cabinet-time-grid article {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.cabinet-time-grid span,
.subscription-action small,
.subscription-section-head small {
  color: var(--muted);
}

.cabinet-time-grid span {
  font-size: 14px;
}

.cabinet-time-grid strong {
  font-size: 21px;
  line-height: 1.08;
  font-weight: 820;
}

.cabinet-traffic {
  margin: 4px 0 -2px;
}

.cabinet-progress i {
  background: linear-gradient(90deg, var(--white), rgba(240, 163, 96, 0.92));
}

.subscription-actions {
  display: grid;
  gap: 12px;
}

.subscription-action {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 25px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.subscription-action:active {
  transform: scale(0.985);
}

.subscription-action strong,
.subscription-action small {
  display: block;
}

.subscription-action strong {
  font-size: 18px;
  line-height: 1.14;
  font-weight: 780;
}

.subscription-action small {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.25;
}

.subscription-action.is-primary {
  border-color: rgba(240, 163, 96, 0.34);
  background:
    linear-gradient(145deg, rgba(240, 163, 96, 0.13), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
}

.subscription-action > b {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.auto-renewal.is-enabled {
  border-color: rgba(240, 163, 96, 0.66);
  background:
    linear-gradient(145deg, rgba(240, 163, 96, 0.22), rgba(255, 255, 255, 0.07)),
    rgba(240, 163, 96, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 55px rgba(0, 0, 0, 0.24),
    0 0 34px rgba(240, 163, 96, 0.20);
}

.auto-renewal.is-enabled > b {
  border-color: rgba(240, 163, 96, 0.55);
  background: rgba(240, 163, 96, 0.13);
  color: var(--warm);
}

.subscription-devices {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.subscription-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.subscription-section-head strong,
.subscription-section-head small {
  display: block;
}

.subscription-section-head strong {
  font-size: 22px;
  line-height: 1.08;
  font-weight: 820;
}

.subscription-section-head small {
  margin-top: 5px;
  font-size: 14px;
}

.subscription-section-head button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(240, 163, 96, 0.40);
  border-radius: 15px;
  background: rgba(240, 163, 96, 0.10);
  color: var(--warm);
  font-size: 14px;
  font-weight: 820;
}

.subscription-section-head button:disabled {
  opacity: 0.44;
}

.subscription-section-head svg {
  width: 18px;
  height: 18px;
}

.management-head {
  padding-top: 8px;
}

.management-pass,
.management-scenario,
.management-editor {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 55px rgba(0, 0, 0, 0.24);
}

.management-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(12, 12, 12, 0.26);
}

.management-mode-switch button {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 11px 9px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.management-mode-switch button.is-active {
  border-color: rgba(240, 163, 96, 0.65);
  background: rgba(240, 163, 96, 0.13);
  color: var(--white);
}

.management-mode-switch.is-locked,
.management-control-panel.is-locked {
  cursor: pointer;
  filter: grayscale(1);
  opacity: 0.48;
}

.management-mode-switch.is-locked button {
  cursor: pointer;
}

.management-control-panel.is-locked input[type="range"] {
  pointer-events: none;
}

.management-mode-switch strong,
.management-mode-switch small {
  display: block;
}

.management-mode-switch strong { font-size: 15px; line-height: 1.08; }
.management-mode-switch small { color: var(--muted); font-size: 11px; line-height: 1.16; }

.management-control-panel {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.management-range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 12px;
}

.management-change-summary {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.management-change-summary div { min-width: 0; }
.management-change-summary small,
.management-change-summary strong { display: block; }
.management-change-summary small { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.management-change-summary strong { overflow: hidden; font-size: 14px; line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; }
.management-change-summary > span { color: var(--warm); }

.management-billing-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.management-billing-summary > div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.05);
}

.management-billing-summary span { color: var(--muted); font-size: 12px; }
.management-billing-summary strong { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.management-billing-summary .management-gift-balance {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-color: rgba(240, 163, 96, .48);
}
.management-billing-summary .management-gift-balance strong { color: var(--warm); }

.management-pass {
  display: grid;
  gap: 15px;
  padding: 18px;
  border-radius: var(--radius-xl);
  border-color: rgba(240, 163, 96, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055) 58%, rgba(240, 163, 96, 0.10)),
    rgba(255, 255, 255, 0.045);
}

.management-pass::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  pointer-events: none;
  border: 1px solid rgba(240, 163, 96, 0.16);
  border-radius: 50%;
}

.management-pass > * {
  position: relative;
  z-index: 1;
}

.management-pass-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.management-pass-top .panel-icon {
  width: 42px;
  height: 42px;
}

.management-pass-top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 860;
}

.management-pass-top b {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px 6px;
  border: 1px solid rgba(240, 163, 96, 0.50);
  border-radius: 999px;
  background: rgba(240, 163, 96, 0.10);
  color: var(--warm);
  font-size: 13px;
  font-weight: 860;
  white-space: nowrap;
}

.management-pass-top b.is-muted {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.management-pass-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 16px;
}

.management-pass-line strong {
  color: var(--white);
  font-size: 22px;
  font-weight: 820;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.management-pass-line .warm,
.management-quote .warm {
  color: var(--warm);
}

.management-pass-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.management-pass-grid span {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.management-pass-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.12;
}

.management-pass-grid b {
  overflow: hidden;
  color: var(--white);
  font-size: 16px;
  line-height: 1.08;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-scenarios {
  display: grid;
  gap: 12px;
}

.management-scenario {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 25px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.management-scenario:active {
  transform: scale(0.985);
}

.management-scenario.is-primary,
.management-scenario.is-selected {
  border-color: rgba(240, 163, 96, 0.54);
  background:
    linear-gradient(145deg, rgba(240, 163, 96, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.management-scenario.is-renew {
  border-color: rgba(240, 163, 96, 0.46);
  background:
    linear-gradient(145deg, rgba(240, 163, 96, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
}

.management-scenario-wide {
  min-height: 96px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  gap: 14px;
  padding: 14px;
}

.management-scenario-wide > .ui-icon:last-child {
  width: 26px;
  height: 26px;
  opacity: 0.86;
}

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

.current-tariffs-action {
  min-height: 66px;
  margin: 0 0 132px;
}

.management-scenario .panel-icon {
  width: 42px;
  height: 42px;
}

.management-scenario strong,
.management-scenario small {
  display: block;
}

.management-scenario strong {
  color: var(--white);
  font-size: 18px;
  line-height: 1.08;
  font-weight: 860;
}

.management-scenario small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.management-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.management-editor.is-locked {
  opacity: 0.82;
}

.management-editor-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.management-editor-head strong,
.management-editor-head small {
  display: block;
}

.management-editor-head strong {
  font-size: 22px;
  line-height: 1.08;
  font-weight: 860;
}

.management-editor-head small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.24;
}

.management-editor-head > b {
  color: var(--warm);
  font-size: 28px;
  line-height: 1;
  font-weight: 860;
  white-space: nowrap;
}

.management-mode button {
  min-height: 48px;
  font-size: 14px;
  line-height: 1.12;
}

.management-editor input[type="range"] {
  width: 100%;
  height: 38px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  touch-action: pan-y;
}

.management-editor input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--warm) 0 var(--fill), rgba(255, 255, 255, 0.12) var(--fill) 100%);
}

.management-editor input[type="range"]::-webkit-slider-thumb {
  width: 34px;
  height: 34px;
  margin-top: -13px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.management-editor input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.management-editor input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--warm);
}

.management-editor input[type="range"]::-moz-range-thumb {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: var(--white);
}

.management-device-control {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.management-device-control b,
.management-device-control small {
  display: block;
}

.management-device-control > span:first-child b {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 820;
}

.management-device-control small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.management-quote {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.management-quote span {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.055);
}

.management-quote small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.12;
}

.management-quote b {
  overflow: hidden;
  color: var(--white);
  font-size: 16px;
  line-height: 1.08;
  font-weight: 860;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-faq {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(240, 163, 96, 0.34);
  border-radius: 20px;
  background: rgba(31, 24, 20, 0.54);
}

.management-faq b {
  color: var(--warm);
  font-size: 15px;
  font-weight: 860;
}

.management-faq span,
.management-lock-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.32;
}

.management-pay {
  margin-top: 0;
  font-size: 18px;
  white-space: nowrap;
}

.autorenew-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.07);
  transition: border-color 180ms ease, background 180ms ease;
}

.autorenew-card.is-enabled {
  border-color: rgba(240, 163, 96, 0.72);
  background: rgba(240, 163, 96, 0.12);
}

.autorenew-card > span strong,
.autorenew-card > span small {
  display: block;
}

.autorenew-card > span strong { font-size: 21px; }
.autorenew-card > span small { margin-top: 5px; color: var(--muted); font-size: 14px; }

.status-switch {
  width: 58px;
  height: 34px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.status-switch i {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transform: translateX(0);
  transition: transform 180ms ease, background 180ms ease;
}

.status-switch.is-on { border-color: var(--warm); background: rgba(240, 163, 96, 0.28); }
.status-switch.is-on i { background: var(--warm); transform: translateX(24px); }

.autorenew-details { display: grid; gap: 0; margin-top: 16px; }
.autorenew-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.autorenew-details > div span { color: var(--muted); }
.autorenew-details > p { margin: 18px 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.history-list { display: grid; gap: 12px; }
.history-item { border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(255,255,255,.07); overflow: hidden; }
.history-item summary { min-height: 96px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 16px; list-style: none; cursor: pointer; }
.history-item summary::-webkit-details-marker { display: none; }
.history-item summary span strong, .history-item summary span small { display: block; }
.history-item summary span strong { font-size: 18px; }
.history-item summary span small { margin-top: 5px; color: var(--muted); font-size: 13px; }
.history-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.history-status img { width: 16px; height: 16px; flex: 0 0 16px; object-fit: contain; filter: brightness(0) invert(1); opacity: .7; }
.history-status.is-success { color: var(--warm); }
.history-status.is-success img { filter: invert(79%) sepia(25%) saturate(1088%) hue-rotate(327deg) brightness(101%); opacity: 1; }
.history-status.is-cancelled { color: rgba(255,255,255,.55); }
.history-item > div { display: grid; gap: 7px; padding: 0 16px 17px 83px; color: var(--muted); font-size: 13px; }
.history-more { min-height: 54px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.08); color: var(--white); font-size: 15px; font-weight: 780; }

.compact-device-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-device-actions button {
  min-height: 58px;
}

.compact-empty {
  min-height: 146px;
}

.device-empty {
  min-height: 112px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.device-empty strong { color: var(--white); font-size: 18px; }
.device-empty span { font-size: 14px; }

.panel-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.panel-head span,
.panel-head small,
.muted-row,
.trial-panel p,
.empty-panel span {
  color: var(--muted);
}

.panel-head span,
.panel-head strong,
.panel-head small {
  display: block;
}

.panel-head span {
  margin-bottom: 8px;
  font-size: 16px;
}

.panel-head strong {
  font-size: 24px;
  font-weight: 760;
}

.profile-panel .panel-head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-panel .home-tariff-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 20px;
  line-height: 1.2;
}

.profile-panel .panel-head .status {
  flex: 0 0 auto;
}

.panel-head small {
  margin-top: 8px;
  font-size: 17px;
}

.status {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 5px 14px 7px;
  border: 1px solid rgba(240, 163, 96, 0.48);
  border-radius: 999px;
  background: rgba(240, 163, 96, 0.10);
  color: var(--warm);
  font-size: 16px;
}

.status-pulse {
  animation: statusPulse 2.7s ease-in-out infinite;
  will-change: opacity;
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(240, 163, 96, 0);
  }

  50% {
    opacity: 0.78;
    box-shadow: 0 0 18px rgba(240, 163, 96, 0.22);
  }
}

.traffic-row {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 19px;
}

.traffic-row span {
  color: var(--muted);
}

.traffic-row strong {
  font-size: 20px;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
}

.progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--white);
}

.muted-row {
  justify-content: space-between;
  gap: 14px;
  font-size: 16px;
}

.primary-action {
  width: 100%;
  min-height: 58px;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 22px;
  background: var(--white);
  color: var(--black);
  font-size: 20px;
  font-weight: 820;
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.10);
}

.accent-action {
  width: 100%;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px 2px;
  border: 1px solid rgba(240, 163, 96, 0.66);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 196, 121, 0.94), rgba(240, 163, 96, 0.86)),
    var(--warm);
  color: #17130f;
  font-size: 20px;
  font-weight: 820;
  box-shadow:
    0 18px 46px rgba(240, 163, 96, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-panel {
  min-height: 98px;
  padding: 18px;
  border-radius: 24px;
}

.mini-panel span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 18px;
}

.mini-panel strong {
  display: block;
  font-size: 24px;
}

.action-list {
  display: grid;
  gap: 12px;
}

.action-item {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 24px;
  text-align: left;
}

.action-item strong {
  font-size: 18px;
  font-weight: 720;
}

.manage-subscription {
  min-height: 70px;
}

.panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.trial-panel {
  min-height: 348px;
  display: grid;
  align-content: start;
  gap: 26px;
}

.trial-panel .panel-icon {
  width: 48px;
  height: 48px;
}

.trial-panel h2 {
  font-size: 22px;
  font-weight: 760;
}

.trial-panel p {
  margin-top: -14px;
  font-size: 18px;
}

.trial-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.trial-stats strong {
  display: block;
  font-size: 22px;
}

.trial-stats small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.period-list {
  display: grid;
  gap: 12px;
}

.period-list button {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 16px;
  border-radius: 22px;
  font-size: 18px;
  text-align: left;
}

.period-list .is-active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.tariff-page-head {
  padding-top: 8px;
}

.back-link {
  width: max-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.back-link svg {
  width: 19px;
  height: 19px;
}

.tariff-list {
  display: grid;
  gap: 16px;
}

.tariff-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-xl);
}

.tariff-card.is-featured {
  border-color: rgba(240, 163, 96, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 55px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(240, 163, 96, 0.05);
}

.tariff-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tariff-price {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px 6px;
  border: 1px solid rgba(240, 163, 96, 0.34);
  border-radius: 999px;
  background: rgba(240, 163, 96, 0.10);
  color: var(--warm);
  font-size: 16px;
  font-weight: 760;
}

.tariff-card h2 {
  font-size: 30px;
  line-height: 1.08;
  font-weight: 760;
}

.tariff-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.42;
}

.tariff-lead {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 19px !important;
}

.locations {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.locations span {
  color: var(--muted);
  font-size: 15px;
}

.locations b {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 17px;
  font-weight: 680;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.24;
}

.feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 16px rgba(240, 163, 96, 0.24);
}

.tariff-select {
  margin-top: 2px;
}

.checkout-head {
  display: grid;
  gap: 6px;
  padding-top: 0;
}

.checkout-nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  margin-bottom: 4px;
}

.checkout-nav-row span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.icon-back {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
}

.icon-back svg {
  width: 23px;
  height: 23px;
}

.checkout-head h1 {
  margin: 0;
}

.checkout-head p {
  margin-top: 2px;
}

.checkout-stack {
  display: grid;
  gap: 14px;
}

.checkout-block,
.checkout-receipt,
.promo-box,
.total-line,
.payment-method,
.ghost-action {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 55px rgba(0, 0, 0, 0.22);
}

.checkout-block,
.checkout-receipt {
  border-radius: 26px;
  padding: 16px;
}

.checkout-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.segmented-control button {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 19px;
  font-weight: 820;
}

.segmented-control .is-active,
.payment-method.is-active,
.crypto-grid .is-active {
  border-color: rgba(240, 163, 96, 0.68);
  background: rgba(240, 163, 96, 0.16);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 0 1px rgba(240, 163, 96, 0.06);
}

.traffic-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 2px;
}

.traffic-topline span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 760;
}

.traffic-topline strong {
  font-size: 42px;
  line-height: 1;
}

.traffic-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 760;
}

.traffic-selected i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 16px rgba(240, 163, 96, 0.34);
}

.traffic-picker input[type="range"] {
  width: 100%;
  height: 38px;
  margin: 12px 0 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  touch-action: pan-y;
}

.traffic-picker input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--warm) 0 var(--fill), rgba(255, 255, 255, 0.12) var(--fill) 100%);
}

.traffic-picker input[type="range"]::-webkit-slider-thumb {
  width: 34px;
  height: 34px;
  margin-top: -13px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.traffic-picker input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.traffic-picker input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--warm);
}

.traffic-picker input[type="range"]::-moz-range-thumb {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: var(--white);
}

.range-limits {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 15px;
  font-weight: 760;
}

.checkout-receipt {
  display: grid;
  gap: 11px;
}

.receipt-line,
.total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.receipt-line {
  min-height: 36px;
  color: var(--muted);
  font-size: 16px;
}

.receipt-line strong {
  color: var(--white);
  font-size: 17px;
  text-align: right;
}

.device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy stepper"
    "included included";
  align-items: center;
  gap: 10px 16px;
  padding-top: 10px;
}

.device-row-copy {
  grid-area: copy;
  min-width: 0;
}

.device-row-copy b,
.device-row-copy strong,
.device-row-copy em,
.device-row-copy strong span,
.device-row-copy strong i,
.device-row > small {
  display: block;
}

.device-row-copy b {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.device-row-copy strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  font-size: 34px;
  line-height: 1.08;
}

.device-row-copy strong i {
  color: var(--muted);
  font-style: normal;
  font-size: 16px;
  font-weight: 760;
}

.device-row-copy em {
  max-width: 260px;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.28;
}

.device-row > small {
  grid-area: included;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.25;
}

.stepper {
  grid-area: stepper;
  display: grid;
  grid-template-columns: 36px 30px 36px;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.08);
}

.stepper button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(240, 163, 96, 0.58);
  border-radius: 14px;
  background: rgba(240, 163, 96, 0.14);
  color: var(--white);
  font-size: 25px;
  font-weight: 820;
}

.stepper button:disabled {
  cursor: default;
  opacity: 0.34;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.stepper b {
  text-align: center;
  font-size: 23px;
}

.promo-box {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 22px;
}

.promo-box input {
  min-width: 0;
  height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 17px;
  font-weight: 720;
}

.promo-box input::placeholder {
  color: var(--faint);
}

.promo-box.is-success {
  border-color: rgba(91, 220, 136, 0.58);
}

.promo-box.is-error {
  border-color: rgba(255, 104, 104, 0.62);
}

.promo-state,
.promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-state {
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.promo-icon {
  width: 25px;
  height: 25px;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: promo-pop 0.26s ease both;
}

.promo-icon svg {
  width: 16px;
  height: 16px;
}

.promo-icon.is-ok {
  color: #5bdc88;
}

.promo-icon.is-bad {
  color: #ff6868;
}

.promo-icon.is-loading {
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: var(--warm);
  animation: promo-spin 0.8s linear infinite;
}

.total-line {
  min-height: 66px;
  padding: 0 16px;
  border-radius: 22px;
}

.total-line span {
  color: var(--muted);
  font-size: 18px;
}

.total-line strong {
  font-size: 34px;
  line-height: 1;
}

.payment-list {
  display: grid;
  gap: 10px;
}

.payment-method {
  min-height: 62px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 22px;
  text-align: left;
}

.payment-method span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
}

.payment-method span svg {
  width: 25px;
  height: 25px;
}

.payment-method strong {
  text-align: right;
  font-size: 19px;
}

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.crypto-grid button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 17px;
  font-weight: 820;
}

.checkout-pay {
  margin-top: 0;
}

.checkout-pay:disabled {
  opacity: 0.62;
}

.ghost-action {
  min-height: 58px;
  border-radius: 22px;
  color: var(--white);
  font-size: 20px;
  font-weight: 820;
}

@keyframes promo-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes promo-pop {
  from {
    transform: scale(0.82);
    opacity: 0.25;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.support-line {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 24px;
}

.support-line strong {
  font-size: 18px;
}

.support-line > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.support-line small { color: var(--muted); font-size: 12px; line-height: 1.3; }

.support-line button {
  min-height: 42px;
  padding: 0 18px 2px;
  border-radius: 15px;
  background: var(--white);
  color: var(--black);
  font-size: 17px;
  font-weight: 760;
}

/* Support cabinet */
.support-page-head { margin-bottom: 22px; }
.support-page-head h1 { white-space: nowrap; }
.support-page-head--new h1 { font-size: 13px; letter-spacing: .32em; }
.support-loading { padding: 28px 8px; color: var(--muted); text-align: center; font-size: 14px; }
.support-loading--page { min-height: 45vh; display: grid; place-items: center; }
.support-empty { min-height: 260px; margin-top: 24px; }
.support-empty > span:last-child { max-width: 240px; line-height: 1.45; }
.support-cabinet { margin-top: 24px; padding: 8px 28px 18px; }
.support-group { margin-top: 20px; }
.support-group + .support-group { margin-top: 28px; }
.support-group > h2 {
  display: flex; justify-content: space-between; align-items: center; padding: 0 3px 12px;
  color: var(--muted); font-size: 11px; letter-spacing: .2em; font-weight: 900;
}
.support-group > h2 span { color: var(--warm); letter-spacing: 0; }
.support-ticket-list { border-top: 1px solid rgba(255,255,255,.14); }
.support-ticket-row {
  width: 100%; min-height: 114px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center; gap: 13px; padding: 17px 4px; border-bottom: 1px solid rgba(255,255,255,.14);
  background: transparent; color: var(--white); text-align: left;
}
.support-ticket-row.has-unread { background: linear-gradient(90deg, rgba(240,163,96,.12), transparent 70%); }
.support-ticket-mark {
  width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 15px; background: rgba(255,255,255,.06);
}
.support-ticket-mark .ui-icon { width: 24px; height: 24px; }
.support-ticket-mark i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--warm); color: #171717; font-size: 11px; font-style: normal; font-weight: 900; }
.support-ticket-copy { min-width: 0; display: grid; gap: 4px; }
.support-ticket-copy small { color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.support-ticket-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.support-ticket-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; font-style: normal; }
.support-ticket-meta { align-self: stretch; display: flex; flex-direction: column; align-items: end; justify-content: space-between; gap: 8px; }
.support-ticket-meta b, .support-thread-head > b {
  max-width: 120px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 9px; line-height: 1.2; text-align: center;
}
.support-ticket-meta b.is-action, .support-thread-head > b.is-action { border-color: rgba(240,163,96,.58); color: var(--warm); }
.support-ticket-meta b.is-resolved, .support-thread-head > b.is-resolved { color: rgba(255,255,255,.88); }
.support-ticket-meta time { color: var(--muted); font-size: 10px; }
.support-compose { display: grid; gap: 22px; margin-top: 24px; padding-bottom: 120px; }
.support-step { display: grid; gap: 12px; }
.support-step > small { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.support-category-list { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.04); }
.support-category-list button {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.1); background: transparent; color: var(--muted); text-align: left; font-size: 14px; font-weight: 720;
}
.support-category-list button:last-child { border-bottom: 0; }
.support-category-list button.is-active { color: var(--white); background: rgba(240,163,96,.13); }
.support-category-list .ui-icon { width: 18px; height: 18px; color: var(--warm); }
.support-field { display: grid; gap: 8px; }
.support-field > span { color: var(--muted); font-size: 12px; }
.support-field input, .support-field textarea, .support-reply textarea {
  width: 100%; border: 1px solid var(--line); outline: 0; background: rgba(20,20,20,.34); color: var(--white); font: inherit;
}
.support-field input { height: 54px; padding: 0 16px; border-radius: 17px; }
.support-field textarea { min-height: 150px; resize: vertical; padding: 15px 16px; border-radius: 20px; line-height: 1.45; }
.support-field input:focus, .support-field textarea:focus, .support-reply textarea:focus { border-color: rgba(240,163,96,.68); }
.support-upload {
  min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px dashed rgba(255,255,255,.28);
  border-radius: 19px; color: var(--white); font-size: 14px; font-weight: 760; cursor: pointer;
}
.support-upload .ui-icon { width: 23px; height: 23px; color: var(--warm); }
.support-upload input, .support-reply-upload input { display: none; }
.support-upload.is-disabled { opacity: .45; pointer-events: none; }
.support-step > p { color: var(--muted); font-size: 11px; line-height: 1.4; }
.support-attachment-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.support-attachment-chips > span { max-width: 100%; display: flex; align-items: center; gap: 7px; padding: 7px 9px 7px 11px; border-radius: 12px; background: rgba(255,255,255,.09); color: var(--muted); font-size: 11px; }
.support-attachment-chips button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.08); }
.support-attachment-chips .ui-icon { width: 13px; height: 13px; }
.support-primary { min-height: 58px; border-radius: 18px; background: var(--white); color: var(--black); font-size: 16px; font-weight: 850; }
.support-primary:disabled { opacity: .55; }
.support-thread-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 12px; margin: 22px 0 18px; }
.support-thread-head > span { min-width: 0; display: grid; gap: 7px; }
.support-thread-head small { color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.support-thread-head h1 { overflow-wrap: anywhere; font-size: 23px; line-height: 1.1; }
.support-chat { max-height: min(56vh, 560px); overflow-y: auto; display: flex; flex-direction: column; gap: 11px; padding: 5px 2px 18px; scrollbar-width: none; }
.support-chat::-webkit-scrollbar { display: none; }
.support-message { width: min(86%, 330px); display: grid; gap: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 18px 18px 18px 5px; background: rgba(255,255,255,.075); }
.support-message.is-user { align-self: end; border-color: rgba(240,163,96,.42); border-radius: 18px 18px 5px 18px; background: rgba(240,163,96,.12); }
.support-message > small { color: var(--warm); font-size: 10px; font-weight: 800; }
.support-message p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.42; }
.support-message time { justify-self: end; color: var(--muted); font-size: 9px; }
.support-message img { width: 100%; max-height: 230px; object-fit: cover; border-radius: 12px; }
.support-file { color: var(--muted); font-size: 11px; }
.support-reply { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: end; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 22px; background: rgba(20,20,20,.5); }
.support-reply-upload, .support-reply > button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.09); cursor: pointer; }
.support-reply > button { background: var(--warm); color: #171717; }
.support-reply .ui-icon { width: 20px; height: 20px; }
.support-reply textarea { min-height: 42px; max-height: 120px; resize: none; padding: 10px 12px; border: 0; background: transparent; line-height: 1.35; }
.support-close { width: 100%; min-height: 50px; margin: 13px 0 110px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 750; }
.support-close-confirm, .support-finished { display: grid; justify-items: center; gap: 8px; margin: 14px 0 110px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.06); text-align: center; }
.support-close-confirm span, .support-finished span, .support-finished small { color: var(--muted); font-size: 12px; }
.support-close-confirm div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; width: 100%; margin-top: 10px; }
.support-close-confirm button { min-height: 43px; border-radius: 13px; background: rgba(255,255,255,.09); }
.support-close-confirm button:last-child { background: var(--white); color: var(--black); font-weight: 800; }
.support-rating { display: grid; grid-template-columns: repeat(5, 42px); gap: 7px; margin-top: 7px; }
.support-rating button { height: 42px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.07); color: var(--white); font-weight: 800; }

.device-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.device-create-action {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(240, 163, 96, 0.52);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(240, 163, 96, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
}

.device-create-action > span:nth-child(2) {
  min-width: 0;
}

.device-create-action strong,
.device-create-action small {
  display: block;
}

.device-create-action strong {
  font-size: 18px;
  font-weight: 800;
}

.device-create-action small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.device-create-action b {
  color: var(--warm);
  font-size: 15px;
}

.device-create-action:disabled {
  border-color: var(--line);
  opacity: 0.52;
}

.device-actions button {
  min-width: 0;
  min-height: 76px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 23px;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.device-actions svg {
  color: var(--warm);
}

.device-actions .ui-icon {
  width: 27px;
  height: 27px;
  opacity: 0.96;
}

.device-actions .is-danger svg {
  color: rgba(255, 120, 120, 0.78);
}

.section-label {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 820;
  text-transform: uppercase;
}

.device-list {
  display: grid;
  gap: 12px;
}

.device-card {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 25px;
  text-align: left;
}

.device-card.is-selected {
  border-color: rgba(240, 163, 96, 0.55);
  background:
    linear-gradient(145deg, rgba(240, 163, 96, 0.13), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
}

.device-card.is-selected .panel-icon {
  color: var(--warm);
  border-color: rgba(240, 163, 96, 0.42);
  background: rgba(240, 163, 96, 0.13);
}

.device-copy {
  min-width: 0;
}

.device-copy strong,
.device-copy small {
  display: block;
}

.device-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 760;
}

.device-copy small {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
}

.device-state {
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--faint);
  font-size: 13px;
  font-weight: 760;
}

.device-card.is-selected .device-state {
  color: var(--warm);
}

.device-card.is-pending .device-state {
  max-width: 108px;
  color: var(--muted);
  white-space: normal;
  text-align: right;
  line-height: 1.12;
}

.device-dialog-backdrop {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: max(18px, var(--tg-content-safe-top)) 14px max(18px, var(--tg-content-safe-bottom));
  background: rgba(8, 8, 8, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.device-dialog-dismiss {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.device-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(680px, calc(100% - 90px));
  overflow-y: auto;
  display: grid;
  gap: 18px;
  padding: 24px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    #242424;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.device-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.device-dialog-copy {
  padding-right: 46px;
}

.device-dialog-copy h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.device-dialog-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.device-qr {
  width: min(100%, 280px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
}

.device-qr svg {
  width: 100%;
  height: 100%;
}

.device-dialog-device {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.device-key-value {
  max-height: 150px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  user-select: all;
}

.device-dialog-primary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  font-weight: 820;
}

.device-dialog-primary.is-danger {
  border: 1px solid rgba(255, 112, 112, 0.42);
  background: rgba(255, 112, 112, 0.12);
  color: #ff9898;
}

.device-dialog-primary:disabled {
  opacity: 0.42;
}

.device-delete-list {
  display: grid;
  gap: 9px;
}

.device-delete-option {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}

.device-delete-option.is-selected {
  border-color: rgba(255, 112, 112, 0.48);
  background: rgba(255, 112, 112, 0.09);
}

.device-delete-option strong,
.device-delete-option small {
  display: block;
}

.device-delete-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.device-delete-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.device-delete-option i {
  color: #ff9898;
}

.device-dialog-empty {
  padding: 20px 0;
  color: var(--muted);
  text-align: center;
}

.empty-panel {
  min-height: 236px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.empty-panel .panel-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.empty-panel strong {
  font-size: 19px;
}

.menu-panel {
  padding: 22px;
}

.user-row {
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.user-profile-trigger {
  width: fit-content;
  max-width: calc(100% - 70px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.user-profile-trigger:active {
  opacity: 0.82;
}

.avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 19px;
  font-weight: 760;
}

.user-profile-trigger strong,
.user-profile-trigger small {
  display: block;
}

.user-profile-trigger strong {
  font-size: 20px;
}

.user-profile-trigger small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.profile-avatar {
  display: grid;
  place-items: center;
}

.account-page-head {
  display: grid;
  gap: 0;
}

.account-page-head .back-link {
  width: fit-content;
  margin-bottom: 22px;
}

.account-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  margin-top: 24px;
  padding: 0 4px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.account-avatar {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
}

.account-identity-copy strong,
.account-identity-copy small {
  display: block;
}

.account-identity-copy strong {
  font-size: 23px;
  line-height: 1.1;
}

.account-identity-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
}

.account-connected {
  grid-column: 2;
  width: fit-content;
  margin-top: 8px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 780;
}

.account-section {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.account-details { margin-top: 24px; padding: 22px 4px 0; border-top: 1px solid rgba(255,255,255,.12); }
.account-details h2 { margin-bottom: 12px; font-size: 18px; }
.account-details dl { margin: 0; }
.account-details dl > div { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: center; min-height: 58px; border-bottom: 1px solid rgba(255,255,255,.1); }
.account-details dt { color: var(--muted); font-size: 13px; }
.account-details dd { min-width: 0; margin: 0; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 720; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.account-section h2,
.account-section-heading h2 {
  color: rgba(244, 244, 242, 0.56);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.account-row,
.account-session {
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  text-align: left;
}

.account-row.is-accent,
.account-session.is-current {
  border-color: rgba(240, 163, 96, 0.58);
  background: rgba(240, 163, 96, 0.09);
}

.account-row-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.account-row-icon svg {
  width: 23px;
  height: 23px;
}

.account-row strong,
.account-row small,
.account-session strong,
.account-session small {
  display: block;
  min-width: 0;
}

.account-row strong,
.account-session strong {
  font-size: 16px;
  line-height: 1.2;
}

.account-row small,
.account-session small {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
}

.account-row em,
.account-session em,
.account-section-heading span {
  color: var(--warm);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.account-row > svg {
  width: 20px;
  height: 20px;
}

.account-row.is-static {
  cursor: default;
}

.account-row.is-static i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(240, 163, 96, 0.16);
  color: var(--warm);
}

.account-row.is-static i svg {
  width: 17px;
  height: 17px;
}

.account-logout,
.account-secondary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  font-size: 15px;
  font-weight: 760;
}

.security-note {
  display: grid;
  gap: 7px;
  margin-top: 24px;
  padding: 16px 16px 16px 18px;
  border-left: 3px solid var(--warm);
  background: rgba(240, 163, 96, 0.08);
}

.security-note strong {
  font-size: 17px;
}

.security-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.security-section {
  margin-top: 24px;
}

.account-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.account-session-list {
  display: grid;
  gap: 9px;
}

.account-empty-state {
  min-height: 168px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--white);
  text-align: center;
}

.account-empty-state strong {
  font-size: 18px;
}

.account-row-icon .ui-icon,
.panel-icon .ui-icon {
  width: 24px;
  height: 24px;
}

.account-secondary-button:disabled {
  opacity: 0.42;
}

.danger-section {
  margin-bottom: 18px;
}

.account-row.is-danger {
  border-color: rgba(255, 126, 126, 0.32);
  color: #ffd6d6;
}

.account-row.is-danger .account-row-icon {
  color: #ff9d9d;
}

.account-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.account-dialog {
  position: relative;
  width: min(100%, 390px);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(43, 43, 43, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.account-dialog h2 {
  padding-right: 48px;
  font-size: 22px;
}

.account-dialog p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.account-dialog input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  outline: 0;
  background: rgba(0, 0, 0, 0.18);
  color: var(--white);
  font: inherit;
}

.account-dialog input:focus {
  border-color: var(--warm);
}

.account-dialog .account-code-input {
  text-align: center;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: 0.22em;
}

.account-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
}

.account-dialog-close svg {
  width: 22px;
  height: 22px;
}

.account-dialog-primary {
  min-height: 54px;
  border-radius: 15px;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  font-weight: 820;
}

.account-dialog-primary.is-danger {
  background: #f3dddd;
  color: #2a1111;
}

.account-dialog-primary:disabled {
  opacity: 0.6;
}

.menu-list,
.drawer-list {
  display: grid;
  gap: 4px;
  padding-top: 18px;
}

.menu-list button,
.drawer-list button {
  min-height: 64px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 18px;
  background: transparent;
  text-align: left;
  font-size: 19px;
}

.menu-list .ui-icon,
.drawer-list .ui-icon {
  width: 28px;
  height: 28px;
  opacity: 0.88;
}

.menu-list .is-active,
.drawer-list .is-active {
  background: rgba(255, 255, 255, 0.12);
}

/* Notification center */
.menu-button { position: relative; }
.menu-button.has-unread > i {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border: 2px solid #545454; border-radius: 10px;
  background: var(--warm); color: #171717; font-size: 10px; font-style: normal; font-weight: 900;
}
.drawer-list button { grid-template-columns: 32px minmax(0, 1fr) auto; }
.drawer-badge {
  min-width: 25px; height: 25px; padding: 0 7px; display: grid; place-items: center;
  border-radius: 13px; background: var(--warm); color: #171717; font-size: 11px; font-weight: 900;
}
.notification-page-head { margin-bottom: 28px; }
.notification-title-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.notification-title-row > span { min-width: 0; }
.notification-title-row button {
  flex: 0 0 auto; border: 0; background: transparent; color: var(--warm);
  font-size: 12px; font-weight: 800;
}
.notification-feed { display: grid; gap: 24px; padding-bottom: 110px; }
.notification-group { display: grid; gap: 10px; }
.notification-group > small,
.notification-settings > h2 {
  color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .18em;
}
.notification-item {
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px;
  align-items: start; min-height: 112px; padding: 18px 16px;
  border-top: 1px solid rgba(255,255,255,.14); color: var(--white); cursor: pointer;
}
.notification-item:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.notification-item.is-unread { background: linear-gradient(90deg, rgba(255,171,91,.12), rgba(255,255,255,.025) 62%, transparent); }
.notification-symbol {
  width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2);
  border-radius: 17px; background: rgba(255,255,255,.08); color: var(--white);
}
.notification-symbol svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-symbol .ui-icon { width: 25px; height: 25px; opacity: 1; }
.notification-symbol .notification-status-icon { width: 25px; height: 25px; object-fit: contain; filter: brightness(0) invert(1); opacity: 1; }
.notification-item.is-unread .notification-symbol { border-color: rgba(255,171,91,.6); color: var(--warm); }
.notification-copy { min-width: 0; display: grid; gap: 5px; }
.notification-copy strong { font-size: 17px; line-height: 1.18; }
.notification-copy > span { color: var(--muted); font-size: 13px; line-height: 1.42; }
.notification-copy small { color: rgba(255,255,255,.4); font-size: 11px; }
.notification-item > i { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 12px rgba(255,171,91,.55); }
.notification-item > button {
  grid-column: 2 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 5px;
  min-height: 34px; padding: 0; border: 0; background: transparent; color: var(--warm); font-size: 12px; font-weight: 850;
}
.notification-item > button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.notification-empty { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; color: var(--muted); }
.notification-empty > svg { width: 42px; height: 42px; fill: none; stroke: var(--warm); stroke-width: 1.5; }
.notification-empty strong { color: var(--white); font-size: 20px; }
.notification-empty span { max-width: 300px; font-size: 13px; line-height: 1.45; }
.notification-settings-link {
  width: 100%; min-height: 82px; display: grid; grid-template-columns: 44px minmax(0,1fr) 22px;
  align-items: center; gap: 13px; padding: 14px 0; border: 0; border-top: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16); background: transparent; color: var(--white); text-align: left;
}
.notification-settings-link > .ui-icon { width: 27px; height: 27px; filter: invert(79%) sepia(25%) saturate(1088%) hue-rotate(327deg) brightness(101%); opacity: 1; }
.notification-settings-link > span { display: grid; gap: 4px; }
.notification-settings-link strong { font-size: 17px; }
.notification-settings-link small { color: var(--muted); font-size: 12px; }
.notification-settings-link > svg:last-child { width: 20px; color: var(--muted); stroke: currentColor; }
.notification-settings { display: grid; gap: 0; padding-bottom: 120px; }
.notification-settings > h2 { margin: 28px 0 10px; }
.notification-channel-row,
.notification-setting-row {
  width: 100%; min-height: 78px; display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 14px; padding: 13px 0; border: 0; border-top: 1px solid rgba(255,255,255,.14);
  background: transparent; color: var(--white); text-align: left;
}
.notification-channel-row:last-of-type,
.notification-setting-row:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.notification-channel-row > span:not(.notification-symbol),
.notification-setting-row > span { display: grid; gap: 4px; min-width: 0; }
.notification-channel-row strong,
.notification-setting-row strong { font-size: 16px; }
.notification-channel-row small,
.notification-setting-row small { color: var(--muted); font-size: 12px; }
.notification-channel-row > b,
.notification-setting-row > b { color: var(--muted); font-size: 12px; }
.notification-channel-row > b.is-connected { color: var(--warm); }
.notification-setting-row { grid-template-columns: minmax(0,1fr) auto; }
.notification-setting-row .status-switch { pointer-events: none; }
.notification-setting-row:disabled { opacity: 1; }
.notification-setting-row:disabled > b { color: var(--warm); }

@media (max-width: 420px) {
  .notification-title-row { align-items: start; flex-direction: column; gap: 8px; }
  .notification-item { grid-template-columns: 46px minmax(0,1fr) auto; padding-inline: 8px; }
  .notification-symbol { width: 46px; height: 46px; border-radius: 15px; }
}

.bottom-nav {
  position: absolute;
  z-index: 5;
  left: 22px;
  right: 22px;
  bottom: 16px;
  min-height: 82px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 29px;
  background: rgba(18, 18, 18, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.40);
}

.bottom-nav button {
  min-width: 0;
  min-height: 62px;
  padding: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.05;
}

.bottom-nav button span {
  display: block;
  width: 100%;
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
}

.bottom-nav .ui-icon {
  width: 22px;
  height: 22px;
  opacity: 0.58;
}

.bottom-nav .is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.bottom-nav .is-active .ui-icon,
.menu-list .is-active .ui-icon,
.drawer-list .is-active .ui-icon {
  opacity: 1;
}

.drawer {
  position: absolute;
  z-index: 10;
  inset: 0;
  padding: 122px 22px 128px;
  background: rgba(24, 24, 24, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.drawer-close {
  position: absolute;
  top: 112px;
  right: 24px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.subscription-expired,
.access-state-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.subscription-expired .panel-icon,
.access-state-panel .panel-icon {
  width: 48px;
  height: 48px;
}

.expired-copy h2,
.access-state-panel h2 {
  font-size: 25px;
  line-height: 1.08;
}

.expired-copy p,
.access-state-panel p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
}

.expired-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expired-terms span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.subscription-expired .primary-action,
.access-state-panel .primary-action {
  margin-top: 2px;
}

.expired-tariffs {
  margin-top: 0;
}

.toast {
  position: absolute;
  z-index: 30;
  left: 28px;
  right: 28px;
  bottom: 112px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(240, 163, 96, 0.42);
  border-radius: 16px;
  background: rgba(36, 31, 26, 0.94);
  color: var(--warm);
  text-align: center;
  font-size: 14px;
  font-weight: 760;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.system-notice {
  margin: 0 22px 12px;
  padding: 12px 14px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(240, 163, 96, 0.42);
  border-radius: 8px;
  background: rgba(56, 46, 37, 0.76);
  color: rgba(255, 255, 255, 0.84);
}

.system-notice strong {
  color: var(--warm);
  font-size: 14px;
}

.system-notice span {
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .stage {
    padding: 0;
  }

  .phone-shell {
    width: 100vw;
    min-height: 100svh;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
  }

  .notch {
    display: none;
  }

  .screen {
    padding: 20px 18px 154px;
  }

  .tg-fullscreen .screen {
    padding-top: max(128px, calc(var(--tg-content-safe-top) + 18px), calc(var(--tg-safe-top) + 78px));
  }

  .app-header {
    grid-template-columns: 1fr auto;
    min-height: 80px;
    gap: 8px;
    padding: 14px 12px;
    border-radius: 27px;
    margin-bottom: 28px;
  }

  .icon-button {
    display: none;
  }

  .brand-lockup strong {
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
  }

  .brand-lockup small {
    font-size: 12px;
  }

  .logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 17px;
  }

  .logo-mark--plain {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .logo-mark svg,
  .logo-image {
    width: 38px;
    height: 38px;
  }

  .lang-button {
    min-width: 76px;
    padding-inline: 8px;
    gap: 6px;
    font-size: 16px;
  }

  .menu-button {
    min-width: 48px;
  }

  .icon-button,
  .lang-button,
  .menu-button {
    height: 48px;
    border-radius: 17px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .checkout-head {
    gap: 8px;
  }

  .checkout-nav-row {
    min-height: 48px;
    margin-bottom: 10px;
  }

  .checkout-head h1 {
    font-size: 29px;
    line-height: 1.08;
  }

  .checkout-head p {
    margin-top: 0;
  }

  .device-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .device-row-copy em {
    max-width: none;
  }

  .stepper {
    grid-template-columns: 42px 34px 42px;
  }

  .stepper button {
    width: 42px;
    height: 40px;
  }

  .panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    align-items: start;
  }

  .profile-panel {
    padding: 18px;
  }

  .bottom-nav {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: max(14px, env(safe-area-inset-bottom), calc(var(--tg-content-safe-bottom) + 14px));
  }
}

@media (max-width: 370px) {
  .screen,
  .drawer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bottom-nav {
    left: 12px;
    right: 12px;
  }

  .bottom-nav button {
    font-size: 9px;
  }

  .subscription-section-head {
    grid-template-columns: 1fr;
  }

  .subscription-section-head button {
    width: 100%;
  }

  .management-scenarios,
  .management-secondary-grid,
  .management-pass-grid,
  .management-quote {
    grid-template-columns: 1fr;
  }

  .management-pass-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .management-pass-top b {
    grid-column: 2;
    width: max-content;
    max-width: 100%;
  }

  .management-pass-top strong {
    font-size: 21px;
  }

  .management-pay {
    font-size: 16px;
  }

  .management-device-control {
    grid-template-columns: 1fr;
  }

  .management-device-control .stepper {
    justify-self: start;
  }

  .autorenew-card { grid-template-columns: auto minmax(0, 1fr); }
  .autorenew-card .status-switch { grid-column: 2; }
  .history-item summary { grid-template-columns: auto minmax(0, 1fr); }
  .history-status { grid-column: 2; }
}

@media (max-width: 340px) {
  .cabinet-title {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cabinet-title .status {
    grid-column: 2;
    width: max-content;
    margin-top: -4px;
  }

  .subscription-action {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .subscription-action > b {
    grid-column: 2;
    width: max-content;
    max-width: 100%;
  }

  .subscription-action > svg {
    display: none;
  }

  .cabinet-time-grid {
    grid-template-columns: 1fr;
  }

  .management-mode {
    grid-template-columns: 1fr;
  }
}

/* MALOV LOYALTY */
.loyalty-head { padding-bottom: 2px; }

.loyalty-level-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  padding: 20px 4px 4px;
}

.loyalty-level-strip > div:first-child { display: grid; gap: 3px; }
.loyalty-level-strip small { color: var(--muted); font-size: 13px; }
.loyalty-level-strip strong { font-size: 28px; }
.loyalty-level-strip > b { color: var(--warm); font-size: 28px; text-align: right; }
.loyalty-level-strip > b span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }

.loyalty-progress {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.loyalty-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--warm);
  transition: width .4s ease;
}

.loyalty-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(20,20,20,.34);
}

.loyalty-tabs button {
  min-height: 48px;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.loyalty-tabs button.is-active { background: rgba(255,255,255,.14); color: var(--text); }
.loyalty-kicker { color: var(--warm); font-size: 11px; font-weight: 850; letter-spacing: .22em; }

.loyalty-invite-card { padding: 24px; border-color: rgba(240,163,96,.44); }
.loyalty-invite-card h2 { margin-top: 14px; font-size: 26px; line-height: 1.12; }
.loyalty-invite-card > p { margin-top: 10px; color: var(--muted); line-height: 1.45; }

.loyalty-link {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) 46px;
  gap: 8px;
  margin-top: 20px;
}

.loyalty-link span {
  overflow: hidden;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loyalty-link button,
.loyalty-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 15px;
}

.loyalty-link button { background: rgba(255,255,255,.13); }
.loyalty-link button img { width: 21px; height: 21px; object-fit: contain; filter: invert(1); }
.loyalty-share { width: 100%; min-height: 54px; margin-top: 10px; background: var(--white); color: var(--black); font-weight: 820; }

.loyalty-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.loyalty-stats > div { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.06); }
.loyalty-stats small { display: block; color: var(--muted); font-size: 12px; }
.loyalty-stats strong { display: block; margin-top: 7px; color: var(--warm); font-size: 22px; }

.loyalty-rules h3,
.loyalty-list-head h3,
.loyalty-explainer h3 { font-size: 20px; }
.loyalty-rules > div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; padding-top: 16px; }
.loyalty-rules b { color: var(--warm); font-size: 18px; }
.loyalty-rules span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.loyalty-list { display: grid; gap: 10px; }
.loyalty-list-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.loyalty-list-head span { color: var(--muted); }
.loyalty-list article { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.055); }
.loyalty-list .avatar { width: 42px; height: 42px; font-size: 15px; }
.loyalty-list article div { min-width: 0; display: grid; gap: 3px; }
.loyalty-list article small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.loyalty-list article > b { color: var(--warm); font-size: 12px; }
.loyalty-ref-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.loyalty-ref-status img { width: 15px; height: 15px; object-fit: contain; filter: invert(1); opacity: .72; }
.loyalty-ref-status.is-success { color: var(--warm); }
.loyalty-ref-status.is-success img { filter: invert(79%) sepia(25%) saturate(1088%) hue-rotate(327deg) brightness(101%); opacity: 1; }
.loyalty-empty { padding: 24px 16px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.45; text-align: center; }

.loyalty-levels { display: grid; gap: 10px; }
.loyalty-levels article { position: relative; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 8px 14px; align-items: center; min-height: 84px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.045); opacity: .56; }
.loyalty-levels article.is-current { border-color: rgba(255,255,255,.56); background: rgba(255,255,255,.11); box-shadow: 0 0 24px rgba(235,241,247,.11); opacity: 1; }
.loyalty-levels article div { display: grid; gap: 4px; }
.loyalty-levels article span { font-size: 21px; font-weight: 800; }
.loyalty-levels article small { color: var(--muted); }
.loyalty-levels article strong { color: var(--warm); font-size: 28px; }
.loyalty-levels article > b { grid-column: 2/-1; width: max-content; color: var(--text); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.loyalty-medallion { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 54px; border-radius: 50%; font-size: 17px !important; font-weight: 900 !important; letter-spacing: 0; box-shadow: inset 0 1px 1px rgba(255,255,255,.32), 0 5px 13px rgba(0,0,0,.22); }
.loyalty-medallion-bronze { border: 1px solid #bd744b; color: #ffe1cb; background: linear-gradient(145deg,#9d5b38,#4c2a20); }
.loyalty-medallion-silver { border: 1px solid #f0f5fa; color: #26303a; background: linear-gradient(145deg,#f4f7fa 0%,#9ca9b5 50%,#eef3f7 100%); }
.loyalty-medallion-gold { border: 1px solid #ffe08a; color: #4a3007; background: linear-gradient(145deg,#fff0a8 0%,#d6a638 52%,#9a6916 100%); }
.loyalty-medallion-black { border: 2px solid rgba(255,255,255,.88); color: #fff; background: linear-gradient(145deg,#202020,#050505); box-shadow: inset 0 0 0 3px #0b0b0b,0 5px 13px rgba(0,0,0,.36); font-size: 13px !important; }
.loyalty-privileges-button { width: 100%; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: 1px solid rgba(240,163,96,.48); border-radius: 20px; color: var(--text); background: rgba(240,163,96,.09); text-align: left; }
.loyalty-privileges-button span { display: grid; gap: 4px; }
.loyalty-privileges-button small { color: var(--warm); font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.loyalty-privileges-button strong { font-size: 17px; }
.loyalty-privileges-button svg { width: 20px; height: 20px; }

.partner-entry { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 14px; align-items: center; padding: 20px; border: 1px solid rgba(240,163,96,.46); border-radius: 22px; background: rgba(240,163,96,.075); }
.partner-entry-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(240,163,96,.48); border-radius: 15px; color: var(--warm); background: rgba(240,163,96,.09); }
.partner-entry-icon svg { width: 26px; height: 26px; }
.partner-entry > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.partner-entry small { color: var(--warm); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.partner-entry strong { font-size: 20px; }
.partner-entry p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.partner-entry button { grid-column: 1 / -1; min-height: 48px; border-radius: 15px; color: var(--black); background: var(--white); font-weight: 820; }

.partner-page-head h1 { font-size: 13px; letter-spacing: .3em; white-space: nowrap; }
.partner-intro { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 16px; align-items: start; padding: 22px 4px 24px; border-bottom: 1px solid var(--line); }
.partner-intro > span { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(240,163,96,.5); border-radius: 17px; color: var(--warm); background: rgba(240,163,96,.1); }
.partner-intro svg { width: 28px; height: 28px; }
.partner-intro div { display: grid; gap: 6px; }
.partner-intro small { color: var(--warm); font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.partner-intro h2 { font-size: 25px; }
.partner-intro p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.partner-form { display: grid; gap: 17px; padding-top: 24px; }
.partner-form label { min-width: 0; display: grid; gap: 8px; }
.partner-form label > span { color: var(--muted); font-size: 12px; }
.partner-form input,
.partner-form textarea { width: 100%; min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 15px; outline: none; color: var(--text); background: rgba(15,15,15,.25); font: inherit; }
.partner-form textarea { min-height: 128px; resize: vertical; }
.partner-form input:focus,
.partner-form textarea:focus { border-color: rgba(240,163,96,.7); }
.partner-form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.partner-form > button { min-height: 58px; border-radius: 17px; color: var(--black); background: var(--white); font-size: 16px; font-weight: 850; }
.partner-form > p { color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.partner-result { display: grid; justify-items: center; gap: 11px; padding: 34px 24px 24px; border: 1px solid rgba(240,163,96,.46); border-radius: 24px; background: rgba(255,255,255,.055); text-align: center; }
.partner-result > span { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: var(--warm); background: rgba(240,163,96,.13); }
.partner-result > span svg { width: 31px; height: 31px; }
.partner-result > small { color: var(--warm); font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.partner-result h2 { font-size: 27px; }
.partner-result > p { max-width: 300px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.partner-result dl { width: 100%; margin: 12px 0 0; text-align: left; }
.partner-result dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.partner-result dt { color: var(--muted); }
.partner-result dd { margin: 0; font-weight: 750; text-align: right; }
.loyalty-explainer { display: grid; gap: 12px; }
.loyalty-explainer p { color: var(--muted); line-height: 1.5; }

.loyalty-privileges-head { padding-top: 26px; }
.loyalty-privilege-list { display: grid; gap: 12px; }
.loyalty-privilege { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.05); opacity: .7; }
.loyalty-privilege.is-current { border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.105); box-shadow: 0 0 24px rgba(235,241,247,.1); opacity: 1; }
.loyalty-privilege header { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 14px; align-items: center; }
.loyalty-privilege header div { min-width: 0; }
.loyalty-privilege header small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.loyalty-privilege h2 { margin-top: 3px; font-size: 23px; }
.loyalty-privilege header > strong { color: var(--warm); font-size: 26px; }
.loyalty-privilege ul { display: grid; gap: 10px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.loyalty-privilege li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.35; }
.loyalty-privilege li svg { width: 17px; height: 17px; color: var(--warm); }
.loyalty-privilege > b { display: block; width: max-content; margin-top: 16px; color: var(--text); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.loyalty-privilege-note { display: grid; gap: 9px; }
.loyalty-privilege-note strong { font-size: 18px; }
.loyalty-privilege-note p { color: var(--muted); font-size: 13px; line-height: 1.45; }

.invite-hero { display: grid; gap: 14px; padding: 24px 4px 8px; }
.invite-hero h1 { font-size: 34px; line-height: 1.05; }
.invite-hero > p { color: var(--muted); }
.invite-timer { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.invite-timer span { color: var(--muted); font-size: 13px; }
.invite-timer strong { color: var(--warm); font-size: 18px; }

.invite-choice { position: relative; display: grid; gap: 20px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.065); }
.invite-choice.is-accent { border-color: rgba(240,163,96,.7); background: linear-gradient(145deg,rgba(240,163,96,.20),rgba(255,255,255,.055)); }
.invite-choice small { color: var(--warm); font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.invite-choice h2 { margin-top: 10px; font-size: 27px; line-height: 1.08; }
.invite-choice p { margin-top: 10px; color: var(--muted); line-height: 1.45; }
.invite-choice button { min-height: 57px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-radius: 17px; background: var(--white); color: var(--black); font-weight: 820; }
.invite-choice button:disabled { opacity: .55; }
.invite-badge { position: absolute; top: 18px; right: 18px; padding: 8px 11px; border: 1px solid rgba(240,163,96,.6); border-radius: 999px; color: var(--warm); font-size: 14px; font-weight: 850; }
.invite-footnote { padding: 0 14px 12px; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.total-line strong s { margin-right: 7px; color: var(--muted); font-size: .62em; font-weight: 600; }

.checkout-gift-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
}

.checkout-gift-balance.is-applied {
  border-color: rgba(255, 166, 92, .58);
  color: var(--warm);
}

.checkout-gift-balance > span {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  column-gap: 10px;
}

.checkout-gift-balance svg { grid-row: 1 / 3; width: 26px; height: 26px; }
.checkout-gift-balance b { color: var(--text); font-size: 15px; }
.checkout-gift-balance small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.checkout-gift-balance > strong { flex: 0 0 auto; color: inherit; font-size: 18px; }

@media (max-width: 360px) {
  .loyalty-stats { grid-template-columns: 1fr; }
  .invite-choice h2 { font-size: 23px; }
  .invite-badge { position: static; width: max-content; }
}

/* Gifts */
.gift-page-head { padding-bottom: 4px; }
.gift-page-head h1 { font-size: 18px; letter-spacing: 0; }
.gift-page-tabs,
.gift-history-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20,20,20,.34);
}
.gift-page-tabs { grid-template-columns: repeat(3,1fr); }
.gift-page-tabs button { padding: 0 6px; font-size: 12px; }
.gift-page-tabs button,
.gift-history-tabs button { min-height: 46px; border-radius: 14px; color: var(--muted); background: transparent; font-weight: 780; }
.gift-page-tabs button.is-active,
.gift-history-tabs button.is-active { color: var(--text); background: rgba(255,255,255,.14); }

.gift-activate { display: grid; justify-items: center; gap: 12px; padding: 34px 22px 26px; border: 1px solid rgba(240,163,96,.5); border-radius: 24px; background: rgba(255,255,255,.055); text-align: center; }
.gift-activate-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: var(--warm); background: rgba(240,163,96,.13); }
.gift-activate-icon svg { width: 34px; height: 34px; }
.gift-activate-icon .ui-icon { width: 34px; height: 34px; filter: brightness(0) saturate(100%) invert(75%) sepia(37%) saturate(1018%) hue-rotate(326deg) brightness(99%) contrast(91%); opacity: 1; }
.gift-activate > small { color: var(--warm); font-size: 10px; font-weight: 850; letter-spacing: .17em; }
.gift-activate h2 { font-size: 25px; }
.gift-activate > p { max-width: 300px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.gift-activate label { width: 100%; display: grid; gap: 7px; margin-top: 8px; text-align: left; }
.gift-activate label span { color: var(--muted); font-size: 11px; }
.gift-activate input { width: 100%; min-width: 0; padding: 16px 14px; border: 1px solid var(--line); border-radius: 15px; outline: none; color: var(--text); background: rgba(10,10,10,.28); font: 650 12px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.gift-activate input:focus { border-color: rgba(240,163,96,.72); }
.gift-activate > button { width: 100%; min-height: 56px; border-radius: 16px; color: var(--black); background: var(--white); font-size: 16px; font-weight: 850; }

.gift-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gift-mode-switch button { min-width: 0; min-height: 142px; display: grid; align-content: space-between; justify-items: start; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; color: var(--text); background: rgba(255,255,255,.055); text-align: left; }
.gift-mode-switch button.is-active { border-color: rgba(240,163,96,.7); background: rgba(240,163,96,.12); box-shadow: inset 0 0 0 1px rgba(240,163,96,.12); }
.gift-mode-switch button > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.08); }
.gift-mode-switch img,
.gift-mode-switch svg { width: 25px; height: 25px; }
.gift-mode-switch small { align-self: end; color: var(--warm); font-size: 9px; font-weight: 850; letter-spacing: 0; }
.gift-mode-switch strong { font-size: 20px; }

.gift-builder { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.045); }
.gift-step { display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 12px; padding: 23px 20px; }
.gift-step + .gift-step { border-top: 1px solid var(--line); }
.gift-step-number { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(240,163,96,.45); border-radius: 50%; color: var(--warm); font-size: 11px; font-weight: 850; }
.gift-step-content { min-width: 0; display: grid; gap: 14px; }
.gift-step-content > small { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: 0; }
.gift-step-content > p { color: var(--muted); font-size: 12px; line-height: 1.5; }

.gift-choice-list { display: grid; gap: 8px; }
.gift-choice-list button { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: rgba(255,255,255,.035); text-align: left; }
.gift-choice-list button.is-active { border-color: rgba(240,163,96,.65); background: rgba(240,163,96,.09); }
.gift-choice-list strong { font-size: 16px; }
.gift-choice-list span { grid-column: 1; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.gift-choice-list svg { grid-column: 2; grid-row: 1 / span 2; width: 19px; height: 19px; color: var(--warm); opacity: 0; }
.gift-choice-list .is-active svg { opacity: 1; }

.gift-periods { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.gift-periods button,
.gift-amounts button { min-height: 46px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.035); font-weight: 760; }
.gift-periods button.is-active,
.gift-amounts button.is-active { border-color: rgba(240,163,96,.62); color: var(--text); background: rgba(240,163,96,.1); }
.gift-range-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 7px; }
.gift-range-head span { color: var(--muted); }
.gift-range-head strong { color: var(--warm); font-size: 24px; }
.gift-range { width: 100%; }
.gift-unlimited { display: flex; align-items: center; gap: 8px; padding: 13px 0; color: var(--muted); }
.gift-unlimited svg { width: 19px; height: 19px; color: var(--warm); }
.gift-device-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.gift-device-line > span:first-child { display: grid; gap: 3px; }
.gift-device-line small { color: var(--muted); font-size: 11px; }

.gift-certificate-value { color: var(--warm); font-size: 36px; }
.gift-amounts { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.gift-field { min-width: 0; display: grid; gap: 7px; }
.gift-field > span { color: var(--muted); font-size: 11px; }
.gift-field input,
.gift-field textarea { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; outline: none; color: var(--text); background: rgba(10,10,10,.24); font: inherit; }
.gift-field input:focus,
.gift-field textarea:focus { border-color: rgba(240,163,96,.65); }
.gift-field input:disabled { opacity: .45; }
.gift-field textarea { min-height: 92px; resize: vertical; }
.gift-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--text); background: transparent; text-align: left; }
.gift-toggle-row > span { display: grid; gap: 3px; }
.gift-toggle-row small { color: var(--muted); font-size: 11px; }
.gift-toggle-row i { position: relative; width: 48px; height: 28px; flex: 0 0 48px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.08); }
.gift-toggle-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .2s ease, background .2s ease; }
.gift-toggle-row.is-active i { border-color: rgba(240,163,96,.7); background: rgba(240,163,96,.16); }
.gift-toggle-row.is-active i::after { transform: translateX(20px); background: var(--warm); }

.gift-total { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px 4px; }
.gift-total > span { min-width: 0; display: grid; gap: 5px; }
.gift-total small { color: var(--muted); font-size: 10px; font-weight: 800; }
.gift-total strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-total > b { flex: 0 0 auto; color: var(--warm); font-size: 27px; }
.gift-submit { margin-top: 0; }
.gift-policy { padding: 0 16px; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }

.gift-balance-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px; border: 1px solid rgba(240,163,96,.45); border-radius: 20px; background: rgba(240,163,96,.08); }
.gift-balance-line span { color: var(--muted); }
.gift-balance-line strong { color: var(--warm); font-size: 25px; }
.gift-history-list { display: grid; gap: 10px; }
.gift-history-item { min-width: 0; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.05); }
.gift-history-item.is-success { border-color: rgba(240,163,96,.35); }
.gift-history-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.07); }
.gift-history-icon img,
.gift-history-icon svg { width: 26px; height: 26px; }
.gift-history-item > div { min-width: 0; display: grid; gap: 4px; }
.gift-history-item small { color: var(--warm); font-size: 10px; font-weight: 800; }
.gift-history-item strong,
.gift-history-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-history-item span { color: var(--muted); font-size: 11px; }
.gift-history-item > button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(255,255,255,.07); }
.gift-history-item > button svg { width: 20px; height: 20px; }
.gift-empty-state { display: grid; justify-items: center; gap: 10px; padding: 50px 24px; color: var(--muted); text-align: center; }
.gift-empty-state img { width: 42px; height: 42px; opacity: .68; }
.gift-empty-state strong { color: var(--text); }
.gift-empty-state span { max-width: 260px; font-size: 12px; line-height: 1.45; }

.gift-receive-loading { min-height: 58vh; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--muted); }
.gift-receive-loading img { width: 54px; height: 54px; }
.gift-receive-hero { display: grid; justify-items: center; gap: 12px; padding: 44px 10px 16px; text-align: center; }
.gift-receive-mark { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid rgba(240,163,96,.6); border-radius: 50%; background: rgba(240,163,96,.11); box-shadow: 0 0 30px rgba(240,163,96,.12); }
.gift-receive-mark img { width: 38px; height: 38px; }
.gift-receive-hero > small { color: var(--warm); font-size: 10px; font-weight: 900; letter-spacing: 0; }
.gift-receive-hero h1 { max-width: 340px; font-size: 28px; line-height: 1.13; }
.gift-receive-hero blockquote { max-width: 330px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.gift-receive-card { display: grid; gap: 18px; padding: 25px; border: 1px solid rgba(240,163,96,.55); border-radius: 26px; background: rgba(255,255,255,.075); }
.gift-receive-card > small { color: var(--warm); font-size: 10px; font-weight: 850; }
.gift-receive-card h2 { font-size: 29px; }
.gift-receive-card > p { color: var(--muted); line-height: 1.5; }
.gift-receive-card > button { min-height: 58px; border-radius: 17px; color: var(--black); background: var(--white); font-size: 16px; font-weight: 850; }
.gift-receive-card.is-error { margin-top: 80px; text-align: center; }
.gift-receive-card.is-error > svg { width: 44px; height: 44px; margin: auto; color: var(--warm); }
.gift-receive-specs { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gift-receive-specs span { display: grid; gap: 3px; padding: 16px 8px; color: var(--muted); font-size: 10px; text-align: center; }
.gift-receive-specs span + span { border-left: 1px solid var(--line); }
.gift-receive-specs b { color: var(--text); font-size: 19px; }
.gift-waiting,
.gift-received-state { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); }
.gift-waiting strong { color: var(--text); }
.gift-received-state { justify-content: flex-start; color: var(--warm); }
.gift-received-state svg { width: 22px; height: 22px; }

@media (max-width: 360px) {
  .partner-form-pair { grid-template-columns: 1fr; }
  .gift-mode-switch { grid-template-columns: 1fr; }
  .gift-mode-switch button { min-height: 105px; }
  .gift-step { grid-template-columns: 1fr; }
  .gift-step-number { width: 30px; height: 30px; }
  .gift-receive-specs { grid-template-columns: 1fr; }
  .gift-receive-specs span + span { border-left: 0; border-top: 1px solid var(--line); }
}

/* Desktop layout: the same Mini App system with a wider spatial composition. */
.desktop-nav { display: none; }
.desktop-home-overview { display: none; }

@media (min-width: 960px) {
  body { overflow-y: auto; }

  .app {
    min-height: 100vh;
    background:
      radial-gradient(circle at 74% 8%, rgba(255,255,255,.08), transparent 34rem),
      radial-gradient(circle at 28% 96%, rgba(240,163,96,.055), transparent 30rem),
      var(--bg);
  }

  .stage {
    min-height: 100vh;
    display: block;
    padding: 22px;
  }

  .phone-shell {
    isolation: isolate;
    width: 100%;
    min-height: calc(100vh - 44px);
    overflow: clip;
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    border-radius: 38px;
    background:
      linear-gradient(115deg, rgba(255,255,255,.03), rgba(255,255,255,.105) 47%, rgba(255,255,255,.035)),
      var(--phone);
  }

  .phone-shell::before {
    z-index: 0;
    background:
      radial-gradient(circle at 70% 10%, rgba(255,255,255,.12), transparent 28rem),
      radial-gradient(circle at 48% 82%, rgba(185,205,215,.07), transparent 28rem);
  }

  .phone-lines {
    inset: -8% 0;
    width: 100%;
    height: 116%;
    opacity: .32;
    background-image: url("data:image/svg+xml,%3Csvg width='1920' height='1400' viewBox='0 0 1920 1400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.30' stroke-width='1.4'%3E%3Cpath d='M-180 108 C170 8 390 190 720 98 S1320 18 2100 154'/%3E%3Cpath d='M-220 348 C180 458 410 254 790 354 S1400 470 2110 286'/%3E%3Cpath d='M-180 650 C210 510 490 748 910 622 S1510 520 2110 694'/%3E%3Cpath d='M-230 974 C150 1098 520 850 930 986 S1540 1100 2120 912'/%3E%3Cpath d='M-190 1282 C220 1130 550 1370 980 1250 S1600 1160 2110 1314'/%3E%3C/g%3E%3Cg fill='none' stroke='%23f0a360' stroke-opacity='.24' stroke-width='1.2'%3E%3Cpath d='M-260 228 C180 112 510 318 870 214 S1470 132 2150 270'/%3E%3Cpath d='M-230 812 C180 928 520 706 970 824 S1580 940 2140 754'/%3E%3Cpath d='M-260 1160 C200 1018 590 1238 1010 1134 S1610 1048 2150 1200'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: translate3d(-1.5%,0,0) scale(1.035);
    transform-origin: center;
    animation: desktopLinesFlow 18s ease-in-out infinite alternate;
    will-change: transform, opacity;
  }

  @keyframes desktopLinesFlow {
    0% { transform: translate3d(-1.5%,-.4%,0) scale(1.035); opacity: .25; }
    45% { transform: translate3d(.8%,.7%,0) scale(1.052); opacity: .36; }
    100% { transform: translate3d(1.7%,-.2%,0) scale(1.04); opacity: .29; }
  }

  .notch,
  .bottom-nav { display: none; }

  .desktop-nav {
    position: sticky;
    top: 22px;
    z-index: 6;
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
    padding: 27px 17px 20px;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,.15);
    border-radius: 38px 0 0 38px;
    background:
      linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
      rgba(45,46,47,.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }

  .desktop-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 9px 28px;
  }

  .desktop-brand > span:last-child { min-width: 0; }
  .desktop-brand strong,
  .desktop-brand small { display: block; }
  .desktop-brand strong { font-size: 17px; line-height: 1.05; white-space: nowrap; }
  .desktop-brand small { margin-top: 4px; color: var(--muted); font-size: 12px; }
  .desktop-brand .logo-image { width: 40px; height: 40px; }

  .desktop-nav-list { display: grid; gap: 5px; }

  .desktop-nav-list button {
    position: relative;
    width: 100%;
    min-height: 53px;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: transparent;
    color: rgba(244,244,242,.58);
    text-align: left;
    font-size: 14px;
    font-weight: 720;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
  }

  .desktop-nav-list button:hover {
    color: var(--white);
    background: rgba(255,255,255,.075);
    transform: translateX(2px);
  }

  .desktop-nav-list button.is-active {
    border-color: rgba(255,255,255,.18);
    background:
      linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.055)),
      rgba(255,255,255,.035);
    color: var(--white);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }

  .desktop-nav-list button.is-active::before {
    content: "";
    position: absolute;
    left: -1px;
    width: 2px;
    height: 24px;
    border-radius: 99px;
    background: var(--warm);
    box-shadow: 0 0 16px rgba(240,163,96,.35);
  }

  .desktop-nav-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;
    background: rgba(255,255,255,.055);
  }

  .desktop-nav-icon .ui-icon { width: 20px; height: 20px; opacity: .72; }
  .desktop-nav-list .is-active .desktop-nav-icon { border-color: rgba(240,163,96,.42); background: rgba(240,163,96,.10); }
  .desktop-nav-list .is-active .desktop-nav-icon .ui-icon { opacity: 1; }

  .desktop-nav-list button > b {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--warm);
    color: var(--black);
    font-size: 10px;
  }

  .desktop-profile {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding: 16px 10px 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.15);
    background: transparent;
    text-align: left;
  }

  .desktop-profile .avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 13px;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 8px 18px rgba(0,0,0,.18);
  }

  .desktop-profile > span:nth-child(2) { min-width: 0; }
  .desktop-profile strong,
  .desktop-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .desktop-profile strong { font-size: 13px; }
  .desktop-profile small { margin-top: 4px; color: var(--muted); font-size: 11px; }
  .desktop-profile > i { width: 8px; height: 8px; border-radius: 50%; background: #6ed69e; box-shadow: 0 0 13px rgba(110,214,158,.65); }

  .screen {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    padding: 0 34px 46px;
  }

  .app-header {
    position: relative;
    top: auto;
    z-index: 7;
    min-height: 76px;
    margin: 0 -34px 28px;
    padding: 11px 34px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    border-radius: 0 38px 0 0;
    background: rgba(65,66,67,.74);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: none;
  }

  .app-header .brand-lockup { visibility: hidden; }
  .app-header .menu-button { display: none; }
  .app-header .lang-button { min-width: 78px; }

  .content {
    width: min(100%, 1280px);
    margin: 0 auto;
    gap: 22px;
  }

  .hero,
  .page-head { padding-top: 3px; }
  .hero h1 { font-size: clamp(34px,3.2vw,48px); }
  .page-head h1 { font-size: 17px; }
  .page-head p { font-size: 16px; }

  .view-home .content {
    grid-template-columns: minmax(0,1.45fr) minmax(330px,.85fr);
    align-items: start;
  }

  .view-home .hero { grid-column: 1 / -1; }
  .view-home .profile-panel { grid-column: 1; grid-row: 2 / span 2; min-height: 354px; padding: 30px; display: flex; flex-direction: column; }
  .view-home .profile-panel .primary-action { width: min(100%,620px); margin-top: auto; }
  .view-home .desktop-home-overview { grid-column: 1 / -1; grid-row: 4; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(330px,.8fr); gap: 18px; }
  .view-home .mini-grid { grid-column: 2; grid-row: 2; align-self: start; }
  .view-home .action-list { grid-column: 2; grid-row: 3; align-self: end; }
  .view-home .mini-panel { min-height: 112px; }
  .view-home .action-item { min-height: 76px; }

  .desktop-traffic-visual,
  .desktop-home-stats article {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
      linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.045)),
      rgba(255,255,255,.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 18px 55px rgba(0,0,0,.20);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .desktop-traffic-visual {
    min-height: 274px;
    display: grid;
    grid-template-columns: 214px minmax(0,1fr);
    align-items: center;
    gap: 26px;
    padding: 28px 34px;
    border-radius: 34px;
  }

  .desktop-traffic-ring {
    --ring-size: 188px;
    position: relative;
    width: var(--ring-size);
    height: var(--ring-size);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--warm) calc(var(--traffic-used) * 1%),rgba(255,255,255,.13) 0);
    box-shadow: 0 20px 48px rgba(0,0,0,.22),0 0 38px rgba(240,163,96,.08);
    animation: desktopTrafficReveal .8s cubic-bezier(.2,.8,.2,1) both;
  }

  .desktop-traffic-ring::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: inherit;
    background: linear-gradient(145deg,#5b5c5d,#414243);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.13);
  }

  .desktop-traffic-ring > span { position: relative; z-index:1; display:grid; justify-items:center; }
  .desktop-traffic-ring small { color:var(--muted); font-size:12px; }
  .desktop-traffic-ring strong { margin-top:5px; font-size:38px; line-height:1; letter-spacing:-.04em; }
  .desktop-traffic-ring b { margin-top:4px; color:var(--muted); font-size:12px; }

  @keyframes desktopTrafficReveal {
    from { opacity:0; transform:scale(.9) rotate(-12deg); }
    to { opacity:1; transform:none; }
  }

  .desktop-traffic-copy > small { color:var(--warm); font-size:10px; font-weight:850; letter-spacing:.23em; }
  .desktop-traffic-copy h2 { margin-top:12px; font-size:30px; }
  .desktop-traffic-copy > p { margin-top:8px; color:var(--muted); font-size:15px; }
  .desktop-traffic-copy > div { display:grid; gap:12px; margin-top:28px; padding-top:20px; border-top:1px solid var(--line); }
  .desktop-traffic-copy > div span { display:grid; grid-template-columns:10px minmax(0,1fr) auto; align-items:center; gap:9px; color:var(--muted); font-size:13px; }
  .desktop-traffic-copy > div i { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.28); }
  .desktop-traffic-copy > div i.is-used { background:var(--warm); box-shadow:0 0 12px rgba(240,163,96,.45); }
  .desktop-traffic-copy > div b { color:var(--white); }

  .desktop-home-stats { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
  .desktop-home-stats article { min-width:0; min-height:274px; display:flex; flex-direction:column; padding:22px; border-radius:30px; }
  .desktop-home-stats .panel-icon { margin-bottom:auto; }
  .desktop-home-stats small { color:var(--muted); font-size:13px; }
  .desktop-home-stats strong { margin-top:10px; font-size:36px; line-height:1; }
  .desktop-home-stats button { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:24px; padding:0; border:0; border-top:1px solid var(--line); background:transparent; color:var(--muted); font-size:12px; text-align:left; }
  .desktop-home-stats button svg { width:17px; height:17px; }

  .view-subscription .content {
    grid-template-columns: minmax(0,1.2fr) minmax(340px,.8fr);
    align-items: start;
  }
  .view-subscription .page-head { grid-column: 1 / -1; }
  .view-subscription .subscription-cabinet { grid-column: 1; grid-row: 2 / span 2; min-height: 402px; padding: 26px; }
  .view-subscription .subscription-actions { grid-column: 2; grid-row: 2; }
  .view-subscription .subscription-devices { grid-column: 2; grid-row: 3; }

  .view-devices .content {
    grid-template-columns: minmax(330px,.72fr) minmax(460px,1.28fr);
    align-items: start;
  }
  .view-devices .page-head { grid-column: 1 / -1; }
  .view-devices .device-create-action { grid-column: 1; }
  .view-devices .device-actions { grid-column: 2; grid-row: 2; }
  .view-devices .device-list { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view-devices .device-list > .section-label { grid-column: 1 / -1; }

  .view-bonuses .content,
  .view-gift .content,
  .view-support .content,
  .view-support-new .content,
  .view-support-ticket .content,
  .view-notifications .content,
  .view-notification-settings .content,
  .view-profile .content,
  .view-security .content,
  .view-tariff-management .content,
  .view-tariff-change .content,
  .view-autorenew .content,
  .view-history .content,
  .view-tariffs .content,
  .view-checkout .content,
  .view-partner .content,
  .view-loyalty-privileges .content,
  .view-loyalty-invite .content { max-width: 980px; }

  .view-tariffs .tariff-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view-history .history-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view-notifications .notification-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view-gift .gift-mode-switch { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view-gift .gift-builder { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view-gift .gift-step + .gift-step { border-top: 0; }
  .view-gift .gift-step:nth-child(even) { border-left: 1px solid var(--line); }
  .view-gift .gift-step:nth-child(n+3) { border-top: 1px solid var(--line); }

  .drawer { left: 244px; padding: 112px 34px 44px; border-radius: 0 38px 38px 0; }
  .drawer-close { top: 28px; right: 34px; }
  .drawer-list { max-width: 720px; grid-template-columns: repeat(2,minmax(0,1fr)); }

  .device-dialog-backdrop { position: fixed; }
  .device-dialog { width: min(540px,calc(100vw - 48px)); }

  .profile-panel,
  .subscription-cabinet,
  .subscription-action,
  .subscription-devices,
  .device-card,
  .mini-panel,
  .action-item,
  .tariff-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .primary-action { max-width: 520px; }
}

@media (min-width: 960px) and (prefers-reduced-motion: reduce) {
  .phone-lines,
  .desktop-traffic-ring { animation: none; }
}

@media (min-width: 960px) and (max-width: 1120px) {
  .phone-shell { grid-template-columns: 88px minmax(0,1fr); }
  .desktop-brand { justify-content: center; padding-inline: 0; }
  .desktop-brand > span:last-child,
  .desktop-nav-list button > span:nth-child(2),
  .desktop-nav-list button > b,
  .desktop-profile > span:nth-child(2),
  .desktop-profile > i { display: none; }
  .desktop-nav-list button { grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .desktop-profile { grid-template-columns: 1fr; justify-items: center; padding-inline: 0; }
  .screen { grid-column: 2; }
  .drawer { left: 88px; }
}
