:root {
  --home-v2-red: #ff343f;
  --home-v2-red-bright: #ff575f;
  --home-v2-red-deep: #bd0d24;
  --home-v2-bg: #0b0e0e;
  --home-v2-surface: rgba(17, 23, 22, 0.91);
  --home-v2-line: rgba(175, 191, 186, 0.16);
  --home-v2-text: #f5f7f6;
  --home-v2-muted: #8d9894;
}

html.home-v2 body {
  background: var(--home-v2-bg);
}

html.home-v2 .app-bg {
  display: none !important;
}

html.home-v2 #snow-canvas,
html.home-v2 #main-content > :not(.home-v2-screen) {
  display: none !important;
}

html.home-v2 #main-content {
  width: 100%;
  max-width: 540px;
  min-height: var(--tg-viewport-stable-height, 100dvh);
  padding: 0;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  background: transparent;
}

html.home-v2 #main-content::-webkit-scrollbar {
  display: none;
}

section.home-v2-screen {
  position: relative;
  isolation: isolate;
  min-height: var(--tg-viewport-stable-height, 100dvh);
  padding: max(14px, var(--tg-effective-safe-area-inset-top, 0px)) 16px calc(92px + var(--tg-effective-safe-area-inset-bottom, 0px));
  color: var(--home-v2-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

section.home-v2-screen::before,
section.home-v2-screen::after,
.home-v2__ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

section.home-v2-screen::before {
  top: 3%;
  right: -44%;
  width: 108%;
  height: 64%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 47, 61, 0.48), rgba(126, 9, 25, 0.22) 44%, transparent 72%);
  filter: blur(8px);
}

section.home-v2-screen::after {
  bottom: 0;
  left: -40%;
  width: 95%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 13, 35, 0.27), transparent 70%);
  filter: blur(14px);
}

.home-v2__ambient {
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 8, 0.04), rgba(5, 8, 8, 0.42) 74%, rgba(5, 8, 8, 0.12));
}

section.home-v2-screen button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.home-v2__topbar {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  min-height: 54px;
}

.home-v2__close {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  color: #fff;
  background: #171e1d;
  font-size: 27px;
  transition: transform 180ms ease, background 180ms ease;
}

.home-v2__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.home-v2__brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  overflow: hidden;
  place-items: center;
  border-radius: 10px;
  color: #0a0b0b;
  background: linear-gradient(145deg, var(--home-v2-red-bright), var(--home-v2-red));
  font-size: 18px;
  box-shadow: 0 10px 30px rgba(255, 52, 63, 0.18);
}

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

.home-v2__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 3.6vh, 30px) 0 clamp(22px, 4vh, 34px);
  text-align: center;
}

.home-v2__eyebrow {
  color: var(--home-v2-muted);
  font-size: 15px;
  font-weight: 500;
}

.home-v2__days {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 3px;
  color: #fff;
}

.home-v2__days strong {
  font-size: clamp(44px, 12vw, 58px);
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.home-v2__days span {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 720;
}

.home-v2__expiry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 24px;
  margin-top: 16px;
  color: var(--home-v2-muted);
  font-size: 14px;
}

.home-v2__expiry i {
  color: #ff6756;
  font-size: 17px;
}

.home-v2__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.home-v2__chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--home-v2-line);
  border-radius: 999px;
  color: var(--home-v2-text);
  background: rgba(15, 20, 19, 0.74);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.2;
}

button.home-v2__chip {
  appearance: none;
}

.home-v2__chip--lte {
  border-color: rgba(255, 62, 73, 0.26);
  background: rgba(38, 15, 18, 0.64);
}

.home-v2__actions {
  display: grid;
  gap: 10px;
}

.home-v2__button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 28px;
  font-size: 17px;
  font-weight: 720;
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease;
}

.home-v2__button i {
  font-size: 22px;
}

.home-v2__button--primary {
  border: 0;
  color: #090a0a;
  background: linear-gradient(135deg, var(--home-v2-red-bright), var(--home-v2-red) 54%, #ef152c);
  box-shadow: 0 16px 44px rgba(255, 42, 58, 0.18);
}

.home-v2__button--secondary {
  border: 1.5px solid var(--home-v2-red);
  color: var(--home-v2-red);
  background: rgba(13, 17, 17, 0.52);
}

.home-v2__promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.home-v2__promo {
  position: relative;
  min-width: 0;
  min-height: 148px;
  overflow: clip;
  padding: 18px 14px;
  border: 1px solid var(--home-v2-line);
  border-radius: 30px;
  color: var(--home-v2-text);
  background:
    radial-gradient(150px 130px at 95% 100%, rgba(255, 52, 63, 0.34), rgba(92, 12, 21, 0.13) 46%, transparent 74%),
    var(--home-v2-surface);
  text-align: left;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, border-color 180ms ease;
}

.home-v2__promo-copy {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 12px;
  left: 14px;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.home-v2__promo-copy strong {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.home-v2__promo-copy small {
  max-width: 82px;
  color: var(--home-v2-muted);
  font-size: 12px;
  line-height: 1.3;
}

/* V2 checkout: the existing payment engine stays untouched; only the verified
   experiment receives this presentation layer. */
html.home-v2 .checkout-page {
  isolation: isolate;
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  padding-top: calc(var(--tg-effective-safe-area-inset-top, 0px) + 8px);
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  gap: 0;
  overflow: hidden;
  color: var(--home-v2-text);
  background:
    radial-gradient(310px 430px at 112% 38%, rgba(255, 45, 61, 0.34), rgba(116, 9, 27, 0.14) 48%, transparent 76%),
    radial-gradient(240px 300px at -12% 92%, rgba(207, 15, 40, 0.16), transparent 72%),
    #0b0e0e;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

html.home-v2 .checkout-header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 0 16px 4px;
}

html.home-v2 #checkout-back-btn {
  display: grid !important;
  width: 46px !important;
  height: 46px !important;
  place-items: center;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 50%;
  color: #f6f8f7;
  background: #171e1d;
  box-shadow: none;
  opacity: 1 !important;
  pointer-events: auto !important;
}

html.home-v2 body.tg-native-back #checkout-back-btn {
  position: relative !important;
}

html.home-v2 #checkout-back-btn i {
  font-size: 25px;
}

html.home-v2 #checkout-back-btn span {
  display: none;
}

html.home-v2 .checkout-scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 16px calc(152px + var(--tg-effective-safe-area-inset-bottom, 0px));
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
  background: transparent;
  scrollbar-width: none;
}

html.home-v2 .checkout-scroll > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

html.home-v2 .checkout-scroll::before {
  position: absolute;
  z-index: -1;
  top: -18px;
  right: 0;
  left: 0;
  height: 205px;
  background:
    linear-gradient(180deg, rgba(11, 14, 14, 0.16), rgba(11, 14, 14, 0.44) 58%, #0b0e0e 100%),
    url("./images/home-v2/network-map-v1.png") center top / auto 176px no-repeat;
  opacity: 0.3;
  content: "";
  pointer-events: none;
}

html.home-v2 .checkout-scroll::-webkit-scrollbar {
  display: none;
}

html.home-v2 .checkout-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0 7px;
  order: 1;
  min-height: 104px;
  margin: 0 0 12px;
  padding: 34px 6px 0;
  text-align: left;
}

