/* ============================================================
   МОИ ДОСТУПЫ И ЗАКАЗЫ — Safe Cloud 22 Design System v2.0
   Полная гармонизация со страницами «Профиль» и «Главная»
   ============================================================ */

.mz-wrap {
  --surf: #ffffff;
  --sunk: #f8fbfd;
  --ink: #202d3b;
  --body: #334155;
  --muted: #4e6173;
  --line: #dce7ee;
  --line-light: #eef3f7;
  --ok: #2e6950;
  --amber: #b45309;
  --coral: #c2410c;
  --ease: cubic-bezier(.4, 0, .2, 1);
  font-family: inherit;
  color: var(--body);
  max-width: 900px;
}
.mz-wrap * { box-sizing: border-box; }

/* ── Панель управления: табы и поиск ── */
.mz-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

/* ── Табы «Активные / Архив» в стиле Профиля ── */
.mz-tabs {
  display: inline-flex;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(52, 72, 90, 0.04);
}

.mz-tabs button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
}

.mz-tabs button:hover:not(.on) {
  background: #edf2f6;
  color: var(--ink);
}

.mz-tabs button.on {
  background: #273440;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(39, 52, 64, 0.2);
}

.mz-tabs .cnt {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  background: #edf2f6;
  color: var(--muted);
  transition: all .15s ease;
}

.mz-tabs button.on .cnt {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ── Поиск по заказам ── */
.mz-search {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 8px 16px;
  box-shadow: 0 1px 4px rgba(52, 72, 90, 0.03);
  transition: all .15s ease;
}

.mz-search:focus-within {
  border-color: #273440;
  box-shadow: 0 0 0 3px rgba(39, 52, 64, 0.08);
}

.mz-search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

.mz-search input {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  width: 100%;
  outline: none;
}

.mz-search input::placeholder {
  color: #94a3b8;
}

/* ── Список заказов ── */
.mz-list {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.mz-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  padding: 48px 0;
  line-height: 1.6;
}

/* ── Карточка цифрового товара (Store, eSIM, Telegram Stars, Gift Cards) ── */
.mz-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(52, 72, 90, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}

.mz-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(52, 72, 90, 0.09);
}

.mz-card.arch {
  opacity: .85;
}

/* Шапка карточки товара */
.mz-cover {
  background: #ffffff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
}

.mz-cover-badge {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #273440;
  overflow: hidden;
  flex-shrink: 0;
}

.mz-cover-badge svg {
  width: 22px;
  height: 22px;
}

