:root {
  --bg: #f5f8fc;
  --bg-2: #eaf3ff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(244, 248, 253, 0.92);
  --text: #102033;
  --muted: #64748b;
  --accent: #1677ff;
  --accent-2: #00a6a6;
  --danger: #c93650;
  --warning: #9a6b00;
  --border: rgba(17, 43, 78, 0.12);
  --shadow: 0 22px 60px rgba(30, 64, 112, 0.13);
  --radius: 24px;
}

[id] {
  scroll-margin-top: 116px;
}

.anchor-alias {
  display: block;
  position: relative;
  top: -116px;
  height: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  [id] {
    scroll-margin-top: 104px;
  }

  .anchor-alias {
    top: -104px;
  }
}

/* v40 payment purchase screen */
.payment-page-shell {
  padding-top: 18px;
  padding-bottom: 28px;
}

.payment-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.payment-page-main,
.payment-page-sidebar {
  min-width: 0;
}

.payment-page-order-card,
.payment-page-methods-card,
.payment-page-details-card {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(10, 23, 45, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(10, 23, 45, 0.08);
  padding: 18px;
}

body[data-theme="dark"] .payment-page-order-card,
body[data-theme="dark"] .payment-page-methods-card,
body[data-theme="dark"] .payment-page-details-card {
  background: rgba(255,255,255,0.98);
  color: #0b1a33;
  box-shadow: 0 18px 45px rgba(10, 23, 45, 0.22);
}

.payment-page-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.payment-page-product-badge,
.payment-page-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(49, 116, 255, 0.10);
  color: #1445a8;
}

.payment-page-qty-box {
  min-width: 68px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(10, 23, 45, 0.12);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0c1e3b;
}

.payment-page-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
}

.payment-page-product-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b1e42, #2e62c5 70%, #61aaf6);
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.payment-page-product-row h1 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.05;
  color: #0b1a33;
}

.payment-page-product-price {
  font-size: 20px;
  font-weight: 800;
  color: #102345;
}

.payment-page-order-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.payment-page-order-meta span {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f7ff;
  color: #1e3761;
  font-size: 14px;
  font-weight: 700;
}

.payment-page-order-meta .payment-page-status {
  background: rgba(76, 113, 255, 0.13);
  color: #1445a8;
}

.payment-page-section-head {
  margin-bottom: 12px;
}

.payment-page-section-head .eyebrow {
  color: #2958b3;
}

.payment-page-section-head h2,
.payment-page-details-card h3 {
  margin: 0;
  color: #0b1a33;
}

.payment-method-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
}

.payment-method-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(10, 23, 45, 0.10);
  background: #fff;
  color: #0b1a33;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.payment-method-row:hover {
  transform: translateY(-1px);
  border-color: rgba(41, 88, 179, 0.35);
}

.payment-method-row.is-selected {
  border-color: #3174ff;
  box-shadow: 0 0 0 3px rgba(49,116,255,0.10);
}

.payment-method-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.payment-method-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(10,23,45,0.24);
  flex: 0 0 auto;
  position: relative;
}

.payment-method-row.is-selected .payment-method-radio {
  border-color: #3174ff;
}

.payment-method-row.is-selected .payment-method-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #3174ff;
}

