/* ═══════════════════════════════════════════════════════════════════════
   Golden Card — Личный кабинет (app.css)
   Переиспуем дизайн-токены и шрифты из styles.css (подключается первым).
   ═══════════════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body.app-body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────── Верхняя панель ─────────────── */
.app-topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.app-logo-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #2C1F04, var(--gold));
  display: flex; align-items: center; justify-content: center;
}
.app-logo-text { font-weight: 800; font-size: 17px; letter-spacing: -0.3px; }
.app-logo-text span { color: var(--gold); }
.app-topbar-right { font-size: 13px; color: var(--muted); margin-left: auto; }

/* ─────────────── Верхние вкладки кабинета (Виртуальные карты / Оплата сервисов) ─────────────── */
.topnav { display: flex; align-items: center; gap: 4px; margin-left: 26px; }
.topnav-tab {
  border: none; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--muted);
  padding: 8px 14px; border-radius: 99px;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.topnav-tab:hover { color: var(--text); }
.topnav-tab.active { color: var(--gold); background: rgba(124, 58, 237, .09); }
/* Подпись вкладки: на широком экране полная, на телефоне короткая («Виртуальные карты» → «Карты»).
   Без этого четыре вкладки в 375px не помещаются и строку приходится прокручивать. */
.tn-short { display: none; }
/* телефон: вкладки второй строкой на всю ширину, БЕЗ горизонтальной прокрутки —
   короткие подписи + сжимаемые кнопки укладывают все четыре в один экран. */
@media (max-width: 700px) {
  .app-topbar { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; row-gap: 4px; }
  .topnav {
    order: 3; width: 100%; margin: 0 -20px; padding: 0 14px;
    justify-content: space-between; gap: 2px; overflow: visible;
  }
  .topnav-tab { font-size: 13px; padding: 7px 10px; flex: 0 1 auto; min-width: 0; }
  .tn-full { display: none; }
  .tn-short { display: inline; }
}
/* совсем узкие экраны (iPhone SE и уже) — поджимаем отступы, а не режем текст */
@media (max-width: 380px) {
  .topnav { padding: 0 10px; }
  .topnav-tab { font-size: 12.5px; padding: 7px 8px; }
}
/* широкий десктоп: меню по центру шапки (шапка sticky = positioned, absolute считается от неё) */
@media (min-width: 860px) {
  .topnav { position: absolute; left: 50%; transform: translateX(-50%); margin-left: 0; }
}
.app-logout { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; }
.app-logout:hover { color: var(--text); }

/* ─────────────── Контейнер контента ─────────────── */
.app-wrap { max-width: 480px; margin: 0 auto; padding: 24px 16px calc(100px + env(safe-area-inset-bottom, 0px)); }