.mz-cover-flag {
  width: 52px;
  height: 36px;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(52, 72, 90, 0.06);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mz-cover-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mz-cover-txt {
  text-align: right;
  min-width: 0;
}

.mz-cover-brand {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mz-cover-denom {
  font-size: 20px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 3px;
}

/* Тело карточки товара */
.mz-body {
  padding: 20px 24px;
}

.mz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Бейджи статуса */
.mz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.mz-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mz-badge.ok {
  color: #2e6950;
  background: #e8f2ee;
}
.mz-badge.ok .dot { background: #2e6950; }

.mz-badge.proc {
  color: #b45309;
  background: #fef3c7;
}
.mz-badge.proc .dot { background: #b45309; animation: mz-pulse 1.2s infinite; }

.mz-badge.pend {
  color: var(--muted);
  background: #edf2f6;
}
.mz-badge.pend .dot { background: var(--muted); }

.mz-badge.err {
  color: #dc2626;
  background: #fee2e2;
}
.mz-badge.err .dot { background: #dc2626; }

@keyframes mz-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.mz-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Telegram Stars и доставка на аккаунт ── */
.mz-tg {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  background: #f0f7fc;
  border: 1px solid #d0e3f2;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 13.5px;
  color: #1e293b;
}

.mz-tg svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  color: #229ED9;
  flex-shrink: 0;
  display: block;
}

.mz-tg span {
  display: inline-block;
  line-height: 1.4;
}

.mz-tg b {
  color: #0f172a;
  font-weight: 700;
}

/* ── eSIM компоненты ── */
.mz-esim-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mz-preflight {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #854d0e;
  background: #fef9ec;
  border: 1px solid #fde68a;
}
.mz-preflight b { color: #713f12; }

.mz-esim-info {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mz-esim-info .mz-attr {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.mz-esim-info .k {
  color: var(--muted);
}

.mz-esim-info .v {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.mz-esim {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.mz-qr-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 140px;
  flex-shrink: 0;
}

.mz-qr-frame {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(52, 72, 90, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mz-qr {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mz-qr img,
.mz-qr canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.mz-esim-manual {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mz-esim-manual-lbl {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.mz-esim-manual .mz-code {
  padding: 6px 10px;
  gap: 6px;
}

.mz-esim-manual .mz-code-val {
  font-size: 11.5px;
}

.mz-esim-side {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mz-install {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: all .15s ease;
}

.mz-btn.pri {
  background: linear-gradient(120deg, #36434e, #25313c);
  color: #ffffff !important;
  border: 1px solid #273440;
  box-shadow: 0 2px 8px rgba(37, 49, 60, 0.15);
}
.mz-btn.pri:hover {
  background: #3b4a57;
  transform: translateY(-1px);
}

.mz-btn.gho {
  background: #ffffff;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(52, 72, 90, 0.03);
}
.mz-btn.gho:hover {
  background: #edf2f6;
  border-color: #b0c2d0;
  transform: translateY(-1px);
}

.mz-manual {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Код цифрового товара (Gift Cards, ключи) ── */
.mz-good {
  margin-top: 14px;
}

.mz-code {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}

.mz-code-val {
  flex: 1;
  min-width: 0;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--ink);
  font-weight: 600;
  word-break: break-all;
}

.mz-code-val.masked {
  letter-spacing: .18em;
  color: var(--muted);
}

.mz-ic-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

.mz-ic-btn:hover {
  background: #edf2f6;
  color: var(--ink);
  border-color: #273440;
}

.mz-ic-btn svg {
  width: 15px;
  height: 15px;
}

.mz-ic-btn.copied {
  color: var(--ok);
}

/* ── Действия по карточке (В архив, Инструкция, Отправить себе) ── */
.mz-acts {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-light);
  padding-top: 14px;
}

.mz-act {
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #ffffff;
  padding: 7px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(52, 72, 90, 0.03);
}

.mz-act:hover {
  background: #edf2f6;
  border-color: #b0c2d0;
  transform: translateY(-1px);
}

.mz-act svg {
  width: 14px;
  height: 14px;
}

.mz-act.soon {
  opacity: .5;
  cursor: default;
}
.mz-act.soon:hover {
  transform: none;
  background: #ffffff;
  border-color: var(--line);
}

.mz-act .soon-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  background: #edf2f6;
  padding: 2px 6px;
  border-radius: 5px;
}

/* ── Инструкция к товару ── */
.mz-instr {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}

.mz-instr.open {
  max-height: 800px;
  margin-top: 14px;
}

.mz-instr-in {
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.mz-instr-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.mz-step {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.mz-step:last-child { margin-bottom: 0; }

.mz-step-n {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #273440;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.mz-step-b {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Навигационный бейдж ── */
.lk-nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #273440;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.lk-tab-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #273440;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   КАРТОЧКА VPN-ДОСТУПА (Safe 22 Cloud)
   ============================================================ */
.lk-card.lk-access-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(52, 72, 90, 0.06);
  position: relative;
  transition: box-shadow .2s ease;
}

.lk-card.lk-access-card:hover {
  box-shadow: 0 8px 26px rgba(52, 72, 90, 0.09);
}

/* Шапка карточки доступа */
.lk-access-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.lk-access-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lk-access-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #2e6950;
  background: #e8f2ee;
  padding: 4px 10px;
  border-radius: 8px;
}

.lk-access-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #edf2f6;
  padding: 4px 10px;
  border-radius: 8px;
}

.lk-access-location {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* ── Сетка метрик ── */
.lk-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .lk-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lk-metric {
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lk-metric-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.lk-metric-value {
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.2;
}

.lk-metric-value--sm {
  font-size: 13px;
  font-weight: 700;
  padding-top: 3px;
}

.lk-metric-unit {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

/* ── Прогресс-бар срока действия ── */
.lk-term {
  margin: 18px 0 14px;
}

.lk-term-track {
  width: 100%;
  height: 6px;
  background: #e9eff4;
  border-radius: 4px;
  overflow: hidden;
}

.lk-term-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #36434e, #273440);
  transition: width .3s ease;
}

.lk-term-cap {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 6px;
}

/* ── Поле ссылки на подписку ── */
.lk-card-sub {
  margin-top: 18px;
}

.lk-sub-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 6px;
}

.lk-sub-row {
  margin-bottom: 14px;
}

.lk-sub-input {
  flex: 1 1 0%;
  min-width: 0 !important;
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 11px 14px !important;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace !important;
  font-size: 13px !important;
  color: var(--ink) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ── Кнопки подключения ── */
.lk-access-primary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn-connect-happ {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(120deg, #36434e, #25313c);
  color: #ffffff !important;
  border: 1px solid #273440;
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 49, 60, 0.18);
  transition: all .15s ease;
}

.btn-connect-happ:hover {
  background: #3b4a57;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 49, 60, 0.24);
}

.btn-connect-incy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(52, 72, 90, 0.04);
  transition: all .15s ease;
}

.btn-connect-incy:hover {
  background: #edf2f6;
  border-color: #b0c2d0;
  transform: translateY(-1px);
}

.lk-access-help-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.lk-access-help-note a {
  color: #0077ff;
  text-decoration: underline;
  cursor: pointer;
}

/* ── Вторичные кнопки действий (Скопировать, QR-код, Продлить, Устройства, Инструкция) ── */
.lk-access-secondary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.lk-access-secondary-actions .btn-secondary,
.lk-access-secondary-actions .btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(52, 72, 90, 0.03);
  transition: all .15s ease;
  text-decoration: none;
}

.lk-access-secondary-actions .btn-secondary:hover,
.lk-access-secondary-actions .btn-sm:hover {
  background: #edf2f6;
  border-color: #b0c2d0;
  transform: translateY(-1px);
}

/* ── Кнопка «+ Купить ещё один доступ» ── */
.lk-buy-extra-wrap {
  text-align: center;
  margin: 10px 0 24px;
}

.btn-buy-extra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(52, 72, 90, 0.04);
  transition: all .15s ease;
}

.btn-buy-extra:hover {
  background: #edf2f6;
  border-color: #273440;
  transform: translateY(-1px);
}

.lk-buy-extra-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 480px) {
  .lk-card.lk-access-card {
    padding: 20px 18px;
    border-radius: 18px;
  }
  .btn-connect-happ,
  .btn-connect-incy {
    width: 100%;
  }
  .mz-ctrl {
    flex-direction: column;
    align-items: stretch;
  }
  .mz-search {
    max-width: 100%;
  }
  .mz-tabs {
    width: 100%;
    justify-content: stretch;
  }
  .mz-tabs button {
    flex: 1;
    justify-content: center;
  }
}

/* ── Ссылка на подписку со встроенной кнопкой копирования ── */
.lk-sub-input-wrap {
  display: flex;
  align-items: stretch;
  background: var(--sunk);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: all .15s ease;
  box-shadow: inset 0 1px 3px rgba(52, 72, 90, 0.03);
}

.lk-sub-input-wrap:focus-within {
  border-color: #273440;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(39, 52, 64, 0.08);
}

.lk-sub-input-wrap .lk-sub-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  min-width: 0;
  box-shadow: none;
  min-height: auto;
}

.btn-copy-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: #ffffff;
  border: 0;
  border-left: 1px solid var(--line);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  flex-shrink: 0;
}

.btn-copy-inline:hover {
  background: #edf2f6;
  color: #273440;
}

.btn-copy-inline.copied {
  background: #e8f2ee;
  color: #2e6950;
}

/* ── Метаданные кнопок подключения ── */
.btn-connect-happ, .btn-connect-incy {
  flex: 1;
  min-width: 240px;
  padding: 13px 20px;
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btn-connect-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.btn-connect-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.btn-connect-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: .85;
  line-height: 1.2;
}

/* ── Двухшаговая аккуратная инструкция подключения ── */
.lk-access-guide-box {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 16px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lk-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lk-guide-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #273440;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 750;
  flex-shrink: 0;
  margin-top: 1px;
}

.lk-guide-content {
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
}

.lk-guide-heading {
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 4px;
}

.lk-guide-desc {
  color: var(--muted);
  font-size: 12.5px;
}

.lk-guide-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.lk-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(52, 72, 90, 0.03);
}

.lk-guide-link:hover {
  background: #edf2f6;
  border-color: #273440;
}

.lk-guide-sep {
  font-size: 11.5px;
  color: #94a3b8;
}

/* ── Плашка автопродления с баланса ── */
.lk-access-autorenew {
  margin-top: 18px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lk-autorenew-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #166534;
}

.lk-autorenew-info b {
  font-weight: 750;
}

.lk-autorenew-hint {
  font-size: 12px;
  color: #15803d;
  opacity: .9;
}

/* ── Акцентная кнопка продления ── */
.btn-renew-smart {
  border-color: #273440 !important;
  color: #273440 !important;
  font-weight: 700 !important;
  background: #f8fafc !important;
}

.btn-renew-smart:hover {
  background: #273440 !important;
  color: #ffffff !important;
}

/* ── Приоритетное исправление инлайн-копирования подписки ── */
body.app-page input[type="text"].lk-sub-input,
.lk-sub-input-wrap .lk-sub-input {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 10px 14px !important;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace !important;
  font-size: 13px !important;
  color: var(--ink) !important;
  outline: none !important;
}

.btn-copy-inline,
.lk-sub-input-wrap [data-action="copy-link"],
.lk-sub-input-wrap button.btn-copy-inline {
  width: auto !important;
  max-width: 140px !important;
  flex: 0 0 auto !important;
  padding: 0 16px !important;
  white-space: nowrap !important;
  background: #ffffff !important;
  border: 0 !important;
  border-left: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* ============================================================
   ORDERS REFINEMENTS (Wallet, Copy Feedback, Auto-Renew, Modals)
   ============================================================ */

/* ── Кнопка «Скопировать» с чёткой обратной связью ── */
.btn-copy-inline {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.lk-sub-input-wrap button.btn-copy-inline.is-copied,
.btn-copy-inline.is-copied {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28) !important;
  transform: scale(1.02);
}
.lk-sub-input-wrap button.btn-copy-inline.is-copied .copy-txt {
  color: #ffffff !important;
}
.btn-copy-inline.is-copied svg {
  stroke: #ffffff !important;
}

/* ── Интерактивная плашка «Автопродление» с переключателем ── */
.lk-access-autorenew {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 18px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  margin-top: 14px !important;
  transition: all 0.2s ease !important;
}
.lk-access-autorenew.is-disabled {
  background: #fbfbfc !important;
  border-color: #e5e7eb !important;
}
.lk-autorenew-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
}
.lk-autorenew-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lk-autorenew-icon {
  stroke: #0f172a;
  flex-shrink: 0;
}
.lk-autorenew-label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.lk-autorenew-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.3;
}
.lk-autorenew-badge.is-on {
  background: #dcfce7;
  color: #15803d;
}
.lk-autorenew-badge.is-off {
  background: #f1f5f9;
  color: #64748b;
}
.lk-autorenew-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* iOS-style переключатель (Switch) */
.s22-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.s22-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.s22-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
}
.s22-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.s22-switch input:checked + .s22-switch-slider {
  background-color: #10b981;
}
.s22-switch input:checked + .s22-switch-slider:before {
  transform: translateX(20px);
}
.s22-switch input:focus-visible + .s22-switch-slider {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

/* ── Модальные окна в фирменном стиле (Кабинет) ── */
.s22-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 10000;
  animation: s22FadeIn 0.2s ease;
}
@keyframes s22FadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.s22-modal-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.25);
  padding: 24px;
  box-sizing: border-box;
  animation: s22ScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes s22ScaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.s22-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.s22-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}
.s22-modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin: -4px -4px 0 0;
  color: #94a3b8;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.s22-modal-close-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.s22-modal-body {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 18px;
}
.s22-modal-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.s22-modal-summary-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 3px;
}
.s22-modal-summary-val {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.s22-modal-warning-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #92400e;
  margin-bottom: 18px;
}
.s22-modal-tariffs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.s22-tariff-choice-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.s22-tariff-choice-btn:hover {
  border-color: #0f172a;
  background: #f8fafc;
  transform: translateY(-1px);
}
.s22-tariff-choice-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.s22-tariff-choice-sub {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 3px;
}
.s22-tariff-choice-price {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.s22-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.s22-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #0f172a !important;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
}
.s22-btn-dark:hover {
  background: #1e293b !important;
  transform: translateY(-1px);
}
.s22-btn-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  background: transparent !important;
  color: #64748b !important;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent !important;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.s22-btn-subtle:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

/* ── Блок дополнительного доступа ── */
.lk-buy-extra-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 18px 22px;
  margin: 16px 0 28px;
}
.lk-buy-extra-content {
  flex: 1 1 auto;
}
.lk-buy-extra-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}
.lk-buy-extra-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}
.lk-buy-extra-action {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .lk-buy-extra-box {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 14px;
    padding: 16px 18px;
  }
  .lk-buy-extra-action {
    width: 100%;
    justify-content: center;
  }
}