.payment-method-icon {
  min-width: 62px;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.payment-method-icon.brand-mir { background: linear-gradient(135deg, #017d8b, #29b37c); }
.payment-method-icon.brand-yoomoney { background: linear-gradient(135deg, #8d3cff, #ff6ab8); }
.payment-method-icon.brand-sber { background: linear-gradient(135deg, #19a661, #84dd89); }
.payment-method-icon.brand-sbp { background: linear-gradient(135deg, #3174ff, #6db6ff); }

.payment-method-title {
  font-weight: 800;
  color: #0b1a33;
}

.payment-method-right {
  font-weight: 800;
  color: #102345;
  white-space: nowrap;
}

.payment-page-sidebar {
  position: sticky;
  top: 88px;
}

.payment-page-points-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f4f8ff;
  color: #405c8d;
  font-size: 14px;
}

.payment-page-summary-lines {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(10, 23, 45, 0.08);
}

.payment-page-total-row {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 23, 45, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.payment-page-total-row span {
  color: #13274b;
  font-weight: 700;
}

.payment-page-total-row strong {
  font-size: 32px;
  line-height: 1;
  color: #3174ff;
}

.payment-page-pay-btn {
  margin-top: 16px;
  min-height: 52px;
}

.payment-page-access-body {
  display: grid;
  gap: 10px;
}

@media (max-width: 980px) {
  .payment-page-grid {
    grid-template-columns: 1fr;
  }
  .payment-page-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .payment-page-shell {
    padding-top: 10px;
    padding-left: 0;
    padding-right: 0;
  }
  .payment-page-order-card,
  .payment-page-methods-card,
  .payment-page-details-card {
    border-radius: 18px;
    padding: 14px;
  }
  .payment-page-product-row h1 {
    font-size: 24px;
  }
  .payment-page-total-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .payment-page-total-row strong {
    font-size: 28px;
  }
  .payment-method-row {
    padding: 14px;
  }
  .payment-method-icon {
    min-width: 54px;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 48%, #f9fbff 100%);
}

body[data-theme="dark"] {
  --bg: #050d19;
  --bg-2: #0a1424;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.04);
  --text: #f5f7fb;
  --muted: #9fb0c9;
  --accent: #58b6ff;
  --accent-2: #2a72ff;
  --danger: #ff8d8d;
  --warning: #ffd36a;
  --border: rgba(255, 255, 255, 0.11);
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #050d19 0%, #0a1424 100%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.page-shell { padding: 26px 0 64px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(5, 13, 25, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-text-group {
  display: grid;
  gap: 2px;
}

.brand-text-group strong { font-size: 18px; }
.brand-text-group span { font-size: 13px; color: var(--muted); }

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link, .chip, .outline-btn, .primary-btn, .ghost-btn, .mini-btn, .danger-btn, .text-btn, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
}

.nav-link:hover, .chip:hover, .outline-btn:hover, .primary-btn:hover, .ghost-btn:hover, .mini-btn:hover, .danger-btn:hover, .text-btn:hover, .icon-btn:hover {
  transform: translateY(-1px);
  opacity: .98;
}

.nav-link, .chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
}
.nav-link.active { background: linear-gradient(135deg, var(--accent), #8ecbff); color: #08111d; border-color: transparent; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.user-chip {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  text-align: left;
}
.user-chip-name { font-weight: 800; }
.user-chip-id { font-size: 12px; color: var(--muted); }

.outline-btn, .ghost-btn, .primary-btn, .mini-btn, .danger-btn {
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
  border: 1px solid var(--border);
}
.outline-btn, .ghost-btn, .mini-btn {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
.primary-btn {
  background: linear-gradient(135deg, var(--accent), #8ecbff);
  color: #07111f;
  border-color: transparent;
}
.danger-btn {
  background: rgba(255, 124, 124, 0.14);
  color: #ffdede;
  border-color: rgba(255, 124, 124, 0.22);
}
.text-btn {
  border: 0;
  background: transparent;
  color: #8abfff;
  font-weight: 700;
  padding: 6px 0;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 17px;
}
.wide { width: 100%; }

.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.hero-side-stack {
  display: grid;
  gap: 20px;
}

.hero-card, .stats-card, .panel-card, .tariff-card, .admin-user-card, .inbox-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card, .stats-card, .panel-card, .tariff-card, .admin-user-card, .inbox-item { padding: 26px; }

.eyebrow {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.hero-logo-row { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.hero-logo { width: 88px; height: 88px; object-fit: contain; }
.hero-subtitle { font-size: 18px; color: var(--muted); margin-top: 6px; }
.hero-text, .section-text { color: var(--muted); line-height: 1.8; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 62px); letter-spacing: 0; line-height: 1.02; }
h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); }
h3 { margin: 0 0 12px; font-size: 28px; }
h4 { margin: 0 0 8px; font-size: 20px; }
p { margin: 0; line-height: 1.7; color: var(--muted); }

.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.top-gap { margin-top: 18px; }
.bottom-gap { margin-bottom: 18px; }

.stat-line, .data-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stat-line:last-child, .data-line:last-child { border-bottom: 0; }
.stat-line strong { color: #bfe0ff; }
.data-line strong { text-align: right; }
.data-line.with-action { grid-template-columns: 120px 1fr auto; display: grid; align-items: center; }
.data-line.with-action span { color: var(--muted); }

.page-intro { padding: 6px 0 20px; }
.page-grid { display: grid; gap: 18px; }
.page-grid.two { grid-template-columns: repeat(2, 1fr); }
.page-grid.three { grid-template-columns: repeat(3, 1fr); }
.page-grid.four { grid-template-columns: repeat(4, 1fr); }
.tariffs-section { padding-top: 12px; }
.tariff-group-grid { align-items: stretch; }
.top-gap-large { margin-top: 28px; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 14px; }
.status-badge, .price-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.feature-list.compact { margin: 16px 0 18px; }
.feature-list li::before { content: "• "; color: #7dd8ff; }
.tariff-card h3 span { font-size: 18px; color: var(--muted); }

.notice, .auth-message, .dev-code {
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  line-height: 1.6;
}
.notice { color: #dfe8f9; }
.notice-success, .auth-message.success { border-color: rgba(99, 255, 210, 0.25); background: rgba(99, 255, 210, 0.08); color: #d6fff1; }
.notice-error, .auth-message.error { border-color: rgba(255, 124, 124, 0.25); background: rgba(255, 124, 124, 0.08); color: #ffdede; }
.dev-code { border-color: rgba(255, 211, 106, 0.26); background: rgba(255, 211, 106, 0.08); color: #ffefc4; }
.stack-list { display: grid; gap: 16px; }
.admin-user-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 14px; }
.admin-user-meta { display: grid; gap: 0; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.inbox-item-title { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 10px; }
.kind-pill { padding: 6px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--muted); }
.kind-pill.warning { color: #ffefc4; border-color: rgba(255,211,106,0.24); }
.kind-pill.error { color: #ffdede; border-color: rgba(255,124,124,0.24); }
.kind-pill.success { color: #d8fff0; border-color: rgba(99,255,210,0.24); }


.info-section, .legal-section { padding-top: 18px; }
.legal-grid { align-items: stretch; }
.legal-card, .proxy-card { height: 100%; }
.legal-copy { display: grid; gap: 12px; }
.compact-stack { gap: 0; }

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(4, 8, 15, 0.78);
  backdrop-filter: blur(8px);
}
.auth-card {
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, rgba(12, 23, 39, 0.98), rgba(10, 20, 36, 0.98));
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.small-card { width: min(500px, 100%); }
.auth-topbar, .auth-top-actions, .verify-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-topbar { margin-bottom: 16px; }
.auth-badge { color: var(--muted); font-size: 14px; }
.auth-head h2 { margin: 0 0 8px; font-size: 32px; }
.auth-head p { margin-bottom: 18px; }
.auth-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.auth-tab {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
}
.auth-tab.active { background: linear-gradient(135deg, var(--accent), #8ecbff); color: #08111d; border-color: transparent; }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field span { color: var(--muted); font-size: 14px; }
.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 54px; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
.code-input { letter-spacing: 6px; font-weight: 800; text-align: center; }
.verify-label { font-size: 18px; font-weight: 800; }
.verify-email { font-size: 14px; color: var(--muted); word-break: break-word; }
.auth-secondary-action { margin-top: 8px; width: 100%; justify-content: center; }

@media (max-width: 1180px) {
  .page-grid.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-section, .page-grid.two, .page-grid.three, .page-grid.four { grid-template-columns: 1fr; }
}


@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1200px); }
  .hero-logo-row { flex-direction: column; align-items: start; }
  .button-row, .admin-actions { flex-direction: column; }
  .data-line.with-action { grid-template-columns: 1fr auto; }
  .data-line.with-action span { grid-column: 1 / -1; margin-bottom: 6px; }
  .auth-overlay {
    place-items: start center;
    padding: 10px 8px;
  }
  .auth-card {
    width: min(100%, 420px);
    max-height: calc(100dvh - 20px);
    padding: 18px 14px max(18px, env(safe-area-inset-bottom));
    border-radius: 24px;
  }
  .auth-topbar,
  .auth-top-actions,
  .verify-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .auth-head h2 { font-size: 28px; }
  .auth-head p { margin-bottom: 14px; }
  .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; }
}

.mobile-nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 1;
}
.mobile-nav-head { display: none; }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 22px;
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 16, 0.72);
  z-index: 48;
}
.inbox-link { position: relative; gap: 10px; padding-right: 40px; }
.inbox-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4b4b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255, 75, 75, 0.35);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.hero-copy { display: grid; gap: 12px; margin-top: 8px; }
.proxy-card { justify-content: space-between; }
.compact-eyebrow { margin-bottom: 12px; }
.no-margin { margin-bottom: 0; }
.unread-item {
  border-color: rgba(83, 180, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
body.nav-open { overflow: hidden; }

@media (max-width: 1380px) {
  .nav-row {
    min-height: 84px;
    position: relative;
    flex-direction: row;
    align-items: center;
    padding: 14px 0;
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    padding: 22px 18px 28px;
    background: linear-gradient(180deg, rgba(10, 20, 36, 0.99), rgba(6, 14, 26, 0.99));
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 49;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    transform: translate3d(110%, 0, 0);
    transition: transform .18s ease;
    will-change: transform;
    box-shadow: var(--shadow);
  }
  .mobile-nav-panel.is-open { transform: translate3d(0, 0, 0); }
  .site-header { backdrop-filter: none; }
  .inbox-link { padding-right: 52px; }
  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
  }
  .mobile-brand { justify-content: flex-start; }
  .main-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .main-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
  }
  .main-nav .inbox-badge { right: 14px; top: 14px; transform: none; }
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .nav-actions > * { width: 100%; }
  .user-chip { text-align: left; }
}

@media (max-width: 640px) {
  .site-header { position: sticky; backdrop-filter: none; }
  .page-shell { padding-top: 18px; }
  .brand-text-group span { font-size: 12px; }
  .brand-logo { width: 42px; height: 42px; }
  .hero-card, .stats-card, .panel-card, .tariff-card, .admin-user-card, .inbox-item { padding: 20px; }
  .hero-logo { width: 74px; height: 74px; }
  .hero-section { gap: 16px; }
  .button-row > * { width: 100%; }
  .user-chip { padding: 10px 14px; }
  .brand-text-group strong { font-size: 16px; }
}


.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(3, 9, 18, 0.86);
  margin-top: 56px;
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.15fr;
  gap: 24px;
  padding: 24px 0 30px;
  align-items: center;
}

.footer-brand {
  align-items: center;
}

.footer-logo {
  width: 52px;
  height: 52px;
}

.footer-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-pill {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-weight: 700;
}

.footer-email-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.footer-email-text a {
  color: var(--text);
}

.footer-doc-links {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.footer-doc-links a {
  color: var(--text);
  opacity: 0.92;
}

.footer-doc-links a:hover,
.footer-pill:hover {
  opacity: 1;
}

.legal-doc-shell {
  display: grid;
  gap: 18px;
}

.legal-doc-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.legal-doc-card p {
  margin: 0 0 12px;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .footer-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-pill {
    width: 100%;
  }

  .site-footer {
    margin-top: 42px;
  }
}


.billing-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.billing-btn {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.billing-btn.active {
  background: linear-gradient(135deg, var(--accent), #8ecbff);
  color: #06111f;
}

.trial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.trial-card,
.panel-subcard,
.download-admin-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
}

.trial-copy {
  color: var(--muted);
  margin: 12px 0 0;
}

.tariff-price-value {
  display: inline-block;
  min-width: 48px;
}

.download-category-grid,
.admin-tariff-grid,
.admin-downloads-grid {
  display: grid;
  gap: 18px;
}

.admin-tariff-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.admin-downloads-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-card .download-items,
.download-admin-items {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.download-line,
.download-admin-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
}

.download-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.download-meta {
  display: grid;
  gap: 6px;
}

.download-meta span,
.download-file-status {
  font-size: 14px;
  color: var(--muted);
}

.download-admin-card {
  border-color: rgba(88,182,255,0.16);
}

.download-admin-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 900;
  font-size: 16px;
}

.download-admin-title::before {
  content: "↓";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1677ff, #27d0c6);
  color: #fff;
  font-weight: 900;
}

.download-admin-card .notice,
.download-admin-item {
  background: rgba(88,182,255,0.07);
  border-color: rgba(88,182,255,0.16);
}

.compact-notice {
  margin-top: 12px;
}

.compact-row {
  margin-top: 10px;
}

.compact-field {
  margin-top: 10px;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.6;
}

.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .trial-grid,
  .admin-tariff-grid,
  .admin-downloads-grid {
    grid-template-columns: 1fr;
  }

  .download-line {
    flex-direction: column;
    align-items: stretch;
  }

  .billing-switch {
    width: 100%;
    justify-content: space-between;
  }
}


/* v13 pricing, downloads, news */
.tariff-topline { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.tariff-price-wrap { display:grid; gap:6px; margin:10px 0 14px; }
.tariff-old-price { color:#95a7c8; text-decoration:line-through; font-size:14px; }
.tariff-main-price { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px; margin:0; font-size:38px; line-height:1; }
.tariff-main-price .tariff-price-value { font-size:42px; font-weight:800; }
.tariff-currency { font-size:28px; font-weight:800; }
.discount-pill { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:8px 12px; border-radius:999px; background:rgba(99,255,210,0.14); border:1px solid rgba(99,255,210,0.28); color:#c9fff1; font-size:13px; font-weight:800; white-space:nowrap; }
.discount-pill.no-discount { background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.12); color:#c7d2e6; }
.installer-groups { align-items:start; }
.installer-category-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; margin-top:18px; }
.installer-block { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:20px; padding:18px; }
.installer-block h4 { margin:0 0 12px; font-size:18px; }
.single-apk-block { margin-top:18px; }
.download-items { display:grid; gap:12px; }
.download-line { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.08); }
.download-line:last-child { border-bottom:0; padding-bottom:0; }
.download-meta { display:grid; gap:4px; }
.download-meta span { color:#9cb0cf; font-size:14px; line-height:1.5; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 980px) {
  .installer-category-grid { grid-template-columns:1fr; }
  .tariff-main-price { font-size:32px; }
  .tariff-main-price .tariff-price-value { font-size:36px; }
}

/* v15 layout refresh */
.user-chip-id-wrap { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.user-chip-role { display:inline-flex; align-items:center; justify-content:center; min-height:22px; padding:4px 8px; border-radius:999px; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; background:rgba(255,255,255,0.08); color:#d9e7fb; border:1px solid rgba(255,255,255,0.12); }
.user-chip-role.is-admin { background:rgba(88,182,255,0.18); color:#d8efff; border-color:rgba(88,182,255,0.28); }
.pretty-id-pill { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:8px 14px 8px 9px; border-radius:999px; background:linear-gradient(135deg, rgba(22,119,255,0.92), rgba(39,208,198,0.86)); border:1px solid rgba(255,255,255,0.2); color:#fff; box-shadow:0 12px 28px rgba(22,119,255,0.2); }
.pretty-id-pill::before { content:"#"; display:inline-grid; place-items:center; min-width:30px; height:26px; padding:0 7px; border-radius:999px; background:rgba(255,255,255,0.92); color:#145bd7; font-size:11px; font-weight:900; letter-spacing:0; }
.account-id-pill::before { content:"ID"; }
.ref-code-pill::before { content:"REF"; }
.user-id-line strong { text-align:left; }
.quick-actions-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; margin-top:8px; }
.quick-link-card { display:grid; gap:6px; color:var(--text); text-decoration:none; }
.quick-link-card strong { font-size:18px; }
.quick-link-card span { color:var(--muted); line-height:1.5; }
.combined-cabinet-top, .combined-cabinet-grid, .admin-main-grid, .admin-news-grid { align-items:start; }
.installer-stack { display:grid; gap:22px; }
.full-width-installer { width:100%; }
.news-feed-grid { display:grid; gap:18px; }
.news-card { overflow:hidden; padding:0; }
.news-card-image { width:100%; max-height:360px; object-fit:cover; border-bottom:1px solid rgba(255,255,255,0.08); }
.news-card-body { padding:24px; display:grid; gap:16px; }
.news-card-body p { color:#dce7fa; }
.news-card-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.news-card-date { color:var(--muted); font-size:14px; }
.news-empty-card { padding:26px; }
.admin-hero-card { overflow:hidden; }
.admin-hero-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:20px; align-items:stretch; }
.admin-hero-stats { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; }
.admin-stat-card { min-height:100%; display:grid; gap:8px; align-content:space-between; }
.admin-stat-card span { color:var(--muted); font-size:14px; }
.admin-stat-card strong { font-size:20px; color:var(--text); }
.news-editor-card textarea,
.field textarea { width:100%; border-radius:16px; border:1px solid var(--border); background:rgba(255,255,255,0.05); color:var(--text); padding:14px 16px; resize:vertical; min-height:160px; }
.admin-root-card { background:linear-gradient(180deg, rgba(88,182,255,0.14), rgba(255,255,255,0.04)); }
.admin-badge { background:rgba(88,182,255,0.18); color:#e4f3ff; border-color:rgba(88,182,255,0.24); }
.compact-eyebrow { margin-bottom:10px; }
@media (max-width: 980px) {
  .quick-actions-grid,
  .admin-hero-grid,
  .admin-hero-stats { grid-template-columns:1fr; }
}

.user-chip {
  justify-items: center;
  text-align: center;
}
.user-chip-id-wrap {
  justify-content: center;
}
.payment-card {
  max-width: 560px;
}
.payment-summary-card,
.request-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 24px;
}
.payment-timer-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(88,182,255,0.08);
  border: 1px solid rgba(88,182,255,0.18);
  color: #dff1ff;
}
.request-card.pending { border-color: rgba(255, 211, 106, 0.22); }
.request-card.approved { border-color: rgba(99, 255, 210, 0.24); }
.request-card.declined { border-color: rgba(255, 124, 124, 0.24); }
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.quick-link-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
}
.download-admin-item input[type="file"] {
  width: 100%;
}
.admin-hero-card .panel-subcard {
  border-radius: 22px;
}
@media (max-width: 760px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* v20 payment + badges + traffic */
.nav-toggle-with-badge {
  position: relative;
}
.menu-toggle-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7dd8ff, #56a6ff);
  color: #04121f;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(86,166,255,0.35);
}

.main-nav .nav-link {
  position: relative;
}

.user-chip {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.user-chip-name {
  display: block;
  width: 100%;
  text-align: center;
}
.user-chip-id-wrap {
  justify-content: center;
  width: 100%;
}
.user-chip-role.is-admin {
  min-width: 88px;
}

.payment-card {
  max-width: 620px;
}
.payment-requisites-box {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(125,216,255,0.28);
  background: linear-gradient(180deg, rgba(88,182,255,0.14), rgba(88,182,255,0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 40px rgba(11,22,43,0.24);
}
.payment-requisites-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.payment-bank-row {
  color: #d6e9ff;
  margin-bottom: 12px;
}
.payment-requisites-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(4, 18, 31, 0.54);
  border: 1px dashed rgba(125,216,255,0.38);
  color: #f5fbff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  word-break: break-word;
}
.payment-requisites-text {
  margin: 12px 0 0;
  color: #c8d9f3;
  line-height: 1.6;
}
.payment-upload-step {
  margin-top: 18px;
}
.payment-receipt-form {
  display: grid;
  gap: 14px;
}
.payment-receipt-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.payment-receipt-preview-image {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(3,10,19,0.65);
}
.payment-receipt-preview-file {
  color: #dce8fa;
  font-size: 14px;
  line-height: 1.5;
}
.request-receipt-wrap {
  display: grid;
  gap: 12px;
}
.request-receipt-thumb {
  display: block;
  width: min(100%, 280px);
}
.request-receipt-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.request-receipt-file {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dce8fa;
}
.traffic-custom-field {
  margin-top: 10px;
}
.traffic-custom-total {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(125,216,255,0.08);
  border: 1px solid rgba(125,216,255,0.18);
  color: #dff1ff;
  font-weight: 700;
}
.download-admin-item {
  gap: 10px;
}
.download-admin-item .download-file-status {
  line-height: 1.5;
}
.compact-card-top {
  margin-bottom: 12px;
}
@media (max-width: 760px) {
  .payment-requisites-head {
    align-items: stretch;
    flex-direction: column;
  }
  .payment-requisites-pill {
    font-size: 19px;
  }
}

/* v21 support + payouts + receipt flow */
.quick-link-button {
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.support-float-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(125,216,255,0.28);
  background: linear-gradient(180deg, rgba(38, 86, 150, 0.96), rgba(17, 40, 81, 0.96));
  box-shadow: 0 18px 40px rgba(7, 18, 39, 0.42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
}
.support-float-icon {
  font-size: 23px;
  line-height: 1;
}
.support-card textarea,
.support-card select {
  width: 100%;
}
.support-summary-text {
  white-space: pre-wrap;
  word-break: break-word;
}
.payout-card .request-receipt-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.request-card.draft {
  border-color: rgba(125, 216, 255, 0.24);
}
.payment-card .auth-head p {
  line-height: 1.65;
}
@media (max-width: 760px) {
  .support-float-btn {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}


/* v22 mobile payment, referrals, support */
@media (max-width: 760px) {
  .auth-card.payment-card {
    width: min(92vw, 420px);
    max-width: 92vw;
    padding: 18px 14px;
    border-radius: 22px;
    max-height: 88vh;
    overflow: auto;
  }
  .payment-summary-card .data-line,
  .request-card .data-line,
  .admin-user-meta .data-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .button-row.support-next-actions {
    grid-template-columns: 1fr;
  }
}
.support-layout-grid { align-items: stretch; }
.support-thread-item {
  width: 100%; text-align: left; border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  border-radius: 18px; padding: 14px; display: grid; gap: 8px; color: inherit;
}
.support-thread-item.active { border-color: rgba(88,182,255,0.45); background: rgba(88,182,255,0.10); }
.support-thread-top { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.support-thread-meta { color: var(--muted); font-size: 14px; line-height: 1.45; }
.support-chat-panel { min-height: 540px; display:grid; grid-template-rows:auto 1fr auto; gap:14px; }
.support-chat-header { font-weight: 700; color: #eaf3ff; }
.support-chat-messages {
  min-height: 280px; max-height: 420px; overflow: auto; display:grid; gap:12px;
  padding: 12px; border-radius: 18px; border:1px solid var(--border); background: rgba(255,255,255,0.03);
}
.support-message { display:flex; }
.support-message.from-admin { justify-content:flex-start; }
.support-message.from-user { justify-content:flex-end; }
.support-message-bubble {
  max-width: 85%; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); display:grid; gap:8px;
}
.support-message.from-user .support-message-bubble { background: rgba(88,182,255,0.12); border-color: rgba(88,182,255,0.28); }
.support-message-label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.support-message-text { line-height: 1.6; }
.support-message-time { font-size: 12px; color: var(--muted); }
.support-message-image { max-width: 220px; border-radius: 14px; display:block; }
.support-chat-form { display:grid; gap:12px; }
.empty-state { color: var(--muted); }
.referral-user-card { display:grid; gap:6px; }
.referral-leader-line.current-user { border-color: rgba(88,182,255,0.35); background: rgba(88,182,255,0.08); border-radius: 14px; padding: 10px 12px; }
.compact-stack { gap: 10px; }
#referralCodeValue { user-select: all; }
#referralApplyBox .field input[disabled] { opacity: .6; }
.payment-requisites-pill { word-break: break-word; }
.inbox-workspace-hidden { display:none; }


.support-starter-card { display:grid; gap:14px; margin-bottom:14px; }
@media (max-width: 760px) {
  .payment-card { max-width: min(100%, 360px); padding: 20px 16px; }
  .payment-summary-card { border-radius: 20px; }
  .payment-requisites-box { padding: 14px; }
  .support-chat-panel { padding: 16px; }
  .support-chat-header { font-size: 14px; }
  .support-next-actions { grid-template-columns: 1fr; }
}


.admin-support-layout { align-items: stretch; }
.support-thread-item { text-align: left; cursor: pointer; min-height: 92px; }
.support-thread-item .status-badge { min-width: 28px; text-align: center; }
.support-chat-panel { background: linear-gradient(180deg, rgba(12,18,30,.86), rgba(10,16,28,.96)); }
.support-chat-messages { background: radial-gradient(circle at top, rgba(88,182,255,0.05), transparent 42%), rgba(255,255,255,0.02); border-radius: 22px; padding: 16px; }
.support-message-bubble { max-width: min(78%, 540px); padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); display: grid; gap: 8px; }
.support-message.from-user .support-message-bubble { border-bottom-right-radius: 8px; }
.support-message.from-admin .support-message-bubble { border-bottom-left-radius: 8px; background: rgba(39,58,92,0.55); }
.support-chat-form textarea { min-height: 96px; }
@media (max-width: 760px) {
  .support-chat-panel { min-height: 68vh; }
  .support-message-bubble { max-width: 88%; }
}


/* v26 admin split pages + messenger refinements */
.admin-panel-layout { display:grid; grid-template-columns: 260px minmax(0,1fr); gap:18px; align-items:start; }
.admin-sidebar-card { position: sticky; top: 96px; }
.admin-side-nav { display:grid; gap:10px; }
.admin-side-link { display:block; padding:14px 16px; border-radius:18px; border:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.04); color:#dfe8f9; text-decoration:none; }
.admin-side-link.active { background:rgba(88,182,255,0.14); border-color:rgba(88,182,255,0.32); color:#fff; }
.admin-page-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.messenger-shell-card { padding:18px; }
.messenger-chat-panel { min-height: 620px; display:flex; flex-direction:column; }
.support-chat-messages { padding:10px 4px; }
.support-message { margin-bottom:8px; }
.support-message-bubble { border-radius:18px; padding:8px 12px; max-width:82%; box-shadow:none; }
.support-message.from-user { display:flex; justify-content:flex-end; }
.support-message.from-user .support-message-bubble { background:rgba(88,182,255,0.14); border:1px solid rgba(88,182,255,0.22); }
.support-message.from-admin .support-message-bubble { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); }
.support-message-label { font-size:11px; opacity:.7; margin-bottom:4px; }
.support-message-text { font-size:14px; line-height:1.45; }
.support-message-time { font-size:11px; opacity:.7; margin-top:6px; }
.messenger-compose-row { display:grid; grid-template-columns: 46px minmax(0,1fr) auto; gap:10px; align-items:end; }
.messenger-compose-row textarea { min-height:46px; max-height:140px; resize:vertical; border-radius:18px; padding:12px 14px; }
.compose-icon-btn { width:46px; height:46px; border-radius:50%; border:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.05); color:#fff; cursor:pointer; }
.send-btn { min-height:46px; }
.hidden-file-input { display:none; }
.message-inline-preview { display:flex; gap:12px; align-items:center; padding:10px 12px; border-radius:16px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); margin-bottom:10px; }
.message-inline-preview-image { width:64px; height:64px; object-fit:cover; border-radius:12px; }
.message-inline-preview-file { font-size:13px; color:#dfe8f9; word-break:break-word; }
.code-wrap { display:block; white-space:pre-wrap; word-break:break-all; }
@media (max-width: 980px) {
  .admin-panel-layout { grid-template-columns: 1fr; }
  .admin-sidebar-card { position: static; }
  .messenger-chat-panel { min-height: 520px; }
}
@media (max-width: 760px) {
  .support-message-bubble { max-width: 92%; padding:7px 10px; }
  .support-message-text { font-size:13px; }
  .messenger-compose-row { grid-template-columns: 42px minmax(0,1fr); }
  .messenger-compose-row .send-btn { grid-column: 1 / -1; }
}


/* v27 instructions + upload progress + mobile stability */
.instruction-card { scroll-margin-top: 110px; }
.instruction-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text); }
.instruction-list li { line-height: 1.7; }
.compact-card-top { margin-bottom: 10px; }
.download-admin-meta-grid { display:grid; gap:8px; margin: 0 0 14px; }
.download-current-line { display:grid; gap:4px; padding:10px 12px; border-radius:14px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.06); }
.download-current-line span { color: var(--muted); font-size: 12px; }
.download-current-line strong { word-break: break-word; font-size: 13px; }
.download-selected-file { color: var(--muted); font-size: 13px; margin: -2px 0 2px; }
.download-upload-progress { display:grid; gap:8px; margin: 6px 0 4px; }
.download-upload-progress-bar { width:100%; height:10px; border-radius:999px; background:rgba(255,255,255,0.08); overflow:hidden; }
.download-upload-progress-bar span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg, #69b7ff, #7dffd2); transition:width .2s ease; }
.download-upload-progress-text { font-size:12px; color: var(--muted); }
.download-admin-item { padding: 16px; border-radius: 20px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06); }
@media (max-width: 760px) {
  .download-admin-item { padding: 14px; }
  .download-current-line strong { font-size: 12px; }
  .instruction-card { padding: 18px; }
  .auth-card.payment-card { width: min(100vw - 24px, 360px); max-width: min(100vw - 24px, 360px); }
}


.mini-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(90,168,255,0.18);
  border: 1px solid rgba(90,168,255,0.28);
  color: #dff1ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  margin-left: 6px;
}
.nav-link-with-badges {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.admin-quick-counters {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.admin-counter-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.admin-counter-chip strong {
  color: #fff;
  font-size: 18px;
}
.tariff-year-note {
  color: #dff1ff;
}


/* v29 smartphone stabilization */
html, body {
  max-width: 100%;
}
textarea,
input,
select,
button {
  max-width: 100%;
}
.panel-card,
.panel-subcard,
.tariff-card,
.admin-user-card,
.inbox-item,
.download-admin-item,
.installer-block,
.news-card,
.support-chat-panel,
.request-card,
.payment-summary-card {
  min-width: 0;
}
.card-top,
.section-head,
.news-card-footer,
.payment-requisites-head,
.admin-page-head,
.support-thread-top,
.download-line,
.download-current-line,
.button-row {
  min-width: 0;
}
.download-line,
.download-meta,
.download-current-line strong,
.support-thread-meta,
.support-message-text,
.support-message-time,
.code-wrap,
.pretty-id-pill,
.payment-requisites-pill,
.status-badge,
.mini-count-badge {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 900px) {
  .page-shell { padding: 18px 0 52px; }
  .container { width: min(100%, calc(100% - 20px)); }
  .hero-card, .stats-card, .panel-card, .tariff-card, .admin-user-card, .inbox-item { padding: 20px; }
  .trial-card, .panel-subcard, .download-admin-card { padding: 18px; }
  .card-top,
  .admin-page-head,
  .news-card-footer,
  .download-line,
  .payment-requisites-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-top .status-badge,
  .admin-page-head .status-badge,
  .news-card-footer .status-badge {
    align-self: flex-start;
  }
  .button-row > .outline-btn,
  .button-row > .ghost-btn,
  .button-row > .primary-btn,
  .button-row > .mini-btn,
  .button-row > .danger-btn,
  .button-row > .text-btn,
  .button-row > a,
  .billing-switch,
  .auth-tabs {
    width: 100%;
  }
  .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  h1 { letter-spacing: 0; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  h4 { font-size: 18px; }
  .brand-text-group span { font-size: 12px; }
  .nav-link, .chip { padding: 11px 14px; }
  .outline-btn, .ghost-btn, .primary-btn, .mini-btn, .danger-btn { width: 100%; min-height: 46px; padding: 13px 16px; }
  .button-row { display: grid; grid-template-columns: 1fr; }
  .button-row > * { width: 100%; }
  .auth-tabs { grid-template-columns: 1fr; }
  .auth-tab { width: 100%; }
  .page-intro { padding: 4px 0 16px; }
  .hero-logo-row { gap: 14px; }
  .hero-logo { width: 68px; height: 68px; }
  .section-head,
  .card-top,
  .news-card-footer,
  .admin-page-head,
  .support-thread-top,
  .payment-requisites-head,
  .download-line {
    gap: 10px;
  }
  .data-line,
  .stat-line,
  .data-line.with-action {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: flex-start;
  }
  .data-line strong { text-align: left; }
  .messenger-compose-row { grid-template-columns: 42px minmax(0, 1fr); }
  .messenger-compose-row .send-btn { grid-column: 1 / -1; }
  .support-chat-panel,
  .messenger-chat-panel { min-height: 62vh; }
  .support-chat-messages { min-height: 240px; max-height: 52vh; }
  .support-message-bubble { max-width: 100%; }
  .download-admin-meta-grid,
  .download-admin-items,
  .admin-downloads-grid,
  .admin-tariff-grid,
  .quick-actions-grid,
  .trial-grid,
  .installer-category-grid,
  .page-grid.two,
  .page-grid.three,
  .page-grid.four { grid-template-columns: 1fr; }
  .admin-side-link { padding: 12px 14px; }
  .admin-quick-counters { gap: 8px; }
  .news-card-body { padding: 18px; }
  .field input,
  .field textarea,
  .field select,
  .download-admin-item input[type="file"],
  textarea,
  select,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"] {
    font-size: 16px;
  }
}
@media (max-width: 520px) {
  .container { width: min(100%, calc(100% - 16px)); }
  .hero-card, .stats-card, .panel-card, .tariff-card, .admin-user-card, .inbox-item { padding: 16px; border-radius: 22px; }
  .trial-card, .panel-subcard, .download-admin-card, .download-admin-item { padding: 14px; border-radius: 18px; }
  .status-badge, .mini-count-badge, .eyebrow { max-width: 100%; }
  .user-chip, .pretty-id-pill, .payment-requisites-pill { width: 100%; }
  .support-float-btn { right: 14px; bottom: 14px; }
}


/* v28.1 Happ instruction refresh */
.guide-figure-wrap {
  margin: 18px 0 20px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}
.guide-figure {
  display: block;
  width: 100%;
  height: auto;
}
.instruction-subtitle {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.25;
}
.instruction-checks {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text);
}
.instruction-checks li {
  line-height: 1.7;
}
@media (max-width: 760px) {
  .guide-figure-wrap {
    margin: 14px 0 18px;
    border-radius: 20px;
  }
  .instruction-subtitle {
    font-size: 18px;
  }
}


/* v28.2 auth recovery + mobile register fix */
@media (max-width: 520px) {
  .auth-card {
    max-height: calc(100dvh - 12px);
    padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  }
  .auth-badge { font-size: 13px; }
  .auth-head h2 { font-size: 24px; }
  .auth-head p { font-size: 14px; line-height: 1.55; }
  .verify-label { font-size: 16px; }
  .field { margin-bottom: 12px; }
  .field input { padding: 13px 14px; }
  .code-input { letter-spacing: 4px; }
}
.instruction-card .notice { line-height: 1.7; }
.instruction-checks li { line-height: 1.7; }


/* v31 referrals payout + stronger mobile auth */
.referral-payout-form .field input { width: 100%; }
@media (max-width: 520px) {
  .auth-overlay { padding: 6px 6px max(12px, env(safe-area-inset-bottom)); align-items: flex-start; }
  .auth-card { width: 100%; max-height: calc(100dvh - 8px); padding: 14px 12px calc(120px + env(safe-area-inset-bottom)); border-radius: 20px; }
  .auth-pane.active { display: grid; gap: 8px; }
  .auth-pane .primary-btn.wide { margin-top: 6px; }
  .auth-tabs { gap: 8px; }
}


.payment-choice-card .button-row { margin-top: 18px; }
.payment-choice-card .auth-head p { max-width: 34ch; }

/* v29 help widget redesign */
.help-widget-page {
  display: flex;
  justify-content: center;
}
.help-widget-shell {
  position: relative;
  width: min(100%, 520px);
}
.help-guest-card,
.help-widget-workspace {
  background: #f6f4fb;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(5, 10, 18, 0.28);
  border: 1px solid rgba(255,255,255,0.18);
}
.help-widget-top {
  position: relative;
  padding: 16px 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, #8d41ff 0%, #6d31ea 44%, #5727d0 100%);
}
.help-widget-top::before,
.help-widget-top::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.help-widget-top::before {
  opacity: 0.22;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.34) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.34) 87.5%, rgba(255,255,255,0.34)),
    linear-gradient(150deg, rgba(255,255,255,0.34) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.34) 87.5%, rgba(255,255,255,0.34)),
    linear-gradient(90deg, rgba(255,255,255,0.2) 2%, transparent 2.5%, transparent 97%, rgba(255,255,255,0.2) 97.5%, rgba(255,255,255,0.2));
  background-size: 28px 48px;
  background-position: 0 0, 0 0, 14px 24px;
}
.help-widget-top::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
}
.help-widget-topbar,
.help-widget-brand-row,
.help-widget-toolbar,
.help-widget-chat-area,
.help-guest-body,
.help-starter-panel,
.help-compose-box,
.help-compose-actions {
  position: relative;
  z-index: 1;
}
.help-widget-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.help-widget-top-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 18px rgba(57, 17, 145, 0.28);
  font-size: 14px;
  font-weight: 800;
}
.help-widget-top-pill::before {
  content: "💬";
  margin-right: 8px;
  font-size: 13px;
}
.help-widget-top-link {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.help-widget-brand-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.help-widget-avatar,
.help-message-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 20px rgba(46, 14, 126, 0.24);
}
.help-widget-brand-row h1 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.08;
  color: #fff;
}
.help-widget-brand-row p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  line-height: 1.45;
}
.help-guest-body,
.help-widget-toolbar,
.help-widget-chat-area {
  padding-left: 16px;
  padding-right: 16px;
}
.help-widget-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.help-toolbar-btn,
.help-toolbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.help-toolbar-btn {
  border: 1px solid rgba(109, 49, 234, 0.18);
  background: rgba(109, 49, 234, 0.08);
  color: #5727d0;
  cursor: pointer;
}
.help-toolbar-link {
  color: #5c38d8;
}
.help-connection-alert {
  margin: 0 16px 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7e8eb;
  color: #dd3348;
  font-weight: 700;
  line-height: 1.45;
}
.help-connection-alert.soft {
  margin-top: 16px;
}
.help-widget-chat-area {
  padding-bottom: 16px;
}
.help-chat-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #6d6c7a;
}
.help-starter-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.help-welcome-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.help-message-avatar {
  width: 38px;
  height: 38px;
  font-size: 18px;
}
.help-demo-bubble {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 10px;
  background: #eef1f4;
  color: #26313d;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.help-starter-panel {
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(109,49,234,0.08);
}
.help-starter-form .field span {
  color: #5f6671;
}
.help-starter-form input,
.help-starter-form textarea,
.help-starter-form select {
  background: #f8f9fc;
  color: #1f2730;
  border: 1px solid rgba(109,49,234,0.14);
}
.help-starter-actions .mini-btn,
.help-starter-actions .ghost-btn,
.help-starter-actions .primary-btn {
  min-height: 44px;
}
.help-chat-messages {
  min-height: 380px;
  max-height: 480px;
  padding: 8px 4px 8px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #6d7280;
}
[data-page="help"] .support-message {
  margin-bottom: 12px;
}
[data-page="help"] .support-message.from-admin {
  justify-content: flex-start;
}
[data-page="help"] .support-message.from-user {
  justify-content: flex-end;
}
[data-page="help"] .support-message-bubble {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 18px;
  border: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}
[data-page="help"] .support-message.from-admin .support-message-bubble {
  background: #eef1f4;
  color: #24303a;
  border-bottom-left-radius: 10px;
}
[data-page="help"] .support-message.from-user .support-message-bubble {
  background: linear-gradient(135deg, #8d41ff, #6d31ea);
  color: #fff;
  border-bottom-right-radius: 10px;
}
[data-page="help"] .support-message-label,
[data-page="help"] .support-message-time {
  display: none;
}
[data-page="help"] .support-message-text {
  font-size: 15px;
  line-height: 1.48;
}
[data-page="help"] .support-message-image {
  max-width: 240px;
  border-radius: 14px;
}
.help-compose-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.help-compose-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid rgba(122, 67, 245, 0.8);
  box-shadow: 0 10px 25px rgba(94, 46, 200, 0.08);
}
.help-compose-box textarea {
  min-height: 78px;
  max-height: 180px;
  resize: vertical;
  border: none;
  background: transparent;
  color: #27303a;
  padding: 2px 0;
}
.help-compose-box textarea:focus {
  outline: none;
  box-shadow: none;
}
.help-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.help-compose-icon-btn,
.help-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}
.help-compose-icon-btn {
  background: #f2f4f8;
  color: #718093;
}
.help-send-btn {
  background: transparent;
  color: #b6bcc6;
  font-size: 24px;
}
.help-widget-close {
  position: absolute;
  right: 12px;
  bottom: -22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8d41ff, #6d31ea);
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  box-shadow: 0 18px 34px rgba(90, 39, 210, 0.34);
}
[data-page="help"] .message-inline-preview {
  background: #fff;
  border: 1px solid rgba(109,49,234,0.14);
}
@media (max-width: 760px) {
  .help-widget-page {
    padding-left: 0;
    padding-right: 0;
  }
  .help-widget-shell {
    width: 100%;
  }
  .help-widget-top,
  .help-guest-body,
  .help-widget-toolbar,
  .help-widget-chat-area {
    padding-left: 12px;
    padding-right: 12px;
  }
  .help-widget-top {
    padding-top: 14px;
  }
  .help-widget-brand-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }
  .help-widget-avatar {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
  .help-widget-brand-row h1 {
    font-size: 22px;
  }
  .help-widget-brand-row p {
    font-size: 14px;
  }
  .help-widget-toolbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .help-chat-messages {
    min-height: 320px;
    max-height: 46vh;
  }
  [data-page="help"] .support-message-bubble,
  .help-demo-bubble {
    max-width: 92%;
    font-size: 14px;
  }
  .help-compose-box {
    padding: 10px;
    border-radius: 18px;
  }
  .help-widget-close {
    right: 10px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

/* r38 help chat stability + mobile copy */
.support-float-btn {
  border-color: rgba(121, 176, 255, 0.28);
  background: linear-gradient(180deg, rgba(25, 66, 128, 0.96), rgba(12, 31, 73, 0.98));
}
.support-float-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #57a5ff;
  color: #0e1b35;
  border: 2px solid rgba(8, 19, 40, 0.95);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-page="help"] .help-widget-shell {
  width: min(100%, 760px);
  background: #f4f5f8;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 22px 60px rgba(9, 19, 41, 0.16);
  overflow: visible;
}
[data-page="help"] .help-widget-top {
  background: linear-gradient(180deg, #3657a8 0%, #24427f 100%);
}
[data-page="help"] .help-widget-top::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
}
[data-page="help"] .help-widget-top-pill {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 10px 18px rgba(26, 48, 95, 0.28);
}
[data-page="help"] .help-widget-top-link,
[data-page="help"] .help-top-reset-btn {
  color: rgba(255,255,255,0.94);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: none;
}
[data-page="help"] .help-widget-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
[data-page="help"] .help-connection-alert {
  margin: 14px 16px 10px;
  background: #f8e9ed;
  color: #d93c55;
  border: 1px solid rgba(217, 60, 85, 0.08);
  font-weight: 700;
}
[data-page="help"] .help-widget-chat-area {
  padding-top: 6px;
}
[data-page="help"] .help-chat-title {
  margin-bottom: 8px;
  color: #7c8292;
}
[data-page="help"] .help-chat-messages {
  min-height: 420px;
  max-height: 56vh;
  padding: 6px 2px 6px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
[data-page="help"] .support-message {
  margin-bottom: 10px;
}
[data-page="help"] .support-message-bubble {
  max-width: min(76%, 360px);
  width: fit-content;
  padding: 10px 13px;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
[data-page="help"] .support-message.from-admin .support-message-bubble {
  background: #eceff3;
  color: #23303d;
}
[data-page="help"] .support-message.from-user .support-message-bubble {
  background: linear-gradient(135deg, #3657a8 0%, #24427f 100%);
  color: #fff;
  margin-left: auto;
}
[data-page="help"] .support-message-text,
[data-page="help"] .support-message-bubble,
[data-page="help"] .support-message-label,
[data-page="help"] .support-message-time {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}
[data-page="help"] .support-message-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}
[data-page="help"] .help-compose-form {
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(244,245,248,0), rgba(244,245,248,0.94) 18%, #f4f5f8 52%);
  padding-top: 10px;
}
[data-page="help"] .help-compose-box {
  gap: 5px;
  padding: 8px 12px 7px;
  border-radius: 18px;
  border-width: 2px;
  border-color: rgba(63, 88, 161, 0.7);
  box-shadow: 0 12px 24px rgba(30, 53, 109, 0.08);
}
[data-page="help"] .help-compose-box textarea {
  min-height: 32px;
  max-height: 140px;
  resize: none;
  overflow-y: auto;
  padding: 0;
  line-height: 1.4;
}
[data-page="help"] .help-compose-actions {
  justify-content: flex-start;
}
[data-page="help"] .help-compose-icon-btn,
[data-page="help"] .help-send-btn {
  width: 34px;
  height: 34px;
  background: transparent;
  box-shadow: none;
}
[data-page="help"] .help-compose-icon-btn {
  color: #7f8a98;
}
[data-page="help"] .help-send-btn {
  margin-left: auto;
  color: #b7bcc6;
  font-size: 22px;
}
[data-page="help"] .help-widget-close {
  background: linear-gradient(135deg, #3657a8 0%, #24427f 100%);
}
[data-page="help"] .help-widget-close-top {
  position: static;
  width: 34px;
  height: 34px;
  min-width: 34px;
  box-shadow: none;
  font-size: 16px;
}
[data-page="help"] .help-send-btn[disabled],
[data-page="help"] .help-compose-icon-btn[disabled],
[data-page="help"] .help-compose-box textarea[disabled] {
  opacity: .55;
  cursor: not-allowed;
}
.cabinet-access-card {
  background: rgba(255,255,255,0.04);
}
.cabinet-access-value {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 760px) {
  [data-page="help"] .help-widget-page {
    padding-bottom: 28px;
  }
  [data-page="help"] .help-widget-shell {
    border-radius: 18px;
  }
  [data-page="help"] .help-widget-top-actions {
    gap: 10px;
  }
  [data-page="help"] .help-connection-alert {
    margin-left: 12px;
    margin-right: 12px;
    font-size: 14px;
  }
  [data-page="help"] .help-chat-messages {
    min-height: 52vh;
    max-height: 52vh;
  }
  [data-page="help"] .support-message-bubble {
    max-width: 80%;
    padding: 9px 11px;
  }
  [data-page="help"] .help-compose-box {
    border-radius: 16px;
    padding: 9px 11px 7px;
  }
  [data-page="help"] .help-compose-box textarea {
    min-height: 36px;
  }
  [data-page="help"] .help-widget-close-top {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
}
[data-page="help"] .help-compose-emoji-btn[disabled] {
  opacity: .85;
  cursor: default;
}

/* v40 light theme refresh + platform selector */
.site-header {
  background: rgba(255, 255, 255, 0.84);
  border-bottom-color: rgba(17, 43, 78, 0.08);
}

body[data-theme="dark"] .site-header {
  background: rgba(5, 13, 25, 0.84);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.hero-card,
.stats-card,
.platform-card,
.panel-card,
.tariff-card,
.admin-user-card,
.inbox-item,
.trial-card,
.panel-subcard,
.download-admin-card,
.news-card,
.payment-summary-card,
.request-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-color: var(--border);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .hero-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.94)),
    linear-gradient(180deg, var(--panel), var(--panel-2));
}

.platform-card {
  padding: 24px;
  border-radius: var(--radius);
}

.platform-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.platform-card-head h2 {
  margin-bottom: 6px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-side-stack .platform-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-btn {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(30, 64, 112, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.platform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(30, 64, 112, 0.14);
  border-color: rgba(22, 119, 255, 0.28);
}

.platform-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
}

.platform-icon svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-btn strong {
  display: block;
  font-size: 18px;
  color: var(--text);
}

.platform-btn small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.platform-btn.android .platform-icon { background: linear-gradient(135deg, #31c46b, #139c55); }
.platform-btn.ios .platform-icon { background: linear-gradient(135deg, #121826, #536174); }
.platform-btn.windows .platform-icon { background: linear-gradient(135deg, #188bff, #00b7d8); }
.platform-btn.tv .platform-icon { background: linear-gradient(135deg, #7a5cff, #f2547d); }

body[data-theme="dark"] .platform-btn {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

body[data-theme="light"] .nav-link,
body[data-theme="light"] .chip,
body[data-theme="light"] .outline-btn,
body[data-theme="light"] .ghost-btn,
body[data-theme="light"] .mini-btn,
body[data-theme="light"] .icon-btn,
body[data-theme="light"] .eyebrow,
body[data-theme="light"] .status-badge,
body[data-theme="light"] .price-badge,
body[data-theme="light"] .kind-pill,
body[data-theme="light"] .billing-switch,
body[data-theme="light"] .installer-block,
body[data-theme="light"] .notice,
body[data-theme="light"] .auth-message,
body[data-theme="light"] .dev-code {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-color: var(--border);
}

body[data-theme="light"] .nav-link,
body[data-theme="light"] .chip,
body[data-theme="light"] .outline-btn,
body[data-theme="light"] .ghost-btn,
body[data-theme="light"] .mini-btn,
body[data-theme="light"] .icon-btn {
  color: var(--text);
}

body[data-theme="light"] .primary-btn,
body[data-theme="light"] .nav-link.active,
body[data-theme="light"] .billing-btn.active {
  background: linear-gradient(135deg, #1677ff, #27d0c6);
  color: #fff;
  border-color: transparent;
}

body[data-theme="light"] .danger-btn {
  color: #9f2239;
  background: rgba(201, 54, 80, 0.08);
  border-color: rgba(201, 54, 80, 0.18);
}

body[data-theme="light"] .text-btn {
  color: #1468dc;
}

body[data-theme="light"] .notice {
  color: #40516a;
}

body[data-theme="light"] .notice-success,
body[data-theme="light"] .auth-message.success {
  color: #0f684e;
  background: rgba(22, 163, 127, 0.1);
  border-color: rgba(22, 163, 127, 0.22);
}

body[data-theme="light"] .notice-error,
body[data-theme="light"] .auth-message.error {
  color: #9f2239;
  background: rgba(201, 54, 80, 0.08);
  border-color: rgba(201, 54, 80, 0.2);
}

body[data-theme="light"] .tariff-old-price {
  color: #8a98ab;
}

body[data-theme="light"] .feature-list li::before {
  color: #1677ff;
}

body[data-theme="light"] .stat-line,
body[data-theme="light"] .data-line {
  border-bottom-color: rgba(17, 43, 78, 0.09);
}

body[data-theme="light"] .stat-line strong,
body[data-theme="light"] .data-line strong,
body[data-theme="light"] .admin-counter-chip strong {
  color: var(--text);
}

body[data-theme="light"] .discount-pill {
  background: linear-gradient(135deg, #e11d48, #f97316);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.22);
}

body[data-theme="light"] .discount-pill.no-discount {
  background: #334155;
  color: #fff;
  border-color: #334155;
  box-shadow: none;
}

body[data-theme="light"] .pretty-id-pill,
body[data-theme="light"] .user-chip-id {
  background: linear-gradient(135deg, #1677ff, #16b8a6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.24);
}

body[data-theme="light"] .pretty-id-pill::before {
  background: #fff;
  color: #145bd7;
}

body[data-theme="light"] .news-card,
body[data-theme="light"] .news-empty-card {
  background: #fff;
  color: var(--text);
  border-color: rgba(17, 43, 78, 0.12);
}

body[data-theme="light"] .news-card-body h3,
body[data-theme="light"] .news-card-body strong {
  color: var(--text);
}

body[data-theme="light"] .news-card-body p,
body[data-theme="light"] .news-card-date,
body[data-theme="light"] .news-empty-card p {
  color: #334155;
}

body[data-theme="light"] .news-card-footer .status-badge,
body[data-theme="light"] .custom-tariff-card .status-badge {
  background: #102033;
  color: #fff;
  border-color: #102033;
}

body[data-theme="light"] input,
body[data-theme="light"] textarea,
body[data-theme="light"] select {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border-color: var(--border);
}

body[data-theme="light"] .mobile-nav-panel,
body[data-theme="light"] .auth-card,
body[data-theme="light"] .edit-card,
body[data-theme="light"] .payment-card,
body[data-theme="light"] .payment-choice-card {
  background: #ffffff;
  color: var(--text);
}

body[data-theme="light"] .site-footer {
  background: rgba(255, 255, 255, 0.62);
  border-top-color: rgba(17, 43, 78, 0.08);
}

@media (max-width: 980px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .platform-card {
    padding: 18px;
  }
  .platform-card-head {
    display: grid;
  }
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .platform-btn {
    min-height: 76px;
  }
}

/* v41 full-width platform windows */
.platform-selector-section {
  margin-top: 22px;
}

.platform-card-wide {
  width: 100%;
}

.platform-card-wide .platform-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-btn.active {
  border-color: rgba(22, 119, 255, 0.45);
  box-shadow: 0 18px 40px rgba(22, 119, 255, 0.16);
}

body[data-theme="light"] .platform-btn.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 245, 255, 0.92));
}

.platform-windows-section {
  margin-top: 18px;
}

.platform-window {
  scroll-margin-top: 120px;
}

.platform-window-head,
.platform-pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.platform-window-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 16px;
  margin-top: 18px;
}

.platform-download-card,
.platform-trial-card {
  height: 100%;
}

.platform-extra-downloads {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.platform-pricing-head {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.platform-pricing-head.no-top-border {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.platform-faq-card {
  margin-top: 20px;
}

.platform-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.platform-faq-item {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(88,182,255,0.16);
  background:
    linear-gradient(135deg, rgba(22,119,255,0.07), rgba(39,208,198,0.08)),
    rgba(255,255,255,0.55);
}

body[data-theme="dark"] .platform-faq-item {
  background:
    linear-gradient(135deg, rgba(88,182,255,0.08), rgba(39,208,198,0.08)),
    rgba(255,255,255,0.035);
}

.platform-faq-item h3 {
  margin-bottom: 12px;
}

.platform-faq-item ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 9px;
  line-height: 1.55;
}

.platform-faq-item li::marker {
  color: var(--accent);
  font-weight: 900;
}

.platform-guide-card {
  margin-top: 22px;
}

.platform-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.platform-guide-item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(20, 91, 215, 0.11);
}

.platform-guide-item h3 {
  margin: 0 0 12px;
}

.platform-guide-item ol {
  margin: 0;
  padding-left: 21px;
  color: var(--muted);
  line-height: 1.7;
}

.platform-guide-item li + li {
  margin-top: 7px;
}

.platform-tariff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.platform-tariff-card {
  box-shadow: none;
}

@media (max-width: 980px) {
  .platform-card-wide .platform-grid,
  .platform-tariff-grid,
  .platform-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-window-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .platform-card-wide .platform-grid,
  .platform-tariff-grid,
  .platform-faq-grid,
  .product-grid,
  .platform-guide-grid {
    grid-template-columns: 1fr;
  }
  .platform-window-head,
  .platform-pricing-head {
    display: grid;
  }
}

.platform-icon {
  width: 66px;
  height: 58px;
  border-radius: 0;
  background: transparent !important;
  color: var(--text);
}

.platform-icon svg {
  width: 64px;
  height: 58px;
  fill: currentColor;
  stroke: currentColor;
}

.platform-icon.ios-icon svg {
  width: 98px;
}

.platform-icon.android-icon { color: #74bf52; }
.platform-icon.ios-icon { color: #050505; }
.platform-icon.windows-icon { color: #35b8e6; }
.platform-icon.tv-icon { color: #333333; }

body[data-theme="dark"] .platform-icon.ios-icon,
body[data-theme="dark"] .platform-icon.tv-icon {
  color: #f8fafc;
}

.platform-btn {
  grid-template-columns: 76px minmax(0, 1fr);
}

.platform-image-wrap img {
  width: 70px;
  height: 64px;
  object-fit: contain;
}

.platform-page-shell {
  display: grid;
  gap: 22px;
}

.platform-page-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.platform-page-icon {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
}

.platform-page-icon img {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 168px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(20, 91, 215, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(25, 55, 95, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 91, 215, 0.28);
  box-shadow: 0 24px 55px rgba(25, 55, 95, 0.13);
}

.product-letter-icon {
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 20px;
  background: linear-gradient(135deg, #145bd7, #20b486);
  color: #fff;
  font-size: 58px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow: 0 16px 34px rgba(20, 91, 215, 0.22);
}

.product-choice-card.happ .product-letter-icon,
.platform-page-hero .product-letter-icon {
  background: linear-gradient(135deg, #222a38, #20b486);
}

.product-choice-content {
  display: grid;
  gap: 7px;
}

.product-choice-content strong {
  font-size: 28px;
  line-height: 1.05;
}

.product-choice-content small {
  color: #145bd7;
  font-weight: 800;
}

.product-choice-content em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.product-support-label {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(32, 180, 134, 0.12);
  color: #08785c;
  font-weight: 800;
  border: 1px solid rgba(32, 180, 134, 0.18);
}

.platform-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
}

.platform-pricing-card {
  display: grid;
  gap: 24px;
}

.platform-period-block {
  display: grid;
  gap: 14px;
}

.platform-period-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.platform-period-title h3 {
  margin-bottom: 4px;
}

.custom-tariff-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(39, 208, 198, 0.12)),
    rgba(255,255,255,0.68);
}

body[data-theme="dark"] .custom-tariff-card {
  background:
    linear-gradient(135deg, rgba(88, 182, 255, 0.1), rgba(42, 114, 255, 0.14)),
    rgba(255,255,255,0.04);
}

.custom-tariff-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.custom-tariff-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.custom-rate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.custom-rate-list span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(39, 208, 198, 0.28);
  background: rgba(39, 208, 198, 0.1);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

body[data-theme="dark"] .custom-rate-list span {
  border-color: rgba(88, 182, 255, 0.28);
  background: rgba(88, 182, 255, 0.1);
}

.custom-tariff-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.58);
}

body[data-theme="dark"] .custom-tariff-summary {
  background: rgba(255,255,255,0.04);
}

.custom-tariff-summary span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 3px;
}

.custom-tariff-summary strong {
  font-size: 28px;
  color: var(--text);
}

.custom-tariff-summary p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.custom-tariff-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.custom-buy-btn {
  min-width: 142px;
  min-height: 44px;
}

.payment-page-shell {
  padding-top: 28px;
}

.payment-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}

.payment-page-order-card,
.payment-page-methods-card,
.payment-page-details-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 18px 42px rgba(30, 64, 112, 0.1);
  padding: 22px;
}

body[data-theme="dark"] .payment-page-order-card,
body[data-theme="dark"] .payment-page-methods-card,
body[data-theme="dark"] .payment-page-details-card {
  background: rgba(255,255,255,0.05);
  box-shadow: none;
}

.payment-page-order-top,
.payment-page-product-row,
.payment-page-order-meta,
.payment-page-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.payment-page-product-badge,
.payment-page-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(22,119,255,0.1);
  color: var(--accent);
  font-weight: 800;
}

.payment-page-product-row {
  justify-content: flex-start;
  margin-top: 22px;
}

.payment-page-product-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #1677ff, #27d0c6);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.payment-page-product-row h1 {
  margin: 0 0 7px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.payment-page-product-price {
  color: var(--text);
  font-size: 30px;
  font-weight: 900;
}

.payment-page-order-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 18px;
}

.payment-page-order-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.06);
  color: var(--muted);
  font-weight: 800;
}

body[data-theme="dark"] .payment-page-order-meta span {
  background: rgba(255,255,255,0.08);
}

.payment-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.payment-method-btn {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.payment-method-btn.active {
  border-color: rgba(22,119,255,0.48);
  box-shadow: 0 0 0 3px rgba(22,119,255,0.12);
}

body[data-theme="dark"] .payment-method-btn {
  background: rgba(255,255,255,0.05);
}

.payment-method-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #1677ff, #27d0c6);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.payment-method-btn strong,
.payment-method-btn small {
  display: block;
}

.payment-method-btn small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.payment-page-details-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.payment-page-summary-lines {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.payment-page-transfer-box {
  margin: 16px 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(39,208,198,0.08);
}

.payment-page-receipt-form {
  display: grid;
  gap: 12px;
}

.payment-page-pay-btn {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .platform-btn {
    grid-template-columns: 66px minmax(0, 1fr);
  }
  .platform-page-hero,
  .platform-page-grid {
    grid-template-columns: 1fr;
  }
  .platform-page-icon {
    width: 112px;
    height: 112px;
  }
  .platform-page-icon img {
    width: 88px;
    height: 88px;
  }
  .platform-period-title,
  .custom-tariff-head,
  .custom-tariff-summary {
    display: grid;
  }
  .custom-tariff-controls {
    grid-template-columns: 1fr;
  }
  .custom-tariff-actions {
    justify-content: stretch;
  }
  .custom-tariff-actions p {
    text-align: left;
  }
  .custom-buy-btn {
    width: 100%;
  }
  .payment-page-grid,
  .payment-method-list {
    grid-template-columns: 1fr;
  }
  .payment-page-order-card,
  .payment-page-methods-card,
  .payment-page-details-card {
    border-radius: 20px;
    padding: 18px;
  }
  .payment-page-product-row,
  .payment-page-order-top {
    align-items: flex-start;
  }
}

/* Final v40 purchase screen overrides */
.payment-page-shell { padding-top: 18px; padding-bottom: 28px; }
.payment-page-grid { grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.95fr); }
.payment-page-order-card,
.payment-page-methods-card,
.payment-page-details-card {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(10, 23, 45, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(10, 23, 45, 0.08);
  padding: 18px;
}
body[data-theme="dark"] .payment-page-order-card,
body[data-theme="dark"] .payment-page-methods-card,
body[data-theme="dark"] .payment-page-details-card {
  background: rgba(255,255,255,0.98);
  color: #0b1a33;
  box-shadow: 0 18px 45px rgba(10, 23, 45, 0.22);
}
.payment-page-order-top { margin-bottom: 14px; }
.payment-page-product-badge,
.payment-page-status {
  gap: 8px;
  font-size: 13px;
  background: rgba(49, 116, 255, 0.10);
  color: #1445a8;
}
.payment-page-qty-box {
  min-width: 68px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(10, 23, 45, 0.12);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0c1e3b;
}
.payment-page-product-row { margin-top: 0; gap: 14px; }
.payment-page-product-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b1e42, #2e62c5 70%, #61aaf6);
  font-size: 16px;
}
.payment-page-product-row h1 { font-size: 32px; color: #0b1a33; }
.payment-page-product-price { font-size: 20px; color: #102345; }
.payment-page-order-meta { margin-top: 16px; gap: 10px; }
.payment-page-order-meta span {
  min-height: 34px;
  padding: 7px 12px;
  background: #f3f7ff;
  color: #1e3761;
  font-size: 14px;
}
.payment-page-section-head { margin-bottom: 12px; }
.payment-page-section-head .eyebrow { color: #2958b3; }
.payment-page-section-head h2,
.payment-page-details-card h3 { color: #0b1a33; }
.payment-method-list { grid-template-columns: 1fr; margin-top: 0; }
.payment-method-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(10, 23, 45, 0.10);
  background: #fff;
  color: #0b1a33;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.payment-method-row:hover { transform: translateY(-1px); border-color: rgba(41, 88, 179, 0.35); }
.payment-method-row.is-selected { border-color: #3174ff; box-shadow: 0 0 0 3px rgba(49,116,255,0.10); }
.payment-method-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.payment-method-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(10,23,45,0.24);
  flex: 0 0 auto;
  position: relative;
}
.payment-method-row.is-selected .payment-method-radio { border-color: #3174ff; }
.payment-method-row.is-selected .payment-method-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #3174ff;
}
.method-logo {
  min-width: 112px;
  height: 48px;
  padding: 0 12px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.method-logo-manual {
  min-width: 62px;
  background: linear-gradient(135deg, #0f172a, #475569);
  font-size: 24px;
}
.method-logo-mir {
  background: linear-gradient(135deg, #0b7a91 0%, #16a979 62%, #a2d53a 100%);
  letter-spacing: .04em;
}
.method-logo-yoomoney {
  justify-content: flex-start;
  gap: 7px;
  background: linear-gradient(135deg, #6d22ff, #9f5cff);
}
.method-logo-yoomoney span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #6d22ff;
  font-weight: 900;
}
.method-logo-yoomoney b,
.method-logo-sber b {
  font: inherit;
}
.method-logo-sber {
  gap: 6px;
  background: linear-gradient(135deg, #19a661, #71d26e);
}
.method-logo-sber span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
}
.method-logo-sbp {
  min-width: 64px;
  background: linear-gradient(135deg, #3174ff, #6db6ff);
  color: #fff;
  border: 0;
  letter-spacing: 0;
}
.payment-method-title {
  display: grid;
  gap: 3px;
  font-weight: 800;
  color: #102345;
}
.payment-method-title strong {
  font: inherit;
}
.payment-method-title small {
  color: #587096;
  font-size: 13px;
  font-weight: 700;
}
.payment-method-right {
  display: grid;
  gap: 3px;
  justify-items: end;
  color: #102345;
  white-space: nowrap;
}
.payment-method-right span {
  color: #587096;
  font-size: 12px;
  font-weight: 700;
}
.payment-method-right strong {
  font-size: 18px;
  font-weight: 900;
}
.payment-page-sidebar { position: sticky; top: 88px; }
.payment-page-points-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f4f8ff;
  color: #405c8d;
  font-size: 14px;
}
.payment-page-summary-lines {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(10, 23, 45, 0.08);
}
.payment-page-total-row {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 23, 45, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}
.payment-page-total-row span { color: #13274b; font-weight: 700; }
.payment-page-total-row strong { font-size: 32px; line-height: 1; color: #3174ff; }
.payment-page-pay-btn { margin-top: 16px; min-height: 52px; }
.payment-page-access-body { display: grid; gap: 10px; }

.proxy-page-shell {
  padding-top: 18px;
}
.proxy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}
.proxy-hero-copy,
.proxy-action-panel,
.proxy-metric-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(12, 22, 45, 0.86);
  box-shadow: 0 24px 70px rgba(6, 16, 32, 0.22);
}
.proxy-hero-copy {
  min-height: 320px;
  padding: 34px;
  display: grid;
  align-content: center;
  gap: 12px;
}
.proxy-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.96;
}
.proxy-hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #c7d7ee;
  font-size: 18px;
  line-height: 1.65;
}
.proxy-action-panel {
  padding: 26px;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 320px;
}
.proxy-big-action {
  width: 100%;
  min-height: 68px;
  border: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
}
.proxy-big-action.primary {
  background: linear-gradient(135deg, #2f7dff, #5bd6ff);
  color: #061125;
  box-shadow: 0 16px 34px rgba(49, 116, 255, 0.24);
}
.proxy-big-action.support {
  background: linear-gradient(135deg, #2f7dff, #5bd6ff);
  color: #061125;
  box-shadow: 0 16px 34px rgba(49, 116, 255, 0.24);
}
.proxy-support-form {
  display: grid;
  gap: 10px;
}
.proxy-support-form .field {
  margin-bottom: 0;
}
.proxy-support-form input {
  min-height: 54px;
  font-size: 20px;
  font-weight: 900;
}
.proxy-support-net {
  color: #c7d7ee;
  font-size: 14px;
  line-height: 1.45;
}
.proxy-support-net strong {
  color: #ffffff;
}
.proxy-endpoint {
  overflow-wrap: anywhere;
  color: #f8fbff;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 900;
}
.proxy-port {
  color: #8fb7ff;
  font-size: 18px;
  font-weight: 800;
}
.proxy-dashboard-section,
.proxy-support-section {
  margin-top: 18px;
}
.proxy-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.proxy-metric-card {
  padding: 22px;
  display: grid;
  gap: 8px;
  min-height: 150px;
}
.proxy-metric-card span,
.proxy-metric-card small {
  color: #9fb3d4;
  font-weight: 800;
}
.proxy-metric-card strong {
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}
.proxy-support-card p {
  color: #c7d7ee;
  line-height: 1.7;
}
.proxy-how-card .feature-list {
  color: #d7e3f5;
}

body[data-theme="light"] .proxy-hero-copy,
body[data-theme="light"] .proxy-action-panel,
body[data-theme="light"] .proxy-metric-card {
  border-color: rgba(29, 65, 128, 0.1);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(48, 88, 140, 0.12);
}
body[data-theme="light"] .proxy-hero-copy p,
body[data-theme="light"] .proxy-support-card p,
body[data-theme="light"] .proxy-how-card .feature-list {
  color: #405c8d;
}
body[data-theme="light"] .proxy-endpoint,
body[data-theme="light"] .proxy-metric-card strong {
  color: #102345;
}
body[data-theme="light"] .proxy-metric-card span,
body[data-theme="light"] .proxy-metric-card small {
  color: #587096;
}
body[data-theme="light"] .proxy-port {
  color: #3174ff;
}
body[data-theme="light"] .proxy-big-action.support {
  background: #102345;
  color: #ffffff;
}
body[data-theme="light"] .proxy-support-net {
  color: #405c8d;
}
body[data-theme="light"] .proxy-support-net strong {
  color: #102345;
}

@media (max-width: 980px) {
  .proxy-hero {
    grid-template-columns: 1fr;
  }
  .proxy-hero-copy,
  .proxy-action-panel {
    min-height: auto;
  }
}
@media (max-width: 640px) {
  .proxy-page-shell {
    padding-top: 10px;
  }
  .proxy-hero-copy,
  .proxy-action-panel,
  .proxy-metric-card {
    border-radius: 18px;
    padding: 18px;
  }
  .proxy-hero-copy h1 {
    font-size: 36px;
  }
  .proxy-hero-copy p {
    font-size: 15px;
  }
  .proxy-endpoint,
  .proxy-metric-card strong {
    font-size: 28px;
  }
}
@media (max-width: 980px) {
  .payment-page-grid { grid-template-columns: 1fr; }
  .payment-page-sidebar { position: static; }
}
@media (max-width: 640px) {
  .payment-page-shell { padding-top: 10px; padding-left: 0; padding-right: 0; }
  .payment-page-order-card,
  .payment-page-methods-card,
  .payment-page-details-card { border-radius: 18px; padding: 14px; }
  .payment-page-product-row h1 { font-size: 24px; }
  .payment-page-total-row { align-items: flex-start; flex-direction: column; }
  .payment-page-total-row strong { font-size: 28px; }
  .payment-method-row { padding: 14px; }
  .payment-method-icon { min-width: 54px; }
}

/* v54 premium clarity refresh */
:root {
  --premium-ink: #0d1b2f;
  --premium-blue: #155eef;
  --premium-teal: #0f9f8f;
  --premium-rose: #b5456b;
  --premium-gold: #a9761b;
  --premium-line: rgba(13, 27, 47, 0.10);
}

body {
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.10) 0%, rgba(15, 159, 143, 0.05) 42%, rgba(181, 69, 107, 0.06) 100%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 48%, #f7f4f0 100%);
}

body[data-theme="dark"] {
  background:
    linear-gradient(135deg, rgba(31, 74, 145, 0.28) 0%, rgba(24, 119, 111, 0.14) 45%, rgba(122, 52, 82, 0.16) 100%),
    linear-gradient(180deg, #07111f 0%, #0d1828 52%, #111827 100%);
}

.site-header {
  box-shadow: 0 16px 45px rgba(15, 35, 66, 0.08);
}

.brand-logo,
.platform-icon,
.payment-page-product-icon {
  box-shadow: 0 14px 34px rgba(21, 94, 239, 0.18);
}

.hero-card,
.stats-card,
.platform-card,
.panel-card,
.tariff-card,
.admin-user-card,
.inbox-item,
.trial-card,
.panel-subcard,
.news-card,
.payment-summary-card,
.request-card,
.proxy-hero-copy,
.proxy-action-panel,
.proxy-metric-card {
  border-color: var(--premium-line);
  box-shadow: 0 18px 50px rgba(15, 35, 66, 0.10);
}

body[data-theme="light"] .hero-card,
body[data-theme="light"] .stats-card,
body[data-theme="light"] .platform-card,
body[data-theme="light"] .panel-card,
body[data-theme="light"] .tariff-card,
body[data-theme="light"] .trial-card,
body[data-theme="light"] .panel-subcard,
body[data-theme="light"] .news-card,
body[data-theme="light"] .payment-summary-card,
body[data-theme="light"] .request-card,
body[data-theme="light"] .proxy-hero-copy,
body[data-theme="light"] .proxy-action-panel,
body[data-theme="light"] .proxy-metric-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,252,255,0.90)),
    #fff;
}

.hero-card h1,
.page-intro h1,
.platform-page-hero h1,
.proxy-hero-copy h1 {
  color: var(--premium-ink);
  letter-spacing: 0;
}

body[data-theme="dark"] .hero-card h1,
body[data-theme="dark"] .page-intro h1,
body[data-theme="dark"] .platform-page-hero h1,
body[data-theme="dark"] .proxy-hero-copy h1 {
  color: #f8fbff;
}

.eyebrow,
.status-badge,
.price-badge,
.kind-pill {
  border-color: rgba(21, 94, 239, 0.14);
  background: rgba(21, 94, 239, 0.08);
  color: #174ea6;
}

.primary-btn,
.proxy-big-action.primary,
.proxy-big-action.support,
body[data-theme="light"] .primary-btn,
body[data-theme="light"] .nav-link.active,
body[data-theme="light"] .billing-btn.active {
  background: linear-gradient(135deg, var(--premium-blue), var(--premium-teal));
  color: #fff;
  box-shadow: 0 14px 30px rgba(21, 94, 239, 0.20);
}

.primary-btn:disabled,
.js-trial-btn:disabled,
button:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
  box-shadow: none;
}

.nav-link:hover,
.chip:hover,
.outline-btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.mini-btn:hover,
.danger-btn:hover,
.text-btn:hover,
.icon-btn:hover,
.proxy-big-action:hover {
  transform: translateY(-2px);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(21, 94, 239, 0.42);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.10);
  outline: none;
}

.notice,
.auth-message,
.dev-code {
  border-color: rgba(15, 159, 143, 0.18);
}

.data-line,
.stat-line {
  border-color: rgba(13, 27, 47, 0.08);
}

.tariff-card,
.platform-tariff-card {
  position: relative;
  overflow: hidden;
}

.tariff-card::before,
.platform-tariff-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--premium-blue), var(--premium-teal), var(--premium-gold));
}

.proxy-metric-card strong,
.stats-card strong,
.data-line strong {
  color: var(--premium-ink);
}

body[data-theme="dark"] .proxy-metric-card strong,
body[data-theme="dark"] .stats-card strong,
body[data-theme="dark"] .data-line strong {
  color: #f8fbff;
}

/* v55 download cards readability */
.platform-download-card .platform-card-head p,
.installer-group .section-text,
.installer-block > p {
  color: #344a68;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 650;
}

.download-line {
  align-items: center;
  padding: 14px 0;
  border-bottom-color: rgba(13, 27, 47, 0.09);
}

.download-meta {
  gap: 7px;
  min-width: 0;
}

.download-meta strong {
  color: #0d1b2f;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
}

.download-meta span,
.download-file-status,
.download-selected-file,
.download-upload-progress-text {
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(21, 94, 239, 0.12);
  background: rgba(21, 94, 239, 0.07);
  color: #1e4f91;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
  word-break: break-word;
}

.download-meta span:empty {
  display: none;
}

body[data-theme="dark"] .platform-download-card .platform-card-head p,
body[data-theme="dark"] .installer-group .section-text,
body[data-theme="dark"] .installer-block > p {
  color: #d7e4f7;
}

body[data-theme="dark"] .download-meta strong {
  color: #f8fbff;
}

body[data-theme="dark"] .download-meta span,
body[data-theme="dark"] .download-file-status,
body[data-theme="dark"] .download-selected-file,
body[data-theme="dark"] .download-upload-progress-text {
  border-color: rgba(139, 190, 255, 0.22);
  background: rgba(139, 190, 255, 0.10);
  color: #dbeafe;
}

.platform-download-card > .card-top h3,
.platform-download-card .card-top h3,
.installer-block.platform-download-card h3 {
  color: #0b172a !important;
  font-weight: 900 !important;
}

.platform-download-card .platform-card-head p,
.platform-card .platform-card-head p,
.platform-window-head p,
.platform-download-card > .card-top p,
.platform-download-card .card-top p,
.installer-block.platform-download-card p {
  color: #1e3553 !important;
  font-weight: 750 !important;
  opacity: 1 !important;
}

body[data-theme="dark"] .platform-download-card .platform-card-head p,
body[data-theme="dark"] .platform-card .platform-card-head p,
body[data-theme="dark"] .platform-window-head p,
body[data-theme="dark"] .platform-download-card > .card-top p,
body[data-theme="dark"] .platform-download-card .card-top p,
body[data-theme="dark"] .installer-block.platform-download-card p {
  color: #dce8f8 !important;
}

body[data-theme="dark"] .platform-download-card > .card-top h3,
body[data-theme="dark"] .platform-download-card .card-top h3,
body[data-theme="dark"] .installer-block.platform-download-card h3 {
  color: #f8fbff !important;
}

.platform-download-card .download-meta strong,
.installer-block.platform-download-card .download-meta strong {
  color: #071426 !important;
  font-weight: 900 !important;
}

.platform-download-card .download-meta span,
.installer-block.platform-download-card .download-meta span {
  color: #0f4c91 !important;
  background: rgba(21, 94, 239, 0.10) !important;
  border-color: rgba(21, 94, 239, 0.20) !important;
  font-weight: 850 !important;
}

body[data-theme="dark"] .platform-download-card .download-meta strong,
body[data-theme="dark"] .installer-block.platform-download-card .download-meta strong {
  color: #f8fbff !important;
}

.feature-list li.tariff-year-note {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 159, 143, 0.22);
  background: rgba(15, 159, 143, 0.10);
  color: #0b766a !important;
  font-weight: 850;
  line-height: 1.35;
}

body[data-theme="dark"] .feature-list li.tariff-year-note {
  color: #b9fff3 !important;
  background: rgba(51, 211, 181, 0.12);
  border-color: rgba(51, 211, 181, 0.24);
}

.user-chip-id,
body[data-theme="light"] .user-chip-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.10);
  border: 1px solid rgba(21, 94, 239, 0.18);
  color: #155eef;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}

.user-chip-id-wrap {
  gap: 6px;
}

body[data-theme="dark"] .user-chip-id {
  color: #dbeafe;
  background: rgba(139, 190, 255, 0.12);
  border-color: rgba(139, 190, 255, 0.22);
}

.news-content-flow {
  display: grid;
  gap: 14px;
}

.news-content-flow p {
  margin: 0;
}

.news-inline-image {
  width: 100%;
  margin: 2px 0;
  border-radius: 18px;
}

/* r58 compact account chip role */
.user-chip-role,
body[data-theme="light"] .user-chip-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(15, 159, 143, 0.10);
  color: #0b766a;
  border: 1px solid rgba(15, 159, 143, 0.18);
  box-shadow: none;
}

.user-chip-role.is-admin,
body[data-theme="light"] .user-chip-role.is-admin {
  color: #155eef;
  background: rgba(21, 94, 239, 0.10);
  border-color: rgba(21, 94, 239, 0.18);
}

body[data-theme="dark"] .user-chip-role {
  color: #b9fff3;
  background: rgba(51, 211, 181, 0.12);
  border-color: rgba(51, 211, 181, 0.22);
}

body[data-theme="dark"] .user-chip-role.is-admin {
  color: #dbeafe;
  background: rgba(139, 190, 255, 0.12);
  border-color: rgba(139, 190, 255, 0.22);
}

/* r59 readable admin navigation */
.admin-panel-layout {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.admin-sidebar-card {
  padding: 14px;
}

.admin-side-nav {
  gap: 8px;
}

.admin-side-link,
body[data-theme="light"] .admin-side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17, 43, 78, 0.10);
  background: rgba(255, 255, 255, 0.78);
  color: #102345 !important;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(30, 64, 112, 0.07);
}

.admin-side-link:hover,
body[data-theme="light"] .admin-side-link:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 94, 239, 0.28);
  background: #ffffff;
  color: #155eef !important;
}

.admin-side-link.active,
body[data-theme="light"] .admin-side-link.active {
  color: #ffffff !important;
  border-color: transparent;
  background: linear-gradient(135deg, #155eef, #16b8a6);
  box-shadow: 0 14px 30px rgba(21, 94, 239, 0.22);
}

.admin-side-link .mini-count-badge,
body[data-theme="light"] .admin-side-link .mini-count-badge {
  flex: 0 0 auto;
  margin-left: 0;
  color: #155eef;
  background: rgba(21, 94, 239, 0.10);
  border-color: rgba(21, 94, 239, 0.20);
}

.admin-side-link.active .mini-count-badge,
body[data-theme="light"] .admin-side-link.active .mini-count-badge {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.admin-quick-counters {
  gap: 8px;
  margin-top: 12px;
}

.admin-counter-chip,
body[data-theme="light"] .admin-counter-chip {
  color: #344766;
  border-color: rgba(17, 43, 78, 0.10);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.admin-counter-chip strong,
body[data-theme="light"] .admin-counter-chip strong {
  color: #0b1a33;
}

body[data-theme="dark"] .admin-side-link {
  color: #edf6ff !important;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(139, 190, 255, 0.14);
  box-shadow: none;
}

body[data-theme="dark"] .admin-side-link:hover {
  color: #ffffff !important;
  background: rgba(139, 190, 255, 0.12);
  border-color: rgba(139, 190, 255, 0.28);
}

body[data-theme="dark"] .admin-side-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(88, 182, 255, 0.90), rgba(51, 211, 181, 0.78));
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .admin-counter-chip {
  color: #cfe0f5;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(139, 190, 255, 0.14);
}

body[data-theme="dark"] .admin-counter-chip strong {
  color: #ffffff;
}

/* r60 SEO hub and knowledge base */
.seo-home-section,
.seo-hero-section,
.seo-content-section,
.seo-faq-section {
  margin-top: 22px;
}

.seo-intro-card,
.seo-text-card,
.seo-article-card {
  display: grid;
  gap: 14px;
}

.seo-intro-card h2,
.seo-text-card h2,
.seo-side-card h2,
.seo-article-card h1,
.seo-article-card h2 {
  color: var(--text);
}

.seo-intro-card p,
.seo-text-card p,
.seo-hero-copy p,
.seo-article-card p,
.seo-faq-item p {
  color: #1e3553;
  font-weight: 650;
  line-height: 1.75;
}

.seo-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 24px;
  align-items: center;
}

.seo-hero-copy {
  display: grid;
  gap: 14px;
}

.seo-hero-copy h1 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  max-width: 980px;
}

.seo-visual-card {
  min-height: 300px;
  border-radius: 22px;
  border: 1px solid rgba(21, 94, 239, 0.14);
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.10), rgba(22, 184, 166, 0.12)),
    rgba(255, 255, 255, 0.70);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.seo-visual-card img {
  width: min(150px, 55%);
  aspect-ratio: 1;
  object-fit: contain;
}

.seo-visual-card strong {
  font-size: 24px;
  color: #0b1a33;
}

.seo-visual-card span {
  color: #315174;
  font-weight: 800;
}

.seo-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-keyword-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #155eef;
  background: rgba(21, 94, 239, 0.09);
  border: 1px solid rgba(21, 94, 239, 0.16);
  font-size: 13px;
  font-weight: 850;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-link-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(17, 43, 78, 0.10);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(30, 64, 112, 0.07);
}

.seo-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 94, 239, 0.26);
}

.seo-link-card strong {
  color: #0b1a33;
  font-size: 17px;
}

.seo-link-card span {
  color: #315174;
  font-weight: 700;
  line-height: 1.5;
}

.seo-content-grid {
  align-items: start;
}

.seo-side-card {
  position: sticky;
  top: 92px;
}

.seo-side-link {
  text-decoration: none;
}

.seo-faq-list {
  display: grid;
  gap: 10px;
}

.seo-faq-item {
  border: 1px solid rgba(17, 43, 78, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0;
  overflow: hidden;
}

.seo-faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  color: #0b1a33;
  font-weight: 900;
}

.seo-faq-item p {
  margin: 0;
  padding: 0 18px 18px;
}

.seo-article {
  max-width: 960px;
}

.seo-article-lead {
  font-size: 18px;
}

.seo-step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #1e3553;
  font-weight: 750;
  line-height: 1.65;
}

