:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --card: #161a23;
  --card-2: #1d222d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f5f9;
  --muted: #9099ad;
  --accent: #5b8cff;
  --accent-2: #a06bff;
  --ok: #3ddc97;
  --warn: #ffc75a;
  --bad: #ff6b6b;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-2: #f1f4fa;
  --line: rgba(15, 20, 35, 0.08);
  --text: #101624;
  --muted: #6b7488;
  --accent: #3d6cf5;
  --accent-2: #7b4bff;
  --ok: #12a86b;
  --warn: #c98a00;
  --bad: #e04545;
  --shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.45;
  overscroll-behavior: none;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: calc(18px + env(safe-area-inset-top)) 18px 22px;
  background: linear-gradient(160deg, #1a2033 0%, #12151f 55%, #0f1219 100%);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  overflow: hidden;
}

html[data-theme="light"] .hero {
  background: linear-gradient(160deg, #dfe8ff 0%, #eef1fa 60%, #f4f6fb 100%);
}

.hero__glow {
  position: absolute;
  top: -90px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.55), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(91, 140, 255, 0.35);
  flex: 0 0 auto;
}

.hero__who {
  min-width: 0;
  flex: 1;
}

.hero__name {
  font-size: 17px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__handle {
  font-size: 13px;
  color: var(--muted);
}

.status {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status--ok {
  color: #06251a;
  background: var(--ok);
}

.status--bad {
  color: #2a0c0c;
  background: var(--bad);
}

.status--muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .status--muted {
  background: rgba(15, 20, 35, 0.06);
}

.hero__plan {
  position: relative;
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hero__plan-title {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.4px;
}

.hero__plan-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.hero__speed {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

html[data-theme="light"] .hero__speed {
  background: rgba(61, 108, 245, 0.08);
}

/* ---------------------------------------------------------------- cards */

.content {
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.card__note {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.card__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.card__hint--tiny {
  font-size: 12px;
  margin: 10px 0 0;
}

.rowline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
}

.muted {
  color: var(--muted);
}

.strong {
  font-weight: 600;
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--card-2);
  overflow: hidden;
  margin: 8px 0 6px;
}

.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s ease;
}

/* ---------------------------------------------------------------- sublink */

.sublink {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.sublink code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  border: none;
  background: rgba(91, 140, 255, 0.14);
  color: var(--accent);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.2s ease;
  width: 100%;
}

.btn:active {
  transform: scale(0.985);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px rgba(91, 140, 255, 0.28);
}

.btn--ghost {
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--line);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

/* ---------------------------------------------------------------- switches */

.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.switch:first-child {
  border-top: none;
}

.switch__body {
  flex: 1;
  min-width: 0;
}

.switch__title {
  font-size: 14px;
  font-weight: 600;
}

.switch__desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.switch--locked {
  opacity: 0.45;
  cursor: default;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch__slider {
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.2s ease;
}

.switch__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch__slider {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.switch input:checked + .switch__slider::after {
  transform: translateX(18px);
}

/* ---------------------------------------------------------------- lists */

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list__empty {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}

.device {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.device__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex: 0 0 auto;
}

.device__body {
  flex: 1;
  min-width: 0;
}

.device__hwid {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device__seen {
  font-size: 11px;
  color: var(--muted);
}

.device__app {
  font-size: 12px;
  color: var(--text);
  margin-top: 1px;
}

.device__del {
  border: none;
  background: rgba(255, 107, 107, 0.12);
  color: var(--bad);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.device__del.is-armed {
  background: var(--bad);
  color: #fff;
}

/* ---------------------------------------------------------------- plans */

.plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan {
  position: relative;
  border: 1.5px solid var(--line);
  background: var(--card-2);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.plan.is-active {
  border-color: var(--accent);
  background: linear-gradient(150deg, rgba(91, 140, 255, 0.12), rgba(160, 107, 255, 0.06));
}

.plan__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.plan__title {
  font-size: 16px;
  font-weight: 700;
}

.plan__tag {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.plan__price {
  font-size: 18px;
  font-weight: 750;
  white-space: nowrap;
}

.plan__price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.plan__speed {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(127, 138, 163, 0.1);
  display: grid;
  gap: 2px;
}

.plan__speed-label {
  font-size: 12.5px;
  font-weight: 700;
}

.plan__speed-hint {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}

.plan__more {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 0 0;
  cursor: pointer;
  text-align: left;
}

.plan__specs {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(127, 138, 163, 0.08);
  display: grid;
  gap: 5px;
}

.plan__specs div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
}

.plan__specs dt {
  color: var(--muted);
  margin: 0;
}

.plan__specs dd {
  margin: 0;
  font-weight: 600;
}

.plan__features {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.plan__features li {
  font-size: 12.5px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.7;
}

.plan__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.plan.is-active .plan__check {
  border-color: var(--accent);
  background: var(--accent);
}

/* ---------------------------------------------------------------- misc */

.months {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
}

.pills {
  display: flex;
  gap: 6px;
}

.pill {
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.pill.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.payment-result {
  margin-top: 12px;
  border: 1px solid rgba(61, 220, 151, 0.35);
  background: rgba(61, 220, 151, 0.08);
  border-radius: 14px;
  padding: 12px;
  font-size: 13px;
}

.payment-result b {
  color: var(--ok);
}

.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
}

.pay-row__status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pay-row__status--pending {
  color: var(--warn);
  background: rgba(255, 199, 90, 0.12);
}

.pay-row__status--paid {
  color: var(--ok);
  background: rgba(61, 220, 151, 0.12);
}

.pay-row__status--rejected {
  color: var(--bad);
  background: rgba(255, 107, 107, 0.12);
}

.support {
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px;
}

.footer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 12px 20px 0;
  opacity: 0.8;
}

/* ---------------------------------------------------------------- modal / toast */

[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 40;
  padding: 14px;
}

.modal__sheet {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  animation: sheet 0.22s ease;
}

@keyframes sheet {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}

.modal__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(20, 24, 33, 0.94);
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 50;
  box-shadow: var(--shadow);
  max-width: 90vw;
  text-align: center;
}

.skeleton {
  color: var(--muted);
  font-size: 13px;
}

/* ---------------------------------------------------------------- вкладки */

.tabpage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: tab-in 0.22s ease;
}

@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.content {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(15, 17, 22, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  z-index: 40;
}

html[data-theme="light"] .tabbar {
  background: rgba(250, 251, 253, 0.9);
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
  padding: 6px 2px 4px;
  border-radius: 14px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.tabbar__item svg {
  width: 22px;
  height: 22px;
}

.tabbar__item:active {
  transform: scale(0.94);
}

.tabbar__item.is-active {
  color: var(--accent);
  background: rgba(108, 118, 255, 0.12);
}

.toast {
  bottom: calc(88px + env(safe-area-inset-bottom));
}

html {
  scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

/* ---------------------------------------------------------------- routing presets */

.route-group {
  margin-top: 18px;
}

.route-group:first-child {
  margin-top: 4px;
}

.route-group__title {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.route-group__title:active {
  opacity: 0.7;
}

.route-group__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.75;
}

.route-group__chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.route-group.is-collapsed .route-group__chevron {
  transform: rotate(-90deg);
}

.route-group.is-collapsed .route-group__body {
  display: none;
}

.route {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.route:first-of-type {
  border-top: none;
}

.route__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route__title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route__badge {
  flex: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(91, 140, 255, 0.14);
  border-radius: 999px;
  padding: 2px 7px;
}

.route__desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.route--locked .route__title,
.route--locked .route__desc {
  opacity: 0.55;
}

/* три состояния в одном контроле: выкл / напрямую / через VPN */
.seg3 {
  flex: none;
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(127, 138, 163, 0.13);
}

.seg3__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.seg3__btn--direct.is-active {
  background: var(--card);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.seg3__btn--vpn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(91, 140, 255, 0.35);
}

.seg3--locked {
  opacity: 0.45;
}

.seg3--locked .seg3__btn {
  cursor: default;
}

/* ---------------------------------------------------------------- custom rules */

.custom-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.custom-form__input {
  flex: 1 1 160px;
  min-width: 0;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 9px 12px;
}

.custom-form__input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn--sm {
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 12px;
}

.custom-list {
  margin-top: 10px;
}

.custom-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.custom-item__value {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-item__target {
  appearance: none;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  transition: background 0.16s ease, color 0.16s ease;
}

.custom-item__target--vpn {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
}

.custom-item__del {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  padding: 4px 6px;
  cursor: pointer;
}

.custom-item__del:active {
  color: var(--bad);
}

/* ---------------------------------------------------------------- promo */

.promo-box {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
  padding: 2px 12px 12px;
}

.promo-box[open] {
  padding-bottom: 14px;
}

.promo-box__summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}

.promo-box__summary::-webkit-details-marker {
  display: none;
}

.promo-box__summary::before {
  content: '+';
  font-weight: 700;
  margin-right: 6px;
  color: var(--muted);
}

.promo-box[open] .promo-box__summary::before {
  content: '\2212';
}

.promo-box__value {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
  background: rgba(52, 199, 89, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
}

.promo-box .promo {
  margin-top: 2px;
}

.promo {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.promo__input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo__input::placeholder {
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.promo__apply {
  flex: none;
  width: auto;
  padding: 0 18px;
  font-size: 13px;
  white-space: nowrap;
}

/* ------------------------------------------------------------- referral */
.referral {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.referral__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card-2);
}

.referral__code {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.referral__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.referral__stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card-2);
  font-size: 13px;
}

.referral__actions {
  display: flex;
  gap: 8px;
}

.referral__actions .btn {
  flex: 1;
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
}


/* Тариф, который ещё не открыт */
.plan.is-soon {
  opacity: 0.72;
  cursor: default;
}

.plan.is-soon:hover {
  border-color: var(--line);
}

.plan__soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(127, 138, 163, 0.18);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