/* ── Всплывающий тост ── */
.s22-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.s22-toast {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  animation: s22ToastIn 0.25s ease forwards;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
@keyframes s22ToastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   РАЗДЕЛ «ПОДПИСКА» (Cloud 22 v2.0 Design System)
   ══════════════════════════════════════════════════════════════════ */

.s22-sub-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 860px;
}

.s22-sub-header {
  margin-bottom: 2px;
}

.s22-sub-subtitle {
  font-size: 14.5px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.5;
}

/* ── Блок доверия «Никаких автосписаний» ── */
.s22-trust-banner {
  background: linear-gradient(135deg, #090d16 0%, #151e2e 100%);
  border-radius: 20px;
  padding: 26px 30px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px -10px rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.s22-trust-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 200px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.s22-trust-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.s22-trust-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #34d399 !important;
  margin-bottom: 12px;
}

.s22-trust-banner h2.s22-trust-heading,
.s22-trust-heading {
  font-size: 23px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.25 !important;
}

.s22-trust-banner p.s22-trust-desc,
.s22-trust-desc {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #cbd5e1 !important;
  max-width: 520px;
  margin: 0 0 18px 0 !important;
}

.s22-trust-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.s22-trust-feat-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc !important;
}

.s22-trust-card-visual {
  width: 230px;
  height: 148px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s22-trust-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.6)) !important;
  transition: transform 0.35s ease, filter 0.35s ease !important;
}