.seo-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

body[data-theme="dark"] .seo-intro-card p,
body[data-theme="dark"] .seo-text-card p,
body[data-theme="dark"] .seo-hero-copy p,
body[data-theme="dark"] .seo-article-card p,
body[data-theme="dark"] .seo-faq-item p,
body[data-theme="dark"] .seo-step-list {
  color: #dce8f8;
}

body[data-theme="dark"] .seo-visual-card,
body[data-theme="dark"] .seo-link-card,
body[data-theme="dark"] .seo-faq-item {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(139, 190, 255, 0.14);
  box-shadow: none;
}

body[data-theme="dark"] .seo-visual-card strong,
body[data-theme="dark"] .seo-link-card strong,
body[data-theme="dark"] .seo-faq-item summary {
  color: #f8fbff;
}

body[data-theme="dark"] .seo-visual-card span,
body[data-theme="dark"] .seo-link-card span {
  color: #cfe0f5;
}

@media (max-width: 980px) {
  .seo-hero-card,
  .seo-link-grid {
    grid-template-columns: 1fr;
  }
  .seo-side-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .download-meta span,
  .download-file-status,
  .download-selected-file,
  .download-upload-progress-text {
    width: 100%;
    border-radius: 12px;
  }
}

/* r62 cross-browser mobile stability */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

