:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f6f8fb;
  --card: #eef3f8;
  --text: #151719;
  --muted: #66717f;
  --line: rgba(22, 38, 56, 0.1);
  --blue: #3396f5;
  --blue-deep: #1f82e8;
  --blue-soft: rgba(51, 150, 245, 0.12);
  --cyan: #0ea5e9;
  --pink: #3396f5;
  --pink-soft: rgba(51, 150, 245, 0.1);
  --lime: #3396f5;
  --lime-ink: #ffffff;
  --lime-soft: rgba(51, 150, 245, 0.14);
  --disabled: rgba(125, 139, 154, 0.34);
  --dot: rgba(31, 130, 232, 0.2);
  --shadow: 0 18px 42px rgba(16, 30, 54, 0.08);
  --glow: 0 10px 26px rgba(51, 150, 245, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 2px) 0 0 / 20px 20px,
    radial-gradient(circle at 50% 24%, rgba(51, 150, 245, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(51, 150, 245, 0.05), transparent 34%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
  letter-spacing: 0;
}

.cabinet-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 20px calc(28px + env(safe-area-inset-bottom));
  background: transparent;
}

.landing-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: stretch;
  padding: 28px 0 12px;
}

.landing-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.okno-window-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef8ff, #d7ecff);
  box-shadow: 0 12px 30px rgba(31, 130, 232, 0.18), inset 0 0 0 1px rgba(31, 130, 232, 0.16);
}

.landing-window-icon {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--blue-deep);
}

.landing-window-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-brand-name {
  color: var(--text);
  font-size: 37px;
  font-weight: 800;
  line-height: 1;
}

.landing-title {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
}

.landing-subtitle {
  margin-top: 2px;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
}

.landing-card {
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  box-shadow: none;
}

.landing-benefits {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
}

.landing-benefits .feature-row {
  grid-template-columns: 42px 1fr;
  min-height: 34px;
  font-size: 17px;
}

.emoji-icon,
.landing-emoji-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  line-height: 1;
}

.emoji-icon img,
.landing-emoji-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-emoji-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  margin-left: -6px;
  margin-right: 2px;
}

.device-icon.emoji-icon,
.app-icon.emoji-icon,
.copy-icon.emoji-icon,
.video-icon.emoji-icon,
.action-icon.emoji-icon,
.history-icon.emoji-icon,
.device-square.emoji-icon,
.big-point-icon.emoji-icon {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  filter: none;
  overflow: visible;
}

.device-icon.emoji-icon {
  width: 56px;
  height: 38px;
  flex-basis: 56px;
}

.device-icon.emoji-icon img {
  width: auto;
  max-width: 56px;
  height: var(--device-icon-size, 38px);
  max-height: var(--device-icon-size, 38px);
  object-fit: contain;
  transform: translate(var(--device-icon-x, 0), var(--device-icon-y, 0));
}

.app-icon.emoji-icon,
.device-square.emoji-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.action-icon.emoji-icon,
.history-icon.emoji-icon,
.copy-icon.emoji-icon,
.video-icon.emoji-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.big-point-icon.emoji-icon {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}

.landing-invite {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 20px;
  color: var(--text);
  line-height: 1.24;
}

.landing-invite-copy {
  display: grid;
  gap: 4px;
}