.s22-trust-card-img:hover {
  transform: scale(1.05) translateY(-3px) !important;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.75)) !important;
}

/* ── Строка баланса кошелька ── */
.s22-sub-balance-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.s22-sub-balance-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.s22-sub-balance-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

.s22-sub-balance-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s22-sub-balance-label {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

.s22-sub-balance-val {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.s22-sub-topup-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.s22-sub-topup-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* ── Блок выбора тарифа (List View) ── */
.s22-sub-tariffs-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 24px 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.s22-sub-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.s22-tariff-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s22-tariff-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.s22-tariff-row:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.s22-tariff-row.is-selected {
  border-color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* Радиокнопка */
.s22-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.s22-tariff-row.is-selected .s22-radio-circle {
  border-color: #0f172a;
  background: #0f172a;
}

.s22-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.15s ease;
}

.s22-tariff-row.is-selected .s22-radio-dot {
  opacity: 1;
  transform: scale(1);
}

.s22-tariff-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  flex-shrink: 0;
}

.s22-tariff-row.is-selected .s22-tariff-icon-box {
  background: #0f172a;
  color: #ffffff;
}

.s22-tariff-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.s22-tariff-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.s22-tariff-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.s22-benefit-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.s22-benefit-badge.is-hot {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}

.s22-tariff-specs {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.s22-tariff-dot {
  color: #cbd5e1;
}

.s22-tariff-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.s22-tariff-old-price {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.s22-tariff-price {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

/* ── Единый CTA-бар выбора тарифов (строго идентичная анатомия для обоих состояний) ── */
.s22-tariff-cta-box {
  margin-top: 16px;
  background: linear-gradient(120deg, #ffffff 5%, #edf3f7 82%, #dce6ed);
  border: 1px solid #ffffff;
  outline: 1px solid #dce7ee;
  border-radius: 18px;
  padding: 16px 20px;
  min-height: 86px;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(52, 72, 90, 0.04);
  animation: s22FadeIn 0.25s ease;
}

.s22-tariff-cta-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.s22-tariff-cta-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #edf2f6;
  border: 1px solid #dbe5ec;
  color: #202d3b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.s22-tariff-cta-icon.is-warning {
  background: #fdf4f3;
  border-color: #fae1de;
  color: #df5a4c;
}

.s22-tariff-cta-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.s22-tariff-cta-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #202d3b;
  letter-spacing: -0.01em;
}

.s22-tariff-cta-sub {
  font-size: 13px;
  color: #4e6173;
  line-height: 1.4;
}

/* Единая кнопка (одинаковая форма, отступы, шрифт и тёмный цвет) */
.s22-tariff-cta-action-btn,
.s22-sub-pay-action-btn,
.s22-insufficient-topup-btn {
  background: linear-gradient(120deg, #36434e, #25313c) !important;
  color: #ffffff !important;
  border: 1px solid #273440 !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 49, 60, 0.18);
  transition: all 0.2s ease;
}

.s22-tariff-cta-action-btn:hover,
.s22-sub-pay-action-btn:hover,
.s22-insufficient-topup-btn:hover {
  background: #3d4c58 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 49, 60, 0.26);
}

.s22-tariff-cta-action-btn:disabled,
.s22-sub-pay-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .s22-tariff-cta-box {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .s22-tariff-cta-action-btn,
  .s22-sub-pay-action-btn,
  .s22-insufficient-topup-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Карточка недостатка средств ── */
.s22-insufficient-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  animation: s22FadeIn 0.25s ease;
}

@keyframes s22FadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.s22-insufficient-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s22-insufficient-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.s22-insufficient-desc {
  font-size: 13px;
  color: #b45309;
  line-height: 1.45;
}

.s22-insufficient-topup-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: all 0.2s ease;
}

.s22-insufficient-topup-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.s22-sub-status-msg {
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  margin: 10px 0 0 0;
  line-height: 1.45;
}

.s22-sub-status-msg.is-error {
  color: #dc2626;
}

/* ── Блок «Что входит в подписку» ── */
.s22-included-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 28px 30px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.s22-inc-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.s22-inc-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.s22-inc-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.s22-inc-locations-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.s22-inc-loc-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.s22-inc-loc-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.s22-inc-loc-note {
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
}

.s22-inc-loc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.s22-loc-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.s22-loc-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
}

.s22-loc-chip-lte {
  border-color: rgba(16, 185, 129, 0.4);
  background: #f0fdf4;
}

.s22-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.s22-feat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
}

.s22-feat-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.s22-feat-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.s22-feat-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* ── Мобильная адаптация ── */
@media (max-width: 640px) {
  .s22-trust-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 18px;
  }
  .s22-trust-card-visual {
    width: 100%;
    height: 160px;
  }
  .s22-sub-balance-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .s22-sub-topup-btn {
    text-align: center;
    width: 100%;
  }
  .s22-sub-tariffs-card,
  .s22-included-box {
    padding: 20px 16px;
  }
  .s22-tariff-row {
    padding: 14px;
    gap: 12px;
  }
  .s22-tariff-cta-box {
    flex-direction: column;
    align-items: stretch;
  }
  .s22-sub-pay-action-btn {
    width: 100%;
    justify-content: center;
  }
  .s22-insufficient-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .s22-insufficient-topup-btn {
    width: 100%;
    justify-content: center;
  }
  .s22-features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   РАЗДЕЛ «УСТРОЙСТВА» (Cloud 22 v2.0 Design System)
   ══════════════════════════════════════════════════════════════════ */

.s22-dev-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
}