input,
textarea,
select {
  min-width: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container,
.page-shell,
.site-header,
.site-footer,
.hero-section,
.page-grid,
.platform-grid,
.platform-page-grid,
.payment-page-grid,
.proxy-metrics-grid,
.seo-link-grid,
.admin-panel-layout,
.combined-cabinet-grid,
.combined-cabinet-top {
  min-width: 0;
  max-width: 100%;
}

.hero-card,
.stats-card,
.panel-card,
.panel-subcard,
.platform-card,
.platform-btn,
.tariff-card,
.platform-tariff-card,
.installer-block,
.news-card,
.request-card,
.payment-page-order-card,
.payment-page-methods-card,
.payment-page-details-card,
.payment-summary-card,
.proxy-hero-copy,
.proxy-action-panel,
.proxy-metric-card,
.seo-link-card,
.seo-hero-card,
.seo-visual-card,
.auth-card,
.mobile-nav-panel {
  min-width: 0;
  max-width: 100%;
}

.brand,
.brand-text-group,
.nav-row,
.main-nav,
.nav-actions,
.button-row,
.card-top,
.platform-card-head,
.platform-page-hero,
.payment-page-product-row,
.payment-method-row,
.payment-method-left,
.payment-method-title,
.data-line,
.download-line,
.download-meta,
.user-chip,
.user-chip-id-wrap {
  min-width: 0;
}

.brand-text-group strong,
.brand-text-group span,
.nav-link,
.platform-btn strong,
.platform-btn small,
.payment-method-title strong,
.payment-method-title small,
.data-line strong,
.data-line span,
.download-line strong,
.download-meta strong,
.download-meta span,
.proxy-endpoint,
.code-wrap,
.pretty-id-pill,
.user-chip-id,
.user-chip-name,
.seo-link-card strong,
.seo-link-card span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@supports (height: 100dvh) {
  .auth-overlay,
  .mobile-nav-overlay {
    min-height: 100dvh;
  }

  .mobile-nav-panel {
    max-height: 100dvh;
  }
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 8px;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 14px;
  }

  .nav-actions {
    gap: 8px;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }

  .page-shell {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-section,
  .page-grid.two,
  .page-grid,
  .platform-grid,
  .admin-panel-layout,
  .combined-cabinet-grid,
  .combined-cabinet-top {
    grid-template-columns: 1fr !important;
  }

  .mobile-nav-panel {
    width: min(420px, 100vw);
    max-width: 100vw;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav,
  .nav-actions {
    min-width: 0;
  }

  .nav-actions > *,
  .main-nav .nav-link {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-width: 0;
  }

  .nav-row {
    min-height: 64px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .brand-text-group {
    max-width: 100%;
  }

  .brand-text-group strong,
  .brand-text-group span {
    display: block;
    max-width: 100%;
  }

  .hero-card,
  .stats-card,
  .panel-card,
  .panel-subcard,
  .platform-card,
  .tariff-card,
  .platform-tariff-card,
  .installer-block,
  .news-card,
  .request-card,
  .proxy-hero-copy,
  .proxy-action-panel,
  .proxy-metric-card,
  .seo-hero-card,
  .seo-link-card {
    border-radius: 18px;
    padding: 16px;
  }

  .hero-logo-row,
  .platform-page-hero,
  .payment-page-product-row,
  .card-top,
  .platform-card-head,
  .payment-page-order-top,
  .payment-method-row,
  .download-line,
  .data-line {
    align-items: flex-start;
  }

  .hero-logo-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .hero-logo {
    width: 58px;
    height: 58px;
  }

  .hero-card h1,
  .platform-page-hero h1,
  .proxy-hero-copy h1,
  .seo-hero-copy h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero-text,
  .proxy-hero-copy p,
  .seo-hero-copy p,
  .platform-page-hero p {
    font-size: 15px;
    line-height: 1.6;
  }

  .platform-btn {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 76px;
    padding: 12px;
    gap: 12px;
    border-radius: 16px;
  }

  .platform-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .platform-btn strong {
    font-size: 16px;
  }

  .button-row {
    gap: 8px;
  }

  .button-row > a,
  .button-row > button,
  .primary-btn,
  .ghost-btn,
  .outline-btn,
  .mini-btn,
  .danger-btn {
    min-height: 44px;
  }

  .payment-method-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .payment-method-right {
    width: 100%;
    align-items: flex-start;
  }

  .payment-page-product-icon,
  .payment-method-icon {
    flex: 0 0 auto;
  }

  .auth-overlay {
    align-items: flex-start;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-card {
    width: min(100%, 440px);
    max-height: none;
    border-radius: 20px;
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100%, calc(100% - 16px));
  }

  .page-shell {
    padding-top: 12px;
    padding-bottom: 32px;
  }

  .brand-text-group strong {
    font-size: 15px;
    line-height: 1.15;
  }

  .brand-text-group span {
    font-size: 11px;
    line-height: 1.2;
  }

  .hero-card h1,
  .platform-page-hero h1,
  .proxy-hero-copy h1,
  .seo-hero-copy h1 {
    font-size: 27px;
  }

  .section-head h2,
  .platform-card-head h2,
  .seo-intro-card h2,
  .seo-text-card h2,
  .payment-page-section-head h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .hero-card,
  .stats-card,
  .panel-card,
  .panel-subcard,
  .platform-card,
  .tariff-card,
  .platform-tariff-card,
  .installer-block,
  .news-card,
  .request-card,
  .proxy-hero-copy,
  .proxy-action-panel,
  .proxy-metric-card,
  .seo-hero-card,
  .seo-link-card {
    padding: 14px;
    border-radius: 16px;
  }

  .platform-grid,
  .seo-link-grid,
  .proxy-metrics-grid,
  .admin-tariff-grid,
  .admin-downloads-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row > a,
  .button-row > button,
  .primary-btn,
  .ghost-btn,
  .outline-btn,
  .danger-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .data-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .download-line,
  .download-meta,
  .payment-page-total-row,
  .proxy-support-net {
    flex-direction: column;
    align-items: flex-start;
  }

  .proxy-big-action,
  .payment-page-pay-btn {
    width: 100%;
  }

  .user-chip {
    align-items: flex-start;
    width: 100%;
  }

  .user-chip-id-wrap {
    width: 100%;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100%, calc(100% - 12px));
  }

  .hero-card h1,
  .platform-page-hero h1,
  .proxy-hero-copy h1,
  .seo-hero-copy h1 {
    font-size: 24px;
  }

  .hero-logo-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .hero-logo,
  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .platform-btn {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .platform-icon {
    width: 46px;
    height: 46px;
  }

  .auth-card {
    padding: 14px;
    border-radius: 16px;
  }
}

/* r63 hardening for narrow and inconsistent mobile browser layouts */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.container,
.page-shell,
.hero-section,
.hero-side-stack,
.hero-card,
.stats-card,
.platform-card,
.panel-card,
.panel-subcard,
.proxy-hero,
.proxy-hero-copy,
.proxy-action-panel,
.seo-hero-section,
.seo-hero-copy,
.seo-hero-card,
.payment-page-grid,
.platform-page-grid,
.admin-panel-layout,
.combined-cabinet-grid,
.combined-cabinet-top {
  min-width: 0;
  max-width: 100%;
}

.hero-section > *,
.hero-side-stack > *,
.hero-card > *,
.stats-card > *,
.platform-card > *,
.panel-card > *,
.panel-subcard > *,
.proxy-hero > *,
.proxy-hero-copy > *,
.proxy-action-panel > *,
.seo-hero-section > *,
.seo-hero-card > *,
.payment-page-grid > *,
.platform-page-grid > *,
.admin-panel-layout > *,
.combined-cabinet-grid > *,
.combined-cabinet-top > * {
  min-width: 0;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
li,
label,
small,
strong,
span,
a,
button {
  overflow-wrap: break-word;
}

.payment-method-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
}

.payment-method-left {
  display: grid;
  grid-template-columns: 18px max-content minmax(0, 1fr);
  align-items: center;
  min-width: 0;
}

.payment-method-title strong,
.payment-method-title small,
.payment-method-right span,
.payment-method-right strong,
.method-logo {
  overflow-wrap: normal;
  word-break: normal;
}

.method-logo {
  white-space: nowrap;
}

.payment-method-right {
  min-width: max-content;
}

.hero-logo-row {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.hero-logo-row > * {
  min-width: 0;
  max-width: 100%;
}

.hero-logo-row > :not(.hero-logo) {
  flex: 1 1 220px;
}

.button-row,
.nav-actions,
.main-nav,
.platform-card-head,
.payment-method-row,
.download-line,
.data-line {
  max-width: 100%;
}

.button-row > *,
.primary-btn,
.ghost-btn,
.outline-btn,
.mini-btn,
.danger-btn,
.text-btn,
.proxy-big-action,
.platform-btn {
  min-width: 0;
  max-width: 100%;
}

.primary-btn,
.ghost-btn,
.outline-btn,
.mini-btn,
.danger-btn,
.proxy-big-action,
.platform-btn {
  white-space: normal;
}

@media (max-width: 980px) {
  .hero-section,
  .proxy-hero,
  .seo-hero-section,
  .payment-page-grid,
  .platform-page-grid,
  .page-grid.two,
  .page-grid.three,
  .page-grid.four {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .hero-logo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .hero-logo-row > :not(.hero-logo) {
    width: 100%;
  }

  .hero-card h1,
  .platform-page-hero h1,
  .proxy-hero-copy h1,
  .seo-hero-copy h1 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-text,
  .section-text,
  .platform-page-hero p,
  .proxy-hero-copy p,
  .seo-hero-copy p,
  .platform-card-head p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .button-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .button-row > a,
  .button-row > button {
    width: 100%;
    justify-content: center;
  }

  .payment-method-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    padding: 12px;
    align-items: center;
  }

  .payment-method-left {
    grid-template-columns: 16px 58px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .payment-method-radio {
    width: 16px;
    height: 16px;
  }

  .method-logo {
    width: 58px;
    min-width: 0;
    height: 34px;
    padding: 0 7px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1;
  }

  .method-logo-manual,
  .method-logo-sbp {
    width: 48px;
  }

  .method-logo-mir {
    font-size: 13px;
    letter-spacing: 0;
  }

  .method-logo-yoomoney,
  .method-logo-sber {
    width: 64px;
    gap: 4px;
    font-size: 11px;
  }

  .method-logo-yoomoney span,
  .method-logo-sber span {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .payment-method-title {
    min-width: 0;
    gap: 1px;
  }

  .payment-method-title strong {
    font-size: 14px;
    line-height: 1.15;
  }

  .payment-method-title small {
    font-size: 11px;
    line-height: 1.2;
  }

  .payment-method-right {
    width: auto;
    min-width: 54px;
    justify-items: end;
    white-space: nowrap;
  }

  .payment-method-right span {
    font-size: 11px;
  }

  .payment-method-right strong {
    font-size: 16px;
  }

  .product-choice-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-letter-icon {
    width: 74px;
    height: 74px;
    font-size: 46px;
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 16px);
  }

  .hero-card,
  .stats-card,
  .platform-card,
  .panel-card,
  .panel-subcard,
  .proxy-hero-copy,
  .proxy-action-panel,
  .proxy-metric-card,
  .seo-hero-card,
  .seo-link-card {
    padding: 14px;
  }
}

@media (max-width: 340px) {
  .container {
    width: calc(100% - 10px);
  }

  .hero-card,
  .stats-card,
  .platform-card,
  .panel-card,
  .panel-subcard,
  .proxy-hero-copy,
  .proxy-action-panel,
  .proxy-metric-card,
  .seo-hero-card,
  .seo-link-card {
    padding: 12px;
  }
}

/* premium blue SaaS refresh */
:root {
  --bg: #f5fbff;
  --bg-2: #f0f9ff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-2: rgba(255, 255, 255, 0.76);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0ea5e9;
  --accent-2: #38bdf8;
  --danger: #dc2626;
  --warning: #b45309;
  --border: rgba(14, 165, 233, 0.12);
  --shadow: 0 20px 55px rgba(14, 116, 144, 0.11);
  --radius: 24px;
  --premium-blue: #0ea5e9;
  --premium-teal: #38bdf8;
  --premium-ink: #0f172a;
  --premium-line: rgba(14, 165, 233, 0.12);
}

html { scroll-behavior: smooth; }

body,
body[data-theme="dark"],
body[data-theme="light"] {
  --bg: #f5fbff;
  --bg-2: #f0f9ff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-2: rgba(255, 255, 255, 0.76);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0ea5e9;
  --accent-2: #38bdf8;
  --danger: #dc2626;
  --warning: #b45309;
  --border: rgba(14, 165, 233, 0.12);
  --shadow: 0 20px 55px rgba(14, 116, 144, 0.11);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 6%, rgba(56, 189, 248, 0.18), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.13), transparent 28%),
    linear-gradient(180deg, #f5fbff 0%, #eff8ff 45%, #ffffff 100%);
}

.container { width: min(1180px, calc(100% - 40px)); }
.page-shell { padding: 32px 0 72px; }

.site-header,
body[data-theme="dark"] .site-header {
  min-height: 72px;
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.nav-row { min-height: 72px; gap: 16px; }
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.16);
}
.brand-text-group strong { color: #0f172a; font-size: 18px; letter-spacing: 0; }
.brand-text-group span { max-width: 260px; color: #64748b; font-size: 13px; line-height: 1.35; }
.main-nav { gap: 6px; }
.nav-link,
.chip {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}
.nav-link:hover,
.chip:hover {
  color: #0284c7;
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.12);
}
.nav-link.active,
body[data-theme="light"] .nav-link.active {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.11);
  border-color: rgba(14, 165, 233, 0.18);
  box-shadow: none;
}

@media (min-width: 981px) {
  .site-header .container {
    width: min(1320px, calc(100% - 32px));
  }

  .mobile-nav-panel {
    min-width: 0;
  }

  .main-nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }

  .nav-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 8px;
  }

  #guestChip,
  .inbox-link {
    display: none !important;
  }

  .nav-link {
    white-space: nowrap;
    padding: 8px 9px;
    font-size: 13px;
  }

  .nav-actions .outline-btn,
  .nav-actions .primary-btn {
    padding: 12px 16px;
  }
}

.outline-btn,
.ghost-btn,
.primary-btn,
.mini-btn,
.danger-btn,
.text-btn,
.icon-btn,
.proxy-big-action {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.outline-btn,
.ghost-btn,
.mini-btn {
  border: 1px solid rgba(14, 165, 233, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #0369a1;
  box-shadow: 0 8px 24px rgba(14, 116, 144, 0.06);
}
.primary-btn,
body[data-theme="light"] .primary-btn,
body[data-theme="light"] .billing-btn.active,
.proxy-big-action.primary,
.proxy-big-action.support {
  border-color: transparent;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.24);
}
.primary-btn:hover,
.outline-btn:hover,
.ghost-btn:hover,
.mini-btn:hover,
.proxy-big-action:hover,
.premium-product-card:hover,
.premium-mini-card:hover,
.seo-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(14, 116, 144, 0.15);
}
.text-btn { color: #0284c7; }
.danger-btn {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.18);
}

.hero-card,
.stats-card,
.platform-card,
.panel-card,
.tariff-card,
.admin-user-card,
.inbox-item,
.trial-card,
.panel-subcard,
.download-admin-card,
.news-card,
.payment-summary-card,
.request-card,
.proxy-hero-copy,
.proxy-action-panel,
.proxy-metric-card,
.seo-link-card,
.seo-hero-card,
.seo-visual-card,
.auth-card,
.payment-card,
.payment-choice-card,
.installer-block {
  border: 1px solid rgba(14, 165, 233, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)), #ffffff;
  box-shadow: 0 18px 50px rgba(14, 116, 144, 0.10);
  color: #0f172a;
}
.panel-card,
.platform-card,
.tariff-card,
.trial-card,
.panel-subcard,
.news-card,
.request-card,
.installer-block { border-radius: 24px; }