.landing-invite-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.landing-invite-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.landing-trial-gift {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.landing-trial-accent {
  display: inline-block;
  border-radius: 7px;
  background: rgba(21, 128, 61, 0.12);
  padding: 1px 7px 2px;
  color: #15803d;
  font-weight: 900;
  white-space: nowrap;
}

.landing-device-price {
  margin: 14px auto 0;
  max-width: 330px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.topup-bonus-copy {
  margin: 16px auto 0;
  max-width: 350px;
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.32;
  text-align: center;
}

.topup-bonus-accent {
  display: inline-block;
  border-radius: 7px;
  background: rgba(51, 150, 245, 0.12);
  padding: 1px 6px 2px;
  color: var(--blue-deep);
  font-weight: 900;
  white-space: nowrap;
}

.topup-bonus-amount {
  display: inline-block;
  border-radius: 7px;
  background: rgba(21, 128, 61, 0.12);
  padding: 1px 7px 2px;
  color: #15803d;
  font-weight: 900;
  white-space: nowrap;
}

.landing-auth-button {
  display: grid;
  width: 100%;
  min-height: 67px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 12px 24px rgba(51, 150, 245, 0.22);
}

.landing-top-cta {
  margin-top: 12px;
}

.landing-notice {
  order: 8;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

.landing-footer {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.landing-rules {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 62px 96px;
  align-items: center;
  gap: 8px;
  min-height: 82px;
  margin: 0 -20px 22px;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  flex: 0 0 auto;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  justify-self: start;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.05;
}

.back-chevron {
  display: inline-block;
  font-size: 21px;
  line-height: 0.8;
  transform: translateY(-2px);
}

.balance-button {
  display: grid;
  gap: 1px;
  min-width: 62px;
  justify-self: start;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.balance-button strong {
  color: var(--text);
  font-size: 19px;
  line-height: 1;
}

.more-button {
  display: grid;
  width: 96px;
  min-height: 34px;
  place-items: center end;
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.05;
  text-align: right;
}

.more-button span {
  display: block;
}

.hero-block {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 2px 0 24px;
  text-align: center;
}

.hero-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(31, 130, 232, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.9), transparent 36%),
    linear-gradient(145deg, #eef8ff, #d7ecff);
  box-shadow: var(--glow);
  color: var(--text);
}

.site-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: var(--blue-deep);
  line-height: 0;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px rgba(40, 231, 255, 0.28));
}

.site-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.site-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-icon .site-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.mode-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.landing-mode-pills {
  margin-bottom: 10px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid rgba(31, 130, 232, 0.12);
  border-radius: 999px;
  background: #eef5fc;
  padding: 0 13px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

.mode-pill.lime .mode-dot {
  background: #8cecff;
}

.mode-pill.blue .mode-dot {
  background: var(--blue);
}

.eyebrow,
.muted,
.muted-center,
.section-label,
.legal-note {
  color: var(--muted);
}

.eyebrow {
  font-size: 17px;
}

.hero-block h1,
.page-title {
  font-size: 29px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.hero-subtitle,
.gift-line {
  max-width: 360px;
  font-size: 19px;
  line-height: 1.25;
}

.happ-download-warning {
  border: 1px solid #ef4444;
  border-radius: 9px;
  background: #fff7f7;
  padding: 10px 12px;
  color: #991b1b;
  font-weight: 700;
}

.happ-version-accent {
  color: #dc2626;
  font-weight: 800;
}

.gift-line {
  margin-top: -4px;
}

.white-card,
.loading-card {
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.loading-card {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--muted);
}

.benefit-card {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.feature-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  min-height: 50px;
  font-size: 19px;
  line-height: 1.24;
  color: var(--text);
}

.feature-icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.invite-mini {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  margin-top: 18px;
  padding: 22px 24px;
  font-size: 19px;
  line-height: 1.28;
}

.tariff-note {
  margin: 16px 0 10px;
  text-align: center;
  font-size: 16px;
}

.primary-button,
.secondary-button,
.primary-link,
.soft-button,
.pill-button {
  display: grid;
  min-height: 62px;
  place-items: center;
  border-radius: 9px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.primary-button,
.primary-link {
  width: 100%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-size: 21px;
  box-shadow: 0 16px 32px rgba(0, 93, 255, 0.28), 0 0 28px rgba(40, 231, 255, 0.18);
}

.brand-cta {
  min-height: 72px;
  border: 1px solid rgba(140, 236, 255, 0.42);
  border-radius: 10px;
  background: var(--blue);
  color: var(--lime-ink);
  box-shadow: 0 12px 24px rgba(51, 150, 245, 0.22);
}

.primary-button:disabled {
  background: var(--disabled);
  color: rgba(255, 255, 255, 0.78);
}

.secondary-button,
.soft-button,
.pill-button {
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid rgba(140, 236, 255, 0.18);
}

.bottom-action {
  margin-top: 28px;
}

.install-actions {
  display: grid;
  gap: 10px;
}

.apple-region {
  margin-top: 24px;
}

.apple-region-guide {
  width: 100%;
  margin-top: 12px;
}

.apple-region-note {
  max-width: 360px;
}

.option-list {
  --device-icon-column: 77px;
  overflow: hidden;
  margin-top: 28px;
}

.device-option {
  display: grid;
  grid-template-columns: var(--device-icon-column) 1fr 28px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  padding: 0 18px;
  color: var(--text);
  text-align: left;
}

.device-option:last-child {
  border-bottom: 0;
}

.device-icon,
.app-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-deep);
}

.device-label {
  font-size: 21px;
}

.radio-dot {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(31, 130, 232, 0.28);
  border-radius: 50%;
}

.device-option.is-selected .radio-dot {
  border: 6px solid var(--blue);
}

.store-section {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.section-label {
  margin: 0 16px;
  font-size: 15px;
  text-transform: uppercase;
}

.app-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  grid-template-areas: "icon title button" "icon os button";
  align-items: center;
  gap: 2px 16px;
  min-height: 74px;
  padding: 12px 18px;
}

.app-icon {
  grid-area: icon;
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  background: #ffffff;
  color: var(--blue-deep);
  border: 1px solid var(--line);
  box-shadow: none;
}

.app-title {
  grid-area: title;
  font-size: 21px;
  font-weight: 800;
}

.app-os {
  grid-area: os;
  color: var(--muted);
  font-size: 18px;
}

.pill-button {
  grid-area: button;
  min-height: 40px;
  border-radius: 999px;
  font-size: 17px;
}

.muted-center {
  margin: 18px auto 0;
  max-width: 300px;
  text-align: center;
  font-size: 17px;
  line-height: 1.25;
}

.link-box {
  overflow: hidden;
  min-height: 48px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 13px 16px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-box-error {
  border-color: #ef4444;
  background: #fff7f7;
  color: #991b1b;
  font-weight: 700;
  white-space: normal;
}

.access-ready-note {
  color: #15803d;
}

.copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.copy-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.manual-status {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  text-align: center;
  font-size: 17px;
  line-height: 1.2;
}

.manual-status p {
  margin: 0;
}

.manual-status-success {
  color: #15803d;
  font-weight: 700;
}

.manual-status-warning {
  color: #dc2626;
  font-weight: 700;
}

.instruction-card {
  overflow: hidden;
  margin-top: 28px;
}

.instruction-card h2 {
  margin: 0;
  padding: 18px 18px 6px;
  font-size: 21px;
  line-height: 1.16;
}

.instruction-card > .muted {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 16px;
  line-height: 1.28;
}

.guide-card {
  padding-bottom: 14px;
}

.guide-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px 4px;
}

.guide-shot {
  display: grid;
  gap: 6px;
  min-height: 116px;
  border: 1px solid rgba(31, 130, 232, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 10px;
}

.guide-shot-top {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-shot strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.1;
}

.guide-shot small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.18;
}

.guide-steps {
  padding-top: 10px;
}

.guide-card .link-box {
  width: calc(100% - 28px);
  margin: 8px 14px 0;
}

.guide-copy-button {
  width: fit-content;
  min-width: 210px;
  min-height: 50px;
  margin: 14px 14px 0;
  padding: 0 18px;
}

.guide-note {
  margin-top: 16px;
  padding: 16px 18px;
}

.guide-note p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.28;
}

.instruction-head,
.video-link {
  display: grid;
  grid-template-columns: var(--device-icon-column, 77px) 1fr 24px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  background: var(--card);
  padding: 0 18px;
  text-align: left;
}

.question-dot,
.history-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.chevron {
  color: var(--muted);
  font-size: 24px;
}

.steps-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 22px 18px 40px;
  font-size: 18px;
  line-height: 1.28;
}

.video-row {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  align-items: center;
  width: calc(100% - 32px);
  min-height: 54px;
  margin: 8px 16px 18px;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 16px;
  text-align: left;
}

.video-icon {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  color: var(--cyan);
}

.warning-text {
  padding: 0 22px 22px;
  white-space: pre-line;
  font-size: 17px;
  line-height: 1.25;
}

.balance-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 0 32px;
  text-align: center;
}