html.home-v2 .checkout-hero-title,
html.home-v2 .checkout-hero-badge {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: clamp(21px, 5.8vw, 23px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

html.home-v2 .checkout-hero-title {
  color: #f5f7f6;
}

html.home-v2 .checkout-hero-badge {
  color: var(--home-v2-red);
}

html.home-v2 .checkout-v2-hero-sub {
  display: block !important;
  flex-basis: 100%;
  margin: 7px 0 0;
  color: var(--home-v2-muted);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0;
}

html.home-v2 .checkout-section {
  min-width: 0;
  margin: 0 0 20px;
}

html.home-v2 .checkout-custom-tariff-note,
html.home-v2 .checkout-discount-timer,
html.home-v2 .checkout-trial-top,
html.home-v2 .checkout-lte-renewal-note {
  order: 2;
}

html.home-v2 .checkout-section:has(.checkout-periods) {
  order: 3;
}

html.home-v2 .checkout-section--tariffs {
  order: 4;
  margin: 4px 0 20px;
  padding: 15px;
  border: 1px solid rgba(184, 198, 193, 0.15);
  border-radius: 28px;
  background: rgba(17, 23, 22, 0.82);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

html.home-v2 .checkout-trial-wrap {
  order: 5;
}

html.home-v2 .checkout-section-title {
  margin: 0 0 5px;
  color: #f5f7f6;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

html.home-v2 .checkout-section:has(.checkout-periods) .checkout-section-title {
  font-size: 19px;
}

html.home-v2 .checkout-section-sub {
  margin: 0 0 12px;
  color: var(--home-v2-muted);
  font-size: 12px;
  line-height: 1.4;
}

html.home-v2 .lte-pack-grid--tariffs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(184, 198, 193, 0.12);
  border-radius: 22px;
  background: rgba(7, 11, 10, 0.38);
}

html.home-v2 .checkout-tariff-btn.lte-pack-card--tariff {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  min-width: 0;
  min-height: 76px;
  gap: 2px 7px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

html.home-v2 .checkout-tariff-btn .lte-pack-card-glow {
  display: none;
}

html.home-v2 .checkout-tariff-btn.selected {
  border-color: rgba(255, 79, 90, 0.54);
  background: linear-gradient(145deg, rgba(255, 61, 73, 0.2), rgba(92, 13, 26, 0.2));
  box-shadow: 0 10px 28px rgba(111, 9, 24, 0.13), inset 0 1px rgba(255, 255, 255, 0.025);
}

html.home-v2 .checkout-tariff-head {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 19px;
}

html.home-v2 .checkout-tariff-badge {
  padding: 0;
  overflow: visible;
  border: 0;
  color: #eef1f0;
  background: transparent;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: none;
}

html.home-v2 .checkout-tariff-badge--hot {
  color: #eef1f0;
  background: transparent;
}

html.home-v2 .checkout-tariff-btn .lte-pack-icon--tariff {
  align-self: center;
  color: rgba(255, 100, 110, 0.82);
  font-size: 20px;
}

html.home-v2 .lte-pack-grid--tariffs .lte-pack-gb-wrap {
  grid-column: 1;
  grid-row: 2;
  z-index: 1;
  margin: 0;
  line-height: 1.15;
}

html.home-v2 .lte-pack-grid--tariffs .lte-pack-gb {
  color: #fff;
  font-size: 18px;
  font-weight: 740;
}

html.home-v2 .lte-pack-grid--tariffs .lte-pack-gb-unit {
  color: var(--home-v2-muted);
  font-size: 11px;
}

html.home-v2 .checkout-tariff-desc {
  display: none;
}

html.home-v2 .checkout-section:has(.checkout-periods) .checkout-section-title {
  display: none;
}

html.home-v2 .checkout-periods {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x;
}

html.home-v2 .checkout-periods::-webkit-scrollbar {
  display: none;
}

html.home-v2 .checkout-period-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  flex: 0 0 clamp(154px, 43vw, 170px);
  width: clamp(154px, 43vw, 170px);
  max-width: 170px;
  min-width: 154px;
  min-height: 154px;
  align-content: stretch;
  gap: 4px;
  box-sizing: border-box;
  padding: 14px 14px 13px;
  border: 1px solid rgba(184, 198, 193, 0.15);
  border-radius: 26px;
  color: var(--home-v2-text);
  background: rgba(17, 22, 21, 0.88);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  scroll-snap-align: start;
}

html.home-v2 #checkout-period-12 { order: 1; }
html.home-v2 #checkout-period-6 { order: 2; }
html.home-v2 #checkout-period-3 { order: 3; }
html.home-v2 #checkout-period-1 { order: 4; }

html.home-v2 .checkout-period-card.selected {
  border-color: var(--home-v2-red);
  background: linear-gradient(145deg, rgba(49, 19, 23, 0.98), rgba(17, 23, 22, 0.96) 72%);
  box-shadow: 0 0 0 1px var(--home-v2-red) inset, 0 16px 36px rgba(120, 8, 24, 0.13);
}

html.home-v2 .checkout-period-radio {
  display: none;
}

html.home-v2 .checkout-period-main {
  grid-row: 1;
  padding-right: 0;
}

html.home-v2 .checkout-period-title {
  color: #f6f8f7;
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
}

html.home-v2 .checkout-period-permonth {
  margin-top: auto;
  color: var(--home-v2-muted);
  font-size: 10px;
}

html.home-v2 .checkout-period-total {
  grid-row: 3;
  min-width: 0;
  color: #fff;
  font-size: 25px;
  font-weight: 780;
  text-align: left;
  text-shadow: none;
}

html.home-v2 .checkout-period-meta,
html.home-v2 .checkout-period-old,
html.home-v2 .checkout-period-save {
  display: none !important;
}

html.home-v2 .checkout-period-badge {
  top: 12px;
  right: 11px;
  max-width: 58px;
  padding: 3px 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: #160407;
  background: var(--home-v2-red);
  font-size: 9px;
  font-weight: 780;
  white-space: nowrap;
}

html.home-v2 .checkout-lte-renewal-note,
html.home-v2 .checkout-trial-premium {
  border-color: rgba(255, 52, 63, 0.22);
  border-radius: 24px;
  background: rgba(31, 19, 21, 0.74);
}

html.home-v2 .checkout-sticky-footer {
  width: auto;
  max-width: calc(100vw - 24px);
  min-width: 0;
  box-sizing: border-box;
  margin: 0 12px calc(8px + var(--tg-effective-safe-area-inset-bottom, 0px));
  padding: 12px;
  border: 1px solid rgba(184, 198, 193, 0.14);
  border-radius: 28px;
  background: rgba(12, 20, 18, 0.94);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.025);
}

html.home-v2 .checkout-v2-summary {
  display: grid !important;
  min-width: 0;
  gap: 7px;
  margin: 0 4px 10px;
  overflow: hidden;
}

html.home-v2 .checkout-v2-summary-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: #c7d0cd;
  font-size: 11px;
  white-space: nowrap;
}

html.home-v2 .checkout-v2-summary-row span {
  overflow: hidden;
  text-overflow: ellipsis;
}

html.home-v2 .checkout-v2-summary-row i {
  display: block;
  color: #aab7b2;
  font-size: 16px;
}

html.home-v2 .checkout-v2-summary-row small {
  display: block;
  padding: 3px 7px;
  border-radius: 999px;
  color: #a7b3af;
  background: rgba(255, 255, 255, 0.065);
  font-size: 9px;
  white-space: nowrap;
}

html.home-v2 .checkout-footer-hint {
  display: none;
}

html.home-v2 .checkout-price-breakdown--footer {
  display: none !important;
}

html.home-v2 .checkout-cta-btn {
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 28px;
  color: #090a0a;
  background: linear-gradient(135deg, var(--home-v2-red-bright), var(--home-v2-red) 54%, #ef152c);
  box-shadow: 0 16px 44px rgba(255, 42, 58, 0.18);
  font-size: 16px;
  font-weight: 760;
}

.home-v2__promo-art {
  position: absolute;
  right: 9px;
  bottom: 10px;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  color: #e6e9e8;
  background: linear-gradient(145deg, rgba(156, 164, 161, 0.38), rgba(19, 23, 22, 0.92) 52%, rgba(255, 53, 65, 0.3));
  font-size: 44px;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
  transform: rotate(-6deg);
}

.home-v2__promo:nth-child(2) .home-v2__promo-art {
  transform: rotate(5deg);
}

.home-v2__promo-arrow {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 14px;
  display: grid;
  width: 44px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  font-size: 21px;
}

.home-v2__dock {
  position: fixed;
  z-index: 42;
  left: 50%;
  bottom: calc(10px + var(--tg-effective-safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  min-height: 64px;
  width: min(calc(100vw - 32px), 508px);
  box-sizing: border-box;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--home-v2-line);
  border-radius: 34px;
  background: rgba(14, 22, 20, 0.95);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.home-v2__dock-item {
  display: grid;
  min-width: 0;
  height: 52px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 27px;
  color: #b5c0bc;
  background: transparent;
  font-size: 26px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.home-v2__dock-item.is-active {
  color: #090a0a;
  background: linear-gradient(135deg, var(--home-v2-red-bright), var(--home-v2-red));
}

.home-v2__dock-item:focus-visible {
  outline: 2px solid rgba(255, 88, 101, 0.72);
  outline-offset: -4px;
}

.home-v2__dock-item i {
  font-size: 26px;
  line-height: 1;
}

section.home-v2-screen button:active {
  transform: scale(0.975);
}

section.home-v2-screen button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

section.home-v2-screen .home-v2__dock-item:focus-visible {
  outline: none;
}

.home-v2-screen.is-inactive .home-v2__days strong,
.home-v2-screen.is-inactive .home-v2__days span {
  color: var(--home-v2-muted);
}

@media (max-height: 720px) {
  .home-v2__hero { padding: 16px 0 22px; }
  .home-v2__promos { margin-top: 20px; }
  .home-v2__promo { min-height: 144px; }
  .home-v2__promo-art { width: 76px; height: 76px; font-size: 48px; }
}

@media (min-width: 520px) {
  section.home-v2-screen { padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2-screen *, .home-v2-screen *::before, .home-v2-screen *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .home-v2-screen::before, .home-v2-screen::after { filter: none; }
}

/* ──────────────────────────────────────────────────────────
   V2 checkout polish — ambient light, calm hierarchy, no
   cropped illustration. This layer is loaded only for the
   server-verified red_v2 cohort.
   ────────────────────────────────────────────────────────── */
html.home-v2 .checkout-page {
  background: #090c0c;
}

html.home-v2 .checkout-page::before,
html.home-v2 .checkout-page::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  will-change: transform, opacity;
}

html.home-v2 .checkout-page::before {
  top: -18%;
  right: -58%;
  width: 132%;
  height: 104%;
  background: radial-gradient(circle at 48% 45%, rgba(255, 68, 80, 0.46) 0, rgba(189, 18, 40, 0.25) 28%, rgba(76, 7, 20, 0.1) 50%, transparent 72%);
  filter: blur(22px) saturate(1.15);
  animation: home-v2-ambient-drift 10s ease-in-out infinite alternate;
}

html.home-v2 .checkout-page::after {
  bottom: -28%;
  left: -62%;
  width: 132%;
  height: 86%;
  background: radial-gradient(circle at 52% 46%, rgba(255, 44, 61, 0.28), rgba(151, 11, 31, 0.13) 42%, transparent 72%);
  filter: blur(32px);
  animation: home-v2-ambient-drift 12s ease-in-out -4s infinite alternate-reverse;
}

html.home-v2 .checkout-scroll::before {
  display: none;
  background: none;
  content: none;
}

html.home-v2 .checkout-hero {
  position: relative;
  min-height: 112px;
  padding-top: 38px;
}

html.home-v2 .checkout-hero::after {
  position: absolute;
  top: 15px;
  right: 10%;
  width: 42%;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 58, 72, 0.18);
  filter: blur(34px);
  content: "";
  pointer-events: none;
}

html.home-v2 .checkout-section--tariffs {
  position: relative;
  overflow: hidden;
  border-color: rgba(197, 210, 206, 0.12);
  background: rgba(14, 20, 19, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 22px 54px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
}

html.home-v2 .checkout-section--tariffs::after {
  position: absolute;
  right: -72px;
  bottom: -88px;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background: rgba(255, 49, 65, 0.14);
  filter: blur(30px);
  content: "";
  pointer-events: none;
}

html.home-v2 .lte-pack-grid--tariffs {
  position: relative;
  z-index: 1;
  border-color: rgba(197, 210, 206, 0.1);
  background: rgba(5, 9, 9, 0.32);
}

html.home-v2 .checkout-tariff-btn,
html.home-v2 .checkout-period-card {
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

html.home-v2 .checkout-period-card {
  border-color: rgba(197, 210, 206, 0.13);
  background: rgba(14, 20, 19, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 18px 50px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
}

html.home-v2 .checkout-period-card.selected {
  background: linear-gradient(145deg, rgba(66, 20, 27, 0.9), rgba(14, 20, 19, 0.84) 72%);
  box-shadow: 0 0 0 1px rgba(255, 72, 83, 0.72) inset, 0 16px 42px rgba(181, 14, 38, 0.18), 0 0 34px rgba(255, 43, 60, 0.08);
  animation: home-v2-border-breathe 4.8s ease-in-out infinite;
}

html.home-v2 .checkout-sticky-footer {
  overflow: visible;
  border-color: rgba(197, 210, 206, 0.15);
  background: rgba(11, 19, 17, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 -18px 70px rgba(255, 46, 62, 0.09), inset 0 1px rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  backdrop-filter: blur(28px) saturate(1.25);
}

html.home-v2 .checkout-sticky-footer::before {
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: -42px;
  width: 58%;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 45, 61, 0.2);
  filter: blur(35px);
  content: "";
  pointer-events: none;
}

html.home-v2 .checkout-v2-summary {
  gap: 9px;
  margin: 1px 5px 11px;
}

html.home-v2 .checkout-v2-summary-row {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  font-size: 12px;
}

html.home-v2 .checkout-v2-summary-row i {
  color: #b4c2bd;
  font-size: 18px;
}

html.home-v2 .checkout-v2-summary-row small {
  padding: 4px 8px;
  color: #b8c4c0;
  background: rgba(203, 219, 214, 0.08);
  font-size: 10px;
}

html.home-v2 .checkout-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 19px;
  text-align: left;
  box-shadow: 0 18px 48px rgba(255, 35, 53, 0.24), 0 0 28px rgba(255, 67, 79, 0.12);
  animation: home-v2-cta-glow 4.5s ease-in-out infinite;
}

html.home-v2 .checkout-cta-label,
html.home-v2 .checkout-cta-amount {
  display: block;
  color: #090a0a;
  font-size: 16px;
  font-weight: 780;
  line-height: 1;
}

/* Payment method sheet: the same payment engine, a dedicated V2 material. */
html.home-v2 #paymethod-backdrop {
  background: rgba(1, 4, 4, 0.7);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
}

html.home-v2 #paymethod-sheet {
  position: fixed;
  isolation: isolate;
  min-height: min(650px, calc(var(--tg-viewport-stable-height, 100dvh) - var(--tg-effective-safe-area-inset-top, 0px) - 22px));
  max-height: calc(var(--tg-viewport-stable-height, 100dvh) - var(--tg-effective-safe-area-inset-top, 0px) - 16px);
  padding: 28px 20px calc(22px + var(--tg-effective-safe-area-inset-bottom, 0px));
  overflow: hidden auto;
  border: 1px solid rgba(196, 210, 205, 0.15);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  color: var(--home-v2-text);
  background: rgba(13, 20, 18, 0.88);
  box-shadow: 0 -26px 80px rgba(0, 0, 0, 0.58), 0 -10px 70px rgba(255, 46, 62, 0.08), inset 0 1px rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(36px) saturate(1.3);
  backdrop-filter: blur(36px) saturate(1.3);
  contain: layout paint style;
}

html.home-v2 #paymethod-sheet::before,
html.home-v2 #paymethod-sheet::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

html.home-v2 #paymethod-sheet::before {
  top: -150px;
  right: -160px;
  width: 390px;
  height: 390px;
  background: rgba(255, 48, 64, 0.24);
  filter: blur(66px);
  animation: home-v2-ambient-drift 9s ease-in-out infinite alternate;
}

html.home-v2 #paymethod-sheet::after {
  bottom: -150px;
  left: -140px;
  width: 330px;
  height: 330px;
  background: rgba(187, 15, 39, 0.18);
  filter: blur(68px);
}

html.home-v2 #paymethod-sheet .sheet-handle {
  display: none;
}

html.home-v2 #paymethod-sheet-title {
  position: relative;
  z-index: 1;
  margin: 2px 62px 26px 2px;
  color: #f7f9f8;
  font-size: 26px;
  font-weight: 790;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

html.home-v2 .paymethod-close-v2 {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 20px;
  display: grid !important;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(199, 211, 208, 0.1);
  border-radius: 50%;
  color: #f4f7f6;
  background: rgba(255, 255, 255, 0.07);
  font-size: 24px;
  transition: background 180ms ease, transform 180ms ease;
}

html.home-v2 #paymethod-sheet .sheet-body-pad {
  position: relative;
  z-index: 1;
  padding: 0;
}

html.home-v2 .paymethod-amount-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 28px;
  margin: 0 3px 18px;
  color: #9ba8a4;
  font-size: 13px;
  text-align: left;
}

html.home-v2 .paymethod-amount-label strong {
  color: #f7f9f8;
  font-size: 20px;
  font-weight: 760;
}

html.home-v2 .paymethod-options {
  gap: 12px;
  margin: 0 0 18px;
}