.eyebrow,
.status-badge,
.price-badge,
.kind-pill,
.payment-page-product-badge,
.payment-page-status {
  border: 1px solid rgba(14, 165, 233, 0.14);
  background: rgba(14, 165, 233, 0.09);
  color: #0284c7;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
.hero-card h1,
.page-intro h1,
.platform-page-hero h1,
.proxy-hero-copy h1,
.seo-hero-copy h1 { color: #0f172a; letter-spacing: 0; }

p,
.hero-text,
.section-text,
.hero-subtitle,
.platform-page-hero p,
.proxy-hero-copy p,
.seo-hero-copy p,
.seo-intro-card p,
.seo-text-card p,
.seo-article-card p,
.seo-faq-item p { color: #64748b; }

.field span { color: #475569; font-weight: 700; }
.field input,
.field textarea,
.field select,
input,
textarea,
select {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
}
.field input:focus,
.field textarea:focus,
.field select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}
.notice,
.auth-message,
.dev-code {
  border-color: rgba(14, 165, 233, 0.14);
  background: rgba(240, 249, 255, 0.9);
  color: #475569;
}
.notice-success,
.auth-message.success {
  border-color: rgba(14, 165, 233, 0.2);
  background: rgba(14, 165, 233, 0.08);
  color: #0369a1;
}
.notice-error,
.auth-message.error {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
}

.premium-section { margin-top: 88px; }
.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}
.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}
.section-heading p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.premium-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.82fr);
  gap: 32px;
  align-items: center;
  min-height: min(680px, calc(100vh - 130px));
  padding-top: 36px;
  padding-bottom: 46px;
}
.premium-hero::before {
  content: "";
  position: absolute;
  inset: 10% auto auto -8%;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  filter: blur(48px);
  pointer-events: none;
}
.premium-hero-copy { position: relative; z-index: 1; }
.premium-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 5.8vw, 64px);
  line-height: 1.02;
}
.premium-hero-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.75;
}
.premium-hero-actions { margin-top: 30px; }

.premium-dashboard-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.88)), #ffffff;
  box-shadow: 0 28px 70px rgba(14, 116, 144, 0.15);
}
.premium-dashboard-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  filter: blur(20px);
}
.dashboard-status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #0369a1;
  font-weight: 800;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}
.dashboard-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
  height: 118px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f0f9ff, #ffffff);
  border: 1px solid rgba(14, 165, 233, 0.12);
}
.dashboard-meter span {
  display: block;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
}
.dashboard-meter span:nth-child(1) { height: 46%; }
.dashboard-meter span:nth-child(2) { height: 72%; }
.dashboard-meter span:nth-child(3) { height: 58%; }
.dashboard-meter span:nth-child(4) { height: 88%; }
.dashboard-platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-platforms span {
  padding: 10px 8px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.12);
  color: #475569;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}
.dashboard-feature-list { display: grid; gap: 12px; }
.dashboard-feature-list div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 165, 233, 0.10);
}
.dashboard-feature-list strong,
.dashboard-feature-list small { display: block; }
.dashboard-feature-list strong { color: #0f172a; font-size: 15px; }
.dashboard-feature-list small { margin-top: 4px; color: #64748b; line-height: 1.45; }

.premium-product-grid,
.premium-feature-grid,
.premium-instruction-grid { display: grid; gap: 18px; }
.premium-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.premium-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.premium-instruction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.premium-product-card,
.premium-mini-card,
.premium-proxy-banner,
.premium-news-card,
.premium-faq-list details {
  border: 1px solid rgba(14, 165, 233, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(14, 116, 144, 0.09);
}
.premium-product-card,
.premium-mini-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 100%;
  padding: 26px;
  border-radius: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.premium-product-card:hover,
.premium-mini-card:hover { border-color: rgba(14, 165, 233, 0.24); }
.premium-product-card > strong {
  color: #0f172a;
  font-size: 24px;
  line-height: 1.18;
}
.premium-product-card p,
.premium-mini-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}
.clean-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clean-check-list li {
  position: relative;
  padding-left: 22px;
  color: #475569;
  font-weight: 700;
}
.clean-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0ea5e9;
}
.product-letter-icon,
.ifreedom-letter {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.22);
}
.premium-proxy-banner,
.premium-news-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.96), rgba(255, 255, 255, 0.92)), #ffffff;
}
.premium-proxy-banner h2,
.premium-news-card h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}
.premium-proxy-banner p,
.premium-news-card p {
  max-width: 680px;
  margin: 0;
  line-height: 1.7;
}
.premium-mini-card h3 { margin: 0; font-size: 22px; }
.premium-mini-card strong { color: #0284c7; }
.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.10);
  color: #0284c7;
  font-size: 14px;
  font-weight: 900;
}
.premium-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.premium-steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.22), transparent);
}
.premium-steps article {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(14, 116, 144, 0.08);
}
.premium-steps span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.22);
}
.premium-steps h3,
.premium-steps p { margin: 0; }
.premium-faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.premium-faq-list details {
  border-radius: 20px;
  overflow: hidden;
}
.premium-faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  color: #0f172a;
  font-weight: 800;
}
.premium-faq-list p {
  margin: 0;
  padding: 0 22px 20px;
  line-height: 1.7;
}
.seo-home-section { max-width: 1180px; }
.seo-intro-card,
.seo-text-card { max-width: 100%; }
.seo-intro-card p,
.seo-text-card p,
.seo-step-list {
  font-size: 16px;
  line-height: 1.75;
}

.auth-overlay {
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(12px);
}
.auth-card,
body[data-theme="light"] .auth-card,
body[data-theme="dark"] .auth-card,
.payment-card,
.payment-choice-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}
.auth-head h2 { color: #0f172a; }
.auth-head p,
.auth-badge { color: #64748b; }
.auth-tab {
  border-color: rgba(14, 165, 233, 0.14);
  background: #f0f9ff;
  color: #0369a1;
}
.auth-tab.active {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #ffffff;
}

.site-footer,
body[data-theme="light"] .site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.74);
}
.footer-wrap {
  grid-template-columns: 1.35fr repeat(3, minmax(0, 0.7fr));
  align-items: start;
  gap: 28px;
  padding: 34px 0 38px;
}
.footer-brand .brand-text-group span {
  max-width: 320px;
  color: #64748b;
}
.footer-title {
  margin-bottom: 14px;
  color: #0f172a;
  letter-spacing: 0;
}
.footer-doc-links a,
.footer-email-text a,
.footer-pill { color: #475569; }
.footer-doc-links a:hover,
.footer-pill:hover,
.footer-email-text a:hover { color: #0284c7; }

.page-intro { margin-bottom: 22px; }
.page-intro .panel-card,
.platform-page-hero,
.proxy-hero-copy {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.88)), #ffffff;
}
.platform-page-shell,
.proxy-page-shell,
.payment-page-shell { padding-top: 22px; }
.platform-page-icon {
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.12);
}
.tariff-card::before,
.platform-tariff-card::before { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }

.proxy-hero-copy,
body[data-theme="light"] .proxy-hero-copy,
.proxy-action-panel,
body[data-theme="light"] .proxy-action-panel,
.proxy-metric-card,
body[data-theme="light"] .proxy-metric-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.88)), #ffffff;
}
.proxy-hero-copy h1,
.proxy-endpoint,
.proxy-metric-card strong,
body[data-theme="light"] .proxy-metric-card strong { color: #0f172a; }
.proxy-metric-card span,
.proxy-metric-card small,
body[data-theme="light"] .proxy-metric-card span,
body[data-theme="light"] .proxy-metric-card small,
.proxy-support-net,
body[data-theme="light"] .proxy-support-net { color: #64748b; }
.proxy-support-net strong,
body[data-theme="light"] .proxy-support-net strong { color: #0f172a; }
.support-float-btn {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.28);
}

.data-line,
.stat-line,
.download-line { border-color: rgba(15, 23, 42, 0.08); }
.data-line strong,
.stat-line strong,
.download-meta strong { color: #0f172a; }
.quick-link-card,
.cabinet-access-card { background: rgba(240, 249, 255, 0.68); }

.payment-page-order-card,
.payment-page-methods-card,
.payment-page-details-card,
body[data-theme="dark"] .payment-page-order-card,
body[data-theme="dark"] .payment-page-methods-card,
body[data-theme="dark"] .payment-page-details-card {
  border-color: rgba(14, 165, 233, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(14, 116, 144, 0.10);
}
.payment-method-row { border-color: rgba(14, 165, 233, 0.12); }
.payment-method-row.is-selected {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.10);
}

@media (max-width: 1180px) {
  .nav-link {
    padding: 9px 10px;
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .container { width: min(100%, calc(100% - 32px)); }
  .premium-hero,
  .premium-product-grid,
  .premium-feature-grid,
  .premium-instruction-grid,
  .premium-steps { grid-template-columns: 1fr; }
  .premium-hero {
    min-height: auto;
    gap: 22px;
  }
  .premium-steps::before {
    left: 27px;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.22), transparent);
  }
  .premium-steps article {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .premium-steps article h3,
  .premium-steps article p { grid-column: 2; }
  .premium-proxy-banner,
  .premium-news-card {
    display: grid;
    text-align: left;
  }
  .footer-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-nav-overlay {
    background: rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(6px);
  }
  .mobile-nav-panel,
  body[data-theme="light"] .mobile-nav-panel {
    height: 100dvh;
    min-height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(14, 165, 233, 0.12);
    box-shadow: -22px 0 60px rgba(15, 23, 42, 0.16);
  }
  .mobile-nav-head { border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
}

@media (max-width: 760px) {
  .container { width: min(100%, calc(100% - 24px)); }
  .page-shell {
    padding-top: 20px;
    padding-bottom: 48px;
  }
  .premium-section { margin-top: 54px; }
  .premium-hero-copy h1 { font-size: clamp(34px, 10vw, 42px); }
  .premium-hero-copy p,
  .section-heading p { font-size: 16px; }
  .premium-hero-actions,
  .premium-news-card .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .premium-dashboard-card,
  .premium-product-card,
  .premium-mini-card,
  .premium-proxy-banner,
  .premium-news-card {
    border-radius: 22px;
    padding: 20px;
  }
  .dashboard-platforms,
  .clean-check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-steps article { padding: 18px; }
  .footer-wrap { grid-template-columns: 1fr; }
  .auth-card {
    border-radius: 22px;
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .brand-text-group span { display: none; }
  .premium-dashboard-card,
  .premium-product-card,
  .premium-mini-card,
  .premium-proxy-banner,
  .premium-news-card { padding: 16px; }
  .dashboard-platforms { grid-template-columns: 1fr; }
}

/* premium living layer v2 */
.premium-hero-live {
  isolation: isolate;
}

.premium-hero-live::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .44;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 68%);
}

.hero-floating-badge {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(14, 116, 144, 0.12);
  color: #0369a1;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(12px);
  animation: premiumFloat 8s ease-in-out infinite;
}

.hero-floating-badge.badge-one { right: 36%; top: 16%; }
.hero-floating-badge.badge-two { right: 6%; bottom: 13%; animation-delay: -2s; }
.hero-floating-badge.badge-three { left: 2%; bottom: 20%; animation-delay: -4s; }

.premium-hero-live::before,
.premium-hero-live::after,
.hero-floating-badge {
  pointer-events: none;
}

.premium-hero-actions {
  position: relative;
  z-index: 4;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #0369a1;
  cursor: default;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  pointer-events: none;
}

.status-badge,
.price-badge,
.live-label,
.product-support-label {
  cursor: default;
}

.dashboard-topline,
.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.live-label {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
}

.pulse-dot {
  animation: onlinePulse 1.9s ease-out infinite;
}

.dashboard-connection-map {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 10px;
}

.dashboard-connection-map div {
  padding: 14px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-connection-map small,
.dashboard-connection-map strong {
  display: block;
}

.dashboard-connection-map small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-connection-map strong {
  margin-top: 5px;
  color: #0f172a;
  font-size: 15px;
}

.live-meter {
  grid-template-columns: repeat(5, 1fr);
}

.live-meter span:nth-child(5) {
  height: 66%;
}

.service-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 18px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 38px rgba(14, 116, 144, 0.08);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.service-status-card:hover,
.tariff-preview-card:hover,
.choice-helper-card:hover,
.proxy-flow-card:hover,
.platform-tariff-card:hover,
.platform-trial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 22px 52px rgba(14, 116, 144, 0.14);
}

.service-status-card strong,
.service-status-card small {
  display: block;
}

.service-status-card strong {
  color: #0f172a;
  font-size: 16px;
}

.service-status-card small {
  margin-top: 4px;
  color: #0284c7;
  font-weight: 800;
}

.rich-product-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.rich-product-card::before,
.tariff-preview-card::before,
.trust-card::before,
.premium-seo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, rgba(56, 189, 248, 0.25), transparent);
  opacity: .9;
}

.device-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-icon-row span,
.proxy-benefits span,
.tariff-preview-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 999px;
  background: rgba(240, 249, 255, 0.9);
  color: #0369a1;
  font-size: 13px;
  font-weight: 900;
}