.s22-dev-header {
  margin-bottom: 2px;
}

.s22-dev-subtitle {
  font-size: 14.5px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.5;
}

/* ── Переключатель подписок (если несколько активных заказов) ── */
.s22-dev-order-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.s22-dev-order-tab {
  padding: 8px 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.s22-dev-order-tab:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.s22-dev-order-tab.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* ── Главная карточка метрик «Подключено X из Y» ── */
.s22-dev-stats-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 24px 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.s22-dev-stats-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.s22-dev-stats-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s22-dev-stats-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.s22-dev-count-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.s22-dev-count-num {
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.02em;
}

.s22-dev-count-limit {
  font-size: 19px;
  font-weight: 600;
  color: #64748b;
}

.s22-dev-available-badge {
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.s22-dev-available-badge.is-full {
  background: #fef2f2;
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

/* ── Сегментный прогресс-бар ── */
.s22-dev-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s22-dev-progress-bar {
  display: flex;
  gap: 6px;
  width: 100%;
}

.s22-dev-progress-seg {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: #e2e8f0;
  transition: background 0.25s ease;
}

.s22-dev-progress-seg.is-filled {
  background: #0f172a;
}

.s22-dev-progress-caption {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* ── Кнопки действий ── */
.s22-dev-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.s22-dev-add-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transition: all 0.2s ease;
}

.s22-dev-add-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.s22-dev-unbind-all-btn {
  background: transparent;
  border: 1px solid #fee2e2;
  color: #ef4444;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.s22-dev-unbind-all-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.s22-dev-unbind-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Инфо-баннер с ключом ── */
.s22-dev-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.s22-dev-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.s22-dev-banner-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  flex-shrink: 0;
}

.s22-dev-banner-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.s22-dev-banner-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.s22-dev-banner-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* ── Список «ВАШИ УСТРОЙСТВА» ── */
.s22-dev-list-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s22-dev-list-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 4px 0 2px 2px;
}

.s22-dev-row {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.18s ease;
}

.s22-dev-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.s22-dev-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.s22-dev-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  flex-shrink: 0;
}

.s22-dev-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.s22-dev-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s22-dev-submeta {
  font-size: 12.5px;
  color: #64748b;
}

.s22-dev-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.s22-dev-date {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.s22-dev-unbind-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.s22-dev-unbind-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

/* ── Свободные слоты (Dashed Rows) ── */
.s22-dev-slot-empty {
  background: #fafafa;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.s22-dev-slot-empty:hover {
  border-color: #0f172a;
  background: #f8fafc;
}

.s22-dev-slot-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px dashed #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.s22-dev-slot-empty:hover .s22-dev-slot-plus {
  border-color: #0f172a;
  color: #0f172a;
  background: #ffffff;
}

.s22-dev-slot-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s22-dev-slot-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
}