html.home-v2 .paymethod-option {
  position: relative;
  min-height: 88px;
  gap: 14px;
  padding: 13px 16px;
  overflow: hidden;
  border: 1px solid rgba(196, 210, 205, 0.13);
  border-radius: 25px;
  color: #f5f7f6;
  background: rgba(20, 25, 24, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.028);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

html.home-v2 .paymethod-option::after {
  position: absolute;
  right: -30px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(255, 49, 64, 0);
  filter: blur(25px);
  content: "";
  transition: background 240ms ease;
}

html.home-v2 .paymethod-option--active {
  border-color: rgba(255, 69, 81, 0.95);
  background: rgba(30, 22, 23, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 62, 75, 0.22) inset, 0 16px 44px rgba(160, 12, 34, 0.13);
}

html.home-v2 .paymethod-option--active::after {
  background: rgba(255, 49, 64, 0.18);
}

html.home-v2 .paymethod-option--disabled {
  opacity: 0.52;
}

html.home-v2 .paymethod-option__icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(204, 216, 212, 0.08);
  border-radius: 18px;
  color: #f4f7f6;
  background: rgba(199, 214, 209, 0.08);
  font-size: 23px;
}

html.home-v2 .paymethod-option__icon--sbp {
  color: var(--home-v2-red-bright);
  background: rgba(255, 53, 67, 0.1);
}

html.home-v2 .paymethod-option__name {
  color: #f7f9f8;
  font-size: 17px;
  font-weight: 730;
}

html.home-v2 .paymethod-option__hint {
  margin-top: 3px;
  color: #8e9a96;
  font-size: 11px;
  line-height: 1.35;
}

html.home-v2 .paymethod-option__radio {
  display: none;
}

html.home-v2 .paymethod-agree {
  align-items: flex-start;
  gap: 11px;
  margin: 2px 3px 14px;
  color: #9ca8a4;
  font-size: 11.5px;
  line-height: 1.45;
}

html.home-v2 .paymethod-checkbox {
  width: 24px;
  height: 24px;
  margin-top: 0;
  border-color: rgba(202, 214, 210, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

html.home-v2 .paymethod-checkbox--on {
  border-color: var(--home-v2-red);
  color: #090a0a;
  background: var(--home-v2-red);
  box-shadow: 0 8px 24px rgba(255, 47, 62, 0.2);
}

html.home-v2 .paymethod-agree .inline-link-btn {
  color: var(--home-v2-red-bright);
  text-decoration: underline;
  text-decoration-color: rgba(255, 87, 95, 0.45);
  text-underline-offset: 3px;
}

html.home-v2 #paymethod-error {
  margin: -2px 3px 10px;
  color: #ff7b83;
  font-size: 11px;
}

html.home-v2 #paymethod-submit-btn {
  min-height: 58px;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 29px;
  color: #090a0a;
  background: linear-gradient(135deg, var(--home-v2-red-bright), var(--home-v2-red) 56%, #ed142b);
  box-shadow: 0 18px 52px rgba(255, 39, 56, 0.24), 0 0 34px rgba(255, 66, 78, 0.11);
  font-size: 15px;
  font-weight: 780;
  animation: home-v2-cta-glow 4.5s ease-in-out infinite;
}

html.home-v2 #paymethod-back-btn {
  display: none !important;
}

@keyframes home-v2-ambient-drift {
  0% { opacity: 0.78; transform: translate3d(-2%, -1%, 0) scale(0.96); }
  100% { opacity: 1; transform: translate3d(4%, 3%, 0) scale(1.06); }
}

@keyframes home-v2-border-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 72, 83, 0.66) inset, 0 16px 42px rgba(181, 14, 38, 0.14), 0 0 30px rgba(255, 43, 60, 0.06); }
  50% { box-shadow: 0 0 0 1px rgba(255, 86, 96, 0.9) inset, 0 18px 48px rgba(181, 14, 38, 0.22), 0 0 40px rgba(255, 43, 60, 0.12); }
}

@keyframes home-v2-cta-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.045); }
}

@media (max-height: 700px) {
  html.home-v2 #paymethod-sheet {
    min-height: calc(var(--tg-viewport-stable-height, 100dvh) - var(--tg-effective-safe-area-inset-top, 0px) - 12px);
    padding-top: 22px;
  }
  html.home-v2 #paymethod-sheet-title { margin-bottom: 18px; }
  html.home-v2 .paymethod-option { min-height: 76px; }
}

/* V2.8 — guided Happ / INCY setup flow. */
html.setup-v2-open,
html.setup-v2-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.home-v2 .setup-v2 {
  position: fixed;
  z-index: 12000;
  inset: 0;
  height: var(--tg-viewport-stable-height, 100dvh);
  overflow: clip;
  color: #f5f7f6;
  background: #090e0d;
  isolation: isolate;
}

html.home-v2 .setup-v2.hidden {
  display: none !important;
}

html.home-v2 .setup-v2__ambient {
  position: absolute;
  z-index: -1;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 42% at 86% 9%, rgba(255, 50, 66, 0.32), rgba(118, 11, 28, 0.1) 52%, transparent 76%),
    radial-gradient(ellipse 46% 38% at 4% 72%, rgba(208, 22, 47, 0.18), transparent 72%),
    radial-gradient(ellipse 64% 54% at 55% 44%, rgba(78, 10, 22, 0.12), transparent 74%);
  transform: translate3d(0, 0, 0) scale(1.02);
  animation: setup-v2-ambient 9s ease-in-out infinite alternate;
}

@keyframes setup-v2-ambient {
  from { transform: translate3d(-1.2%, -0.8%, 0) scale(1.02); opacity: 0.84; }
  to { transform: translate3d(1.4%, 1%, 0) scale(1.07); opacity: 1; }
}

html.home-v2 .setup-v2__topbar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
  padding: calc(12px + var(--tg-effective-safe-area-inset-top, 0px)) 16px 8px;
}

html.home-v2 .setup-v2__round-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(207, 221, 216, 0.12);
  border-radius: 50%;
  color: #f5f7f6;
  background: rgba(18, 27, 25, 0.92);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045), 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 20px;
  touch-action: manipulation;
}