.choice-helper-card {
  display: grid;
  grid-template-columns: .7fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(14, 116, 144, 0.07);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.choice-helper-card strong {
  color: #0f172a;
  font-size: 18px;
}

.choice-helper-card span {
  color: #64748b;
  line-height: 1.5;
}

.tariff-preview-toggle {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 22px;
}

.tariff-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tariff-preview-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(14, 116, 144, 0.09);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.tariff-preview-card.featured {
  border-color: rgba(14, 165, 233, 0.28);
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.88), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.tariff-preview-card h3,
.tariff-preview-card p {
  margin: 0;
}

.tariff-preview-card h3 {
  color: #0f172a;
  font-size: 22px;
}

.tariff-preview-card > strong {
  color: #0284c7;
  font-size: 26px;
}

.tariff-preview-card p,
.tariff-preview-note,
.small-note {
  color: #64748b;
  line-height: 1.65;
}

.tariff-preview-note {
  max-width: 720px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 14px;
}

.live-proxy-banner {
  align-items: stretch;
}

.proxy-banner-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.proxy-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proxy-flow-card {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  align-items: center;
  gap: 8px;
  min-width: 380px;
  padding: 18px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.proxy-flow-card span {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  color: #0f172a;
  text-align: center;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.10);
}

.proxy-flow-card i {
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  position: relative;
}

.proxy-flow-card i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #38bdf8;
  border-right: 2px solid #38bdf8;
  transform: translateY(-50%) rotate(45deg);
}

.visual-instruction-grid .instruction-tile {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.instruction-tile .status-badge {
  justify-self: end;
}

.instruction-tile h3,
.instruction-tile p,
.instruction-tile strong {
  grid-column: 1 / -1;
}

.instruction-helper {
  grid-template-columns: .6fr 1.4fr;
}

.premium-faq-list details {
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.premium-faq-list details[open] {
  border-color: rgba(14, 165, 233, 0.24);
  box-shadow: 0 18px 42px rgba(14, 116, 144, 0.10);
}

.premium-faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.premium-faq-list summary::-webkit-details-marker {
  display: none;
}

.premium-faq-list summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #0ea5e9;
  border-bottom: 2px solid #0ea5e9;
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex: 0 0 auto;
}

.premium-faq-list details[open] summary::after {
  transform: rotate(225deg);
}

.primary-btn {
  position: relative;
  overflow: hidden;
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -55%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transform: skewX(-18deg);
  transition: left .65s ease;
  pointer-events: none;
}

.primary-btn:hover::after {
  left: 120%;
}

.primary-btn:active,
.outline-btn:active,
.ghost-btn:active,
.mini-btn:active {
  transform: translateY(0) scale(.99);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

#tariffs,
#tariffs [data-reveal],
.platform-pricing-card,
.platform-pricing-card [data-reveal],
.platform-pricing-card .platform-period-block,
.platform-pricing-card .platform-tariff-grid,
.platform-pricing-card .tariff-card,
.platform-pricing-card .platform-tariff-card,
.platform-pricing-card .custom-tariff-card {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition-delay: 0s !important;
  animation-delay: 0s !important;
}

.platform-page-hero {
  position: relative;
  overflow: hidden;
}

.platform-page-hero > * {
  position: relative;
  z-index: 1;
}

.platform-hero-note {
  max-width: 760px;
  margin-top: 10px;
  color: #64748b;
  line-height: 1.65;
}

.platform-hero-actions {
  align-items: center;
}

.platform-section-nav {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 2px 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.platform-section-nav a {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0369a1;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.platform-section-nav a:hover,
.platform-section-nav a:focus-visible {
  border-color: rgba(14, 165, 233, 0.36);
  background: rgba(240, 249, 255, 0.96);
  color: #075985;
}

.tariffs-below-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-left: 4px solid #0ea5e9;
  border-radius: 18px;
  background: rgba(240, 249, 255, 0.92);
  box-shadow: 0 14px 34px rgba(14, 116, 144, 0.07);
}

.tariffs-below-callout div {
  display: grid;
  gap: 3px;
}

.tariffs-below-callout span {
  color: #64748b;
}

.platform-page-hero::after,
.proxy-hero-copy::after,
.combined-cabinet-top .panel-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.13);
  filter: blur(18px);
  pointer-events: none;
}

.platform-tariff-grid {
  align-items: stretch;
}

.platform-tariff-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  overflow: visible;
  gap: 10px;
}

.platform-tariff-card .feature-list {
  flex: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.platform-tariff-card .primary-btn {
  margin-top: auto;
}

.platform-tariff-card .tariff-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.platform-tariff-card .tariff-copy,
.platform-tariff-card .tariff-main-price,
.platform-tariff-card .tariff-old-price {
  overflow-wrap: anywhere;
}

.platform-tariff-grid .platform-tariff-card:nth-child(2)::after {
  content: "Популярный";
  position: static;
  order: -1;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  color: #0284c7;
  font-size: 12px;
  font-weight: 900;
}

.platform-period-title::after {
  display: none;
}

.platform-pricing-card > .platform-period-block:nth-of-type(3) .platform-period-title::after {
  content: "Выгоднее на год";
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  color: #0284c7;
  font-size: 12px;
  font-weight: 900;
}

.platform-trial-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(14, 165, 233, 0.22);
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.88), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.platform-trial-card::before {
  content: "1 день • 1 устройство • для теста";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  color: #0284c7;
  font-size: 12px;
  font-weight: 900;
}

.platform-guide-item,
.platform-faq-item {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.platform-guide-item:hover,
.platform-faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: 0 18px 42px rgba(14, 116, 144, 0.10);
}

.proxy-hero-copy {
  position: relative;
  overflow: hidden;
}

.proxy-hero-copy h1::after {
  content: "Прокси доступен";
  display: inline-flex;
  vertical-align: middle;
  margin-left: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  color: #15803d;
  font-size: 14px;
  line-height: 1;
}

.proxy-metric-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.proxy-metric-card strong,
.proxy-metric-card small {
  overflow-wrap: anywhere;
}

.proxy-connect-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.24);
  box-shadow: none;
}

body[data-theme="light"] .proxy-big-action.support {
  background: linear-gradient(135deg, #2f7dff, #5bd6ff);
  color: #061125;
  box-shadow: 0 16px 34px rgba(49, 116, 255, 0.24);
}

body[data-theme="light"] .proxy-big-action.proxy-connect-secondary,
.proxy-big-action.primary.proxy-connect-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.24);
  box-shadow: none;
}

.proxy-metric-card::after {
  content: "";
  display: block;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(14, 165, 233, 0.88), rgba(56, 189, 248, 0.35) 62%, rgba(226, 232, 240, 0.65) 62%);
}

.proxy-support-section::after {
  content: "Поддержка помогает оплачивать серверы, трафик и стабильную работу Telegram Proxy.";
  display: block;
  max-width: 760px;
  margin: 18px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  color: #64748b;
  text-align: center;
  line-height: 1.6;
  box-shadow: 0 14px 38px rgba(14, 116, 144, 0.07);
}

.combined-cabinet-top .panel-card,
.combined-cabinet-grid .panel-card {
  position: relative;
  overflow: hidden;
}

.quick-actions-grid {
  align-items: stretch;
}

.quick-link-card {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.quick-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: 0 16px 40px rgba(14, 116, 144, 0.10);
}

.quick-device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.quick-device-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(14, 165, 233, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(14, 116, 144, 0.07);
}

.quick-device-card.primary-scenario {
  border-color: rgba(14, 165, 233, 0.28);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.95), rgba(255, 255, 255, 0.92));
}

.quick-device-card.proxy-scenario {
  border-color: rgba(20, 184, 166, 0.24);
}

.quick-device-card h3,
.quick-device-card p {
  margin: 0;
}

.quick-device-card p {
  color: #64748b;
  line-height: 1.55;
}

.quick-device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.quick-device-actions .primary-btn {
  min-height: 42px;
  padding: 10px 14px;
}

/* Cabinet v41 functional layout */
.cabinet-guest-shell {
  padding-top: 34px;
}

.cabinet-guest-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 22px;
  align-items: stretch;
}

.cabinet-guest-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.cabinet-guest-copy h1,
.cabinet-guest-copy p,
.cabinet-guest-features strong,
.cabinet-guest-features span {
  margin: 0;
}

.cabinet-guest-copy h1 {
  margin-top: 8px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}

.cabinet-guest-copy p {
  max-width: 680px;
  margin-top: 16px;
  color: #64748b;
  line-height: 1.7;
}

.cabinet-guest-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cabinet-guest-features .panel-subcard,
.cabinet-metrics-grid .panel-subcard {
  display: grid;
  gap: 8px;
  align-content: start;
}

.cabinet-guest-features span,
.cabinet-metrics-grid span {
  color: #64748b;
  line-height: 1.45;
}

.cabinet-user-intro {
  padding-bottom: 10px;
}

.cabinet-tabs-wrap {
  position: sticky;
  top: 78px;
  z-index: 20;
  padding-top: 0;
  padding-bottom: 12px;
}

.cabinet-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(14, 116, 144, 0.08);
  scrollbar-width: thin;
}

.cabinet-tab {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: #475569;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.cabinet-tab:hover,
.cabinet-tab.active {
  background: #0ea5e9;
  color: #ffffff;
}

.cabinet-section {
  scroll-margin-top: 150px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.cabinet-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-link-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.quick-link-card strong,
.quick-link-card span {
  display: block;
}

.quick-link-card span {
  margin-top: 6px;
  color: #64748b;
  line-height: 1.45;
}

.cabinet-empty-state {
  border-style: dashed;
  background: rgba(248, 250, 252, 0.88);
}

.cabinet-empty-state h4,
.cabinet-empty-state p {
  margin: 0;
}

.cabinet-empty-state p {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.55;
}

.cabinet-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cabinet-metrics-grid strong {
  font-size: 22px;
  line-height: 1.15;
}

.cabinet-purchase-list {
  display: grid;
  gap: 14px;
}

.cabinet-purchase-list .request-card {
  border-left: 4px solid rgba(14, 165, 233, 0.55);
}

.request-card.approved {
  border-left-color: rgba(34, 197, 94, 0.74);
}

.request-card.pending,
.request-card.draft {
  border-left-color: rgba(245, 158, 11, 0.78);
}

.request-card.declined {
  border-left-color: rgba(239, 68, 68, 0.72);
}

.cabinet-access-value {
  user-select: all;
}

.status-badge {
  cursor: default;
}

@media (max-width: 980px) {
  .cabinet-guest-card,
  .cabinet-metrics-grid,
  .cabinet-action-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-tabs-wrap {
    top: 64px;
  }
}

@media (max-width: 640px) {
  .cabinet-guest-shell {
    padding-top: 18px;
  }

  .cabinet-guest-card {
    gap: 16px;
    padding: 20px;
  }

  .cabinet-guest-copy h1 {
    font-size: 34px;
  }

  .cabinet-guest-features {
    grid-template-columns: 1fr;
  }

  .cabinet-tabs-wrap {
    width: 100%;
  }

  .cabinet-tabs {
    border-radius: 14px;
    padding: 6px;
  }

  .cabinet-tab {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .cabinet-section {
    scroll-margin-top: 128px;
  }

  .cabinet-purchase-list .request-card .card-top {
    align-items: flex-start;
  }

  .cabinet-purchase-list .request-card .button-row > * {
    width: 100%;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #0369a1;
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: #0f766e;
  text-decoration: underline;
}

@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.30); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes premiumFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .hero-floating-badge {
    display: none;
  }

  .proxy-flow-card {
    min-width: 300px;
  }
}

@media (max-width: 980px) {
  .service-status-grid,
  .tariff-preview-grid,
  .quick-device-grid,
  .proxy-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-helper-card,
  .instruction-helper {
    grid-template-columns: 1fr;
  }

  .live-proxy-banner {
    grid-template-columns: 1fr;
  }

  .proxy-flow-card {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .proxy-flow-card i {
    width: 2px;
    height: 24px;
    justify-self: center;
    background: linear-gradient(180deg, #0ea5e9, #38bdf8);
  }

  .proxy-flow-card i::after {
    right: auto;
    top: auto;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%) rotate(135deg);
  }
}

@media (max-width: 760px) {
  .dashboard-connection-map,
  .service-status-grid,
  .tariff-preview-grid,
  .quick-device-grid,
  .proxy-metrics-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-topline,
  .product-card-head {
    align-items: flex-start;
  }

  .rich-product-card {
    min-height: auto;
  }

  .tariffs-below-callout,
  .platform-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-hero-actions .primary-btn,
  .platform-hero-actions .ghost-btn,
  .platform-hero-actions .outline-btn,
  .quick-device-actions .primary-btn,
  .quick-device-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .proxy-benefits,
  .device-icon-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proxy-hero-copy h1::after {
    display: flex;
    width: fit-content;
    margin: 12px 0 0;
  }
}

/* Proxy landing refresh */
.proxy-page-shell,
.proxy-seo-section,
.proxy-donate-section,
.proxy-dashboard-section,
.proxy-purpose-section,
.proxy-expenses-section,
.proxy-instructions-section,
.proxy-faq-section {
  margin-top: 22px;
}

.proxy-page-shell {
  padding-top: 10px;
}

.proxy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.proxy-hero-copy,
.proxy-hero-card,
.proxy-info-card,
.proxy-donation-card,
.proxy-metric-card,
.proxy-purpose-card,
.proxy-expense-card,
.proxy-step-card,
.proxy-faq-item {
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.proxy-hero-copy {
  min-height: 430px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.92), rgba(255, 255, 255, 0.96) 54%, rgba(236, 253, 245, 0.72)),
    #ffffff;
}

.proxy-hero-copy::after,
.proxy-hero-copy h1::after,
.proxy-support-section::after {
  display: none !important;
}

.proxy-hero-copy h1 {
  max-width: 820px;
  margin: 0;
  color: #0f172a;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.proxy-hero-lead,
.proxy-hero-note,
.proxy-info-card p,
.proxy-donation-copy p,
.proxy-purpose-card p,
.proxy-step-card p,
.proxy-faq-item p,
.proxy-callout {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.proxy-hero-lead {
  max-width: 760px;
  font-size: 18px;
}

.proxy-hero-note {
  max-width: 760px;
  padding: 14px 16px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 8px;
  background: rgba(240, 249, 255, 0.82);
  font-size: 15px;
}

.proxy-badge-row,
.proxy-hero-actions,
.proxy-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.proxy-badge-row span,
.proxy-status-pill,
.proxy-purpose-card > span,
.proxy-stat-dot {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.proxy-badge-row span {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  color: #0369a1;
  font-size: 13px;
  font-weight: 850;
}

.proxy-hero-actions {
  margin-top: 2px;
}

.proxy-big-action {
  width: auto;
  min-width: 172px;
  min-height: 50px;
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
  white-space: normal;
}

.proxy-big-action.primary,
.proxy-big-action.support,
body[data-theme="light"] .proxy-big-action.support {
  border: 1px solid rgba(2, 132, 199, 0.12);
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.24);
}

.proxy-big-action.secondary,
.proxy-big-action.ghost,
body[data-theme="light"] .proxy-big-action.proxy-connect-secondary,
.proxy-big-action.primary.proxy-connect-secondary {
  border: 1px solid rgba(14, 165, 233, 0.20);
  background: #ffffff;
  color: #0369a1;
  box-shadow: none;
}

.proxy-big-action.ghost {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.20);
}

.proxy-big-action:hover,
.proxy-big-action:focus-visible,
.proxy-quick-amounts button:hover,
.proxy-quick-amounts button:focus-visible,
.proxy-faq-item summary:focus-visible {
  outline: 2px solid rgba(14, 165, 233, 0.24);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.proxy-hero-card {
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 16px;
  background: #ffffff;
}

.proxy-status-pill {
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  color: #15803d;
  font-weight: 850;
  font-size: 13px;
}

.proxy-status-pill i,
.proxy-stat-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
}

.proxy-hero-stat {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.82);
  min-width: 0;
}

.proxy-hero-stat span,
.proxy-metric-card small {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.proxy-hero-stat strong,
.proxy-metric-card strong,
.proxy-card-topline strong {
  color: #0f172a;
  font-size: 26px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.proxy-info-card {
  padding: 26px;
  display: grid;
  gap: 12px;
}

.proxy-info-card h2,
.proxy-info-card h3,
.proxy-section-head h2,
.proxy-donation-copy h2,
.proxy-purpose-card h3,
.proxy-step-card h3 {
  margin: 0;
  color: #0f172a;
  letter-spacing: 0;
}

.proxy-donation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 24px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(240, 249, 255, 0.92), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.proxy-donation-copy,
.proxy-support-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

.proxy-muted {
  font-size: 14px;
}

.proxy-quick-amounts button {
  min-height: 38px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: #0369a1;
  font-weight: 850;
  cursor: pointer;
}

.proxy-support-form {
  padding: 20px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.proxy-amount-field {
  margin-bottom: 0;
}

.proxy-support-form input {
  min-height: 58px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 850;
}

.proxy-support-form input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.proxy-support-form input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

.proxy-support-error {
  color: #dc2626;
  font-size: 14px;
  font-weight: 850;
}

.proxy-support-net {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(236, 253, 245, 0.82);
  color: #166534;
  font-size: 14px;
  line-height: 1.45;
}

.proxy-support-net strong {
  color: #14532d;
}

.proxy-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.proxy-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.proxy-metric-card {
  position: relative;
  min-width: 0;
  min-height: 164px;
  padding: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.proxy-metric-card::after {
  display: none;
}

.proxy-metric-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
  font-size: 14px;
}

.proxy-purpose-grid,
.proxy-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.proxy-purpose-card,
.proxy-step-card {
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.proxy-purpose-card > span,
.proxy-step-card > span {
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-size: 13px;
  font-weight: 900;
}

.proxy-step-card > span {
  background: #0ea5e9;
  color: #ffffff;
}

.proxy-expense-grid,
.proxy-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.proxy-info-grid {
  margin-top: 16px;
}

.proxy-expense-card {
  padding: 24px;
  min-width: 0;
}

.proxy-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
}

.proxy-card-topline span {
  color: #0369a1;
  font-weight: 900;
}

.proxy-expense-card .data-line,
.proxy-info-card .data-line {
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
}

.proxy-callout {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.84);
}

.proxy-faq-list {
  display: grid;
  gap: 10px;
}

.proxy-faq-item {
  overflow: hidden;
}

.proxy-faq-item summary {
  min-height: 56px;
  padding: 17px 20px;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.proxy-faq-item summary::-webkit-details-marker {
  display: none;
}

.proxy-faq-item summary::after {
  content: "+";
  float: right;
  color: #0ea5e9;
  font-size: 22px;
  line-height: 1;
}

.proxy-faq-item[open] summary::after {
  content: "-";
}

.proxy-faq-item p {
  padding: 0 20px 18px;
}

body[data-theme="dark"] .proxy-hero-copy,
body[data-theme="dark"] .proxy-hero-card,
body[data-theme="dark"] .proxy-info-card,
body[data-theme="dark"] .proxy-donation-card,
body[data-theme="dark"] .proxy-metric-card,
body[data-theme="dark"] .proxy-purpose-card,
body[data-theme="dark"] .proxy-expense-card,
body[data-theme="dark"] .proxy-step-card,
body[data-theme="dark"] .proxy-faq-item,
body[data-theme="dark"] .proxy-support-form {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(125, 211, 252, 0.16);
}

body[data-theme="dark"] .proxy-hero-copy h1,
body[data-theme="dark"] .proxy-info-card h2,
body[data-theme="dark"] .proxy-info-card h3,
body[data-theme="dark"] .proxy-section-head h2,
body[data-theme="dark"] .proxy-donation-copy h2,
body[data-theme="dark"] .proxy-purpose-card h3,
body[data-theme="dark"] .proxy-step-card h3,
body[data-theme="dark"] .proxy-hero-stat strong,
body[data-theme="dark"] .proxy-metric-card strong,
body[data-theme="dark"] .proxy-card-topline strong,
body[data-theme="dark"] .proxy-faq-item summary {
  color: #f8fafc;
}

body[data-theme="dark"] .proxy-hero-lead,
body[data-theme="dark"] .proxy-hero-note,
body[data-theme="dark"] .proxy-info-card p,
body[data-theme="dark"] .proxy-donation-copy p,
body[data-theme="dark"] .proxy-purpose-card p,
body[data-theme="dark"] .proxy-step-card p,
body[data-theme="dark"] .proxy-faq-item p,
body[data-theme="dark"] .proxy-callout,
body[data-theme="dark"] .proxy-metric-card p,
body[data-theme="dark"] .proxy-hero-stat span,
body[data-theme="dark"] .proxy-metric-card small {
  color: #cbd5e1;
}

@media (max-width: 1100px) {
  .proxy-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proxy-purpose-grid,
  .proxy-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .proxy-hero,
  .proxy-donation-card,
  .proxy-expense-grid,
  .proxy-info-grid {
    grid-template-columns: 1fr;
  }

  .proxy-hero-copy {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .proxy-page-shell,
  .proxy-seo-section,
  .proxy-donate-section,
  .proxy-dashboard-section,
  .proxy-purpose-section,
  .proxy-expenses-section,
  .proxy-instructions-section,
  .proxy-faq-section {
    margin-top: 16px;
  }

  .proxy-hero-copy,
  .proxy-hero-card,
  .proxy-info-card,
  .proxy-donation-card,
  .proxy-metric-card,
  .proxy-purpose-card,
  .proxy-expense-card,
  .proxy-step-card {
    padding: 18px;
  }

  .proxy-hero-copy h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  .proxy-hero-lead {
    font-size: 16px;
  }

  .proxy-hero-actions,
  .proxy-badge-row,
  .proxy-quick-amounts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .proxy-big-action,
  .proxy-quick-amounts button {
    width: 100%;
    justify-content: center;
  }

  .proxy-metrics-grid,
  .proxy-purpose-grid,
  .proxy-steps-grid {
    grid-template-columns: 1fr;
  }

  .proxy-donation-card {
    gap: 16px;
  }

  .proxy-support-form {
    padding: 16px;
  }

  .proxy-support-form input {
    font-size: 22px;
  }
}

@media (max-width: 390px) {
  .proxy-hero-copy h1 {
    font-size: 25px;
  }

  .proxy-hero-copy,
  .proxy-hero-card,
  .proxy-info-card,
  .proxy-donation-card,
  .proxy-metric-card,
  .proxy-purpose-card,
  .proxy-expense-card,
  .proxy-step-card {
    padding: 16px;
  }
}

/* Proxy premium alignment v2 */
.proxy-page-shell {
  position: relative;
  padding-top: 28px;
}

.proxy-page-shell::before {
  content: "";
  position: absolute;
  left: -10%;
  top: 40px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  filter: blur(58px);
  pointer-events: none;
}

.proxy-page-shell::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 110px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  filter: blur(54px);
  pointer-events: none;
}

.proxy-hero.premium-hero {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.76fr);
  align-items: stretch;
  min-height: auto;
  padding-top: 22px;
  padding-bottom: 26px;
}

.proxy-hero-copy.premium-hero-copy,
.proxy-soft-card,
.proxy-donation-card,
.proxy-dashboard-card,
.proxy-faq-item {
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    #ffffff;
  box-shadow: 0 18px 50px rgba(14, 116, 144, 0.10);
}

.proxy-hero-copy.premium-hero-copy {
  min-height: 560px;
  padding: 42px;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 248, 255, 0.92) 58%, rgba(240, 253, 250, 0.78)),
    #ffffff;
}

.proxy-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.02;
  color: #0f172a;
}

.proxy-hero-lead {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.75;
  color: #3f5f8d;
}

.proxy-hero-note {
  max-width: 700px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  background: rgba(240, 249, 255, 0.78);
  color: #476386;
}

.proxy-badge-row span {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  color: #0369a1;
}

.proxy-hero-actions .primary-btn,
.proxy-hero-actions .outline-btn,
.proxy-hero-actions .ghost-btn,
.proxy-donate-submit {
  min-height: 52px;
  border-radius: 18px;
  padding: 14px 20px;
  font-weight: 900;
}

.proxy-hero-actions .primary-btn {
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.22);
}

