/* ============================================================
   PAGE · ЛИЧНЫЙ КАБИНЕТ (app.html / .app-page)
   Cloud 22 Design System v2.0 Implementation
   ============================================================ */

/* ── Typography & Global Overrides ── */
body.app-page {
  color: var(--ink);
}

body.app-page h1,
body.app-page h2,
body.app-page h3 {
  color: var(--ink);
  letter-spacing: -0.03em;
}

/* ── Subnav Tabs ── */
body.app-page .lk-subnav {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 5px;
  box-shadow: var(--shadow-sm);
}

body.app-page .lk-subnav-btn {
  flex: 1;
  padding: 9px 0;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}

body.app-page .lk-subnav-btn.active {
  background: var(--white) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(52, 72, 90, 0.06) !important;
  font-weight: 700;
}

/* ── Form Inputs ── */
body.app-page input[type="text"],
body.app-page input[type="email"],
body.app-page input[type="tel"],
body.app-page .app-input,
body.app-page .link-input,
body.app-page .pa-input,
body.app-page textarea,
body.app-page select {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.app-page input:focus,
body.app-page textarea:focus,
body.app-page select:focus {
  border-color: var(--coral) !important;
  box-shadow: 0 0 0 3px rgba(223, 118, 101, 0.15) !important;
  outline: none !important;
}

/* ── Copy Row ── */
body.app-page .lk-copy-row,
body.app-page .detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm) !important;
}

body.app-page .lk-copy-val {
  flex: 1;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  color: var(--ink);
  word-break: break-all;
}

body.app-page .lk-copy-btn {
  flex-shrink: 0;
  background: var(--white) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink) !important;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: all .15s ease;
  white-space: nowrap;
}

body.app-page .lk-copy-btn:hover {
  background: var(--coral-soft) !important;
  color: var(--coral) !important;
  border-color: var(--coral-border) !important;
}

/* ── Metrics Grid (Active Access Card) ── */
.lk-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}

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

@media (max-width: 480px) {
  .lk-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.lk-metric {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(52, 72, 90, 0.03);
}

.lk-metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.lk-metric-value {
  font-size: 20px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.lk-metric-value--sm {
  font-size: 14px;
  font-weight: 650;
}

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

/* ── Term Progress Bar ── */
.lk-term {
  margin: 16px 0 12px;
}

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

.lk-term-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .3s ease;
}

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

/* ── Login Methods Card (#account-login-methods) ── */
#account-login-methods {
  background: var(--white);
  border: 1px solid #ffffff;
  outline: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow-card);
}

.login-methods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.login-method-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: all .15s ease;
}

.login-method-item:hover {
  border-color: #b0c2d0;
  box-shadow: 0 4px 12px rgba(52, 72, 90, 0.05);
}

.login-method-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f1f5f8;
}

.login-method-info {
  flex: 1;
  min-width: 0;
}

.login-method-name {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.login-method-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.email-link-form[hidden] {
  display: none;
}

.email-link-form:not([hidden]),
.email-link-form div:not([hidden]) {
  display: grid;
  gap: 8px;
}

.email-link-form {
  align-items: start;
}

.email-link-form label {
  font-size: 14px;
  font-weight: 600;
}

.email-link-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.email-link-form button {
  justify-self: start;
  min-height: 44px;
}

.email-link-form p:empty {
  display: none;
}

.google-settings-slot {
  display: grid;
  min-height: 44px;
  min-width: 0;
  width: 180px;
  flex: 0 0 180px;
  max-width: 100%;
  margin-left: auto;
  align-content: center;
  justify-items: center;
  color: var(--muted);
  font-size: 12px;
}

.google-link-notice:not(:empty) {
  margin-top: 10px;
}

@media (max-width: 480px) {
  .login-method-item--google-unlinked {
    flex-wrap: wrap;
  }
  .login-method-item--google-unlinked .login-method-info {
    flex-basis: calc(100% - 55px);
  }
}

/* ── Onboarding / How to Start (Premium Guided Roadmap) ── */
.c22-onboarding {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}

.c22-onboarding-header {
  margin-bottom: 22px;
}

.c22-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 750;
  color: #768898;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.c22-onboarding-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.035em;
  margin: 0 0 6px;
  line-height: 1.15;
}

.c22-onboarding-subtitle {
  font-size: 14px;
  color: #5a6d7e;
  margin: 0;
  line-height: 1.45;
}

/* ── Vertical 3-step stack ── */
.c22-steps-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 24px;
  width: 100%;
}

.c22-step-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid rgba(214, 224, 232, 0.7);
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(52, 72, 90, 0.03);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Step 1: Active & Available */
.c22-step-card--active {
  background: #ffffff;
  border: 1px solid #d2dce4;
  box-shadow: 0 6px 24px rgba(52, 72, 90, 0.06), 0 1px 3px rgba(52, 72, 90, 0.03);
}

.c22-step-card--active:hover {
  transform: translateY(-1px);
  border-color: #b0c2d0;
  box-shadow: 0 10px 28px rgba(52, 72, 90, 0.09);
}