.balance-hero p {
  font-size: 20px;
  font-weight: 800;
}

.balance-hero strong {
  font-size: 58px;
  line-height: 1;
}

.balance-hero span {
  color: var(--muted);
  font-size: 18px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-height: 80px;
  overflow: visible;
  padding: 12px 10px 10px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-shadow: none;
}

.action-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  place-items: center;
  justify-self: center;
  color: var(--blue);
  overflow: visible;
}

.brand-icon svg,
.copy-icon svg,
.video-icon svg,
.action-icon svg,
.history-icon svg,
.device-square svg,
.big-point-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.devices-card,
.referral-card,
.email-card,
.extra-device-card,
.topup-card,
.history-card,
.expired-card {
  margin-top: 18px;
  padding: 20px;
}

.devices-card {
  padding-bottom: 14px;
}

.card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: 21px;
}

.soft-button {
  min-height: 40px;
  border-radius: 999px;
  font-size: 17px;
}

.soft-button:disabled {
  background: var(--disabled);
  color: #ffffff;
}

.device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 12px -20px 0;
  border-top: 1px solid var(--line);
  padding: 6px 20px;
  font-size: 16px;
}

.device-row:last-of-type {
  margin-bottom: -8px;
}

.device-left {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 9px;
  row-gap: 2px;
  min-width: 0;
}

.device-left > .device-square.emoji-icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.device-info {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
}

.device-info strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.14;
}

.device-side {
  display: grid;
  align-self: center;
  justify-items: end;
  min-width: max-content;
}