.s22-dev-slot-hint {
  font-size: 11.5px;
  color: #94a3b8;
}

/* ── Пустое состояние (нет подписок) ── */
.s22-dev-empty-state {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.s22-dev-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  margin-bottom: 4px;
}

.s22-dev-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.s22-dev-empty-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 400px;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.s22-dev-primary-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transition: all 0.2s ease;
}

.s22-dev-primary-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ── Лоадер ── */
.s22-dev-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 0;
  color: #64748b;
  font-size: 14px;
}

.s22-dev-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid #e2e8f0;
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: s22DevSpin 0.7s linear infinite;
}

@keyframes s22DevSpin {
  to { transform: rotate(360deg); }
}

/* ── Модальное окно «Добавить устройство» ── */
.s22-dev-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: s22FadeIn 0.2s ease;
}

.s22-dev-modal-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.s22-dev-modal-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 30px;
}

.s22-dev-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.s22-dev-modal-sub {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.s22-dev-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
}

.s22-dev-modal-close:hover {
  color: #0f172a;
}

.s22-dev-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.s22-dev-qr-canvas {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.s22-dev-modal-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s22-dev-modal-happ-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.s22-dev-modal-happ-btn:hover {
  background: #1e293b;
}

.s22-dev-modal-copy-btn {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.s22-dev-modal-copy-btn:hover {
  background: #e2e8f0;
}

.s22-dev-modal-steps {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Мобильная адаптация Устройств ── */
@media (max-width: 640px) {
  .s22-dev-stats-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .s22-dev-available-badge {
    align-self: flex-start;
  }
  .s22-dev-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .s22-dev-add-btn,
  .s22-dev-unbind-all-btn {
    width: 100%;
    justify-content: center;
  }
  .s22-dev-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .s22-dev-banner-btn {
    width: 100%;
    text-align: center;
  }
  .s22-dev-row {
    padding: 14px 16px;
    gap: 12px;
  }
  .s22-dev-row-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}


/* ── Стили всплывающего уведомления подключения ── */
.s22-connect-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  pointer-events: none;
  animation: s22ToastIn 0.25s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 90vw;
}

@keyframes s22ToastIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.s22-connect-toast-inner {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

button.btn-connect-happ,
button.btn-connect-incy {
  font-family: inherit;
  text-align: left;
}
/* ── Иконки платформ внутри кнопок автоподключения ── */
.btn-connect-platforms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 5px;
  line-height: 1;
}

.s22-plat-ico {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: opacity .15s ease, transform .15s ease, fill .15s ease, color .15s ease;
}

.btn-connect-happ .s22-plat-ico {
  fill: #94a3b8;
  color: #94a3b8;
}

.btn-connect-happ:hover .s22-plat-ico {
  fill: #ffffff;
  color: #ffffff;
  transform: translateY(-0.5px);
}

.btn-connect-incy .s22-plat-ico {
  fill: #64748b;
  color: #64748b;
}

.btn-connect-incy:hover .s22-plat-ico {
  fill: #0f172a;
  color: #0f172a;
  transform: translateY(-0.5px);
}


/* ── Сброс всех устройств (Ротация ключей & Модальное окно) ── */
.s22-dev-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
}
.s22-dev-active-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.s22-dev-common-key-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.s22-dev-common-key-hint svg {
  color: #94a3b8;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Модальное окно подтверждения сброса (Dark Premium v2.0 по референсу) */
.s22-reset-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.s22-reset-modal-overlay.is-visible {
  opacity: 1;
}

.s22-reset-modal-card {
  background: #15181f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 26px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: scale(0.94) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  box-sizing: border-box;
}
.s22-reset-modal-overlay.is-visible .s22-reset-modal-card {
  transform: scale(1) translateY(0);
}

.s22-reset-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.s22-reset-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
}

.s22-reset-modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: -0.3px;
}