.proxy-hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-content: stretch;
}

.proxy-dashboard-card {
  padding: 28px;
  gap: 18px;
}

.proxy-dashboard-card::after {
  pointer-events: none;
}

.proxy-status-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #0f172a;
}

.proxy-status-row small {
  color: #16a34a;
  font-weight: 900;
}

.proxy-hero-stat-grid {
  display: grid;
  gap: 12px;
}

.proxy-hero-stat {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.proxy-hero-stat strong {
  font-size: 26px;
}

.proxy-donation-card {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.90)),
    #ffffff;
}

.proxy-donation-copy {
  gap: 10px;
}

.proxy-donation-copy h2 {
  font-size: 28px;
}

.proxy-support-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.proxy-support-form .field span {
  color: #334155;
}

.proxy-support-form input {
  min-height: 58px;
  border-radius: 18px;
  border-color: rgba(14, 165, 233, 0.18);
  background: #ffffff;
}

.proxy-support-form input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.proxy-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proxy-quick-amounts button {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #0369a1;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.proxy-quick-amounts button:hover,
.proxy-quick-amounts button:focus-visible,
.proxy-quick-amounts button.is-active {
  border-color: rgba(14, 165, 233, 0.34);
  background: rgba(224, 242, 254, 0.96);
  color: #075985;
}

.proxy-support-net {
  border-radius: 18px;
}

.proxy-section-head {
  margin-bottom: 18px;
}

.proxy-section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 44px);
}

.proxy-section-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.65;
}

.proxy-seo-section,
.proxy-dashboard-section,
.proxy-purpose-section,
.proxy-expenses-section,
.proxy-instructions-section,
.proxy-faq-section {
  margin-top: 30px;
}

.proxy-info-card {
  max-width: 900px;
  padding: 30px;
}

.proxy-info-card h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.proxy-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.proxy-metric-card {
  min-height: 176px;
  padding: 22px;
  border-radius: 24px;
}

.proxy-metric-card strong {
  font-size: 30px;
}

.proxy-stat-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.10);
}

.proxy-purpose-grid,
.proxy-steps-grid {
  gap: 16px;
}

.proxy-purpose-card,
.proxy-step-card,
.proxy-expense-card {
  border-radius: 24px;
  padding: 24px;
}

.proxy-purpose-card > span,
.proxy-step-card > span {
  width: 42px;
  height: 42px;
}

.proxy-expense-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.proxy-card-topline span {
  font-size: 18px;
  color: #075985;
}

.proxy-expense-card .data-line,
.proxy-info-card .data-line {
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.86);
}

.proxy-callout {
  margin-top: 18px;
  border-radius: 24px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 38px rgba(14, 116, 144, 0.07);
}

.proxy-faq-list {
  gap: 12px;
}

.proxy-faq-item {
  border-radius: 20px;
}

.proxy-faq-item summary {
  border-radius: 20px;
}

.proxy-faq-item summary::after {
  content: "⌄";
  transition: transform .2s ease;
}

.proxy-faq-item[open] summary::after {
  content: "⌄";
  transform: rotate(180deg);
}

body[data-theme="dark"] .proxy-hero-copy.premium-hero-copy,
body[data-theme="dark"] .proxy-soft-card,
body[data-theme="dark"] .proxy-donation-card,
body[data-theme="dark"] .proxy-dashboard-card,
body[data-theme="dark"] .proxy-faq-item {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(125, 211, 252, 0.16);
}

@media (max-width: 1100px) {
  .proxy-hero.premium-hero {
    grid-template-columns: 1fr;
  }

  .proxy-hero-copy.premium-hero-copy {
    min-height: auto;
  }

  .proxy-hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proxy-donation-card {
    order: -1;
  }

  .proxy-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .proxy-hero-side,
  .proxy-expense-grid {
    grid-template-columns: 1fr;
  }

  .proxy-purpose-grid,
  .proxy-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .proxy-page-shell {
    padding-top: 12px;
  }

  .proxy-hero.premium-hero {
    gap: 16px;
    padding-top: 10px;
  }

  .proxy-hero-copy.premium-hero-copy,
  .proxy-dashboard-card,
  .proxy-donation-card,
  .proxy-info-card,
  .proxy-metric-card,
  .proxy-purpose-card,
  .proxy-expense-card,
  .proxy-step-card {
    border-radius: 22px;
    padding: 20px;
  }

  .proxy-hero-copy h1 {
    font-size: clamp(31px, 9vw, 40px);
  }

  .proxy-hero-lead {
    font-size: 16px;
  }

  .proxy-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .proxy-hero-actions .primary-btn,
  .proxy-hero-actions .outline-btn,
  .proxy-hero-actions .ghost-btn,
  .proxy-donate-submit {
    width: 100%;
    justify-content: center;
  }

  .proxy-metrics-grid,
  .proxy-purpose-grid,
  .proxy-steps-grid {
    grid-template-columns: 1fr;
  }

  .proxy-section-head h2 {
    font-size: 28px;
  }
}

@media (max-width: 390px) {
  .proxy-hero-copy h1 {
    font-size: 30px;
  }
}

/* Proxy compact premium layout */
.proxy-page-shell,
.proxy-dashboard-section,
.proxy-purpose-section,
.proxy-instructions-section,
.proxy-expenses-section,
.proxy-seo-section,
.proxy-faq-section {
  width: min(1120px, calc(100% - 40px));
}

body[data-page="proxy"] .page-shell {
  padding-top: 12px;
  padding-bottom: 52px;
}

.proxy-page-shell {
  padding-top: 0;
}

.proxy-compact-section {
  margin-top: 42px;
}

.proxy-compact-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 420px);
  gap: 22px;
  align-items: center;
  padding: 8px 0 8px;
}

.proxy-compact-hero .proxy-hero-copy {
  min-height: 0;
  padding: 30px;
  display: grid;
  gap: 14px;
  align-content: center;
  border-radius: 28px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 248, 255, 0.88)),
    #ffffff;
  box-shadow: 0 18px 50px rgba(14, 116, 144, 0.10);
}

.proxy-compact-hero .proxy-hero-copy h1 {
  max-width: 680px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.03;
}

.proxy-compact-hero .proxy-hero-lead {
  max-width: 650px;
  font-size: 17px;
  line-height: 1.62;
}

.proxy-compact-hero .proxy-hero-note {
  max-width: 650px;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.55;
}

.proxy-hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proxy-hero-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: #475569;
  font-size: 13px;
  font-weight: 850;
}

.proxy-hero-status strong {
  color: #0f172a;
}

.proxy-compact-hero .proxy-hero-actions {
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proxy-compact-hero .proxy-hero-actions .primary-btn,
.proxy-compact-hero .proxy-hero-actions .ghost-btn {
  min-height: 48px;
  border-radius: 16px;
  padding: 13px 18px;
}

.proxy-compact-hero .proxy-donation-card {
  order: 0 !important;
  max-width: 420px;
  width: 100%;
  justify-self: end;
  padding: 24px;
  gap: 14px;
  border-radius: 24px;
}

.proxy-compact-hero .proxy-donation-copy h2 {
  font-size: 26px;
}

.proxy-compact-hero .proxy-donation-copy p {
  line-height: 1.55;
}

.proxy-support-form {
  gap: 10px;
}

.proxy-support-form input {
  min-height: 52px;
  font-size: 22px;
}

.proxy-quick-amounts {
  gap: 7px;
}

.proxy-quick-amounts button {
  min-height: 32px;
  padding: 7px 11px;
}

.proxy-donate-submit {
  min-height: 48px;
  border-radius: 16px;
}

.proxy-section-head {
  margin-bottom: 14px;
}

.proxy-section-head h2 {
  margin-top: 6px;
  font-size: clamp(26px, 3vw, 36px);
}

.proxy-section-head p {
  margin-top: 6px;
  line-height: 1.55;
}

.proxy-metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proxy-metric-card {
  min-height: 132px;
  padding: 18px;
  gap: 6px;
  border-radius: 22px;
}

.proxy-metric-card strong {
  font-size: 25px;
}

.proxy-metric-card p {
  font-size: 13px;
}

.proxy-updated-note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.proxy-purpose-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.proxy-purpose-card,
.proxy-step-card {
  min-height: 126px;
  padding: 18px;
  gap: 8px;
  border-radius: 22px;
}

.proxy-purpose-card > span,
.proxy-step-card > span {
  width: 34px;
  height: 34px;
}

.proxy-purpose-card h3,
.proxy-step-card h3 {
  font-size: 18px;
}

.proxy-purpose-card p,
.proxy-step-card p {
  font-size: 14px;
  line-height: 1.45;
}

.proxy-steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.proxy-callout {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
}

.proxy-details-list {
  display: grid;
  gap: 10px;
}

.proxy-detail-card {
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    #ffffff;
  box-shadow: 0 12px 34px rgba(14, 116, 144, 0.07);
}

.proxy-detail-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  color: #0f172a;
  font-weight: 900;
}

.proxy-detail-card summary::-webkit-details-marker {
  display: none;
}

.proxy-detail-card summary::after {
  content: "⌄";
  color: #0ea5e9;
  font-size: 20px;
  transition: transform .2s ease;
}

.proxy-detail-card[open] summary::after {
  transform: rotate(180deg);
}

.proxy-detail-card summary strong {
  color: #0369a1;
  overflow-wrap: anywhere;
}

.proxy-detail-body {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.proxy-detail-body .data-line {
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
}

.proxy-detail-body .notice {
  margin-top: 2px;
}

.proxy-info-card {
  max-width: 900px;
  padding: 24px;
  gap: 10px;
}

.proxy-info-card h2 {
  font-size: clamp(25px, 3vw, 34px);
}

.proxy-info-card p {
  line-height: 1.6;
}

.proxy-faq-list {
  gap: 8px;
}

.proxy-faq-item {
  border-radius: 18px;
}

.proxy-faq-item summary {
  min-height: 50px;
  padding: 14px 18px;
}

.proxy-faq-item p {
  padding: 0 18px 15px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .proxy-compact-hero {
    grid-template-columns: 1fr;
    padding-top: 14px;
  }

  .proxy-compact-hero .proxy-donation-card {
    max-width: none;
    justify-self: stretch;
  }

  .proxy-metrics-grid,
  .proxy-purpose-grid,
  .proxy-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .proxy-page-shell,
  .proxy-dashboard-section,
  .proxy-purpose-section,
  .proxy-instructions-section,
  .proxy-expenses-section,
  .proxy-seo-section,
  .proxy-faq-section {
    width: min(100%, calc(100% - 24px));
  }

  .proxy-compact-section {
    margin-top: 30px;
  }

  .proxy-compact-hero .proxy-hero-copy,
  .proxy-compact-hero .proxy-donation-card,
  .proxy-info-card {
    padding: 16px;
    border-radius: 22px;
  }

  .proxy-compact-hero .proxy-hero-copy h1 {
    font-size: clamp(28px, 8.5vw, 34px);
  }

  .proxy-compact-hero .proxy-hero-copy {
    gap: 10px;
  }

  .proxy-compact-hero .proxy-hero-lead {
    font-size: 15px;
    line-height: 1.5;
  }

  .proxy-compact-hero .proxy-hero-note {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .proxy-hero-status span {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .proxy-hero-status span:nth-child(3) {
    display: none;
  }

  .proxy-compact-hero .proxy-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .proxy-compact-hero .proxy-hero-actions .primary-btn,
  .proxy-compact-hero .proxy-hero-actions .ghost-btn,
  .proxy-donate-submit {
    width: 100%;
    justify-content: center;
  }

  .proxy-metrics-grid,
  .proxy-purpose-grid,
  .proxy-steps-grid {
    grid-template-columns: 1fr;
  }

  .proxy-metric-card,
  .proxy-purpose-card,
  .proxy-step-card {
    min-height: auto;
    padding: 16px;
  }

  .proxy-detail-card summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .proxy-detail-card summary strong {
    grid-column: 1 / -1;
    font-size: 15px;
  }
}

/* Home compact access layer */
body[data-page="home"] .page-shell {
  padding-top: 18px;
  padding-bottom: 48px;
}

/* Proxy metric/value readability pass */
body[data-page="proxy"] .metric-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: 10px;
  row-gap: 0;
  min-width: 0;
}

body[data-page="proxy"] .metric-card .proxy-stat-dot {
  grid-row: 1;
  grid-column: 1;
  margin-top: 4px;
}

body[data-page="proxy"] .metric-label {
  grid-column: 2;
  display: block;
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

body[data-page="proxy"] .metric-value {
  grid-column: 1 / -1;
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

body[data-page="proxy"] .metric-description {
  grid-column: 1 / -1;
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.42;
}

body[data-page="proxy"] .metric-breakdown {
  grid-column: 1 / -1;
  display: block;
  margin-top: 7px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body[data-page="proxy"] .expense-card {
  min-width: 0;
}

body[data-page="proxy"] .expense-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

body[data-page="proxy"] .expense-row:last-of-type {
  border-bottom: 0;
}

body[data-page="proxy"] .expense-total-row {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(14, 165, 233, 0.22);
  border-bottom: 0;
}

body[data-page="proxy"] .expense-total-row .expense-label,
body[data-page="proxy"] .expense-total-row .expense-value {
  color: #0369a1;
  font-weight: 950;
}

body[data-page="proxy"] .expense-label {
  min-width: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

body[data-page="proxy"] .expense-value {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

body[data-page="proxy"] .proxy-detail-card summary {
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) auto;
}

body[data-page="proxy"] .proxy-detail-card summary span,
body[data-page="proxy"] .proxy-detail-card summary strong {
  display: block;
  min-width: 0;
}

body[data-page="proxy"] .proxy-detail-card summary strong {
  text-align: right;
  white-space: nowrap;
}

body[data-page="proxy"] .proxy-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

body[data-page="proxy"] .proxy-step-number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.22);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

body[data-page="proxy"] .proxy-step-content {
  min-width: 0;
}

body[data-page="proxy"] .proxy-step-content h3 {
  margin-top: 0;
}

body[data-page="proxy"] .proxy-support-net.hidden,
body[data-page="proxy"] .proxy-support-error.hidden,
body[data-page="proxy"] .mini-count-badge.hidden,
body[data-page="proxy"] .inbox-badge.hidden,
body[data-page="proxy"] .menu-toggle-badge.hidden {
  display: none !important;
}

body[data-theme="dark"][data-page="proxy"] .metric-value,
body[data-theme="dark"][data-page="proxy"] .expense-value {
  color: #f8fafc;
}

body[data-theme="dark"][data-page="proxy"] .metric-label,
body[data-theme="dark"][data-page="proxy"] .metric-description,
body[data-theme="dark"][data-page="proxy"] .expense-label {
  color: #cbd5e1;
}

body[data-theme="dark"][data-page="proxy"] .metric-breakdown,
body[data-theme="dark"][data-page="proxy"] .expense-total-row .expense-label,
body[data-theme="dark"][data-page="proxy"] .expense-total-row .expense-value {
  color: #7dd3fc;
}

@media (max-width: 640px) {
  body[data-page="proxy"] .metric-card {
    min-height: 122px;
  }

  body[data-page="proxy"] .metric-value {
    font-size: 24px;
  }

  body[data-page="proxy"] .expense-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }

  body[data-page="proxy"] .expense-value {
    max-width: 100%;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body[data-page="proxy"] .proxy-step {
    gap: 12px;
  }

  body[data-page="proxy"] .proxy-step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-basis: 40px;
  }

  body[data-page="proxy"] .proxy-detail-card summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body[data-page="proxy"] .proxy-detail-card summary strong {
    grid-column: 1 / -1;
    text-align: left;
    white-space: normal;
  }
}

body[data-page="home"] .premium-section {
  margin-top: 56px;
}

body[data-page="home"] .section-heading {
  margin-bottom: 20px;
}

body[data-page="home"] .section-heading h2 {
  font-size: clamp(26px, 3.2vw, 38px);
}

body[data-page="home"] .section-heading p {
  font-size: 16px;
  line-height: 1.55;
}

body[data-page="home"] .eyebrow {
  margin-bottom: 12px;
  padding: 8px 12px;
}

body[data-page="home"] .premium-hero {
  min-height: min(540px, calc(100vh - 112px));
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 24px;
}

body[data-page="home"] .premium-hero-copy h1 {
  font-size: clamp(36px, 5vw, 56px);
}

body[data-page="home"] .premium-hero-copy p {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.58;
}

body[data-page="home"] .premium-hero-actions {
  margin-top: 22px;
}

body[data-page="home"] .premium-dashboard-card {
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
}

body[data-page="home"] .dashboard-connection-map,
body[data-page="home"] .dashboard-feature-list {
  gap: 10px;
}

body[data-page="home"] .dashboard-feature-list > div {
  padding: 12px;
}

.quick-access-section {
  margin-top: 8px;
}

.quick-access-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 255, 0.82)),
    #ffffff;
  box-shadow: 0 16px 44px rgba(14, 116, 144, 0.10);
}

.quick-access-panel > strong {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 15px;
}

.quick-access-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.quick-access-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #075985;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.quick-access-nav a:hover,
.quick-access-nav a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.34);
  background: rgba(224, 242, 254, 0.96);
  box-shadow: 0 10px 24px rgba(14, 116, 144, 0.11);
  outline: none;
}