.device-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.device-auto-renew {
  display: inline-grid;
  grid-template-columns: 18px auto;
  align-items: center;
  gap: 5px;
  justify-self: start;
  min-height: 18px;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.device-auto-renew.is-on {
  color: #15803d;
}

.device-auto-renew.is-off {
  color: var(--muted);
}

.device-expiry {
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.auto-renew-box {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.device-auto-renew.is-on .auto-renew-box {
  background: rgba(21, 128, 61, 0.12);
}

.device-auto-renew-row {
  grid-column: 1 / 3;
  grid-row: 2;
  grid-template-columns: 34px auto;
  justify-self: start;
  margin-top: -1px;
}

.device-auto-renew-row .auto-renew-box {
  justify-self: center;
}

.device-reset-button {
  min-height: 25px;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
}

.device-usage-card {
  margin-top: 18px;
  padding: 16px 20px;
}

.device-usage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.empty-device-row {
  display: grid;
  gap: 5px;
  width: calc(100% + 40px);
  margin: 16px -20px 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 16px 20px;
  color: var(--text);
  text-align: left;
}

.empty-device-row span {
  color: var(--muted);
  font-size: 15px;
}

.device-usage-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.device-notice {
  margin-top: 14px;
}

.device-limit-note {
  margin-top: 14px;
  border-radius: 9px;
  border: 1px solid #ef4444;
  background: #fff7f7;
  padding: 12px 14px;
  color: #991b1b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.extra-device-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.16;
}

.extra-device-card {
  padding-top: 16px;
}

.extra-device-card .muted {
  line-height: 1.38;
}

.extra-tariff-grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.extra-tariff {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  min-height: 76px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 12px 14px;
  color: var(--text);
  text-align: left;
}

.extra-tariff.is-selected {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.extra-tariff strong {
  font-size: 18px;
}

.extra-tariff span:not(.extra-tariff-badge),
.extra-tariff small {
  color: var(--muted);
  font-size: 14px;
}

.extra-tariff-badge {
  justify-self: start;
  border-radius: 999px;
  background: var(--blue);
  padding: 4px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.extra-tariff.best .extra-tariff-badge {
  background: #22c55e;
}

.extra-tariff.popular .extra-tariff-badge {
  background: var(--blue);
}

.extra-tariff.standard .extra-tariff-badge {
  background: #9ca3af;
}

.purchase-renew {
  margin-top: 11px;
}

.extra-payment-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.extra-payment-summary strong {
  color: var(--text);
}

.device-square {
  display: grid;
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
}

.referral-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.big-point {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 8px 18px rgba(255, 47, 146, 0.14));
}

.big-point-icon {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}

.referral-card h2 {
  white-space: pre-line;
  font-size: 25px;
  line-height: 1.22;
}

.referral-card p,
.email-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.25;
}

.split-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.split-buttons .primary-button,
.split-buttons .secondary-button {
  min-height: 72px;
}

.email-card {
  display: grid;
  gap: 12px;
}

.email-card h2 {
  font-size: 22px;
}

.email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.email-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 0 14px;
}

.email-input:focus {
  border-color: rgba(40, 231, 255, 0.62);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(40, 231, 255, 0.12);
}

.email-card .soft-button {
  justify-self: start;
  padding: 0 16px;
}

.email-consent,
.email-status {
  margin: 0;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.email-consent a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.email-status {
  color: var(--blue) !important;
  font-weight: 700;
}

.video-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.video-card {
  --device-icon-column: 77px;
  overflow: hidden;
  padding: 0;
}

.video-link {
  border-bottom: 1px solid var(--line);
}

.video-link:last-child {
  border-bottom: 0;
}

.page-title {
  margin: 4px 0 24px;
}

.history-card {
  display: grid;
  gap: 18px;
}

.history-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  white-space: pre-line;
  font-size: 18px;
  font-weight: 700;
}

.topup-card {
  display: grid;
  gap: 18px;
  padding: 34px 18px 22px;
}

.amount-display {
  color: var(--text);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.amount-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
}

.amount-button.is-selected {
  border-color: rgba(140, 236, 255, 0.58);
  background: var(--lime-soft);
  color: var(--lime-ink);
  box-shadow: 0 0 20px rgba(40, 231, 255, 0.14);
}

.topup-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.legal-note {
  margin: 170px auto 18px;
  max-width: 340px;
  text-align: center;
  font-size: 16px;
  line-height: 1.25;
}

.notice {
  margin: 12px 0;
  color: var(--pink);
  text-align: center;
}

.expired-card {
  display: grid;
  gap: 16px;
  text-align: center;
}

@media (max-width: 370px) {
  .cabinet-shell {
    padding-inline: 14px;
  }

  .app-bar {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .hero-block h1,
  .page-title {
    font-size: 26px;
  }

  .device-label,
  .app-title,
  .primary-button,
  .primary-link {
    font-size: 19px;
  }

  .amount-grid {
    gap: 6px;
  }
}