/* ─────────────── Экран входа / регистрации ─────────────── */
.auth-pending .app-topbar,
.auth-mode .app-topbar { display:none; }
body.auth-mode { overflow-x:hidden; background:#E9E8EE; }
#view-auth { min-height:100vh; }
.auth-shell {
  position:relative; isolation:isolate; min-height:100vh; overflow:hidden; display:flex; align-items:center; justify-content:center; padding:42px 20px;
  background:
    radial-gradient(780px 520px at 10% 4%, rgba(124,58,237,.28), transparent 64%),
    radial-gradient(720px 520px at 92% 94%, rgba(139,92,246,.22), transparent 65%),
    linear-gradient(145deg,#E9E7EE 0%,#D8D6DF 48%,#C9C7D1 100%);
}
.auth-shell::before {
  content:""; position:absolute; inset:0; z-index:-3; opacity:.38;
  background-image:linear-gradient(rgba(255,255,255,.32) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.32) 1px,transparent 1px);
  background-size:54px 54px; mask-image:linear-gradient(to bottom,rgba(0,0,0,.6),transparent 78%);
}
.auth-orbit { position:absolute; z-index:-2; border:1px solid rgba(255,255,255,.52); border-radius:50%; pointer-events:none; }
.auth-orbit--one { width:520px; height:520px; left:-220px; top:-250px; box-shadow:0 0 0 80px rgba(255,255,255,.06),0 0 0 160px rgba(255,255,255,.035); }
.auth-orbit--two { width:440px; height:440px; right:-170px; bottom:-250px; box-shadow:0 0 0 70px rgba(255,255,255,.055); }
.auth-card {
  position:relative; width:100%; max-width:460px; padding:38px 34px 30px; border:1px solid rgba(255,255,255,.78); border-radius:28px;
  background:rgba(255,255,255,.94); box-shadow:0 28px 80px rgba(32,29,39,.24),inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter:blur(24px);
}
.auth-close { position:absolute; top:15px; right:17px; width:32px; height:32px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#8E8995; text-decoration:none; font-size:22px; line-height:1; transition:.15s ease; }
.auth-close:hover { color:#302A39; background:#F1EFF4; }
.auth-brand { width:max-content; margin:0 auto 24px; display:flex; align-items:center; gap:10px; color:#19151F; text-decoration:none; }
.auth-brand-mark { width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#2C1F04,#7C3AED); box-shadow:0 8px 18px rgba(124,58,237,.2); }
.auth-brand-mark svg { width:21px; height:21px; }
.auth-brand-name { display:grid; grid-template-columns:auto auto; justify-content:start; column-gap:4px; font-size:18px; font-weight:800; letter-spacing:-.03em; }
.auth-brand-name b { color:#7C3AED; }
.auth-brand-name small { grid-column:1/-1; margin-top:1px; color:#9993A0; font-size:8px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.auth-eyebrow { display:block; margin-bottom:8px; color:#7C3AED; font-size:10px; font-weight:800; letter-spacing:.13em; text-align:center; text-transform:uppercase; }
.auth-title { margin-bottom:9px; font-size:28px; font-weight:800; line-height:1.17; letter-spacing:-.035em; text-align:center; }
.auth-sub { max-width:360px; margin:0 auto 25px; color:#77717F; font-size:14px; line-height:1.55; text-align:center; }
.auth-form { display:grid; }
.auth-email-field { margin-bottom:14px; }
.auth-input-wrap { position:relative; display:block; }
.auth-input-wrap > svg { position:absolute; left:15px; top:50%; width:20px; height:20px; color:#918A99; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; transform:translateY(-50%); pointer-events:none; }
.auth-email-field .auth-input-wrap input[type="email"] { height:54px; padding:0 16px 0 50px; border-color:#DFDCE4; border-radius:14px; background:#FAF9FB; box-shadow:inset 0 1px 2px rgba(35,26,49,.03); }
.auth-email-field .auth-input-wrap input[type="email"]:hover { border-color:#CFC9D8; }
.auth-email-field .auth-input-wrap input[type="email"]:focus { border-color:#8B5CF6; background:#fff; box-shadow:0 0 0 4px rgba(124,58,237,.09); }
#auth-btn { min-height:56px; border:0; border-radius:16px; background:linear-gradient(105deg,#5B21B6,#7C3AED 58%,#9B64F4); box-shadow:0 12px 26px rgba(91,33,182,.22); font-size:15px; font-weight:800; }
#auth-btn:not(:disabled):hover { transform:translateY(-1px); box-shadow:0 15px 32px rgba(91,33,182,.3); }
#auth-btn::after { content:"→"; margin-left:8px; }
.auth-methods { margin:18px 0 16px; display:flex; justify-content:center; gap:8px; }
.auth-methods span { min-height:32px; padding:0 10px; border:1px solid #E8E4ED; border-radius:99px; display:flex; align-items:center; gap:6px; color:#746E7A; background:#FAF9FB; font-size:10px; font-weight:700; }
.auth-methods svg { width:14px; height:14px; color:#7C3AED; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.auth-legal { color:#9A949F; font-size:10px; line-height:1.55; text-align:center; }
.auth-legal a { color:#756D80; text-decoration:underline; text-underline-offset:2px; }
.auth-back-link { width:max-content; margin:19px auto 0; display:block; color:#746E7A; font-size:11px; text-decoration:none; }
.auth-back-link:hover { color:#7C3AED; }
/* Подсказка про папку «Спам» используется в окне одноразового кода. */
.auth-note { display:flex; align-items:center; gap:6px; margin:10px 2px 18px; color:var(--muted); font-size:13px; font-weight:500; line-height:1.4; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input[type="email"],
.field input[type="text"],
.field input[type="tel"],
.field input[type="number"] {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit; font-size: 15px;
  background: #fff; color: var(--text);
  transition: border-color .15s;
}
.field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit;
}
.field select:focus { outline: none; border-color: var(--gold); }
#close-consent-yes, #close-consent-no {
  flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: transparent; color: var(--text); cursor: pointer;
}
#close-consent-yes.active { border-color: #2e9b62; background: rgba(46,155,98,.12); }
#close-consent-no.active { border-color: #c0392b; background: rgba(192,57,43,.1); }
.field input:focus { outline: none; border-color: var(--gold); }
.field input[type="number"].topup-amount--invalid {
  color: #c0392b;
  border-color: #c0392b;
}

.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 22px; }
.consent input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--gold); flex-shrink: 0; }
.consent label { font-size: 12.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent a { color: var(--gold); text-decoration: none; }
.consent a:hover { text-decoration: underline; }

/* Кнопка (переиспользуем .btn .btn-gold из styles.css, добавляем full + disabled) */
.btn-full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ─────────────── Модалка кода ─────────────── */
.app-modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(34,29,43,.58);
  z-index: 100;
  align-items: center; justify-content: center;
  padding:20px; backdrop-filter:blur(8px);
}
.app-modal-backdrop.open { display: flex; }
.app-modal {
  background:rgba(255,255,255,.98);
  border:1px solid rgba(255,255,255,.86); border-radius:26px;
  padding:36px 30px 30px;
  width:100%; max-width:430px;
  max-height:calc(100dvh - 24px); overflow-y:auto; overscroll-behavior:contain;
  text-align: center;
  position:relative; box-shadow:0 30px 90px rgba(24,18,35,.34);
}
.auth-code-icon { width:52px; height:52px; margin:0 auto 15px; border-radius:16px; display:flex; align-items:center; justify-content:center; color:#7C3AED; background:#F1EBFF; box-shadow:inset 0 0 0 1px rgba(124,58,237,.07); }
.auth-code-icon svg { width:25px; height:25px; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.app-modal h2 { font-size:23px; font-weight:800; letter-spacing:-.025em; margin-bottom:8px; }
.app-modal p { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 22px; }
.app-modal p b { color: var(--text); }
/* Заметка про папку «Спам» в модалке кода — по центру, как остальной текст (в .auth-note flex без justify тянет влево) */
.app-modal .auth-note { justify-content: center; }

.otp { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.otp input {
  width:46px; height:56px;
  text-align: center;
  font-size: 22px; font-weight: 700;
  border: 1px solid var(--border);
  border-radius:13px;
  background:#FAF9FB; color:var(--text);
}
.otp input:focus { outline:none; border-color:var(--gold); background:#fff; box-shadow:0 0 0 3px rgba(124,58,237,.09); }

.link-btn { background: none; border: none; color: var(--gold); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.hint { font-size: 12px; color: var(--muted); margin-top: 14px; }
.error-text { color: #C0392B; font-size: 13px; margin-top: 10px; min-height: 16px; }

.modal-x {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: var(--bg); color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-x:hover { color: var(--text); }

@media (max-width:720px) {
  .auth-shell { padding:18px 14px; align-items:center; }
  .auth-orbit--one { left:-360px; top:-300px; }
  .auth-orbit--two { right:-310px; bottom:-280px; }
  .auth-card { max-width:440px; padding:34px 22px 25px; border-radius:24px; }
  .auth-brand { margin-bottom:21px; }
  .auth-title { font-size:25px; }
  .auth-sub { margin-bottom:22px; font-size:13px; }
  .auth-methods { margin-top:16px; }
  .app-modal { padding:32px 18px 26px; border-radius:24px; }
  .otp { gap:6px; }
  .otp input { width:min(44px,13vw); height:54px; }
}

/* ─────────────── Вкладки (нижняя навигация) ─────────────── */
.app-tabs {
  position: fixed; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  width: calc(100% - 28px); max-width: 460px;
  height: 62px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;                                  /* плавающая «таблетка» (овальная рамка) */
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .05);
  display: flex;
  z-index: 40;
  padding: 0 6px;
}
.app-tab {
  flex: 1;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font: inherit; font-size: 10px; font-weight: 600;
  border-radius: 999px;
  text-decoration: none; text-align: center; line-height: 1.15;
}
.app-tab svg { width: 22px; height: 22px; }
.app-tab.active { color: var(--gold); }

/* ─────────────── Экран выбора карты ─────────────── */
.screen-title { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 6px; }
.screen-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }

/* ─────────────── Оплата сервисов (вторая верхняя вкладка): витрина ─────────────── */
.svc-loading { text-align: center; color: var(--muted); font-size: 14px; padding: 26px 10px; }
.svc-note { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
/* герой «Пополнение Steam» */
.svc-hero {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 20px 18px; margin-bottom: 26px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
}
.svc-hero__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.svc-hero__img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.svc-hero__head h3 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 3px; }
.svc-hero__head p { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
/* блоки категорий: топ-4 товара */
.svc-cat { margin-bottom: 24px; }
.svc-cat__head h3 { font-size: 16px; font-weight: 800; letter-spacing: -.2px; margin-bottom: 10px; }
.svc-prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-prod {
  text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s ease, transform .1s ease;
}
.svc-prod:hover { border-color: var(--gold); transform: translateY(-2px); }
.svc-prod img { width: 100%; aspect-ratio: 1.9/1; object-fit: cover; border-radius: 10px; background: var(--bg); }
.svc-prod__noimg { width: 100%; aspect-ratio: 1.9/1; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.svc-prod h4 { font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-prod p { font-size: 12px; color: var(--gold); font-weight: 700; margin-top: auto; }
/* экран товара */
.svc-detail { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 18px; }
.svc-detail__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.svc-detail__head img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.svc-detail__head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; line-height: 1.25; }
.svc-detail__head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
/* выбор номинала */
.svc-sku-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-sku {
  font: inherit; cursor: pointer; text-align: left;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
  transition: border-color .15s ease;
}
.svc-sku span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.svc-sku b { font-size: 13.5px; }
.svc-sku--on, .svc-sku:hover { border-color: var(--gold); }
.svc-sku--on { background: rgba(124, 58, 237, .06); }
/* «Все сервисы»: пагинация */
.svc-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.svc-page-btn {
  width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.svc-page-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.svc-page-btn:disabled { opacity: .35; cursor: default; }
.svc-page-info { font-size: 13px; color: var(--muted); font-weight: 600; }
/* оплата и выдача */
.svc-pay { text-align: center; }
.svc-pay h2 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.svc-paystatus { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.svc-code {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  background: var(--bg); border: 1px dashed var(--gold); border-radius: 12px;
  padding: 12px 16px; font-size: 16px; font-weight: 800; letter-spacing: .5px;
  word-break: break-all;
}

/* ─────────────── eSIM (третья верхняя вкладка) ─────────────── */
.esim-card {
  cursor: pointer; font: inherit; color: var(--text); text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color .15s ease, transform .1s ease;
}
.esim-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.esim-flag { font-size: 34px; line-height: 1; }
.esim-flag--big { font-size: 46px; }
/* флаги-картинки (image_url из каталога) — круглые, как на макете */
.esim-flagimg { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.esim-flagimg--big { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.esim-sim__flagimg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.esim-card__name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.esim-card__price { font-size: 12.5px; font-weight: 700; color: var(--gold); margin-top: auto; }
.esim-detail__head { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.esim-detail__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.esim-detail__head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.esim-group__title { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 18px 0 8px; }
.esim-pkgs { display: flex; flex-direction: column; gap: 10px; }
/* ─── Фильтры тарифов внутри страны (объём / срок) ─── */
.esim-filters { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 6px; }
.esim-filter { display: flex; align-items: flex-start; gap: 10px; }
.esim-filter__lbl { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; min-width: 52px; padding-top: 7px; flex: 0 0 52px; }
.esim-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.esim-chip {
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 99px; padding: 6px 12px;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.esim-chip:hover { border-color: var(--gold); }
.esim-chip.active { background: var(--gold); border-color: var(--gold); color: #fff; }
/* ─── Популярные страны: SIM-карточки на первом экране ─── */
.esim-pop__title { text-align: center; font-size: 20px; font-weight: 800; letter-spacing: -.3px; margin: 8px 0 16px; }
.esim-pop__title span { color: var(--gold); }
/* сетка: все 6 стран видны сразу (2 колонки на телефоне, 3 — на широком экране) */
.esim-pop__row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 2px 2px 10px;
}
@media (min-width: 560px) { .esim-pop__row { grid-template-columns: repeat(3, 1fr); } }
.esim-sim {
  position: relative; cursor: pointer; min-width: 0;
  font: inherit; color: var(--text); text-align: left;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; border-top-right-radius: 30px;   /* срезанный угол — как у SIM */
  padding: 14px 14px 18px; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .1s ease;
}
.esim-sim:hover { border-color: var(--gold); transform: translateY(-2px); }
.esim-sim__badge {
  align-self: flex-start; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--gold); border-radius: 99px; padding: 4px 9px; margin-bottom: 14px;
}
.esim-sim__label { font-size: 12px; color: var(--muted); }
.esim-sim__name { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.esim-sim__flag {
  align-self: center; margin-top: 12px; font-size: 60px; line-height: 1;
  width: 92px; height: 92px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: 50%; overflow: hidden;
}
.esim-all__title { font-size: 17px; font-weight: 800; letter-spacing: -.2px; margin: 22px 0 12px; }
.esim-pkg {
  cursor: pointer; font: inherit; color: var(--text); text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  transition: border-color .15s ease;
}
.esim-pkg:hover:not(:disabled) { border-color: var(--gold); }
.esim-pkg:disabled { opacity: .5; cursor: default; }
.esim-pkg__data { font-size: 15px; font-weight: 800; }
.esim-pkg__days { font-size: 13px; color: var(--muted); }
.esim-pkg__price { font-size: 15px; font-weight: 800; color: var(--gold); }
.esim-qr-activate {
  width: 220px; height: 220px; margin: 14px auto 4px; padding: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
}
.esim-qr-activate svg { width: 100%; height: 100%; }

.card-choice-list { display: flex; flex-direction: column; gap: 16px; }
.card-choice {
  text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--card); padding: 16px;
  display: flex; gap: 14px; align-items: center;
  transition: border-color .15s, transform .1s;
}
.card-choice:hover { border-color: var(--gold); transform: translateY(-2px); }
.card-choice-mini {
  width: 64px; height: 42px; border-radius: 8px; flex-shrink: 0;
}
.card-choice-mini.travel { background: linear-gradient(140deg, #1C1408, #6B520F); }
.card-choice-mini.sub    { background: linear-gradient(140deg, #111, #333); }
.card-choice-mini.ads    { background: linear-gradient(140deg, #0C1520, #1E3040); }
.card-choice-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.card-choice-info p { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.card-choice-arrow { margin-left: auto; color: var(--muted); }

/* ─────────────── Кнопка «назад» ─────────────── */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
  margin-bottom: 16px; padding: 0;
}
.back-btn:hover { color: var(--text); }

/* Выбор типа карты при выпуске (экран «Выберите карту») */
.pick-card {
  position: relative; display: block; width: 100%; text-align: left;
  padding: 20px 46px 20px 20px; margin-bottom: 14px;
  background: #fff; border: 1.5px solid var(--line, #E6E6EF); border-radius: 18px;
  cursor: pointer; font: inherit;
  transition: border-color .15s, box-shadow .15s, transform .05s;
}
.pick-card:hover { border-color: var(--brand, #7C3AED); box-shadow: 0 6px 20px rgba(124, 58, 237, .10); }
/* Премиальный вариант (карта 2328) — розовая обводка, чтобы выделялся среди прочих */
.pick-card--premium {
  border-color: #EC4899;
  box-shadow: 0 6px 22px rgba(236, 72, 153, .16);
}
.pick-card--premium:hover {
  border-color: #DB2777;
  box-shadow: 0 8px 26px rgba(236, 72, 153, .26);
}
.pick-card--premium .pick-card-a { color: #EC4899; }
/* Первый способ оплаты — голубой и подсвеченный, чтобы выделялся среди одинаковых «СБП N».
   Цвет взят под логотип СБП рядом; премиум-карточка розовая, так что варианты не путаются. */
.pick-card--sbp1 {
  border-color: #0EA5E9;
  background: #F0F9FF;
  box-shadow: 0 6px 22px rgba(14, 165, 233, .18);
}
.pick-card--sbp1:hover {
  border-color: #0284C7;
  box-shadow: 0 8px 26px rgba(14, 165, 233, .28);
}
.pick-card--sbp1 .pick-card-a { color: #0EA5E9; }
/* Второй способ — запасной, жёлтая подсветка: заметно, но спокойнее голубой,
   чтобы читалось как «запасной», а не как второй равнозначный вариант. */
.pick-card--sbp2 {
  border-color: #F59E0B;
  background: #FFFBEB;
  box-shadow: 0 6px 22px rgba(245, 158, 11, .16);
}
.pick-card--sbp2:hover {
  border-color: #D97706;
  box-shadow: 0 8px 26px rgba(245, 158, 11, .26);
}
.pick-card--sbp2 .pick-card-a { color: #F59E0B; }

.pick-card:active { transform: scale(.995); }
/* Карточка с собственной кнопкой: сама она уже не кликается, поэтому убираем курсор-руку,
   нажатие и правый отступ под стрелку — стрелки здесь больше нет. */
.pick-card--act { cursor: default; padding-right: 20px; }
.pick-card--act:active { transform: none; }
.pick-card--act:hover { border-color: var(--line, #E6E6EF); box-shadow: none; }
.pick-card--act.pick-card--premium:hover { border-color: #EC4899; box-shadow: 0 6px 22px rgba(236, 72, 153, .16); }

/* ── Тариф на паузе ──
   Приглушаем, но НЕ прячем и не размываем: клиент должен видеть, что вариант есть и почему он
   сейчас закрыт. Серый здесь означает «выключено», а не «нечитаемо», поэтому текст держим
   контрастным — приглушается фон, рамка и отклик, а не разборчивость.
   Селекторы с двумя классами перебивают .pick-card--premium: розовая обводка не должна
   пережить паузу, иначе выключенный вариант продолжает выглядеть самым заманчивым. */
.pick-card--pauza,
.pick-card--pauza:hover,
.pick-card--pauza.pick-card--premium,
.pick-card--pauza.pick-card--premium:hover,
.pick-card--act.pick-card--pauza.pick-card--premium:hover {
  background: #FAFAFB;
  border-color: #E6E6EF;
  box-shadow: none;
}
.pick-card--pauza .pick-card-t { color: #6B6B80; }        /* контраст к #FAFAFB ≈ 5.4:1 — читается */
.pick-card--pauza .pick-card-s { color: #8A8A9E; }
.pick-card--pauza .pick-card-p { color: #8A8A9E; font-weight: 700; }
/* Фирменный фиолетовый гасим полностью: полупрозрачная кнопка того же цвета читается как
   «доступна, просто выцвела», и клиент продолжает по ней бить. Нейтральный серый однозначен.
   Текст при этом не приглушаем сверх нормы — надпись должна остаться читаемой. */
/* ⚠️ Селекторы намеренно длинные. redesign.css подключается ПОСЛЕ app.css, и у бета-аккаунтов
   `.redesign .btn-gold` (два класса) заливает кнопку фиолетовым градиентом. При равном весе
   побеждает тот, что ниже по порядку, — то есть редизайн. Поэтому здесь три класса в покое
   и три плюс :hover при наведении: это перевешивает и `.redesign .btn-gold`, и его
   `:hover:not(:disabled)`. Укоротишь селектор — у беты вернётся фиолетовая кнопка.
   Границу задаём целиком: редизайн ставит `border:none`, и одного border-color было бы мало. */
.pick-card.pick-card--act.pick-card--pauza .pick-card-btn {
  cursor: not-allowed;
  opacity: 1;                 /* глушим цветом, а не прозрачностью */
  background: #ECECF2;
  background-image: none;     /* сносим градиент редизайна */
  border: 1px solid #DCDCE6;
  color: #6B6B80;
  box-shadow: none;
  transform: none;
  filter: none;               /* редизайн подсвечивает brightness(1.06) — нам это не нужно */
  /* Отклик мгновенный: 120 мс — на границе заметности, отклик не должен «догонять» курсор.
     Анимируем только цвет, без сдвига: подпрыгивающая кнопка обещала бы действие, которого нет. */
  transition: background-color .12s ease-out, border-color .12s ease-out, color .12s ease-out;
  pointer-events: auto;
}
/* Наведение затемняет. Это не приглашение нажать, а подтверждение «вижу тебя, но выпуск закрыт»:
   без отклика выключенная кнопка ощущается как картинка, и человек тычет в неё повторно. */
.pick-card.pick-card--act.pick-card--pauza .pick-card-btn:hover {
  background: #DCDCE6;
  background-image: none;
  border-color: #C7C7D4;
  color: #55556B;
  box-shadow: none;
  transform: none;
  filter: none;
}
/* Тем, кто просил меньше движения, оставляем смену цвета — она не вестибулярная,
   а вот переход убираем, чтобы не было даже плавного движения. */
@media (prefers-reduced-motion: reduce) {
  .pick-card.pick-card--act.pick-card--pauza .pick-card-btn { transition: none; }
}
/* Плотнее фона карточки, чтобы пометка о паузе не терялась в общем сером. */
.pick-card--pauza .pick-card-tag { background: #ECECF2; border-color: #DCDCE6; color: #5A5A6E; }
/* Кому системно не хватает контраста — возвращаем чёткую границу вместо мягкой заливки. */
@media (prefers-contrast: more) {
  .pick-card--pauza { background: #fff; border-color: #6B6B80; }
  .pick-card--pauza .pick-card-t { color: var(--text, #1B1B2F); }
}

.pick-card-btn { margin-top: 14px; }
.pick-card-t { display: block; font-size: 17px; font-weight: 700; color: var(--text, #1B1B2F); line-height: 1.3; }
/* Строка названия: значок СБП, само название и пометка роли в один ряд по центру.
   ВАЖНО: правило обязано идти ПОСЛЕ .pick-card-t — у них одинаковая специфичность,
   и display:block оттуда иначе перебьёт flex (значок съезжает на базовую линию).
   Перенос разрешён: на узком экране пометка уходит на свою строку, а не ломает вёрстку. */
.pick-card-t--row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.pick-card-t--row .sbp-badge { width: 24px; height: 24px; padding: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.10); }

/* Пометка роли способа оплаты: «лучшее решение» / «запасной N». Стоит сразу за названием,
   а не у правого края: так она читается как подпись к варианту, а не как отдельный элемент. */
.pick-card-tag { padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  color: #6B6B80; background: #F1F1F6; border: 1px solid #E6E6EF; }
/* Зелёная: тот же оттенок, что у «Бонус $5 на баланс» на выборе карты — в кабинете зелёный уже
   означает «выгодно/хорошо». Фон бледный, а не сплошная заливка: плотный прямоугольник на голубой
   карточке спорил бы с ней за внимание. */
.pick-card-tag--best { color: #16A34A; background: #F0FDF4; border-color: #BBF7D0; }
.pick-card-tag--alt  { color: #B45309; background: #FEF3C7; border-color: #FDE68A; }
/* Пометка отдельной строкой под подписью: рядом с длинным заголовком она не помещается
   и переносилась, разрывая карточку посередине. */
.pick-card-tag--own { display: inline-block; margin-top: 8px; }

/* ── Экран выбора способа оплаты ── */
/* Основной способ — крупнее прочих карточек: он должен читаться как главное действие,
   а не как один из равнозначных пунктов списка. */
.pick-card--pay { padding: 36px 58px 36px 28px; border-radius: 24px; }
.pick-card--pay .pick-card-t { font-size: 23px; }
.pick-card--pay .pick-card-s { margin-top: 10px; font-size: 16px; }
.pick-card--pay .sbp-badge { width: 52px; height: 52px; padding: 4px; border-radius: 13px; }
.pick-card--pay .pick-card-t--row { gap: 10px 16px; }
.pick-card--pay .pick-card-tag { margin-top: 12px; padding: 5px 12px; font-size: 13px; }
/* Стрелка — это сам <svg class="pick-card-a">, размер задан атрибутами width/height,
   поэтому переопределяем именно на нём, иначе она осталась бы мелкой рядом с крупным текстом. */
.pick-card--pay .pick-card-a { right: 22px; width: 24px; height: 24px; }
/* На узком экране заголовок с крупным значком перестаёт помещаться в строку —
   сбавляем ровно настолько, чтобы «Оплатить через СБП» осталось одной строкой. */
@media (max-width: 420px) {
  .pick-card--pay { padding: 28px 46px 28px 20px; }
  .pick-card--pay .pick-card-t { font-size: 19px; }
  .pick-card--pay .pick-card-s { font-size: 15px; }
  .pick-card--pay .sbp-badge { width: 44px; height: 44px; }
  .pick-card--pay .pick-card-a { right: 16px; }
}

/* Кнопки резерва разного цвета: одинаковые белые читались как один вариант, разбитый надвое.
   Боковые отступы урезаны с 24 до 12 px: со значком строка «СБП Резерв-1» просит ~131 px, а при
   прежних отступах на 375 px под текст оставалось 119 — надпись переносилась на вторую строку. */
/* Селектор тяжёлый НЕ для красоты: отступы кнопке задаёт `body.app-body .btn` НИЖЕ по файлу.
   При равной специфичности побеждает последнее правило, поэтому и голый `.pay-res`, и
   `body.app-body .pay-res` проигрывали — 24 px оставались на месте и надпись переносилась.
   Лишний класс в селекторе перевешивает, не завися от порядка строк. */
body.app-body .btn.pay-res { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding-left: 12px; padding-right: 12px; font-size: 14px; letter-spacing: normal; white-space: nowrap;
  border: 1px solid transparent; font-weight: 600; transition: background .15s, border-color .15s; }
/* Значок на белой подложке — как на основной карточке, чтобы способ оплаты читался одинаково на
   всех трёх кнопках. box-sizing: border-box глобальный, поэтому 30 px — это внешний размер
   подложки, а сам логотип внутри занимает 22 px. */
.pay-res__ico { width: 30px; height: 30px; flex: none; object-fit: contain; display: block;
  padding: 4px; background: #fff; border-radius: 9px; box-shadow: 0 1px 3px rgba(0, 0, 0, .10); }
.pay-res--1 { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.pay-res--1:hover { background: #FEF3C7; border-color: #FCD34D; }
.pay-res--2 { background: #F1F5F9; border-color: #CBD5E1; color: #475569; }
.pay-res--2:hover { background: #E2E8F0; border-color: #94A3B8; }

/* Пояснение под основным способом оплаты: почему рядом есть резервные кнопки. */
.pay-reserve-note { margin: 20px 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted, #6B6B80); }
.pick-card-s { display: block; margin-top: 5px; font-size: 14px; color: var(--muted, #6B6B80); }
/* Бонус на баланс — только у карты 2328. Зелёный, как «Лучший выбор» на лендинге: это выгода,
   а не техническая деталь, и должна цепляться взглядом отдельно от серой подписи. */
.pick-card-bonus { display: inline-block; margin-top: 7px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #16A34A; background: #F0FDF4; border: 1px solid #DCFCE7; }
/* цена выпуска у варианта — у эмитентов она разная */
.pick-card-p { display: block; margin-top: 9px; font-size: 16px; font-weight: 800; color: var(--text, #1B1B2F); }
.pick-card-a {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: #C9C9D6; flex: none;
}
.pick-card:hover .pick-card-a { color: var(--brand, #7C3AED); }

/* плашка-заглушка для будущих экранов */
.soon {
  margin-top: 24px; padding: 16px; border-radius: 14px;
  background: var(--gold-light); border: 1px dashed var(--gold);
  font-size: 13px; color: #8a6a12; line-height: 1.5;
}

/* ─────────────── Описание карты ─────────────── */
.card-feature { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.card-feature:last-of-type { border-bottom: none; }
.card-feature-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--gold-light); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-feature-txt h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.card-feature-txt p { font-size: 13px; color: var(--muted); line-height: 1.4; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.price-row .label { font-size: 14px; color: var(--muted); }
.price-row .val { font-size: 22px; font-weight: 800; }

/* ─────────────── Карта в кабинете (с переворотом) ─────────────── */
.lkcard-wrap { perspective: 1200px; margin-bottom: 14px; }
/* Карта-«призрак» на экране выпуска: те же размеры и скругление, но только контур пунктиром */
.lkcard-ghost {
  width: 100%; aspect-ratio: 1.6 / 1; border-radius: 18px;
  border: 2px dashed var(--gold); background: transparent;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--gold); font-weight: 700; font-size: 16px; padding: 24px;
  margin: 6px 0 18px;
}
/* Ряд мини-переключателей карт (только при 2+ картах); меньше размер, кольцо не режется */
.lkthumbs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 8px 8px; margin-bottom: 10px; scrollbar-width: none; }
.lkthumbs::-webkit-scrollbar { display: none; }
.lkthumb { flex: 0 0 auto; width: 74px; height: 46px; border-radius: 10px; border: none; padding: 7px; cursor: pointer; position: relative; opacity: .72; transition: opacity .15s; }
.lkthumb:hover { opacity: 1; }
.lkthumb--on { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.lkthumb__num { position: absolute; left: 8px; bottom: 6px; color: #fff; font-size: 10px; font-family: ui-monospace, monospace; letter-spacing: .5px; }
.lkthumb.travel { background: linear-gradient(140deg, #1C1408 0%, #6B520F 100%); }
.lkthumb.sub    { background: linear-gradient(140deg, #111 0%, #333 100%); }
.lkthumb.ads    { background: linear-gradient(140deg, #0C1520 0%, #1E3040 100%); }
.lkthumb--add { background: #fff; border: 2px dashed var(--border); color: var(--gold); display: flex; align-items: center; justify-content: center; opacity: 1; }
.lkthumb--add span { font-size: 30px; font-weight: 300; line-height: 1; }
.lkthumb--add:hover { border-color: var(--gold); }
body.app-body .lkthumb.travel { background: linear-gradient(140deg, #4C1D95 0%, #9F7AEA 100%); }

/* ─── Инструкция Apple Pay: плитка → единая модальная карточка из DOCX ─── */
.instruction-row { display: flex; gap: 12px; margin: 0 0 8px; padding: 2px; }
.instruction-tile {
  flex: 0 0 auto; border: none; cursor: pointer; padding: 0; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 7px; width: 86px;
  -webkit-tap-highlight-color: transparent;
}
.instruction-tile__ring {
  padding: 3px; border-radius: 23px; display: inline-flex;
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 48%, #FB923C 100%);
  box-shadow: 0 8px 22px rgba(168, 85, 247, .45);
  animation: instructionPulse 2.4s ease-in-out infinite;
  transition: transform .12s ease;
}
.instruction-tile:active .instruction-tile__ring { transform: scale(.94); }
@keyframes instructionPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(168, 85, 247, .4), 0 0 0 0 rgba(236, 72, 153, .5); }
  50% { box-shadow: 0 8px 26px rgba(168, 85, 247, .55), 0 0 0 9px rgba(236, 72, 153, 0); }
}
.instruction-tile__ico {
  width: 62px; height: 62px; border-radius: 19px;   /* закруглённые поля */
  background: linear-gradient(160deg, #9333EA 0%, #6D28D9 100%);
  border: 2px solid var(--bg);                      /* тонкий зазор между кольцом и иконкой */
  display: flex; align-items: center; justify-content: center;
}
.instruction-tile__ico svg { width: auto; height: 32px; margin-top: -2px; }
.instruction-tile__cap { color: var(--text); font-size: 12px; font-weight: 800; line-height: 1.18; text-align: center; }

body.instruction-open { overflow: hidden; }
.instruction-modal {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 12, 35, .78); align-items: center; justify-content: center;
  padding: 20px 12px; backdrop-filter: blur(8px);
}
.instruction-modal.open { display: flex; }
.instruction-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow-y: auto; overscroll-behavior: contain; position: relative;
  border-radius: 26px; background: #F7F5FC; color: #241E2F;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.62;
  box-shadow: 0 32px 100px rgba(10, 4, 20, .58);
  animation: instructionUp .38s cubic-bezier(.22, .9, .3, 1);
  scrollbar-color: #b8b8c1 transparent; scrollbar-width: thin;
}
@keyframes instructionUp { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.instruction-header {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 14px;
  min-height: 92px; padding: 18px 22px;
  color: #fff; background: linear-gradient(128deg, #35145F 0%, #6D28D9 58%, #8B5CF6 100%);
  box-shadow: 0 8px 28px rgba(65, 31, 120, .2);
}
.instruction-header::after {
  content: ''; position: absolute; right: 72px; top: -54px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); pointer-events: none;
}
.instruction-header__icon {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.instruction-header__icon svg { width: 24px; height: 30px; }
.instruction-header__copy { min-width: 0; position: relative; z-index: 1; }
.instruction-header__copy > span {
  display: block; margin-bottom: 3px; color: rgba(255, 255, 255, .72);
  font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: .09em; text-transform: uppercase;
}
.instruction-header h2 { margin: 0; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.4px; }
.instruction-close {
  position: relative; z-index: 2; flex: 0 0 auto; margin-left: auto;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .13); font: inherit;
  transition: background .15s ease, transform .15s ease;
}
.instruction-close:hover { background: rgba(255, 255, 255, .22); }
.instruction-close:active { transform: scale(.94); }
.instruction-close:focus-visible { outline: 3px solid rgba(255, 255, 255, .38); outline-offset: 2px; }
.instruction-card {
  width: 100%; min-height: 100%; padding: 30px 34px 46px;
  color: #332C3E; font: inherit;
}
.instruction-card p { margin: 0; }
.instruction-card b, .instruction-card strong { color: #1C1722; font-weight: 800; }
.instruction-summary {
  position: relative; overflow: hidden; margin-bottom: 20px; padding: 20px 22px;
  border: 1px solid #DED3F7; border-radius: 18px;
  background: linear-gradient(145deg, #F3EEFF 0%, #FAF8FF 100%);
  box-shadow: 0 10px 28px rgba(91, 52, 155, .07);
}
.instruction-summary::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(#7C3AED, #A855F7);
}
.instruction-lead { margin: 0 0 13px !important; }
.instruction-lead:last-child { margin-bottom: 0 !important; }
/* Крупная плашка вверху инструкции Apple Pay: у карт нового эмитента (2328) адрес США,
   поэтому регион аккаунта в инструкции нужно ставить США, а не Сингапур (как у карт Lumo). */
.instruction-notice {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px; padding: 20px 22px;
  background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
  border: 2px solid #A5B4FC; border-radius: 18px;
  box-shadow: 0 10px 28px rgba(79, 70, 229, .08);
}
.instruction-notice__icon { font-size: 30px; line-height: 1; flex: none; }
.instruction-notice p {
  margin: 0; color: #312E81; font-size: 19px; font-weight: 700; line-height: 1.35;
}
.instruction-notice p b { color: #4338CA; }
@media (max-width: 480px) {
  .instruction-notice { gap: 11px; padding: 16px 16px; }
  .instruction-notice__icon { font-size: 25px; }
  .instruction-notice p { font-size: 16.5px; }
}

.instruction-warning {
  margin-bottom: 22px; padding: 19px 20px 18px;
  background: #FFF1F2; border: 1px solid #FECDD3; border-radius: 18px;
  box-shadow: 0 10px 28px rgba(190, 24, 93, .05);
}
.instruction-warning h3 {
  display: flex; align-items: center; gap: 9px; margin: 0 0 11px;
  color: #9F1239; font-size: 18px; font-weight: 800; line-height: 1.25;
}
.instruction-warning h3 span {
  width: 25px; height: 25px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: #E11D48; font-size: 14px; font-weight: 900;
}
.instruction-warning p { margin: 0 0 8px; color: #6F1D35; }
.instruction-warning p:last-child { margin-bottom: 0; }
.instruction-steps { counter-reset: instruction-step; list-style: none; margin: 0; padding: 0; }
.instruction-steps > li {
  counter-increment: instruction-step; position: relative;
  margin: 0 0 14px; padding: 20px 20px 20px 64px;
  background: #fff; border: 1px solid #E8E3F0; border-radius: 18px;
  box-shadow: 0 8px 24px rgba(36, 21, 58, .055);
}
.instruction-steps > li::before {
  content: counter(instruction-step); position: absolute; left: 18px; top: 18px;
  width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, #7C3AED, #9333EA);
  font-size: 13px; font-weight: 900; box-shadow: 0 6px 14px rgba(124, 58, 237, .24);
}
/* заголовок раздела внутри инструкции (напр. «Общие рекомендации») */
.instruction-section-title {
  margin: 26px 0 14px; color: #241E2F; font-size: 20px;
  font-weight: 800; line-height: 1.3; letter-spacing: -.3px;
}
.instruction-section-title:first-child { margin-top: 0; }
/* вложенные подпункты внутри шага */
.instruction-substeps { margin: 10px 0 0; padding-left: 20px; }
.instruction-substeps li { margin: 0 0 6px; padding-left: 2px; }
.instruction-substeps li:last-child { margin-bottom: 0; }
.instruction-note {
  margin-top: 12px; padding: 11px 13px; color: #166534;
  background: #ECFDF3; border: 1px solid #BBF7D0; border-radius: 12px;
}
.instruction-note strong { color: #166534; }
.instruction-card a { color: #6D28D9; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.instruction-image {
  display: block; height: auto; margin: 18px auto 2px;
  padding: 7px; background: #F7F5FA; border: 1px solid #E6E1ED; border-radius: 16px;
  box-shadow: 0 10px 26px rgba(31, 20, 45, .1);
}
.instruction-image--wide { width: min(100%, 480px); }
.instruction-image--phone { width: min(70%, 310px); }
.instruction-image--phone-small { width: min(64%, 285px); }
.instruction-image--success { width: min(68%, 300px); }
.instruction-image-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start;
  gap: 10px; width: 100%; margin: 18px 0 2px;
}
.instruction-image-row img {
  display: block; width: 100%; height: auto; padding: 5px;
  background: #F7F5FA; border: 1px solid #E6E1ED; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(31, 20, 45, .09);
}
.instruction-errors { margin-top: 30px; }
.instruction-errors > h3 { margin: 0 0 16px; color: #241E2F; font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -.3px; }
.instruction-error {
  margin: 0 0 12px; padding: 18px 19px;
  border: 1px solid #FED7AA; border-left: 5px solid #F97316; border-radius: 16px; background: #FFF7ED;
}
.instruction-error--two { border-color: #FDE68A; border-left-color: #EAB308; background: #FFFBEB; }
.instruction-error--three { border-color: #FECDD3; border-left-color: #E11D48; background: #FFF1F2; }
.instruction-error p { margin: 0 0 10px; }
.instruction-error > p > b { font-size: 16px; }
.instruction-error__label { display: inline-block; margin-top: 6px; }
.instruction-error ul { margin: 0; padding-left: 22px; }
.instruction-error li { margin: 0 0 6px; padding-left: 2px; }
.instruction-extra {
  margin-top: 24px; padding: 22px;
  background: #fff; border: 1px solid #E8E3F0; border-radius: 18px;
  box-shadow: 0 8px 24px rgba(36, 21, 58, .045);
}
.instruction-extra h4 { margin: 0 0 10px; color: #241E2F; font-size: 19px; font-weight: 800; line-height: 1.3; }
.instruction-extra h5 { margin: 22px 0 10px; color: #5B21B6; font-size: 15px; font-weight: 800; line-height: 1.3; }
.instruction-data { display: grid; gap: 7px; }
.instruction-data--phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.instruction-data p {
  margin: 0; padding: 10px 12px; overflow-wrap: anywhere;
  background: #FAF9FC; border: 1px solid #EEEAF3; border-radius: 10px;
  font-size: 13px; line-height: 1.45;
}

@media (max-width: 620px) {
  .instruction-modal { padding: 0; align-items: stretch; }
  .instruction-dialog { width: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; }
  .instruction-header { min-height: 82px; padding: 15px 14px; gap: 11px; }
  .instruction-header__icon { width: 43px; height: 43px; border-radius: 14px; }
  .instruction-header__icon svg { width: 20px; height: 25px; }
  .instruction-header__copy > span { font-size: 9px; }
  .instruction-header h2 { font-size: 18px; letter-spacing: -.25px; }
  .instruction-close { width: 36px; height: 36px; }
  .instruction-card { padding: 18px 14px 40px; font-size: 14px; line-height: 1.58; }
  .instruction-summary { padding: 17px 17px 17px 19px; border-radius: 15px; }
  .instruction-warning { padding: 16px; border-radius: 15px; }
  .instruction-warning h3 { font-size: 17px; }
  .instruction-steps > li { padding: 17px 15px 17px 54px; border-radius: 15px; }
  .instruction-steps > li::before { left: 14px; top: 15px; width: 28px; height: 28px; border-radius: 9px; }
  .instruction-image--wide { width: 100%; }
  .instruction-image--phone { width: min(82%, 300px); }
  .instruction-image--phone-small { width: min(76%, 280px); }
  .instruction-image--success { width: min(80%, 290px); }
  .instruction-image-row { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .instruction-image-row img { width: min(82%, 300px); }
  .instruction-errors { margin-top: 24px; }
  .instruction-errors > h3 { font-size: 19px; }
  .instruction-error { padding: 16px 15px; }
  .instruction-extra { padding: 17px 15px; }
  .instruction-extra h4 { font-size: 18px; }
  .instruction-data--phones { grid-template-columns: 1fr; }
}

/* ─── Карусель карт: адаптивный ряд (десктоп — во всю ширину, телефон — свайп пальцем) ─── */
.lkcarousel {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 24px 0;   /* вертикальный запас: при 3D-перевороте ближняя грань «раздувается» выше рамки, иначе overflow-y её режет */
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.lkcarousel::-webkit-scrollbar { display: none; }
.lkcard-item {
  flex: 0 0 min(440px, 78vw); scroll-snap-align: start;
  aspect-ratio: 1.6/1; border-radius: 18px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: .8; transition: opacity .2s ease; perspective: 2000px;   /* мягче 3D — ближняя грань меньше выходит за рамку при перевороте */
}
.lkcard-item.lkcard--active { opacity: 1; }
/* внутренняя обёртка переворачивается по клику на выбранную карту */
.lkci-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s; }
.lkcard-item.flipped .lkci-inner { transform: rotateY(180deg); }
.lkci-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: 18px; padding: 20px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #6D28D9 url('assets/card-face.jpg') center / cover no-repeat;   /* картинка карты (обрезана впритык, JPEG) */
}

/* Дизайн-контракт банковских карт: внешний объём создаём композицией и контрастом,
   но никогда не тенью. Новые карточные компоненты подключают класс .bank-card-design. */
:where(.bank-card-design, .lkci-face, .virtual-card, .mini-card-art) {
  box-shadow: none !important;
}
.lkci-back { transform: rotateY(180deg); }
/* Цвет карты зависит от эмитента: текущий — фиолетовая (по умолчанию), новый (2328) — зелёная.
   Рисунок тот же: подменяем только цвет — blend luminosity берёт светотень с картинки,
   а тон с background-color, поэтому узор сохраняется. */
/* Карта 2328 — чёрная с золотом. БЕЗ картинки card-face.jpg: её тёплые/фиолетовые тона при любом
   режиме наложения (luminosity/overlay/soft-light) уводили цвет в бронзу или оранжевый. */
/* Чёрно-золотой — признак ТАРИФА «Универсальная Premium», а не эмитента: его выпускает и 2328
   (issuer-caas), и Lumo (tier-premium, вне беты). Оба селектора дают одинаковую карту. */
/* skin-gold — чёрно-золотой ТАРИФ (Премиум и историческая «США»); красим по ТАРИФУ, а не по
   реальному эмитенту, чтобы цвет карты у клиента не менялся при смене эмитента под капотом. */
.lkcard-item.issuer-caas .lkci-face,
.lkcard-item.tier-premium .lkci-face,
.lkcard-item.skin-gold .lkci-face {
  /* Чистый чёрный доминирует, узкий переход сразу в металлическое золото — без оливково-бурой
     зоны, из-за которой раньше читалась бронза. Светлая полоса на 90% = блик металла. */
  background: linear-gradient(135deg,
    #000 0%, #040404 44%, #0A0803 56%,
    #6B5310 70%, #D9B441 82%, #F7E9B8 90%, #C9A227 100%);
}
/* «PRO» на чёрно-жёлтой карте — золотой, иначе остаётся фиолетовым от темы по умолчанию */
body.app-body .lkcard-item.issuer-caas .lkcard__brand span,
body.app-body .lkcard-item.tier-premium .lkcard__brand span,
body.app-body .lkcard-item.skin-gold .lkcard__brand span { color: #D4AF37; }
/* Карта «для подписок» — тёмно-изумрудная (skin-sub): отличать от Lumo (фиолет) и золота.
   Красим по тарифу, чтобы «для подписок» оставалась зелёной, даже если под капотом её выпустил 2328. */
body.app-body .lkcard-item.issuer-oplata .lkci-face,
body.app-body .lkcard-item.skin-sub .lkci-face {
  background: linear-gradient(140deg, #05261C 0%, #0B3D2E 42%, #12715A 74%, #34D399 100%);
}
body.app-body .lkcard-item.issuer-oplata .lkcard__brand span,
body.app-body .lkcard-item.skin-sub .lkcard__brand span { color: #A7F3D0; }

/* В каталоге базовый cabinet-system скрывает все подписи внутри декоративной
   карты для подписок. Финальный предпрод возвращает фирменный знак A PRO поверх
   внутреннего контура; без этого остаётся виден только белый псевдо-чип. */
#tab-cards .cards-primary-grid .cards-issue-option__media .issue-plan-art i {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  z-index: 3;
  left: 25%;
  top: 31%;
  font-size: 12px;
  transform: rotate(-5deg);
}
#tab-cards .cards-primary-grid .cards-issue-option__media .issue-plan-art i img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
/* плитка «+» — теперь полноценная карта: пунктир, крупный плюс и подпись */
.lkadd-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px;
  background: transparent; border: 2px dashed #C9C4DE; color: var(--gold);
  transition: border-color .15s ease, opacity .2s ease;
}
.lkadd-item:hover, .lkadd-item.lkcard--active { border-color: var(--gold); }
.lkadd-plus { font-size: 46px; font-weight: 300; line-height: 1; }
.lkadd-cap { font-size: 15px; font-weight: 700; text-align: center; letter-spacing: -.2px; }
/* когда карт ещё нет — единственная плитка «+» занимает всю ширину (без запаса под соседнюю карту) */
.lkcarousel--solo .lkcard-item { flex-basis: 100%; }

/* условия выпуска под плиткой «+» (инлайн) */
.issue-inline__title { font-size: 18px; font-weight: 800; margin: 4px 0 4px; }
.issue-inline__sub { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
/* плашка-точки под каруселью: сколько карт (страниц) + выбранная фиолетовым */
.lkdots { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 2px 0 14px; }
.lkdot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px;
  background: #CBC5DC; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: width .2s ease, background .2s ease;
}
.lkdot--on { width: 22px; background: var(--gold); }
/* компьютер: карусель во всю ширину, соседние карты выступают по бокам (размер карт не меняем) */
@media (min-width: 900px) {
  .lkcarousel {
    width: 100vw; margin-left: 50%; transform: translateX(-50%);
    padding-left: max(16px, calc(50vw - 220px)); padding-right: max(16px, calc(50vw - 220px));
    scroll-padding-inline: max(16px, calc(50vw - 220px));
  }
  .lkcard-item { scroll-snap-align: center; }
}

.lkcard {
  position: relative; width: 100%; aspect-ratio: 1.6 / 1;
  transform-style: preserve-3d; transition: transform .5s; cursor: pointer;
}
.lkcard.flipped { transform: rotateY(180deg); }
.lkcard__face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: 18px; padding: 20px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}
.lkcard__face.travel { background: linear-gradient(140deg, #1C1408 0%, #3A2A06 50%, #6B520F 100%); }
.lkcard__face.sub    { background: linear-gradient(140deg, #111 0%, #222 50%, #333 100%); }
.lkcard__face.ads    { background: linear-gradient(140deg, #0C1520 0%, #162030 50%, #1E3040 100%); }
.lkcard__back { transform: rotateY(180deg); }
.lkcard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.lkcard__brand { font-weight: 800; font-size: 13px; line-height: 1.1; letter-spacing: .5px; }
.lkcard__brand span { color: #E8C97A; }
.lkcard__bal-label { font-size: 11px; opacity: .7; }
.lkcard__bal { font-size: 26px; font-weight: 800; margin-top: 2px; }
.lkcard__num { font-size: 17px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.lkcard__bottom { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; }
.lkcard__visa { font-style: italic; font-weight: 800; font-size: 20px; }
.lkcard__row { display: flex; justify-content: space-between; font-size: 12px; }
.lkcard__row .k { opacity: .65; }

.card-details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 16px; margin-bottom: 16px; }
.card-details .d-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.card-details .d-row:last-child { border-bottom: none; }
.card-details .d-row .k { color: var(--muted); flex-shrink: 0; }
.card-details .d-row .v { font-weight: 600; text-align: right; }

.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn-row .btn { flex: 1; }
.btn-ghost { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ─────────────── Блок истории на главной ─────────────── */
.hist-block { margin-top: 22px; }
.hist-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hist-head h3 { font-size: 16px; font-weight: 800; }
.op {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.op:last-child { border-bottom: none; }
.op-ico { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.op-ico.in  { background: #E6F4EA; color: #1E8E3E; }
.op-ico.out { background: #FCE8E6; color: #C5221F; }
.op-ico.neutral { background: var(--bg); color: var(--muted); }
.op-main { flex: 1; min-width: 0; }
.op-title { font-size: 14px; font-weight: 600; }
.op-sub { font-size: 12px; color: var(--muted); }
.op-amt { font-weight: 700; font-size: 14px; white-space: nowrap; }
.op-amt.in { color: #1E8E3E; }
.op-status { font-size: 11px; color: var(--muted); }

/* ─────────────── Фильтры истории ─────────────── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 20px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text);
}
.filter-chip.active { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ─────────────── Группировка истории по картам ─────────────── */
.hist-group { margin-bottom: 10px; }
.hist-group + .hist-group { border-top: 1px solid var(--border); padding-top: 4px; }
.hist-group-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .3px; margin: 16px 0 4px; }
.hist-dot { width: 24px; height: 16px; border-radius: 4px; flex-shrink: 0; }

/* ─────────────── Пополнение ─────────────── */
.rate-note { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.4; }
.card-migration-notice {
  margin: 18px 0 4px; padding: 18px;
  border: 2px solid #D97706; border-radius: 16px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  color: #7C2D12; box-shadow: 0 10px 28px rgba(180, 83, 9, .16);
  font-size: 14px; font-weight: 700; line-height: 1.5;
}
.card-migration-notice__title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; font-size: 18px; font-weight: 900; line-height: 1.25;
}
.card-migration-notice__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%;
  background: #D97706; color: #fff; font-size: 18px; font-weight: 900;
}
.card-migration-notice p { margin: 0; }
.card-migration-notice p + p { margin-top: 9px; }
@media (max-width: 420px) {
  .card-migration-notice { padding: 16px; font-size: 13.5px; }
  .card-migration-notice__title { align-items: flex-start; font-size: 17px; }
}
.select-card-mini { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.select-card-mini button {
  border: 1px solid var(--border); background: var(--card); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; font: inherit; font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.select-card-mini button.active { border-color: var(--gold); }
.select-card-mini .dot { width: 28px; height: 18px; border-radius: 5px; }

/* ─────────────── QR оплата ─────────────── */
.qr-box { width: 200px; height: 200px; margin: 0 auto 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.qr-box svg { width: 100%; height: 100%; }
/* Оболочка кабинета задаёт .gc2 svg=20px для иконок. QR — не иконка:
   без более точного правила он сжимался до чёрного квадрата 20×20. */
.gc2 .qr-box svg { display: block; width: 100%; height: 100%; }
.qr-sum { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.qr-timer { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.qr-timer b { color: var(--gold); }
.qr-warn { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px; margin: 12px 0; line-height: 1.4; }
.qr-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ─────────────── Экраны статусов / ожидания / успеха ─────────────── */
.status-screen { text-align: center; padding: 40px 0; }
.status-emoji { font-size: 48px; margin-bottom: 14px; }
.status-screen h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.status-screen p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.big-timer { font-size: 34px; font-weight: 800; color: var(--gold); margin: 10px 0 20px; font-variant-numeric: tabular-nums; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--border); border-top-color: var(--gold); border-radius: 50%; margin: 0 auto 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.demo-tag {
  display: inline-block; margin-top: 14px; font-size: 11px; color: var(--muted);
  background: var(--bg); border-radius: 8px; padding: 6px 10px;
}

/* ══════════════ ВРЕМЕННЫЙ ребрендинг Aifory Pro (ТОЛЬКО кабинет+регистрация): золото → фиолетовый.
   Откат: удалить весь этот блок + вернуть «Aifory Pro»→«Golden Card» в app.html/app.js. См. память temp-aifory-rebrand. ══════════════ */
body.app-body { --gold: #7C3AED; --gold-hover: #6D28D9; --gold-light: #F1EBFF; --bg: #F1F1F4; --border: #E4E4EA; }
body.app-body .app-logo-icon { background: linear-gradient(135deg, #4C1D95, #7C3AED); }
body.app-body .lkcard__face.travel { background: linear-gradient(140deg, #4C1D95 0%, #6D28D9 50%, #9F7AEA 100%); }
body.app-body .card-choice-mini.travel { background: linear-gradient(140deg, #4C1D95, #7C3AED); }
body.app-body .lkcard__brand span { color: #C4B5FD; }   /* «PRO» на карте — светло-фиолетовый вместо золота */

/* ══════════════ РЕСТАЙЛ КАБИНЕТА под референс: системный шрифт, витрина выпуска ══════════════ */
/* Системный шрифт (как в нативных приложениях) — только кабинет, лендинг не трогаем */
body.app-body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.1px;
}
body.app-body .btn { border-radius: 16px; padding: 15px 24px; font-size: 15.5px; }

/* ── Витрина выпуска: герой-баннер ── */
.hero {
  border-radius: 22px; overflow: hidden; position: relative;
  padding: 26px 20px 22px; margin-bottom: 12px;
  color: #fff; text-align: center;
  background: linear-gradient(165deg, #4C1D95 0%, #6D28D9 55%, #8B5CF6 100%);
}
.hero h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; margin: 0 0 6px; }
.hero p { font-size: 13.5px; opacity: .85; margin: 0; line-height: 1.4; }
.hero-cardvisual {
  width: 200px; height: 122px; margin: 4px auto 20px; position: relative; text-align: left;
  border-radius: 15px; padding: 13px 15px;
  background: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.4);
  transform: rotate(-6deg);
  box-shadow: 0 20px 44px rgba(0,0,0,.35);
}
.hero-cardvisual .hv-brand { font-weight: 800; font-size: 12px; letter-spacing: .4px; line-height: 1.25; }
.hero-cardvisual .hv-brand span { opacity: .7; }
.hero-cardvisual .hv-num { position: absolute; left: 15px; bottom: 12px; font-size: 12px; letter-spacing: 2.5px; opacity: .9; }
.hero-cardvisual .hv-visa { position: absolute; right: 13px; bottom: 10px; font-style: italic; font-weight: 800; font-size: 14px; }

/* ── Строка курса ── */
.rate-row2 {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 15px 16px; font-size: 14.5px; margin-bottom: 12px;
}
.rate-row2 b { color: var(--gold); font-size: 15px; }

/* ── Промо-баннер «Обмен крипты» на экране карты (под кнопками, над историей) ── */
/* ── Баннер-оверлей «свяжитесь с поддержкой» (превью; позже — по флажку клиента) ── */
.notice-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(20,17,11,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.notice-pop { position: relative; width: 100%; max-width: 420px; background: linear-gradient(135deg, #6D28D9 0%, #7C3AED 100%); border-radius: 22px; padding: 32px 26px 26px; color: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.35); text-align: center; }
.notice-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.notice-x:hover { background: rgba(255,255,255,.28); }
.notice-ico { width: 60px; height: 60px; margin: 2px auto 16px; border-radius: 16px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.notice-title { font-size: 19px; font-weight: 800; line-height: 1.34; margin: 0 0 8px; color: #fff; }
.notice-sub { font-size: 14px; color: rgba(255,255,255,.78); margin: 0 0 20px; }
.notice-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 12px; background: #fff; color: var(--gold); font-weight: 700; font-size: 15px; text-decoration: none; }

/* ── Сетка карточек-фич (2 колонки) ── */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.feat {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 14px 10px; min-height: 122px;
  display: flex; flex-direction: column;
}
.feat h4 { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; margin: 0 0 4px; line-height: 1.25; }
.feat p { font-size: 12px; color: var(--muted); line-height: 1.35; margin: 0; }
.feat .feat-emoji { margin-top: auto; align-self: flex-end; font-size: 34px; line-height: 1.1; }

/* ── Аккордеоны («Условия», FAQ) ── */
.acc { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; }
.acc summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 16px; font-size: 15px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ''; width: 9px; height: 9px; flex-shrink: 0; margin-left: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform .15s;
}
.acc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.acc-body { padding: 0 16px 14px; }
.acc-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; font-size: 14px; border-top: 1px solid var(--border); }
.acc-row:first-child { border-top: none; }
.acc-row .k { color: var(--muted); }
.acc-row b { font-weight: 700; text-align: right; }
.acc-text { font-size: 13.5px; line-height: 1.55; padding-top: 2px; }
.acc-text p { margin: 0 0 8px; }
.acc-text p:last-child { margin-bottom: 0; }

/* ── Прилипшая кнопка выпуска (над нижним меню) ── */
.cta-sticky {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 32px); max-width: 448px; height: 54px;
  border: none; border-radius: 999px;
  background: var(--gold); color: #fff;
  font: inherit; font-size: 16px; font-weight: 800; letter-spacing: -0.2px;
  cursor: pointer; z-index: 39;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.cta-sticky:hover { background: var(--gold-hover); }
/* значок СБП в белом бейдже на фиолетовых кнопках */
.sbp-badge {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 26px; height: 26px; padding: 3px; border-radius: 7px; background: #fff;
}
.sbp-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* значок СБП вместо эмодзи в плитке возможностей */
.feat-emoji img { width: 42px; height: 42px; object-fit: contain; display: block; }
/* два логотипа Apple Pay + Google Pay рядом вместо эмодзи */
.feat-emoji .feat-pay { width: 33px; height: 33px; display: inline-block; vertical-align: middle; }
.feat-emoji .feat-pay + .feat-pay { margin-left: 5px; }

/* ─── Экран карты: ряд круглых кнопок-действий (Пополнить / Данные / Код 3DS) ─── */
.lkactions { display: flex; gap: 10px; margin: 16px 0 4px; }
.lkact {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.lkact:hover { border-color: #D6D2EA; box-shadow: 0 4px 14px rgba(124, 58, 237, .07); }
.lkact:active { transform: scale(.97); }
.lkact__ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-light); color: var(--gold);
  transition: background .12s ease, color .12s ease;
}
.lkact__ico svg { width: 22px; height: 22px; }
.lkact__lbl { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.15; text-align: center; }
.lkact--primary .lkact__ico,
.lkact--on .lkact__ico { background: var(--gold); color: #fff; }

/* низ карточного экрана: «выпустить новую» + тихая ссылка «закрыть карту» */
.lkfoot-new { display: flex; align-items: center; justify-content: center; gap: 7px; }
.lkclose-link {
  display: block; width: 100%; margin: 14px 0 6px; padding: 10px;
  background: none; border: 0; color: #DC2626; font-size: 14px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.lkclose-link:hover { color: #B91C1C; text-decoration: underline; }

/* ═══════════ История транзакций ═══════════ */
.hist-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin: 2px 0 16px; }
.hchips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; position: relative; }
.hchip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--text); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .12s, color .12s, border-color .12s;
}
.hchip--on { background: var(--gold); border-color: var(--gold); color: #fff; }
.hchip-chev { margin: 0 -3px 0 1px; opacity: .8; }
.hmenu {
  position: absolute; z-index: 30; min-width: 172px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .14); padding: 6px;
}
.hmenu-item {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; border-radius: 9px; background: none;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
}
.hmenu-item:hover { background: var(--bg); }
.hmenu-item.on { color: var(--gold); }
.hgroup-date { font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 0 4px; }
.hrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.hrow-ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: var(--card); color: #4B5563;
  display: flex; align-items: center; justify-content: center;
}
.hrow-ico svg { width: 20px; height: 20px; }
.hrow-main { flex: 1; min-width: 0; }
.hrow-title { font-size: 15px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow-sub { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.hdot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.hdot.green { background: #22C55E; }
.hdot.red { background: #EF4444; }
.hdot.amber { background: #F59E0B; }
.hrow-amt { font-size: 15px; font-weight: 700; white-space: nowrap; }
.hrow-amt.green { color: #16A34A; }
.hrow-amt.red { color: #DC2626; }
.hrow-amt.gray { color: var(--muted); }
.hrow-amt.dark { color: var(--text); }
.hlist { padding-bottom: 10px; }

/* ─────────────── Вкладка «Промокоды» ─────────────── */
.topnav-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; margin-left: 6px; padding: 0 5px;
  border-radius: 9px; background: #DC2626; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle;
}

.promo-head { max-width: 560px; margin: 0 auto; padding: 26px 20px 6px; }
.promo-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.promo-head p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.promo-loading { max-width: 560px; margin: 0 auto; padding: 30px 20px; color: var(--muted); }
.promo-subhead { max-width: 560px; margin: 26px auto 0; padding: 0 20px; font-size: 15px; color: var(--muted); }

.promo-list { max-width: 560px; margin: 0 auto; padding: 14px 20px 90px; display: grid; gap: 12px; }

.promo-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 16px 16px 13px;
}
.promo-card--off { opacity: .62; }
.promo-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.promo-card-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.promo-card-product { margin-top: 3px; font-size: 13px; color: var(--muted); }
.promo-benefit {
  flex-shrink: 0; padding: 6px 11px; border-radius: 10px;
  background: var(--gold-light); color: var(--gold);
  font-size: 15px; font-weight: 800; white-space: nowrap;
}
.promo-card-desc { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.promo-card-cond { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.promo-code-row { display: flex; align-items: stretch; gap: 8px; margin-top: 13px; }
.promo-code {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 11px 12px; border: 1px dashed var(--gold); border-radius: 12px;
  background: var(--gold-light); color: var(--text);
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 15px; font-weight: 700; letter-spacing: .06em;
}
.promo-copy {
  flex-shrink: 0; padding: 0 15px; border: none; border-radius: 12px; cursor: pointer;
  /* color с приоритетом над .gc2 button{color:inherit}: раздел промокодов
     обёрнут в область концепта, и без этого текст кнопки наследовал тёмный
     цвет кабинета — получался тёмный текст на фиолетовом фоне (см. AGENTS.md). */
  background: var(--gold); color: #fff !important; font-size: 13.5px; font-weight: 700;
  font-family: inherit; transition: background .15s;
}
.promo-copy:hover:not(:disabled) { background: var(--gold-hover); }
.promo-copy:disabled { opacity: .65; cursor: default; }
.promo-auto { margin-top: 13px; font-size: 13px; color: var(--gold); font-weight: 600; }

.promo-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 13px; flex-wrap: wrap; }
.promo-status { font-size: 12.5px; font-weight: 700; }
.promo-status--ok { color: #16A34A; }
.promo-status--wait { color: #D97706; }
.promo-status--off { color: var(--muted); }
.promo-until { font-size: 12.5px; color: var(--muted); }
.promo-soon { font-size: 12.5px; color: var(--muted); font-style: italic; }
.promo-use {
  margin-left: auto; padding: 0; border: none; background: none; cursor: pointer;
  color: var(--gold); font-size: 13.5px; font-weight: 700; font-family: inherit;
}

.promo-empty { max-width: 460px; margin: 0 auto; padding: 40px 20px 90px; text-align: center; }
.promo-empty-ico { font-size: 44px; }
.promo-empty h3 { margin-top: 12px; font-size: 19px; font-weight: 800; }
.promo-empty p { margin: 9px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 560px) {
  .promo-card-top { flex-direction: column; }
  .promo-benefit { align-self: flex-start; }
}

/* ─────────────── Вкладка «Пригласить друзей» (реферальная программа) ─────────────── */
/* Мягкий лавандовый фон секции + неоморфные карточки по макету. */
#tab-ref { background: linear-gradient(180deg, #F4F1FC 0%, #EFEAF9 100%); margin: 0 -20px; padding: 0 20px; }
.ref2 { max-width: 600px; margin: 0 auto; padding: 8px 0 40px; }
.ref-loading { padding: 40px 20px; text-align: center; color: var(--muted); }
.ref2 svg { width: 22px; height: 22px; display: block; }

.ref2-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 18px; }
.ref2-topbar--main { padding-top: 18px; }
.ref2-title { font-size: 18px; font-weight: 800; }
.ref2-brand { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ref2-brand span { color: var(--gold); }
.ref2-icbtn { width: 40px; height: 40px; border: none; border-radius: 50%; background: #fff; color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(76,41,140,.08); }

/* Герой-оффер */
.rh { position: relative; overflow: hidden; background: linear-gradient(135deg, #FBFAFF, #EFE9FB); border: 1px solid #E7E0F6; border-radius: 26px; padding: 24px; box-shadow: 0 6px 26px rgba(76,41,140,.07); }
.rh-chain { position: absolute; top: -14px; right: -10px; opacity: .18; color: var(--gold); }
.rh-chain svg { width: 150px; height: 150px; }
.rh-badge { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--gold-light); color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rh-title { margin-top: 14px; font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.rh-sub { margin-top: 10px; font-size: 14px; color: #6B6580; line-height: 1.5; max-width: 340px; }
.rh-actions { display: flex; gap: 10px; margin-top: 20px; }
.rh-share { flex: 1; height: 56px; border: none; border-radius: 16px; background: linear-gradient(135deg, var(--gold), #6D28D9); color: #fff; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 20px rgba(124,58,237,.28); }
.rh-share.ok { background: #16A34A; box-shadow: none; }
.rh-share-ico { width: 20px !important; height: 20px !important; }
.rh-ic { width: 56px; height: 56px; flex-shrink: 0; border: none; border-radius: 16px; background: #fff; color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(76,41,140,.08); }
.rh-ic.ok { color: #16A34A; }

.rsec-h { margin: 26px 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

/* Балансы */
.rb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rb { background: #fff; border-radius: 20px; padding: 16px 14px; box-shadow: 0 4px 18px rgba(76,41,140,.06); }
.rb-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-light); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.rb-cur { margin-top: 12px; font-size: 12px; color: var(--muted); font-weight: 600; }
.rb-sum { margin-top: 2px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.rb-st { margin-top: 3px; font-size: 11px; color: var(--muted); }

.rget { width: 100%; height: 56px; margin-top: 12px; border: none; border-radius: 18px; background: #fff; color: var(--gold); font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 18px rgba(76,41,140,.07); }
.rget-ico { width: 20px !important; height: 20px !important; }
.rget--off { color: var(--muted); cursor: default; box-shadow: none; }

/* Приглашения — прогресс */
.rf-card { margin-top: 22px; background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 4px 18px rgba(76,41,140,.06); }
.rf-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.rf-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.rf-col { text-align: center; }
.rf-num { font-size: 26px; font-weight: 800; }
.rf-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rf-track { display: flex; align-items: center; margin-top: 14px; padding: 0 14%; }
.rf-dot { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--border); background: #fff; color: #fff; display: flex; align-items: center; justify-content: center; }
.rf-dot svg { width: 15px; height: 15px; }
.rf-dot--done { background: var(--gold); border-color: var(--gold); }
.rf-line { flex: 1; height: 2px; background: var(--gold); opacity: .5; }

/* Как это работает */
.rhow { margin-top: 22px; background: #fff; border-radius: 22px; padding: 22px 20px; box-shadow: 0 4px 18px rgba(76,41,140,.06); }
.rhow-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.rhow--details { overflow: hidden; }
.rhow--details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.rhow--details > summary::-webkit-details-marker { display: none; }
.rhow--details > summary > span { display: grid; gap: 4px; }
.rhow--details > summary b { font: inherit; }
.rhow--details > summary small { color: #777085; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.rhow--details > summary i { width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .18s ease; }
.rhow--details[open] > summary i { transform: rotate(225deg); }
.rhow-row { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 18px; }
.rhow-step { flex: 1; text-align: center; position: relative; font-size: 12px; color: #55506A; line-height: 1.35; }
.rhow-ico { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 18px; background: var(--gold-light); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.rhow-ico svg { width: 26px; height: 26px; }
.rhow-badge { position: absolute; top: -6px; left: 50%; margin-left: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rhow-arr { color: #C9C2E0; font-size: 20px; padding: 18px 2px 0; }

/* Приглашённые / история */
.rinv-list, .rhist { display: grid; gap: 8px; }
.rinv, .rhrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 3px 14px rgba(76,41,140,.05); }
.rinv-name, .rhrow-t { font-size: 14px; font-weight: 700; }
.rinv-sub, .rhrow-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rinv-earned { font-size: 13px; font-weight: 800; color: #16A34A; text-align: right; }
.rhrow-r { text-align: right; }
.rhrow-a { font-size: 14px; font-weight: 800; }
.rst { font-size: 11px; font-weight: 700; margin-top: 2px; }
.rst--ok { color: #16A34A; } .rst--wait { color: #D97706; } .rst--off { color: var(--muted); }

/* QR-поп */
.ref-qr-pop { position: fixed; inset: 0; z-index: 50; background: rgba(20,15,40,.55); display: flex; align-items: center; justify-content: center; }
.ref-qr-sheet { background: #fff; border-radius: 24px; padding: 24px; text-align: center; }
.ref-qr-cap { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ── Страница «Выгода программы» ── */
.ref2-h { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.ref2-sub { margin-top: 6px; margin-bottom: 16px; font-size: 14px; color: #6B6580; }
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp { background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 4px 18px rgba(76,41,140,.06); }
.rp--wide { grid-column: 1 / -1; }
.rp--soon { background: #FAF9FE; box-shadow: none; }
.rp--soon .rp-ico, .rp--soon .rp-name { opacity: .5; }
.rp-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; }
.rp-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--gold-light); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.rp-name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.rp-reward { font-size: 18px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.rp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.rp-cond { font-size: 12px; color: var(--muted); }
.rp-chip { padding: 5px 12px; border-radius: 99px; background: var(--gold-light); color: var(--gold); font-size: 11.5px; font-weight: 700; }
.rp-soon { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--gold); color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .03em; }

.rg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rg { background: #fff; border-radius: 20px; padding: 20px 12px; text-align: center; box-shadow: 0 4px 18px rgba(76,41,140,.06); }
.rg-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; background: var(--gold-light); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.rg-ico svg { width: 26px; height: 26px; }
.rg-name { font-size: 13.5px; font-weight: 800; line-height: 1.25; }
.rg-sub { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.rg-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 14px; background: #fff; border-radius: 16px; color: #6B6580; font-size: 13px; box-shadow: 0 3px 14px rgba(76,41,140,.05); }
.rg-note-ico { width: 18px !important; height: 18px !important; color: var(--gold); }

@media (max-width: 480px) {
  .rp-grid { grid-template-columns: 1fr; }
  .rp--wide { grid-column: auto; }
  .rh-title { font-size: 24px; }
  .rhow-txt { font-size: 11px; }
}


/* ─────────────── «Мои eSIM» (купленные пакеты) ─────────────── */
.myesim-head { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 4px 0 12px; }
.myesim-list { display: grid; gap: 12px; margin-bottom: 12px; }
.myesim {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px;
}
.myesim--off { opacity: .6; }
.myesim-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.myesim-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.myesim-vol {
  flex-shrink: 0; padding: 5px 11px; border-radius: 10px; background: var(--gold-light);
  color: var(--gold); font-size: 14px; font-weight: 800; white-space: nowrap;
}
.myesim-exp { margin-top: 8px; font-size: 13px; font-weight: 600; }
.myesim-exp--ok { color: #16A34A; }
.myesim-exp--warn { color: #D97706; }
.myesim-exp--off { color: var(--muted); }
.myesim-actions { display: flex; gap: 8px; margin-top: 14px; }
.myesim-btn {
  flex: 1; height: 44px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
  background: var(--card); color: var(--text); font-size: 14px; font-weight: 700; font-family: inherit;
  transition: border-color .15s;
}
.myesim-btn:hover { border-color: var(--gold); }
.myesim-btn--primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.myesim-btn--primary:hover { background: var(--gold-hover); }
.myesim-btn--danger { color:#b42318; border-color:#f0b8b2; background:#fff7f6; }
.myesim-btn--danger:hover { border-color:#b42318; }
.myesim-qr { margin-top: 14px; text-align: center; }
.myesim-lpa { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px; }
.myesim-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }
/* Пополнение eSIM: раскрывается прямо в карточке пакета */
.myesim-topups { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.myesim-topup { margin-top: 14px; }
.myesim-topup__box { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--bg); }
.myesim-topup__bal { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.myesim-topup__t { font-size: 14.5px; font-weight: 800; }
.myesim-topup__s { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.myesim-topup__promo {
  width: 100%; margin-top: 12px; height: 44px; padding: 0 13px; border: 1.5px solid var(--border);
  border-radius: 12px; background: var(--card); color: var(--text); font: inherit; font-size: 15px;
  text-transform: uppercase; outline: none;
}
.myesim-topup__promo::placeholder { text-transform: none; }
.myesim-topup__promo:focus { border-color: var(--gold); }
.myesim-topup__go { width: 100%; margin-top: 10px; }
.myesim-topup__go:disabled { opacity: .6; cursor: default; }
.myesim-topup__err { font-size: 13px; color: #DC2626; line-height: 1.45; }

/* Поле ввода промокода на оформлении eSIM/сервисов */
.promo-inp-row { display: flex; gap: 8px; }
.promo-inp-row input { flex: 1; }
.promo-inp-btn { flex-shrink: 0; padding: 0 16px; border: none; border-radius: 12px; cursor: pointer; background: var(--gold); color: #fff; font-size: 14px; font-weight: 700; font-family: inherit; }
.promo-inp-btn:hover { background: var(--gold-hover); }
.promo-inp-res { margin-top: 6px; }
.promo-inp-res.ok { color: #16A34A; }
.promo-inp-res.err { color: #DC2626; }

/* ══════════════ Витрина «Отели» (hotels.js) — вкладка в кабинете ══════════════
   Все правила scoped под #tab-hotels, чтобы не пересекаться с остальным кабинетом.
   Токены: --gold (акцент), --bg, --card, --border, --muted, --text, --r. */
#tab-hotels .htl-wrap { max-width: 640px; margin: 0 auto; }
#tab-hotels .htl-hero {
  font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.25; margin: 4px 0 16px;
}
#tab-hotels .htl-hero span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; }
#tab-hotels .htl-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }

#tab-hotels .htl-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
#tab-hotels .htl-back {
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 700; border-radius: 10px; padding: 7px 12px; cursor: pointer;
}
#tab-hotels .htl-back:hover { background: var(--bg); }
#tab-hotels .htl-topbar__title { font-size: 17px; font-weight: 800; color: var(--text); }

#tab-hotels .htl-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 16px; margin-bottom: 14px;
}
#tab-hotels .htl-label {
  display: block; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .3px; margin: 12px 0 6px;
}
#tab-hotels .htl-label:first-child { margin-top: 0; }
#tab-hotels .htl-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px; background: var(--card);
  padding: 12px 14px; font: inherit; font-size: 15px; color: var(--text); outline: none;
}
#tab-hotels .htl-input:focus { border-color: var(--gold); }
#tab-hotels .htl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

#tab-hotels .htl-hints { position: relative; }
#tab-hotels .htl-hints__list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
#tab-hotels .htl-hints__item {
  padding: 11px 14px; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--border);
}
#tab-hotels .htl-hints__item:last-child { border-bottom: none; }
#tab-hotels .htl-hints__item:hover { background: var(--bg); }
#tab-hotels .htl-hints__item span { color: var(--muted); font-size: 12px; white-space: nowrap; }

#tab-hotels .htl-step { display: flex; align-items: center; gap: 14px; }
#tab-hotels .htl-step button {
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--card);
  font-size: 20px; font-weight: 700; color: var(--text); cursor: pointer; line-height: 1;
}
#tab-hotels .htl-step button:hover { border-color: var(--gold); color: var(--gold); }
#tab-hotels .htl-step b { font-size: 17px; min-width: 20px; text-align: center; }

#tab-hotels .htl-seg { display: flex; gap: 8px; }
#tab-hotels .htl-seg__item {
  flex: 1; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 8px; text-align: center;
  cursor: pointer; background: var(--card); transition: border-color .12s, background .12s;
}
#tab-hotels .htl-seg__item b { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
#tab-hotels .htl-seg__item span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
#tab-hotels .htl-seg__item.active { border-color: var(--gold); background: var(--gold-light, #F1EBFF); }
#tab-hotels .htl-seg__item.active b { color: var(--gold); }

#tab-hotels .htl-btn {
  width: 100%; border: none; border-radius: 12px; background: var(--gold); color: #fff;
  font: inherit; font-size: 15px; font-weight: 700; padding: 14px; cursor: pointer; text-align: center;
  display: block; text-decoration: none;
}
#tab-hotels .htl-btn:hover { background: var(--gold-hover, #6D28D9); }
#tab-hotels .htl-btn:disabled { opacity: .6; cursor: default; }

#tab-hotels .htl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#tab-hotels .htl-chip {
  border: 1px solid var(--border); background: var(--card); border-radius: 20px; padding: 8px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer;
}
#tab-hotels .htl-chip:hover { border-color: var(--gold); color: var(--gold); }

/* каталог */
#tab-hotels .htl-note {
  background: var(--gold-light, #F1EBFF); border-radius: 12px; padding: 12px 14px; font-size: 13px;
  color: var(--text); line-height: 1.5; margin-bottom: 12px;
}
#tab-hotels .htl-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 16px; line-height: 1.6; }
#tab-hotels .htl-skel {
  height: 120px; border-radius: 16px; margin-bottom: 12px;
  background: linear-gradient(90deg, #ececf1 25%, #f5f5f8 50%, #ececf1 75%); background-size: 200% 100%;
  animation: htl-shimmer 1.3s infinite;
}
@keyframes htl-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

#tab-hotels .htl-hotel {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  margin-bottom: 12px; cursor: pointer; transition: box-shadow .15s, transform .15s;
}
#tab-hotels .htl-hotel:hover { box-shadow: 0 10px 26px rgba(0,0,0,.10); transform: translateY(-1px); }
#tab-hotels .htl-hotel__photo { width: 100%; height: 170px; background-size: cover; background-position: center; background-color: var(--bg); }
#tab-hotels .htl-hotel__photo--empty { display: flex; align-items: center; justify-content: center; font-size: 44px; }
#tab-hotels .htl-hotel__body { padding: 14px 16px; }
#tab-hotels .htl-hotel__name { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.3; }
#tab-hotels .htl-hotel__stars { color: #E8A317; font-size: 13px; margin-top: 3px; }
#tab-hotels .htl-hotel__addr { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
#tab-hotels .htl-hotel__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 12px; }
#tab-hotels .htl-hotel__price { font-size: 17px; font-weight: 800; color: var(--text); }
#tab-hotels .htl-hotel__price small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
#tab-hotels .htl-hotel__price.pending { font-size: 13px; font-weight: 600; color: var(--muted); }
#tab-hotels .htl-hotel__go { color: var(--gold); font-weight: 700; font-size: 13.5px; }

/* отель + тарифы */
#tab-hotels .htl-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto;
  margin-bottom: 14px; padding-bottom: 4px; scroll-snap-type: x mandatory;
}
#tab-hotels .htl-gallery__ph {
  height: 210px; border-radius: 14px; background-size: cover; background-position: center;
  background-color: var(--bg); scroll-snap-align: start;
}
#tab-hotels .htl-rate { border-top: 1px solid var(--border); padding: 14px 0; }
#tab-hotels .htl-rate:first-child { border-top: none; }
#tab-hotels .htl-rate__name { font-size: 15px; font-weight: 700; color: var(--text); }
#tab-hotels .htl-rate__meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
#tab-hotels .htl-rate__cancel { font-size: 12.5px; margin-top: 5px; color: var(--muted); }
#tab-hotels .htl-rate__cancel.good { color: #16A34A; }
#tab-hotels .htl-rate__cancel.bad { color: #DC2626; }
#tab-hotels .htl-rate__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
#tab-hotels .htl-rate__price { font-size: 17px; font-weight: 800; color: var(--text); }
#tab-hotels .htl-rate__btn {
  border: none; border-radius: 10px; background: var(--gold); color: #fff; font: inherit; font-size: 14px;
  font-weight: 700; padding: 9px 18px; cursor: pointer;
}
#tab-hotels .htl-rate__btn:hover { background: var(--gold-hover, #6D28D9); }

/* оформление + оплата */
#tab-hotels .htl-summary p { font-size: 14px; color: var(--text); line-height: 1.5; margin: 2px 0; }
#tab-hotels .htl-summary p.htl-sub { color: var(--muted); font-size: 12.5px; }
#tab-hotels .htl-pay-amount { text-align: center; margin-bottom: 14px; }
#tab-hotels .htl-pay-amount b { display: block; font-size: 28px; font-weight: 800; color: var(--text); }
#tab-hotels .htl-pay-amount span { font-size: 13px; color: var(--muted); }
#tab-hotels .htl-qr { display: flex; justify-content: center; margin: 6px 0 14px; }
#tab-hotels .htl-qr img, #tab-hotels .htl-qr canvas { border-radius: 12px; }
#tab-hotels .htl-addr {
  display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 10px; padding: 10px 12px;
  margin-bottom: 12px;
}
#tab-hotels .htl-addr code { flex: 1; font-size: 12px; word-break: break-all; color: var(--text); }
#tab-hotels .htl-addr button {
  border: 1px solid var(--border); background: var(--card); border-radius: 8px; padding: 6px 10px;
  font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--text);
}
#tab-hotels .htl-warn {
  background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 10px; padding: 11px 13px;
  font-size: 12.5px; color: #9A3412; line-height: 1.5;
}
#tab-hotels .htl-status { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
#tab-hotels .htl-status.ok { color: #16A34A; }
#tab-hotels .htl-status.bad { color: #DC2626; }
#tab-hotels .htl-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
#tab-hotels .htl-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: .3; animation: htl-blink 1.2s infinite;
}
#tab-hotels .htl-dots span:nth-child(2) { animation-delay: .2s; }
#tab-hotels .htl-dots span:nth-child(3) { animation-delay: .4s; }
#tab-hotels .htl-dots span:nth-child(4) { animation-delay: .6s; }
@keyframes htl-blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* успех */
#tab-hotels .htl-success { text-align: center; padding: 30px 16px 10px; }
#tab-hotels .htl-success__icon { font-size: 56px; }
#tab-hotels .htl-success h2 { font-size: 22px; font-weight: 800; color: var(--text); margin: 10px 0; }
#tab-hotels .htl-success p { font-size: 14.5px; color: var(--text); line-height: 1.6; margin: 3px 0; }

@media (max-width: 520px) {
  #tab-hotels .htl-row { grid-template-columns: 1fr; }
}

/* ─── Промокод на выпуск карты ────────────────────────────────
   База для всех страниц выпуска. issue.html подключает только app.css (без redesign.css),
   поэтому стили поля живут здесь; в редизайне их перекрывают правила .redesign в redesign.css.
   Блок стоит ОТДЕЛЬНОЙ карточкой над условиями: внутри аккордеона «Условия» поле уходило
   под кнопку оплаты и клиент его не находил. */
.pay-panel { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px 18px; margin: 16px 0 18px; }
.pp-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
/* поле с вердиктом внутри: отдельной кнопки «Применить» нет */
.pp-field { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--card); padding: 0 13px; transition: border-color .15s; }
.pp-field:focus-within { border-color: var(--gold); }
.pp-field.is-ok { border-color: var(--gold); }
.pp-field.is-err { border-color: #E23B3B; }
.pp-field input { flex: 1; min-width: 0; border: none; outline: none; background: none; color: var(--text); font: inherit; font-size: 16px; padding: 13px 0; text-transform: uppercase; }
/* сам код — капсом, подсказка — обычным регистром: иначе плейсхолдер кричит «ВВЕДИТЕ ПРОМОКОД» */
.pp-field input::placeholder { text-transform: none; }
/* Кнопка проверки промокода — серая и спокойная: это вспомогательное действие, а не призыв
   к покупке, и рядом с фиолетовой «Выпустить карту» она не должна с ней конкурировать. */
.pp-check { flex: none; padding: 8px 14px; margin: 6px 0 6px 2px; border: 1px solid var(--border);
  border-radius: 9px; background: #F1F1F6; color: var(--text); font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.pp-check:hover { background: #E7E7EF; border-color: #D6D6E2; }
.pp-check:active { transform: scale(.98); }
.pp-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pp-badge.ok { color: #16A34A; }
.pp-badge.err { color: #E23B3B; }
.pp-ico { width: 17px; height: 17px; flex: none; }
.pp-note { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; margin-top: 10px; }
.pp-note.ok { color: #16A34A; }
.pp-note.err { color: #E23B3B; }
.pp-fine { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.pp-fine__i { flex: none; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-style: italic; }

/* ─── Модалка кросс-промокода «вот твой подарок» (после покупки) ─── */
/* Подарков за одну покупку бывает два, и окно с ними переставало помещаться на экран:
   низ с кнопками уезжал за край, а из-за центрирования по вертикали срезало ещё и верх.
   Держим окно не выше экрана, лишнее прокручиваем внутри; safe center не даёт срезать шапку. */
.rw-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(20,20,32,.55); display: flex; align-items: safe center; justify-content: center; padding: 16px; overflow-y: auto; }
.rw { width: 100%; max-width: 420px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--card); border-radius: 22px; padding: 22px 20px 18px; position: relative; text-align: center; }
.rw-x { position: absolute; top: 14px; right: 14px; border: none; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }
.rw-tick { width: 44px; height: 44px; margin: 0 auto 10px; border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); }
.rw-tick svg { width: 22px; height: 22px; }
.rw-t { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.rw-s { font-size: 14.5px; color: var(--muted); line-height: 1.4; margin: 0 0 14px; }
.rw-gift { background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 14px; text-align: left; }
.rw-gift + .rw-gift { margin-top: 10px; }
.rw-gift-head { display: flex; gap: 12px; align-items: flex-start; }
.rw-gift-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--card); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.rw-gift-t { font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.rw-accent { color: var(--gold); }
.rw-gift-s { font-size: 13.5px; color: var(--muted); line-height: 1.4; margin: 6px 0 0; }
/* код — пунктирная рамка, как в макете: видно, что его надо забрать */
.rw-code { display: flex; align-items: stretch; gap: 8px; margin-top: 12px; }
.rw-code-pct { flex: none; width: 48px; border: 1.5px dashed var(--gold); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; }
/* Код не переносим: на узких экранах он ломался на две строки и плашка разъезжалась.
   Размер ужимаем под ширину, минимума хватает для самого длинного кода на 375px. */
.rw-code-v { flex: 1; min-width: 0; border: 1.5px dashed var(--gold); border-radius: 12px; padding: 11px 6px; font-family: inherit; font-size: clamp(14px, 4.2vw, 18px); font-weight: 800; color: var(--gold); text-align: center; letter-spacing: .04em; white-space: nowrap; }
.rw-code-copy { flex: none; width: 46px; border: 1.5px dashed var(--gold); border-left: none; border-radius: 0 12px 12px 0; margin-left: -8px; background: none; color: var(--gold); font-size: 17px; cursor: pointer; }
.rw-line { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); margin-top: 9px; }
.rw-line.ok { color: #16A34A; }
.rw-line svg { width: 16px; height: 16px; flex: none; }
.rw-all { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 10px; border: none; background: none; text-align: left; font: inherit; font-size: 13.5px; color: var(--muted); line-height: 1.35; cursor: pointer; }
.rw-chev { margin-left: auto; color: var(--muted); font-size: 20px; }
/* Кнопки липнут к низу окна: с двумя подарками на телефоне список не помещается,
   и главное действие («Выбрать eSIM») уезжало под сгиб — его приходилось искать прокруткой. */
.rw-acts { position: sticky; bottom: -18px; margin: 0 -20px -18px; padding: 8px 20px 18px; background: var(--card); }
.rw-cta { width: 100%; margin-top: 8px; height: 48px; border: none; border-radius: 15px; background: var(--gold); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.rw-cta:hover { background: var(--gold-hover); }
.rw-cta--ghost { background: none; border: 1.5px solid var(--gold); color: var(--gold); }
.rw-cta--ghost:hover { background: var(--gold-light); }

/* ─── «Моя eSIM» по макету Figma (node 24215:40922). Токены из дизайн-системы:
   поверхность #fcfcfd, рамка #e4e4e7, бренд #8b5cf6, плашка #f3e8ff, зелёный #0eab4d. ─── */
.ev2 { background: #fcfcfd; border: 1px solid #e4e4e7; border-radius: 24px; padding: 16px; box-shadow: 0 1px 1px rgba(24,24,27,.05); display: flex; flex-direction: column; gap: 24px; }
.ev2--off { opacity: .6; }
.ev2-head { display: flex; align-items: flex-start; gap: 16px; }
.ev2-t { flex: 1; font-size: 20px; font-weight: 700; line-height: 1.2; color: #18181b; margin: 0; }
.ev2-left { background: #f3e8ff; color: #8b5cf6; font-size: 14px; font-weight: 600; line-height: 1.5; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.ev2-tariff { display: flex; gap: 12px; align-items: flex-start; margin-top: -8px; }
.ev2-flag { flex: none; width: 52px; height: 52px; border-radius: 10px; background: #f7f7fb; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.ev2-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev2-plan { font-size: 16px; font-weight: 700; line-height: 1.5; color: #18181b; }
.ev2-exp { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; line-height: 1.4; }
.ev2-exp svg { width: 16px; height: 16px; flex: none; }
.ev2-exp--ok { color: #0eab4d; }
.ev2-exp--warn { color: #D97706; }
.ev2-exp--off { color: #71717a; }
.ev2-topups { font-size: 12px; color: #71717a; }
.ev2-btns { display: flex; gap: 8px; margin-top: -8px; }
.ev2-btn { flex: 1; height: 48px; border: none; border-radius: 12px; background: #8b5cf6; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(24,24,27,.08); }
.ev2-btn:hover { filter: brightness(1.05); }
.ev2-btn--ghost { background: #fff; border: 1px solid #a78bfa; color: #8b5cf6; box-shadow: none; }
.ev2-btn--ghost:hover { background: #f3e8ff; filter: none; }
.ev2-btn--danger { flex:.72; color:#b42318; border:1px solid #f0b8b2; background:#fff7f6; box-shadow:none; }
.ev2-btn--danger:hover { background:#fff0ee; filter:none; }
/* Панель промокода — единственная акцентная карточка на экране выбора: раньше она была такой же
   белой, как всё вокруг, и скидку попросту не замечали. Цвета берём из переменных темы, иначе
   в тёмном редизайне блок светился бы белым пятном. */
.pay-panel--promo { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-light), var(--card) 60%);
  box-shadow: 0 6px 20px rgba(124, 58, 237, .10); }
.pay-panel--promo .pp-label { color: var(--gold); font-weight: 700; }
/* Готовый код кнопкой: клик подставляет его в поле и сразу проверяет. Пунктирная рамка —
   привычный вид «купона», она же намекает, что по надписи можно нажать. */
.pp-offer { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pp-offer__txt { flex: 1 1 auto; min-width: 0; text-align: left; padding: 10px 12px;
  border: 1px dashed var(--gold); border-radius: 10px; background: var(--gold-light); color: var(--gold);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: filter .15s; }
/* Код показываем ровно так, как он задан в админке (и как напечатан на лендинге) — строчными.
   От uppercase он переставал помещаться в строку и переносился посередине: «AIFORY-» / «SALE». */
.pp-offer__txt b { font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.pp-offer__txt:hover, .pp-offer__copy:hover { filter: brightness(.97); }
.pp-offer__txt:active, .pp-offer__copy:active { transform: scale(.99); }
.pp-offer__copy { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); border-radius: 10px; background: var(--gold-light); color: var(--gold);
  cursor: pointer; transition: filter .15s; }

/* ─── Экран eSIM по макету Figma (node 24215:40841) ─── */
.ev2-page { display: flex; flex-direction: column; gap: 24px; padding: 24px 0; }
.ev2-h { display: flex; flex-direction: column; gap: 4px; }
.ev2-h1 { font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -.32px; color: #18181b; margin: 0; }
.ev2-h1 span { color: #8b5cf6; }
.ev2-sub { font-size: 16px; line-height: 1.5; color: #71717a; margin: 0; }
.ev2-cat { background: #fcfcfd; border: 1px solid #f1f1f3; border-radius: 24px; padding: 16px; box-shadow: 0 1px 1px rgba(24,24,27,.05); display: flex; flex-direction: column; gap: 24px; }
.ev2-cat-t { font-size: 20px; font-weight: 700; line-height: 1.2; color: #18181b; margin: 0 0 -8px; }
.ev2-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 8px 8px 8px 16px; border: 1px solid #d4d4d8; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(24,24,27,.05); }
.ev2-search svg { width: 16px; height: 16px; flex: none; color: #71717a; }
.ev2-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: 14px; color: #18181b; }
.ev2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ev2-c { height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid #e4e4e7; border-radius: 16px; background: #fff; cursor: pointer; font: inherit; }
.ev2-c:hover { border-color: #a78bfa; }
.ev2-c-ico { width: 40px; height: 40px; border-radius: 10px; background: #f7f7fb; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ev2-c-flag { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.ev2-c-name { font-size: 16px; font-weight: 700; line-height: 1.5; color: #18181b; }
.ev2-c-sub { font-size: 12px; font-weight: 500; line-height: 1.4; color: #71717a; }

/* ─── Модалка покупки eSIM (макет node 24220:17114) ─── */
.eb { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 20px 16px 16px; position: relative; max-height: 92vh; overflow-y: auto; }
.eb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-right: 32px; }
/* Крестик .rw-x позиционируется абсолютом от .eb (у диалога position:relative)
   и садится в его верхний правый угол. В карточке товара этот угол занят
   хлебными крошками — они добавлены позже, а крестик остался приколот к
   диалогу: длинное название товара уезжало прямо под ✕.
   Делаем точкой отсчёта саму шапку — крестик встаёт рядом с названием, где
   ему и место (под него в .eb-head уже зарезервировано padding-right:32px).
   Правка ТОЧЕЧНАЯ: во втором диалоге с .eb-head (покупка eSIM) крошек нет,
   шапка идёт первой, и там крестик стоит правильно — его не трогаем. */
.svc-product-dialog .eb-head { position: relative; }
.eb-flag { flex: none; width: 52px; height: 52px; border-radius: 12px; background: #f7f7fb; display: flex; align-items: center; justify-content: center; }
.eb-h h2 { font-size: 24px; font-weight: 700; line-height: 1.2; color: #18181b; margin: 0; }
.eb-h p { font-size: 14px; color: #71717a; margin: 2px 0 0; }
.eb-lbl { font-size: 14px; color: #71717a; margin: 16px 0 8px; }
.eb-opts { display: flex; flex-direction: column; gap: 8px; }
/* Вариант тарифа: название слева, значение справа. Выбранный подсвечиваем рамкой и заливкой —
   как в макете, без радиокнопок: строка целиком и есть переключатель. */
.eb-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; font-weight: 700; color: #18181b; cursor: pointer; text-align: left; }
.eb-opt b { font-weight: 500; color: #71717a; }
.eb-opt .eb-price { font-weight: 700; color: #8b5cf6; }
.eb-opt:hover { border-color: #a78bfa; }
.eb-opt.is-on { border-color: #8b5cf6; background: #faf7ff; color: #8b5cf6; }
.eb-inp { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: #18181b; outline: none; }
.eb-inp:focus { border-color: #8b5cf6; }
/* Поле промокода с вердиктом внутри и блок цены — макет node 24220:17377 */
.eb-promo { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 16px; border: 1px solid #d4d4d8; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(24,24,27,.05); }
.eb-promo.is-ok { border-color: #8b5cf6; }
.eb-promo.is-err { border-color: #dc2626; }
.eb-promo input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: 14px; color: #18181b; text-transform: uppercase; }
.eb-promo input::placeholder { text-transform: none; }
.eb-promo-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: #0eab4d; white-space: nowrap; padding-right: 8px; }
.eb-promo-ok svg { width: 20px; height: 20px; }
.eb-promo-btn { flex: none; height: 36px; padding: 0 14px; border: none; border-radius: 10px; background: #8b5cf6; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.eb-promo-btn:hover { filter: brightness(1.05); }
.eb-promo-note { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #0eab4d; margin-top: 8px; }
.eb-promo-note svg { width: 18px; height: 18px; flex: none; }
.eb-promo-note.is-err { color: #dc2626; }
.eb-total { margin: 20px 0 4px; padding: 12px; border-radius: 16px; background: #f7f7fb; }
.eb-total-k { font-size: 14px; font-weight: 600; color: #18181b; }
.eb-total-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.eb-total-was { font-size: 18px; font-weight: 600; color: #a1a1aa; }
.eb-total-now { flex: 1; font-size: 24px; font-weight: 700; line-height: 1.15; color: #18181b; }
.eb-save { background: #dcfce7; color: #0eab4d; font-size: 14px; font-weight: 600; line-height: 1.5; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.eb-cta { width: 100%; height: 60px; margin-top: 16px; border: none; border-radius: 12px; background: #8b5cf6; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(24,24,27,.08); }
.eb-cta:hover { filter: brightness(1.05); }
.eb-cta:disabled { opacity: .5; cursor: default; }

/* ═══════════════ Инструкции (кнопка + модалка, заменяют сториз) ═══════════════ */
.guide-ico { display:inline-flex; align-items:center; justify-content:center; border-radius:12px; flex:none; background:var(--gold-light); color:var(--gold); }
/* список карт США — иконки в золото (Сингапур остаётся фиолетовым) */
.guide-list--us .guide-ico { background:rgba(184,134,11,.16); color:#B8860B; }

.guides-btn { display:flex; align-items:center; gap:13px; width:100%; margin:0 0 14px; padding:14px 16px; background:var(--card); border:1px solid var(--border); border-radius:18px; cursor:pointer; text-align:left; -webkit-tap-highlight-color:transparent; transition:transform .12s, box-shadow .12s; box-shadow:0 6px 18px rgba(20,16,40,.05); }
.guides-btn:active { transform:scale(.99); }
.guides-btn__txt { flex:1; min-width:0; }
.guides-btn__title { font-size:16px; font-weight:800; color:var(--text); }
.guides-btn__sub { font-size:12.5px; color:var(--muted); margin-top:2px; }
.guides-btn__chev { width:20px; height:20px; color:var(--muted); flex:none; }

body.guides-open { overflow:hidden; }
.guides-modal { position:fixed; inset:0; z-index:1200; display:none; align-items:center; justify-content:center; background:rgba(10,8,25,.55); padding:20px; }
.guides-modal.open { display:flex; }
.guide-dialog { width:100%; max-width:460px; max-height:88vh; max-height:88dvh; overflow-y:auto; background:var(--card); border-radius:24px; box-shadow:0 30px 80px rgba(0,0,0,.4); }
.guide-head { position:sticky; top:0; z-index:2; display:flex; align-items:center; gap:12px; padding:16px; background:var(--card); border-bottom:1px solid var(--border); }
.guide-head__copy { flex:1; min-width:0; }
.guide-head__copy span { font-size:11px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.guide-head__copy h2 { font-size:18px; font-weight:800; color:var(--text); margin:2px 0 0; }
.guide-back, .guide-close { width:36px; height:36px; flex:none; border:1px solid var(--border); border-radius:11px; background:var(--bg); color:var(--text); cursor:pointer; display:flex; align-items:center; justify-content:center; -webkit-tap-highlight-color:transparent; }
.guide-back svg, .guide-close svg { width:18px; height:18px; }
.guide-body { padding:16px; }
.guide-hint { font-size:13.5px; color:var(--muted); margin:0 0 14px; line-height:1.4; }

.guide-countries { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.guide-country { display:flex; flex-direction:column; align-items:center; gap:8px; padding:18px 12px; background:var(--bg); border:1px solid var(--border); border-radius:18px; cursor:pointer; -webkit-tap-highlight-color:transparent; transition:border-color .12s, transform .12s; }
.guide-country:active { transform:scale(.98); }
.guide-country:hover { border-color:var(--gold); }
.guide-country__flag { width:46px; height:46px; border-radius:50%; object-fit:cover; box-shadow:0 3px 10px rgba(0,0,0,.12); }
.guide-country__label { font-size:15px; font-weight:800; color:var(--text); }
.guide-country__note { font-size:11.5px; color:var(--muted); text-align:center; }

.guide-list { display:flex; flex-direction:column; gap:8px; }
.guide-row { display:flex; align-items:center; gap:12px; width:100%; padding:11px 12px; background:var(--bg); border:1px solid var(--border); border-radius:15px; cursor:pointer; text-align:left; -webkit-tap-highlight-color:transparent; transition:border-color .12s; }
.guide-row:hover { border-color:var(--gold); }
.guide-row__txt { flex:1; min-width:0; }
.guide-row__title { font-size:14.5px; font-weight:700; color:var(--text); }
.guide-row__sub { font-size:12px; color:var(--muted); margin-top:1px; }
.guide-row__chev { width:18px; height:18px; color:var(--muted); flex:none; }

.guide-article a { color:inherit; text-decoration:underline; word-break:break-all; }
/* баннер-шапка (флаг + короткая заметка), тема по стране */
.guide-banner { display:flex; align-items:center; gap:12px; padding:13px 15px; border:1px solid; border-radius:16px; margin:0 0 16px; font-size:14px; font-weight:600; line-height:1.4; }
.guide-banner__flag { width:34px; height:34px; border-radius:50%; flex:none; box-shadow:0 2px 7px rgba(0,0,0,.14); }
.guide-banner b { font-weight:800; }
/* подзаголовок секции */
.guide-h { font-size:15px; font-weight:800; margin:18px 0 9px; line-height:1.3; }
.guide-h:first-child { margin-top:0; }
/* список с цветными маркерами (--gd = акцент страны) */
.guide-ul { list-style:none; margin:0 0 14px; padding:0; display:flex; flex-direction:column; gap:8px; }
.guide-ul li { position:relative; padding-left:22px; font-size:14px; line-height:1.5; color:var(--text); }
.guide-ul li::before { content:''; position:absolute; left:4px; top:8px; width:8px; height:8px; border-radius:50%; background:var(--gd,#6E3BEA); }
.guide-p { font-size:14px; line-height:1.55; color:var(--text); margin:0 0 14px; }
/* предупреждение / ошибка */
.guide-err { display:flex; gap:6px; font-size:14px; font-weight:800; color:#B42318; background:rgba(217,45,32,.08); border:1px solid rgba(217,45,32,.2); border-radius:12px; padding:10px 13px; margin:14px 0 10px; line-height:1.35; }
/* блок реквизитов (Страна/Город/Адрес) */
.guide-fields { border:1px solid; border-radius:14px; padding:6px 14px; margin:6px 0 14px; }
.guide-kv { display:flex; justify-content:space-between; gap:12px; padding:7px 0; border-bottom:1px solid rgba(0,0,0,.06); font-size:14px; }
.guide-kv:last-child { border-bottom:none; }
.guide-kv span { color:var(--muted); }
.guide-kv b { font-weight:700; color:var(--text); text-align:right; }

@media (max-width:520px) { .guides-modal { padding:0; align-items:stretch; } .guide-dialog { max-width:100%; max-height:100vh; max-height:100dvh; border-radius:0; } }

/* ═══════════ «Оплата сервисов» по макету Figma (24215:45441, 24217:30962/39646) ═══════════
   Токены те же, что у eSIM: бренд #8b5cf6, поверхность #f7f7fb, рамки #e4e4e7/#d4d4d8,
   зелёный #0eab4d. Промокод, «Итого» и кнопку берём готовыми из .eb-* — в макете они
   один в один совпадают с уже свёрстанной модалкой покупки eSIM. */
.sv2-title { font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -.32px; color: #18181b; margin: 0 0 4px; }
.sv2-title span { color: #8b5cf6; }
.sv2-sub { font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: .16px; color: #71717a; margin: 0 0 32px; }

.svc-purchases { margin: 0 0 32px; }
.svc-purchases-head { margin-bottom: 12px; }
.svc-purchases-head > span { display: block; margin-bottom: 3px; color: #8b5cf6; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.svc-purchases-head h2 { margin: 0; color: #18181b; font-size: 22px; line-height: 1.25; }
.svc-purchases-list { display: grid; gap: 12px; }
.svc-purchase-card { padding: 16px; border: 1px solid #e4e4e7; border-radius: 20px; background: #fcfcfd; box-shadow: 0 1px 1px rgba(24,24,27,.05); }
.svc-purchase-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.svc-purchase-main h3 { margin: 0; color: #18181b; font-size: 16px; line-height: 1.35; }
.svc-purchase-main p { margin: 4px 0 0; color: #71717a; font-size: 12px; line-height: 1.45; }
.svc-purchase-main strong { flex: none; color: #18181b; font-size: 15px; white-space: nowrap; }
.svc-purchase-delivery { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e4e4e7; }
.svc-purchase-code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 14px; background: #f4f0ff; }
.svc-purchase-code-row > div { min-width: 0; display: grid; gap: 3px; }
.svc-purchase-code-row small { color: #71717a; font-size: 11px; font-weight: 600; }
.svc-purchase-code-row code { overflow-wrap: anywhere; color: #18181b; font: 700 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; }
.svc-purchase-code-row span { color: #71717a; font-size: 11px; }
.svc-purchase-code-row button { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid #a78bfa; border-radius: 10px; color: #7c3aed; background: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.svc-purchase-instruction { margin: 0; color: #52525b; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
@media (max-width: 520px) {
  .svc-purchase-main, .svc-purchase-code-row { align-items: flex-start; flex-direction: column; }
  .svc-purchase-code-row button { width: 100%; }
}

/* герой «Пополнение Steam» */
.sv2-hero { background: #fcfcfd; border: 1px solid #e4e4e7; border-radius: 24px; padding: 16px; box-shadow: 0 1px 1px rgba(24,24,27,.05); margin-bottom: 32px; }
.sv2-hero-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.sv2-hero-img { flex: none; width: 68px; height: 56px; border-radius: 8px; object-fit: cover; background: #f7f7fb; }
.sv2-hero-h h3 { font-size: 20px; font-weight: 600; line-height: 1.2; color: #18181b; margin: 0; }
.sv2-hero-h p { font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .24px; color: #71717a; margin: 4px 0 0; }
.sv2-lbl { display: block; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .24px; color: #71717a; margin: 16px 0 8px; }
.sv2-lbl:first-of-type { margin-top: 0; }
/* Кнопка героя ниже, чем в модалке товара: в макете витрины она 48 px. */
.sv2-hero .eb-cta { height: 48px; }

/* быстрые суммы под полем: 500 / 1000 / 3000 */
.sv2-quick { display: flex; gap: 8px; margin-top: 8px; }
.sv2-quick button { flex: 1; height: 48px; border: 1px solid #a78bfa; border-radius: 12px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .14px; color: #8b5cf6; cursor: pointer; }
.sv2-quick button:hover { border-color: #8b5cf6; }
.sv2-quick button.is-on { border-color: #8b5cf6; background: #f3e8ff; }

/* витрина: «Популярное», «Игровые коды» */
.sv2-sec { margin-bottom: 32px; }
.sv2-sec h3 { font-size: 20px; font-weight: 700; line-height: 1.2; color: #18181b; margin: 0 0 16px; }
/* Плитка витрины: обложка 160x150 со скруглением 28 и тонкой рамкой — без рамки белые
   логотипы (Apple) сливались бы с фоном. Ширину ограничиваем 160 и центрируем колонки,
   как в макете: на широком экране растянутые на пол-экрана обложки выглядели бы баннерами. */
.sv2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); justify-content: center; gap: 16px 24px; }
.sv2-tile { display: flex; flex-direction: column; gap: 12px; padding: 0; border: none; background: none; font: inherit; text-align: center; cursor: pointer; }
.sv2-tile-img, .sv2-tile-ph { width: 100%; height: 150px; border: 1px solid #d4d4d8; border-radius: 28px; background: #f7f7fb; display: block; }
.sv2-tile-img { object-fit: cover; }
.sv2-tile-ph { display: flex; align-items: center; justify-content: center; font-size: 40px; }
.sv2-tile span { font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: .16px; color: #18181b; }
.sv2-tile:hover .sv2-tile-img, .sv2-tile:hover .sv2-tile-ph { border-color: #8b5cf6; }

/* сетка номиналов в модалке товара (Telegram Stars и т.п.) */
.sv2-noms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sv2-nom { overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 100px; padding: 12px; border: 1px solid #e4e4e7; border-radius: 16px; background: #fff; font: inherit; cursor: pointer; }
.sv2-nom:hover { border-color: #a78bfa; }
.sv2-nom.is-on { border-color: #8b5cf6; background: #f7f7fb; }
/* Название номинала бывает длинным даже после сокращения («40500 UC»), поэтому
   плашка тянется по содержимому, а текст переносится максимум на две строки и
   дальше обрезается многоточием — раньше он вылезал за карточку и резался посередине. */
.sv2-nom-top { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; max-width: 100%; padding: 6px 12px; border-radius: 10px; background: #f7f7fb; font-size: 15px; font-weight: 600; letter-spacing: .16px; line-height: 1.25; color: #18181b; text-align: center; }
.sv2-nom-top span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv2-nom.is-on .sv2-nom-top { background: #fff; }
.sv2-nom-rub { font-size: 16px; font-weight: 600; letter-spacing: .16px; color: #8b5cf6; }
/* плашка «Другое» — вместо номинала открывает ввод своей суммы */
.sv2-nom--other .sv2-nom-top { width: 40px; padding: 0; }
.sv2-nom-other-t { font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .24px; color: #18181b; text-align: center; }

/* выбор региона (PlayStation): список с флагом */
/* Регионов у PSN сорок штук — списком во всю длину они отодвигали номиналы и кнопку
   далеко вниз. Ограничиваем высоту и прокручиваем внутри; выбранный подкручиваем в вид. */
.sv2-regs { display: flex; flex-direction: column; gap: 8px; max-height: 264px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.sv2-reg { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; font-weight: 600; color: #18181b; cursor: pointer; text-align: left; }
.sv2-reg:hover { border-color: #a78bfa; }
.sv2-reg.is-on { border-color: #8b5cf6; background: #faf7ff; }
.sv2-reg-flag { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #f7f7fb; overflow: hidden; }

/* Баннер в модалке подарка после покупки сервиса (макет 24220:18104): картинка товара,
   поверх — затемнение, галочка и заголовок. Затемнение обязательно: обложки у поставщика
   пёстрые, белый текст без него местами не читается. */
/* Отступ сверху — чтобы крестик закрытия не лёг поверх картинки: белый на пёстрой
   обложке он терялся, и модалку было нечем закрыть. */
.rw-hero { margin-top: 18px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 132px; margin-bottom: 12px; padding: 20px 16px; border-radius: 16px; background-color: #18181b; background-size: cover; background-position: center; overflow: hidden; }
.rw-hero::before { content: ''; position: absolute; inset: 0; background: rgba(24,24,27,.62); }
.rw-hero-tick, .rw-hero-t { position: relative; }
.rw-hero-tick { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; color: #fff; }
.rw-hero-tick svg { width: 20px; height: 20px; }
.rw-hero-t { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: #fff; text-align: center; }

/* ══════════ Единая оболочка кабинета ══════════
   Структура опирается на привычный SaaS-кабинет: боковое меню на
   компьютере и нижняя навигация на телефоне. Цвета и кнопки — Aifory Pro. */
body.app-body.cabinet-v2 {
  --gold:#7C3AED; --gold-hover:#6D28D9; --gold-light:#F1EBFF;
  --bg:#F6F5F8; --card:#FFFFFF; --border:#E8E5EE; --text:#15131A; --muted:#746F7E;
  --cabinet-sidebar:248px;
  background:
    radial-gradient(900px 430px at 86% -12%, rgba(139,92,246,.13), transparent 62%),
    var(--bg);
}
.cabinet-v2 .app-topbar { display:none; }
.cabinet-v2 .app-logo-icon { width:34px; height:34px; border-radius:10px; }
.cabinet-v2 .app-logo-text { font-size:18px; }
.cabinet-layout { width:100%; min-height:100vh; margin:0; display:grid; grid-template-columns:var(--cabinet-sidebar) minmax(0,1fr); transition:grid-template-columns .22s ease; }
.cabinet-sidebar {
  position:sticky; top:0; align-self:start; height:100vh; overflow-y:auto;
  padding:22px 16px 18px; border-right:1px solid var(--border); background:rgba(255,255,255,.82);
  backdrop-filter:blur(18px); display:flex; flex-direction:column; z-index:60;
}
.cabinet-collapse {
  position:fixed; top:24px; left:calc(var(--cabinet-sidebar) - 15px); z-index:220;
  width:30px; height:30px; border:1px solid var(--border); border-radius:10px; display:flex; align-items:center; justify-content:center;
  color:#776F81; background:#fff; box-shadow:0 5px 16px rgba(36,24,60,.1); cursor:pointer; transition:left .22s ease, color .16s, background .16s;
}
.cabinet-collapse:hover { color:var(--gold); background:var(--gold-light); }
.cabinet-collapse svg { width:17px; height:17px; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .22s ease; }
.cabinet-brand { min-height:50px; margin:0 7px 20px; display:flex; align-items:center; gap:11px; color:var(--text); text-decoration:none; }
.cabinet-brand-mark { width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(135deg,#2C1F04,var(--gold)); box-shadow:0 8px 20px rgba(124,58,237,.18); }
.cabinet-brand-mark svg { width:20px; height:20px; }
.cabinet-brand-name { min-width:0; display:grid; grid-template-columns:auto auto; justify-content:start; column-gap:4px; color:#211A2D; font-size:17px; font-weight:800; letter-spacing:-.025em; }
.cabinet-brand-name b { color:var(--gold); }
.cabinet-brand-name small { grid-column:1/-1; margin-top:1px; color:#9A93A3; font-size:9px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.cabinet-sidebar-title { padding:0 12px 10px; color:#A09AA9; font-size:10px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.cabinet-nav { display:grid; gap:3px; }
.cabinet-nav-item {
  min-height:43px; padding:0 12px; border-radius:13px; display:flex; align-items:center; gap:11px;
  color:#615C69; font-size:14px; font-weight:650; text-decoration:none; transition:.16s ease;
}
.cabinet-nav-item svg, .cabinet-support svg { width:21px; height:21px; flex:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.cabinet-nav-item:hover { color:var(--text); background:#F4F1FA; }
.cabinet-nav-item.active { color:var(--gold); background:var(--gold-light); box-shadow:inset 0 0 0 1px rgba(124,58,237,.08); }
.cabinet-sidebar-bottom { margin-top:auto; padding-top:16px; display:grid; gap:10px; }
.cabinet-support {
  padding:13px; border:1px solid #E7DDFB; border-radius:16px; display:flex; align-items:center; gap:10px;
  color:var(--gold); background:linear-gradient(145deg,#FBF9FF,#F1EBFF); text-decoration:none;
}
.cabinet-support span { display:grid; gap:2px; min-width:0; }
.cabinet-support b { color:#3A2A56; font-size:13px; }
.cabinet-support small { color:#84798F; font-size:11px; }
.cabinet-account { min-height:52px; padding:6px; border:1px solid var(--border); border-radius:15px; display:flex; align-items:center; gap:5px; background:rgba(255,255,255,.78); }
.cabinet-account-link { min-width:0; flex:1; display:flex; align-items:center; gap:9px; color:var(--text); text-decoration:none; }
.cabinet-account-avatar { width:34px; height:34px; flex:none; border-radius:11px; display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(135deg,#8B5CF6,#6D28D9); font-size:13px; font-weight:800; }
.cabinet-account-copy { min-width:0; display:grid; gap:1px; }
.cabinet-account-copy b { font-size:12px; }
.cabinet-account-copy small { max-width:112px; overflow:hidden; color:#918A99; font-size:9px; white-space:nowrap; text-overflow:ellipsis; }
.cabinet-logout { width:34px; height:34px; flex:none; border:0; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#8F8798; background:transparent; cursor:pointer; }
.cabinet-logout:hover { color:#DC2626; background:#FEF2F2; }
.cabinet-logout svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body.app-body.cabinet-v2.cabinet-sidebar-collapsed { --cabinet-sidebar:82px; }
.cabinet-sidebar-collapsed .cabinet-sidebar { padding-left:11px; padding-right:11px; }
.cabinet-sidebar-collapsed .cabinet-brand { width:42px; margin-left:auto; margin-right:auto; justify-content:center; }
.cabinet-sidebar-collapsed .cabinet-brand-name,
.cabinet-sidebar-collapsed .cabinet-sidebar-title,
.cabinet-sidebar-collapsed .cabinet-nav-item span,
.cabinet-sidebar-collapsed .cabinet-support span,
.cabinet-sidebar-collapsed .cabinet-account-link { display:none; }
.cabinet-sidebar-collapsed .cabinet-nav-item { padding:0; justify-content:center; }
.cabinet-sidebar-collapsed .cabinet-support { min-height:44px; padding:0; justify-content:center; }
.cabinet-sidebar-collapsed .cabinet-account { padding:5px; justify-content:center; }
.cabinet-sidebar-collapsed .cabinet-collapse svg { transform:rotate(180deg); }
body.app-body.cabinet-v2 .app-wrap { width:100%; max-width:1050px; margin:0; padding:38px 42px 112px; }
.cabinet-v2 .topnav { display:none !important; }
.cabinet-v2 .app-tabs { display:none; }
.cabinet-v2 #tab-ref { margin:0; padding:0; background:transparent; }
.cabinet-v2 .ref2 { max-width:820px; }
.cabinet-v2 #lk-below { max-width:680px; margin:0 auto; }
.cabinet-v2 .guides-link { max-width:680px; margin-left:auto; margin-right:auto; }
.cabinet-v2 .lkcarousel { max-width:920px; margin-left:auto; margin-right:auto; }

/* Обзор и показатели */
.dashboard-intro { margin-bottom:20px; }
.dashboard-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:28px; margin-bottom:22px; }
.dashboard-kicker { display:block; margin-bottom:8px; color:var(--gold); font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.dashboard-heading h1 { font-size:34px; line-height:1.12; letter-spacing:-.04em; }
.dashboard-heading p { max-width:620px; margin-top:8px; color:var(--muted); font-size:15px; line-height:1.55; }
.dashboard-issue {
  flex:none; min-height:44px; padding:0 18px; border:0; border-radius:13px; color:#fff; background:linear-gradient(135deg,#8B5CF6,var(--gold));
  font:inherit; font-size:14px; font-weight:750; cursor:pointer; box-shadow:0 9px 22px rgba(124,58,237,.22);
}
.dashboard-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.dashboard-stat {
  min-width:0; min-height:132px; padding:18px; border:1px solid var(--border); border-radius:20px; background:rgba(255,255,255,.9);
  color:var(--text); text-align:left; text-decoration:none; font:inherit; cursor:pointer; display:flex; flex-direction:column;
  box-shadow:0 8px 28px rgba(36,24,60,.04); transition:transform .16s,border-color .16s;
}
.dashboard-stat:hover { transform:translateY(-2px); border-color:#CDBAF7; }
.dashboard-stat span { color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.dashboard-stat b { margin-top:10px; font-size:27px; letter-spacing:-.04em; }
.dashboard-stat small { margin-top:auto; color:var(--gold); font-size:12px; font-weight:700; }

/* Единый призыв к выпуску карты на всех остальных экранах */
.context-card-cta[hidden] { display:none; }
.context-card-cta { margin-bottom:26px; }
.card-cta-banner {
  position:relative; overflow:hidden; min-height:118px; padding:22px 22px 22px 116px; border-radius:24px;
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:24px;
  color:#fff; background:linear-gradient(120deg,#4C1D95 0%,#6D28D9 53%,#8B5CF6 100%);
  box-shadow:0 18px 42px rgba(76,29,149,.2);
}
.card-cta-banner::after { content:""; position:absolute; width:220px; height:220px; right:12%; top:-130px; border:1px solid rgba(255,255,255,.18); border-radius:50%; }
.card-cta-art { position:absolute; left:26px; top:26px; width:66px; height:66px; border-radius:20px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.16); box-shadow:inset 0 0 0 1px rgba(255,255,255,.22); }
.card-cta-art svg { width:34px; height:34px; stroke:currentColor; stroke-width:1.5; }
.card-cta-copy { position:relative; z-index:1; display:grid; gap:6px; }
.card-cta-copy strong { font-size:20px; line-height:1.2; letter-spacing:-.025em; }
.card-cta-copy span { color:rgba(255,255,255,.78); font-size:13px; line-height:1.45; }
.card-cta-button { position:relative; z-index:1; min-height:48px; padding:0 18px; border:0; border-radius:14px; background:#fff; color:#6D28D9; font:inherit; font-size:13px; font-weight:800; cursor:pointer; white-space:nowrap; }
.card-cta-button:hover { transform:translateY(-1px); box-shadow:0 8px 24px rgba(37,18,68,.2); }

/* Реферальная программа: код, ссылка и статистика в одном потоке */
.ref-page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin:4px 0 22px; }
.ref-page-head h1 { font-size:32px; line-height:1.15; letter-spacing:-.04em; }
.ref-page-head p { margin-top:8px; color:var(--muted); font-size:15px; line-height:1.5; }
.ref-link-card { padding:24px; border:1px solid var(--border); border-radius:24px; background:#fff; box-shadow:0 12px 34px rgba(43,29,70,.06); }
.ref-code-label { color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.ref-code-value { margin-top:8px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.ref-code-value span { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:30px; font-weight:800; letter-spacing:.18em; }
.ref-code-value button { width:42px; height:42px; border:0; border-radius:12px; display:flex; align-items:center; justify-content:center; background:var(--gold-light); color:var(--gold); cursor:pointer; }
.ref-code-value button svg { width:20px; height:20px; }
.ref-link-separator { height:1px; margin:20px 0; background:var(--border); }
.ref-link-row { display:flex; align-items:stretch; gap:9px; margin-top:9px; }
.ref-link-value { min-width:0; flex:1; padding:12px 14px; border:1px solid var(--border); border-radius:12px; overflow:hidden; color:#4E4957; background:#FAF9FC; font-size:13px; white-space:nowrap; text-overflow:ellipsis; }
.ref-link-row button { padding:0 15px; border:1px solid var(--gold); border-radius:12px; color:var(--gold); background:#fff; font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
.ref-link-actions { display:flex; gap:10px; max-width:460px; margin-top:14px; }
.ref-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:14px; }
.ref-stat { min-height:125px; padding:16px; border:1px solid var(--border); border-radius:18px; background:#fff; display:flex; flex-direction:column; }
.ref-stat span { color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.ref-stat b { margin:7px 0 4px; font-size:25px; }
.ref-stat small { margin-top:auto; color:var(--muted); font-size:11px; line-height:1.35; }
.rsec-count { display:inline-flex; min-width:25px; height:25px; padding:0 7px; margin-left:6px; border-radius:99px; align-items:center; justify-content:center; background:var(--gold-light); color:var(--gold); font-size:12px; vertical-align:2px; }
.ref-empty { padding:28px 20px; border:1px dashed #D7CDEE; border-radius:18px; background:rgba(255,255,255,.7); display:grid; gap:6px; text-align:center; }
.ref-empty b { font-size:15px; }
.ref-empty span { color:var(--muted); font-size:13px; line-height:1.45; }

@media (min-width:960px) {
  .cabinet-v2 .lkcarousel { width:100%; margin-left:auto; transform:none; padding-left:calc(50% - 220px); padding-right:calc(50% - 220px); scroll-padding-inline:calc(50% - 220px); }
  .cabinet-v2 .sv2-grid { grid-template-columns:repeat(4,minmax(0,160px)); }
}

@media (min-width:720px) {
  .cabinet-v2 .cta-sticky {
    left:calc(var(--cabinet-sidebar) + (100vw - var(--cabinet-sidebar))/2 - 12px); transform:translateX(-50%);
    width:calc(100vw - var(--cabinet-sidebar) - 230px); max-width:420px; bottom:24px;
  }
}

@media (min-width:720px) and (max-width:1050px) {
  body.app-body.cabinet-v2 { --cabinet-sidebar:218px; }
  body.app-body.cabinet-v2.cabinet-sidebar-collapsed { --cabinet-sidebar:82px; }
  .cabinet-sidebar { padding-left:12px; padding-right:12px; }
  .cabinet-brand { margin-left:8px; margin-right:8px; }
  .cabinet-nav-item { padding-left:10px; padding-right:10px; font-size:13px; }
  .cabinet-nav-item svg { width:19px; height:19px; }
  .cabinet-support { padding:11px; }
  .cabinet-support small { font-size:10px; }
  .cabinet-account-copy small { max-width:90px; }
  body.app-body.cabinet-v2 .app-wrap { max-width:760px; padding:28px 24px 112px; }
  .card-cta-banner { min-height:140px; padding:20px 20px 20px 92px; grid-template-columns:1fr; gap:14px; }
  .card-cta-art { left:20px; top:20px; width:52px; height:52px; border-radius:16px; }
  .card-cta-art svg { width:27px; height:27px; }
  .card-cta-button { justify-self:start; }
  .ref-stat-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width:719px) {
  .cabinet-v2 .app-topbar { height:auto; min-height:64px; padding:10px 16px; display:flex; }
  .cabinet-layout { display:block; min-height:calc(100vh - 64px); }
  .cabinet-sidebar { display:none; }
  .cabinet-collapse { display:none; }
  body.app-body.cabinet-v2 .app-wrap { max-width:650px; margin:0 auto; padding:22px 16px calc(112px + env(safe-area-inset-bottom,0px)); }
  .cabinet-v2 .topnav { display:none !important; }
  .cabinet-v2 .app-tabs {
    display:flex; width:100%; max-width:none; left:0; bottom:0; transform:none; height:72px; padding:4px 5px calc(4px + env(safe-area-inset-bottom,0px));
    border-width:1px 0 0; border-radius:20px 20px 0 0; box-shadow:0 -9px 28px rgba(32,23,48,.09);
  }
  .cabinet-v2 .app-tab { border-radius:14px; }
  .cabinet-v2 .app-tab svg { width:21px; height:21px; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  .cabinet-v2 .cta-sticky { left:12px; transform:none; width:calc(100% - 160px); max-width:448px; }
}

@media (max-width:560px) {
  .cabinet-v2 .cta-sticky {
    width:calc(100% - 94px); gap:7px; font-size:14px; white-space:nowrap;
  }
}

@media (max-width:680px) {
  .dashboard-heading { display:block; }
  .dashboard-heading h1 { font-size:28px; }
  .dashboard-issue { width:100%; margin-top:16px; }
  .dashboard-stats { grid-template-columns:1fr 1fr; }
  .dashboard-stat:last-child { grid-column:1/-1; min-height:112px; }
  .card-cta-banner { padding:20px; display:flex; flex-direction:column; align-items:stretch; gap:16px; }
  .card-cta-art { position:static; width:52px; height:52px; border-radius:16px; }
  .card-cta-art svg { width:27px; height:27px; }
  .card-cta-copy strong { font-size:18px; }
  .card-cta-button { width:100%; }
  .ref-page-head h1 { font-size:27px; }
  .ref-link-card { padding:20px 16px; }
  .ref-code-value span { font-size:24px; }
  .ref-link-row { flex-direction:column; }
  .ref-link-row button { min-height:42px; }
  .ref-stat-grid { grid-template-columns:1fr 1fr; }
  .rb-grid { grid-template-columns:1fr; }
  .rb { display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:10px; }
  .rb-ico { grid-row:1/3; }
  .rb-cur,.rb-sum,.rb-st { margin:0; }
  .rb-sum { text-align:right; }
  .rb-st { grid-column:2/4; }
  .rhow-row { gap:8px; }
  .rhow-arr { display:none; }
  .rhow-step { font-size:11px; }
}

@media (max-width:390px) {
  .cabinet-v2 .app-tab { font-size:9px; }
  .dashboard-stats { grid-template-columns:1fr; }
  .dashboard-stat:last-child { grid-column:auto; }
  .ref-code-value span { font-size:20px; letter-spacing:.12em; }
}

/* ══════════ Широкая компоновка кабинета ══════════
   На десктопе используем всю область справа от сайдбара. Карта и связанные с ней
   условия/действия образуют две самостоятельные колонки; на узких экранах поток
   остаётся последовательным и удобным для свайпа. */
.cards-workspace { min-width:0; margin-top:22px; }
.cards-workspace__visual {
  min-width:0; padding:18px; border:1px solid var(--border); border-radius:26px;
  background:rgba(255,255,255,.68); box-shadow:0 14px 38px rgba(36,24,60,.045);
}
.cards-workspace__eyebrow {
  margin:0 4px 2px; color:var(--muted); font-size:10px; font-weight:800;
  letter-spacing:.1em; text-transform:uppercase;
}
.cards-workspace__details { min-width:0; }
.cabinet-v2 .cards-workspace #lk-below { max-width:none; margin:0; }
.cabinet-v2 .cards-workspace .lkcarousel {
  width:100%; max-width:none; margin:0; padding:16px 0 12px;
  scroll-padding-inline:0; transform:none;
}
.cabinet-v2 .cards-workspace .lkcard-item { flex-basis:100%; max-width:none; }
.cabinet-v2 .cards-workspace .lkdots { margin:0 0 2px; }

@media (min-width:1051px) {
  body.app-body.cabinet-v2 .app-wrap {
    max-width:none; margin:0; padding:36px clamp(32px,3.2vw,60px) 112px;
  }
  .cabinet-v2 .guides-link { max-width:none; margin-left:0; margin-right:0; }
  .cabinet-v2 .ref2 { max-width:none; }
}

@media (min-width:1180px) {
  .cards-workspace {
    display:grid; grid-template-columns:minmax(360px,.82fr) minmax(430px,1.18fr);
    align-items:start; gap:clamp(28px,3.4vw,58px); margin-top:26px;
  }
  .cards-workspace__visual { position:sticky; top:28px; }
  .cards-workspace__details { padding-top:4px; }
  .cards-workspace__details .issue-inline__title { margin-top:0; font-size:22px; }
  .cards-workspace__details .issue-inline__sub { max-width:640px; margin-bottom:16px; }
  .cards-workspace__details .feat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (min-width:1540px) {
  .cards-workspace { grid-template-columns:minmax(460px,.78fr) minmax(620px,1.22fr); }
  .dashboard-stat { min-height:142px; padding:22px; }
  .dashboard-stat b { font-size:31px; }
}

@media (max-width:1179px) {
  .cards-workspace { max-width:760px; margin-left:auto; margin-right:auto; }
  .cards-workspace__details { margin-top:18px; }
}

@media (max-width:719px) {
  .cards-workspace { margin-top:16px; }
  .cards-workspace__visual { padding:12px; border-radius:21px; }
  .cards-workspace__eyebrow { margin-top:2px; }
  .cabinet-v2 .cards-workspace .lkcarousel { padding:12px 0 10px; }
  .cabinet-v2 .cards-workspace .lkcard-item { flex-basis:min(440px,100%); }
  .cards-workspace__details { margin-top:16px; }
  .myesim-actions,.ev2-btns { flex-wrap:wrap; }
  .myesim-btn--danger,.ev2-btn--danger { flex-basis:100%; }
}

.primary-button:disabled,.lkadd-item:disabled { cursor:not-allowed; opacity:.62; }

/* ══════════ Обзор: продуктовая сводка и безопасная карта ══════════
   Компоненты намеренно ограничены кабинетом и экраном обзора. Более высокая
   специфичность нужна потому, что cabinet-system.css подключается после app.css. */

.cabinet-layout.gc2 .overview-card-swipe-zone {
  min-width:0; touch-action:pan-y; user-select:none; -webkit-user-select:none;
}

.cabinet-layout.gc2 .overview-card-selector {
  min-height:28px; margin:-4px 0 12px; display:flex; align-items:center;
  justify-content:center; gap:10px; color:#81788a;
}
.cabinet-layout.gc2 .overview-card-selector--single { justify-content:flex-start; }
.cabinet-layout.gc2 .overview-card-count {
  font-size:10px; font-weight:750; letter-spacing:.045em; text-transform:uppercase;
}
.cabinet-layout.gc2 .overview-card-dots { display:flex; align-items:center; gap:5px; }
.cabinet-layout.gc2 .overview-card-dot {
  width:7px; height:7px; min-width:7px; padding:0; border:0; border-radius:99px;
  background:#d9d2df; cursor:pointer; transition:width .18s ease,background .18s ease;
}
.cabinet-layout.gc2 .overview-card-dot.is-active { width:18px; background:var(--purple); }
.cabinet-layout.gc2 .overview-card-arrow {
  width:28px; height:28px; padding:0; border:1px solid var(--line); border-radius:9px;
  display:grid; place-items:center; color:#796f82; background:#fff; cursor:pointer;
}
.cabinet-layout.gc2 .overview-card-arrow svg { width:13px; height:13px; transform:rotate(180deg); }
.cabinet-layout.gc2 .overview-card-arrow--next svg { transform:none; }
.cabinet-layout.gc2 .overview-card-swipe-hint { display:none; }

.cabinet-layout.gc2 .overview-bank-card {
  position:relative; width:100%; aspect-ratio:1.63; padding:0; border:0;
  border-radius:24px; display:block; color:#fff; background:transparent;
  perspective:1500px; cursor:pointer; -webkit-tap-highlight-color:transparent;
}
.cabinet-layout.gc2 .overview-bank-card:focus-visible {
  outline:3px solid rgba(113,55,238,.3); outline-offset:4px;
}
.cabinet-layout.gc2 .overview-bank-card:disabled { cursor:default; opacity:.78; }
.cabinet-layout.gc2 .overview-bank-card__inner {
  position:absolute; inset:0; display:block; transform-style:preserve-3d;
  transition:transform .48s cubic-bezier(.2,.72,.25,1);
}
.cabinet-layout.gc2 .overview-bank-card.is-flipped .overview-bank-card__inner { transform:rotateY(180deg); }

.cabinet-layout.gc2 .overview-issue-card {
  position:relative; width:100%; aspect-ratio:1.63; padding:22px; border:1.5px dashed #9b68ef;
  border-radius:24px; display:block; overflow:hidden; color:#352043; text-align:left;
  background:linear-gradient(135deg,#fbf8ff 0%,#f1e9ff 58%,#e6d8ff 100%);
  box-shadow:inset 0 0 0 7px rgba(255,255,255,.32); cursor:pointer;
}
.cabinet-layout.gc2 .overview-issue-card::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.66),rgba(255,255,255,0) 47%);
}
.cabinet-layout.gc2 .overview-issue-card:focus-visible {
  outline:3px solid rgba(113,55,238,.3); outline-offset:4px;
}
.cabinet-layout.gc2 .overview-issue-card__brand {
  position:relative; z-index:1; font-size:13px; font-weight:800; letter-spacing:.05em;
}
.cabinet-layout.gc2 .overview-issue-card__brand b { color:var(--purple); }
.cabinet-layout.gc2 .overview-issue-card__plus {
  position:absolute; z-index:1; left:50%; top:44%; width:58px; height:58px;
  border-radius:18px; display:grid; place-items:center; color:#fff;
  background:linear-gradient(135deg,#6730d6,#9147f4); box-shadow:0 14px 30px rgba(91,38,183,.22);
  transform:translate(-50%,-50%);
}
.cabinet-layout.gc2 .overview-issue-card__plus svg { width:23px; height:23px; }
.cabinet-layout.gc2 .overview-issue-card__copy {
  position:absolute; z-index:1; left:22px; right:22px; bottom:20px; display:grid; gap:3px;
}
.cabinet-layout.gc2 .overview-issue-card__copy b { font-size:16px; line-height:1.25; }
.cabinet-layout.gc2 .overview-issue-card__copy small { color:#776b80; font-size:9px; line-height:1.4; }
.cabinet-layout.gc2 .overview-issue-card__price {
  position:absolute; z-index:1; right:22px; top:21px; color:var(--purple);
  font-size:10px; font-weight:800;
}
.cabinet-layout.gc2 .overview-issue-cta {
  width:100%; min-height:50px; margin-top:18px; display:flex; align-items:center; justify-content:center; gap:8px;
}
.cabinet-layout.gc2 .overview-issue-cta svg { width:16px; height:16px; }
.cabinet-layout.gc2 .overview-bank-card__face {
  position:absolute; inset:0; padding:22px; border-radius:24px; overflow:hidden;
  display:flex; flex-direction:column; text-align:left; backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  background:linear-gradient(135deg,#271052 0%,#4a1592 47%,#9b4ff3 100%);
  box-shadow:none !important;
}
.cabinet-layout.gc2 .overview-bank-card__face::before,
.cabinet-layout.gc2 .overview-bank-card__face::after {
  content:none;
}
.cabinet-layout.gc2 .overview-bank-card__face::before {
  width:220px; height:220px; right:-78px; top:-150px;
}
.cabinet-layout.gc2 .overview-bank-card__face::after {
  width:175px; height:175px; left:20%; bottom:-142px;
}
.cabinet-layout.gc2 .overview-bank-card--premium .overview-bank-card__face {
  background:linear-gradient(135deg,#000 0%,#050505 45%,#0a0803 57%,#6b5310 72%,#d9b441 84%,#f7e9b8 92%,#c9a227 100%);
}
.cabinet-layout.gc2 .overview-bank-card--mint .overview-bank-card__face {
  background:linear-gradient(140deg,#05261c 0%,#0b3d2e 43%,#12715a 74%,#34d399 100%);
}
/* ПЕРЕКЛЮЧЕНИЕ ГРАНЕЙ НЕ ОПИРАЕТСЯ НА backface-visibility.
   Причина: в WebKit (Safari, iOS) отсечение обратной грани здесь не работает —
   у граней стоит overflow:hidden ради скруглений, и на этом культинг ломается.
   Воспроизведено: при перевёрнутой карте лицевая сторона просвечивала сквозь
   оборот ЗЕРКАЛЬНО (в Chromium дефекта нет). Попытка вылечить явным rotateY(0)
   у лицевой грани дала обратный дефект — начал просвечивать оборот.

   Поэтому грани переключаются явно прозрачностью, а не культингом. Смена
   мгновенная (0s) и отложена до момента, когда карта повёрнута РЕБРОМ —
   тогда подмены не видно.

   Задержка 0.08s, а не половина длительности: кривая
   cubic-bezier(.2,.72,.25,1) очень резкая в начале. Замер поворота по кадрам
   показал 81° уже на 68 мс, тогда как на 240 мс карта прошла 168° — подмена
   в середине по времени происходила бы, когда лицевая грань давно отвернулась
   и (в WebKit) успела показаться зеркально. 90° приходится на ~75 мс.
   backface-visibility оставлен: он ничему не мешает и помогает Chromium. */
.cabinet-layout.gc2 .overview-bank-card__front,
.cabinet-layout.gc2 .overview-bank-card__back {
  transition:opacity 0s linear .08s;
}
.cabinet-layout.gc2 .overview-bank-card__front { opacity:1; }
.cabinet-layout.gc2 .overview-bank-card__back {
  transform:rotateY(180deg); justify-content:center; gap:12px; opacity:0;
}
.cabinet-layout.gc2 .overview-bank-card.is-flipped .overview-bank-card__front { opacity:0; }
.cabinet-layout.gc2 .overview-bank-card.is-flipped .overview-bank-card__back { opacity:1; }
.cabinet-layout.gc2 .overview-bank-card__top,
.cabinet-layout.gc2 .overview-bank-card__bottom,
.cabinet-layout.gc2 .overview-bank-card__number,
.cabinet-layout.gc2 .overview-bank-card__back-label,
.cabinet-layout.gc2 .overview-bank-card__secret,
.cabinet-layout.gc2 .overview-bank-card__meta,
.cabinet-layout.gc2 .overview-bank-card__hint,
.cabinet-layout.gc2 .overview-bank-card__loading { position:relative; z-index:1; }
.cabinet-layout.gc2 .overview-bank-card__top,
.cabinet-layout.gc2 .overview-bank-card__bottom {
  display:flex; align-items:center; justify-content:space-between; font-weight:800;
  letter-spacing:.07em; text-transform:uppercase;
}
.cabinet-layout.gc2 .overview-bank-card__top { font-size:12px; }
.cabinet-layout.gc2 .overview-bank-card__top i { font-size:15px; font-style:italic; letter-spacing:-.05em; }
.cabinet-layout.gc2 .overview-bank-card__chip {
  position:relative; z-index:1; width:37px; height:28px; margin-top:28px;
  border-radius:8px; background:linear-gradient(135deg,#f5d890,#a9873c);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);
}
.cabinet-layout.gc2 .overview-bank-card__number {
  margin-top:auto; font-size:clamp(15px,1.3vw,20px); font-weight:650;
  letter-spacing:.06em; white-space:nowrap;
}
.cabinet-layout.gc2 .overview-bank-card__bottom { margin-top:18px; color:rgba(255,255,255,.72); font-size:8px; }
.cabinet-layout.gc2 .overview-bank-card__back-label {
  color:rgba(255,255,255,.7); font-size:9px; font-weight:800;
  letter-spacing:.11em; text-transform:uppercase;
}
.cabinet-layout.gc2 .overview-bank-card__secret {
  font-size:clamp(15px,1.3vw,19px); font-weight:750; letter-spacing:.045em;
  white-space:nowrap;
}
.cabinet-layout.gc2 .overview-bank-card__meta { display:flex; gap:28px; }
.cabinet-layout.gc2 .overview-bank-card__meta>span { display:grid; gap:3px; }
.cabinet-layout.gc2 .overview-bank-card__meta small {
  color:rgba(255,255,255,.65); font-size:8px; letter-spacing:.08em; text-transform:uppercase;
}
.cabinet-layout.gc2 .overview-bank-card__meta b { font-size:13px; }
.cabinet-layout.gc2 .overview-bank-card__hint { color:rgba(255,255,255,.63); font-size:9px; }
.cabinet-layout.gc2 .overview-bank-card__loading {
  align-self:center; display:flex; align-items:center; gap:10px; font-size:11px; font-weight:750;
}
.cabinet-layout.gc2 .overview-bank-card__loading>span {
  width:18px; height:18px; border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff; border-radius:50%; animation:overviewCardSpin .7s linear infinite;
}
@keyframes overviewCardSpin { to { transform:rotate(360deg); } }
.cabinet-layout.gc2 .overview-card-error {
  margin:10px 0 -2px; padding:9px 11px; border-radius:10px; color:#a52828;
  background:#fff0f0; font-size:10px; line-height:1.4;
}
.cabinet-layout.gc2 .balance-row button:disabled,
.cabinet-layout.gc2 .quick-actions button:disabled { cursor:not-allowed; opacity:.48; }
.cabinet-layout.gc2 .quick-actions--4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.cabinet-layout.gc2 .quick-actions [data-card-copy-label] {
  min-width:0; color:inherit; font:inherit; font-weight:inherit; line-height:1.2;
}
.cabinet-layout.gc2 .quick-actions button.is-copied { color:#1b7a52; background:#eaf8f1; }
.cabinet-layout.gc2 .new-card-tile.is-limited {
  border-style:solid; border-color:#ddd4e8; background:linear-gradient(135deg,#faf9fc,#f3f0f6);
}
.cabinet-layout.gc2 .stats-row--two { grid-template-columns:repeat(2,minmax(0,1fr)); }

/* На широком экране суммы последних операций остаются рядом с названиями:
   список занимает пять колонок, а освободившиеся две работают как полезная
   сводка. На ноутбуке и мобильном исходная сетка сохраняется без сжатия строк. */
.cabinet-layout.gc2 .overview-flow-root {
  container:overview-flow / inline-size;
}
.cabinet-layout.gc2 .overview-activity-summary {
  display:none;
}
@container overview-flow (min-width:1080px) {
  .cabinet-layout.gc2 .overview-flow-root .transactions-panel {
    grid-column:span 5;
  }
  .cabinet-layout.gc2 .overview-flow-root .overview-activity-summary {
    grid-column:span 2; min-width:0; padding:22px 18px; display:flex;
    flex-direction:column; align-items:stretch;
    background:linear-gradient(150deg,#ffffff 0%,#fbf8ff 56%,#f3ecff 100%);
  }
}
.cabinet-layout.gc2 .overview-activity-summary__head {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.cabinet-layout.gc2 .overview-activity-summary__head>svg {
  width:20px; height:20px; color:var(--purple);
}
.cabinet-layout.gc2 .overview-activity-summary>strong {
  margin-top:20px; font-size:clamp(22px,1.65vw,29px); line-height:1.12;
  letter-spacing:-.04em;
}
.cabinet-layout.gc2 .overview-activity-summary>p {
  margin:7px 0 18px; color:#827889; font-size:12px; line-height:1.45;
}
.cabinet-layout.gc2 .overview-activity-summary dl {
  margin:0; display:grid; border-top:1px solid #e9e2f0;
}
.cabinet-layout.gc2 .overview-activity-summary dl>div {
  min-height:53px; padding:10px 0; border-bottom:1px solid #e9e2f0;
  display:grid; align-content:center; gap:3px;
}
.cabinet-layout.gc2 .overview-activity-summary dt {
  color:#83798a; font-size:11px;
}
.cabinet-layout.gc2 .overview-activity-summary dd {
  margin:0; color:#2c2431; font-size:14px; font-weight:800;
}
.cabinet-layout.gc2 .overview-activity-summary dd.positive { color:var(--success); }
.cabinet-layout.gc2 .overview-activity-summary>button {
  min-height:42px; margin-top:auto; padding:10px 0 0; border:0; background:transparent;
  display:flex; align-items:center; justify-content:space-between; gap:6px;
  color:var(--purple); font-size:12px; font-weight:800; text-align:left; cursor:pointer;
}
.cabinet-layout.gc2 .overview-activity-summary>button svg { width:15px; height:15px; }

/* Полная продуктовая витрина. Вместо тяжёлых контрастных баннеров — светлые
   самостоятельные карточки с одним цветовым акцентом на направление. */
.cabinet-layout.gc2 .overview-products-heading { align-items:center; }
.cabinet-layout.gc2 .overview-products-count {
  padding:7px 10px; border:1px solid #e5dfee; border-radius:999px; color:#766d7f;
  background:#faf8fc; font-size:10px; font-weight:750; white-space:nowrap;
}
.cabinet-layout.gc2 .overview-product-grid {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px;
}
.cabinet-layout.gc2 .products-panel:not(.is-expanded) .overview-product-card--extra { display:none; }
.cabinet-layout.gc2 .overview-products-toggle {
  min-height:48px; margin:16px auto 0; padding:0 18px; border:1px solid rgba(255,255,255,.48);
  border-radius:15px; background:rgba(255,255,255,.14); color:#fff; font:inherit;
  font-size:12px; font-weight:800; display:inline-flex; align-items:center; justify-content:center;
  gap:9px; cursor:pointer; transition:background .18s ease,transform .18s ease;
}
.cabinet-layout.gc2 .overview-products-toggle:hover { background:rgba(255,255,255,.23); transform:translateY(-1px); }
.cabinet-layout.gc2 .overview-products-toggle:focus-visible { outline:3px solid rgba(255,255,255,.38); outline-offset:3px; }
.cabinet-layout.gc2 .overview-products-toggle svg { width:16px; height:16px; transition:transform .2s ease; }
.cabinet-layout.gc2 .products-panel.is-expanded .overview-products-toggle svg { transform:rotate(180deg); }
.cabinet-layout.gc2 .overview-product-card {
  --product-accent:#7137ee; --product-bg:#f5f1ff; --product-border:#e4dbfb;
  position:relative; min-height:190px; padding:18px; border:1px solid var(--product-border);
  border-radius:20px; overflow:hidden; display:flex; flex-direction:column; align-items:stretch;
  color:#282130; text-align:left; cursor:pointer; background:var(--product-bg);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.cabinet-layout.gc2 .overview-product-card::after {
  content:none;
}
.cabinet-layout.gc2 .overview-product-card:hover:not(:disabled) {
  transform:translateY(-2px); border-color:var(--product-accent); background:#fff;
}
.cabinet-layout.gc2 .overview-product-card:focus-visible {
  outline:3px solid rgba(113,55,238,.22); outline-offset:3px;
}
.cabinet-layout.gc2 .overview-product-card--cards { --product-accent:#7137ee; --product-bg:#f4f0ff; --product-border:#dfd5fa; }
.cabinet-layout.gc2 .overview-product-card--services { --product-accent:#3976c9; --product-bg:#eef5ff; --product-border:#d7e6fb; }
.cabinet-layout.gc2 .overview-product-card--esim { --product-accent:#278467; --product-bg:#edf8f3; --product-border:#d5eee4; }
.cabinet-layout.gc2 .overview-product-card--ai { --product-accent:#9550c6; --product-bg:#f7effd; --product-border:#ead9f6; }
.cabinet-layout.gc2 .overview-product-card--hotels { --product-accent:#bd7424; --product-bg:#fff5e9; --product-border:#f3dfc6; }
.cabinet-layout.gc2 .overview-product-card--promo { --product-accent:#c1497c; --product-bg:#fff0f5; --product-border:#f4d8e5; }
.cabinet-layout.gc2 .overview-product-card--ref { --product-accent:#397f82; --product-bg:#eff8f8; --product-border:#d7ebeb; }
.cabinet-layout.gc2 .overview-product-card--help { --product-accent:#665a75; --product-bg:#f5f3f7; --product-border:#e5e0e9; }
.cabinet-layout.gc2 .overview-product-card__top {
  min-height:46px; display:flex; align-items:flex-start; justify-content:space-between; gap:8px;
  position:relative; z-index:1;
}
/* Вместо мелкого значка в бледном квадрате — предметная иллюстрация.
   Квадрат-подложку убрали намеренно: он делал из картинки подпись к тексту,
   а восемь таких подряд читались списком, а не витриной. Иллюстрация сама
   держит плитку, поэтому фон ей не нужен. */
.cabinet-layout.gc2 .overview-product-card__art {
  width:76px; height:76px; flex:0 0 76px; display:block;
  margin:-6px 0 0 -6px;   /* оптическая компенсация: у картинок есть поле вокруг предмета */
}
.cabinet-layout.gc2 .overview-product-card__art img {
  width:100%; height:100%; display:block; object-fit:contain;
}
.cabinet-layout.gc2 .overview-product-card__badge {
  max-width:105px; padding:6px 8px; border:1px solid rgba(255,255,255,.88);
  border-radius:999px; color:var(--product-accent); background:rgba(255,255,255,.68);
  font-size:9px; font-weight:800; line-height:1.1; text-align:right; white-space:nowrap;
}
.cabinet-layout.gc2 .overview-product-card__copy {
  margin-top:19px; display:grid; gap:6px; position:relative; z-index:1;
}
.cabinet-layout.gc2 .overview-product-card__copy b { font-size:15px; line-height:1.25; letter-spacing:-.02em; }
.cabinet-layout.gc2 .overview-product-card__copy small { color:#746c7a; font-size:10px; line-height:1.45; }
.cabinet-layout.gc2 .overview-product-card__action {
  margin-top:auto; padding-top:16px; display:flex; align-items:center; gap:6px;
  color:var(--product-accent); font-size:10px; font-weight:800; position:relative; z-index:1;
}
.cabinet-layout.gc2 .overview-product-card__action svg { width:14px; height:14px; }
.cabinet-layout.gc2 .overview-product-card.is-coming,
.cabinet-layout.gc2 .overview-product-card:disabled { cursor:default; }
.cabinet-layout.gc2 .overview-product-card.is-coming .overview-product-card__copy,
.cabinet-layout.gc2 .overview-product-card.is-coming .overview-product-card__art { opacity:.72; }

.cabinet-layout.gc2 .overview-offer-banner {
  grid-column:span 12; min-height:104px; padding:18px 22px; border:1px solid #e3d7f7;
  border-radius:20px; display:flex; align-items:center; gap:16px; position:relative;
  overflow:hidden; color:#332044; text-align:left; cursor:pointer;
  background:linear-gradient(112deg,#fffaf2 0%,#f7efff 55%,#eee3ff 100%);
}
.cabinet-layout.gc2 .overview-offer-banner::after {
  content:none;
}
.cabinet-layout.gc2 .overview-offer-icon {
  width:52px; height:52px; flex:0 0 52px; border-radius:17px; display:grid; place-items:center;
  color:#fff; background:linear-gradient(135deg,#f0a62d,#8e47f4); font-size:22px;
  box-shadow:0 10px 24px rgba(113,55,238,.18); position:relative; z-index:1;
}
.cabinet-layout.gc2 .overview-offer-banner>span:nth-child(2) {
  min-width:0; display:grid; gap:4px; position:relative; z-index:1;
}
.cabinet-layout.gc2 .overview-offer-banner small {
  color:#8d6599; font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
}
.cabinet-layout.gc2 .overview-offer-banner b { font-size:16px; letter-spacing:-.02em; }
.cabinet-layout.gc2 .overview-offer-banner em { color:#786d80; font-size:10px; font-style:normal; }
.cabinet-layout.gc2 .overview-offer-link {
  margin-left:auto; display:flex; align-items:center; gap:6px; color:var(--purple);
  font-size:11px; font-weight:800; white-space:nowrap; position:relative; z-index:1;
}
.cabinet-layout.gc2 .overview-offer-link svg { width:16px; height:16px; }

@media (max-width:767px) {
  .cabinet-layout.gc2 .overview-bank-card { border-radius:20px; }
  .cabinet-layout.gc2 .overview-bank-card__face { padding:19px; border-radius:20px; }
  .cabinet-layout.gc2 .overview-card-selector { margin:-2px 0 4px; }
  .cabinet-layout.gc2 .overview-card-swipe-hint {
    margin:0 0 9px; display:flex; align-items:center; justify-content:center; gap:5px;
    color:#8a808f; font-size:8px; line-height:1.25; text-align:center;
  }
  .cabinet-layout.gc2 .overview-card-swipe-hint svg { width:12px; height:12px; color:var(--purple); }
  .cabinet-layout.gc2 .overview-issue-card { padding:19px; border-radius:20px; }
  .cabinet-layout.gc2 .overview-issue-card__brand { font-size:11px; }
  .cabinet-layout.gc2 .overview-issue-card__plus { width:50px; height:50px; border-radius:16px; }
  .cabinet-layout.gc2 .overview-issue-card__copy { left:19px; right:19px; bottom:17px; }
  .cabinet-layout.gc2 .overview-issue-card__copy b { font-size:13px; }
  .cabinet-layout.gc2 .overview-issue-card__copy small { font-size:8px; }
  .cabinet-layout.gc2 .overview-issue-card__price { right:19px; top:18px; font-size:9px; }
  .cabinet-layout.gc2 .overview-issue-cta { min-height:47px; margin-top:14px; }
  .cabinet-layout.gc2 .overview-offer-banner {
    grid-column:1; order:5; min-height:112px; padding:16px; gap:12px;
  }
  .cabinet-layout.gc2 .overview-offer-icon { width:44px; height:44px; flex-basis:44px; border-radius:14px; }
  .cabinet-layout.gc2 .overview-offer-banner b { font-size:13px; line-height:1.35; }
  .cabinet-layout.gc2 .overview-offer-banner em { line-height:1.35; }
  .cabinet-layout.gc2 .overview-offer-link { display:none; }
  .cabinet-layout.gc2 .knowledge-banner { order:6; }
  .cabinet-layout.gc2 .overview-products-count { font-size:9px; }
  .cabinet-layout.gc2 .overview-product-grid {
    grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:84%; gap:12px;
    overflow-x:auto; scroll-snap-type:x mandatory; margin-right:-17px; padding-right:17px;
    scrollbar-width:none; overscroll-behavior-x:contain;
  }
  .cabinet-layout.gc2 .overview-product-grid::-webkit-scrollbar { display:none; }
  .cabinet-layout.gc2 .overview-product-card { min-height:172px; padding:16px; scroll-snap-align:start; }
  .cabinet-layout.gc2 .overview-product-card__copy { margin-top:15px; }
  .cabinet-layout.gc2 .overview-products-toggle { width:100%; margin-top:14px; }
}

@media (min-width:768px) and (max-width:1199px) {
  .cabinet-layout.gc2 .overview-product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* На мобильном типографика уже была комфортной. Увеличиваем только десктопные
   роли — и в «Обзоре», и в общих заголовках остальных разделов кабинета. */
@media (min-width:768px) {
  body.app-body .cabinet-layout.gc2 {
    --gc-section-title:24px; --gc-card-title:18px; --gc-body:16px;
    --gc-small:13px; --gc-label:11px;
  }
  .cabinet-layout.gc2 .overview-flow-root .page-head h1 { font-size:clamp(40px,3vw,50px); }
  .cabinet-layout.gc2 .overview-flow-root .page-head p { font-size:16px; }
  .cabinet-layout.gc2 .overview-flow-root .stat-card { min-height:138px; padding:23px 25px; }
  .cabinet-layout.gc2 .overview-flow-root .stat-card>span { font-size:11px; }
  .cabinet-layout.gc2 .overview-flow-root .stat-card>b { margin-top:10px; font-size:34px; }
  .cabinet-layout.gc2 .overview-flow-root .stat-card>small { margin-top:5px; font-size:13px; line-height:1.35; }
  .cabinet-layout.gc2 .overview-flow-root .panel-heading h2 { font-size:24px; }
  .cabinet-layout.gc2 .overview-flow-root .section-kicker { font-size:11px; }
  .cabinet-layout.gc2 .overview-flow-root .status-badge { height:29px; padding:0 12px; font-size:11px; }
  .cabinet-layout.gc2 .overview-flow-root .overview-card-count { font-size:11px; }
  .cabinet-layout.gc2 .overview-flow-root .balance-row span { font-size:12px; }
  .cabinet-layout.gc2 .overview-flow-root .balance-row strong { font-size:31px; }
  .cabinet-layout.gc2 .overview-flow-root .balance-row small { font-size:11px; }
  .cabinet-layout.gc2 .overview-flow-root .icon-text-button,
  .cabinet-layout.gc2 .overview-flow-root .text-button { font-size:13px; }
  .cabinet-layout.gc2 .overview-flow-root .quick-actions button { font-size:11px; }
  .cabinet-layout.gc2 .overview-flow-root .transaction { min-height:72px; }
  .cabinet-layout.gc2 .overview-flow-root .transaction b { font-size:14px; }
  .cabinet-layout.gc2 .overview-flow-root .transaction small { font-size:11px; }
  .cabinet-layout.gc2 .overview-flow-root .transaction strong { font-size:13px; }
  .cabinet-layout.gc2 .overview-flow-root .new-card-tile b { font-size:18px; }
  .cabinet-layout.gc2 .overview-flow-root .new-card-tile small { font-size:13px; }
  .cabinet-layout.gc2 .overview-product-card__copy b { font-size:17px; }
  .cabinet-layout.gc2 .overview-product-card__copy small { font-size:12px; }
  .cabinet-layout.gc2 .overview-product-card__action { font-size:12px; }
  .cabinet-layout.gc2 .overview-product-card__badge { font-size:10px; }
  .cabinet-layout.gc2 .overview-offer-banner small { font-size:10px; }
  .cabinet-layout.gc2 .overview-offer-banner b { font-size:19px; }
  .cabinet-layout.gc2 .overview-offer-banner em { font-size:12px; }
  .cabinet-layout.gc2 .overview-offer-link { font-size:13px; }
}

@media (max-width:369px) {
  .cabinet-layout.gc2 .overview-bank-card__face { padding:16px; }
  .cabinet-layout.gc2 .overview-bank-card__chip { width:32px; height:24px; margin-top:17px; }
  .cabinet-layout.gc2 .overview-bank-card__number,
  .cabinet-layout.gc2 .overview-bank-card__secret { font-size:13px; letter-spacing:.035em; }
  .cabinet-layout.gc2 .overview-bank-card__bottom { margin-top:12px; }
  .cabinet-layout.gc2 .overview-bank-card__back { gap:8px; }
  .cabinet-layout.gc2 .overview-offer-banner em { display:none; }
}

@media (prefers-reduced-motion:reduce) {
  .cabinet-layout.gc2 .overview-bank-card__inner,
  .cabinet-layout.gc2 .overview-card-dot { transition:none; }
  /* Поворота нет — значит и откладывать подмену граней не на что. */
  .cabinet-layout.gc2 .overview-bank-card__front,
  .cabinet-layout.gc2 .overview-bank-card__back { transition:none; }
}

.cabinet-toast {
  position:fixed; z-index:320; left:50%; bottom:28px; max-width:calc(100vw - 28px);
  padding:12px 16px; border-radius:13px; color:#fff; background:#21182c;
  box-shadow:0 14px 40px rgba(20,10,35,.25); font-size:12px; font-weight:750;
  line-height:1.35; text-align:center; opacity:0; pointer-events:none;
  transform:translate(-50%,20px); transition:opacity .2s ease,transform .2s ease;
}
.cabinet-toast.is-visible { opacity:1; transform:translate(-50%,0); }
.cabinet-toast.is-error { background:#8f2f3a; }
@media (max-width:767px) {
  .cabinet-toast { bottom:96px; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   Контекстная навигация: единый Back + breadcrumbs для вложенных сценариев
   ═══════════════════════════════════════════════════════════════════════════ */
.cabinet-layout.gc2 .cabinet-trail,
.cabinet-trail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0 0 18px;
}
.cabinet-layout.gc2 .cabinet-trail__back,
.cabinet-trail__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #e4dfeb;
  border-radius: 14px;
  background: #fff;
  color: #6d35f4;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.cabinet-layout.gc2 .cabinet-trail__back:hover,
.cabinet-trail__back:hover {
  border-color: #cdbaff;
  background: #f8f4ff;
  transform: translateX(-1px);
}
.cabinet-layout.gc2 .cabinet-trail__back svg,
.cabinet-trail__back svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
  stroke: currentColor;
  fill: none;
}
.cabinet-layout.gc2 .cabinet-breadcrumbs,
.cabinet-breadcrumbs {
  min-width: 0;
  overflow: hidden;
}
.cabinet-layout.gc2 .cabinet-breadcrumbs ol,
.cabinet-breadcrumbs ol {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cabinet-layout.gc2 .cabinet-breadcrumbs li,
.cabinet-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.cabinet-layout.gc2 .cabinet-breadcrumbs__link,
.cabinet-breadcrumbs__link,
.cabinet-layout.gc2 .cabinet-breadcrumbs__current,
.cabinet-breadcrumbs__current {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #81798b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.cabinet-layout.gc2 .cabinet-breadcrumbs__link,
.cabinet-breadcrumbs__link { cursor: pointer; }
.cabinet-layout.gc2 .cabinet-breadcrumbs__link:hover,
.cabinet-breadcrumbs__link:hover { color: #6d35f4; }
.cabinet-layout.gc2 .cabinet-breadcrumbs__current,
.cabinet-breadcrumbs__current {
  max-width: min(34vw, 360px);
  color: #28232f;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cabinet-layout.gc2 .cabinet-breadcrumbs__separator,
.cabinet-breadcrumbs__separator {
  flex: 0 0 auto;
  margin: 0 6px;
  color: #bbb3c3;
  font-size: 18px;
}
.cabinet-layout.gc2 .cabinet-trail__back:focus-visible,
.cabinet-trail__back:focus-visible,
.cabinet-layout.gc2 .cabinet-breadcrumbs__link:focus-visible,
.cabinet-breadcrumbs__link:focus-visible {
  outline: 3px solid rgba(109, 53, 244, .22);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .cabinet-layout.gc2 .cabinet-trail,
  .cabinet-trail {
    gap: 7px;
    margin-bottom: 12px;
  }
  .cabinet-layout.gc2 .cabinet-trail__back,
  .cabinet-trail__back {
    min-height: 42px;
    padding: 0 11px;
    border-radius: 13px;
    font-size: 12px;
  }
  .cabinet-layout.gc2 .cabinet-breadcrumbs,
  .cabinet-breadcrumbs {
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cabinet-layout.gc2 .cabinet-breadcrumbs::-webkit-scrollbar,
  .cabinet-breadcrumbs::-webkit-scrollbar { display: none; }
  .cabinet-layout.gc2 .cabinet-breadcrumbs li:not(:nth-last-child(-n+2)),
  .cabinet-breadcrumbs li:not(:nth-last-child(-n+2)) { display: none; }
  .cabinet-layout.gc2 .cabinet-breadcrumbs__link,
  .cabinet-breadcrumbs__link,
  .cabinet-layout.gc2 .cabinet-breadcrumbs__current,
  .cabinet-breadcrumbs__current {
    min-height: 40px;
    font-size: 11px;
  }
  .cabinet-layout.gc2 .cabinet-breadcrumbs__link,
  .cabinet-breadcrumbs__link {
    max-width: 26vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cabinet-layout.gc2 .cabinet-breadcrumbs__current,
  .cabinet-breadcrumbs__current { max-width: 38vw; }
  .cabinet-layout.gc2 .cabinet-breadcrumbs__separator,
  .cabinet-breadcrumbs__separator { margin: 0 3px; }
}

/* Возврат к началу появляется только на фактически длинных состояниях экрана.
   На телефоне круг занимает свободный слот справа от продуктового sticky CTA. */
.cabinet-to-top {
  position: fixed;
  z-index: 39;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: 92px;
  min-width: 112px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(109, 53, 244, .2);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: #2a173f;
  box-shadow: 0 14px 36px rgba(35, 21, 62, .22);
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}
.cabinet-to-top[hidden] { display: none; }
.cabinet-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cabinet-to-top:hover { background: #3a1f56; }
.cabinet-to-top svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cabinet-to-top:focus-visible {
  outline: 3px solid rgba(109, 53, 244, .28);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .cabinet-to-top {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    min-width: 52px;
    width: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 18px;
  }
  .cabinet-to-top span { display: none; }
  .cabinet-to-top.is-raised {
    bottom: calc(156px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cabinet-to-top { transition: none; }
}

/* Подпись кнопки выпуска — ОДИН флекс-элемент вместе с ценой.
   Кнопка .cta-sticky это flex с gap:9px. Голый текст «Выпустить карту от » был
   отдельным флекс-элементом и сам заканчивался пробелом, поэтому между «от» и
   ценой складывались пробел и зазор — в подписи появлялась дыра. */
.cta-sticky__label { display: inline; }

/* Липкая кнопка оплаты прячется, когда на экране видна обычная кнопка под
   тарифами: обе вызывают issueCardInline(), и рядом это два одинаковых
   призыва. Замер: на 1440 они перекрывались на 126x7 px, на 390 стояли в
   пяти пикселях друг над другом. Класс вешает svyazatStickyCta() в app.js. */
.cta-sticky.is-duplicated {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}
@media (max-width: 767px) {
  /* На мобильном у кнопки своя раскладка без центрирующего сдвига (app.css:2311) */
  .cabinet-v2 .cta-sticky.is-duplicated { transform: translateY(12px); }
}