.s22-reset-modal-body {
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 12px;
}

.s22-reset-modal-subhint {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 24px;
}

.s22-reset-modal-actions {
  display: flex;
  gap: 12px;
}

.s22-reset-btn-cancel {
  flex: 1;
  background: #232730;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.s22-reset-btn-cancel:hover {
  background: #2d323e;
  color: #ffffff;
}

.s22-reset-btn-confirm {
  flex: 1;
  background: #ef4444;
  border: none;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.s22-reset-btn-confirm:hover:not(:disabled) {
  background: #dc2626;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}
.s22-reset-btn-confirm:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}


/* ── Информационный блок по управлению устройствами ── */
.s22-dev-guide-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.s22-dev-guide-header {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.s22-dev-guide-header svg {
  color: #0284c7;
  flex-shrink: 0;
}

.s22-dev-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 680px) {
  .s22-dev-guide-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.s22-dev-guide-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s22-dev-guide-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  flex-wrap: wrap;
}

.s22-dev-guide-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.s22-dev-guide-badge.badge-neutral {
  background: #e2e8f0;
  color: #334155;
}

.s22-dev-guide-badge.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.s22-dev-guide-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #475569;
}

.s22-dev-guide-text b {
  color: #0f172a;
  font-weight: 600;
}

.s22-dev-guide-text .s22-guide-sub {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 11.5px;
  font-style: italic;
}