.c22-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f0f4f8;
  color: #202d3b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.c22-step-card--active .c22-step-icon {
  background: #fff3f0;
  color: #cf5646;
  border-color: #fbd9d3;
}

.c22-step-body {
  flex: 1;
  min-width: 0;
}

.c22-step-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #768898;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.c22-step-card--active .c22-step-badge {
  color: #cf5646;
}

.c22-step-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.c22-step-desc {
  font-size: 13px;
  color: #5a6d7e;
  line-height: 1.4;
  margin: 0;
}

.c22-step-action {
  flex-shrink: 0;
}

/* Steps 2 & 3: Dimmed & Disabled (как у конкурента) */
.c22-step-card--disabled {
  background: rgba(246, 249, 252, 0.55);
  border: 1px solid rgba(218, 227, 235, 0.6);
  opacity: 0.42;
  filter: grayscale(30%);
  pointer-events: none;
  user-select: none;
  box-shadow: none !important;
  cursor: not-allowed;
}

.c22-step-card--disabled .c22-step-icon {
  background: #e2e8f0;
  color: #94a3b8;
  border-color: transparent;
}

.c22-step-card--disabled .c22-step-badge {
  color: #94a3b8;
}

.c22-step-card--disabled .c22-step-title {
  color: #64748b;
}

.c22-step-card--disabled .c22-step-desc {
  color: #94a3b8;
}

/* ── Minimalist Premium Card Buttons (Unified Across Cards) ── */
.c22-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  background: #ffffff;
  color: #202d3b;
  border: 1px solid #d2dbe2;
  box-shadow: 0 1px 3px rgba(32, 45, 59, 0.04);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
}

.c22-card-btn span {
  display: inline-block;
  transition: transform .18s ease;
}

.c22-card-btn:hover,
.c22-step-card--active:hover .c22-card-btn,
.c22-blog-card:hover .c22-card-btn,
.c22-channel-card:hover .c22-card-btn {
  background: #ffffff;
  border-color: #202d3b;
  color: #202d3b;
  box-shadow: 0 4px 14px rgba(32, 45, 59, 0.08);
  transform: translateY(-1px);
}

.c22-card-btn:hover span,
.c22-step-card--active:hover .c22-card-btn span,
.c22-blog-card:hover .c22-card-btn span,
.c22-channel-card:hover .c22-card-btn span {
  transform: translateX(2px);
}

/* ── Footer blocks (Blog & Social channels) ── */
.c22-onboarding-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c22-blog-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid rgba(214, 224, 232, 0.7);
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(52, 72, 90, 0.03);
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.c22-blog-card:hover {
  transform: translateY(-1px);
  border-color: #b0c2d0;
  box-shadow: 0 8px 26px rgba(52, 72, 90, 0.08);
}

.c22-blog-body {
  flex: 1;
  min-width: 0;
}

.c22-blog-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #5a6d7e;
  background: #eef3f7;
  border-radius: 5px;
  padding: 2px 7px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.c22-blog-title {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 3px;
}

.c22-blog-desc {
  font-size: 13px;
  color: #5a6d7e;
  line-height: 1.4;
  margin: 0;
}

.c22-channels-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .c22-channels-row {
    grid-template-columns: 1fr;
  }
  .c22-step-card {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 18px;
  }
  .c22-step-action {
    width: 100%;
  }
  .c22-step-action .c22-card-btn {
    width: 100%;
  }
  .c22-blog-card {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 18px;
  }
  .c22-blog-card .c22-card-btn {
    width: 100%;
  }
}

.c22-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid rgba(214, 224, 232, 0.7);
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(52, 72, 90, 0.03);
  text-decoration: none;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.c22-channel-card:hover {
  transform: translateY(-1px);
  border-color: #b0c2d0;
  box-shadow: 0 8px 24px rgba(52, 72, 90, 0.08);
}

.c22-channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c22-channel-icon--tg {
  background: #eaf5fc;
  color: #229ed9;
}

.c22-channel-icon--store {
  background: #f0f4f8;
  color: #202d3b;
}

.c22-channel-icon svg {
  width: 20px;
  height: 20px;
}

.c22-channel-body {
  flex: 1;
  min-width: 0;
}

.c22-channel-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 2px;
}

.c22-channel-sub {
  font-size: 12px;
  color: #728495;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Store & Tariff Cards In Cabinet ── */
.sp-grid>div,
#storeGrid>div {
  background: var(--white) !important;
  border: 1px solid #ffffff !important;
  outline: 1px solid var(--line-light) !important;
  box-shadow: var(--shadow-card) !important;
  border-radius: var(--radius-lg) !important;
  transition: all .2s ease !important;
}

.sp-grid>div:hover,
#storeGrid>div:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(52, 72, 90, 0.12) !important;
}

/* Orders Hub layout */
body.app-page #myOrdersList {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