html.home-v2 .setup-v2__step {
  justify-self: center;
  padding: 5px 11px;
  border: 1px solid rgba(206, 219, 215, 0.09);
  border-radius: 999px;
  color: #8f9a97;
  background: rgba(13, 20, 18, 0.58);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

html.home-v2 .setup-v2__viewport {
  height: calc(var(--tg-viewport-stable-height, 100dvh) - 64px - var(--tg-effective-safe-area-inset-top, 0px));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

html.home-v2 .setup-v2__viewport::-webkit-scrollbar { display: none; }

html.home-v2 .setup-v2__panel {
  display: none;
  min-height: 100%;
  padding: 20px 16px calc(24px + var(--tg-effective-safe-area-inset-bottom, 0px));
}

html.home-v2 .setup-v2__panel.is-active {
  display: flex;
  flex-direction: column;
  animation: setup-v2-panel-in 260ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes setup-v2-panel-in {
  from { opacity: 0; transform: translate3d(14px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

html.home-v2 .setup-v2__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 45px auto 34px;
  text-align: center;
}

html.home-v2 .setup-v2__hero--compact {
  margin-top: 20px;
  margin-bottom: 24px;
}

html.home-v2 .setup-v2__hero-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(255, 106, 116, 0.26);
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 91, 103, 0.24), transparent 55%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  font-size: 34px;
}

html.home-v2 .setup-v2__hero h2 {
  margin: 0;
  max-width: 330px;
  color: #f7f8f8;
  font-size: clamp(27px, 7.6vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

html.home-v2 .setup-v2__hero p {
  max-width: 330px;
  margin: 10px 0 0;
  color: #96a29e;
  font-size: 13px;
  line-height: 1.48;
}

html.home-v2 .setup-v2__choice-stack {
  display: grid;
  gap: 11px;
  margin-top: auto;
  margin-bottom: 11px;
}

html.home-v2 .setup-v2__where-cta {
  flex: 0 0 auto;
  margin-bottom: 28px;
}

html.home-v2 .setup-v2__wide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  min-height: 108px;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(202, 216, 211, 0.12);
  border-radius: 27px;
  color: #f4f6f5;
  text-align: left;
  background:
    radial-gradient(ellipse 120px 110px at 105% 30%, rgba(255, 62, 78, 0.14), transparent 72%),
    rgba(17, 24, 23, 0.9);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  touch-action: manipulation;
}

html.home-v2 .setup-v2__wide-card.is-selected {
  border-color: #ff4555;
  box-shadow: 0 0 0 1px rgba(255, 77, 89, 0.58) inset;
}

html.home-v2 .setup-v2__wide-card span { min-width: 0; }
html.home-v2 .setup-v2__wide-card strong { display: block; font-size: 17px; line-height: 1.2; }
html.home-v2 .setup-v2__wide-card small { display: block; margin-top: 6px; color: #8d9895; font-size: 10.5px; line-height: 1.35; }
html.home-v2 .setup-v2__wide-card > i { justify-self: center; color: #ff5965; font-size: 38px; }

html.home-v2 .setup-v2__platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html.home-v2 .setup-v2__platform-grid button {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(203, 217, 212, 0.12);
  border-radius: 22px;
  color: #f2f4f3;
  background: rgba(17, 24, 23, 0.88);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

html.home-v2 .setup-v2__platform-grid button:last-child { grid-column: 1 / -1; }
html.home-v2 .setup-v2__platform-grid i { color: #ff5965; font-size: 25px; }

html.home-v2 .setup-v2__privacy-note,
html.home-v2 .setup-v2__handoff-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 4px 0;
  color: #87938f;
  font-size: 10.5px;
  line-height: 1.42;
}

html.home-v2 .setup-v2__privacy-note i,
html.home-v2 .setup-v2__handoff-note i { flex: 0 0 auto; color: #ff5965; font-size: 16px; }

html.home-v2 .setup-v2__app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

html.home-v2 .setup-v2__app-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 44px 14px 20px;
  overflow: hidden;
  border: 1px solid rgba(202, 216, 211, 0.12);
  border-radius: 29px;
  color: #f5f7f6;
  background:
    radial-gradient(ellipse 150px 150px at 50% 48%, rgba(255, 49, 66, 0.16), transparent 70%),
    #141a19;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

html.home-v2 .setup-v2__app-card.is-selected {
  border-color: #ff4555;
  box-shadow: 0 0 0 1px rgba(255, 76, 88, 0.62) inset;
}

html.home-v2 .setup-v2__app-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 999px;
  color: #0d1110;
  background: #ff4c5b;
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
}

html.home-v2 .setup-v2__app-badge--muted { color: #aeb8b4; background: rgba(197, 211, 206, 0.1); }

html.home-v2 .setup-v2__app-logo {
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(255, 99, 111, 0.25);
  border-radius: 26px;
  color: #f8faf9;
  background: linear-gradient(145deg, rgba(255, 75, 88, 0.24), rgba(42, 27, 29, 0.72));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(95, 4, 21, 0.22);
  font-size: 36px;
  font-weight: 850;
}

html.home-v2 .setup-v2__app-card strong { font-size: 19px; }
html.home-v2 .setup-v2__app-card small { margin-top: 5px; color: #899591; font-size: 10px; }

html.home-v2 .setup-v2__platform-caption {
  margin: 16px 0 0;
  color: #78837f;
  font-size: 10.5px;
  text-align: center;
}

html.home-v2 .setup-v2__platform-caption strong { color: #b8c0bd; }

html.home-v2 .setup-v2__steps-card {
  display: grid;
  gap: 0;
  padding: 5px 18px;
  border: 1px solid rgba(201, 215, 210, 0.12);
  border-radius: 25px;
  background: rgba(16, 23, 22, 0.9);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

html.home-v2 .setup-v2__steps-card > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 80px;
  border-bottom: 1px solid rgba(203, 216, 212, 0.08);
}

html.home-v2 .setup-v2__steps-card > div:last-child { border-bottom: 0; }
html.home-v2 .setup-v2__steps-card > div > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #ff6470; background: rgba(255, 65, 80, 0.11); font-size: 11px; font-weight: 800; }
html.home-v2 .setup-v2__steps-card p { margin: 0; }
html.home-v2 .setup-v2__steps-card strong { display: block; font-size: 14px; }
html.home-v2 .setup-v2__steps-card small { display: block; margin-top: 4px; color: #899591; font-size: 9.5px; line-height: 1.35; }

html.home-v2 .setup-v2__footer-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

html.home-v2 .setup-v2__primary,
html.home-v2 .setup-v2__secondary,
html.home-v2 .setup-v2__text-btn {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 27px;
  font-size: 14px;
  font-weight: 800;
  touch-action: manipulation;
}

html.home-v2 .setup-v2__primary {
  border: 0;
  color: #100d0e;
  background: linear-gradient(105deg, #ff5260, #ff203b 72%);
  box-shadow: 0 14px 34px rgba(211, 13, 42, 0.2), inset 0 1px rgba(255, 255, 255, 0.24);
}

html.home-v2 .setup-v2__primary.is-loading { opacity: 0.72; }
html.home-v2 .setup-v2__primary.is-loading i { animation: setup-v2-spin 0.8s linear infinite; }
@keyframes setup-v2-spin { to { transform: rotate(360deg); } }

html.home-v2 .setup-v2__secondary {
  border: 1px solid rgba(202, 216, 211, 0.12);
  color: #eff2f1;
  background: rgba(26, 32, 31, 0.92);
}

html.home-v2 .setup-v2__text-btn {
  min-height: 38px;
  border: 0;
  color: #8f9996;
  background: transparent;
  font-size: 11px;
}

html.home-v2 .setup-v2__key-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 78, 91, 0.26);
  border-radius: 23px;
  background:
    radial-gradient(ellipse 160px 110px at 100% 20%, rgba(255, 53, 69, 0.14), transparent 72%),
    rgba(16, 23, 22, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 78, 91, 0.12);
}

html.home-v2 .setup-v2__key-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: #ff5a66; background: rgba(255, 59, 74, 0.11); font-size: 20px; }
html.home-v2 .setup-v2__key-card small { display: block; color: #899491; font-size: 9px; }
html.home-v2 .setup-v2__key-card strong { display: block; margin-top: 4px; overflow: hidden; color: #edf1ef; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
html.home-v2 .setup-v2__key-card > i { color: #ff5965; font-size: 19px; }

@media (max-height: 700px) {
  html.home-v2 .setup-v2__panel { padding-top: 10px; }
  html.home-v2 .setup-v2__hero { margin-top: 14px; margin-bottom: 19px; }
  html.home-v2 .setup-v2__hero-icon { width: 58px; height: 58px; margin-bottom: 15px; border-radius: 20px; font-size: 27px; }
  html.home-v2 .setup-v2__choice-stack { margin-bottom: 20px; }
  html.home-v2 .setup-v2__where-cta { margin-bottom: 14px; }
  html.home-v2 .setup-v2__app-card { min-height: 210px; }
  html.home-v2 .setup-v2__app-logo { width: 68px; height: 68px; margin-bottom: 18px; border-radius: 22px; font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html.home-v2 .setup-v2__ambient,
  html.home-v2 .setup-v2__panel.is-active,
  html.home-v2 .setup-v2__primary.is-loading i { animation: none !important; }
}

/* V2.9 — unified tab shell, compact setup and GPU-safe lighting. */
html.home-v2 .home-v2-screen::before,
html.home-v2 .home-v2-screen::after {
  border-radius: 50%;
  filter: none;
}

html.home-v2 .home-v2-screen::before {
  top: -5%;
  right: -46%;
  background: radial-gradient(ellipse at center, rgba(255, 47, 61, 0.38), rgba(126, 9, 25, 0.16) 48%, transparent 73%);
}

html.home-v2 .home-v2-screen::after {
  background: radial-gradient(ellipse at center, rgba(182, 13, 35, 0.2), transparent 72%);
}

html.home-v2 .home-v2__tabs { position: relative; min-height: calc(var(--tg-viewport-stable-height, 100dvh) - 164px); }
html.home-v2 .home-v2__tab-panel { display: none; min-width: 0; padding: 0 0 22px; opacity: 0; transform: translate3d(10px, 0, 0); }
html.home-v2 .home-v2__tab-panel.is-active { display: block; opacity: 1; transform: translate3d(0, 0, 0); animation: home-v2-tab-in 210ms cubic-bezier(.2,.74,.2,1) both; }
@keyframes home-v2-tab-in { from { opacity: 0; transform: translate3d(10px,0,0); } to { opacity: 1; transform: none; } }

html.home-v2 .home-v2__page-head {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  align-items: center;
  gap: 13px;
  padding: 22px 4px 20px;
}
html.home-v2 .home-v2__page-head h2 { margin: 0; font-size: 21px; line-height: 1.15; letter-spacing: -.03em; }
html.home-v2 .home-v2__page-head p { margin: 5px 0 0; color: var(--home-v2-muted); font-size: 11px; line-height: 1.4; }
html.home-v2 .home-v2__page-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,78,91,.26); border-radius: 17px; color: #ff5965; background: rgba(255,57,73,.09); font-size: 23px; }

html.home-v2 .home-v2__ref-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
html.home-v2 .home-v2__ref-grid article { min-height: 86px; padding: 15px; border: 1px solid var(--home-v2-line); border-radius: 23px; background: rgba(16,23,22,.84); box-shadow: inset 0 1px rgba(255,255,255,.03); }
html.home-v2 .home-v2__ref-grid article > small { display: block; color: var(--home-v2-muted); font-size: 10px; }
html.home-v2 .home-v2__ref-grid article > strong { display: block; margin-top: 8px; color: #fff; font-size: 21px; }
html.home-v2 .home-v2__ref-grid .home-v2__ref-progress { grid-column: 1/-1; display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 16px; min-height: 112px; }
html.home-v2 .home-v2__ref-progress div:last-child strong { display: block; margin-top: 3px; font-size: 23px; }
html.home-v2 .home-v2__ref-progress div:last-child span { display: block; margin-top: 4px; color: #76817e; font-size: 9px; }
html.home-v2 .home-v2__ref-ring { position: relative; display: grid; width: 68px; height: 68px; place-items: center; border-radius: 50%; color: #ff6470; background: conic-gradient(#ff4555 var(--ref-progress, 0deg), rgba(255,255,255,.07) 0); font-size: 11px; font-weight: 800; transition: background 240ms ease; }
html.home-v2 .home-v2__ref-ring::before { position: absolute; inset: 7px; border-radius: 50%; background: #111817; content: ""; }
html.home-v2 .home-v2__ref-ring > span { position: relative; z-index: 1; }
html.home-v2 .home-v2__section-title { margin: 22px 3px 10px; font-size: 16px; letter-spacing: -.02em; }
html.home-v2 .home-v2__copy-card { display: grid; grid-template-columns: minmax(0,1fr) 34px; width: 100%; min-height: 62px; align-items: center; gap: 10px; padding: 12px 13px 12px 16px; border: 1px solid var(--home-v2-line); border-radius: 21px; color: #edf1ef; background: rgba(15,22,20,.87); text-align: left; }
html.home-v2 .home-v2__copy-card span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
html.home-v2 .home-v2__copy-card i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 12px; color: #ff5965; background: rgba(255,57,73,.09); font-size: 18px; }
html.home-v2 .home-v2__info-card { display: grid; grid-template-columns: minmax(0,1fr) 68px; min-height: 112px; align-items: center; gap: 12px; padding: 18px; overflow: hidden; border: 1px solid var(--home-v2-line); border-radius: 25px; background: radial-gradient(ellipse 110px 100px at 100% 100%, rgba(255,53,66,.22), transparent 72%), rgba(15,22,20,.88); }
html.home-v2 .home-v2__info-card strong { display: block; font-size: 15px; }
html.home-v2 .home-v2__info-card small { display: block; margin-top: 7px; color: var(--home-v2-muted); font-size: 10px; line-height: 1.45; }
html.home-v2 .home-v2__info-card > i { justify-self: center; color: #ff5965; font-size: 48px; }

html.home-v2 .home-v2__faq-list { display: grid; gap: 9px; }
html.home-v2 .home-v2__faq-list button { display: grid; grid-template-columns: 30px minmax(0,1fr) 20px; min-height: 68px; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--home-v2-line); border-radius: 22px; color: #f3f6f5; background: rgba(16,23,22,.86); text-align: left; }
html.home-v2 .home-v2__faq-list button > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #ff6470; background: rgba(255,57,73,.1); font-size: 11px; font-weight: 800; }
html.home-v2 .home-v2__faq-list strong { font-size: 13px; line-height: 1.25; }
html.home-v2 .home-v2__faq-list button > i { justify-self: end; color: #9da8a4; font-size: 16px; }
html.home-v2 .home-v2__support-cta { position: relative; min-height: 154px; margin-top: 14px; padding: 21px 122px 20px 20px; overflow: hidden; border: 1px solid var(--home-v2-line); border-radius: 27px; background: radial-gradient(ellipse 170px 150px at 105% 85%, rgba(255,52,65,.3), transparent 70%), rgba(15,22,20,.89); }
html.home-v2 .home-v2__support-cta h3 { margin: 0; font-size: 18px; }
html.home-v2 .home-v2__support-cta p { margin: 8px 0 14px; color: var(--home-v2-muted); font-size: 10.5px; line-height: 1.45; }
html.home-v2 .home-v2__support-cta button { padding: 0; border: 0; color: #ff5965; background: transparent; font-size: 12px; font-weight: 750; }
html.home-v2 .home-v2__support-art { position: absolute; right: 17px; bottom: 17px; display: grid; width: 94px; height: 94px; place-items: center; border-radius: 50%; color: #eff3f1; background: linear-gradient(145deg,rgba(157,166,162,.42),rgba(16,22,21,.95) 58%,rgba(255,53,66,.36)); font-size: 58px; }

html.home-v2 [data-home-v2-tab="profile"] { padding-bottom: 4px; }
html.home-v2 .home-v2__profile-hero { padding: 18px 0 16px; text-align: center; }
html.home-v2 .home-v2__avatar { display: grid; width: 74px; height: 74px; margin: 0 auto 12px; overflow: hidden; place-items: center; border: 1px solid rgba(255,76,89,.55); border-radius: 50%; color: #fff; background: radial-gradient(circle at 68% 25%,rgba(255,83,96,.3),transparent 54%),#18201e; box-shadow: 0 16px 42px rgba(140,8,27,.18); font-size: 28px; font-weight: 800; }
html.home-v2 .home-v2__avatar > img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
html.home-v2 .home-v2__avatar > span { grid-area: 1/1; }
html.home-v2 .home-v2__avatar [hidden] { display: none !important; }
html.home-v2 .home-v2__avatar-fallback { background: #1a1113; }
html.home-v2 .home-v2__profile-hero h2 { margin: 0; overflow: hidden; font-size: 22px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
html.home-v2 .home-v2__profile-hero p { margin: 5px 0 10px; overflow: hidden; color: #76817e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
html.home-v2 .home-v2__profile-hero > span:last-child { display: inline-flex; max-width: 180px; justify-content: center; padding: 5px 10px; overflow: hidden; border: 1px solid rgba(255,77,89,.3); border-radius: 999px; color: #ff5965; background: rgba(255,53,66,.08); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
html.home-v2 .home-v2__promo-form { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; column-gap: 9px; row-gap: 0; margin: 0 0 10px; padding: 9px 10px; border: 1px solid var(--home-v2-line); border-radius: 19px; background: radial-gradient(ellipse 150px 100px at 100% 0,rgba(255,53,66,.12),transparent 72%),rgba(15,22,20,.9); }
html.home-v2 .home-v2__promo-heading { display: contents; }
html.home-v2 .home-v2__promo-heading > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #ff5965; background: rgba(255,57,73,.1); font-size: 17px; }
html.home-v2 .home-v2__promo-heading > div { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html.home-v2 .home-v2__promo-control { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
html.home-v2 .home-v2__promo-control input { min-width: 0; height: 38px; padding: 0 11px; border: 1px solid rgba(181,196,190,.14); border-radius: 12px; outline: 0; color: #f7f9f8; background: rgba(5,10,9,.64); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
html.home-v2 .home-v2__promo-control input::placeholder { color: #65706c; font-weight: 600; letter-spacing: 0; text-transform: none; }
html.home-v2 .home-v2__promo-control input:focus { border-color: rgba(255,76,89,.62); box-shadow: 0 0 0 3px rgba(255,53,66,.09); }
html.home-v2 .home-v2__promo-control button { min-width: 88px; height: 38px; padding: 0 11px; border: 0; border-radius: 12px; color: #090c0b; background: linear-gradient(135deg,#ff5b67,#ff263a); font: inherit; font-size: 10px; font-weight: 850; }
html.home-v2 .home-v2__promo-control button:disabled { cursor: wait; opacity: .65; }
html.home-v2 .home-v2__promo-form > p { grid-column: 2; min-height: 0; margin: 0; color: #87918e; font-size: 9px; line-height: 1.35; }
html.home-v2 .home-v2__promo-form > p:not(:empty) { min-height: 13px; margin-top: 1px; }
html.home-v2 .home-v2__promo-form.is-success > p { color: #81d9a7; }
html.home-v2 .home-v2__promo-form.is-error > p { color: #ff7780; }
html.home-v2 .home-v2__promo-form.is-error input { border-color: rgba(255,76,89,.7); }
html.home-v2 .home-v2__profile-list { overflow: hidden; border: 1px solid var(--home-v2-line); border-radius: 25px; background: rgba(15,22,20,.87); }
html.home-v2 .home-v2__profile-list button { display: grid; grid-template-columns: 40px minmax(0,1fr) 18px; width: 100%; min-height: 66px; align-items: center; gap: 12px; padding: 11px 15px; border: 0; border-bottom: 1px solid rgba(181,196,190,.09); color: #f4f6f5; background: transparent; text-align: left; }
html.home-v2 .home-v2__profile-list button:last-child { border-bottom: 0; }
html.home-v2 .home-v2__profile-list button > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 14px; color: #ff5965; background: rgba(255,57,73,.1); font-size: 19px; }
html.home-v2 .home-v2__profile-list b { min-width: 0; font-size: 13px; }
html.home-v2 .home-v2__profile-list small { display: block; margin-top: 4px; overflow: hidden; color: #7f8a86; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
html.home-v2 .home-v2__profile-list button > i { color: #8d9894; font-size: 16px; }

html.home-v2 .home-v2__faq-overlay { position: fixed; z-index: 11000; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(5,8,8,.72); }
html.home-v2 .home-v2__faq-overlay.hidden { display: none !important; }
html.home-v2 .home-v2__faq-overlay > button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; }
html.home-v2 .home-v2__faq-overlay article { position: relative; width: min(100%,360px); padding: 23px 54px 23px 22px; border: 1px solid var(--home-v2-line); border-radius: 27px; background: #111817; box-shadow: 0 28px 80px rgba(0,0,0,.52), 0 0 48px rgba(255,48,64,.08); animation: home-v2-modal-in 180ms ease-out both; }
@keyframes home-v2-modal-in { from { opacity:0; transform:scale(.97); } to { opacity:1; transform:none; } }
html.home-v2 .home-v2__faq-overlay article button { position: absolute; top: 14px; right: 14px; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #aab4b1; background: rgba(255,255,255,.06); font-size: 17px; }
html.home-v2 .home-v2__faq-overlay h3 { margin: 0; font-size: 18px; line-height: 1.2; }
html.home-v2 .home-v2__faq-overlay p { margin: 11px 0 0; color: #a0aba7; font-size: 12px; line-height: 1.55; }

/* Setup density and exact target behavior. */
html.home-v2 .setup-v2__ambient { inset: 0; background: radial-gradient(ellipse 62% 46% at 100% 4%,rgba(255,48,64,.28),transparent 74%),radial-gradient(ellipse 48% 38% at 0 92%,rgba(190,15,39,.16),transparent 72%); animation: none; transform: none; }
html.home-v2 .setup-v2__topbar { grid-template-columns: 38px 1fr 38px; padding: calc(10px + var(--tg-effective-safe-area-inset-top,0px)) 14px 6px; }
html.home-v2 .setup-v2__round-btn { width: 38px; height: 38px; font-size: 18px; }
html.home-v2 .setup-v2__viewport { height: calc(var(--tg-viewport-stable-height,100dvh) - 54px - var(--tg-effective-safe-area-inset-top,0px)); }
html.home-v2 .setup-v2__panel { padding: 10px 16px calc(20px + var(--tg-effective-safe-area-inset-bottom,0px)); }
html.home-v2 .setup-v2__hero { margin: clamp(20px,5vh,40px) auto 25px; }
html.home-v2 .setup-v2__hero--compact { margin: 8px auto 20px; }
html.home-v2 .setup-v2__hero-icon { width: 58px; height: 58px; margin-bottom: 16px; border-radius: 20px; font-size: 27px; }
html.home-v2 .setup-v2__hero h2 { font-size: clamp(23px,6.4vw,27px); }
html.home-v2 .setup-v2__hero p { max-width: 310px; margin-top: 8px; font-size: 11.5px; }
html.home-v2 .setup-v2__wide-card { grid-template-columns: minmax(0,1fr) 50px; min-height: 91px; padding: 15px 16px; border-radius: 24px; }
html.home-v2 .setup-v2__wide-card strong { font-size: 15px; }
html.home-v2 .setup-v2__wide-card small { font-size: 9.5px; }
html.home-v2 .setup-v2__wide-card > i { font-size: 29px; }
html.home-v2 .setup-v2__where-cta { margin-bottom: 12px; }
html.home-v2 .setup-v2__platform-grid button { min-height: 68px; padding: 13px 14px; border-radius: 20px; font-size: 12px; }
html.home-v2 .setup-v2__app-card { min-height: 196px; padding: 40px 12px 17px; border-radius: 25px; }
html.home-v2 img.setup-v2__app-logo { display: block; width: 62px; height: 62px; margin: 0 0 17px; object-fit: cover; border: 0; border-radius: 17px; background: #131817; box-shadow: 0 15px 34px rgba(0,0,0,.34); font-size: 0; }
html.home-v2 .setup-v2__app-card strong { font-size: 16px; }
html.home-v2 .setup-v2__app-hero { display: block; margin-bottom: 14px; }
html.home-v2 .setup-v2__app-hero img.setup-v2__app-logo { width: 58px; height: 58px; margin: 0; }
html.home-v2 .setup-v2__steps-card > div { min-height: 66px; }
html.home-v2 .setup-v2__steps-card--remote > div { min-height: 59px; }
html.home-v2 .setup-v2__steps-card strong { font-size: 12px; }
html.home-v2 .setup-v2__steps-card small { font-size: 8.8px; }
html.home-v2 .setup-v2__footer-actions { padding-top: 16px; }
html.home-v2 .setup-v2__primary, html.home-v2 .setup-v2__secondary { min-height: 49px; font-size: 12.5px; }
html.home-v2 .setup-v2__remote-link { display: grid; grid-template-columns: minmax(0,1fr) 34px; width: 100%; min-height: 65px; align-items: center; gap: 10px; margin-bottom: 12px; padding: 12px 13px 12px 15px; border: 1px solid rgba(255,78,91,.28); border-radius: 21px; color: #eef2f0; background: rgba(16,23,22,.9); text-align: left; }
html.home-v2 .setup-v2__remote-link small { display: block; color: #82908b; font-size: 8.5px; }
html.home-v2 .setup-v2__remote-link strong { display: block; margin-top: 3px; overflow: hidden; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
html.home-v2 .setup-v2__remote-link > i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 12px; color: #ff5965; background: rgba(255,57,73,.09); font-size: 18px; }

/* Avoid continuous full-screen rasterisation in Telegram iOS WebView. */
html.home-v2 .checkout-page::before,
html.home-v2 .checkout-page::after,
html.home-v2 #paymethod-sheet::before,
html.home-v2 #paymethod-sheet::after,
html.home-v2 .checkout-period-card.selected,
html.home-v2 .checkout-cta-btn { animation: none !important; will-change: auto; }
html.home-v2 .checkout-section--tariffs,
html.home-v2 .checkout-period-card,
html.home-v2 .checkout-sticky-footer,
html.home-v2 #paymethod-sheet,
html.home-v2 .paymethod-option { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.home-v2 .checkout-section--tariffs::after,
html.home-v2 .checkout-sticky-footer::before,
html.home-v2 .paymethod-option::after { filter: none; border-radius: 50%; }
html.home-v2 .checkout-tariff-btn.lte-pack-card--tariff { min-height: 70px; align-content: center; padding: 10px 12px; }
html.home-v2 .checkout-tariff-head { min-height: 18px; }
html.home-v2 .lte-pack-grid--tariffs .lte-pack-gb-wrap { align-self: end; }

@media (max-height: 720px) {
  html.home-v2 .home-v2__page-head { padding-top: 13px; padding-bottom: 14px; }
  html.home-v2 .home-v2__support-cta { min-height: 136px; }
  html.home-v2 .setup-v2__hero { margin-top: 12px; margin-bottom: 16px; }
  html.home-v2 .setup-v2__app-card { min-height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html.home-v2 .home-v2__tab-panel.is-active,
  html.home-v2 .home-v2__faq-overlay article { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html.home-v2 .checkout-page::before,
  html.home-v2 .checkout-page::after,
  html.home-v2 .checkout-period-card.selected,
  html.home-v2 .checkout-cta-btn,
  html.home-v2 #paymethod-sheet::before,
  html.home-v2 #paymethod-submit-btn {
    animation: none !important;
  }
}

/* V2.10 pre-production hardening: deterministic layers, measured spacing. */
html.home-v2 {
  --home-v2-space-1: 4px;
  --home-v2-space-2: 8px;
  --home-v2-space-3: 12px;
  --home-v2-space-4: 16px;
  --home-v2-space-5: 20px;
}

html.home-v2 .sheet {
  transition-duration: 220ms;
  will-change: auto;
}

html.home-v2 .backdrop {
  transition-duration: 180ms;
}

/* FAQ dialog: the title and close control own separate grid columns. */
html.home-v2 .home-v2__faq-overlay {
  place-items: center;
  padding: max(20px, var(--tg-effective-safe-area-inset-top, 0px)) 20px max(20px, var(--tg-effective-safe-area-inset-bottom, 0px));
  overscroll-behavior: contain;
}

html.home-v2 .home-v2__faq-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  touch-action: none;
  transform: none !important;
}

html.home-v2 .home-v2__faq-overlay article {
  position: relative;
  z-index: 1;
  width: min(100%, 356px);
  padding: 20px;
  border-radius: 26px;
  outline: none;
  animation: home-v2-modal-fade 150ms ease-out both;
  transform: none !important;
}

@keyframes home-v2-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.home-v2 .home-v2__faq-overlay article > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: start;
  gap: 14px;
}

html.home-v2 .home-v2__faq-overlay article h3 {
  min-width: 0;
  padding-top: 4px;
  font-size: 18px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

html.home-v2 .home-v2__faq-overlay article .home-v2__faq-close {
  position: static;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #aab4b1;
  background: rgba(255, 255, 255, 0.065);
  font-size: 17px;
  touch-action: manipulation;
  transform: none !important;
}

html.home-v2 .home-v2__faq-overlay article p {
  margin: 13px 0 0;
  padding-right: 2px;
  font-size: 12.5px;
  line-height: 1.58;
}

/* Checkout tariff selector: keep controls away from the container stroke. */
html.home-v2 .checkout-section--tariffs {
  padding: 16px;
}

html.home-v2 .checkout-section--tariffs .checkout-section-title,
html.home-v2 .checkout-section--tariffs .checkout-section-sub {
  padding-inline: 2px;
}

html.home-v2 .checkout-section--tariffs .checkout-section-sub {
  margin-bottom: 12px;
}

html.home-v2 .checkout-section--tariffs .lte-pack-grid--tariffs {
  gap: 8px;
  padding: 4px;
}

html.home-v2 .checkout-section--tariffs .checkout-tariff-btn.lte-pack-card--tariff {
  min-width: 0;
  min-height: 70px;
  padding: 11px 12px;
}

/* Native Telegram back is the only back control inside Telegram. */
html.home-v2 body.tg-native-back #checkout-back-btn,
html.home-v2 body.tg-native-back .screen-back-fallback {
  display: none !important;
}

/* V2.22: keep the established SwitzVPN pink-red palette and make checkout
   gestures scroll-first. This guard stays last on purpose. */
html.home-v2 .checkout-payg-offer {
  position: relative;
  isolation: isolate;
  order: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  margin: 4px 0 18px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 87, 95, 0.3);
  border-radius: 28px;
  color: #f8f6f7;
  background:
    linear-gradient(148deg, rgba(49, 20, 25, 0.98), rgba(13, 18, 21, 0.99) 64%),
    #0d1215;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.32),
    0 12px 38px rgba(126, 9, 30, 0.17),
    inset 0 1px rgba(255, 255, 255, 0.045);
}

html.home-v2 .checkout-payg-offer:active {
  transform: none;
}

html.home-v2 .checkout-payg-topline {
  justify-content: flex-start;
}

html.home-v2 .checkout-payg-new {
  border-color: rgba(255, 87, 95, 0.24);
  color: #ff8891;
  background: rgba(255, 52, 63, 0.14);
}

html.home-v2 .checkout-payg-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

html.home-v2 .checkout-payg-copy {
  display: grid;
  gap: 8px;
  padding: 0;
}

html.home-v2 .checkout-payg-copy h2 {
  color: #f8f6f7;
}

html.home-v2 .checkout-payg-copy p {
  color: rgba(218, 224, 222, 0.58);
}

html.home-v2 .checkout-payg-proof {
  display: grid;
}

html.home-v2 .checkout-payg-action {
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--home-v2-red-bright), var(--home-v2-red) 58%, var(--home-v2-red-deep));
  box-shadow: 0 12px 30px rgba(126, 9, 30, 0.29), inset 0 1px rgba(255, 255, 255, 0.15);
}

html.home-v2 .checkout-cta-btn,
html.home-v2 .home-v2__button,
html.home-v2 .checkout-trial-premium-btn,
html.home-v2 .payg-confirm-submit,
html.home-v2 .payg-topup-btn,
html.home-v2 .balance-v2-pay-btn,
html.home-v2 #subscription-management-sheet .sub-mgmt-device-actions .primary-btn {
  border-radius: 999px;
}

html.home-v2 .checkout-scroll {
  touch-action: pan-y;
}

html.home-v2 .checkout-periods,
html.home-v2 .checkout-page button,
html.home-v2 .checkout-page [role="button"],
html.home-v2 .checkout-page .checkout-tariff-btn,
html.home-v2 .checkout-page .checkout-period-card {
  touch-action: pan-x pan-y;
}

html.home-v2 .checkout-page button:active,
html.home-v2 .checkout-page [role="button"]:active,
html.home-v2 .checkout-page .checkout-tariff-btn:active,
html.home-v2 .checkout-page .checkout-period-card:active {
  transform: none !important;
}

@media (max-width: 365px) {
  html.home-v2 .checkout-payg-offer {
    gap: 13px;
    padding: 17px;
    border-radius: 25px;
  }

  html.home-v2 .checkout-payg-main {
    grid-template-columns: 1fr;
    gap: 11px;
  }
}

/* V2.14 PAYG: native Telegram owns the top chrome; content never sits behind a plaque. */
html.home-v2 body.tg-native-back .payg-page-header {
  display: none !important;
}

/* V2.14 PAYG: real Telegram viewport, inertial iOS scroll and Home V2 CTA. */
html.home-v2 .payg-page {
  height: var(--tg-viewport-height, 100dvh);
  max-height: var(--tg-viewport-height, 100dvh);
  padding: calc(var(--tg-effective-safe-area-inset-top, 0px) + 8px) 0 0 !important;
}

html.home-v2 .payg-scroll {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 14px 16px 28px;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

html.home-v2 .payg-action-bar {
  padding-inline: 16px;
  border-color: rgba(184, 198, 193, 0.11);
  background: rgba(9, 14, 13, 0.96);
}

html.home-v2 .payg-main-btn {
  min-height: 54px;
  border: 0;
  border-radius: 27px;
  color: #140609;
  background: linear-gradient(135deg, var(--home-v2-red-bright), var(--home-v2-red) 54%, #ef1936);
  box-shadow: 0 16px 44px rgba(255, 42, 58, 0.18), inset 0 1px rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 780;
}

html.home-v2 .payg-main-btn:hover {
  background: linear-gradient(135deg, #ff6672, var(--home-v2-red-bright) 54%, #f32240);
  box-shadow: 0 16px 44px rgba(255, 42, 58, 0.2), inset 0 1px rgba(255, 255, 255, 0.16);
}

/* V2.15 unified payment status: visible before redirect and after returning. */
html.home-v2 #payment-waiting-backdrop {
  background: rgba(2, 5, 4, 0.78);
}

html.home-v2 #payment-waiting-sheet {
  padding: 10px 18px calc(18px + var(--tg-effective-safe-area-inset-bottom, 0px));
  border: 1px solid rgba(184, 198, 193, 0.1);
  border-bottom: 0;
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(255, 55, 70, 0.09), transparent 72%),
    #0a0f0e;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.62), inset 0 1px rgba(255, 255, 255, 0.025);
}

html.home-v2 .payment-waiting-content {
  min-height: 390px;
  padding: 16px 8px 8px;
}

html.home-v2 .payment-waiting-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 19px;
  color: #ff6571;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

html.home-v2 .payment-waiting-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 21px;
}

html.home-v2 .spinner-ring {
  border-width: 2px;
  border-top-color: var(--home-v2-red-bright);
}

html.home-v2 .spinner-ring:nth-child(2),
html.home-v2 .spinner-ring:nth-child(3) {
  border-top-color: rgba(255, 92, 105, 0.72);
}

html.home-v2 .checkmark,
html.home-v2 .checkmark-circle {
  stroke: #ff6571;
}

html.home-v2 .payment-waiting-title {
  margin-bottom: 8px;
  color: #f5f8f7;
  font-size: 23px;
  font-weight: 790;
  letter-spacing: -0.035em;
}

html.home-v2 .payment-waiting-message {
  max-width: 320px;
  margin-bottom: 7px;
  color: rgba(232, 238, 236, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

html.home-v2 .payment-waiting-hint {
  max-width: 310px;
  color: rgba(210, 221, 217, 0.38);
  font-size: 10px;
  line-height: 1.45;
}

html.home-v2 .payment-waiting-steps {
  display: flex;
  gap: 6px;
  margin-top: 22px;
}

html.home-v2 .payment-waiting-steps span {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(184, 198, 193, 0.12);
  transition: width 180ms ease, background 180ms ease;
}

html.home-v2 .payment-waiting-steps span.is-active {
  width: 34px;
  background: #ff5361;
}

html.home-v2 #payment-waiting-sheet.is-success .payment-waiting-steps span {
  width: 18px;
  background: rgba(99, 202, 119, 0.22);
}

html.home-v2 #payment-waiting-sheet.is-success .payment-waiting-steps span:last-child {
  width: 34px;
  background: #63ca77;
}

html.home-v2 .payment-waiting-hide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  height: 40px;
  min-height: 40px;
  margin-top: 15px;
  padding: 0 15px;
  border: 1px solid rgba(184, 198, 193, 0.11);
  border-radius: 20px;
  color: rgba(222, 231, 228, 0.52);
  background: rgba(184, 198, 193, 0.035);
  font-size: 10px;
  font-weight: 720;
}

html.home-v2 .payment-waiting-hide-btn i {
  font-size: 14px;
}

/* V2.12 checkout acquisition cards. Keep last to win over legacy checkout CSS. */
html.home-v2 .checkout-trial-top {
  margin-bottom: 12px;
}

html.home-v2 .checkout-trial-premium {
  border-color: rgba(184, 198, 193, 0.14);
  border-radius: 22px;
  background: rgba(14, 20, 18, 0.92);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.025);
}

html.home-v2 .checkout-trial-premium-btn {
  color: #ff6874;
  background: rgba(255, 58, 72, 0.1);
}

html.home-v2 .checkout-divider {
  margin: 9px 0 12px;
}

html.home-v2 .checkout-divider-text {
  color: rgba(184, 198, 193, 0.34);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.07em;
}

html.home-v2 .checkout-divider-line {
  background: rgba(184, 198, 193, 0.1);
}

html.home-v2 .checkout-payg-offer {
  order: 3;
  border-color: rgba(255, 74, 86, 0.35);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(49, 18, 23, 0.98), rgba(13, 21, 19, 0.98) 74%);
  box-shadow: 0 18px 46px rgba(77, 3, 14, 0.2), inset 0 1px rgba(255, 255, 255, 0.035);
}

html.home-v2 #checkout-payg-divider {
  order: 3;
}

html.home-v2 .checkout-payg-offer:active {
  transform: scale(0.992);
}

@media (max-width: 360px) {
  .checkout-trial-premium-copy small {
    max-width: 175px;
  }

  .checkout-payg-copy strong {
    font-size: 15px;
  }

  .checkout-payg-price b {
    font-size: 16px;
  }
}

/* V2.14 final geometry guard.
   These declarations deliberately stay last so older density experiments
   cannot move the FAQ target or clip the two fixed subscription plans. */
html.home-v2 .home-v2__faq-overlay,
html.home-v2 .home-v2__faq-overlay[aria-hidden="false"] {
  display: grid;
  place-items: center;
  padding: max(16px, var(--tg-effective-safe-area-inset-top, 0px)) 16px max(16px, var(--tg-effective-safe-area-inset-bottom, 0px));
  contain: none;
  opacity: 1;
  transition: none !important;
}

html.home-v2 .home-v2__faq-overlay[aria-hidden="true"],
html.home-v2 .home-v2__faq-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
}

html.home-v2 .home-v2__faq-overlay article {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: min(100%, 356px) !important;
  max-width: 356px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 20px !important;
  border-radius: 26px !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

html.home-v2 .home-v2__faq-overlay article > header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 36px !important;
  align-items: start !important;
  gap: 14px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.home-v2 .home-v2__faq-overlay article h3 {
  grid-column: 1 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 3px 0 0 !important;
  overflow-wrap: anywhere;
  font-size: clamp(17px, 4.7vw, 19px) !important;
  line-height: 1.24 !important;
}

html.home-v2 .home-v2__faq-overlay article .home-v2__faq-close {
  position: static !important;
  inset: auto !important;
  z-index: 2 !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  align-self: start !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

html.home-v2 .home-v2__faq-overlay article p {
  margin: 14px 0 0 !important;
  padding: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.58 !important;
}

html.home-v2 .checkout-scroll {
  scroll-padding-bottom: calc(190px + var(--tg-effective-safe-area-inset-bottom, 0px));
  padding-bottom: calc(190px + var(--tg-effective-safe-area-inset-bottom, 0px));
}

html.home-v2 .checkout-scroll > * {
  flex: 0 0 auto;
}

html.home-v2 .checkout-section--tariffs {
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 14px !important;
}

html.home-v2 .checkout-section--tariffs .lte-pack-grid--tariffs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  padding: 4px !important;
  overflow: visible !important;
}

html.home-v2 .checkout-section--tariffs .checkout-tariff-btn.lte-pack-card--tariff {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 76px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 11px 12px !important;
}

@media (max-width: 360px), (max-height: 700px) {
  html.home-v2 .checkout-section--tariffs {
    padding: 12px !important;
  }

  html.home-v2 .checkout-section--tariffs .lte-pack-grid--tariffs {
    gap: 6px !important;
    padding: 3px !important;
  }

  html.home-v2 .checkout-section--tariffs .checkout-tariff-btn.lte-pack-card--tariff {
    min-height: 70px !important;
    padding: 9px 10px !important;
  }

  html.home-v2 .checkout-tariff-badge {
    font-size: 10.5px !important;
  }

  html.home-v2 .lte-pack-grid--tariffs .lte-pack-gb {
    font-size: 16px !important;
  }
}

/* V2.11 release-candidate: deterministic FAQ hit target and balanced cards. */
html.home-v2 .home-v2__faq-overlay[aria-hidden="true"],
html.home-v2 .home-v2__faq-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
}

html.home-v2 .home-v2__faq-overlay[aria-hidden="false"] {
  display: grid;
  pointer-events: auto;
  contain: layout style paint;
}

html.home-v2 .home-v2__faq-overlay.is-closing {
  opacity: 0;
  pointer-events: auto !important;
  transition: opacity 140ms ease-out;
}

html.home-v2 .home-v2__faq-backdrop,
html.home-v2 .home-v2__faq-close {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

html.home-v2 .home-v2__faq-close {
  flex: 0 0 34px;
  min-width: 34px;
  min-height: 34px;
}

html.home-v2 .home-v2__withdraw-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  width: 100%;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 13px 11px 16px;
  border: 1px solid rgba(255, 78, 91, .32);
  border-radius: 21px;
  color: #f4f7f6;
  background: linear-gradient(112deg, rgba(255, 57, 73, .16), rgba(15, 22, 20, .9) 62%);
  text-align: left;
}

html.home-v2 .home-v2__withdraw-btn > span,
html.home-v2 .home-v2__support-copy {
  min-width: 0;
}

html.home-v2 .home-v2__withdraw-btn strong,
html.home-v2 .home-v2__withdraw-btn small {
  display: block;
}

html.home-v2 .home-v2__withdraw-btn strong {
  font-size: 13px;
  line-height: 1.25;
}

html.home-v2 .home-v2__withdraw-btn small {
  margin-top: 4px;
  color: #8f9a96;
  font-size: 9.5px;
  line-height: 1.35;
}

html.home-v2 .home-v2__withdraw-btn > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #ff6672;
  background: rgba(255, 57, 73, .1);
  font-size: 17px;
}

html.home-v2 .home-v2__withdraw-btn:disabled {
  border-color: var(--home-v2-line);
  color: #8d9793;
  background: rgba(15, 22, 20, .82);
  opacity: .72;
}

html.home-v2 .home-v2__withdraw-btn:disabled > i {
  color: #7d8884;
  background: rgba(255, 255, 255, .04);
}

html.home-v2 .home-v2__support-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  min-height: 154px;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

html.home-v2 .home-v2__support-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

html.home-v2 .home-v2__support-cta h3,
html.home-v2 .home-v2__support-cta p {
  width: 100%;
  text-align: left;
}

html.home-v2 .home-v2__support-cta p {
  margin: 8px 0 13px;
  overflow-wrap: anywhere;
}

html.home-v2 .home-v2__support-cta button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

html.home-v2 .home-v2__support-cta button i {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

html.home-v2 .home-v2__support-cta button span { display: block; line-height: 1; }

html.home-v2 .home-v2__support-art {
  position: static;
  justify-self: end;
  width: 88px;
  height: 88px;
  font-size: 53px;
}

html.home-v2 .ref-v2 {
  background: #090d0c;
}

html.home-v2 .ref-v2-wrap {
  width: min(100%, 520px);
  margin-inline: auto;
  padding-bottom: 24px;
}

html.home-v2 .ref-v2 .ref-withdraw-form,
html.home-v2 .ref-v2 .ref-withdraw-locked {
  border-color: rgba(255, 76, 89, .18);
  background: rgba(16, 23, 22, .92);
}

@media (max-width: 340px) {
  html.home-v2 .home-v2__support-cta {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 10px;
    padding: 17px;
  }

  html.home-v2 .home-v2__support-art {
    width: 74px;
    height: 74px;
    font-size: 44px;
  }

  html.home-v2 .home-v2__support-cta h3 { font-size: 16px; }
  html.home-v2 .home-v2__support-cta p { font-size: 9.7px; }
}

/* Payment header: no absolute positioning, so the close button cannot drift. */
html.home-v2 #paymethod-sheet {
  contain: layout style;
}

html.home-v2 #paymethod-sheet .paymethod-v2-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  min-height: 38px;
  padding: 0;
}

html.home-v2 #paymethod-sheet .paymethod-close-v2 {
  position: static !important;
  width: 38px;
  height: 38px;
  transform: none !important;
}

html.home-v2 #paymethod-sheet .paymethod-close-v2:active,
html.home-v2 #paymethod-backdrop:active {
  transform: none !important;
}

/* App Store region is explicit for Happ on Apple devices. */
html.home-v2 .setup-v2__region {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 12px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(198, 213, 208, 0.11);
  border-radius: 19px;
  background: rgba(16, 23, 22, 0.84);
}

html.home-v2 .setup-v2__region[hidden] { display: none !important; }
html.home-v2 .setup-v2__region > span { font-size: 11.5px; font-weight: 700; }
html.home-v2 .setup-v2__region > small { grid-column: 1 / -1; color: #82908b; font-size: 9px; }
html.home-v2 .setup-v2__region > div { display: flex; gap: 4px; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.045); }
html.home-v2 .setup-v2__region button { min-width: 62px; min-height: 31px; padding: 0 10px; border: 0; border-radius: 11px; color: #8f9a96; background: transparent; font: inherit; font-size: 10px; font-weight: 700; }
html.home-v2 .setup-v2__region button.is-selected { color: #fff; background: rgba(255, 62, 76, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 75, 86, 0.28); }

/* Balance screen shares the same calm red/graphite visual system. */
html.home-v2 .balance-v2 {
  padding: calc(var(--tg-effective-safe-area-inset-top, 0px) + 12px) 16px calc(var(--tg-effective-safe-area-inset-bottom, 0px) + 30px);
  background:
    radial-gradient(ellipse 72% 48% at 106% 2%, rgba(255, 49, 64, 0.23), transparent 72%),
    radial-gradient(ellipse 58% 42% at -12% 90%, rgba(151, 12, 31, 0.13), transparent 74%),
    #090d0c;
}

html.home-v2 .balance-v2-wrap {
  width: min(100%, 430px);
  margin: 0 auto;
  gap: 11px;
}

html.home-v2 .balance-v2-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  min-height: 42px;
  gap: 10px;
  padding: 0 0 4px;
}

html.home-v2 .balance-v2-title {
  grid-column: 2;
  align-self: center;
  font-size: 17px;
  text-align: center;
}

html.home-v2 .balance-v2-back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #151c1a;
}

html.home-v2 .balance-v2-hero {
  margin: 0 0 3px;
  padding: 18px;
  border-color: rgba(198, 213, 208, 0.11);
  border-radius: 25px;
  background:
    radial-gradient(ellipse 90% 85% at 85% 0%, rgba(255, 55, 69, 0.17), transparent 68%),
    rgba(15, 22, 20, 0.92);
  box-shadow: 0 16px 42px rgba(0,0,0,.2);
}

html.home-v2 .balance-v2-hero-label { font-size: 9px; letter-spacing: .12em; }
html.home-v2 .balance-v2-hero-amount { margin: 5px 0 13px; }
html.home-v2 .balance-v2-hero-amount .num { font-size: 38px; }
html.home-v2 .balance-v2-hero-currency { font-size: 17px; }
html.home-v2 .balance-v2-hero-grid { gap: 8px; }
html.home-v2 .balance-v2-box { min-width: 0; padding: 11px 12px; border-radius: 15px; background: rgba(255,255,255,.035); }
html.home-v2 .balance-v2-box-label { font-size: 8px; }
html.home-v2 .balance-v2-box-value { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
html.home-v2 .balance-v2-box-note { font-size: 8.5px; }
html.home-v2 .balance-v2-section-title { padding: 8px 2px 3px; font-size: 14px; }
html.home-v2 .balance-v2-section-sub { font-size: 10px; }
html.home-v2 .balance-v2-chips { gap: 6px; margin-bottom: 8px; }
html.home-v2 .balance-v2-chip { min-width: 0; padding: 10px 4px; border-radius: 13px; font-size: 11.5px; background: rgba(18,25,23,.88); }
html.home-v2 .balance-v2-input-wrap { margin-bottom: 4px; }
html.home-v2 .balance-v2-input { height: 48px; border-radius: 15px; background: rgba(18,25,23,.9); }
html.home-v2 .balance-v2-terms { display: none; }
html.home-v2 .balance-v2-legal { display: block; margin: 4px 12px 2px; color: #8d9995; font-size: 9.5px; line-height: 1.48; text-align: center; }
html.home-v2 .balance-v2-legal .balance-v2-terms-link { color: #ff5661; font-size: inherit; line-height: inherit; text-underline-offset: 3px; }
html.home-v2 .balance-v2-pay-btn { height: 50px; border-radius: 25px; background: linear-gradient(135deg,#ff4b59,#ff2039); color: #090a0a; font-size: 14px; box-shadow: 0 12px 30px rgba(196,16,39,.2); }
html.home-v2 .balance-v2-section-title--more { margin-top: 7px; }
html.home-v2 .balance-v2-tx-list { border-color: rgba(198,213,208,.11); border-radius: 20px; background: rgba(15,22,20,.86); }
html.home-v2 .balance-v2-tx-row { padding: 11px 13px; }

@media (max-height: 700px) {
  html.home-v2 .balance-v2-hero { padding: 14px 16px; }
  html.home-v2 .balance-v2-hero-amount .num { font-size: 34px; }
  html.home-v2 .balance-v2-section-title--more,
  html.home-v2 .balance-v2-tx-list { display: none; }
}

/* V2.6 — iOS WebView stability and compact density.
   Filtered layers clipped by overflow/contain can be rasterised as square GPU
   tiles. Transparent radial backgrounds keep the same light without edges. */
html.home-v2 .checkout-page::before {
  top: -24%;
  right: -66%;
  width: 142%;
  height: 112%;
  background: radial-gradient(ellipse at 48% 45%, rgba(255, 68, 80, 0.42) 0, rgba(189, 18, 40, 0.2) 30%, rgba(76, 7, 20, 0.07) 52%, transparent 74%);
  filter: none;
}

html.home-v2 .checkout-page::after {
  bottom: -34%;
  left: -68%;
  width: 140%;
  height: 92%;
  background: radial-gradient(ellipse at 52% 46%, rgba(255, 44, 61, 0.23), rgba(151, 11, 31, 0.09) 44%, transparent 73%);
  filter: none;
}

html.home-v2 #checkout-back-btn {
  width: 40px !important;
  height: 40px !important;
}

html.home-v2 #checkout-back-btn i {
  font-size: 21px;
}

html.home-v2 .checkout-scroll {
  padding-inline: 14px;
  padding-bottom: calc(136px + var(--tg-effective-safe-area-inset-bottom, 0px));
}

html.home-v2 .checkout-hero {
  min-height: 96px;
  margin-bottom: 9px;
  padding: 29px 5px 0;
}

html.home-v2 .checkout-hero::after {
  right: 0;
  width: 54%;
  background: radial-gradient(ellipse, rgba(255, 58, 72, 0.16), transparent 72%);
  filter: none;
}

html.home-v2 .checkout-hero-title,
html.home-v2 .checkout-hero-badge {
  font-size: clamp(19px, 5.1vw, 21px);
}

html.home-v2 .checkout-v2-hero-sub {
  margin-top: 6px;
  font-size: 11.5px;
}

html.home-v2 .checkout-section {
  margin-bottom: 16px;
}

html.home-v2 .checkout-section--tariffs {
  margin-bottom: 16px;
  padding: 13px;
  border-radius: 24px;
}

html.home-v2 .checkout-section--tariffs::after {
  right: -82px;
  bottom: -92px;
  background: radial-gradient(circle, rgba(255, 49, 65, 0.12), transparent 70%);
  filter: none;
}

html.home-v2 .checkout-section-title {
  font-size: 16px;
}

html.home-v2 .checkout-section-sub {
  margin-bottom: 10px;
  font-size: 11px;
}

html.home-v2 .lte-pack-grid--tariffs {
  gap: 6px;
  padding: 3px;
  border-radius: 19px;
}

html.home-v2 .checkout-tariff-btn.lte-pack-card--tariff {
  min-height: 66px;
  padding: 9px 10px;
  border-radius: 16px;
}

html.home-v2 .checkout-tariff-badge {
  font-size: 11px;
}

html.home-v2 .checkout-tariff-btn .lte-pack-icon--tariff {
  font-size: 18px;
}

html.home-v2 .lte-pack-grid--tariffs .lte-pack-gb {
  font-size: 16px;
}

html.home-v2 .checkout-periods {
  gap: 8px;
}

html.home-v2 .checkout-period-card {
  flex-basis: clamp(142px, 40vw, 156px);
  width: clamp(142px, 40vw, 156px);
  max-width: 156px;
  min-width: 142px;
  min-height: 140px;
  padding: 12px;
  border-radius: 23px;
}

html.home-v2 .checkout-period-title {
  font-size: 13px;
}

html.home-v2 .checkout-period-total {
  font-size: 22px;
}

html.home-v2 .checkout-period-badge {
  top: 10px;
  right: 9px;
  font-size: 8px;
}

html.home-v2 .checkout-sticky-footer {
  margin-inline: 10px;
  margin-bottom: calc(7px + var(--tg-effective-safe-area-inset-bottom, 0px));
  padding: 10px;
  border-radius: 25px;
}

html.home-v2 .checkout-sticky-footer::before {
  right: -1%;
  bottom: -48px;
  background: radial-gradient(ellipse, rgba(255, 45, 61, 0.17), transparent 70%);
  filter: none;
}

html.home-v2 .checkout-v2-summary {
  gap: 7px;
  margin: 0 4px 9px;
}

html.home-v2 .checkout-v2-summary-row {
  grid-template-columns: 19px minmax(0, 1fr) auto;
  gap: 7px;
  font-size: 11px;
}

html.home-v2 .checkout-v2-summary-row i {
  font-size: 16px;
}

html.home-v2 .checkout-v2-summary-row small {
  padding: 3px 7px;
  font-size: 9px;
}

html.home-v2 .checkout-cta-btn {
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 25px;
  animation: none;
}

html.home-v2 .checkout-cta-label,
html.home-v2 .checkout-cta-amount {
  font-size: 14px;
}

html.home-v2 .checkout-cta-price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

html.home-v2 .checkout-cta-old-price {
  color: rgba(9, 10, 10, 0.52);
  font-size: 11px;
  font-weight: 650;
  text-decoration-thickness: 1.5px;
}

html.home-v2 .checkout-cta-discount {
  padding: 5px 7px;
  border-radius: 9px;
  color: #090a0a;
  background: rgba(9, 10, 10, 0.12);
  font-size: 10px;
  font-weight: 800;
}

html.home-v2 #paymethod-sheet {
  min-height: min(570px, calc(var(--tg-viewport-stable-height, 100dvh) - var(--tg-effective-safe-area-inset-top, 0px) - 22px));
  padding: 20px 16px calc(18px + var(--tg-effective-safe-area-inset-bottom, 0px));
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(ellipse 330px 280px at 116% 3%, rgba(255, 54, 68, 0.22), rgba(132, 11, 29, 0.09) 48%, transparent 72%),
    radial-gradient(ellipse 300px 250px at -20% 104%, rgba(202, 18, 41, 0.16), transparent 72%),
    rgba(13, 20, 18, 0.92);
  contain: none;
}

html.home-v2 #paymethod-sheet::before,
html.home-v2 #paymethod-sheet::after {
  display: none;
  content: none;
}

html.home-v2 .paymethod-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin: 0 0 18px;
}

html.home-v2 #paymethod-sheet-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

html.home-v2 .paymethod-close-v2 {
  position: static;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 19px;
}

html.home-v2 .paymethod-amount-label {
  min-height: 23px;
  margin: 0 2px 13px;
  font-size: 11.5px;
}

html.home-v2 .paymethod-amount-label strong {
  font-size: 17px;
}

html.home-v2 .paymethod-options {
  gap: 9px;
  margin-bottom: 13px;
}

html.home-v2 .paymethod-option {
  min-height: 72px;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 21px;
  background: rgba(20, 25, 24, 0.75);
}

html.home-v2 .paymethod-option::after {
  display: none;
  content: none;
}

html.home-v2 .paymethod-option--active {
  background:
    radial-gradient(ellipse 190px 120px at 112% 50%, rgba(255, 56, 70, 0.16), transparent 72%),
    rgba(29, 22, 23, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 62, 75, 0.18) inset, 0 12px 34px rgba(160, 12, 34, 0.1);
}

html.home-v2 .paymethod-option__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 19px;
}

html.home-v2 .paymethod-option__name {
  font-size: 15px;
}

html.home-v2 .paymethod-option__hint {
  margin-top: 2px;
  font-size: 10.5px;
}

html.home-v2 #paymethod-sheet .paymethod-agree {
  display: none !important;
}

html.home-v2 #paymethod-submit-btn {
  min-height: 52px;
  padding: 10px 15px;
  border-radius: 26px;
  font-size: 14px;
  animation: none;
}

html.home-v2 .paymethod-v2-legal {
  display: block !important;
  margin: 13px 16px 0;
  color: #9ca8a4;
  font-size: 10.5px;
  line-height: 1.48;
  text-align: center;
}

html.home-v2 .paymethod-v2-legal .inline-link-btn {
  color: var(--home-v2-red-bright);
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 87, 95, 0.44);
  text-underline-offset: 3px;
}

@media (max-height: 700px) {
  html.home-v2 #paymethod-sheet {
    min-height: min(540px, calc(var(--tg-viewport-stable-height, 100dvh) - var(--tg-effective-safe-area-inset-top, 0px) - 12px));
    padding-top: 17px;
  }
  html.home-v2 .paymethod-v2-header { margin-bottom: 13px; }
  html.home-v2 .paymethod-option { min-height: 66px; }
}

/* V2.7 — stable iOS light, compact management flows. */
html.home-v2 .checkout-period-card {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.home-v2 .checkout-period-card.selected {
  overflow: hidden;
  isolation: isolate;
  animation: none !important;
  border-color: #ff3f4f;
  background:
    radial-gradient(ellipse 118% 86% at 18% 8%, rgba(255, 68, 81, 0.18), transparent 58%),
    #111615;
  box-shadow: 0 0 0 1px rgba(255, 74, 85, 0.78) inset !important;
}

html.home-v2 #paymethod-sheet {
  transform: translateY(105%);
}

html.home-v2 #paymethod-sheet.open {
  transform: translateY(0) !important;
}

html.home-v2 .paymethod-v2-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  padding-right: 48px;
}

html.home-v2 #paymethod-sheet .paymethod-close-v2 {
  position: absolute !important;
  z-index: 3;
  top: 18px;
  right: 16px;
  width: 38px;
  height: 38px;
  touch-action: manipulation;
  transform: none !important;
}

html.home-v2 #subscription-management-backdrop {
  background: rgba(0, 0, 0, 0.72);
}

html.home-v2 #subscription-management-sheet {
  height: calc(var(--tg-viewport-stable-height, 100dvh) - var(--tg-effective-safe-area-inset-top, 0px) - 8px);
  max-height: calc(var(--tg-viewport-stable-height, 100dvh) - var(--tg-effective-safe-area-inset-top, 0px) - 8px);
  padding: 18px 16px calc(22px + var(--tg-effective-safe-area-inset-bottom, 0px));
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(ellipse 360px 420px at 112% 13%, rgba(255, 53, 67, 0.22), rgba(126, 10, 28, 0.08) 54%, transparent 76%),
    radial-gradient(ellipse 320px 360px at -18% 88%, rgba(201, 19, 42, 0.14), transparent 72%),
    #0c1211;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.58), inset 0 1px rgba(255, 255, 255, 0.045);
  contain: layout paint;
}

html.home-v2 #subscription-management-sheet .sheet-handle {
  display: none;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-v2-close {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 16px;
  display: grid !important;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(196, 211, 206, 0.12);
  border-radius: 50%;
  color: #f5f7f6;
  background: rgba(20, 31, 29, 0.9);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
  font-size: 20px;
  touch-action: manipulation;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-hero {
  min-height: 64px;
  margin: 0 48px 11px;
  padding: 1px 0 0;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-kicker {
  margin-bottom: 2px;
  color: #ff5661;
  font-size: 9px;
  letter-spacing: 0.15em;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-title {
  margin-bottom: 2px;
  font-size: 21px;
  line-height: 1.15;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-lead {
  font-size: 10.5px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-tabs {
  height: 42px;
  margin-bottom: 12px;
  padding: 3px;
  border-color: rgba(197, 211, 206, 0.11);
  border-radius: 16px;
  background: rgba(8, 14, 13, 0.66);
}

html.home-v2 #subscription-management-sheet .sub-mgmt-tabs::before {
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 2);
  border-radius: 13px;
  background: rgba(37, 47, 45, 0.82);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

html.home-v2 #subscription-management-sheet .sub-mgmt-tab {
  min-height: 34px;
  height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-usage-card {
  margin-bottom: 12px;
  padding: 13px 14px;
  border-color: rgba(198, 213, 208, 0.12);
  border-radius: 22px;
  background: rgba(15, 22, 21, 0.86);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

html.home-v2 #subscription-management-sheet .sub-mgmt-usage-head {
  margin-bottom: 6px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-usage-head .eyebrow {
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-usage-pct {
  padding: 3px 8px;
  color: #ff5a64;
  border: 1px solid rgba(255, 67, 80, 0.28);
  background: rgba(255, 50, 65, 0.08);
  font-size: 9px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-usage-amount {
  margin-bottom: 7px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-usage-amount .num {
  font-size: 28px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-usage-suffix {
  font-size: 11px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-usage-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(203, 218, 213, 0.09);
}

html.home-v2 #subscription-management-sheet .sub-mgmt-usage-bar .bar {
  border-radius: inherit;
  background: linear-gradient(90deg, #ff3448, #ff6f58);
  box-shadow: none;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-usage-foot {
  margin-top: 6px;
  font-size: 9.5px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-section-title {
  padding: 0 3px 8px;
  font-size: 14px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-section-sub {
  font-size: 9.5px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-panel-card {
  padding: 12px;
  border-color: rgba(198, 213, 208, 0.11);
  border-radius: 22px;
  background: rgba(14, 21, 20, 0.82);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

html.home-v2 #subscription-management-sheet .sub-mgmt-panel-eyebrow {
  margin-bottom: 4px;
  font-size: 8.5px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-lte-lead {
  margin-bottom: 9px;
  font-size: 10px;
  line-height: 1.42;
}

html.home-v2 #subscription-management-sheet .lte-pack-grid {
  gap: 8px;
}

html.home-v2 #subscription-management-sheet .lte-pack-card {
  min-height: 104px !important;
  padding: 11px !important;
  overflow: hidden;
  border-color: rgba(199, 214, 209, 0.12) !important;
  border-radius: 19px !important;
  background: rgba(23, 29, 28, 0.92) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.home-v2 #subscription-management-sheet .lte-pack-card--mid {
  border-color: #ff4050 !important;
  background:
    radial-gradient(ellipse 130px 100px at 112% 8%, rgba(255, 55, 69, 0.16), transparent 72%),
    #1a201f !important;
  box-shadow: 0 0 0 1px rgba(255, 73, 84, 0.52) inset !important;
}

html.home-v2 #subscription-management-sheet .lte-pack-card--mid::before {
  top: 8px;
  left: auto;
  right: 8px;
  padding: 3px 7px;
  box-shadow: none;
}

html.home-v2 #subscription-management-sheet .lte-pack-card--mid .lte-pack-gb-wrap {
  margin-top: 0 !important;
}

html.home-v2 #subscription-management-sheet .lte-pack-gb {
  font-size: 24px !important;
}

html.home-v2 #subscription-management-sheet .lte-pack-gb-unit {
  font-size: 11px !important;
}

html.home-v2 #subscription-management-sheet .lte-price-frame {
  margin-top: 7px !important;
  border-color: rgba(255, 67, 80, 0.25) !important;
  border-radius: 10px !important;
  background: rgba(255, 51, 66, 0.08) !important;
}

html.home-v2 #subscription-management-sheet .lte-price-frame-inner {
  padding: 6px 8px !important;
  color: #ff5661 !important;
  font-size: 12px !important;
}

html.home-v2 #subscription-management-sheet .lte-pack-tag {
  margin-top: 2px !important;
  font-size: 8px !important;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-panel-card--devices {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-devices-head {
  margin-bottom: 9px;
  padding: 0 3px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-meta-pill {
  padding: 4px 9px;
  border-color: rgba(255, 70, 82, 0.25);
  color: #ff5661;
  background: rgba(255, 52, 67, 0.08);
  font-size: 10px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-devices-list {
  gap: 8px;
  margin-top: 0;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-device-item {
  min-height: 70px;
  gap: 10px;
  padding: 11px;
  border-color: rgba(198, 213, 208, 0.11);
  border-radius: 19px;
  background: rgba(16, 23, 22, 0.86);
}

html.home-v2 #subscription-management-sheet .sub-mgmt-dev-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #ff5661;
  background: rgba(255, 54, 69, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 72, 83, 0.12);
}

html.home-v2 #subscription-management-sheet .sub-mgmt-device-name {
  font-size: 13px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-device-meta {
  margin-top: 3px;
  font-size: 9.5px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-device-remove-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

html.home-v2 #subscription-management-sheet .sub-mgmt-device-actions .primary-btn {
  min-height: 46px;
  margin-top: 10px;
  border-radius: 23px;
  background: linear-gradient(135deg, #ff4959, #ff203b);
  font-size: 13px;
}

html.home-v2 #subscription-management-close {
  display: none !important;
}

@media (max-height: 700px) {
  html.home-v2 #subscription-management-sheet {
    padding-top: 14px;
  }

  html.home-v2 #subscription-management-sheet .sub-mgmt-v2-close {
    top: 14px;
  }

  html.home-v2 #subscription-management-sheet .sub-mgmt-hero {
    min-height: 58px;
    margin-bottom: 8px;
  }

  html.home-v2 #subscription-management-sheet .sub-mgmt-lte-lead {
    display: none;
  }
}

/* V2.10 preproduction cascade guard.
   Keep these rules last: older compact-density revisions intentionally live
   above and must not regain control of geometry in Telegram's iOS WebView. */
html.home-v2 .checkout-section--tariffs {
  padding: 18px;
}

html.home-v2 .checkout-section--tariffs .checkout-section-title,
html.home-v2 .checkout-section--tariffs .checkout-section-sub {
  padding-inline: 2px;
}

html.home-v2 .checkout-section--tariffs .lte-pack-grid--tariffs {
  gap: 10px;
  padding: 6px;
}

html.home-v2 .checkout-section--tariffs .checkout-tariff-btn.lte-pack-card--tariff {
  min-height: 72px;
  padding: 11px 13px;
}

html.home-v2 body.tg-native-back .balance-v2 .balance-v2-back {
  display: block !important;
  position: static !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  clip: auto !important;
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

html.home-v2 #paymethod-sheet {
  contain: layout style;
}

html.home-v2 #paymethod-sheet .paymethod-v2-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  min-height: 38px;
  padding: 0;
}

html.home-v2 #paymethod-sheet .paymethod-close-v2 {
  position: static !important;
  z-index: auto;
  grid-column: 2;
  grid-row: 1;
  width: 38px;
  height: 38px;
  margin: 0;
  transform: none !important;
}

html.home-v2 #paymethod-sheet .paymethod-close-v2:active,
html.home-v2 #paymethod-backdrop:active,
html.home-v2 .home-v2__faq-backdrop:active,
html.home-v2 .home-v2__faq-close:active {
  transform: none !important;
}

html.home-v2 body.tg-native-back #checkout-back-btn,
html.home-v2 body.tg-native-back .screen-back-fallback {
  display: none !important;
}