.quick-access-nav a:focus-visible {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.service-status-section {
  margin-top: 22px;
}

.service-status-section .section-heading {
  display: grid;
  gap: 4px;
  max-width: none;
  margin: 0 0 12px;
  text-align: left;
}

.service-status-section .compact-eyebrow,
.service-status-section .section-heading p {
  display: none;
}

.service-status-section .section-heading h2 {
  margin: 0;
  font-size: 22px;
}

body[data-page="home"] .service-status-grid {
  gap: 12px;
}

body[data-page="home"] .service-status-card {
  min-height: 70px;
  padding: 14px 16px;
  border-radius: 18px;
}

body[data-page="home"] .premium-product-grid,
body[data-page="home"] .premium-feature-grid,
body[data-page="home"] .premium-instruction-grid,
body[data-page="home"] .quick-device-grid,
body[data-page="home"] .premium-steps,
body[data-page="home"] .tariff-preview-grid {
  gap: 16px;
}

body[data-page="home"] .premium-product-card,
body[data-page="home"] .premium-mini-card,
body[data-page="home"] .premium-steps article,
body[data-page="home"] .tariff-preview-card,
body[data-page="home"] .quick-device-card {
  padding: 20px;
  border-radius: 20px;
}

body[data-page="home"] .rich-product-card {
  min-height: 0;
}

body[data-page="home"] .premium-product-card > strong {
  font-size: 21px;
}

body[data-page="home"] .premium-product-card p,
body[data-page="home"] .premium-mini-card p,
body[data-page="home"] .quick-device-card p {
  line-height: 1.5;
}

body[data-page="home"] .clean-check-list {
  gap: 8px 10px;
}

body[data-page="home"] .product-letter-icon,
body[data-page="home"] .ifreedom-letter {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

body[data-page="home"] .choice-helper-card {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
}

body[data-page="home"] .tariff-preview-toggle {
  margin: -4px 0 16px;
}

body[data-page="home"] .tariff-preview-card {
  gap: 10px;
}

body[data-page="home"] .tariff-preview-card h3 {
  font-size: 19px;
}

body[data-page="home"] .tariff-preview-card > strong {
  font-size: 23px;
}

body[data-page="home"] .tariff-preview-note {
  margin-top: 12px;
}

body[data-page="home"] .quick-device-card h3 {
  font-size: 20px;
}

body[data-page="home"] .quick-device-actions {
  gap: 8px;
}

body[data-page="home"] .premium-proxy-banner,
body[data-page="home"] .premium-news-card {
  gap: 18px;
  padding: 24px;
  border-radius: 22px;
}

body[data-page="home"] .premium-proxy-banner h2,
body[data-page="home"] .premium-news-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

body[data-page="home"] .proxy-benefits {
  gap: 8px;
}

body[data-page="home"] .premium-steps span {
  width: 44px;
  height: 44px;
}

body[data-page="home"] .premium-steps article {
  gap: 9px;
}

body[data-page="home"] .premium-steps h3,
body[data-page="home"] .premium-mini-card h3 {
  font-size: 19px;
}

body[data-page="home"] .premium-faq-list {
  gap: 8px;
}

body[data-page="home"] .premium-faq-list details {
  border-radius: 18px;
}

body[data-page="home"] .premium-faq-list summary {
  min-height: 50px;
  padding: 14px 18px;
}

body[data-page="home"] .premium-faq-list p {
  padding: 0 18px 16px;
  line-height: 1.55;
}

body[data-page="home"] .seo-home-section {
  max-width: 900px;
}

body[data-page="home"] .seo-intro-card,
body[data-page="home"] .seo-text-card {
  padding: 22px;
  border-radius: 20px;
}

body[data-page="home"] .seo-intro-card h2,
body[data-page="home"] .seo-text-card h2 {
  font-size: clamp(24px, 3vw, 32px);
}

body[data-page="home"] .seo-intro-card p,
body[data-page="home"] .seo-text-card p,
body[data-page="home"] .seo-step-list {
  font-size: 15px;
  line-height: 1.6;
}

.seo-details {
  margin-top: 12px;
  padding: 0;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.seo-details summary {
  padding: 14px 16px;
  color: #075985;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.seo-details summary::-webkit-details-marker {
  display: none;
}

.seo-details summary::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 10px;
  border-right: 2px solid #0ea5e9;
  border-bottom: 2px solid #0ea5e9;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.seo-details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.seo-details > p,
.seo-wide-details > .page-grid,
.seo-wide-details > .seo-link-grid {
  padding: 0 16px 16px;
}

.seo-wide-details {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(248, 250, 252, 0.72)),
    #ffffff;
}

@media (max-width: 1024px) {
  body[data-page="home"] .premium-hero {
    min-height: auto;
  }

  .quick-access-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-access-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .quick-access-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 980px) {
  body[data-page="home"] .premium-dashboard-card {
    gap: 10px;
  }

  body[data-page="home"] .dashboard-connection-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="home"] .dashboard-connection-map div {
    min-width: 0;
    padding: 10px 8px;
    border-radius: 14px;
  }

  body[data-page="home"] .dashboard-connection-map small {
    font-size: 11px;
  }

  body[data-page="home"] .dashboard-connection-map strong {
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  body[data-page="home"] .dashboard-meter,
  body[data-page="home"] .dashboard-feature-list {
    display: none;
  }

  body[data-page="home"] .dashboard-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  body[data-page="home"] .dashboard-platforms span {
    flex: 1 1 calc(50% - 7px);
    min-height: 34px;
    padding: 8px 9px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .page-shell {
    padding-top: 12px;
    padding-bottom: 36px;
  }

  body[data-page="home"] .premium-section {
    margin-top: 38px;
  }

  body[data-page="home"] .premium-hero {
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 14px;
  }

  body[data-page="home"] .premium-hero-copy h1 {
    font-size: clamp(31px, 9vw, 40px);
  }

  body[data-page="home"] .premium-hero-copy p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.5;
  }

  body[data-page="home"] .premium-hero-actions {
    margin-top: 16px;
  }

  body[data-page="home"] .premium-dashboard-card {
    padding: 18px;
    gap: 10px;
  }

  body[data-page="home"] .dashboard-connection-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="home"] .dashboard-connection-map div {
    min-width: 0;
    padding: 10px 8px;
    border-radius: 14px;
  }

  body[data-page="home"] .dashboard-connection-map small {
    font-size: 11px;
  }

  body[data-page="home"] .dashboard-connection-map strong {
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  body[data-page="home"] .dashboard-meter,
  body[data-page="home"] .dashboard-feature-list {
    display: none;
  }

  body[data-page="home"] .dashboard-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  body[data-page="home"] .dashboard-platforms span {
    flex: 1 1 calc(50% - 7px);
    min-height: 34px;
    padding: 8px 9px;
  }

  .hero-floating-badge {
    display: none;
  }

  .quick-access-section {
    margin-top: 4px;
  }

  .quick-access-panel {
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
  }

  .quick-access-nav a {
    min-height: 40px;
    padding: 9px 13px;
  }

  body[data-page="home"] .service-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .service-status-card {
    min-height: 66px;
    padding: 12px;
  }

  body[data-page="home"] .service-status-card strong {
    font-size: 14px;
  }

  body[data-page="home"] .premium-product-card,
  body[data-page="home"] .premium-mini-card,
  body[data-page="home"] .premium-steps article,
  body[data-page="home"] .tariff-preview-card,
  body[data-page="home"] .quick-device-card,
  body[data-page="home"] .premium-proxy-banner,
  body[data-page="home"] .premium-news-card {
    padding: 16px;
  }

  body[data-page="home"] .clean-check-list {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .quick-device-actions .primary-btn,
  body[data-page="home"] .quick-device-actions .text-link {
    width: auto;
    flex: 1 1 120px;
  }

  body[data-page="home"] .premium-instruction-grid {
    gap: 12px;
  }

  body[data-page="home"] .seo-intro-card,
  body[data-page="home"] .seo-text-card {
    padding: 18px;
  }
}

@media (max-width: 390px) {
  body[data-page="home"] .service-status-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .quick-device-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.cabinet-autopay-card {
  min-height: 100%;
}

.status-badge.is-muted {
  background: rgba(148, 163, 184, 0.16);
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.24);
}

.payment-autopay-notice {
  margin-bottom: 12px;
}

.payment-method-row.is-autopay {
  border-color: rgba(20, 184, 166, 0.36);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.96), #fff);
}

.payment-method-row.is-autopay.is-selected {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.payment-method-row.is-autopay.is-selected .payment-method-radio {
  border-color: #14b8a6;
}

.payment-method-row.is-autopay.is-selected .payment-method-radio::after {
  background: #14b8a6;
}

.method-logo-autopay {
  min-width: 74px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  letter-spacing: 0.06em;
}

@media (max-width: 520px) {
  .payment-method-row.is-autopay {
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
  }

  .payment-method-row.is-autopay .payment-method-left {
    grid-template-columns: 16px 44px minmax(0, 1fr);
    width: 100%;
    gap: 8px;
  }

  .payment-method-row.is-autopay .method-logo-autopay {
    width: 44px;
    min-width: 0;
    padding: 0 5px;
    font-size: 9px;
    letter-spacing: 0;
  }

  .payment-method-row.is-autopay .payment-method-title {
    min-width: 0;
  }

  .payment-method-row.is-autopay .payment-method-title small {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .payment-method-row.is-autopay .payment-method-right {
    width: auto;
    min-width: 54px;
    justify-items: end;
    white-space: nowrap;
    padding-left: 0;
  }
}

/* v2026-06-12 compact UI pass */
:root {
  --radius: 20px;
  --shadow: 0 16px 42px rgba(30, 64, 112, 0.10);
}

.container {
  width: min(1120px, calc(100% - 28px));
}

.page-shell,
body[data-page="home"] .page-shell,
body[data-page="proxy"] .page-shell,
.platform-page-shell,
.proxy-page-shell {
  padding-top: 16px;
  padding-bottom: 44px;
}

[id] {
  scroll-margin-top: 92px;
}

h1,
.platform-page-hero h1,
.proxy-hero-copy h1,
.premium-hero-copy h1 {
  font-size: clamp(38px, 4.5vw, 48px);
  line-height: 1.05;
}

h2,
.section-heading h2,
.proxy-section-head h2,
.payment-page-section-head h2,
.payment-page-details-card h3 {
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.12;
}

h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

p,
li,
.hero-text,
.section-text,
.tariff-copy,
.proxy-hero-lead,
.section-heading p,
.premium-hero-copy p,
.platform-page-hero p {
  font-size: 15px;
  line-height: 1.55;
}

.hero-card,
.stats-card,
.panel-card,
.tariff-card,
.admin-user-card,
.inbox-item,
.panel-subcard,
.trial-card,
.download-admin-card,
.legal-doc-card,
.premium-dashboard-card,
.premium-product-card,
.premium-mini-card,
.tariff-preview-card,
.quick-device-card,
.premium-proxy-banner,
.premium-news-card,
.seo-intro-card,
.seo-text-card,
.payment-page-order-card,
.payment-page-methods-card,
.payment-page-details-card,
.auth-card,
.payment-card,
.payment-summary-card,
.request-card,
.proxy-soft-card,
.proxy-donation-card,
.proxy-dashboard-card,
.proxy-info-card,
.proxy-metric-card,
.proxy-purpose-card,
.proxy-expense-card,
.proxy-step-card,
.proxy-faq-item,
.installer-block,
.custom-tariff-card {
  border-radius: 18px;
  padding: 18px;
}

.panel-subcard,
.payment-summary-card,
.request-card,
.proxy-detail-card,
.proxy-faq-item {
  border-radius: 16px;
}

.page-grid,
.premium-grid,
.tariff-preview-grid,
.premium-instruction-grid,
.premium-product-grid,
.service-status-grid,
.platform-page-grid,
.platform-tariff-grid,
.quick-actions-grid,
.cabinet-metrics-grid,
.proxy-metrics-grid,
.proxy-purpose-grid,
.proxy-steps-grid,
.proxy-expense-grid,
.admin-hero-grid,
.admin-hero-stats,
.news-feed-grid,
.stack-list {
  gap: 14px;
}

.top-gap {
  margin-top: 12px;
}

.top-gap-large {
  margin-top: 18px;
}

.bottom-gap {
  margin-bottom: 12px;
}

.card-top,
.admin-user-head,
.inbox-item-title,
.payment-page-order-top,
.payment-page-product-row,
.payment-page-order-meta,
.payment-page-section-head,
.custom-tariff-head,
.section-heading {
  gap: 10px;
  margin-bottom: 10px;
}

.eyebrow,
.compact-eyebrow,
.status-badge,
.price-badge,
.kind-pill,
.payment-page-product-badge,
.payment-page-status {
  min-height: 26px;
  padding: 5px 9px;
  font-size: 12px;
}

.outline-btn,
.ghost-btn,
.primary-btn,
.mini-btn,
.danger-btn,
.text-btn,
.auth-tab,
.nav-link {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 14px;
}

.mini-btn,
.text-btn,
.chip,
.proxy-quick-amounts button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 13px;
}

.button-row,
.nav-actions,
.admin-actions,
.proxy-hero-actions,
.premium-hero-actions,
.quick-device-actions {
  gap: 9px;
}

.field {
  gap: 6px;
  margin-bottom: 10px;
}

.field input,
.field textarea,
.field select,
.news-editor-card textarea,
.support-card textarea,
.support-card select,
.proxy-support-form input {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
}

.field textarea,
.news-editor-card textarea,
.support-card textarea {
  min-height: 110px;
}

.data-line,
.stat-line,
.expense-row {
  gap: 10px;
  padding: 8px 0;
}

.notice,
.auth-message,
.dev-code,
.payment-page-points-box,
.payment-autopay-notice,
.proxy-callout {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
}

body[data-page="home"] .premium-section {
  margin-top: 52px;
}

body[data-page="home"] .premium-hero {
  min-height: min(450px, calc(100vh - 120px));
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 16px;
}

body[data-page="home"] .premium-dashboard-card,
body[data-page="home"] .premium-product-card,
body[data-page="home"] .premium-mini-card,
body[data-page="home"] .tariff-preview-card,
body[data-page="home"] .quick-device-card {
  padding: 16px;
}

body[data-page="home"] .service-status-card {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 14px;
}

body[data-page="home"] .premium-product-card > strong,
body[data-page="home"] .quick-device-card h3,
body[data-page="home"] .premium-mini-card h3 {
  font-size: 18px;
}

body[data-page="home"] .tariff-preview-card > strong {
  font-size: 21px;
}

.platform-page-hero {
  padding: 20px;
  gap: 14px;
}

.platform-page-icon {
  width: 72px;
  height: 72px;
}

.platform-section-nav {
  gap: 8px;
  padding: 8px;
}

.platform-section-nav a {
  min-height: 34px;
  padding: 7px 10px;
}

.platform-pricing-card,
.platform-tariff-card {
  padding: 18px;
}

.tariff-topline {
  margin-bottom: 8px;
}

.tariff-price-wrap {
  gap: 4px;
  margin: 8px 0 10px;
}

.tariff-main-price {
  font-size: 31px;
}

.tariff-main-price .tariff-price-value {
  font-size: 36px;
}

.tariff-currency {
  font-size: 22px;
}

.discount-pill {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 12px;
}

.feature-list {
  gap: 7px;
}

.custom-tariff-controls,
.custom-rate-list {
  gap: 12px;
}

body[data-page="proxy"] .proxy-compact-hero {
  gap: 16px;
  padding: 8px 0;
}

body[data-page="proxy"] .proxy-compact-hero .proxy-hero-copy {
  min-height: 0;
  padding: 22px;
  gap: 10px;
}

body[data-page="proxy"] .proxy-compact-hero .proxy-donation-card {
  padding: 18px;
  gap: 10px;
}

body[data-page="proxy"] .proxy-dashboard-section,
body[data-page="proxy"] .proxy-purpose-section,
body[data-page="proxy"] .proxy-instructions-section,
body[data-page="proxy"] .proxy-expenses-section,
body[data-page="proxy"] .proxy-seo-section,
body[data-page="proxy"] .proxy-faq-section {
  padding: 34px 0 0;
}

body[data-page="proxy"] .proxy-metric-card {
  min-height: 112px;
  padding: 14px;
}

body[data-page="proxy"] .metric-value,
body[data-page="proxy"] .proxy-metric-card strong {
  font-size: clamp(22px, 2vw, 27px);
}

body[data-page="proxy"] .proxy-purpose-card,
body[data-page="proxy"] .proxy-step-card,
body[data-page="proxy"] .proxy-expense-card {
  min-height: 0;
  padding: 16px;
}

body[data-page="proxy"] .proxy-detail-card summary {
  min-height: 48px;
  padding: 12px 14px;
}

body[data-page="proxy"] .proxy-detail-body {
  padding: 0 14px 14px;
}

.cabinet-user-intro {
  padding: 4px 0 10px;
}

.cabinet-user-intro h1 {
  font-size: clamp(32px, 4vw, 42px);
}

.cabinet-tabs-wrap {
  margin-bottom: 10px;
}

.cabinet-tabs {
  gap: 6px;
  padding: 6px;
}

.cabinet-tab {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.cabinet-section {
  padding-top: 18px;
}

.cabinet-section .panel-card {
  padding: 16px;
}

.cabinet-section .panel-subcard,
.cabinet-purchase-list .request-card,
.quick-link-card {
  padding: 12px;
  min-height: 0;
}

.cabinet-section .card-top p,
.cabinet-section .panel-subcard p,
.cabinet-section .quick-link-card span {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cabinet-section .data-line {
  padding: 7px 0;
}

.cabinet-metrics-grid .panel-subcard strong {
  font-size: 20px;
}

.cabinet-access-value,
.mono.code-wrap {
  font-size: 13px;
  line-height: 1.35;
}

.auth-overlay {
  padding: 14px;
}

.auth-card {
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  border-radius: 22px;
  padding: 18px;
}

.small-card {
  width: min(460px, 100%);
}

.auth-topbar {
  margin-bottom: 10px;
}

.auth-head h2 {
  font-size: 26px;
  margin-bottom: 5px;
}

.auth-head p {
  margin-bottom: 12px;
  font-size: 14px;
}

.auth-tabs {
  gap: 7px;
  margin-bottom: 12px;
}

.payment-card {
  max-width: min(520px, 100%);
}

.support-chat-panel {
  min-height: 440px;
  gap: 10px;
}

.support-chat-messages {
  max-height: 340px;
  gap: 8px;
  padding: 10px;
}

.support-message-bubble {
  padding: 9px 11px;
  border-radius: 14px;
}

.payment-page-shell {
  padding-top: 12px;
  padding-bottom: 30px;
}

.payment-page-grid {
  gap: 14px;
}

.payment-page-product-row h1 {
  font-size: 27px;
}

.payment-page-product-price {
  font-size: 18px;
}

.payment-method-row {
  padding: 12px 14px;
  border-radius: 14px;
  gap: 10px;
}

.method-logo {
  height: 40px;
  min-width: 86px;
  border-radius: 11px;
}

.payment-page-total-row {
  padding-top: 12px;
}

.payment-page-total-row strong {
  font-size: 27px;
}

@media (max-width: 980px) {
  .page-grid.two,
  .page-grid.three,
  .page-grid.four,
  .premium-grid,
  .platform-page-grid,
  .proxy-compact-hero,
  .admin-hero-grid {
    gap: 12px;
  }

  body[data-page="home"] .premium-hero,
  .platform-page-hero {
    min-height: 0;
  }

  .payment-page-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  .page-shell,
  body[data-page="home"] .page-shell,
  body[data-page="proxy"] .page-shell,
  .platform-page-shell,
  .proxy-page-shell {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  h1,
  .platform-page-hero h1,
  .proxy-hero-copy h1,
  .premium-hero-copy h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.08;
  }

  h2,
  .section-heading h2,
  .proxy-section-head h2,
  .payment-page-section-head h2 {
    font-size: clamp(23px, 6vw, 27px);
  }

  h3 {
    font-size: 20px;
  }

  p,
  li,
  .hero-text,
  .section-text,
  .tariff-copy,
  .section-heading p,
  .premium-hero-copy p,
  .platform-page-hero p {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-card,
  .stats-card,
  .panel-card,
  .tariff-card,
  .admin-user-card,
  .inbox-item,
  .panel-subcard,
  .trial-card,
  .download-admin-card,
  .legal-doc-card,
  .premium-dashboard-card,
  .premium-product-card,
  .premium-mini-card,
  .tariff-preview-card,
  .quick-device-card,
  .premium-proxy-banner,
  .premium-news-card,
  .seo-intro-card,
  .seo-text-card,
  .payment-page-order-card,
  .payment-page-methods-card,
  .payment-page-details-card,
  .auth-card,
  .payment-card,
  .payment-summary-card,
  .request-card,
  .proxy-soft-card,
  .proxy-donation-card,
  .proxy-dashboard-card,
  .proxy-info-card,
  .proxy-metric-card,
  .proxy-purpose-card,
  .proxy-expense-card,
  .proxy-step-card,
  .proxy-faq-item,
  .installer-block,
  .custom-tariff-card {
    border-radius: 16px;
    padding: 14px;
  }

  .page-grid,
  .premium-grid,
  .tariff-preview-grid,
  .premium-instruction-grid,
  .premium-product-grid,
  .service-status-grid,
  .platform-page-grid,
  .platform-tariff-grid,
  .quick-actions-grid,
  .cabinet-metrics-grid,
  .proxy-metrics-grid,
  .proxy-purpose-grid,
  .proxy-steps-grid,
  .proxy-expense-grid,
  .stack-list {
    gap: 10px;
  }

  .button-row,
  .admin-actions,
  .proxy-hero-actions,
  .premium-hero-actions,
  .quick-device-actions {
    gap: 8px;
  }

  .button-row > a,
  .button-row > button,
  .primary-btn,
  .ghost-btn,
  .outline-btn,
  .mini-btn,
  .danger-btn {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 12px;
  }

  .field input,
  .field textarea,
  .field select,
  .proxy-support-form input {
    min-height: 40px;
    padding: 9px 11px;
  }

  body[data-page="home"] .premium-section {
    margin-top: 34px;
  }

  body[data-page="home"] .premium-hero {
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  body[data-page="home"] .premium-dashboard-card,
  body[data-page="home"] .premium-product-card,
  body[data-page="home"] .premium-mini-card,
  body[data-page="home"] .tariff-preview-card,
  body[data-page="home"] .quick-device-card,
  body[data-page="home"] .premium-proxy-banner,
  body[data-page="home"] .premium-news-card {
    padding: 14px;
  }

  .platform-page-hero {
    padding: 14px;
  }

  .platform-page-icon {
    width: 58px;
    height: 58px;
  }

  .tariff-main-price {
    font-size: 27px;
  }

  .tariff-main-price .tariff-price-value {
    font-size: 31px;
  }

  .tariff-currency {
    font-size: 19px;
  }

  body[data-page="proxy"] .proxy-dashboard-section,
  body[data-page="proxy"] .proxy-purpose-section,
  body[data-page="proxy"] .proxy-instructions-section,
  body[data-page="proxy"] .proxy-expenses-section,
  body[data-page="proxy"] .proxy-seo-section,
  body[data-page="proxy"] .proxy-faq-section {
    padding-top: 24px;
  }

  body[data-page="proxy"] .proxy-compact-hero .proxy-hero-copy,
  body[data-page="proxy"] .proxy-compact-hero .proxy-donation-card,
  body[data-page="proxy"] .proxy-info-card {
    padding: 14px;
  }

  .cabinet-user-intro {
    padding-bottom: 6px;
  }

  .cabinet-tabs {
    display: flex;
    overflow-x: auto;
    padding: 5px;
    gap: 5px;
  }

  .cabinet-tab {
    white-space: nowrap;
    min-height: 32px;
    padding: 6px 9px;
  }

  .cabinet-section {
    padding-top: 12px;
  }

  .cabinet-section .panel-card {
    padding: 14px;
  }

  .cabinet-section .card-top {
    align-items: flex-start;
  }

  .cabinet-section .data-line,
  .payment-summary-card .data-line,
  .request-card .data-line,
  .admin-user-meta .data-line {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 8px;
  }

  .data-line strong {
    text-align: right;
    min-width: 0;
  }

  .auth-overlay {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  }

  .auth-card {
    max-height: calc(100vh - 16px);
    padding: 14px;
    border-radius: 18px;
  }

  .auth-head h2 {
    font-size: 23px;
  }

  .auth-tabs {
    margin-bottom: 10px;
  }

  .support-chat-panel {
    min-height: 60vh;
    padding: 14px;
  }

  .payment-page-shell {
    padding-top: 8px;
    padding-left: 0;
    padding-right: 0;
  }

  .payment-page-product-row h1 {
    font-size: 23px;
  }

  .payment-page-total-row strong {
    font-size: 25px;
  }

  .payment-method-row {
    padding: 11px;
    gap: 8px;
  }

  .payment-method-title strong {
    font-size: 14px;
  }

  .payment-method-title small,
  .payment-method-right span {
    font-size: 11px;
  }

  .payment-method-right strong {
    font-size: 15px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 16px, 1120px);
  }

  .payment-method-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .payment-method-right {
    width: 100%;
    justify-items: start;
    white-space: normal;
  }

  .data-line,
  .cabinet-section .data-line,
  .payment-summary-card .data-line,
  .request-card .data-line {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .data-line strong {
    text-align: left;
  }
}

/* v2026-06-12 compact UI figure stability */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.instruction-card,
.guide-figure-wrap {
  max-width: 100%;
  min-width: 0;
}

.guide-figure {
  width: auto;
  max-width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .guide-figure-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
  }

  .guide-figure {
    width: 100%;
    object-fit: contain;
  }
}

/* v2026-06-12 cabinet recurring payment unlink checkbox */
.cabinet-autopay-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.cabinet-autopay-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent-2);
}

/* v2026-06-18 HAPP-only public product layout */
.happ-only-product-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 780px;
  margin-inline: auto;
}

/* Personal Telegram Proxy */
.admin-users-summary-grid { display: grid; grid-template-columns: minmax(240px, 360px); }
.admin-users-total-card { display: grid; gap: 7px; padding: 24px 26px; background: linear-gradient(135deg, rgba(32, 183, 231, .14), var(--panel)); }
.admin-users-total-value { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1; color: var(--accent); }

.personal-proxy-page { padding-top: 42px; padding-bottom: 72px; }
.personal-proxy-hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.personal-proxy-hero h1 { max-width: 780px; margin: 8px 0 12px; }
.personal-proxy-hero p { max-width: 720px; margin: 0; color: var(--muted); }
.personal-proxy-price { min-width: 245px; display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.personal-proxy-price span { color: var(--muted); }
.personal-proxy-price strong { text-align: right; }
.personal-proxy-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 20px; }
.personal-proxy-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.personal-proxy-main-card, .personal-proxy-topup-card, .personal-proxy-history { padding: 26px; }
.personal-proxy-balance-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.personal-proxy-balance-row > div { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.personal-proxy-balance-row span, .personal-proxy-endpoint span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .84rem; }
.personal-proxy-balance-row strong { font-size: clamp(1.35rem, 3vw, 2rem); }
.personal-proxy-actions { align-items: center; }
.personal-proxy-endpoint { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; }
.personal-proxy-endpoint code { display: block; margin-bottom: 7px; font-size: 1rem; overflow-wrap: anywhere; }
.personal-proxy-endpoint small { color: var(--muted); }
.personal-proxy-history { margin-top: 20px; }
.personal-proxy-history-list { display: grid; gap: 10px; }
.personal-proxy-history-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.personal-proxy-history-list span, .personal-proxy-history-list small { color: var(--muted); }
.status-active { color: var(--success); }
.status-disabled, .status-payment_due { color: var(--warning); }
.personal-proxy-login-card { max-width: 680px; padding: 32px; }

@media (max-width: 820px) {
  .personal-proxy-hero { align-items: stretch; flex-direction: column; }
  .personal-proxy-price { min-width: 0; }
  .personal-proxy-grid, .personal-proxy-info-grid { grid-template-columns: 1fr; }
  .personal-proxy-history-list > div { grid-template-columns: 1fr auto; }
  .personal-proxy-history-list small { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .personal-proxy-page { padding-top: 24px; }
  .personal-proxy-main-card, .personal-proxy-topup-card, .personal-proxy-history { padding: 20px; }
  .personal-proxy-balance-row { grid-template-columns: 1fr; }
  .personal-proxy-actions > * { width: 100%; }
}