body.app-page #myOrdersList>.lk-card,
body.app-page #myOrdersList>.c22-onboarding,
body.app-page #myOrdersList>.onboarding-card,
body.app-page #myOrdersList>.mz-cta-wrap {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}

/* Search bar in orders */
.mz-ctrl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.mz-tabs {
  display: flex;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.mz-tabs button {
  padding: 6px 14px;
  border: none;
  background: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}

.mz-tabs button.on {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(52, 72, 90, 0.08);
  border: 1px solid var(--line);
}

.mz-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
}

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

.mz-search input {
  border: none !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
  font-size: 13px;
  background: transparent !important;
  outline: none;
}

/* ── Orders CTA Cards ── */
.mz-cta-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.mz-cta {
  background: var(--white);
  border: 1px solid #ffffff;
  outline: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: var(--shadow-card);
}

.mz-cta:hover {
  transform: translateY(-2px);
  border-color: var(--coral-border);
  box-shadow: 0 16px 36px rgba(52, 72, 90, 0.12);
}

.mz-cta-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--coral);
  margin-bottom: 14px;
}

.mz-cta-ic svg {
  width: 22px;
  height: 22px;
}

.mz-cta-t {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.mz-cta-s {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.45;
}

.mz-cta-go {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  margin-top: auto;
}
.lk-site-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.lk-site-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}

.lk-site-links a:hover { color: var(--ink); text-decoration: underline; }
.lk-overview-card h2, .lk-device-access h2 { margin: 0; color: var(--ink); font-size: 20px; }
.lk-account-context {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}
.lk-account-context button {
  max-width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.lk-home-subscription-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0 0 18px;
}
.lk-home-subscription-details dt { color: var(--muted); font-size: 13px; }
.lk-home-subscription-details dd { margin: 4px 0 0; color: var(--ink); font-weight: 650; }
.lk-home-steps .lk-home-subscription-details { margin: 10px 0 0; }
.lk-overview-card p, .lk-device-access p { margin: 8px 0 16px; color: var(--muted); }
.lk-overview-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.lk-overview-links > .lk-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  min-width: 0;
  min-height: 64px;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.lk-overview-links svg { flex-shrink: 0; color: var(--muted); }
.lk-overview-links > .lk-card:hover { border-color: var(--muted); }
.lk-device-access { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.lk-device-access p { margin-bottom: 0; }
.lk-info-title { margin: 20px 0 10px; color: var(--ink); font-size: 18px; }
.lk-more-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: var(--ink); }
.lk-more-heading button { width: 44px; height: 44px; background: transparent; border: 0; color: var(--ink); font-size: 24px; cursor: pointer; }

@media (max-width: 767px) {
  .lk-topbar .lk-site-links { border: 0; padding: 0; gap: 10px; }
  .lk-overview-links { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 359px) {
  .lk-topbar { flex-wrap: wrap; }
}
.lk-wallet-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lk-wallet-overview > div + div {
  border-inline-start: 1px solid #d6e0e8;
  padding-inline-start: 20px;
}

.lk-wallet-overview #walletBalance {
  color: #202d3b;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
}

.lk-wallet-history summary { cursor: pointer; font-weight: 700; }

.lk-wallet-history ul { margin: 12px 0 0; padding: 0; list-style: none; }

.lk-wallet-history li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 0;
  border-block-start: 1px solid #d6e0e8;
}

/* Legacy topup rules removed */