/* ── Предупреждение внутри модального окна отвязки (Dark Premium v2.0) ── */
.s22-unbind-warning-box {
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 22px;
  text-align: left;
}
.s22-unbind-warning-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.s22-unbind-warning-title svg {
  flex-shrink: 0;
  color: #fbbf24;
}
.s22-unbind-warning-text {
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.5;
}
.s22-unbind-warning-text b {
  color: #ffffff;
  font-weight: 600;
}

/* ── Верхняя карточка пополнения с преимуществами (в стиле конкурентов и cloud.html) ── */
.c22-topup-header-card {
  background: linear-gradient(120deg, #ffffff 5%, #edf3f7 82%, #dce6ed);
  border: 1px solid #ffffff;
  outline: 1px solid #dce7ee;
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(52, 72, 90, 0.04);
}

.c22-topup-header-lead {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.c22-topup-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #edf2f6;
  border: 1px solid #dbe5ec;
  color: #202d3b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c22-topup-header-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.c22-topup-header-title {
  font-size: 20px;
  font-weight: 750;
  color: #202d3b;
  letter-spacing: -0.015em;
  margin: 0;
}

.c22-topup-header-sub {
  font-size: 13.5px;
  color: #4e6173;
  line-height: 1.45;
  margin: 0;
}

.c22-topup-badges-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}

.c22-topup-badges-list li {
  font-size: 13px;
  font-weight: 600;
  color: #202d3b;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.c22-badge-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #059669;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .c22-topup-header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
  }
  .c22-topup-badges-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}

/* Заблокированная кнопка с курсором крестика (not-allowed) */
.c22-primary-btn:disabled,
.lk-topup-submit-btn:disabled {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  border: 1px solid #cbd5e1 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  transform: none !important;
}

.c22-primary-btn:disabled::after,
.lk-topup-submit-btn:disabled::after {
  display: none !important;
}