@media (max-width: 480px) {
  .lk-wallet-overview { grid-template-columns: 1fr; }
  .lk-wallet-overview > div + div {
    border-inline-start: 0;
    border-block-start: 1px solid #d6e0e8;
    padding: 16px 0 0;
  }
}
.lk-service-link {
  border: 0;
  padding: 8px 0;
  color: #4e6173;
  background: none;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lk-service-status dl { margin: 12px 0; }
.lk-service-status dl div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 8px 0;
  border-block-end: 1px solid #d6e0e8;
}
.lk-service-status dd { margin: 0; font-weight: 600; }

  .lk-home-hero {
    isolation: isolate; position: relative; overflow: hidden; padding: 32px 34px; margin-bottom: 15px;
    border: 1px solid #fff; border-radius: 24px;
    background: linear-gradient(113deg, #fcfdfe 20%, #e8eff5 72%, #e0e9f0 100%);
    box-shadow: 0 14px 36px #25415012;
  }
  .lk-home-hero::after {
    content: ""; position: absolute; z-index: -1; inset: 0 4% 0 62%;
    background: url("/img/cloud22-logo-coral-mark.svg") center right / auto 135% no-repeat;
    opacity: .11;
  }
  .lk-home-hero h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; font-weight: 650; }
  .lk-home-hero p { margin: 0; color: #385669; max-width: 490px; font-size: 15px; line-height: 1.5; }
  .lk-home-steps { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
  .lk-home-step {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 188px; align-items: center; gap: 17px;
    min-height: 83px; padding: 14px 18px; border: 1px solid #dce7ee; border-radius: 19px;
    background: linear-gradient(110deg, #f8fbfd, #f1f6f9);
  }
  .lk-home-step[aria-current] {
    background: linear-gradient(105deg, #fff, #f4f7fa); border-color: #c8d4dd;
    box-shadow: 0 8px 22px #334f6612, inset 0 1px #fff;
  }
  .lk-home-number {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
    background: #e8eff4; color: #4d6576; font-size: 16px; font-weight: 650;
    border: 1px solid #dce6ed; font-variant-numeric: tabular-nums;
  }
  .lk-home-step[aria-current] .lk-home-number { color: #fff; background: #273440; border-color: #273440; box-shadow: inset 0 -2px var(--accent); }
  .lk-home-step h2 { margin: 0 0 4px; font-size: 17px; font-weight: 650; }
  .lk-home-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
  .lk-home-action, .lk-home-step .lk-home-state {
    width: 100%; min-height: 44px; padding: 8px 13px; border-radius: 12px; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .lk-home-action {
    border: 1px solid #273440; color: #fff; background: linear-gradient(120deg, #36434e, #25313c);
    box-shadow: inset 0 1px #ffffff2b, 0 4px 12px #132b3f23;
    font-size: 13px; font-weight: 500; cursor: pointer;
    transition: background-color .2s, box-shadow .2s;
  }
  .lk-home-action:hover { background: #3b4a57; box-shadow: inset 0 1px #ffffff31, 0 6px 15px #132b3f32; }
  .lk-home-action > span { font-size: 17px; color: #e6ebef; }
  .lk-home-step .lk-home-state {
    justify-content: flex-start; color: var(--muted); background: #ebf0f4; border: 1px solid #dde5ec;
    font-size: 12px; line-height: 1.3; padding-block: 5px;
  }
  .lk-home-step .lk-home-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8399a8; flex: 0 0 6px; }
  .lk-home-step .lk-home-state.lk-home-done { color: #326652; background: #e8f1ee; border-color: #dfebe5; }
  .lk-home-step .lk-home-state.lk-home-done::before { background: #56856f; }
  .lk-home-updates-title { margin: 28px 0 13px; font-size: 23px; letter-spacing: -.025em; }
  .lk-home-updates { display: grid; grid-template-columns: 1.55fr 1fr; gap: 13px; }
  .lk-home-tile {
    appearance: none; position: relative; overflow: hidden; isolation: isolate; border: 1px solid #fff; border-radius: var(--radius);
    padding: 18px 19px; background: #fcfeff; box-shadow: 0 8px 22px #2541500e;
    text-align: left; color: var(--ink); cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .lk-home-tile:is(:hover,:focus-visible) {
    transform: translateY(-3px); box-shadow: 0 14px 28px #2541501f; border-color: #bfd5e4;
  }
  .lk-home-tile::after {
    content: ""; position: absolute; inset: -35% 0; pointer-events: none; z-index: 0;
    background: linear-gradient(110deg, transparent 37%, #ffffff58 49%, transparent 61%);
    transform: translateX(-110%);
  }
  .lk-home-tile:is(:hover,:focus-visible)::after { animation: lk-home-shine 650ms ease-out; }
  @keyframes lk-home-shine { to { transform: translateX(110%); } }
  .lk-home-tile-content { display: grid; gap: 5px; position: relative; z-index: 1; }
  .lk-home-tile-title { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
  .lk-home-description { color: #4a6375; font-size: 13px; line-height: 1.45; }
  .lk-home-guide { grid-row: span 2; min-height: 181px; padding: 22px; background: linear-gradient(124deg, #ffffff 17%, #e8eff4 100%); }
  .lk-home-guide .lk-home-tile-content { max-width: 56%; }
  .lk-home-guide .lk-home-article { margin-top: 16px; font-weight: 650; color: var(--ink); font-size: 17px; line-height: 1.35; }
  .lk-home-illustration {
    position: absolute; right: 9px; bottom: 9px; top: 9px; width: 42%; height: calc(100% - 18px);
    object-fit: cover; filter: saturate(.18); border: 1px solid #f8fdff; border-radius: 14px; background: #dceaf4;
  }
  .lk-home-updates > :not(.lk-home-guide) { display: grid; grid-template-columns: 43px minmax(0,1fr) auto; align-items: center; gap: 12px; }
  .lk-home-icon {
    display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px;
    color: #344552; background: #edf2f6; border: 1px solid #dce5ec;
    box-shadow: inset 0 1px #fff;
  }
  .lk-home-plane::before {
    content: ""; width: 23px; height: 22px; background: currentColor;
    clip-path: polygon(0 40%, 100% 0, 80% 100%, 55% 74%, 40% 94%, 36% 63%, 78% 20%, 26% 55%);
  }
  .lk-home-invite { grid-column: 1 / -1; }
.lk-home { --ink: #202d3b; --muted: #4e6173; --accent: #df7665; --radius: 20px; }
.lk-home-action, .lk-home-tile { font-family: inherit; }
.lk-home-action.lk-home-action-secondary {
  color: var(--ink);
  background: #f7fafc;
  border-color: #d6e0e8;
  box-shadow: none;
}
.lk-home-action.lk-home-action-secondary > span { color: var(--muted); }
.lk-home-action.lk-home-action-secondary:hover { background: #e9f1f8; }
.lk-home-tile { text-decoration: none; }
.lk-home-tile > span:last-child[aria-hidden] { color: #4d6375; }
.lk-home-icon svg { width: 19px; height: 19px; }
.lk-home .lk-overview-links { margin-top: 18px; }
.lk-home :is(a, button):focus-visible { outline: 2px solid #426d8a; outline-offset: 3px; }

@media (max-width: 860px) {
  .lk-home-updates { grid-template-columns: minmax(0, 1fr); }
  .lk-home-guide { grid-row: auto; }
}
@media (max-width: 650px) {
  .lk-home-hero { padding: 24px 19px; }
  .lk-home-hero::after { inset-inline-start: 64%; background-size: contain; }
  .lk-home-step { grid-template-columns: 36px minmax(0, 1fr); gap: 9px 12px; padding: 12px; }
  .lk-home-number { height: 36px; width: 36px; }
  .lk-home-action, .lk-home-step .lk-home-state { grid-column: 2; width: min(188px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .lk-home-tile { transition: none; }
  .lk-home-tile:is(:hover,:focus-visible) { transform: none; }
  .lk-home-tile:is(:hover,:focus-visible)::after { animation: none; }
}

.lk-profile {
  --profile-ink: #202d3b;
  --profile-muted: #4e6173;
  --profile-line: #d6e0e8;
  color: var(--profile-ink);
}

.lk-profile-heading { margin-bottom: 23px; }
.lk-profile-heading h1 { margin: 0 0 5px; }
.lk-profile-heading p { margin: 0; color: var(--profile-muted); font-size: 14px; }

.lk-profile-overview {
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 23px;
  background: #f8fbfd;
  box-shadow: 0 12px 30px #34485a13;
}

.lk-profile-identity,
.lk-profile-metrics { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }

.lk-profile-identity {
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(120deg, #fff 5%, #e9eff4 83%, #dce6ed);
}

.lk-profile-id, .lk-profile-referral {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lk-profile-id strong, .lk-profile-referral strong { display: block; margin-top: 3px; font-size: 15px; }
.lk-profile-id strong { font-variant-numeric: tabular-nums; }

.lk-profile-avatar, .lk-profile-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #405568;
  background: #edf2f6;
  border: 1px solid #dbe5ec;
  border-radius: 10px;
}

.lk-profile-avatar {
  width: 50px;
  height: 50px;
  color: #fff;
  background: linear-gradient(145deg, #485966, #273440);
  border-color: #344450;
  box-shadow: inset 0 -2px #df7665, 0 4px 9px #27344023;
  font-size: 20px;
  font-weight: 700;
}

.lk-profile-icon svg { width: 18px; height: 18px; }
.lk-profile-caption {
  display: block;
  margin: 0;
  color: var(--profile-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
}

.lk-profile-referral {
  justify-self: end;
  padding: 6px 10px 6px 6px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lk-profile-referral:hover { border-color: #fff; background: #f8fbfdbb; }
.lk-profile-referral > span:last-child { margin-left: 5px; color: var(--profile-muted); }

.lk-profile-metric {
  min-width: 0;
  padding: 23px 24px 25px;
}

.lk-profile-metric > h2 { color: var(--profile-muted); }
.lk-profile-metric + .lk-profile-metric { border-inline-start: 1px solid var(--profile-line); }

.lk-profile-balance {
  margin: 9px 0 18px;
  color: var(--profile-ink);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.lk-profile-subscription { display: grid; gap: 8px; margin: 12px 0 17px; font-size: 14px; }
.lk-profile-subscription > div { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }
.lk-profile-subscription dt { color: var(--profile-muted); }
.lk-profile-subscription dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

.lk-profile-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 7px;
  background: #edf2f6;
  color: #455b6a;
  font-size: 12px;
}
.lk-profile-status--active { color: #326652; background: #e8f1ee; }

.lk-profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid #273440;
  border-radius: 10px;
  background: linear-gradient(120deg, #36434e, #25313c);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.lk-profile-action:hover { background: #3b4a57; color: #fff; }
.lk-profile-action--secondary {
  border-color: var(--profile-line);
  background: #fff;
  color: var(--profile-ink);
}
.lk-profile-action--secondary:hover { background: #edf2f6; color: var(--profile-ink); }

.lk-profile .lk-wallet-history { margin: 12px 0 0; }

.lk-profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 19px 0 24px;
}
.lk-profile-shortcuts button {
  border: 1px solid #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff, #edf3f7);
  box-shadow: 0 5px 15px #34485a0d;
}
.lk-profile-shortcuts button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: space-between;
  align-items: center;
  gap: 9px;
  min-height: 96px;
  padding: 12px;
  color: var(--profile-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.lk-profile-shortcuts button:hover { border-color: #bdcdd9; box-shadow: 0 8px 19px #34485a1d; }
.lk-profile-shortcuts .lk-profile-icon { grid-column: 1 / -1; width: 34px; height: 34px; }
.lk-profile-arrow { color: var(--profile-muted); }

.lk-profile-email-toggle {
  flex: none;
  place-items: center;
  display: inline-grid;
  vertical-align: middle;
  width: 32px;
  height: 30px;
  margin-left: 3px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--profile-muted);
  cursor: pointer;
}
.lk-profile-email-toggle:hover { background: #e9f0f5; }

.lk-profile #account-login-methods {
  margin-top: 22px;
  border-color: #fff;
  border-radius: 18px;
  background: #f8fbfd;
  outline-color: var(--profile-line);
}

.lk-profile #account-login-methods .login-method-item { min-height: 62px; padding: 10px 12px; }
.lk-profile #account-login-methods .login-method-item .btn { min-height: 44px; }
.lk-profile .login-method-detail { overflow-wrap: anywhere; }
.lk-profile-overview > .lk-profile-metrics { border-top: 1px solid var(--profile-line); }
.lk-profile-balance-unavailable { margin: 12px 0 0; color: var(--profile-muted); font-size: 14px; }
.lk-profile-method-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px 10px;
}
.lk-profile-method-action .google-settings-slot { width: auto; flex: 0 1 auto; }
.lk-profile .login-method-detail #settingsEmailDisplay { vertical-align: middle; }
@media (max-width: 520px) {
  .lk-profile #account-login-methods .login-method-item:has(.lk-profile-method-action .btn, .google-settings-slot) {
    flex-wrap: wrap;
  }
  .lk-profile #account-login-methods .login-method-item:has(.lk-profile-method-action .btn, .google-settings-slot) .lk-profile-method-action {
    width: 100%;
    justify-content: flex-start;
    padding-left: 41px;
  }
}
.lk-profile :is(button, summary):focus-visible { outline: 2px solid #426d8a; outline-offset: 3px; }

@media (max-width: 640px) {
  .lk-profile-identity { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 15px; }
  .lk-profile-referral { justify-self: start; padding: 5px 0; }
  .lk-profile-metric { padding: 16px; }
  .lk-profile-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-profile #account-login-methods { padding: 14px; }
}

@media (max-width: 480px) {
  .lk-profile-metrics { grid-template-columns: minmax(0, 1fr); }
  .lk-profile-metric + .lk-profile-metric { border-inline-start: 0; border-block-start: 1px solid var(--profile-line); }
  .lk-profile #account-login-methods .login-method-item { gap: 9px; }
  .lk-profile .login-method-icon { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .lk-profile-shortcuts button { transition: none; }
}



/* ============================================================
   TOPUP / RECHARGE (Safe Cloud 22 Design System - Cabinet Aligned)
   ============================================================ */

.lk-topup {
  max-width: 820px;
  width: 100%;
}

.c22-topup-container {
  width: 100%;
  max-width: 820px;
}

.lk-topup-nav-row,
.c22-topup-nav-row {
  margin-bottom: 16px;
}

.lk-topup-back-btn,
.c22-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--profile-line, #d6e0e8);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--profile-ink, #202d3b);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(52, 72, 90, 0.04);
  transition: all .15s ease;
  text-decoration: none;
}

.lk-topup-back-btn:hover,
.c22-back-nav:hover {
  background: #edf2f6;
  border-color: #b0c2d0;
  color: var(--profile-ink, #202d3b);
  transform: translateX(-2px);
}

.c22-topup-header {
  margin-bottom: 24px;
}

.c22-topup-title {
  font-size: 28px;
  font-weight: 750;
  color: var(--profile-ink, #202d3b);
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  line-height: 1.25;
}

.c22-topup-subtitle {
  font-size: 14px;
  color: var(--profile-muted, #4e6173);
  margin: 0;
  line-height: 1.5;
}

/* ── Stepper (aligned with .lk-home-step and .lk-profile style) ── */
.c22-stepper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid #dce7ee;
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(52, 72, 90, 0.04);
}

.c22-step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s ease;
}

.c22-step-pill.active {
  color: var(--profile-ink, #202d3b);
  font-weight: 700;
}

.c22-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: #edf2f6;
  color: #4d6576;
  border: 1px solid #dce6ed;
  font-variant-numeric: tabular-nums;
  transition: all .2s ease;
}

.c22-step-pill.active .c22-step-circle {
  background: #273440;
  color: #ffffff;
  border-color: #273440;
  box-shadow: inset 0 -2px #df7665;
}

.c22-step-line {
  flex: 1;
  height: 2px;
  background: #edf2f7;
  border-radius: 2px;
}

/* ── Topup Card (matches .lk-card & .lk-profile-overview) ── */
.c22-topup-card,
.lk-topup-card {
  background: #ffffff;
  border: 1px solid #ffffff;
  outline: 1px solid #dce7ee;
  border-radius: 22px;
  padding: 32px 34px;
  box-shadow: 0 12px 30px rgba(52, 72, 90, 0.07);
  display: grid;
  gap: 26px;
  margin-bottom: 24px;
}

.c22-topup-card[hidden],
.lk-topup-card[hidden] {
  display: none;
}

/* ── Amount Input ── */
.c22-amount-field-group {
  display: grid;
  gap: 10px;
}

.c22-field-label {
  font-size: 14px;
  font-weight: 650;
  color: var(--profile-ink, #202d3b);
}

.c22-amount-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fbfd;
  border: 1.5px solid #dce7ee;
  border-radius: 16px;
  padding: 6px 20px;
  box-shadow: inset 0 2px 4px rgba(52, 72, 90, 0.03);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

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

.c22-currency-symbol {
  font-size: 32px;
  font-weight: 700;
  color: #4e6173;
  margin-right: 12px;
  user-select: none;
}

.c22-amount-input-box input[type="number"] {
  flex: 1;
  width: 100%;
  min-height: 52px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 36px;
  font-weight: 750;
  color: var(--profile-ink, #202d3b) !important;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.c22-amount-input-box input[type="number"]::-webkit-outer-spin-button,
.c22-amount-input-box input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.c22-amount-input-box input[type="number"]:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.c22-field-limits {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  white-space: normal;
  font-size: 13px;
  color: var(--profile-muted, #4e6173);
}

.c22-limit-zero-fee,
.c22-limit-fee {
  color: #475569;
  background: #edf2f6;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
}

.c22-method-badge--sbp {
  background: #edf2f6;
  color: #475569;
}

.c22-method-badge--usdt {
  background: #e8f2ee;
  color: #2e6950;
}

/* ── Preset Chips (matches .lk-profile-action--secondary & active state) ── */
.c22-presets-section {
  display: grid;
  gap: 12px;
}

.c22-presets-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--profile-muted, #4e6173);
}

.c22-presets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.c22-preset-chip {
  padding: 13px 8px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #dce7ee;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--profile-ink, #202d3b);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(52, 72, 90, 0.04);
  transition: all .15s ease;
  font-variant-numeric: tabular-nums;
}

.c22-preset-chip:hover {
  border-color: #b0c2d0;
  background: #f1f6f9;
  transform: translateY(-1px);
}

.c22-preset-chip.active {
  background: #273440;
  border-color: #273440;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(39, 52, 64, 0.2);
  transform: translateY(-1px);
}

/* ── Пресеты пополнения с бонусами (V2) ── */
.c22-presets-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.c22-preset-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #dce7ee;
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(52, 72, 90, 0.04);
  transition: all .2s ease;
  font-family: inherit;
}

.c22-preset-card:hover {
  border-color: #b0c2d0;
  background: #f8fafc;
  transform: translateY(-1px);
}

.c22-preset-card.active {
  background: #f8fafc;
  border-color: #273440;
  box-shadow: 0 4px 14px rgba(39, 52, 64, 0.14);
  transform: translateY(-1px);
}

.c22-preset-badge-row {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.c22-preset-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: #edf2f6;
  color: #455b6a;
  border: 1px solid #dbe5ec;
}

.c22-preset-badge.is-hit,
.c22-preset-badge.is-featured {
  background: #fff0ed;
  color: #84302c;
  border: 1px solid #f5d3cd;
  font-weight: 700;
}

.c22-preset-badge.is-subtle {
  background: #f1f5f9;
  color: #4e6173;
  border: 1px solid #e2e8f0;
  font-weight: 600;
}

.c22-preset-val {
  font-size: 16.5px;
  font-weight: 750;
  color: #202d3b;
  line-height: 1.2;
}

.c22-preset-note {
  font-size: 11.5px;
  color: #4e6173;
  margin-top: 4px;
  line-height: 1.3;
}

/* ── Live calculation box (в дизайн-системе cloud.html) ── */
.c22-topup-calc-box {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fb 100%);
  border: 1px solid #dce7ee;
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(52, 72, 90, 0.04);
}

.c22-calc-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.c22-calc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.c22-calc-lbl {
  color: #4e6173;
}

.c22-calc-val {
  color: #202d3b;
  font-weight: 600;
}

.c22-calc-item.highlight .c22-calc-val {
  color: #202d3b;
  font-size: 15.5px;
  font-weight: 750;
}

.c22-calc-bonus-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #edf2f6;
  color: #202d3b;
  border: 1px solid #dbe5ec;
  margin-left: 6px;
  vertical-align: middle;
}

.c22-calc-advantage-banner {
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(120deg, #f8fbfd 0%, #edf3f7 100%);
  border: 1px solid #d6e0e8;
  border-radius: 12px;
  font-size: 13px;
  color: #202d3b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
}

.c22-calc-tip-banner {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f8fbfd;
  border: 1px solid #dce7ee;
  border-radius: 12px;
  font-size: 13px;
  color: #4e6173;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
}

/* ── Trust block (стиль .lk-profile-icon) ── */
.c22-topup-trust-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #dce7ee;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.c22-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.c22-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #edf2f6 !important;
  border: 1px solid #dbe5ec !important;
  color: #202d3b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

.c22-trust-icon svg {
  stroke: #202d3b !important;
  color: #202d3b !important;
}

.c22-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c22-trust-text strong {
  font-size: 13.5px;
  color: #202d3b;
  font-weight: 700;
}

.c22-trust-text span {
  font-size: 12.5px;
  color: #4e6173;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .c22-presets-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Primary Action Button (matches .lk-profile-action & .lk-home-action) ── */
.c22-primary-btn,
.lk-topup-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 24px;
  background: linear-gradient(120deg, #36434e, #25313c);
  color: #ffffff;
  border: 1px solid #273440;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 49, 60, 0.18);
  transition: all .15s ease;
  text-decoration: none;
}

.c22-primary-btn:hover:not(:disabled),
.lk-topup-submit-btn:hover:not(:disabled) {
  background: #3b4a57;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 49, 60, 0.24);
}

.c22-primary-btn:disabled,
.lk-topup-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Step 2 Summary Banner (matches .lk-profile-identity gradient) ── */
.c22-summary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(120deg, #ffffff 5%, #e9eff4 83%, #dce6ed);
  border: 1px solid #dce7ee;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(52, 72, 90, 0.04);
}

.c22-summary-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.c22-summary-label {
  font-size: 12px;
  color: var(--profile-muted, #4e6173);
  font-weight: 650;
  letter-spacing: 0.02em;
}

.c22-summary-val {
  font-size: 26px;
  font-weight: 750;
  color: var(--profile-ink, #202d3b);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.c22-summary-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px;
  background: #ffffff;
  border: 1px solid var(--profile-line, #d6e0e8);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--profile-ink, #202d3b);
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(52, 72, 90, 0.04);
}

.c22-summary-edit-btn:hover {
  background: #edf2f6;
  border-color: #b0c2d0;
  color: var(--profile-ink, #202d3b);
}

.c22-methods-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--profile-ink, #202d3b);
  margin-top: -2px;
}

/* ── Methods Stack ── */
.c22-methods-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.c22-method-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1.5px solid #dce7ee;
  border-radius: 16px;
  cursor: pointer;
  transition: all .15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(52, 72, 90, 0.03);
}

.c22-method-item:hover {
  border-color: #b0c2d0;
  background: #f8fbfd;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(52, 72, 90, 0.06);
}

.c22-method-item.selected {
  border-color: #273440 !important;
  background: #f8fbfd !important;
  box-shadow: 0 0 0 1px #273440, 0 8px 22px rgba(39, 52, 64, 0.09) !important;
}

.c22-method-native-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.c22-method-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #edf2f6;
  border: 1px solid #dce6ed;
  transition: transform .15s ease;
}

.c22-method-item:hover .c22-method-icon-wrap {
  transform: scale(1.03);
}

.c22-method-details {
  flex: 1;
  min-width: 0;
}

.c22-method-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.c22-method-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--profile-ink, #202d3b);
}

.c22-method-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.c22-method-badge--sbp {
  background: #eef5ff;
  color: #0077ff;
}

.c22-method-badge--usdt {
  background: #e8f2ee;
  color: #2e6950;
}

.c22-method-badge--card {
  background: #edf2f6;
  color: #4d6576;
}

.c22-method-caption {
  font-size: 13px;
  color: var(--profile-muted, #4e6173);
  margin-top: 3px;
  line-height: 1.4;
}

.c22-method-selector-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  transition: all .15s ease;
}

.c22-method-item.selected .c22-method-selector-circle {
  border-color: #273440;
  background: #273440;
  box-shadow: inset 0 0 0 4px #ffffff;
}

/* ── Security Note & Status ── */
.c22-pay-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--profile-muted, #4e6173);
  margin-top: 4px;
}

.c22-status-note {
  font-size: 13px;
  color: #c2410c;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.c22-status-note:empty {
  display: none;
}

@media (max-width: 768px) {
  .c22-presets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .c22-topup-card,
  .lk-topup-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .c22-stepper {
    padding: 10px 14px;
    gap: 10px;
  }
  .c22-step-pill {
    font-size: 13px;
    gap: 6px;
  }
  .c22-presets-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .c22-amount-input-box {
    padding: 4px 14px;
  }
  .c22-amount-input-box input[type="number"] {
    font-size: 28px;
  }
  .c22-currency-symbol {
    font-size: 26px;
  }
  .c22-summary-banner {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .c22-summary-edit-btn {
    align-self: flex-start;
  }
  .c22-method-item {
    padding: 14px 14px;
    gap: 12px;
  }
  .c22-method-icon-wrap {
    width: 38px;
    height: 38px;
  }
}

.lk-topup-limit-range {
  white-space: nowrap;
}
@media (max-width: 420px) {
  .c22-limit-divider {
    display: none;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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