: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;
}

: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;
}

/* I-Freedom Free */
body[data-page="free"] {
  background: #ffffff;
  color: #102b49;
}

body[data-page="free"] .page-shell {
  padding: 0;
  overflow: clip;
}

.if-free-hero {
  padding: 62px 0 72px;
  border-bottom: 1px solid #d8e6ef;
  background: linear-gradient(180deg, #f1f9fd 0%, #ffffff 100%);
}

.if-free-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(380px, 1.06fr);
  gap: 64px;
  align-items: center;
}

.if-free-hero-copy,
.if-free-hero-media,
.if-free-compare-copy,
.if-free-compare-table-wrap {
  min-width: 0;
}

.if-free-kicker {
  color: #0878b8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.if-free-hero h1 {
  margin: 12px 0 16px;
  color: #07162e;
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0;
}

.if-free-hero-copy > p {
  max-width: 620px;
  color: #496985;
  font-size: 18px;
  line-height: 1.6;
}

.if-free-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.if-free-highlights span {
  padding: 7px 10px;
  border: 1px solid #c8dce9;
  border-radius: 6px;
  background: #ffffff;
  color: #24506f;
  font-size: 12px;
  font-weight: 850;
}

.if-free-form {
  width: min(560px, 100%);
  display: grid;
  gap: 13px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #cfe0eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(29, 73, 111, .10);
}

.if-free-form-head h2 {
  margin: 0;
  color: #0b3157;
  font-size: 23px;
  letter-spacing: 0;
}

.if-free-form-head p,
.if-free-form-note {
  color: #668099;
  font-size: 12px;
  line-height: 1.5;
}

.if-free-form-head p {
  margin-top: 5px;
}

.if-free-email-field {
  margin: 0;
}

.if-free-email-field input[readonly] {
  background: #f3f7fa;
  color: #284b68;
  cursor: default;
}

.if-free-form .primary-btn {
  min-height: 48px;
}

.if-free-form .auth-message {
  margin: 0;
}

.if-free-hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d3e3ed;
  border-radius: 8px;
  background: #eaf5fb;
  box-shadow: 0 26px 62px rgba(25, 68, 106, .13);
}

.if-free-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.if-free-hero-media figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 3px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 7px;
  background: rgba(7, 34, 61, .90);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.if-free-hero-media figcaption strong {
  font-size: 17px;
}

.if-free-hero-media figcaption span {
  color: #cce7f5;
  font-size: 12px;
}

.if-free-premium,
.if-free-compare,
.if-free-steps {
  padding: 82px 0;
}

.if-free-premium {
  background: #ffffff;
}

.if-free-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}

.if-free-section-head h2,
.if-free-compare-copy h2 {
  margin: 8px 0 0;
  color: #0b1a33;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.if-free-section-head > p,
.if-free-compare-copy > p {
  color: #58718a;
  font-size: 15px;
  line-height: 1.65;
}

.if-free-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.if-free-premium-grid article {
  min-width: 0;
  padding: 22px 0 0;
  border-top: 2px solid #a9d7e8;
}

.if-free-premium-grid article > span {
  color: #0c9369;
  font-size: 12px;
  font-weight: 900;
}

.if-free-premium-grid h3 {
  margin: 10px 0 8px;
  color: #102b49;
  font-size: 20px;
  letter-spacing: 0;
}

.if-free-premium-grid p {
  color: #58718a;
  font-size: 14px;
  line-height: 1.6;
}

.if-free-premium-action {
  margin-top: 34px;
}

.if-free-premium-action .primary-btn {
  min-height: 48px;
}

.if-free-compare {
  border-top: 1px solid #d8e6ef;
  border-bottom: 1px solid #d8e6ef;
  background: #eef7fb;
}

.if-free-compare-layout {
  display: grid;
  grid-template-columns: minmax(280px, .74fr) minmax(0, 1.26fr);
  gap: 72px;
  align-items: start;
}

.if-free-compare-copy > p {
  margin-top: 16px;
}

.if-free-compare-table-wrap {
  overflow-x: auto;
  border: 1px solid #cadce8;
  border-radius: 8px;
  background: #ffffff;
}

.if-free-compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.if-free-compare-table th,
.if-free-compare-table td {
  padding: 15px 17px;
  border-bottom: 1px solid #dfebf2;
  text-align: left;
  font-size: 13px;
}

.if-free-compare-table thead th {
  background: #0b3157;
  color: #ffffff;
  font-weight: 900;
}

.if-free-compare-table tbody th {
  width: 46%;
  color: #294b68;
  font-weight: 800;
}

.if-free-compare-table td {
  color: #4c6880;
}

.if-free-compare-table td span {
  color: #0b996b;
  font-size: 17px;
  font-weight: 900;
}

.if-free-compare-table tbody tr:last-child th,
.if-free-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.if-free-steps {
  background: #ffffff;
}

.if-free-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.if-free-step-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid #bdd6e5;
}

.if-free-step-grid article > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0d83bd;
  color: #ffffff;
  font-weight: 900;
}

.if-free-step-grid h3 {
  margin: 1px 0 7px;
  color: #102b49;
  font-size: 18px;
  letter-spacing: 0;
}

.if-free-step-grid p {
  color: #58718a;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .if-free-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
    gap: 36px;
  }

  .if-free-hero h1 {
    font-size: 48px;
  }

  .if-free-premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .if-free-compare-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .if-free-hero {
    padding: 36px 0 48px;
  }

  .if-free-hero-layout,
  .if-free-section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .if-free-hero h1 {
    margin: 9px 0 13px;
    font-size: 40px;
  }

  .if-free-hero-copy > p {
    font-size: 15px;
  }

  .if-free-form {
    margin-top: 22px;
    padding: 17px;
  }

  .if-free-hero-media figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .if-free-premium,
  .if-free-compare,
  .if-free-steps {
    padding: 54px 0;
  }

  .if-free-section-head {
    margin-bottom: 28px;
  }

  .if-free-section-head h2,
  .if-free-compare-copy h2 {
    font-size: 30px;
  }

  .if-free-premium-grid,
  .if-free-step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .if-free-premium-grid article {
    padding-top: 17px;
  }

  .if-free-premium-action .primary-btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .if-free-hero {
    padding-top: 28px;
  }

  .if-free-hero h1 {
    font-size: 36px;
  }

  .if-free-highlights {
    display: grid;
    grid-template-columns: 1fr;
  }

  .if-free-highlights span {
    width: 100%;
  }

  .if-free-form,
  .if-free-hero-media,
  .if-free-compare-table-wrap {
    max-width: 100%;
  }
}

/* VPN checkout: discounted recurring card. */
body[data-page="payment"] .payment-method-row.is-autopay {
  border-color: rgba(14, 155, 164, 0.42);
  background: #effbfb;
}

body[data-page="payment"] .payment-method-row.is-autopay:hover,
body[data-page="payment"] .payment-method-row.is-autopay.is-selected {
  border-color: #0e9ba4;
  background: #e7f8f8;
  box-shadow: 0 0 0 3px rgba(14, 155, 164, 0.12);
}

body[data-page="payment"] .payment-method-row.is-autopay.is-selected .payment-method-radio {
  border-color: #0e9ba4;
}

body[data-page="payment"] .payment-method-row.is-autopay.is-selected .payment-method-radio::after {
  background: #0e9ba4;
}

body[data-page="payment"] .payment-method-row.is-autopay .payment-method-right strong {
  color: #087f89;
}

body[data-page="payment"] .method-logo-autopay {
  min-width: 0;
  background: #ffffff;
}

@media (max-width: 520px) {
  body[data-page="payment"] .payment-method-list {
    gap: 8px;
  }

  body[data-page="payment"] .payment-method-row,
  body[data-page="payment"] .payment-method-row.is-autopay {
    min-width: 0;
    padding: 11px 10px;
  }

  body[data-page="payment"] .payment-method-title strong {
    font-size: 13px;
  }

  body[data-page="payment"] .payment-method-title small {
    white-space: normal;
    font-size: 11px;
    line-height: 1.25;
  }

  body[data-page="payment"] .payment-method-right {
    min-width: 58px;
  }
}

/* Unified account dashboard v66 */
body[data-page="cabinet"] {
  background: #f5f9fb;
  overscroll-behavior-y: none;
}

.if-account-page {
  min-height: calc(100vh - 76px);
  padding: 30px 0 68px;
  background: #f5f9fb;
  color: #102b3b;
}

.if-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 30px;
}

.if-account-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.if-account-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #dbe9ef;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 74, 96, 0.08);
}

.if-account-avatar img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.if-account-identity h1 {
  overflow: hidden;
  max-width: 680px;
  margin: 0;
  color: #112d3d;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.if-account-identity p {
  overflow: hidden;
  max-width: 680px;
  margin: 4px 0 0;
  color: #6b7f8b;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.if-account-settings-btn,
.if-account-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #cddde5;
  border-radius: 7px;
  background: #fff;
  color: #173849;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.if-account-settings-btn:hover {
  border-color: #89c9d8;
  background: #eef9fb;
  color: #087f9c;
}

.if-account-main {
  display: grid;
  gap: 20px;
}

.if-account-section-title,
.if-account-panel-head,
.if-account-subscription-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.if-account-section-title {
  align-items: flex-end;
  margin-top: 4px;
}

.if-account-section-title h2,
.if-account-panel-head h2 {
  margin: 0;
  color: #112d3d;
  letter-spacing: 0;
}

.if-account-section-title h2 {
  font-size: 27px;
  line-height: 1.15;
}

.if-account-text-link {
  flex: 0 0 auto;
  color: #087f9c;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
}

.if-account-text-link:hover {
  text-decoration: underline;
}

.if-account-subscription-card,
.if-account-panel {
  min-width: 0;
  border: 1px solid #dbe8ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 57, 76, 0.055);
}

.if-account-subscription-card {
  padding: 26px;
}

.if-account-plan {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.if-account-plan-icon {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: #e9f8fb;
  color: #0785a2;
  font-size: 17px;
  font-weight: 900;
}

.if-account-plan > div:last-child {
  min-width: 0;
}

.if-account-plan-label,
.if-account-panel-label {
  display: block;
  color: #6d818c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.if-account-plan h3 {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: #102e3e;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 0;
}

.if-account-plan p {
  margin: 5px 0 0;
  color: #697d88;
  font-size: 13px;
  line-height: 1.45;
}

.if-account-active-badge {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  min-width: 124px;
  padding: 10px 13px;
  border: 1px solid #bfe3d5;
  border-radius: 7px;
  background: #edf9f4;
  color: #176c52;
  text-align: center;
}

.if-account-active-badge > span {
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.if-account-active-badge small {
  font-size: 11px;
  line-height: 1.3;
}

.if-account-active-badge strong {
  font-weight: 850;
}

.if-account-active-badge.is-inactive {
  border-color: #d7e3e8;
  background: #f4f7f8;
  color: #607682;
}

.if-account-active-badge.is-error {
  border-color: #efc6c9;
  background: #fff3f4;
  color: #a13640;
}

.if-account-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e5edf1;
}

.if-account-plan-actions .primary-btn,
.if-account-plan-actions .if-account-cancel-btn {
  min-width: 210px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13px;
}

.if-account-cancel-btn {
  border-color: #e6b9bd;
  color: #a8323b;
}

.if-account-cancel-btn:hover {
  border-color: #d8838a;
  background: #fff5f5;
}

.if-account-subscription-card > .notice {
  margin-top: 16px;
}

.if-account-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 20px;
}

.if-account-panel {
  padding: 23px;
}

.if-account-panel-head {
  margin-bottom: 17px;
}

.if-account-panel-head h2 {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.25;
}

.if-account-panel-head p {
  margin: 6px 0 0;
  color: #687d89;
  font-size: 13px;
  line-height: 1.45;
}

.if-account-info-list {
  overflow: hidden;
  border-top: 1px solid #e5edf1;
}

.if-account-info-list > div,
.if-account-autopay-plan,
.if-account-cancel-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid #e5edf1;
}

.if-account-info-list span,
.if-account-autopay-plan span,
.if-account-cancel-method span {
  color: #71838e;
  font-size: 12px;
  line-height: 1.35;
}

.if-account-info-list strong,
.if-account-autopay-plan strong,
.if-account-cancel-method strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #173545;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

.if-account-history {
  min-height: 100%;
}

.if-account-payment-list {
  max-height: 365px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.if-account-payment-table {
  min-width: 0;
  border: 1px solid #e1eaf0;
  border-radius: 7px;
}

.if-account-payment-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(110px, 1.35fr) minmax(74px, 0.7fr) auto 32px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 13px;
  color: #1b3949;
  text-decoration: none;
}

.if-account-payment-row + .if-account-payment-row {
  border-top: 1px solid #e7eef2;
}

.if-account-payment-row:hover {
  background: #f5fafc;
}

.if-account-payment-row span,
.if-account-payment-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.if-account-payment-row strong {
  font-size: 13px;
}

.if-account-payment-status {
  display: inline-flex;
  justify-content: center;
  min-width: 76px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf7fa;
  color: #14758d;
  font-size: 10px !important;
  font-weight: 800;
}

.if-account-payment-status.is-approved {
  background: #eaf8f2;
  color: #177052;
}

.if-account-payment-status.is-declined {
  background: #fff0f1;
  color: #a83640;
}

.if-account-payment-arrow {
  color: #188ba6;
  font-size: 20px !important;
  text-align: right;
}

.if-account-empty-history {
  display: grid;
  gap: 10px;
  min-height: 174px;
  place-content: center;
  padding: 24px;
  border: 1px solid #e1eaf0;
  border-radius: 7px;
  text-align: center;
}

.if-account-empty-history h3,
.if-account-empty-history p {
  margin: 0;
}

.if-account-empty-history h3 {
  font-size: 16px;
}

.if-account-empty-history p {
  color: #71838e;
  font-size: 12px;
  line-height: 1.45;
}

.if-account-access-panel .if-cabinet-access,
.if-account-access-panel .if-cabinet-empty {
  padding-top: 4px;
}

.if-account-access-panel .if-cabinet-data-row:first-child {
  border-top: 1px solid #e5edf1;
}

.if-account-autopay-plan {
  padding-top: 12px;
}

.if-account-dialog {
  width: min(540px, calc(100% - 24px));
  max-height: min(760px, calc(100dvh - 28px));
  overflow: auto;
  padding: 24px;
  border: 1px solid #d6e4eb;
  border-radius: 8px;
  background: #fff;
  color: #153444;
  box-shadow: 0 30px 80px rgba(11, 40, 55, 0.24);
}

.if-account-dialog::backdrop {
  background: rgba(12, 34, 45, 0.52);
  backdrop-filter: blur(4px);
}

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

.if-account-dialog-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.if-account-dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid #d5e2e8;
  border-radius: 50%;
  background: #f6fafb;
  color: #385462;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.if-account-dialog-copy {
  margin: 0 0 16px;
  color: #667b87;
  font-size: 13px;
  line-height: 1.55;
}

.if-account-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.if-account-cancel-method {
  margin: 4px 0 14px;
  border-top: 1px solid #e5edf1;
}

.if-account-cancel-empty {
  margin: 14px 0;
  padding: 13px;
  border: 1px solid #dbe8ee;
  border-radius: 7px;
  background: #f5fafc;
  color: #607783;
  font-size: 12px;
  line-height: 1.5;
}

.if-account-cancel-dialog .danger-btn {
  width: 100%;
  min-height: 44px;
}

@media (max-width: 900px) {
  .if-account-page {
    padding-top: 20px;
  }

  .if-account-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .if-account-page {
    padding: 14px 0 44px;
  }

  .if-account-header {
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 22px;
  }

  .if-account-avatar {
    width: 48px;
    height: 48px;
  }

  .if-account-avatar img {
    width: 36px;
    height: 36px;
  }

  .if-account-identity {
    gap: 11px;
  }

  .if-account-identity h1 {
    max-width: calc(100vw - 182px);
    font-size: 20px;
  }

  .if-account-identity p {
    max-width: calc(100vw - 182px);
    font-size: 11px;
  }

  .if-account-settings-btn {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .if-account-section-title {
    align-items: flex-start;
    gap: 10px;
  }

  .if-account-section-title h2 {
    font-size: 24px;
  }

  .if-account-section-title > .if-account-text-link {
    max-width: 116px;
    font-size: 11px;
    text-align: right;
  }

  .if-account-subscription-card,
  .if-account-panel {
    padding: 17px;
  }

  .if-account-subscription-top {
    display: grid;
  }

  .if-account-plan {
    align-items: flex-start;
  }

  .if-account-plan-icon {
    width: 46px;
    height: 46px;
    font-size: 14px;
  }

  .if-account-plan h3 {
    font-size: 20px;
  }

  .if-account-active-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
  }

  .if-account-plan-actions {
    display: grid;
  }

  .if-account-plan-actions .primary-btn,
  .if-account-plan-actions .if-account-cancel-btn {
    width: 100%;
    min-width: 0;
  }

  .if-account-panel-head {
    gap: 10px;
  }

  .if-account-panel-head h2 {
    font-size: 18px;
  }

  .if-account-panel-head > .if-account-text-link {
    max-width: 96px;
    font-size: 11px;
    text-align: right;
  }

  .if-account-info-list > div,
  .if-account-autopay-plan,
  .if-account-cancel-method {
    align-items: flex-start;
    gap: 10px;
  }

  .if-account-info-list strong,
  .if-account-autopay-plan strong,
  .if-account-cancel-method strong {
    max-width: 58%;
  }

  .if-account-payment-list {
    max-height: 390px;
  }

  .if-account-payment-row {
    grid-template-columns: minmax(0, 1fr) auto 24px;
    gap: 8px;
    padding: 11px;
  }

  .if-account-payment-row [data-payment-date],
  .if-account-payment-row [data-payment-plan] {
    grid-column: 1;
  }

  .if-account-payment-row [data-payment-amount] {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .if-account-payment-row .if-account-payment-status {
    grid-column: 2;
    grid-row: 2;
  }

  .if-account-payment-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .if-account-dialog {
    width: min(100% - 16px, 540px);
    max-height: calc(100dvh - 16px);
    padding: 18px;
  }

  .if-account-dialog-head h2 {
    font-size: 21px;
  }

  .if-account-dialog-actions {
    display: grid;
    width: 100%;
  }

  .if-account-dialog-actions > * {
    width: 100%;
  }
}

.payment-autopay-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(16, 155, 184, 0.24);
  border-radius: 8px;
  background: #f2fbfd;
  color: #46626f;
  font-size: 13px;
  line-height: 1.5;
}

.payment-card-only-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(16, 155, 184, 0.2);
  border-radius: 8px;
  background: #f8fcfd;
}

.payment-card-only-summary > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.payment-card-only-summary strong {
  color: #17394a;
  font-size: 15px;
}

.payment-card-only-summary small {
  color: #667d89;
  font-size: 13px;
  line-height: 1.4;
}

.payment-autopay-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #109bb8;
}

.payment-autopay-consent.has-error {
  border-color: #e36f6f;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(210, 64, 64, 0.1);
}

.payment-autopay-consent.has-error input {
  outline: 2px solid rgba(210, 64, 64, 0.32);
  outline-offset: 2px;
}

.payment-autopay-consent-error {
  margin-top: 8px;
  color: #b52f3a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.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%; }
}
.cabinet-device-list { display: grid; gap: 10px; margin-top: 12px; }
.cabinet-device-row { align-items: center; gap: 12px; }
.cabinet-device-row > span { display: grid; gap: 4px; }
.cabinet-device-row small { color: var(--muted, #7b8798); font-weight: 400; }
.cabinet-device-row .danger-btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .cabinet-device-row { align-items: stretch; flex-direction: column; }
  .cabinet-device-row .danger-btn { width: 100%; }
}

/* Payment page: slimmer, more compact method marks. */
body[data-page="payment"] .payment-method-row {
  padding: 10px 12px;
  border-radius: 13px;
  gap: 9px;
}

body[data-page="payment"] .payment-method-left {
  grid-template-columns: 16px 64px minmax(0, 1fr);
  gap: 9px;
}

body[data-page="payment"] .payment-method-radio {
  width: 16px;
  height: 16px;
  border-width: 1.5px;
}

body[data-page="payment"] .method-logo {
  width: 64px;
  min-width: 64px;
  height: 28px;
  padding: 0 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body[data-page="payment"] .method-logo-manual,
body[data-page="payment"] .method-logo-sbp {
  width: 48px;
  min-width: 48px;
}

body[data-page="payment"] .method-logo-manual {
  font-size: 18px;
}

body[data-page="payment"] .method-logo-yoomoney,
body[data-page="payment"] .method-logo-sber {
  gap: 4px;
  font-size: 10px;
}

body[data-page="payment"] .method-logo-yoomoney span,
body[data-page="payment"] .method-logo-sber span {
  width: 16px;
  height: 16px;
  font-size: 9px;
  border-width: 1px;
}

@media (max-width: 520px) {
  body[data-page="payment"] .payment-method-row {
    padding: 9px 10px;
  }

  body[data-page="payment"] .payment-method-left {
    grid-template-columns: 15px 54px minmax(0, 1fr);
    gap: 7px;
  }

  body[data-page="payment"] .method-logo {
    width: 54px;
    min-width: 54px;
    height: 26px;
    padding: 0 5px;
    font-size: 10px;
  }

  body[data-page="payment"] .method-logo-manual,
  body[data-page="payment"] .method-logo-sbp {
    width: 44px;
    min-width: 44px;
  }
}

/* Support messenger refresh */
.cabinet-history-head {
  align-items: center;
}

.history-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(32, 122, 255, 0.22);
  background: rgba(32, 122, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.history-toggle-icon {
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease;
}

.history-toggle-btn.is-open .history-toggle-icon {
  transform: rotate(180deg);
}

.cabinet-history-body {
  margin-top: 16px;
}

.cabinet-history-body[hidden] {
  display: none !important;
}

[data-page="help"] .help-widget-page {
  align-items: flex-start;
  padding-top: 10px;
}

[data-page="help"] .help-widget-shell {
  width: min(100%, 760px);
}

[data-page="help"] .help-widget-workspace,
[data-page="help"] .help-guest-card {
  display: flex;
  flex-direction: column;
  min-height: min(78vh, 760px);
  overflow: hidden;
  border-radius: 24px;
  background: #eef2f7;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

[data-page="help"] .help-widget-top {
  padding: 12px 14px;
  color: #0f172a;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-page="help"] .help-widget-top::before,
[data-page="help"] .help-widget-top::after {
  display: none;
}

.help-support-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  min-height: 50px;
}

[data-page="help"] .help-support-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.2;
}

[data-page="help"] .help-support-avatar {
  width: 46px;
  height: 46px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

[data-page="help"] .help-support-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

[data-page="help"] .help-widget-close-top {
  position: static;
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: #f1f5f9;
  color: #334155;
  box-shadow: none;
  font-size: 18px;
}

[data-page="help"] .help-widget-chat-area {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}

[data-page="help"] .help-chat-messages {
  flex: 1;
  min-height: 430px;
  max-height: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: #e8eef6;
  border: 0;
  border-radius: 0;
  color: #0f172a;
  -webkit-overflow-scrolling: touch;
}

[data-page="help"] .support-message {
  width: 100%;
  margin: 0;
  display: flex;
}

[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: min(78%, 520px);
  width: fit-content;
  display: grid;
  gap: 4px;
  padding: 9px 11px 6px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

[data-page="help"] .support-message.from-admin .support-message-bubble {
  background: #fff;
  color: #0f172a;
  border-bottom-left-radius: 5px;
}

[data-page="help"] .support-message.from-user .support-message-bubble {
  background: #d9fdd3;
  color: #0f172a;
  border-color: rgba(34, 197, 94, 0.18);
  border-bottom-right-radius: 5px;
}

[data-page="help"] .support-message-label {
  display: none;
}

[data-page="help"] .support-message-meta {
  display: flex;
  justify-content: flex-end;
}

[data-page="help"] .support-message-time {
  display: block;
  margin-top: 1px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.1;
  text-align: right;
}

[data-page="help"] .support-message-text {
  color: inherit;
  font-size: 15px;
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

[data-page="help"] .support-message-image {
  max-width: min(260px, 70vw);
  border-radius: 12px;
}

[data-page="help"] .help-compose-form {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 10px 12px 12px;
  background: #eef2f7;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

[data-page="help"] .help-compose-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 8px 9px 8px 13px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

[data-page="help"] .help-compose-box textarea {
  min-height: 38px;
  max-height: 140px;
  resize: none;
  overflow-y: auto;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  line-height: 1.35;
}

[data-page="help"] .help-compose-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-page="help"] .help-compose-emoji-btn {
  display: none;
}

[data-page="help"] .help-compose-icon-btn,
[data-page="help"] .help-send-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
}

[data-page="help"] .help-compose-icon-btn {
  background: #f1f5f9;
  color: #475569;
}

[data-page="help"] .help-send-btn {
  display: grid;
  place-items: center;
  background: #2aabee;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(42, 171, 238, 0.28);
}

.support-thread-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.support-thread-card.active {
  border-color: rgba(42, 171, 238, 0.4);
  background: rgba(42, 171, 238, 0.08);
}

.support-thread-card .support-thread-item {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.support-thread-card .support-thread-item.active {
  border: 0;
  background: transparent;
}

.support-thread-preview,
.support-thread-email {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.support-thread-id-row,
.support-peer-details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.support-user-id-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(42, 171, 238, 0.25);
  background: rgba(42, 171, 238, 0.1);
  color: #0f4f6f;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.copy-user-id-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.copy-user-id-btn.is-copied {
  border-color: rgba(22, 163, 74, 0.25);
  background: #dcfce7;
  color: #166534;
}

body[data-page="admin"] .admin-support-layout {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
}

body[data-page="admin"] .support-chat-panel.messenger-chat-panel {
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

body[data-page="admin"] .support-chat-header {
  padding: 14px 16px;
  color: #0f172a;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.support-dialog-peer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.support-peer-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2aabee;
  color: #fff;
  font-weight: 900;
}

.support-peer-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.support-peer-name {
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.support-peer-email {
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.support-thread-category {
  justify-self: end;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

body[data-page="admin"] .support-chat-messages {
  flex: 1;
  min-height: 390px;
  max-height: 58vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 16px;
  background: #e8eef6;
  border: 0;
  border-radius: 0;
}

body[data-page="admin"] .support-message {
  width: 100%;
  margin: 0;
  display: flex;
}

body[data-page="admin"] .support-message.from-user {
  justify-content: flex-start;
}

body[data-page="admin"] .support-message.from-admin {
  justify-content: flex-end;
}

body[data-page="admin"] .support-message-bubble {
  max-width: min(78%, 560px);
  display: grid;
  gap: 5px;
  padding: 9px 11px 7px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

body[data-page="admin"] .support-message.from-user .support-message-bubble {
  background: #fff;
  color: #0f172a;
  border-bottom-left-radius: 5px;
}

body[data-page="admin"] .support-message.from-admin .support-message-bubble {
  background: #d9fdd3;
  color: #0f172a;
  border-color: rgba(34, 197, 94, 0.18);
  border-bottom-right-radius: 5px;
}

body[data-page="admin"] .support-message-label {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="admin"] .support-message-text {
  color: inherit;
  font-size: 15px;
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body[data-page="admin"] .support-message-meta {
  display: flex;
  justify-content: flex-end;
}

body[data-page="admin"] .support-message-time {
  margin-top: 1px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.1;
  text-align: right;
}

body[data-page="admin"] .support-compose-form {
  padding: 12px;
  background: #eef2f7;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body[data-page="admin"] .messenger-compose-row textarea {
  min-height: 44px;
  resize: none;
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

body[data-page="admin"] .compose-icon-btn {
  background: #fff;
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

body[data-page="admin"] .message-inline-preview,
[data-page="help"] .message-inline-preview {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

@media (max-width: 980px) {
  body[data-page="admin"] .admin-support-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .support-chat-panel.messenger-chat-panel {
    min-height: 64vh;
  }
}

@media (max-width: 760px) {
  .cabinet-history-head {
    gap: 14px;
  }

  .history-toggle-btn {
    width: 100%;
  }

  [data-page="help"] .help-widget-page {
    width: 100%;
    padding: 0;
  }

  [data-page="help"] .help-widget-shell {
    width: 100%;
  }

  [data-page="help"] .help-widget-workspace,
  [data-page="help"] .help-guest-card {
    min-height: calc(100vh - 88px);
    border-radius: 0;
  }

  [data-page="help"] .help-chat-messages {
    min-height: 52vh;
    padding: 14px 10px;
  }

  [data-page="help"] .support-message-bubble,
  body[data-page="admin"] .support-message-bubble {
    max-width: 88%;
  }

  [data-page="help"] .help-compose-form {
    padding: 8px 8px 10px;
  }

  [data-page="help"] .help-compose-box {
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 18px;
  }

  .support-dialog-peer {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .support-thread-category {
    grid-column: 2;
    justify-self: start;
  }
}

/* codex 2026-07-24: download page, guest checkout and floating mobile menu */
.checkout-email-box {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(49, 116, 255, 0.14);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
}

.field-hint {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.payment-email-warning {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(255, 251, 235, 0.92);
  color: #7c2d12;
  font-weight: 800;
  line-height: 1.45;
}

.payment-result-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  margin-bottom: 18px;
  padding: 34px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.10);
}

.payment-result-mark {
  position: absolute;
  right: 22px;
  bottom: -38px;
  z-index: -1;
  color: #16a34a;
  font-size: clamp(150px, 28vw, 340px);
  line-height: 1;
  font-weight: 900;
  opacity: 0.10;
  pointer-events: none;
}

.payment-result-card.is-failed .payment-result-mark { color: #dc2626; }
.payment-result-card.is-pending .payment-result-mark { display: none; }
.payment-result-content { max-width: 760px; }
.payment-result-content h1 { margin: 4px 0 10px; color: #0f172a; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; }
.payment-result-content p { margin: 0; color: #475569; font-size: 18px; line-height: 1.6; }
.payment-result-actions { margin-top: 20px; }
.payment-page-shell.has-result-state .payment-page-grid { margin-top: 16px; }

.home-fast-start-section {
  margin-top: clamp(22px, 4vw, 44px);
}

.payment-method-row.is-unavailable {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.payment-method-row.is-unavailable .payment-method-right strong {
  color: #617783;
  font-size: 14px;
}

/* Legal pages */
body[data-page="privacy"],
body[data-page="terms"] {
  background: #f6f9fd;
}

.if-legal-page {
  color: #12243a;
}

.if-legal-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 118px;
  background:
    linear-gradient(110deg, rgba(21, 94, 239, 0.97), rgba(13, 128, 177, 0.94) 57%, rgba(15, 159, 143, 0.92)),
    #155eef;
  color: #fff;
}

.if-legal-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -65%;
  width: min(620px, 62vw);
  aspect-ratio: 1;
  border: 92px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.if-legal-hero--terms {
  background:
    linear-gradient(110deg, rgba(18, 79, 193, 0.98), rgba(20, 118, 174, 0.95) 55%, rgba(20, 143, 133, 0.92)),
    #155eef;
}

.if-legal-hero .container {
  position: relative;
  z-index: 1;
}

.if-legal-kicker {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0.82;
}

.if-legal-hero h1 {
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

.if-legal-lead {
  max-width: 770px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.55;
}

.if-legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 34px;
  font-size: 14px;
}

.if-legal-meta span {
  color: rgba(255, 255, 255, 0.74);
}

.if-legal-meta a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 5px;
}

.if-legal-principles {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: -54px;
}

.if-legal-principles article {
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(15, 46, 84, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(20, 54, 94, 0.12);
}

.if-legal-principle-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #e9f2ff;
  color: #155eef;
  font-size: 12px;
  font-weight: 900;
}

.if-legal-principles article:nth-child(2) .if-legal-principle-icon {
  background: #e5f7f4;
  color: #087e71;
}

.if-legal-principles article:nth-child(3) .if-legal-principle-icon {
  background: #f4edf9;
  color: #7e4ba2;
}

.if-legal-principles h2 {
  margin: 0 0 9px;
  color: #102033;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}

.if-legal-principles p {
  margin: 0;
  color: #607188;
  font-size: 14px;
  line-height: 1.6;
}

.if-legal-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 820px);
  justify-content: space-between;
  gap: 70px;
  padding-top: 86px;
  padding-bottom: 100px;
}

.if-legal-nav {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 4px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 12px;
}

.if-legal-nav strong {
  margin-bottom: 12px;
  color: #102033;
  font-size: 13px;
  text-transform: uppercase;
}

.if-legal-nav a {
  padding: 9px 12px;
  border-left: 2px solid #d8e2ef;
  color: #66768b;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.if-legal-nav a:hover,
.if-legal-nav a:focus-visible {
  border-left-color: #155eef;
  background: #edf4ff;
  color: #155eef;
}

.if-legal-document {
  min-width: 0;
}

.if-legal-section {
  position: relative;
  scroll-margin-top: 108px;
  padding: 0 0 54px 62px;
}

.if-legal-section + .if-legal-section {
  padding-top: 54px;
  border-top: 1px solid #dfe7f1;
}

.if-legal-section-number {
  position: absolute;
  top: 3px;
  left: 0;
  color: #1a67df;
  font-size: 13px;
  font-weight: 900;
}

.if-legal-section + .if-legal-section .if-legal-section-number {
  top: 57px;
}

.if-legal-section h2 {
  margin: 0 0 22px;
  color: #102033;
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: 0;
}

.if-legal-section p {
  margin: 0 0 16px;
  color: #52647b;
  font-size: 16px;
  line-height: 1.75;
}

.if-legal-section a {
  color: #155eef;
  font-weight: 750;
}

.if-legal-callout {
  margin: 26px 0 4px;
  padding: 22px 24px;
  border-left: 4px solid #155eef;
  border-radius: 0 8px 8px 0;
  background: #eaf2ff;
}

.if-legal-callout--soft {
  border-left-color: #0f9f8f;
  background: #e8f7f4;
}

.if-legal-callout strong {
  display: block;
  margin-bottom: 6px;
  color: #102033;
  font-size: 15px;
}

.if-legal-callout p {
  margin: 0;
  color: #435b76;
  font-size: 14px;
  line-height: 1.65;
}

.if-legal-data-list {
  display: grid;
  margin: 22px 0 26px;
  border-top: 1px solid #dfe7f1;
}

.if-legal-data-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid #dfe7f1;
}

.if-legal-data-list strong {
  color: #17314e;
  font-size: 14px;
  line-height: 1.55;
}

.if-legal-data-list span {
  min-width: 0;
  color: #607188;
  font-size: 14px;
  line-height: 1.65;
}

.if-legal-check-list {
  display: grid;
  gap: 13px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.if-legal-check-list li {
  position: relative;
  padding-left: 30px;
  color: #52647b;
  font-size: 15px;
  line-height: 1.65;
}

.if-legal-check-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 2px;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid #0f9f8f;
  border-left: 2px solid #0f9f8f;
  transform: rotate(-45deg);
}

.if-legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.if-legal-actions .btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.if-legal-actions .btn.primary {
  background: linear-gradient(135deg, #155eef, #0f9f8f);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.18);
}

.if-legal-actions .btn.secondary {
  border-color: #cbd8e8;
  background: #fff;
  color: #17314e;
}

body[data-theme="dark"][data-page="privacy"],
body[data-theme="dark"][data-page="terms"] {
  background: #0b1523;
}

body[data-theme="dark"] .if-legal-page,
body[data-theme="dark"] .if-legal-principles h2,
body[data-theme="dark"] .if-legal-nav strong,
body[data-theme="dark"] .if-legal-section h2,
body[data-theme="dark"] .if-legal-callout strong {
  color: #edf5ff;
}

body[data-theme="dark"] .if-legal-principles article,
body[data-theme="dark"] .if-legal-actions .btn.secondary {
  border-color: rgba(190, 215, 245, 0.14);
  background: #101f31;
}

body[data-theme="dark"] .if-legal-principles p,
body[data-theme="dark"] .if-legal-section p,
body[data-theme="dark"] .if-legal-check-list li,
body[data-theme="dark"] .if-legal-data-list span {
  color: #a9bbce;
}

body[data-theme="dark"] .if-legal-data-list,
body[data-theme="dark"] .if-legal-data-list > div,
body[data-theme="dark"] .if-legal-section + .if-legal-section {
  border-color: rgba(190, 215, 245, 0.14);
}

body[data-theme="dark"] .if-legal-data-list strong,
body[data-theme="dark"] .if-legal-actions .btn.secondary {
  color: #d9e8f7;
}

body[data-theme="dark"] .if-legal-nav a {
  border-left-color: #2e4055;
  color: #9eb0c5;
}

body[data-theme="dark"] .if-legal-nav a:hover,
body[data-theme="dark"] .if-legal-nav a:focus-visible {
  border-left-color: #6ea7ff;
  background: #132943;
  color: #8eb8ff;
}

body[data-theme="dark"] .if-legal-callout {
  background: #102b50;
}

body[data-theme="dark"] .if-legal-callout--soft {
  background: #10342f;
}

body[data-theme="dark"] .if-legal-callout p {
  color: #bed0e3;
}

@media (max-width: 900px) {
  .if-legal-hero {
    padding: 62px 0 100px;
  }

  .if-legal-principles {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .if-legal-principles article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0 16px;
    padding: 22px;
  }

  .if-legal-principle-icon {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .if-legal-principles p {
    margin-top: 6px;
  }

  .if-legal-layout {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 64px;
  }

  .if-legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    padding: 18px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
  }

  .if-legal-nav strong {
    grid-column: 1 / -1;
  }

  .if-legal-nav a {
    border-left: 0;
    border-bottom: 1px solid #dfe7f1;
  }

  body[data-theme="dark"] .if-legal-nav {
    border-color: rgba(190, 215, 245, 0.14);
    background: #101f31;
  }
}

@media (max-width: 600px) {
  .if-legal-hero {
    padding: 46px 0 88px;
  }

  .if-legal-hero::after {
    right: -32%;
    bottom: -30%;
    width: 92vw;
    border-width: 54px;
  }

  .if-legal-hero h1 {
    font-size: 36px;
  }

  .if-legal-lead {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.58;
  }

  .if-legal-meta {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 26px;
  }

  .if-legal-principles {
    margin-top: -42px;
  }

  .if-legal-principles article {
    padding: 18px;
  }

  .if-legal-layout {
    gap: 40px;
    padding-top: 52px;
    padding-bottom: 68px;
  }

  .if-legal-nav {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .if-legal-nav a {
    padding: 9px 8px;
  }

  .if-legal-section,
  .if-legal-section + .if-legal-section {
    padding-left: 0;
    padding-bottom: 42px;
  }

  .if-legal-section + .if-legal-section {
    padding-top: 42px;
  }

  .if-legal-section-number,
  .if-legal-section + .if-legal-section .if-legal-section-number {
    position: static;
    display: block;
    margin-bottom: 10px;
  }

  .if-legal-section h2 {
    margin-bottom: 18px;
    font-size: 26px;
  }

  .if-legal-section p {
    font-size: 15px;
    line-height: 1.7;
  }

  .if-legal-data-list > div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 16px 0;
  }

  .if-legal-callout {
    padding: 18px;
  }

  .if-legal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .if-legal-actions .btn {
    width: 100%;
  }
}

.home-fast-start-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.fast-buy-card,
.fast-app-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9)),
    #fff;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.08);
}

.fast-buy-card {
  border-color: rgba(14, 165, 233, 0.26);
}

.fast-buy-card::before,
.fast-app-card::before {
  content: "";
  position: absolute;
  inset: auto -48px -76px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  pointer-events: none;
}

.fast-buy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fast-buy-head strong {
  color: #0284c7;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.fast-buy-card h3,
.fast-app-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.fast-buy-card p,
.fast-app-card p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.inline-checkout-field {
  position: relative;
  z-index: 1;
}

.inline-checkout-error {
  margin: -4px 0 0;
  color: #dc2626;
  font-size: 14px;
  font-weight: 800;
}

.fast-app-card .button-row {
  margin-top: auto;
}

.download-hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  padding-top: clamp(24px, 5vw, 56px);
}

.download-hero-copy {
  display: grid;
  gap: 16px;
}

.download-hero-copy h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.96;
}

.download-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #475569;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.55;
}

.download-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 48%),
    linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.1);
}

.download-hero-panel span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.download-page-shell {
  display: grid;
  gap: 24px;
}

.download-page-heading {
  max-width: 860px;
}

.download-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.download-platform-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
    #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.download-platform-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid rgba(14, 165, 233, 0.22);
  pointer-events: none;
}

.download-platform-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.download-platform-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.download-platform-label {
  display: inline-flex;
  margin-bottom: 6px;
  color: #0284c7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-platform-card h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.15;
}

.download-platform-card p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.download-platform-info {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.download-mobile-details {
  display: none;
}

.download-requirements {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
}

.download-requirements span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.download-platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
}

.download-source-note {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.86);
  color: #1e3a8a;
}

.download-source-note div {
  display: grid;
  gap: 4px;
}

.download-source-note span {
  color: #334155;
  line-height: 1.5;
}

.mobile-nav-panel.is-floating-menu {
  position: fixed !important;
  height: auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  transform: none !important;
  z-index: 1002 !important;
  border-radius: 18px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22) !important;
}

.mobile-nav-overlay:not(.hidden) {
  z-index: 1001;
  touch-action: none;
}

.mobile-nav-panel.is-floating-menu .mobile-nav-head {
  display: flex !important;
  justify-content: flex-end;
  min-height: 48px;
  padding: 6px 7px 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.mobile-nav-panel.is-floating-menu .mobile-brand {
  display: none !important;
}

.mobile-nav-panel.is-floating-menu #navCloseBtn {
  display: inline-flex !important;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  position: static;
  z-index: 1;
}

.mobile-nav-panel.is-floating-menu .main-nav,
.mobile-nav-panel.is-floating-menu .nav-actions {
  padding: 8px !important;
  gap: 6px !important;
}

.mobile-nav-panel.is-floating-menu .nav-link {
  min-height: 44px;
  padding: 11px 13px;
}

@media (max-width: 760px) {
  .home-fast-start-layout,
  .download-hero-section { grid-template-columns: 1fr; }
  .fast-buy-card,
  .fast-app-card { padding: 18px; border-radius: 18px; }
  .fast-buy-head { align-items: flex-start; }
  .download-hero-section { padding-top: 18px; }
  .download-hero-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px; border-radius: 18px; }
  .download-hero-panel span { min-height: 46px; border-radius: 12px; font-size: 12px; }
  .download-hero-actions { display: grid; grid-template-columns: 1fr; }
  .download-hero-actions > * { width: 100%; }
  .download-platform-grid { grid-template-columns: 1fr; }
  .download-platform-card { padding: 16px; border-radius: 16px; }
  .download-platform-top { align-items: center; }
  .download-platform-actions { display: grid; grid-template-columns: 1fr; }
  .download-platform-actions > * { width: 100%; }
  .download-source-note { display: grid; }
  .payment-result-card { padding: 24px 18px; border-radius: 18px; }
  .payment-result-content p { font-size: 16px; }
}

@media (max-width: 380px) {
  .download-hero-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fast-buy-card,
  .fast-app-card,
  .download-platform-card { padding: 14px; }
}

@media (max-width: 760px) {
  body[data-page="download"] .site-main {
    padding-top: 14px;
  }

  body[data-page="download"] .download-hero-section {
    gap: 14px;
    padding-top: 12px;
  }

  body[data-page="download"] .download-hero-copy {
    gap: 12px;
  }

  body[data-page="download"] .download-hero-copy h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  body[data-page="download"] .download-hero-copy p,
  body[data-page="download"] .download-page-heading p {
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
  }

  body[data-page="download"] .download-hero-panel {
    gap: 8px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  }

  body[data-page="download"] .download-page-shell {
    gap: 16px;
  }

  body[data-page="download"] .download-page-heading {
    text-align: left;
  }

  body[data-page="download"] .download-page-heading h2 {
    font-size: 26px;
    line-height: 1.12;
  }

  body[data-page="download"] .download-platform-grid {
    gap: 16px;
  }

  body[data-page="download"] .download-platform-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border-radius: 16px;
    border-color: rgba(14, 165, 233, 0.16);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }

  body[data-page="download"] .download-platform-top {
    order: 1;
    display: block;
  }

  body[data-page="download"] .download-platform-icon,
  body[data-page="download"] .download-platform-label {
    display: none;
  }

  body[data-page="download"] .download-platform-card h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
  }

  body[data-page="download"] .download-platform-card p {
    font-size: 15px;
    line-height: 1.45;
  }

  body[data-page="download"] .download-platform-actions {
    order: 2;
    gap: 8px;
    margin-top: 0;
  }

  body[data-page="download"] .download-platform-card-info {
    display: none;
  }

  body[data-page="download"] .download-requirements {
    gap: 3px;
    padding: 11px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 14px;
    line-height: 1.42;
  }

  body[data-page="download"] .download-requirements span,
  body[data-page="download"] .download-requirements strong {
    display: block;
  }

  body[data-page="download"] .download-requirements span {
    font-size: 10px;
  }

  body[data-page="download"] .download-requirements strong {
    font-size: 14px;
    font-weight: 800;
  }

  body[data-page="download"] .download-platform-actions .primary-btn,
  body[data-page="download"] .download-platform-actions .ghost-btn {
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.15;
  }

  body[data-page="download"] .download-mobile-details {
    display: grid;
    gap: 14px;
    margin-top: 8px;
  }

  body[data-page="download"] .download-mobile-details-heading {
    text-align: left;
  }

  body[data-page="download"] .download-mobile-details-heading h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  body[data-page="download"] .download-mobile-details-list {
    display: grid;
    gap: 12px;
  }

  body[data-page="download"] .download-mobile-detail {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
  }

  body[data-page="download"] .download-mobile-detail h3 {
    margin: 0;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.2;
  }

  body[data-page="download"] .download-mobile-detail p {
    font-size: 14px;
    line-height: 1.45;
  }
}

[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: clip;
  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-x: clip; }

@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: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(10, 23, 45, 0.10);
  background: linear-gradient(100deg, #ffffff 0%, #f7faff 100%);
  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: grid;
  grid-template-columns: 18px 132px minmax(0, 1fr);
  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 {
  width: 132px;
  min-width: 0;
  height: 58px;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(10, 23, 45, 0.09);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  color: #102345;
  box-shadow: 0 5px 14px rgba(34, 62, 108, 0.08);
}
.method-logo-manual {
  width: 132px;
  background: linear-gradient(135deg, #0f172a, #475569);
  color: #fff;
  font-size: 24px;
}
.method-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.method-logo-card img { width: 78px; }
.method-logo-yoomoney img { width: 108px; }
.method-logo-sber img { width: 101px; }
.method-logo-sbp img { width: 104px; }
.method-logo-image {
  background: #fff;
}
.payment-method-title {
  display: grid;
  gap: 3px;
  min-width: 0;
  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 {
    min-height: 70px;
    gap: 8px;
    padding: 9px 10px;
  }
  .payment-method-left {
    grid-template-columns: 16px 76px minmax(0, 1fr);
    gap: 7px;
  }
  .payment-method-radio {
    width: 16px;
    height: 16px;
  }
  .payment-method-row.is-selected .payment-method-radio::after { inset: 3px; }
  .method-logo,
  .method-logo-manual {
    width: 76px;
    height: 48px;
    padding: 7px 6px;
    gap: 5px;
  }
  .method-logo-card img { width: 60px; }
  .method-logo-yoomoney img { width: 64px; }
  .method-logo-sber img { width: 62px; }
  .method-logo-sbp img { width: 64px; }
  .method-logo-manual { font-size: 20px; }
  .payment-method-title strong {
    font-size: 13px;
    line-height: 1.15;
  }
  .payment-method-title small {
    font-size: 10px;
    line-height: 1.2;
  }
  .payment-method-right { min-width: 48px; }
  .payment-method-right span { font-size: 10px; }
  .payment-method-right strong { font-size: 16px; }
  .payment-method-icon { min-width: 54px; }
}

/* Compact checkout typography outside the payment method rows. */
.payment-page-order-top { margin-bottom: 8px; }
.payment-page-product-badge,
.payment-page-status {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 11px;
}
.payment-page-qty-box {
  min-width: 46px;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 12px;
}
.payment-page-product-row { gap: 10px; }
.payment-page-product-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 12px;
}
.payment-page-product-row h1 {
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1.15;
}
.payment-page-product-price { font-size: 16px; }
.payment-page-order-meta {
  margin-top: 10px;
  gap: 6px;
}
.payment-page-order-meta span {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 11px;
}
.payment-page-section-head { margin-bottom: 8px; }
.payment-page-section-head .eyebrow {
  font-size: 11px;
  line-height: 1.2;
}
.payment-page-section-head h2 {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.2;
}
.checkout-email-box {
  gap: 5px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
}
.checkout-email-box .field {
  gap: 5px;
  margin-bottom: 0;
}
.checkout-email-box .field span { font-size: 12px; }
.checkout-email-box .field input {
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13px;
}
.checkout-email-box .field-hint {
  font-size: 11px;
  line-height: 1.35;
}
.payment-email-warning {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.35;
}
.payment-page-details-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}
.payment-page-points-box {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.4;
}
.payment-page-summary-lines {
  gap: 4px;
  margin-top: 9px;
  margin-bottom: 8px;
  padding-top: 4px;
}
.payment-page-summary-lines .data-line {
  gap: 8px;
  padding: 8px 0;
  font-size: 12px;
}
.payment-page-total-row {
  margin-top: 8px;
  padding-top: 10px;
  gap: 8px;
}
.payment-page-total-row span { font-size: 12px; }
.payment-page-total-row strong { font-size: 22px; }
.payment-page-pay-btn {
  min-height: 46px;
  margin-top: 11px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .payment-page-product-icon {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }
  .payment-page-product-row h1 { font-size: 18px; }
  .payment-page-product-price { font-size: 14px; }
  .payment-page-section-head h2 { font-size: 18px; }
  .payment-page-total-row {
    align-items: center;
    flex-direction: row;
  }
  .payment-page-total-row strong { font-size: 20px; }
}

/* v54 premium clarity refresh */

/* v2026-07-24 Proton-inspired I-Freedom home concept */
body[data-page="home"] {
  background: #ffffff;
  color: #102345;
}

body[data-page="home"] .page-shell {
  padding-top: 0;
  padding-bottom: 0;
  overflow: clip;
}

.if-home-hero {
  min-height: 600px;
  display: grid;
  align-items: center;
  background-color: #f5faff;
  background-image: url("/static/images/home-vpn-hero-v1.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid #dfeaf5;
}

.if-home-hero-inner {
  display: grid;
  align-items: center;
  min-height: inherit;
  padding-top: 48px;
  padding-bottom: 54px;
}

.if-home-hero-copy {
  width: min(540px, 48%);
  color: #0b1a33;
}

.if-home-kicker {
  color: #0878b8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.if-home-hero h1 {
  margin: 14px 0 18px;
  color: #07162e;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.if-home-hero-copy > p {
  max-width: 520px;
  color: #334f70;
  font-size: 19px;
  line-height: 1.58;
}

.if-home-hero-actions,
.if-home-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.if-home-hero-actions {
  margin-top: 26px;
}

.if-home-hero-actions > *,
.if-home-download-actions > * {
  min-height: 48px;
}

.if-home-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  color: #496985;
  font-size: 13px;
  font-weight: 800;
}

.if-home-hero-notes span {
  position: relative;
  padding-left: 20px;
}

.if-home-hero-notes span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0c9b69;
  font-weight: 900;
}

.if-home-proof {
  background: #ffffff;
  border-bottom: 1px solid #dfeaf5;
}

.if-home-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.if-home-proof-grid > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 24px 22px;
  border-right: 1px solid #dfeaf5;
}

.if-home-proof-grid > div:first-child {
  border-left: 1px solid #dfeaf5;
}

.if-home-proof-grid strong {
  color: #0b3157;
  font-size: 16px;
}

.if-home-proof-grid span {
  color: #668099;
  font-size: 12px;
  line-height: 1.35;
}

.if-home-section {
  padding: 82px 0;
}

.if-home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 28px;
}

.if-home-section-head h2,
.if-home-centered-head h2,
.if-home-device-copy h2,
.if-home-proxy-inner h2,
.if-home-download-inner h2,
.if-home-faq-intro h2 {
  margin: 8px 0 0;
  color: #0b1a33;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.if-home-section-head > p,
.if-home-section-controls > p,
.if-home-centered-head > p,
.if-home-device-copy > p,
.if-home-proxy-inner p,
.if-home-download-inner p,
.if-home-faq-intro p {
  color: #52708e;
  font-size: 16px;
  line-height: 1.65;
}

.if-home-section-controls {
  display: grid;
  gap: 16px;
}

.if-home-billing {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 3px;
  padding: 3px;
  border: 1px solid #cbdce9;
  border-radius: 8px;
  background: #eef5fa;
}

.if-home-billing .billing-btn {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #4b6781;
  font-size: 13px;
  font-weight: 900;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.if-home-billing .billing-btn span {
  margin-left: 4px;
  color: #087956;
  font-size: 10px;
}

.if-home-billing .billing-btn.active {
  background: #ffffff;
  color: #0b3157;
  box-shadow: 0 3px 10px rgba(27, 68, 108, 0.10);
}

.if-home-quick-start {
  background: #ffffff;
}

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

.if-home-tariff-card {
  min-width: 0;
  display: grid;
  gap: 15px;
  padding: 24px;
  border: 1px solid #d9e5f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(24, 64, 108, 0.08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.if-home-tariff-card.is-featured {
  border-color: #128bd0;
  box-shadow: 0 18px 44px rgba(18, 139, 208, 0.16);
}

.if-home-tariff-top {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.if-home-tariff-top > span {
  color: #0878b8;
  font-size: 13px;
  font-weight: 900;
}

.if-home-tariff-top > strong {
  padding: 4px 7px;
  border-radius: 5px;
  background: #e6f6ff;
  color: #006caa;
  font-size: 11px;
}

.if-home-tariff-card h3 {
  margin: 0;
  color: #122b4c;
  font-size: 18px;
}

.if-home-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.if-home-price strong {
  color: #07162e;
  font-size: 34px;
  line-height: 1;
}

.if-home-price span {
  color: #668099;
  font-size: 13px;
  font-weight: 700;
}

.if-home-price strong .tariff-price-value {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.if-home-year-saving {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #56728c;
  font-size: 12px;
  font-weight: 800;
}

.if-home-year-saving .discount-pill {
  padding: 4px 7px;
  border: 0;
  border-radius: 5px;
  background: #e7f8ef;
  color: #087956;
  font-size: 11px;
  line-height: 1;
}

.if-home-tariff-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.if-home-tariff-card li {
  position: relative;
  padding-left: 20px;
  color: #425f7d;
  font-size: 14px;
  line-height: 1.45;
}

.if-home-tariff-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0c9b69;
  font-weight: 900;
}

.if-home-tariff-card .wide {
  align-self: end;
  margin-top: 4px;
}

@media (hover: hover) {
  .if-home-tariff-card:hover {
    transform: translateY(-4px);
    border-color: #a9cbe0;
    box-shadow: 0 22px 48px rgba(24, 64, 108, 0.13);
  }

  .if-home-tariff-card.is-featured:hover {
    border-color: #0878b8;
    box-shadow: 0 24px 52px rgba(18, 139, 208, 0.20);
  }
}

.if-home-text-link {
  display: inline-flex;
  margin-top: 20px;
  color: #0878b8;
  font-size: 14px;
  font-weight: 900;
}

.if-home-proxy-band {
  padding: 46px 0;
  background: #0c2340;
  color: #ffffff;
}

.if-home-proxy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr) auto;
  gap: 28px;
  align-items: center;
}

.if-home-proxy-inner .if-home-kicker {
  color: #60d5ff;
}

.if-home-proxy-inner h2 {
  color: #ffffff;
  font-size: clamp(28px, 3vw, 42px);
}

.if-home-proxy-inner p {
  max-width: 600px;
  margin-top: 10px;
  color: #c6daec;
}

.if-home-proxy-route {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.if-home-proxy-route span {
  color: #eaf7ff;
  font-size: 12px;
  font-weight: 900;
}

.if-home-proxy-route i {
  height: 2px;
  background: #3ebce8;
}

.if-home-centered-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.if-home-centered-head > p {
  margin-top: 14px;
}

.if-home-benefits {
  background: #f5f9fc;
}

.if-home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
}

.if-home-benefit-grid article {
  min-width: 0;
  padding-top: 18px;
  border-top: 2px solid #b9d9ed;
}

.if-home-benefit-grid article > span {
  color: #1294cf;
  font-size: 13px;
  font-weight: 900;
}

.if-home-benefit-grid h3 {
  margin: 12px 0 8px;
  color: #102b49;
  font-size: 20px;
}

.if-home-benefit-grid p {
  color: #58718a;
  font-size: 15px;
  line-height: 1.6;
}

.if-home-device-band {
  padding: 86px 0;
  background: #ffffff;
}

.if-home-device-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 72px;
  align-items: center;
}

.if-home-device-copy > p {
  margin: 16px 0 24px;
}

.if-home-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #d7e4ef;
  border-left: 1px solid #d7e4ef;
}

.if-home-device-grid a {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 21px 22px;
  border-right: 1px solid #d7e4ef;
  border-bottom: 1px solid #d7e4ef;
  background: #fbfdff;
  transition: background .18s ease, color .18s ease;
}

.if-home-device-grid a:hover {
  background: #edf8ff;
}

.if-home-device-grid strong {
  color: #102b49;
  font-size: 17px;
}

.if-home-device-grid span {
  color: #668099;
  font-size: 13px;
}

.if-home-steps-section {
  background: #eef7fb;
}

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

.if-home-step-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid #bfd8e7;
}

.if-home-step-grid article > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0d83bd;
  color: #ffffff;
  font-weight: 900;
}

.if-home-step-grid h3 {
  margin: 1px 0 7px;
  color: #102b49;
  font-size: 18px;
}

.if-home-step-grid p {
  color: #58718a;
  font-size: 14px;
  line-height: 1.55;
}

.if-home-download-cta {
  padding: 62px 0;
  background: #dff5ff;
  border-top: 1px solid #c4e9f7;
  border-bottom: 1px solid #c4e9f7;
}

.if-home-download-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.if-home-download-inner h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.if-home-download-inner p {
  max-width: 720px;
  margin-top: 10px;
  color: #3f627c;
}

.if-home-faq-section {
  background: #ffffff;
}

.if-home-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}

.if-home-faq-intro p {
  margin-top: 14px;
}

.if-home-faq {
  border-top: 1px solid #ccdce8;
}

.if-home-faq details {
  border-bottom: 1px solid #ccdce8;
}

.if-home-faq summary {
  position: relative;
  padding: 20px 42px 20px 0;
  color: #102b49;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.if-home-faq summary::-webkit-details-marker {
  display: none;
}

.if-home-faq summary::after {
  content: "+";
  position: absolute;
  top: 15px;
  right: 0;
  color: #0878b8;
  font-size: 26px;
  font-weight: 500;
}

.if-home-faq details[open] summary::after {
  content: "−";
}

.if-home-faq details p {
  padding: 0 42px 20px 0;
  color: #58718a;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .if-home-hero {
    min-height: 570px;
    background-position: 44% center;
  }

  .if-home-hero-copy {
    width: min(500px, 58%);
  }

  .if-home-tariff-grid,
  .if-home-benefit-grid,
  .if-home-step-grid {
    grid-template-columns: 1fr;
  }

  .if-home-tariff-grid {
    max-width: 680px;
    margin: 0 auto;
  }

  .if-home-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .if-home-proxy-inner {
    grid-template-columns: 1fr auto;
  }

  .if-home-proxy-route {
    display: none;
  }

  .if-home-device-layout,
  .if-home-faq-layout {
    gap: 42px;
  }
}

@media (max-width: 760px) {
  .if-home-hero {
    min-height: 560px;
    background-position: 35% center;
    background-size: auto 100%;
  }

  .if-home-hero-inner {
    align-items: start;
    padding-top: 46px;
    padding-bottom: 34px;
  }

  .if-home-hero-copy {
    width: 100%;
    max-width: 420px;
  }

  .if-home-hero h1 {
    margin: 10px 0 14px;
    font-size: 44px;
  }

  .if-home-hero-copy > p {
    max-width: 360px;
    font-size: 16px;
    line-height: 1.5;
  }

  .if-home-hero-actions {
    margin-top: 18px;
  }

  .if-home-hero-actions > * {
    width: auto;
    flex: 1 1 145px;
  }

  .if-home-hero-notes {
    display: grid;
    gap: 7px;
    max-width: 340px;
    margin-top: 16px;
    font-size: 12px;
  }

  .if-home-section,
  .if-home-device-band {
    padding: 56px 0;
  }

  .if-home-section-head,
  .if-home-device-layout,
  .if-home-download-inner,
  .if-home-faq-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .if-home-section-head {
    margin-bottom: 22px;
  }

  .if-home-section-head h2,
  .if-home-centered-head h2,
  .if-home-device-copy h2,
  .if-home-faq-intro h2 {
    font-size: 30px;
  }

  .if-home-section-head > p,
  .if-home-section-controls > p,
  .if-home-centered-head > p,
  .if-home-device-copy > p,
  .if-home-faq-intro p {
    font-size: 14px;
  }

  .if-home-tariff-card {
    gap: 12px;
    padding: 18px;
  }

  .if-home-price strong {
    font-size: 30px;
  }

  .if-home-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .if-home-proof-grid > div {
    min-height: 88px;
    padding: 17px 14px;
    border-bottom: 1px solid #dfeaf5;
  }

  .if-home-proof-grid > div:nth-child(odd) {
    border-left: 1px solid #dfeaf5;
  }

  .if-home-proof-grid > div:nth-child(even) {
    border-left: 0;
  }

  .if-home-billing {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .if-home-billing .billing-btn {
    min-width: 0;
    padding: 8px;
  }

  .if-home-proxy-band {
    padding: 34px 0;
  }

  .if-home-proxy-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .if-home-proxy-inner .primary-btn {
    width: 100%;
  }

  .if-home-centered-head {
    margin-bottom: 30px;
    text-align: left;
  }

  .if-home-benefit-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .if-home-device-copy > p {
    margin: 12px 0 18px;
  }

  .if-home-device-copy .outline-btn {
    width: 100%;
  }

  .if-home-device-grid a {
    padding: 16px 14px;
  }

  .if-home-step-grid {
    gap: 2px;
  }

  .if-home-step-grid article {
    padding: 17px 0;
  }

  .if-home-download-cta {
    padding: 44px 0;
  }

  .if-home-download-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .if-home-faq-intro {
    margin-bottom: 8px;
  }
}

@media (max-width: 380px) {
  .if-home-hero {
    min-height: 570px;
  }

  .if-home-hero h1 {
    font-size: 39px;
  }

  .if-home-device-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .if-home-tariff-card,
  .if-home-billing .billing-btn {
    transition: none;
  }
}

/* Homepage v11: visual reasons and refund policy. */
.if-home-hero-actions {
  width: min(320px, 100%);
  display: grid;
  gap: 9px;
  margin: 26px auto 0;
}

.if-home-hero-actions > * {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
}

.if-home-hero-actions .outline-btn span {
  margin-left: 9px;
  font-size: 18px;
  line-height: 1;
}

.if-home-why {
  background: #f6fafe;
}

.if-home-feature-stack {
  display: grid;
  gap: 0;
  border-top: 1px solid #d6e4ef;
}

.if-home-feature-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid #d6e4ef;
}

.if-home-feature-row.is-reverse {
  grid-template-columns: minmax(420px, 1.12fr) minmax(0, .88fr);
}

.if-home-feature-row.is-reverse .if-home-feature-copy {
  order: 2;
}

.if-home-feature-row.is-reverse .if-home-feature-media {
  order: 1;
}

.if-home-feature-copy {
  min-width: 0;
}

.if-home-feature-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid #91c9e6;
  border-radius: 50%;
  background: #e9f7fd;
  color: #0878b8;
  font-size: 12px;
  font-weight: 900;
}

.if-home-feature-copy h3 {
  margin: 0;
  color: #0b1a33;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.if-home-feature-copy > p {
  margin: 18px 0 0;
  color: #4f6d88;
  font-size: 16px;
  line-height: 1.7;
}

.if-home-feature-copy ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.if-home-feature-copy li {
  position: relative;
  padding-left: 25px;
  color: #254866;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.if-home-feature-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0a9b67;
  font-weight: 900;
}

.if-home-feature-link {
  display: inline-flex;
  margin-top: 24px;
  color: #0878b8;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.if-home-feature-link:hover {
  color: #055f93;
}

.if-home-feature-media {
  min-width: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid #cfe0ec;
  border-radius: 8px;
  background: #eaf5fb;
  box-shadow: 0 24px 54px rgba(16, 61, 96, 0.12);
}

.if-home-feature-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.if-home-refund-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: #062b4a;
  color: #ffffff;
}

.if-home-refund-mark {
  position: absolute;
  right: max(3vw, 28px);
  top: 50%;
  z-index: 0;
  color: #ffffff;
  font-size: clamp(170px, 22vw, 330px);
  font-weight: 900;
  line-height: .7;
  opacity: .055;
  pointer-events: none;
  transform: translateY(-50%);
}

.if-home-refund-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 52px;
  align-items: center;
}

.if-home-refund-inner > div:first-child {
  max-width: 780px;
}

.if-home-refund-inner .if-home-kicker {
  color: #62d5f4;
}

.if-home-refund-inner h2 {
  margin: 8px 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.if-home-refund-inner p {
  margin: 0;
  color: #c7ddec;
  font-size: 15px;
  line-height: 1.7;
}

.if-home-refund-actions {
  min-width: 190px;
  display: grid;
  gap: 10px;
}

.if-home-refund-actions > * {
  width: 100%;
  min-height: 46px;
}

.if-home-refund-actions .ghost-btn {
  border-color: rgba(255, 255, 255, .4);
  background: transparent;
  color: #ffffff;
}

.if-home-refund-actions .ghost-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

@media (max-width: 960px) {
  .if-home-feature-row,
  .if-home-feature-row.is-reverse {
    grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
    gap: 34px;
    padding: 52px 0;
  }

  .if-home-refund-inner {
    grid-template-columns: 1fr 190px;
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .if-home-feature-row,
  .if-home-feature-row.is-reverse {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 42px 0;
  }

  .if-home-feature-row.is-reverse .if-home-feature-copy,
  .if-home-feature-row.is-reverse .if-home-feature-media {
    order: initial;
  }

  .if-home-feature-copy h3 {
    font-size: 29px;
  }

  .if-home-feature-copy > p {
    margin-top: 14px;
    font-size: 15px;
  }

  .if-home-feature-copy ul {
    margin-top: 18px;
  }

  .if-home-feature-media {
    width: 100%;
  }

  .if-home-refund-band {
    padding: 56px 0;
  }

  .if-home-refund-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .if-home-refund-inner h2 {
    font-size: 34px;
  }

  .if-home-refund-actions {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .if-home-feature-copy h3 {
    font-size: 26px;
  }

  .if-home-refund-inner h2 {
    font-size: 31px;
  }
}

/* Dedicated VPN pricing page. */
body[data-page="happ"] .page-shell {
  padding-top: 0;
  padding-bottom: 0;
  overflow: clip;
  background: #ffffff;
}

.if-pricing-container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.if-pricing-hero {
  padding: 72px 0 54px;
  border-bottom: 1px solid #dbe7f0;
  background: #f5faff;
}

.if-pricing-hero-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.if-pricing-kicker {
  color: #0878b8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.if-pricing-hero h1 {
  max-width: 850px;
  margin: 12px 0 0;
  color: #07162e;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.if-pricing-hero p {
  max-width: 710px;
  margin: 20px 0 0;
  color: #4f6d88;
  font-size: 18px;
  line-height: 1.65;
}

.if-pricing-billing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 570px);
  margin-top: 30px;
  padding: 4px;
  border: 1px solid #c8dbe9;
  border-radius: 999px;
  background: #e8f1f7;
}

.if-pricing-billing .billing-btn {
  min-width: 0;
  min-height: 52px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #49667f;
  font-size: 13px;
  font-weight: 900;
}

.if-pricing-billing .billing-btn span {
  display: block;
  margin-top: 2px;
  color: #087956;
  font-size: 10px;
  line-height: 1.1;
}

.if-pricing-billing .billing-btn.active {
  background: #ffffff;
  color: #0b3157;
  box-shadow: 0 4px 12px rgba(26, 68, 103, .12);
}

.if-pricing-assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 24px;
  margin-top: 24px;
  color: #476985;
  font-size: 13px;
  font-weight: 800;
}

.if-pricing-assurances span {
  position: relative;
  padding-left: 20px;
}

.if-pricing-assurances span::before {
  position: absolute;
  left: 0;
  color: #0a9b67;
  content: "✓";
}

.if-pricing-plans {
  padding: 64px 0 72px;
  background: #ffffff;
}

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

.if-pricing-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
  background: #ffffff;
  color: #0b1a33;
  box-shadow: 0 16px 38px rgba(22, 62, 96, .08);
}

.if-pricing-card::before {
  display: none;
}

.if-pricing-card.is-featured {
  border: 2px solid #1186c5;
  box-shadow: 0 22px 50px rgba(8, 112, 171, .16);
}

.if-pricing-popular {
  margin: -24px -24px 22px;
  padding: 9px 14px;
  background: #087fbe;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.if-pricing-card-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.if-pricing-card-head img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 8px;
}

.if-pricing-plan-code {
  color: #0878b8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.if-pricing-card h2 {
  margin: 3px 0 0;
  color: #0b1a33;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.if-pricing-description {
  min-height: 45px;
  margin: 18px 0 0;
  color: #617b92;
  font-size: 13px;
  line-height: 1.55;
}

.if-pricing-discount-row {
  min-height: 27px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
}

.if-pricing-discount-row .discount-pill {
  min-width: 0;
}

.if-pricing-discount-row .tariff-old-price {
  color: #8b9cab;
  font-size: 13px;
  text-decoration: line-through;
}

.if-pricing-price {
  min-height: 58px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin-top: 7px;
}

.if-pricing-price strong {
  color: #07162e;
  font-size: 34px;
  line-height: 1;
  white-space: nowrap;
}

.if-pricing-price > span {
  color: #617b92;
  font-size: 13px;
}

.if-pricing-year-note {
  min-height: 40px;
  margin: 4px 0 12px;
  color: #087956;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.if-pricing-year-note.hidden {
  display: block !important;
  visibility: hidden;
}

.if-pricing-card .primary-btn {
  min-height: 46px;
  margin-top: 2px;
}

.if-pricing-includes {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e1eaf1;
  color: #34536e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.if-pricing-features {
  display: grid;
  gap: 10px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.if-pricing-features li {
  position: relative;
  padding-left: 22px;
  color: #385872;
  font-size: 12px;
  line-height: 1.5;
}

.if-pricing-features li::before {
  position: absolute;
  left: 0;
  color: #0a9b67;
  font-weight: 900;
  content: "✓";
}

.if-pricing-email-note {
  max-width: 850px;
  margin: 24px auto 0;
  color: #5d7489;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.if-pricing-compare {
  padding: 76px 0;
  border-top: 1px solid #dbe7f0;
  background: #f5f9fc;
}

.if-pricing-section-head {
  max-width: 720px;
}

.if-pricing-section-head h2 {
  margin: 9px 0 0;
  color: #0b1a33;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.if-pricing-section-head p {
  margin: 16px 0 0;
  color: #58738c;
  font-size: 15px;
  line-height: 1.65;
}

.if-pricing-table-wrap {
  margin-top: 34px;
  overflow-x: auto;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(22, 62, 96, .07);
}

.if-pricing-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.if-pricing-table th,
.if-pricing-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #e0e9f0;
  border-left: 1px solid #e0e9f0;
  color: #385872;
  font-size: 13px;
  text-align: center;
}

.if-pricing-table th:first-child,
.if-pricing-table td:first-child {
  border-left: 0;
  text-align: left;
}

.if-pricing-table thead th {
  background: #edf5fa;
  color: #0b3157;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.if-pricing-table tbody th {
  color: #244762;
  font-weight: 800;
}

.if-pricing-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #ffffff;
}

.if-pricing-table thead th:first-child {
  z-index: 2;
  background: #edf5fa;
}

.if-pricing-table tbody tr:last-child th,
.if-pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.if-pricing-check {
  color: #0a9b67;
  font-size: 18px;
  font-weight: 900;
}

.if-pricing-refund {
  position: relative;
  overflow: hidden;
  padding: 68px 0;
  background: #062b4a;
  color: #ffffff;
}

.if-pricing-refund-mark {
  position: absolute;
  top: 50%;
  right: 5vw;
  color: #ffffff;
  font-size: clamp(170px, 22vw, 320px);
  font-weight: 900;
  line-height: .7;
  opacity: .055;
  pointer-events: none;
  transform: translateY(-50%);
}

.if-pricing-refund-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 780px) auto;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}

.if-pricing-refund .if-pricing-kicker {
  color: #63d7f4;
}

.if-pricing-refund h2 {
  margin: 9px 0 13px;
  color: #ffffff;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.if-pricing-refund p {
  margin: 0;
  color: #c7ddeb;
  font-size: 15px;
  line-height: 1.7;
}

.if-pricing-refund .outline-btn {
  min-width: 190px;
  border-color: rgba(255, 255, 255, .48);
  color: #ffffff;
}

.if-pricing-refund .outline-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.if-pricing-custom {
  padding: 76px 0;
  background: #ffffff;
}

.if-pricing-custom-card {
  padding: 34px;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
  background: #f8fbfd;
}

.if-pricing-custom-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}

.if-pricing-custom-head h2 {
  margin: 8px 0 0;
  color: #0b1a33;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 0;
}

.if-pricing-custom-head p {
  max-width: 650px;
  margin: 13px 0 0;
  color: #58738c;
  font-size: 14px;
  line-height: 1.65;
}

.if-pricing-custom-rates {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 7px;
}

.if-pricing-custom-rates span {
  padding: 7px 10px;
  border: 1px solid #cde0ec;
  border-radius: 999px;
  background: #ffffff;
  color: #34536e;
  font-size: 11px;
  font-weight: 800;
}

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

.if-pricing-custom-controls label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #36556f;
  font-size: 12px;
  font-weight: 900;
}

.if-pricing-custom-controls input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #bed4e2;
  border-radius: 7px;
  background: #ffffff;
  color: #0b1a33;
  font: inherit;
  font-size: 15px;
}

.if-pricing-custom-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #d8e5ee;
}

.if-pricing-custom-summary > div {
  display: grid;
  gap: 3px;
}

.if-pricing-custom-summary span {
  color: #58738c;
  font-size: 12px;
  font-weight: 800;
}

.if-pricing-custom-summary strong {
  color: #07162e;
  font-size: 34px;
  line-height: 1.1;
}

.if-pricing-custom-summary p {
  margin: 0;
  color: #6b8296;
  font-size: 12px;
}

.if-pricing-custom-summary .primary-btn {
  min-width: 210px;
  min-height: 48px;
}

.if-pricing-help {
  padding: 76px 0;
  border-top: 1px solid #dbe7f0;
  background: #f4f9fc;
}

.if-pricing-help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: center;
}

.if-pricing-help h2 {
  margin: 8px 0 0;
  color: #0b1a33;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.if-pricing-help p {
  max-width: 650px;
  margin: 15px 0 0;
  color: #58738c;
  font-size: 15px;
  line-height: 1.65;
}

.if-pricing-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.if-pricing-trial {
  padding: 26px;
  border: 1px solid #cfe0eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(22, 62, 96, .08);
}

.if-pricing-trial h3 {
  margin: 8px 0 0;
  color: #0b1a33;
  font-size: 30px;
  line-height: 1.1;
}

.if-pricing-trial ul {
  display: grid;
  gap: 9px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.if-pricing-trial li {
  position: relative;
  padding-left: 21px;
  color: #4c6982;
  font-size: 13px;
  line-height: 1.5;
}

.if-pricing-trial li::before {
  position: absolute;
  left: 0;
  color: #0a9b67;
  content: "✓";
}

.if-pricing-faq {
  padding: 76px 0 88px;
  background: #ffffff;
}

.if-pricing-faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: 70px;
  align-items: start;
}

.if-pricing-faq-list {
  border-top: 1px solid #d7e5ef;
}

.if-pricing-faq-list details {
  border-bottom: 1px solid #d7e5ef;
}

.if-pricing-faq-list summary {
  position: relative;
  padding: 20px 42px 20px 0;
  color: #173955;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

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

.if-pricing-faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  color: #0878b8;
  font-size: 22px;
  content: "+";
  transform: translateY(-50%);
}

.if-pricing-faq-list details[open] summary::after {
  content: "−";
}

.if-pricing-faq-list p {
  margin: -4px 0 20px;
  padding-right: 38px;
  color: #5a748c;
  font-size: 14px;
  line-height: 1.65;
}

/* Authentication flow */
#authOverlay {
  padding: 24px;
  background: rgba(8, 30, 52, .46);
  backdrop-filter: blur(14px);
}

#authOverlay .auth-card,
body[data-theme="light"] #authOverlay .auth-card,
body[data-theme="dark"] #authOverlay .auth-card {
  width: min(520px, 100%);
  max-height: calc(100dvh - 48px);
  padding: 24px;
  border: 1px solid #cfe0eb;
  border-radius: 8px;
  background: #ffffff;
  color: #0b1a33;
  box-shadow: 0 28px 80px rgba(9, 42, 71, .24);
}

#authOverlay .auth-topbar {
  position: relative;
  justify-content: center;
  margin-bottom: 22px;
}

#authOverlay .auth-top-actions {
  position: absolute;
  top: 0;
  right: 0;
}

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

.auth-brand img {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(18, 155, 210, .18);
}

.auth-brand div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.auth-brand strong {
  color: #0b3157;
  font-size: 18px;
  line-height: 1.1;
}

.auth-brand span {
  overflow: hidden;
  color: #6a8296;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-close-btn {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid #d7e5ee;
  border-radius: 50%;
  background: #f6fafc;
  color: #385a73;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.auth-close-btn:hover {
  border-color: #9fcde2;
  background: #edf8fc;
  color: #0879a9;
}

#authOverlay .auth-head h2 {
  margin: 0 0 7px;
  color: #0b1a33;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

#authOverlay .auth-head p {
  margin: 0 0 18px;
  color: #607b91;
  font-size: 14px;
  line-height: 1.55;
}

#authOverlay .auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid #d4e3ec;
  border-radius: 8px;
  background: #edf5f9;
}

#authOverlay .auth-tab {
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #58748b;
  font-size: 13px;
  font-weight: 800;
}

#authOverlay .auth-tab.active {
  background: #ffffff;
  color: #0879a9;
  box-shadow: 0 4px 12px rgba(27, 72, 105, .12);
}

#authOverlay .auth-pane.active {
  display: block;
}

#authOverlay .auth-message,
#authOverlay .dev-code {
  margin-bottom: 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-method-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.auth-method-button {
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 44px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 16px 13px;
  border: 1px solid #cfdfe8;
  border-radius: 8px;
  background: #f8fbfd;
  color: #173c58;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.auth-method-button:hover,
.auth-method-button:focus-visible {
  border-color: #61bedb;
  background: #ffffff;
  color: #0b3157;
  box-shadow: 0 10px 24px rgba(16, 115, 154, .12);
  transform: translateY(-1px);
}

.auth-method-google {
  border-color: #747775;
  background: #ffffff;
  color: #1f1f1f;
}

.auth-method-vk {
  grid-template-columns: 44px minmax(0, 1fr) 16px;
  border-color: #a9cfff;
  background: #f5f9ff;
  color: #142f4d;
}

.auth-method-twitter {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.auth-method-twitter:hover,
.auth-method-twitter:focus-visible {
  border-color: #000000;
  background: #232323;
  color: #ffffff;
}

.auth-method-twitter .auth-method-copy small,
.auth-method-twitter .auth-method-arrow {
  color: #c7cbd1;
}

.auth-method-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
}

.auth-google-icon {
  border: 1px solid #e1e4e5;
}

.auth-google-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.auth-vk-icon {
  width: 42px;
  box-sizing: border-box;
  justify-items: start;
  overflow: hidden;
  padding-left: 5px;
  border: 1px solid #d8e8fb;
  background: #ffffff;
}

.auth-vk-icon img {
  display: block;
  width: 61px;
  height: 30px;
  max-width: none;
  object-fit: contain;
}

.auth-twitter-icon {
  border: 1px solid #3b3b3b;
  background: #000000;
}

.auth-twitter-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.auth-email-icon {
  background: #e5f7fc;
  color: #0879a9;
  font-size: 22px;
  font-weight: 900;
}

.auth-method-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.auth-method-copy strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.auth-method-copy small {
  color: #6a8296;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

.auth-selected-account {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 13px;
  border: 1px solid #d3e3ec;
  border-radius: 7px;
  background: #f3f8fb;
}

.auth-selected-account span {
  min-width: 0;
  overflow: hidden;
  color: #173c58;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-selected-account button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0879a9;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.auth-method-arrow {
  color: #7f98a9;
  font-size: 24px;
  line-height: 1;
}

.auth-method-disabled {
  opacity: .5;
  pointer-events: none;
}

.auth-method-notice,
.auth-legal-note {
  margin: 14px 0 0;
  color: #6a8296;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.auth-method-notice {
  padding: 9px 10px;
  border-radius: 6px;
  background: #fff6e8;
  color: #8a5b13;
}

.auth-legal-note a {
  color: #0879a9;
  font-weight: 750;
}

.auth-link-actions {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 8px;
}

.auth-link-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-register-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 4px 0 24px;
}

.auth-register-progress::before {
  position: absolute;
  top: 15px;
  right: 25%;
  left: 25%;
  height: 2px;
  background: #d9e6ee;
  content: "";
}

.auth-register-progress-item {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #7990a2;
}

.auth-register-progress-item span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid #d9e6ee;
  border-radius: 50%;
  background: #ffffff;
  color: #7990a2;
  font-size: 12px;
  font-weight: 900;
}

.auth-register-progress-item small {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.auth-register-progress-item.active {
  color: #0879a9;
}

.auth-register-progress-item.active span {
  border-color: #16a8df;
  background: #e8f8fd;
  color: #0879a9;
}

.auth-register-progress-item.complete {
  color: #087956;
}

.auth-register-progress-item.complete span {
  border-color: #0a9b67;
  background: #0a9b67;
  color: #ffffff;
}

.auth-register-step {
  display: none;
}

.auth-register-step.active {
  display: block;
  animation: auth-step-in .18s ease-out;
}

@keyframes auth-step-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-step-head {
  margin-bottom: 18px;
}

.auth-step-head h3 {
  margin: 0 0 6px;
  color: #0b3157;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.auth-step-head p {
  margin: 0;
  color: #6a8296;
  font-size: 13px;
  line-height: 1.5;
}

#authOverlay .field {
  gap: 7px;
  margin-bottom: 14px;
}

#authOverlay .field > span,
#authOverlay .auth-field-heading > span {
  color: #294d68;
  font-size: 12px;
  font-weight: 800;
}

#authOverlay .field > span small {
  margin-left: 4px;
  color: #7d93a4;
  font-size: 10px;
  font-weight: 700;
}

#authOverlay .field input {
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #cddfe9;
  border-radius: 6px;
  background: #f8fbfd;
  color: #0b1a33;
  font-size: 15px;
  box-shadow: none;
}

#authOverlay .field input::placeholder {
  color: #91a5b4;
}

#authOverlay .field input:focus {
  border-color: #19a7dc;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(25, 167, 220, .11);
}

#authOverlay .password-wrap input {
  padding-right: 90px;
}

#authOverlay .auth-password-toggle-text {
  right: 7px;
  width: auto;
  min-width: 72px;
  height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: #e9f5fa;
  color: #167da5;
  font-size: 11px;
  font-weight: 800;
}

.auth-step-actions {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 9px;
  margin-top: 6px;
}

#authOverlay .primary-btn,
#authOverlay .outline-btn {
  min-height: 48px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

#authOverlay .primary-btn {
  border-color: transparent;
  background: linear-gradient(135deg, #159fd7, #11b995);
  color: #ffffff;
  box-shadow: 0 11px 24px rgba(14, 151, 178, .2);
}

#authOverlay .outline-btn {
  border-color: #cbdde7;
  background: #ffffff;
  color: #315b76;
}

.auth-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0879a9;
  font-size: 11px;
  font-weight: 800;
}

.auth-inline-link:hover {
  color: #0a9b67;
}

#authOverlay .verify-head {
  margin-bottom: 16px;
}

#authOverlay .verify-label {
  color: #0b3157;
  font-size: 18px;
}

#authOverlay .verify-email {
  margin-top: 4px;
  color: #6a8296;
}

@media (max-width: 520px) {
  #authOverlay {
    align-items: flex-start;
    padding: 0;
    background: #ffffff;
    backdrop-filter: none;
  }

  #authOverlay .auth-card,
  body[data-theme="light"] #authOverlay .auth-card,
  body[data-theme="dark"] #authOverlay .auth-card {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 18px 18px calc(28px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #authOverlay .auth-topbar {
    margin-bottom: 17px;
  }

  #authOverlay .auth-head h2 {
    font-size: 24px;
  }

  #authOverlay .auth-head p {
    font-size: 13px;
  }

  #authOverlay .auth-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-method-button {
    min-height: 72px;
    padding: 12px 13px;
  }

  .auth-register-progress {
    margin-bottom: 20px;
  }

  .auth-register-progress-item small {
    font-size: 9px;
  }

  .auth-step-head h3 {
    font-size: 18px;
  }

  #authOverlay .field input {
    font-size: 16px;
  }

  .auth-step-actions {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 340px) {
  .auth-brand span {
    display: none;
  }

  .auth-register-progress-item small {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

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

  .if-pricing-card {
    min-height: 600px;
  }
}

@media (max-width: 760px) {
  .if-pricing-container {
    width: min(100% - 16px, 1240px);
  }

  .if-pricing-hero {
    padding: 48px 0 40px;
  }

  .if-pricing-hero h1 {
    font-size: 40px;
  }

  .if-pricing-hero p {
    font-size: 15px;
  }

  .if-pricing-billing {
    width: 100%;
    max-width: 410px;
  }

  .if-pricing-billing .billing-btn {
    min-width: 0;
    padding: 8px 5px;
    font-size: 12px;
  }

  .if-pricing-billing .billing-btn span {
    font-size: 9px;
  }

  .if-pricing-assurances {
    display: grid;
    justify-items: start;
    text-align: left;
  }

  .if-pricing-plans,
  .if-pricing-compare,
  .if-pricing-custom,
  .if-pricing-help,
  .if-pricing-faq {
    padding: 54px 0;
  }

  .if-pricing-grid {
    grid-template-columns: 1fr;
  }

  .if-pricing-card {
    min-height: 0;
    padding: 20px;
  }

  .if-pricing-popular {
    margin: -20px -20px 20px;
  }

  .if-pricing-description {
    min-height: 0;
  }

  .if-pricing-refund {
    padding: 54px 0;
  }

  .if-pricing-refund-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .if-pricing-refund .outline-btn {
    width: 100%;
  }

  .if-pricing-custom-card {
    padding: 22px;
  }

  .if-pricing-custom-head,
  .if-pricing-custom-controls,
  .if-pricing-help-grid,
  .if-pricing-faq-layout {
    grid-template-columns: 1fr;
  }

  .if-pricing-custom-head,
  .if-pricing-help-grid,
  .if-pricing-faq-layout {
    gap: 24px;
  }

  .if-pricing-custom-head h2 {
    font-size: 30px;
  }

  .if-pricing-custom-rates {
    justify-content: start;
  }

  .if-pricing-custom-controls {
    gap: 12px;
  }

  .if-pricing-custom-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .if-pricing-custom-summary .primary-btn,
  .if-pricing-help-actions > * {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .if-pricing-help-grid {
    gap: 32px;
  }
}

@media (max-width: 380px) {
  .if-pricing-hero h1 {
    font-size: 35px;
  }

  .if-pricing-card h2 {
    font-size: 20px;
  }

  .if-pricing-price strong {
    font-size: 31px;
  }
}

/* Telegram Proxy */
body[data-page="proxy"] {
  background: #ffffff;
}

.if-proxy-container {
  width: min(calc(100% - 32px), 1200px);
  margin: 0 auto;
}

.if-proxy-hero {
  padding: 62px 0 44px;
  border-bottom: 1px solid #d8e9f2;
  background: #eef8fc;
}

.if-proxy-hero-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.if-proxy-telegram-logo {
  width: 86px;
  height: 86px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(34, 158, 217, .2));
}

.if-proxy-kicker {
  color: #0879a9;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.if-proxy-hero h1 {
  max-width: 860px;
  margin: 12px 0 0;
  color: #0b1a33;
  font-size: 56px;
  line-height: 1.03;
  letter-spacing: 0;
}

.if-proxy-hero > .if-proxy-container > p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #526f87;
  font-size: 17px;
  line-height: 1.65;
}

.if-proxy-rates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 590px);
  margin-top: 28px;
  border-top: 1px solid #c7dfe9;
  border-bottom: 1px solid #c7dfe9;
}

.if-proxy-rates > div {
  display: grid;
  gap: 5px;
  padding: 16px 24px;
}

.if-proxy-rates > div + div {
  border-left: 1px solid #c7dfe9;
}

.if-proxy-rates span {
  color: #668096;
  font-size: 11px;
  font-weight: 700;
}

.if-proxy-rates strong {
  color: #0b3157;
  font-size: 24px;
  line-height: 1.15;
}

.if-proxy-rates strong small {
  color: #5d788e;
  font-size: 11px;
}

.if-proxy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.if-proxy-hero-actions > * {
  min-width: 190px;
  min-height: 48px;
  border-radius: 6px;
}

.if-proxy-hero-actions .primary-btn {
  background: linear-gradient(135deg, #159fd7, #11b995);
  box-shadow: 0 12px 26px rgba(14, 151, 178, .2);
}

.if-proxy-hero-actions .outline-btn {
  border-color: #bfd8e5;
  background: rgba(255, 255, 255, .72);
  color: #235674;
}

.if-proxy-assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 24px;
  margin-top: 23px;
  color: #55738a;
  font-size: 12px;
  font-weight: 800;
}

.if-proxy-assurances span {
  position: relative;
  padding-left: 18px;
}

.if-proxy-assurances span::before {
  position: absolute;
  left: 0;
  color: #0a9b67;
  content: "✓";
}

.if-proxy-onboarding,
.if-proxy-benefits,
.if-proxy-faq {
  padding: 76px 0;
}

.if-proxy-workspace {
  padding: 72px 0 78px;
  scroll-margin-top: 92px;
  background: #f3f8fb;
}

.if-proxy-section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.if-proxy-section-head h2,
.if-proxy-details h2 {
  margin: 9px 0 0;
  color: #0b1a33;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0;
}

.if-proxy-section-head p {
  margin: 12px 0 0;
  color: #617b90;
  font-size: 15px;
  line-height: 1.65;
}

.if-proxy-section-head-row {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.if-proxy-section-head-row > div {
  max-width: 720px;
}

.if-proxy-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #bad8e6;
  border-radius: 999px;
  background: #ffffff;
  color: #315d78;
  font-size: 11px;
  font-weight: 900;
}

.if-proxy-status.status-active {
  border-color: #a8dfc7;
  background: #e9f8f1;
  color: #087956;
}

.if-proxy-status.status-payment_due {
  border-color: #efcf92;
  background: #fff8e8;
  color: #8d620b;
}

.if-proxy-status.status-disabled {
  border-color: #d7dfe5;
  background: #f1f4f6;
  color: #677987;
}

.if-proxy-status.status-loading {
  border-color: #d7e5ec;
  background: #f5f9fb;
  color: #6c8291;
}

#personalProxyPage.is-loading #personalProxyStatus,
#personalProxyPage.is-loading .if-proxy-metrics strong,
#personalProxyPage.is-loading .if-proxy-summary-item strong {
  color: #8395a2;
  animation: if-proxy-loading-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes if-proxy-loading-pulse {
  from { opacity: .45; }
  to { opacity: 1; }
}

.if-proxy-onboarding-grid,
.if-proxy-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.if-proxy-step,
.if-proxy-benefit-grid article {
  min-width: 0;
  padding: 24px;
  border: 1px solid #d4e4ed;
  border-radius: 8px;
  background: #ffffff;
}

.if-proxy-step {
  border-top: 3px solid #26a9df;
}

.if-proxy-step > span,
.if-proxy-benefit-grid article > span {
  display: block;
  margin-bottom: 22px;
  color: #1593c7;
  font-size: 12px;
  font-weight: 900;
}

.if-proxy-step h3,
.if-proxy-benefit-grid h3 {
  margin: 0;
  color: #0b3157;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.if-proxy-step p,
.if-proxy-benefit-grid p {
  margin: 10px 0 0;
  color: #637d91;
  font-size: 13px;
  line-height: 1.6;
}

.if-proxy-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 16px;
  align-items: start;
}

.if-proxy-control-card,
.if-proxy-topup-card,
.if-proxy-history {
  min-width: 0;
  padding: 26px;
  border: 1px solid #cfe0e9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 15px 38px rgba(20, 60, 92, .07);
}

.if-proxy-card-head,
.if-proxy-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.if-proxy-card-head > div > span {
  display: block;
  margin-bottom: 5px;
  color: #6a8397;
  font-size: 11px;
  font-weight: 800;
}

.if-proxy-card-head h3,
.if-proxy-topup-card h3,
.if-proxy-history h3 {
  margin: 0;
  color: #0b3157;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.if-proxy-card-head img {
  flex: 0 0 auto;
}

.if-proxy-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
  border-top: 1px solid #dbe8ef;
  border-bottom: 1px solid #dbe8ef;
}

.if-proxy-metrics > div {
  min-width: 0;
  padding: 18px 18px 18px 0;
}

.if-proxy-metrics > div + div {
  padding-left: 18px;
  border-left: 1px solid #dbe8ef;
}

.if-proxy-metrics span {
  display: block;
  margin-bottom: 6px;
  color: #70889a;
  font-size: 11px;
  font-weight: 700;
}

.if-proxy-metrics strong {
  display: block;
  overflow-wrap: anywhere;
  color: #0b1a33;
  font-size: 27px;
  line-height: 1.15;
}

.if-proxy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.if-proxy-actions > * {
  min-height: 46px;
  border-radius: 6px;
}

.if-proxy-actions .primary-btn,
.if-proxy-topup-card .primary-btn {
  background: linear-gradient(135deg, #159fd7, #11b995);
}

.if-proxy-actions .outline-btn {
  border-color: #c6dae5;
  background: #ffffff;
  color: #315b76;
}

.if-proxy-endpoint {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #dbe8ef;
}

.if-proxy-endpoint span,
.if-proxy-endpoint small {
  display: block;
  color: #6c8497;
  font-size: 11px;
}

.if-proxy-endpoint code {
  display: block;
  margin: 7px 0;
  overflow-wrap: anywhere;
  color: #0b3157;
  font-size: 14px;
  font-weight: 800;
}

.if-proxy-topup-card > p {
  margin: 10px 0 22px;
  color: #637d91;
  font-size: 13px;
  line-height: 1.6;
}

.if-proxy-topup-card .field {
  margin-bottom: 10px;
}

.if-proxy-topup-card .field > span {
  color: #345971;
  font-size: 12px;
  font-weight: 800;
}

.if-proxy-topup-card input {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #cbdde7;
  border-radius: 6px;
  background: #f8fbfd;
  color: #0b1a33;
  font-size: 16px;
}

.if-proxy-topup-card input:focus {
  border-color: #19a7dc;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(25, 167, 220, .11);
}

.if-proxy-quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}

.if-proxy-quick-amounts button {
  min-width: 0;
  min-height: 38px;
  padding: 8px 5px;
  border: 1px solid #cee0e9;
  border-radius: 6px;
  background: #edf7fb;
  color: #217598;
  font-size: 11px;
  font-weight: 900;
}

.if-proxy-quick-amounts button:hover {
  border-color: #7fc7e3;
  background: #e3f5fb;
}

.if-proxy-topup-card .primary-btn {
  min-height: 48px;
  border-radius: 6px;
}

.if-proxy-topup-note {
  display: block;
  margin-top: 12px;
  color: #7a90a1;
  font-size: 10px;
  line-height: 1.45;
}

.if-proxy-history {
  margin-top: 16px;
}

.if-proxy-history-copy {
  max-width: 680px;
  margin: 9px 0 0;
  color: #6a8397;
  font-size: 12px;
  line-height: 1.55;
}

.if-proxy-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid #dce8ef;
  border-bottom: 1px solid #dce8ef;
}

.if-proxy-summary-item {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 18px;
}

.if-proxy-summary-item + .if-proxy-summary-item {
  border-left: 1px solid #dce8ef;
}

.if-proxy-summary-item span {
  color: #527086;
  font-size: 11px;
  font-weight: 900;
}

.if-proxy-summary-item strong {
  overflow-wrap: anywhere;
  color: #0b3157;
  font-size: 22px;
  line-height: 1.15;
}

.if-proxy-summary-item small {
  color: #8296a5;
  font-size: 9px;
  line-height: 1.35;
}

.if-proxy-history-list {
  display: grid;
  margin-top: 18px;
}

.if-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 #dce8ef;
}

.if-proxy-history-list span,
.if-proxy-history-list small {
  color: #6b8396;
  font-size: 11px;
}

.if-proxy-history-list strong {
  color: #0b3157;
  font-size: 13px;
}

.if-proxy-empty {
  margin: 16px 0 0;
  color: #6a8397;
  font-size: 13px;
}

.if-proxy-benefits {
  background: #ffffff;
}

.if-proxy-benefit-grid article:nth-child(2) {
  border-top: 3px solid #0a9b67;
}

.if-proxy-benefit-grid article:nth-child(3) {
  border-top: 3px solid #f0b84b;
}

.if-proxy-details {
  padding: 76px 0;
  scroll-margin-top: 92px;
  background: #edf8f4;
}

.if-proxy-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
}

.if-proxy-details h2 {
  max-width: 470px;
  font-size: 32px;
}

.if-proxy-detail-list {
  display: grid;
  margin-top: 24px;
}

.if-proxy-detail-list > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #cce5da;
}

.if-proxy-detail-list strong {
  color: #087956;
  font-size: 17px;
}

.if-proxy-detail-list span,
.if-proxy-security-list li {
  color: #4f7264;
  font-size: 13px;
  line-height: 1.55;
}

.if-proxy-security-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.if-proxy-security-list li {
  position: relative;
  padding-left: 23px;
}

.if-proxy-security-list li::before {
  position: absolute;
  left: 0;
  color: #0a9b67;
  font-weight: 900;
  content: "✓";
}

.if-proxy-faq-layout {
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
  gap: 60px;
}

.if-proxy-faq-list details {
  border-top: 1px solid #d7e5ed;
}

.if-proxy-faq-list details:last-child {
  border-bottom: 1px solid #d7e5ed;
}

.if-proxy-faq-list summary {
  position: relative;
  padding: 18px 38px 18px 0;
  color: #0b3157;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

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

.if-proxy-faq-list summary::after {
  position: absolute;
  top: 16px;
  right: 2px;
  color: #1593c7;
  font-size: 21px;
  content: "+";
}

.if-proxy-faq-list details[open] summary::after {
  content: "−";
}

.if-proxy-faq-list p {
  margin: -3px 0 18px;
  padding-right: 34px;
  color: #617b90;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .if-proxy-dashboard,
  .if-proxy-details-grid,
  .if-proxy-faq-layout {
    grid-template-columns: 1fr;
  }

  .if-proxy-details-grid,
  .if-proxy-faq-layout {
    gap: 42px;
  }

  .if-proxy-onboarding-grid,
  .if-proxy-benefit-grid {
    grid-template-columns: 1fr;
  }
}

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

  .if-proxy-hero {
    padding: 42px 0 34px;
  }

  .if-proxy-telegram-logo {
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
  }

  .if-proxy-hero h1 {
    font-size: 38px;
  }

  .if-proxy-hero > .if-proxy-container > p {
    font-size: 14px;
  }

  .if-proxy-rates > div {
    padding: 14px 8px;
  }

  .if-proxy-rates strong {
    font-size: 20px;
  }

  .if-proxy-hero-actions {
    width: 100%;
  }

  .if-proxy-hero-actions > * {
    width: 100%;
    min-width: 0;
  }

  .if-proxy-assurances {
    display: grid;
    justify-items: start;
    align-self: stretch;
    text-align: left;
  }

  .if-proxy-onboarding,
  .if-proxy-benefits,
  .if-proxy-faq,
  .if-proxy-workspace,
  .if-proxy-details {
    padding: 52px 0;
  }

  .if-proxy-section-head {
    margin-bottom: 24px;
  }

  .if-proxy-section-head h2,
  .if-proxy-details h2 {
    font-size: 30px;
  }

  .if-proxy-section-head-row {
    display: grid;
    align-items: start;
  }

  .if-proxy-status {
    justify-self: start;
  }

  .if-proxy-control-card,
  .if-proxy-topup-card,
  .if-proxy-history,
  .if-proxy-step,
  .if-proxy-benefit-grid article {
    padding: 20px;
  }

  .if-proxy-metrics {
    grid-template-columns: 1fr;
  }

  .if-proxy-metrics > div {
    padding: 15px 0;
  }

  .if-proxy-metrics > div + div {
    padding-left: 0;
    border-top: 1px solid #dbe8ef;
    border-left: 0;
  }

  .if-proxy-actions {
    display: grid;
  }

  .if-proxy-actions > * {
    width: 100%;
  }

  .if-proxy-history-list > div {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
  }

  .if-proxy-history-list small {
    grid-column: 1 / -1;
  }

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

  .if-proxy-summary-item:nth-child(3) {
    border-left: 0;
  }

  .if-proxy-summary-item:nth-child(n + 3) {
    border-top: 1px solid #dce8ef;
  }

  .if-proxy-details-grid,
  .if-proxy-faq-layout {
    gap: 36px;
  }
}

@media (max-width: 360px) {
  .if-proxy-hero h1 {
    font-size: 34px;
  }

  .if-proxy-rates span {
    min-height: 27px;
  }

  .if-proxy-rates strong {
    font-size: 18px;
  }

  .if-proxy-card-head h3,
  .if-proxy-topup-card h3,
  .if-proxy-history h3 {
    font-size: 23px;
  }
}

/* Cabinet v24 */
body[data-page="cabinet"] {
  background: #f4f8fb;
  overscroll-behavior-y: none;
}

.if-cabinet-page,
.if-cabinet-guest {
  background: #f4f8fb;
  color: #102331;
}

.if-cabinet-page {
  min-height: calc(100vh - 76px);
  padding: 30px 0 64px;
}

.if-cabinet-guest {
  min-height: calc(100vh - 76px);
  padding: 56px 0 72px;
}

.if-cabinet-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.if-cabinet-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.if-cabinet-sidebar {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(18, 54, 73, 0.07);
}

.if-cabinet-sidebar-brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 18px;
  border-bottom: 1px solid #e6eef3;
}

.if-cabinet-sidebar-brand img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.if-cabinet-sidebar-brand div,
.if-cabinet-sidebar-brand strong,
.if-cabinet-sidebar-brand span {
  min-width: 0;
}

.if-cabinet-sidebar-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.if-cabinet-sidebar-brand span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #6b7e89;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.if-cabinet-nav {
  display: grid;
  gap: 3px;
  padding: 9px;
}

.if-cabinet-nav .cabinet-tab {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #193547;
  text-align: left;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.if-cabinet-nav .cabinet-tab:hover {
  background: #f0f7fa;
  color: #087f9c;
}

.if-cabinet-nav .cabinet-tab.active {
  background: #e8f7fb;
  color: #087f9c;
  box-shadow: inset 3px 0 0 #13a8c8;
}

.if-cabinet-nav .cabinet-tab span,
.if-cabinet-nav .cabinet-tab small {
  display: block;
  letter-spacing: 0;
}

.if-cabinet-nav .cabinet-tab span {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.if-cabinet-nav .cabinet-tab small {
  margin-top: 2px;
  color: #71838d;
  font-size: 11px;
  line-height: 1.35;
}

.if-cabinet-proxy-link {
  display: block;
  margin: 0 9px 9px;
  padding: 13px 12px;
  border: 1px solid #c9e7df;
  border-radius: 6px;
  background: #f0fbf7;
  color: #175b49;
  text-decoration: none;
}

.if-cabinet-proxy-link strong,
.if-cabinet-proxy-link span {
  display: block;
}

.if-cabinet-proxy-link strong {
  font-size: 13px;
}

.if-cabinet-proxy-link span {
  margin-top: 2px;
  color: #568173;
  font-size: 11px;
}

.if-cabinet-main {
  min-width: 0;
}

.if-cabinet-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.if-cabinet-header > div {
  min-width: 0;
}

.if-cabinet-kicker {
  margin-bottom: 7px;
  color: #0886a2;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.if-cabinet-header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.if-cabinet-header p,
.if-cabinet-section-head p {
  margin: 8px 0 0;
  color: #687d89;
  font-size: 14px;
  line-height: 1.55;
}

.if-cabinet-header p strong {
  color: #294a5c;
  font-weight: 800;
}

.if-cabinet-section[hidden] {
  display: none !important;
}

.if-cabinet-section.active {
  animation: ifCabinetIn 180ms ease both;
}

@keyframes ifCabinetIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.if-cabinet-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.if-cabinet-section-head h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.16;
  letter-spacing: 0;
}

.if-cabinet-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid #c9e5ed;
  border-radius: 999px;
  background: #edf9fc;
  color: #087e99;
  font-size: 12px;
  font-weight: 800;
}

.if-cabinet-status-card,
.if-cabinet-tool {
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 54, 73, 0.055);
}

.if-cabinet-status-card {
  padding: 24px;
}

.if-cabinet-status-intro h3,
.if-cabinet-empty h3,
.if-cabinet-subhead h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.if-cabinet-status-intro p,
.if-cabinet-empty p,
.if-cabinet-subhead p {
  margin: 6px 0 0;
  color: #6a7e89;
  font-size: 13px;
  line-height: 1.5;
}

.if-cabinet-status-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
  border-top: 1px solid #e4edf2;
  border-bottom: 1px solid #e4edf2;
}

.if-cabinet-status-metrics > div {
  min-width: 0;
  padding: 17px 18px;
}

.if-cabinet-status-metrics > div:first-child {
  padding-left: 0;
}

.if-cabinet-status-metrics > div + div {
  border-left: 1px solid #e4edf2;
}

.if-cabinet-status-metrics span,
.if-cabinet-referral-metrics span {
  display: block;
  color: #70828c;
  font-size: 12px;
  line-height: 1.35;
}

.if-cabinet-status-metrics strong,
.if-cabinet-referral-metrics strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: #122f40;
  font-size: 17px;
  line-height: 1.3;
}

.if-cabinet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.if-cabinet-actions .primary-btn,
.if-cabinet-actions .outline-btn,
.if-cabinet-header .primary-btn,
.if-cabinet-section-head .primary-btn,
.if-cabinet-section-head .outline-btn {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 13px;
}

.if-cabinet-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.if-cabinet-quick-grid > button,
.if-cabinet-quick-grid > a {
  display: block;
  min-width: 0;
  min-height: 96px;
  padding: 18px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
  color: #183444;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.if-cabinet-quick-grid > button:hover,
.if-cabinet-quick-grid > a:hover {
  border-color: #9ed5e2;
  box-shadow: 0 9px 24px rgba(26, 96, 119, 0.08);
  transform: translateY(-1px);
}

.if-cabinet-quick-grid strong,
.if-cabinet-quick-grid span {
  display: block;
}

.if-cabinet-quick-grid strong {
  font-size: 15px;
  line-height: 1.35;
}

.if-cabinet-quick-grid span {
  margin-top: 5px;
  color: #6c808b;
  font-size: 12px;
  line-height: 1.45;
}

.if-cabinet-tool {
  padding: 22px;
}

.if-cabinet-autopay {
  margin-top: 14px;
}

.if-cabinet-autopay .primary-btn,
.if-cabinet-autopay .outline-btn {
  min-height: 44px;
}

.if-cabinet-autopay .if-cabinet-data-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.if-cabinet-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0 13px;
  color: #5f7480;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.if-cabinet-confirm input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #109bb8;
}

@media (max-width: 560px) {
  .if-cabinet-autopay .primary-btn,
  .if-cabinet-autopay .outline-btn {
    width: 100%;
  }

  .if-cabinet-autopay .if-cabinet-data-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.if-cabinet-access,
.if-cabinet-empty,
.if-cabinet-devices {
  min-width: 0;
}

.if-cabinet-devices {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e2ebf0;
}

.if-cabinet-data-row,
.if-cabinet-code-row,
.if-cabinet-profile-row {
  display: grid;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid #e6eef3;
}

.if-cabinet-data-row {
  grid-template-columns: 130px minmax(0, 1fr);
}

.if-cabinet-data-row span,
.if-cabinet-code-row span,
.if-cabinet-profile-row > span {
  color: #6c7f8a;
  font-size: 12px;
}

.if-cabinet-data-row strong,
.if-cabinet-code-row strong,
.if-cabinet-profile-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #173344;
  font-size: 14px;
}

.if-cabinet-access .if-cabinet-actions,
.if-cabinet-empty .if-cabinet-actions {
  margin-top: 18px;
}

.if-cabinet-subhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.if-cabinet-referral-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
}

.if-cabinet-referral-metrics > div {
  min-width: 0;
  padding: 17px;
}

.if-cabinet-referral-metrics > div + div {
  border-left: 1px solid #e2ebf0;
}

.if-cabinet-referral-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.if-cabinet-code-row {
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 17px;
}

.if-cabinet-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  min-height: 30px;
  border-radius: 6px;
  background: #f0f8fb;
  color: #0a849f;
  font-size: 13px;
}

.if-cabinet-inner-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e2ebf0;
}

.if-cabinet-inner-section h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.if-cabinet-profile-row {
  grid-template-columns: 150px minmax(0, 1fr) 36px;
}

.if-cabinet-profile-row .icon-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #d6e4eb;
  border-radius: 6px;
  background: #fff;
  color: #1a6075;
  font-size: 16px;
  cursor: pointer;
}

.if-cabinet-danger-zone {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e2ebf0;
}

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

.if-cabinet-support-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 190px;
  padding: 21px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
}

.if-cabinet-support-grid h3 {
  margin: 0;
  font-size: 18px;
}

.if-cabinet-support-grid p {
  flex: 1;
  margin: 8px 0 20px;
  color: #6a7e89;
  font-size: 13px;
  line-height: 1.5;
}

.if-cabinet-support-grid .primary-btn,
.if-cabinet-support-grid .outline-btn {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 12px;
}

.if-cabinet-guest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  align-items: center;
  gap: 56px;
  max-width: 980px;
  margin: 0 auto;
}

.if-cabinet-guest-layout h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: 0;
}

.if-cabinet-guest-layout > div:first-child > p {
  max-width: 650px;
  margin: 16px 0 0;
  color: #627985;
  font-size: 16px;
  line-height: 1.6;
}

.if-cabinet-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.if-cabinet-guest-benefits {
  overflow: hidden;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(17, 57, 76, 0.08);
}

.if-cabinet-guest-benefits > div {
  padding: 17px 19px;
}

.if-cabinet-guest-benefits > div + div {
  border-top: 1px solid #e4edf2;
}

.if-cabinet-guest-benefits strong,
.if-cabinet-guest-benefits span {
  display: block;
}

.if-cabinet-guest-benefits strong {
  font-size: 14px;
}

.if-cabinet-guest-benefits span {
  margin-top: 3px;
  color: #6a7f8a;
  font-size: 12px;
}

@media (max-width: 900px) {
  .if-cabinet-page {
    padding-top: 14px;
  }

  .if-cabinet-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .if-cabinet-sidebar {
    position: relative;
    z-index: 1;
    top: auto;
    overflow: hidden;
    border-radius: 8px;
  }

  .if-cabinet-sidebar-brand,
  .if-cabinet-proxy-link {
    display: none;
  }

  .if-cabinet-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 5px;
    overflow: visible;
    padding: 7px;
  }

  .if-cabinet-nav .cabinet-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    white-space: normal;
  }

  .if-cabinet-nav .cabinet-tab.active {
    border-color: #b9e4ed;
    background: #eaf8fb;
    box-shadow: inset 0 -2px 0 #13a8c8;
  }

  .if-cabinet-nav .cabinet-tab:last-child {
    grid-column: 1 / -1;
  }

  .if-cabinet-nav .cabinet-tab small {
    display: none;
  }

  .if-cabinet-main {
    scroll-margin-top: 16px;
  }

  .if-cabinet-header {
    align-items: center;
  }

  .if-cabinet-header h1 {
    font-size: 32px;
  }

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

  .if-cabinet-referral-metrics > div:nth-child(3) {
    border-left: 0;
  }

  .if-cabinet-referral-metrics > div:nth-child(n + 3) {
    border-top: 1px solid #e2ebf0;
  }

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

  .if-cabinet-guest-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 620px) {
  .if-cabinet-page {
    padding-bottom: 40px;
  }

  .if-cabinet-guest {
    padding: 34px 0 46px;
  }

  .if-cabinet-container {
    width: min(calc(100% - 16px), 1180px);
  }

  .if-cabinet-sidebar {
    top: auto;
  }

  .if-cabinet-header {
    display: grid;
    align-items: start;
    gap: 13px;
    margin-bottom: 18px;
  }

  .if-cabinet-header .primary-btn {
    width: 100%;
  }

  .if-cabinet-header h1 {
    font-size: 27px;
    line-height: 1.12;
  }

  .if-cabinet-header p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
  }

  .if-cabinet-section-head {
    display: grid;
    align-items: start;
    gap: 12px;
  }

  .if-cabinet-section-head h2 {
    font-size: 24px;
  }

  .if-cabinet-section-head > .primary-btn,
  .if-cabinet-section-head > .outline-btn {
    width: 100%;
  }

  .if-cabinet-status-card,
  .if-cabinet-tool {
    padding: 17px;
  }

  .if-cabinet-status-metrics {
    grid-template-columns: minmax(0, 1fr);
    margin: 18px 0;
  }

  .if-cabinet-status-metrics > div,
  .if-cabinet-status-metrics > div:first-child {
    padding: 12px 0;
  }

  .if-cabinet-status-metrics > div + div {
    border-top: 1px solid #e4edf2;
    border-left: 0;
  }

  .if-cabinet-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .if-cabinet-actions > * {
    width: 100%;
  }

  .if-cabinet-quick-grid,
  .if-cabinet-referral-grid,
  .if-cabinet-support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .if-cabinet-quick-grid > button,
  .if-cabinet-quick-grid > a {
    min-height: 84px;
    padding: 15px;
  }

  .if-cabinet-data-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .if-cabinet-referral-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .if-cabinet-referral-metrics > div + div,
  .if-cabinet-referral-metrics > div:nth-child(3) {
    border-top: 1px solid #e2ebf0;
    border-left: 0;
  }

  .if-cabinet-profile-row {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 5px 10px;
  }

  .if-cabinet-profile-row > span {
    grid-column: 1 / -1;
  }

  .if-cabinet-danger-zone {
    display: grid;
  }

  .if-cabinet-danger-zone > * {
    width: 100%;
  }

  .if-cabinet-support-grid article {
    min-height: 0;
  }

  .if-cabinet-guest-layout {
    gap: 24px;
  }

  .if-cabinet-guest-layout h1 {
    font-size: 36px;
  }

  .if-cabinet-guest-layout > div:first-child > p {
    font-size: 14px;
  }

  .if-cabinet-guest-actions {
    display: grid;
  }

  .if-cabinet-guest-actions > * {
    width: 100%;
  }
}

/* Stable site drawer v31 */
@media (max-width: 1380px) {
  body.nav-open {
    overflow: hidden;
  }

  .mobile-nav-overlay,
  body[data-theme="light"] .mobile-nav-overlay {
    position: fixed;
    z-index: 1200;
    inset: 0;
    min-height: 100dvh;
    background: rgba(12, 32, 44, 0.38);
    backdrop-filter: blur(5px);
    touch-action: none;
  }

  .mobile-nav-panel,
  body[data-theme="light"] .mobile-nav-panel,
  .mobile-nav-panel.is-floating-menu,
  body[data-theme="light"] .mobile-nav-panel.is-floating-menu {
    position: fixed !important;
    z-index: 1201 !important;
    top: 0;
    right: 0;
    bottom: auto !important;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(390px, calc(100vw - 20px)) !important;
    height: 100dvh;
    min-height: 0 !important;
    max-height: none;
    padding: 0 !important;
    gap: 0;
    overflow: hidden !important;
    border: 0 !important;
    border-left: 1px solid #d7e5ec !important;
    border-radius: 8px 0 0 8px !important;
    background: #f8fbfd !important;
    color: #153244;
    box-shadow: -18px 0 52px rgba(12, 43, 58, 0.18) !important;
    transform: translate3d(104%, 0, 0) !important;
    transition: transform 180ms ease, visibility 180ms ease;
    overscroll-behavior: contain;
  }

  .mobile-nav-panel.is-open,
  .mobile-nav-panel.is-floating-menu.is-open,
  body[data-theme="light"] .mobile-nav-panel.is-open {
    transform: translate3d(0, 0, 0) !important;
  }

  .mobile-nav-panel .mobile-nav-head,
  .mobile-nav-panel.is-floating-menu .mobile-nav-head {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #dfeaf0 !important;
    background: #ffffff;
  }

  .mobile-nav-panel .mobile-brand,
  .mobile-nav-panel.is-floating-menu .mobile-brand {
    display: flex !important;
    max-width: calc(100% - 54px);
    gap: 10px;
  }

  .mobile-nav-panel .mobile-brand .brand-logo {
    width: 40px;
    height: 40px;
  }

  .mobile-nav-panel .mobile-brand .brand-text-group strong {
    color: #122c3b;
    font-size: 15px;
  }

  .mobile-nav-panel .mobile-brand .brand-text-group span {
    color: #6c818d;
    font-size: 11px;
  }

  .mobile-nav-panel #navCloseBtn,
  .mobile-nav-panel.is-floating-menu #navCloseBtn {
    position: static;
    display: inline-flex !important;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid #d4e3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #173749;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-nav-panel .main-nav,
  .mobile-nav-panel.is-floating-menu .main-nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 4px !important;
    width: 100%;
    min-height: 0;
    padding: 10px 12px !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b9d2dc transparent;
  }

  .mobile-nav-panel .main-nav::-webkit-scrollbar {
    width: 5px;
  }

  .mobile-nav-panel .main-nav::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #b9d2dc;
  }

  .mobile-nav-panel .main-nav .nav-link,
  .mobile-nav-panel.is-floating-menu .nav-link {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #29495a;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
  }

  .mobile-nav-panel .main-nav .nav-link:hover {
    border-color: #d2e7ed;
    background: #edf7fa;
    color: #087f9c;
  }

  .mobile-nav-panel .main-nav .nav-link.active,
  body[data-theme="light"] .mobile-nav-panel .main-nav .nav-link.active {
    border-color: #b8e2ea;
    background: #e7f7fa;
    color: #087f9c;
    box-shadow: inset 3px 0 0 #14a6c3;
  }

  .mobile-nav-panel .nav-actions,
  .mobile-nav-panel.is-floating-menu .nav-actions {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    width: 100%;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #dfeaf0;
    background: #ffffff;
  }

  .mobile-nav-panel .nav-actions > * {
    width: 100%;
    min-width: 0;
  }

  .mobile-nav-panel .nav-actions .chip,
  .mobile-nav-panel .nav-actions .user-chip {
    grid-column: 1 / -1;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #dbe8ee;
    border-radius: 6px;
    background: #f3f8fa;
    color: #355565;
    text-align: left;
  }

  .mobile-nav-panel .nav-actions .outline-btn,
  .mobile-nav-panel .nav-actions .primary-btn {
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 6px;
    font-size: 12px;
  }

  .nav-toggle {
    border-radius: 8px;
    background: #ffffff;
    color: #173749;
  }
}

@media (max-width: 520px) {
  .mobile-nav-panel,
  body[data-theme="light"] .mobile-nav-panel,
  .mobile-nav-panel.is-floating-menu {
    width: min(360px, calc(100vw - 8px)) !important;
  }
}

/* Compact site header v32 */
.site-header,
body[data-theme="light"] .site-header,
body[data-theme="dark"] .site-header {
  min-height: 64px;
}

.site-header .nav-row {
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header .nav-row > .brand {
  gap: 10px;
}

.site-header .nav-row > .brand .brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
}

.site-header .nav-row > .brand .brand-text-group > span {
  display: none;
}

@media (min-width: 1381px) {
  .site-header #mobileNavPanel .main-nav {
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  .site-header #mobileNavPanel .main-nav .nav-link {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .site-header #mobileNavPanel .nav-actions {
    gap: 6px;
  }

  .site-header #mobileNavPanel .nav-actions .outline-btn,
  .site-header #mobileNavPanel .nav-actions .primary-btn {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }
}

@media (max-width: 1380px) {
  .site-header .nav-row {
    min-height: 64px;
    padding: 8px 0;
  }

  .site-header .nav-row > .nav-toggle {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 8px;
  }
}

@media (max-width: 520px) {
  .site-header,
  body[data-theme="light"] .site-header,
  body[data-theme="dark"] .site-header {
    min-height: 58px;
  }

  .site-header .nav-row {
    min-height: 58px;
    padding: 6px 0;
  }

  .site-header .nav-row > .brand .brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .site-header .nav-row > .brand .brand-text-group strong {
    font-size: 16px;
  }
}

/* I-Freedom checkout refresh v34 */
body[data-page="payment"] {
  background: #f4fafc;
}

body[data-page="payment"] .page-shell {
  padding-top: 20px;
  padding-bottom: 56px;
}

body[data-page="payment"] .payment-page-shell {
  width: min(1160px, calc(100% - 32px));
  padding: 0;
}

body[data-page="payment"] .payment-page-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

body[data-page="payment"] .payment-page-main {
  display: grid;
  gap: 12px;
}

body[data-page="payment"] .payment-page-order-card,
body[data-page="payment"] .payment-page-methods-card,
body[data-page="payment"] .payment-page-details-card,
body[data-theme="dark"][data-page="payment"] .payment-page-order-card,
body[data-theme="dark"][data-page="payment"] .payment-page-methods-card,
body[data-theme="dark"][data-page="payment"] .payment-page-details-card {
  padding: 18px;
  border: 1px solid #dbe8ee;
  border-radius: 8px;
  background: #ffffff;
  color: #153244;
  box-shadow: 0 12px 32px rgba(25, 75, 96, 0.08);
}

body[data-page="payment"] .payment-page-product-row {
  gap: 14px;
}

body[data-page="payment"] .payment-page-product-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  padding: 5px;
  border: 1px solid #dcebf0;
  border-radius: 8px;
  background: #f5fbfd;
  box-shadow: none;
}

body[data-page="payment"] .payment-page-product-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

body[data-page="payment"] .payment-page-product-row h1 {
  margin: 0 0 3px;
  color: #153244;
  font-size: 24px;
  line-height: 1.2;
}

body[data-page="payment"] .payment-page-product-price {
  color: #087f9c;
  font-size: 18px;
}

body[data-page="payment"] .payment-page-order-meta {
  margin-top: 14px;
  gap: 6px;
}

body[data-page="payment"] .payment-page-order-meta span {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid #dcebf0;
  border-radius: 6px;
  background: #f5fafc;
  color: #426171;
  font-size: 12px;
}

body[data-page="payment"] .payment-page-order-meta .payment-page-status {
  border-color: #bee4ea;
  background: #e9f8fa;
  color: #087f9c;
}

body[data-page="payment"] .payment-page-section-head {
  margin-bottom: 10px;
}

body[data-page="payment"] .payment-page-section-head h2,
body[data-page="payment"] .payment-page-details-card h3 {
  color: #153244;
  font-size: 20px;
}

body[data-page="payment"] .checkout-email-box {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d6e9ee;
  border-radius: 8px;
  background: #f5fbfc;
}

body[data-page="payment"] .checkout-email-box .field input {
  border-color: #cbdfe6;
  border-radius: 6px;
  background: #ffffff;
}

body[data-page="payment"] .checkout-email-box .field input:focus {
  border-color: #14a6c3;
  box-shadow: 0 0 0 3px rgba(20, 166, 195, 0.12);
}

body[data-page="payment"] .payment-method-row {
  border-color: #dbe6eb;
  border-radius: 8px;
  background: #ffffff;
}

body[data-page="payment"] .payment-method-row:hover {
  border-color: #9fd4df;
}

body[data-page="payment"] .payment-method-row.is-selected {
  border-color: #14a6c3;
  box-shadow: 0 0 0 3px rgba(20, 166, 195, 0.11);
}

body[data-page="payment"] .payment-method-row.is-selected .payment-method-radio {
  border-color: #14a6c3;
}

body[data-page="payment"] .payment-method-row.is-selected .payment-method-radio::after {
  background: #14a6c3;
}

body[data-page="payment"] .payment-email-warning {
  border: 1px solid #f0d99e;
  border-radius: 8px;
  background: #fff9e9;
  color: #795912;
}

body[data-page="payment"] .payment-page-sidebar {
  top: 80px;
}

body[data-page="payment"] .payment-page-summary-lines {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

body[data-page="payment"] .payment-page-summary-lines .data-line {
  border-bottom-color: #e7eff2;
}

body[data-page="payment"] .payment-page-total-row {
  border-top-color: #d9e6eb;
}

body[data-page="payment"] .payment-page-total-row strong {
  color: #087f9c;
}

body[data-page="payment"] .payment-page-pay-btn {
  border-radius: 7px;
  background: linear-gradient(100deg, #1688ef, #18bfc0);
  box-shadow: 0 10px 24px rgba(17, 157, 184, 0.18);
}

@media (max-width: 980px) {
  body[data-page="payment"] .payment-page-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="payment"] .payment-page-sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  body[data-page="payment"] .page-shell {
    padding-top: 10px;
    padding-bottom: 36px;
  }

  body[data-page="payment"] .payment-page-shell {
    width: min(100% - 16px, 1160px);
  }

  body[data-page="payment"] .payment-page-order-card,
  body[data-page="payment"] .payment-page-methods-card,
  body[data-page="payment"] .payment-page-details-card {
    padding: 14px;
  }

  body[data-page="payment"] .payment-page-product-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  body[data-page="payment"] .payment-page-product-icon img {
    width: 36px;
    height: 36px;
  }

  body[data-page="payment"] .payment-page-product-row h1 {
    font-size: 20px;
  }

  body[data-page="payment"] .payment-page-order-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="payment"] .payment-page-order-meta span {
    width: 100%;
  }
}

/* Platform showcase and download page v35 */
.if-home-platform-band {
  padding: 84px 0;
  background: #ffffff;
}

.if-home-platform-showcase {
  display: grid;
  justify-items: center;
  gap: 34px;
  color: #153244;
  text-align: center;
  cursor: pointer;
}

.if-home-platform-head {
  max-width: 720px;
}

.if-home-platform-head h2 {
  margin: 8px 0 14px;
  color: #153244;
  font-size: 42px;
  line-height: 1.12;
}

.if-home-platform-head p {
  margin: 0;
  color: #5b7482;
  font-size: 18px;
  line-height: 1.55;
}

.if-home-platform-logo-grid {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.if-home-platform-logo-grid > span {
  min-width: 0;
  min-height: 122px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 16px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.if-home-platform-showcase:hover .if-home-platform-logo-grid > span {
  border-color: #d9e9ee;
  background: #f7fbfc;
}

.if-home-platform-logo-grid > span:hover {
  border-color: #94d4df;
  background: #edf9fb;
  transform: translateY(-3px);
}

.if-home-platform-logo-grid img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.if-home-platform-logo-grid strong {
  color: #233f4e;
  font-size: 14px;
  line-height: 1.25;
}

.if-home-platform-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid #bcdfe6;
  border-radius: 7px;
  background: #edf9fb;
  color: #087f9c;
  font-size: 14px;
  font-weight: 850;
}

.if-home-platform-action b {
  font-size: 22px;
  line-height: 1;
}

body[data-page="download"] {
  background: #f5fafc;
}

body[data-page="download"] .page-shell {
  padding-top: 0;
  padding-bottom: 64px;
}

body[data-page="download"] .download-v35-hero {
  min-height: 420px;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 56px;
}

body[data-page="download"] .download-hero-copy {
  align-content: center;
  gap: 15px;
}

body[data-page="download"] .download-hero-copy h1 {
  color: #153244;
  font-size: 58px;
  line-height: 1;
}

body[data-page="download"] .download-hero-copy p {
  max-width: 580px;
  color: #5b7482;
  font-size: 18px;
}

body[data-page="download"] .download-hero-actions > * {
  border-radius: 7px;
}

body[data-page="download"] .download-v35-platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="download"] .download-v35-platforms span {
  min-height: 118px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 11px;
  padding: 14px 8px;
  border: 1px solid #dbe9ee;
  border-radius: 8px;
  background: #ffffff;
  color: #29495a;
}

body[data-page="download"] .download-v35-platforms span:last-child {
  grid-column: 2 / span 2;
}

body[data-page="download"] .download-v35-platforms img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

body[data-page="download"] .download-v35-platforms strong {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

body[data-page="download"] .download-page-shell {
  gap: 22px;
  padding-top: 56px;
  border-top: 1px solid #deebef;
}

body[data-page="download"] .download-page-heading {
  max-width: 760px;
}

body[data-page="download"] .download-page-heading h2 {
  margin: 6px 0 10px;
  color: #153244;
  font-size: 36px;
}

body[data-page="download"] .download-page-heading p {
  margin: 0;
  color: #5b7482;
}

body[data-page="download"] .download-platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-page="download"] .download-platform-card {
  gap: 14px;
  padding: 18px;
  border: 1px solid #dbe8ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(25, 75, 96, 0.07);
}

body[data-page="download"] .download-platform-card::after {
  display: none;
}

body[data-page="download"] .download-platform-top {
  align-items: center;
  gap: 12px;
}

body[data-page="download"] .download-platform-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 9px;
  border: 1px solid #dce9ee;
  border-radius: 8px;
  background: #f4fafc;
}

body[data-page="download"] .download-platform-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

body[data-page="download"] .download-platform-card h2 {
  margin: 0;
  color: #153244;
  font-size: 21px;
}

body[data-page="download"] .download-platform-description {
  color: #607985;
  font-size: 14px;
}

body[data-page="download"] .download-requirements {
  padding: 11px 12px;
  border: 1px solid #e0ebef;
  border-radius: 7px;
  background: #f7fbfc;
  color: #3e5c6b;
  font-size: 13px;
}

body[data-page="download"] .download-requirements span {
  color: #78909c;
  font-size: 10px;
}

body[data-page="download"] .download-platform-actions {
  gap: 7px;
}

body[data-page="download"] .download-platform-actions > * {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 12px;
}

body[data-page="download"] .download-source-note {
  padding: 16px 18px;
  border: 1px solid #cfe5ea;
  border-radius: 8px;
  background: #eaf8fa;
  color: #087f9c;
}

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

  .if-home-platform-logo-grid > span:last-child {
    grid-column: 2 / span 2;
  }

  body[data-page="download"] .download-v35-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body[data-page="download"] .download-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .if-home-platform-band {
    padding: 58px 0;
  }

  .if-home-platform-showcase {
    gap: 26px;
  }

  .if-home-platform-head h2 {
    font-size: 32px;
  }

  .if-home-platform-head p {
    font-size: 16px;
  }

  .if-home-platform-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .if-home-platform-logo-grid > span {
    min-height: 106px;
    gap: 10px;
    padding: 12px 4px;
  }

  .if-home-platform-logo-grid > span:last-child {
    grid-column: 2;
  }

  .if-home-platform-logo-grid img {
    width: 46px;
    height: 46px;
  }

  .if-home-platform-logo-grid strong {
    font-size: 12px;
  }

  body[data-page="download"] .download-v35-hero {
    gap: 26px;
    padding-top: 34px;
    padding-bottom: 38px;
  }

  body[data-page="download"] .download-hero-copy {
    text-align: center;
  }

  body[data-page="download"] .download-hero-copy h1 {
    font-size: 38px;
  }

  body[data-page="download"] .download-hero-copy p {
    font-size: 15px;
    text-align: center;
  }

  body[data-page="download"] .download-hero-actions {
    grid-template-columns: 1fr;
  }

  body[data-page="download"] .download-v35-platforms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="download"] .download-v35-platforms span,
  body[data-page="download"] .download-v35-platforms span:last-child {
    min-height: 96px;
    grid-column: auto;
  }

  body[data-page="download"] .download-v35-platforms span:last-child {
    grid-column: 2;
  }

  body[data-page="download"] .download-v35-platforms img {
    width: 38px;
    height: 38px;
  }

  body[data-page="download"] .download-page-shell {
    padding-top: 38px;
  }

  body[data-page="download"] .download-page-heading {
    text-align: center;
  }

  body[data-page="download"] .download-page-heading h2 {
    font-size: 28px;
  }

  body[data-page="download"] .download-page-heading p {
    text-align: center;
  }

  body[data-page="download"] .download-platform-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="download"] .download-platform-card {
    gap: 11px;
    padding: 14px;
    border-radius: 8px;
  }

  body[data-page="download"] .download-platform-top {
    order: 1;
    display: flex;
  }

  body[data-page="download"] .download-platform-icon {
    display: inline-flex;
  }

  body[data-page="download"] .download-platform-actions {
    order: 2;
  }

  body[data-page="download"] .download-platform-actions > * {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }

  body[data-page="download"] .download-platform-card-info {
    display: none;
  }

  body[data-page="download"] .download-mobile-details {
    display: grid;
    margin-top: 14px;
  }

body[data-page="download"] .download-mobile-detail {
    border-radius: 8px;
    background: #ffffff;
  }
}

/* Blog refresh v37 */
body[data-page="blog"] {
  background: #f5f9fb;
  color: #153244;
}

body[data-page="blog"] .page-shell {
  padding-bottom: 0;
}

body[data-page="blog"] .blog-kicker {
  margin-bottom: 10px;
  color: #087f9c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

body[data-page="blog"] .blog-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid #dcebef;
  background: #ffffff;
}

body[data-page="blog"] .blog-hero-inner {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

body[data-page="blog"] .blog-hero h1 {
  max-width: 820px;
  margin: 0 auto 20px;
  color: #102d3d;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
}

body[data-page="blog"] .blog-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #5d727d;
  font-size: 20px;
  line-height: 1.65;
}

body[data-page="blog"] .blog-featured-band {
  padding: 54px 0;
  background: #eaf7f9;
}

body[data-page="blog"] .blog-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #cfe5ea;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(25, 80, 97, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body[data-page="blog"] .blog-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(25, 80, 97, 0.14);
}

body[data-page="blog"] .blog-featured-media {
  min-height: 420px;
  overflow: hidden;
  background: #dceff2;
}

body[data-page="blog"] .blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

body[data-page="blog"] .blog-featured-media.is-contain,
body[data-page="blog"] .blog-card-media.is-contain,
body[data-page="blog"] .blog-article-cover.is-contain {
  background: #17191b;
}

body[data-page="blog"] .blog-featured-media.is-contain img,
body[data-page="blog"] .blog-card-media.is-contain img,
body[data-page="blog"] .blog-article-cover.is-contain img {
  object-fit: contain;
}

body[data-page="blog"] .blog-featured:hover .blog-featured-media img {
  transform: scale(1.025);
}

body[data-page="blog"] .blog-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 46px;
}

body[data-page="blog"] .blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 18px;
  color: #607782;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

body[data-page="blog"] .blog-meta > *:first-child {
  padding: 6px 9px;
  border-radius: 5px;
  background: #def3f5;
  color: #087f9c;
}

body[data-page="blog"] .blog-featured h2 {
  margin: 0 0 18px;
  color: #102d3d;
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: 0;
}

body[data-page="blog"] .blog-featured p {
  margin: 0 0 26px;
  color: #60737d;
  font-size: 17px;
  line-height: 1.65;
}

body[data-page="blog"] .blog-read-link,
body[data-page="blog"] .blog-all-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #087f9c;
  font-weight: 800;
  text-decoration: none;
}

body[data-page="blog"] .blog-read-link span,
body[data-page="blog"] .blog-all-link span {
  transition: transform 180ms ease;
}

body[data-page="blog"] a:hover .blog-read-link span,
body[data-page="blog"] .blog-read-link:hover span,
body[data-page="blog"] .blog-all-link:hover span {
  transform: translateX(4px);
}

body[data-page="blog"] .blog-library {
  padding: 76px 0 86px;
  background: #ffffff;
}

body[data-page="blog"] .blog-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

body[data-page="blog"] .blog-section-head h2 {
  margin: 0;
  color: #102d3d;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0;
}

body[data-page="blog"] .blog-section-head > p {
  max-width: 520px;
  margin: 0;
  color: #667b85;
  font-size: 16px;
  line-height: 1.6;
}

body[data-page="blog"] .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

body[data-page="blog"] .blog-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d7e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(21, 68, 83, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body[data-page="blog"] .blog-card:hover {
  transform: translateY(-3px);
  border-color: #9cced8;
  box-shadow: 0 16px 34px rgba(21, 68, 83, 0.11);
}

body[data-page="blog"] .blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e7f3f5;
}

body[data-page="blog"] .blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

body[data-page="blog"] .blog-card:hover .blog-card-media img {
  transform: scale(1.03);
}

body[data-page="blog"] .blog-card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

body[data-page="blog"] .blog-card-body .blog-meta {
  margin-bottom: 14px;
}

body[data-page="blog"] .blog-card h3 {
  margin: 0 0 13px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0;
}

body[data-page="blog"] .blog-card h3 a {
  color: #153244;
  text-decoration: none;
}

body[data-page="blog"] .blog-card p {
  margin: 0 0 22px;
  color: #667b85;
  font-size: 15px;
  line-height: 1.6;
}

body[data-page="blog"] .blog-card .blog-read-link {
  margin-top: auto;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #a7d6df;
  border-radius: 7px;
  background: #eaf8fa;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

body[data-page="blog"] .blog-card .blog-read-link:hover {
  border-color: #087f9c;
  background: #087f9c;
  color: #ffffff;
}

body[data-page="blog"] .blog-help-band {
  padding: 62px 0;
  border-top: 1px solid #cae4e9;
  background: #def3f5;
}

body[data-page="blog"] .blog-help-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

body[data-page="blog"] .blog-help-inner h2 {
  margin: 0 0 10px;
  color: #102d3d;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0;
}

body[data-page="blog"] .blog-help-inner p {
  max-width: 680px;
  margin: 0;
  color: #5d747e;
  font-size: 16px;
  line-height: 1.6;
}

body[data-page="blog"] .blog-help-actions,
body[data-page="blog"] .blog-article-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-page="blog"] .blog-help-actions a,
body[data-page="blog"] .blog-article-actions a {
  min-height: 46px;
  border-radius: 7px;
}

body[data-page="blog"] .blog-article-head {
  padding: 58px 0 54px;
  border-bottom: 1px solid #d9e9ed;
  background: #ffffff;
}

body[data-page="blog"] .blog-article-head-inner {
  max-width: 920px;
  margin: 0 auto;
}

body[data-page="blog"] .blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #71858f;
  font-size: 14px;
}

body[data-page="blog"] .blog-breadcrumbs a {
  color: #4f6a76;
  text-decoration: none;
}

body[data-page="blog"] .blog-breadcrumbs a:hover {
  color: #087f9c;
}

body[data-page="blog"] .blog-article-head h1 {
  max-width: 900px;
  margin: 0 0 22px;
  color: #102d3d;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

body[data-page="blog"] .blog-article-head > .container > p {
  max-width: 820px;
  margin: 0;
  color: #5f747e;
  font-size: 20px;
  line-height: 1.6;
}

body[data-page="blog"] .blog-article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 820px);
  justify-content: center;
  gap: 54px;
  padding-top: 52px;
  padding-bottom: 82px;
}

body[data-page="blog"] .blog-toc {
  position: sticky;
  top: 94px;
  display: flex;
  align-self: start;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-top: 2px solid #18a9bd;
  border-bottom: 1px solid #d9e7eb;
}

body[data-page="blog"] .blog-toc strong {
  margin-bottom: 9px;
  color: #153244;
  font-size: 14px;
}

body[data-page="blog"] .blog-toc a {
  padding: 7px 0;
  color: #617681;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

body[data-page="blog"] .blog-toc a:hover {
  color: #087f9c;
}

body[data-page="blog"] .blog-article-content {
  min-width: 0;
}

body[data-page="blog"] .blog-article-cover {
  width: 100%;
  margin: 0 0 48px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border-radius: 8px;
  background: #deedf0;
}

body[data-page="blog"] .blog-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="blog"] .blog-quick-start {
  margin-bottom: 50px;
  padding: 30px;
  border: 1px solid #b9dce3;
  border-radius: 8px;
  background: #eaf8fa;
}

body[data-page="blog"] .blog-quick-start h2,
body[data-page="blog"] .blog-copy-section h2,
body[data-page="blog"] .blog-faq h2,
body[data-page="blog"] .blog-sources h2,
body[data-page="blog"] .blog-article-cta h2 {
  margin: 0;
  color: #102d3d;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
}

body[data-page="blog"] .blog-quick-start ol {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

body[data-page="blog"] .blog-quick-start li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

body[data-page="blog"] .blog-quick-start li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #087f9c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

body[data-page="blog"] .blog-quick-start li p {
  margin: 4px 0 0;
  color: #355361;
  font-size: 16px;
  line-height: 1.55;
}

body[data-page="blog"] .blog-copy-section {
  scroll-margin-top: 100px;
  margin-bottom: 46px;
}

body[data-page="blog"] .blog-copy-section h2 {
  margin-bottom: 20px;
}

body[data-page="blog"] .blog-copy-section p,
body[data-page="blog"] .blog-sources p,
body[data-page="blog"] .blog-article-cta p {
  margin: 0 0 18px;
  color: #435e6a;
  font-size: 17px;
  line-height: 1.75;
}

body[data-page="blog"] .blog-copy-section ul,
body[data-page="blog"] .blog-sources ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

body[data-page="blog"] .blog-section-figure {
  max-width: 520px;
  margin: 28px auto;
  overflow: hidden;
  border: 1px solid #cfdfe3;
  border-radius: 8px;
  background: #17191b;
  box-shadow: 0 14px 34px rgba(21, 50, 68, 0.12);
}

body[data-page="blog"] .blog-section-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
}

body[data-page="blog"] .blog-section-figure figcaption {
  padding: 13px 16px;
  border-top: 1px solid #d5e5e8;
  background: #ffffff;
  color: #617680;
  font-size: 13px;
  line-height: 1.5;
}

body[data-page="blog"] .blog-copy-section li,
body[data-page="blog"] .blog-sources li {
  position: relative;
  padding-left: 24px;
  color: #435e6a;
  font-size: 16px;
  line-height: 1.6;
}

body[data-page="blog"] .blog-copy-section li::before,
body[data-page="blog"] .blog-sources li::before {
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18a9bd;
  content: "";
}

body[data-page="blog"] .blog-note {
  margin: 52px 0;
  padding: 24px 26px;
  border-left: 4px solid #f3b63f;
  border-radius: 0 8px 8px 0;
  background: #fff8e8;
}

body[data-page="blog"] .blog-note strong {
  display: block;
  margin-bottom: 7px;
  color: #765716;
}

body[data-page="blog"] .blog-note p {
  margin: 0;
  color: #66562f;
  font-size: 16px;
  line-height: 1.65;
}

body[data-page="blog"] .blog-faq {
  scroll-margin-top: 100px;
  padding-top: 6px;
}

body[data-page="blog"] .blog-faq h2 {
  margin-bottom: 22px;
}

body[data-page="blog"] .blog-faq-list {
  border-top: 1px solid #d6e5e9;
}

body[data-page="blog"] .blog-faq details {
  border-bottom: 1px solid #d6e5e9;
}

body[data-page="blog"] .blog-faq summary {
  position: relative;
  padding: 21px 40px 21px 0;
  color: #153244;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

body[data-page="blog"] .blog-faq summary::-webkit-details-marker {
  display: none;
}

body[data-page="blog"] .blog-faq summary::after {
  position: absolute;
  top: 18px;
  right: 4px;
  color: #087f9c;
  content: "+";
  font-size: 24px;
  font-weight: 500;
}

body[data-page="blog"] .blog-faq details[open] summary::after {
  content: "−";
}

body[data-page="blog"] .blog-faq details p {
  margin: -4px 0 22px;
  padding-right: 32px;
  color: #536b76;
  font-size: 16px;
  line-height: 1.65;
}

body[data-page="blog"] .blog-sources {
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid #d6e5e9;
}

body[data-page="blog"] .blog-sources h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

body[data-page="blog"] .blog-sources p {
  font-size: 15px;
}

body[data-page="blog"] .blog-sources a {
  color: #087f9c;
  font-weight: 700;
}

body[data-page="blog"] .blog-article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  margin-top: 52px;
  padding: 30px;
  border: 1px solid #b9dce3;
  border-radius: 8px;
  background: #eaf8fa;
}

body[data-page="blog"] .blog-article-cta h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

body[data-page="blog"] .blog-article-cta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

body[data-page="blog"] .blog-article-actions {
  flex-direction: column;
  min-width: 190px;
}

body[data-page="blog"] .blog-related {
  padding: 66px 0 76px;
  border-top: 1px solid #cfe2e7;
  background: #eaf7f9;
}

body[data-page="blog"] .blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="blog"] .blog-related-card {
  display: flex;
  min-width: 0;
  min-height: 174px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #c9e0e5;
  border-radius: 8px;
  background: #ffffff;
  color: #153244;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

body[data-page="blog"] .blog-related-card:hover {
  transform: translateY(-3px);
  border-color: #80c2cf;
}

body[data-page="blog"] .blog-related-card > span {
  margin-bottom: 13px;
  color: #087f9c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-page="blog"] .blog-related-card strong {
  font-size: 19px;
  line-height: 1.35;
}

body[data-page="blog"] .blog-related-card small {
  margin-top: auto;
  padding-top: 18px;
  color: #5f7580;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  body[data-page="blog"] .blog-featured {
    grid-template-columns: 1fr;
  }

  body[data-page="blog"] .blog-featured-media {
    min-height: 0;
    aspect-ratio: 16 / 8;
  }

  body[data-page="blog"] .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="blog"] .blog-help-inner {
    align-items: start;
    flex-direction: column;
  }

  body[data-page="blog"] .blog-article-layout {
    grid-template-columns: minmax(0, 820px);
  }

  body[data-page="blog"] .blog-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
    border: 1px solid #d4e5e9;
    border-radius: 8px;
    background: #ffffff;
  }

  body[data-page="blog"] .blog-toc strong {
    grid-column: 1 / -1;
  }

  body[data-page="blog"] .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body[data-page="blog"] .blog-hero {
    padding: 42px 0 40px;
  }

  body[data-page="blog"] .blog-hero-inner {
    text-align: left;
  }

  body[data-page="blog"] .blog-hero h1 {
    margin-bottom: 16px;
    font-size: 38px;
    line-height: 1.12;
  }

  body[data-page="blog"] .blog-hero p {
    font-size: 16px;
    line-height: 1.6;
  }

  body[data-page="blog"] .blog-featured-band {
    padding: 22px 0 34px;
  }

  body[data-page="blog"] .blog-featured {
    min-height: 0;
  }

  body[data-page="blog"] .blog-featured-media {
    min-height: 190px;
    aspect-ratio: 16 / 9;
  }

  body[data-page="blog"] .blog-featured-copy {
    padding: 22px 18px 24px;
  }

  body[data-page="blog"] .blog-meta {
    gap: 7px 11px;
    margin-bottom: 13px;
    font-size: 11px;
  }

  body[data-page="blog"] .blog-featured h2 {
    margin-bottom: 12px;
    font-size: 27px;
  }

  body[data-page="blog"] .blog-featured p {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.55;
  }

  body[data-page="blog"] .blog-library {
    padding: 48px 0 56px;
  }

  body[data-page="blog"] .blog-section-head {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }

  body[data-page="blog"] .blog-section-head h2 {
    font-size: 29px;
  }

  body[data-page="blog"] .blog-section-head > p {
    font-size: 14px;
  }

  body[data-page="blog"] .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-page="blog"] .blog-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 160px;
  }

  body[data-page="blog"] .blog-card-media {
    height: 100%;
    aspect-ratio: auto;
  }

  body[data-page="blog"] .blog-card-body {
    padding: 15px 14px;
  }

  body[data-page="blog"] .blog-card-body .blog-meta {
    margin-bottom: 8px;
  }

  body[data-page="blog"] .blog-card h3 {
    margin-bottom: 9px;
    font-size: 17px;
  }

  body[data-page="blog"] .blog-card p {
    display: none;
  }

  body[data-page="blog"] .blog-card .blog-read-link {
    font-size: 13px;
  }

  body[data-page="blog"] .blog-help-band {
    padding: 42px 0;
  }

  body[data-page="blog"] .blog-help-inner {
    gap: 24px;
  }

  body[data-page="blog"] .blog-help-inner h2 {
    font-size: 27px;
  }

  body[data-page="blog"] .blog-help-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  body[data-page="blog"] .blog-article-head {
    padding: 32px 0 34px;
  }

  body[data-page="blog"] .blog-breadcrumbs {
    margin-bottom: 20px;
  }

  body[data-page="blog"] .blog-article-head h1 {
    margin-bottom: 16px;
    font-size: 36px;
    line-height: 1.12;
  }

  body[data-page="blog"] .blog-article-head > .container > p {
    font-size: 16px;
    line-height: 1.55;
  }

  body[data-page="blog"] .blog-article-layout {
    gap: 26px;
    padding-top: 24px;
    padding-bottom: 54px;
  }

  body[data-page="blog"] .blog-toc {
    display: flex;
    gap: 0;
    padding: 15px;
  }

  body[data-page="blog"] .blog-toc a {
    padding: 6px 0;
  }

  body[data-page="blog"] .blog-article-cover {
    margin-bottom: 28px;
    aspect-ratio: 16 / 9;
  }

  body[data-page="blog"] .blog-quick-start {
    margin-bottom: 38px;
    padding: 20px 16px;
  }

  body[data-page="blog"] .blog-quick-start h2,
  body[data-page="blog"] .blog-copy-section h2,
  body[data-page="blog"] .blog-faq h2 {
    font-size: 25px;
  }

  body[data-page="blog"] .blog-quick-start li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  body[data-page="blog"] .blog-quick-start li > span {
    width: 30px;
    height: 30px;
  }

  body[data-page="blog"] .blog-quick-start li p,
  body[data-page="blog"] .blog-copy-section li,
  body[data-page="blog"] .blog-note p,
  body[data-page="blog"] .blog-faq details p {
    font-size: 14px;
  }

  body[data-page="blog"] .blog-copy-section {
    margin-bottom: 38px;
  }

  body[data-page="blog"] .blog-section-figure {
    width: 100%;
    margin: 22px 0;
  }

  body[data-page="blog"] .blog-copy-section p {
    font-size: 16px;
    line-height: 1.7;
  }

  body[data-page="blog"] .blog-note {
    margin: 40px 0;
    padding: 20px 18px;
  }

  body[data-page="blog"] .blog-faq summary {
    padding: 18px 34px 18px 0;
    font-size: 15px;
  }

  body[data-page="blog"] .blog-article-cta {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  body[data-page="blog"] .blog-article-actions {
    display: grid;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  body[data-page="blog"] .blog-related {
    padding: 46px 0 54px;
  }

  body[data-page="blog"] .blog-related-card {
    min-height: 150px;
    padding: 20px;
  }
}

/* v2026-07-25 focused HAPP instruction */
body[data-page="instructions"] {
  background: #ffffff;
  color: #102345;
}

body[data-page="instructions"] .page-shell {
  padding: 0;
  overflow: clip;
}

body[data-page="instructions"] .anchor-alias,
body[data-page="instructions"] section[id] {
  scroll-margin-top: 112px;
}

.if-guide-page {
  min-width: 0;
  overflow: clip;
}

.if-guide-hero {
  padding: 88px 0 76px;
  background: #f3f9fd;
  border-bottom: 1px solid #dceaf3;
}

.if-guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 72px;
  align-items: center;
}

.if-guide-hero-copy {
  max-width: 720px;
}

.if-guide-kicker,
.if-guide-step-number {
  display: inline-flex;
  color: #0878b8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.if-guide-hero h1 {
  max-width: 760px;
  margin: 14px 0 20px;
  color: #07162e;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: 0;
}

.if-guide-hero-copy > p {
  max-width: 670px;
  margin: 0;
  color: #405d79;
  font-size: 19px;
  line-height: 1.65;
}

.if-guide-actions,
.if-guide-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.if-guide-actions > *,
.if-guide-inline-actions > * {
  min-height: 48px;
}

.if-guide-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  color: #506d88;
  font-size: 14px;
  font-weight: 700;
}

.if-guide-requirements span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.if-guide-requirements span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a5a3;
  content: "";
}

.if-guide-route {
  padding-left: 34px;
  border-left: 2px solid #cfe2ef;
}

.if-guide-route > span {
  display: block;
  margin-bottom: 18px;
  color: #627b91;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.if-guide-route ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.if-guide-route a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  color: #16324c;
  text-decoration: none;
}

.if-guide-route b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #b9d9e9;
  border-radius: 50%;
  background: #ffffff;
  color: #0878b8;
  font-size: 14px;
}

.if-guide-route span {
  font-weight: 800;
}

.if-guide-jump {
  position: sticky;
  z-index: 12;
  top: 70px;
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(28, 67, 94, .08);
  scrollbar-width: none;
}

.if-guide-jump::-webkit-scrollbar {
  display: none;
}

.if-guide-jump a {
  flex: 1 0 auto;
  padding: 11px 14px;
  border-radius: 6px;
  color: #36546d;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.if-guide-jump a:hover {
  background: #eef7fb;
  color: #0878b8;
}

.if-guide-step-band {
  padding: 88px 0;
  border-bottom: 1px solid #e3edf3;
  background: #ffffff;
}

.if-guide-step-band.is-soft {
  background: #f6fafc;
}

.if-guide-step-band.is-dark {
  border-color: #1d4058;
  background: #0c2538;
  color: #ffffff;
}

.if-guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.if-guide-step.is-reversed .if-guide-step-copy {
  order: 2;
}

.if-guide-step.is-reversed .if-guide-visual {
  order: 1;
}

.if-guide-step-copy {
  min-width: 0;
}

.if-guide-step-copy h2,
.if-guide-section-head h2,
.if-guide-support h2 {
  margin: 12px 0 16px;
  color: #0b1f36;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0;
}

.if-guide-step-copy > p,
.if-guide-section-head > p,
.if-guide-support p {
  margin: 0;
  color: #536d83;
  font-size: 17px;
  line-height: 1.65;
}

.if-guide-step-band.is-dark .if-guide-step-copy h2 {
  color: #ffffff;
}

.if-guide-step-band.is-dark .if-guide-step-copy > p {
  color: #c0d2de;
}

.if-guide-step-band.is-dark .if-guide-step-number {
  color: #53d7d0;
}

.if-guide-checklist,
.if-guide-recovery {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.if-guide-checklist li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid #dce7ee;
}

.if-guide-checklist li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #e8f5fa;
  color: #0878b8;
  font-size: 13px;
  font-weight: 900;
}

.if-guide-checklist strong,
.if-guide-recovery strong {
  color: #102f49;
  font-size: 16px;
}

.if-guide-checklist p,
.if-guide-recovery p {
  margin: 5px 0 0;
  color: #60788d;
  font-size: 14px;
  line-height: 1.55;
}

.if-guide-step-band.is-dark .if-guide-checklist li {
  border-color: rgba(255, 255, 255, .13);
}

.if-guide-step-band.is-dark .if-guide-checklist li > span {
  background: rgba(83, 215, 208, .15);
  color: #65e2dc;
}

.if-guide-step-band.is-dark .if-guide-checklist strong {
  color: #ffffff;
}

.if-guide-step-band.is-dark .if-guide-checklist p {
  color: #b9ccd8;
}

.if-guide-points {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.if-guide-points li {
  position: relative;
  padding-left: 24px;
  color: #587187;
  line-height: 1.6;
}

.if-guide-points li::before {
  position: absolute;
  top: 9px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #11a7a1;
  content: "";
}

.if-guide-points strong {
  color: #173650;
}

.if-guide-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.if-guide-methods article {
  min-width: 0;
  padding: 20px;
  border: 1px solid #d9e7ef;
  border-radius: 8px;
  background: #f8fbfd;
}

.if-guide-methods article.is-primary {
  border-color: #9ed8e9;
  background: #edf9fc;
}

.if-guide-methods article > span {
  color: #1687a7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.if-guide-methods h3 {
  margin: 8px 0 13px;
  color: #102f49;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0;
}

.if-guide-methods ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: #5b7488;
  font-size: 13px;
  line-height: 1.5;
}

.if-guide-note {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid #c89425;
  background: #fff9eb;
}

.if-guide-note.is-info {
  border-color: #1692c4;
  background: #edf8fc;
}

.if-guide-note strong {
  color: #18344c;
}

.if-guide-note span {
  color: #5f7283;
  font-size: 14px;
  line-height: 1.55;
}

.if-guide-note a,
.if-guide-official-link {
  color: #0878b8;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.if-guide-official-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
}

.if-guide-success {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(83, 215, 208, .24);
  border-radius: 8px;
  background: rgba(83, 215, 208, .09);
}

.if-guide-success > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #25aa70;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.if-guide-success strong {
  color: #ffffff;
  font-size: 16px;
}

.if-guide-success p {
  margin: 5px 0 0;
  color: #bdd0db;
  font-size: 14px;
  line-height: 1.55;
}

.if-guide-visual {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8e5ed;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(24, 66, 95, .13);
}

.if-guide-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.if-guide-visual figcaption {
  padding: 14px 16px 16px;
  border-top: 1px solid #e3edf3;
  color: #5f788d;
  font-size: 13px;
  line-height: 1.5;
}

.if-guide-platforms {
  padding: 84px 0;
  background: #ffffff;
}

.if-guide-section-head {
  max-width: 720px;
}

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

.if-guide-platform-grid article {
  min-width: 0;
  padding: 24px;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: #f9fcfe;
}

.if-guide-platform-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.if-guide-platform-grid h3 {
  margin: 16px 0 9px;
  color: #102d46;
  font-size: 18px;
  letter-spacing: 0;
}

.if-guide-platform-grid p {
  margin: 0;
  color: #61798d;
  font-size: 14px;
  line-height: 1.6;
}

.if-guide-recovery li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid #dbe7ee;
}

.if-guide-recovery li > span {
  color: #14999b;
  font-size: 13px;
  font-weight: 900;
}

.if-guide-faq {
  padding: 88px 0;
  background: #ffffff;
}

.if-guide-faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: 72px;
  align-items: start;
}

.if-guide-questions {
  border-top: 1px solid #d9e6ee;
}

.if-guide-questions details {
  border-bottom: 1px solid #d9e6ee;
}

.if-guide-questions summary {
  position: relative;
  padding: 22px 44px 22px 0;
  color: #15324b;
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.4;
  list-style: none;
}

.if-guide-questions summary::-webkit-details-marker {
  display: none;
}

.if-guide-questions summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  color: #168cae;
  content: "+";
  font-size: 26px;
  font-weight: 500;
  transform: translateY(-50%);
}

.if-guide-questions details[open] summary::after {
  content: "−";
}

.if-guide-questions details p {
  margin: -6px 0 22px;
  padding-right: 44px;
  color: #61798d;
  line-height: 1.65;
}

.if-guide-support {
  padding: 72px 0;
  border-top: 1px solid #d9e8ef;
  background: #eef8fa;
}

.if-guide-support-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
}

.if-guide-support h2 {
  max-width: 720px;
  font-size: 34px;
}

.if-guide-support p {
  max-width: 760px;
}

.if-guide-support .if-guide-actions {
  justify-content: flex-end;
  margin: 0;
}

@media (max-width: 980px) {
  .if-guide-hero-grid,
  .if-guide-step,
  .if-guide-faq-grid {
    gap: 40px;
  }

  .if-guide-hero h1 {
    font-size: 46px;
  }

  .if-guide-step-copy h2,
  .if-guide-section-head h2 {
    font-size: 34px;
  }

  .if-guide-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .if-guide-support-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .if-guide-support .if-guide-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body[data-page="instructions"] .anchor-alias,
  body[data-page="instructions"] section[id] {
    scroll-margin-top: 92px;
  }

  .if-guide-hero {
    padding: 54px 0 46px;
  }

  .if-guide-hero-grid,
  .if-guide-step,
  .if-guide-faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .if-guide-hero h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .if-guide-hero-copy > p {
    font-size: 16px;
  }

  .if-guide-route {
    padding: 22px 0 0;
    border-top: 1px solid #cfe2ef;
    border-left: 0;
  }

  .if-guide-route ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .if-guide-route a {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .if-guide-route b {
    width: 34px;
    height: 34px;
  }

  .if-guide-jump {
    top: 66px;
    width: calc(100% - 24px);
    margin-top: 10px;
    padding: 6px;
  }

  .if-guide-step-band,
  .if-guide-platforms,
  .if-guide-faq {
    padding: 58px 0;
  }

  .if-guide-step.is-reversed .if-guide-step-copy,
  .if-guide-step.is-reversed .if-guide-visual {
    order: initial;
  }

  .if-guide-step-copy h2,
  .if-guide-section-head h2 {
    font-size: 31px;
  }

  .if-guide-step-copy > p,
  .if-guide-section-head > p {
    font-size: 16px;
  }

  .if-guide-visual {
    width: 100%;
  }

  .if-guide-platform-grid {
    gap: 10px;
  }

  .if-guide-platform-grid article {
    padding: 20px;
  }

  .if-guide-support {
    padding: 54px 0;
  }

  .if-guide-support h2 {
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .if-guide-hero {
    padding: 42px 0 38px;
  }

  .if-guide-hero h1 {
    font-size: 34px;
  }

  .if-guide-actions,
  .if-guide-inline-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .if-guide-actions > *,
  .if-guide-inline-actions > * {
    width: 100%;
  }

  .if-guide-requirements {
    display: grid;
    gap: 10px;
  }

  .if-guide-route ol {
    grid-template-columns: 1fr;
  }

  .if-guide-step-band,
  .if-guide-platforms,
  .if-guide-faq {
    padding: 48px 0;
  }

  .if-guide-step-copy h2,
  .if-guide-section-head h2 {
    font-size: 28px;
  }

  .if-guide-checklist li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .if-guide-checklist li > span {
    width: 28px;
    height: 28px;
  }

  .if-guide-platform-grid {
    grid-template-columns: 1fr;
  }

  .if-guide-methods {
    grid-template-columns: 1fr;
  }

  .if-guide-platform-grid article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0 14px;
    align-items: center;
  }

  .if-guide-platform-grid h3 {
    margin: 0;
  }

  .if-guide-platform-grid p {
    grid-column: 1 / -1;
    margin-top: 12px;
  }

  .if-guide-platform-grid .if-guide-official-link {
    grid-column: 1 / -1;
    width: fit-content;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .if-guide-questions summary {
    padding: 19px 38px 19px 0;
    font-size: 15px;
  }

  .if-guide-questions details p {
    padding-right: 0;
    font-size: 14px;
  }

  .if-guide-support h2 {
    font-size: 27px;
  }
}

/* About I-Freedom */
body[data-page="about"] {
  background: #ffffff;
}

body[data-page="about"] .page-shell {
  padding-top: 0;
  padding-bottom: 0;
}

.if-about-page {
  overflow: hidden;
  color: #10263d;
}

.if-about-hero {
  position: relative;
  min-height: 560px;
  height: min(650px, calc(100svh - 72px));
  overflow: hidden;
  background: #eaf4ff;
}

.if-about-hero-image,
.if-about-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.if-about-hero-image {
  object-fit: cover;
  object-position: center;
}

.if-about-hero-shade {
  background: linear-gradient(90deg, rgba(247, 252, 255, 0.98) 0%, rgba(247, 252, 255, 0.94) 34%, rgba(247, 252, 255, 0.46) 57%, rgba(247, 252, 255, 0.04) 78%);
}

.if-about-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  justify-content: center;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 36px;
  padding-bottom: 36px;
}

.if-about-kicker,
.if-about-section-label {
  color: #0879b8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0;
}

.if-about-hero h1 {
  margin: 14px 0 18px;
  color: #0b2238;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: 0;
}

.if-about-hero-inner > p {
  max-width: 650px;
  margin: 0;
  color: #38556f;
  font-size: 20px;
  line-height: 1.6;
}

.if-about-hero-actions,
.if-about-inline-actions,
.if-about-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.if-about-hero-actions {
  margin-top: 30px;
}

.if-about-hero-actions .primary-btn,
.if-about-hero-actions .outline-btn,
.if-about-inline-actions .primary-btn,
.if-about-contact-actions .primary-btn,
.if-about-contact-actions .outline-btn,
.if-about-platform-copy .primary-btn {
  min-height: 48px;
  border-radius: 8px;
}

.if-about-hero-actions .outline-btn {
  background: rgba(255, 255, 255, 0.84);
}

.if-about-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.if-about-hero-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(15, 69, 111, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: #3e5d77;
  font-size: 12px;
  font-weight: 750;
}

.if-about-intro,
.if-about-products,
.if-about-flow,
.if-about-platforms,
.if-about-development,
.if-about-contact {
  padding: 96px 0;
}

.if-about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 84px;
  align-items: start;
}

.if-about-intro h2,
.if-about-section-head h2,
.if-about-platform-copy h2,
.if-about-trust-copy h2,
.if-about-contact h2 {
  margin: 12px 0 0;
  color: #0d253b;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}

.if-about-intro-copy p {
  margin: 0 0 18px;
  color: #526b81;
  font-size: 17px;
  line-height: 1.75;
}

.if-about-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  margin-top: 72px;
}

.if-about-principles article {
  min-width: 0;
  padding-top: 24px;
  border-top: 2px solid #dce8f2;
}

.if-about-principles article:nth-child(1) {
  border-top-color: #155eef;
}

.if-about-principles article:nth-child(2) {
  border-top-color: #0f9f8f;
}

.if-about-principles article:nth-child(3) {
  border-top-color: #9b58ae;
}

.if-about-principles span,
.if-about-development-grid span {
  display: block;
  margin-bottom: 14px;
  color: #0879b8;
  font-size: 12px;
  font-weight: 900;
}

.if-about-principles h3,
.if-about-development-grid h3 {
  margin: 0 0 10px;
  color: #10263d;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

.if-about-principles p,
.if-about-development-grid p {
  margin: 0;
  color: #61798e;
  font-size: 14px;
  line-height: 1.65;
}

.if-about-products {
  background: #f3f8fc;
}

.if-about-section-head {
  max-width: 790px;
}

.if-about-section-head > p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #60788d;
  font-size: 17px;
  line-height: 1.7;
}

.if-about-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 70px;
  align-items: center;
  padding: 76px 0;
  border-bottom: 1px solid #d8e5ef;
}

.if-about-product-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.if-about-product-row.is-reverse figure {
  order: 2;
}

.if-about-product-row.is-reverse > div {
  order: 1;
}

.if-about-product-row figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d7e4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(24, 68, 105, 0.11);
}

.if-about-product-row figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.if-about-product-index {
  display: block;
  margin-bottom: 16px;
  color: #0d8f82;
  font-size: 12px;
  font-weight: 900;
}

.if-about-product-row h3 {
  margin: 0 0 18px;
  color: #10263d;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.if-about-product-row p {
  margin: 0;
  color: #587187;
  font-size: 16px;
  line-height: 1.72;
}

.if-about-product-row ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.if-about-product-row li {
  position: relative;
  padding-left: 25px;
  color: #405d75;
  font-size: 14px;
  line-height: 1.55;
}

.if-about-product-row li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 1px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #0f9f8f;
  border-left: 2px solid #0f9f8f;
  transform: rotate(-45deg);
}

.if-about-inline-actions {
  align-items: center;
  margin-top: 30px;
}

.if-about-inline-actions .text-btn {
  color: #0879b8;
  font-weight: 800;
}

.if-about-flow {
  background: #ffffff;
}

.if-about-flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 54px 0 0;
  padding: 0;
  border-top: 1px solid #dce7f0;
  list-style: none;
}

.if-about-flow-list li {
  min-width: 0;
  padding: 28px 28px 0 0;
}

.if-about-flow-list li + li {
  padding-left: 28px;
  border-left: 1px solid #dce7f0;
}

.if-about-flow-list > li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #e9f2ff;
  color: #155eef;
  font-size: 12px;
  font-weight: 900;
}

.if-about-flow-list li:nth-child(2) > span {
  background: #e5f7f4;
  color: #087e71;
}

.if-about-flow-list li:nth-child(3) > span {
  background: #f4edf9;
  color: #824b9e;
}

.if-about-flow-list li:nth-child(4) > span {
  background: #fdf1e8;
  color: #a65f22;
}

.if-about-flow-list h3 {
  margin: 0 0 9px;
  color: #10263d;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.if-about-flow-list p {
  margin: 0;
  color: #61798e;
  font-size: 14px;
  line-height: 1.65;
}

.if-about-platforms {
  background: #e9f7f7;
}

.if-about-platforms-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 84px;
  align-items: center;
}

.if-about-platform-copy p {
  margin: 20px 0 28px;
  color: #4d6b78;
  font-size: 16px;
  line-height: 1.7;
}

.if-about-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.if-about-platform-grid span {
  display: grid;
  min-width: 0;
  min-height: 128px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(18, 83, 91, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.if-about-platform-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.if-about-platform-grid strong {
  max-width: 100%;
  color: #163b48;
  font-size: 13px;
  text-align: center;
  overflow-wrap: break-word;
}

.if-about-trust {
  padding: 100px 0;
  background: #0c2738;
  color: #fff;
}

.if-about-trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 92px;
  align-items: center;
}

.if-about-trust .if-about-section-label {
  color: #43d1c0;
}

.if-about-trust-copy h2 {
  color: #fff;
}

.if-about-trust-copy p {
  margin: 20px 0 0;
  color: #bfd0dd;
  font-size: 16px;
  line-height: 1.75;
}

.if-about-light-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: #63ded0;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.if-about-trust-points {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.if-about-trust-points article {
  display: grid;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.if-about-trust-points strong {
  color: #f7fbff;
  font-size: 16px;
}

.if-about-trust-points span {
  color: #9fb5c4;
  font-size: 14px;
  line-height: 1.6;
}

.if-about-development {
  background: #ffffff;
}

.if-about-development-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.if-about-development-grid article {
  min-width: 0;
  padding: 28px;
  border: 1px solid #dce7f0;
  border-radius: 8px;
  background: #f9fbfd;
}

.if-about-contact {
  background: #f2f7fb;
}

.if-about-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 90px;
  align-items: start;
}

.if-about-contact-inner > div:first-child > p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #587187;
  font-size: 16px;
  line-height: 1.72;
}

.if-about-contact-actions {
  margin-top: 30px;
}

.if-about-contact-list {
  display: grid;
  border-top: 1px solid #d7e3ed;
}

.if-about-contact-list a {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #d7e3ed;
  color: #536d83;
  font-size: 13px;
  text-decoration: none;
}

.if-about-contact-list strong {
  min-width: 0;
  color: #0d6ca4;
  text-align: right;
  overflow-wrap: anywhere;
}

body[data-theme="dark"][data-page="about"] {
  background: #0a1522;
}

body[data-theme="dark"] .if-about-intro,
body[data-theme="dark"] .if-about-flow,
body[data-theme="dark"] .if-about-development {
  background: #0a1522;
}

body[data-theme="dark"] .if-about-products,
body[data-theme="dark"] .if-about-contact {
  background: #0f1e2d;
}

body[data-theme="dark"] .if-about-platforms {
  background: #10302f;
}

body[data-theme="dark"] .if-about-intro h2,
body[data-theme="dark"] .if-about-section-head h2,
body[data-theme="dark"] .if-about-platform-copy h2,
body[data-theme="dark"] .if-about-contact h2,
body[data-theme="dark"] .if-about-principles h3,
body[data-theme="dark"] .if-about-product-row h3,
body[data-theme="dark"] .if-about-flow-list h3,
body[data-theme="dark"] .if-about-development-grid h3 {
  color: #eef6ff;
}

body[data-theme="dark"] .if-about-intro-copy p,
body[data-theme="dark"] .if-about-section-head > p,
body[data-theme="dark"] .if-about-principles p,
body[data-theme="dark"] .if-about-product-row p,
body[data-theme="dark"] .if-about-product-row li,
body[data-theme="dark"] .if-about-flow-list p,
body[data-theme="dark"] .if-about-development-grid p,
body[data-theme="dark"] .if-about-contact-inner > div:first-child > p {
  color: #a9bbcc;
}

body[data-theme="dark"] .if-about-product-row,
body[data-theme="dark"] .if-about-flow-list,
body[data-theme="dark"] .if-about-flow-list li + li,
body[data-theme="dark"] .if-about-contact-list,
body[data-theme="dark"] .if-about-contact-list a {
  border-color: rgba(190, 215, 245, 0.14);
}

body[data-theme="dark"] .if-about-development-grid article {
  border-color: rgba(190, 215, 245, 0.14);
  background: #122337;
}

body[data-theme="dark"] .if-about-platform-grid span {
  border-color: rgba(190, 240, 235, 0.14);
  background: rgba(9, 27, 34, 0.72);
}

body[data-theme="dark"] .if-about-platform-grid strong {
  color: #d5efeb;
}

@media (max-width: 980px) {
  .if-about-hero {
    min-height: 540px;
    height: 620px;
  }

  .if-about-hero h1 {
    font-size: 62px;
  }

  .if-about-hero-shade {
    background: linear-gradient(90deg, rgba(247, 252, 255, 0.97) 0%, rgba(247, 252, 255, 0.88) 50%, rgba(247, 252, 255, 0.2) 100%);
  }

  .if-about-intro,
  .if-about-products,
  .if-about-flow,
  .if-about-platforms,
  .if-about-development,
  .if-about-contact {
    padding: 76px 0;
  }

  .if-about-intro-grid,
  .if-about-platforms-inner,
  .if-about-trust-grid,
  .if-about-contact-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .if-about-principles {
    gap: 24px;
    margin-top: 54px;
  }

  .if-about-product-row {
    gap: 42px;
  }

  .if-about-flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .if-about-flow-list li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .if-about-flow-list li:nth-child(n + 3) {
    padding-top: 32px;
    border-top: 1px solid #dce7f0;
  }

  .if-about-platforms-inner {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  }

  .if-about-contact-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .if-about-hero {
    height: 590px;
  }

  .if-about-hero-image {
    object-position: 64% center;
  }

  .if-about-hero-shade {
    background: rgba(247, 252, 255, 0.83);
  }

  .if-about-hero h1 {
    font-size: 52px;
  }

  .if-about-hero-inner > p {
    max-width: 540px;
    font-size: 17px;
  }

  .if-about-intro h2,
  .if-about-section-head h2,
  .if-about-platform-copy h2,
  .if-about-trust-copy h2,
  .if-about-contact h2 {
    font-size: 36px;
  }

  .if-about-principles,
  .if-about-development-grid {
    grid-template-columns: 1fr;
  }

  .if-about-principles {
    gap: 30px;
  }

  .if-about-product-row,
  .if-about-product-row.is-reverse {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 56px 0;
  }

  .if-about-product-row.is-reverse figure,
  .if-about-product-row.is-reverse > div {
    order: initial;
  }

  .if-about-platforms-inner,
  .if-about-contact-inner {
    grid-template-columns: 1fr;
  }

  .if-about-trust {
    padding: 76px 0;
  }
}

@media (max-width: 520px) {
  .if-about-hero {
    min-height: 560px;
    height: 600px;
  }

  .if-about-hero-inner {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .if-about-hero h1 {
    margin-top: 11px;
    font-size: 43px;
  }

  .if-about-hero-inner > p {
    font-size: 16px;
    line-height: 1.58;
  }

  .if-about-hero-actions,
  .if-about-inline-actions,
  .if-about-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .if-about-hero-actions > *,
  .if-about-inline-actions > *,
  .if-about-contact-actions > * {
    width: 100%;
    justify-content: center;
  }

  .if-about-hero-tags {
    display: none;
  }

  .if-about-intro,
  .if-about-products,
  .if-about-flow,
  .if-about-platforms,
  .if-about-development,
  .if-about-contact {
    padding: 58px 0;
  }

  .if-about-intro h2,
  .if-about-section-head h2,
  .if-about-platform-copy h2,
  .if-about-trust-copy h2,
  .if-about-contact h2 {
    font-size: 30px;
  }

  .if-about-intro-copy p,
  .if-about-section-head > p {
    font-size: 15px;
  }

  .if-about-product-row h3 {
    font-size: 28px;
  }

  .if-about-product-row p {
    font-size: 15px;
  }

  .if-about-flow-list {
    grid-template-columns: 1fr;
  }

  .if-about-flow-list li,
  .if-about-flow-list li + li,
  .if-about-flow-list li:nth-child(3) {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0 14px;
    padding: 22px 0;
    border-top: 1px solid #dce7f0;
    border-left: 0;
  }

  .if-about-flow-list > li > span {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .if-about-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .if-about-platform-grid span {
    min-height: 112px;
    padding: 14px;
  }

  .if-about-trust {
    padding: 60px 0;
  }

  .if-about-development-grid article {
    padding: 22px;
  }

  .if-about-contact-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .if-about-contact-list strong {
    text-align: left;
  }
}

/* Support chat v48 */
body[data-page="help"] {
  overflow: hidden;
  background: #eef3f7;
}

body[data-page="help"] .page-shell {
  height: calc(100dvh - 72px);
  padding: 0;
}

body[data-page="help"] .site-footer,
body[data-page="help"] .support-float-btn {
  display: none;
}

.if-support-page {
  width: 100%;
  height: 100%;
  padding: 16px;
}

.if-support-guest {
  display: flex;
  width: min(520px, 100%);
  min-height: 480px;
  justify-content: center;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto;
  padding: 54px;
  border: 1px solid #d8e3ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(23, 54, 86, 0.1);
}

.if-support-guest > img {
  width: 68px;
  height: 68px;
  margin-bottom: 26px;
  border-radius: 8px;
}

.if-support-kicker {
  color: #0879b8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.if-support-guest h1 {
  margin: 10px 0 14px;
  color: #10263d;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.if-support-guest p {
  margin: 0;
  color: #60778c;
  font-size: 15px;
  line-height: 1.7;
}

.if-support-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.if-support-guest-actions > * {
  min-height: 46px;
  border-radius: 8px;
}

.if-support-telegram-link {
  margin-top: 22px;
  color: #0879b8;
  font-size: 14px;
  font-weight: 800;
}

.if-support-app {
  display: grid;
  width: min(1180px, 100%);
  height: 100%;
  grid-template-rows: 72px minmax(0, 1fr);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d5e1eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 52, 84, 0.11);
}

.if-support-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid #dce6ee;
  background: #fff;
}

.if-support-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.if-support-identity img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.if-support-identity h1 {
  margin: 0;
  color: #10263d;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

.if-support-identity span,
.if-support-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: #708397;
  font-size: 12px;
}

.if-support-identity i,
.if-support-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #16a085;
}

.if-support-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.if-support-new-btn,
.if-support-close-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.if-support-new-btn {
  padding: 0 15px;
  border: 1px solid #cfdde9;
  background: #f6f9fc;
  color: #18425f;
  cursor: pointer;
}

.if-support-close-btn {
  width: 40px;
  border: 1px solid #cfdde9;
  color: #48647a;
  font-size: 23px;
  text-decoration: none;
}

.if-support-layout {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 280px minmax(0, 1fr);
}

.if-support-sidebar {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 20px 14px 16px;
  border-right: 1px solid #dce6ee;
  background: #f7f9fb;
}

.if-support-sidebar-head {
  display: grid;
  gap: 4px;
  padding: 0 6px 14px;
}

.if-support-sidebar-head strong {
  color: #17334c;
  font-size: 14px;
}

.if-support-sidebar-head span {
  color: #7a8b9b;
  font-size: 12px;
}

.if-support-thread-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.if-support-thread-list .support-thread-item {
  display: grid;
  width: 100%;
  gap: 6px;
  margin: 0 0 6px;
  padding: 13px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #17334c;
  text-align: left;
  cursor: pointer;
}

.if-support-thread-list .support-thread-item:hover,
.if-support-thread-list .support-thread-item.active {
  border-color: #c9ddef;
  background: #eaf3fb;
}

.if-support-thread-list .support-thread-top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.if-support-thread-list .support-thread-top strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.if-support-thread-list .support-thread-meta {
  min-width: 0;
  overflow: hidden;
  color: #6b7f91;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.if-support-thread-list .panel-subcard {
  margin: 0;
  padding: 14px 12px;
  border: 0;
  border-radius: 8px;
  background: #eef3f7;
  box-shadow: none;
}

.if-support-thread-list .panel-subcard p {
  margin: 0;
  color: #728496;
  font-size: 12px;
}

.if-support-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 8px 2px;
  border-top: 1px solid #dce6ee;
  color: #0879b8;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.if-support-conversation {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}

.if-support-conversation-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  border-bottom: 1px solid #e1e9f0;
}

.if-support-conversation-head h2 {
  margin: 0;
  color: #10263d;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.if-support-conversation-head p {
  margin: 4px 0 0;
  color: #76899b;
  font-size: 12px;
  line-height: 1.45;
}

.if-support-status {
  flex: 0 0 auto;
  margin: 0;
}

body[data-page="help"] .if-support-messages {
  min-width: 0;
  min-height: 0;
  max-height: none;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 22px;
  border: 0;
  border-radius: 0;
  background: #f5f8fb;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

body[data-page="help"] .if-support-messages .support-message {
  display: flex;
  width: 100%;
  align-self: start;
  margin: 0 0 12px;
}

body[data-page="help"] .if-support-messages .support-message.from-admin {
  justify-content: flex-start;
}

body[data-page="help"] .if-support-messages .support-message.from-user {
  justify-content: flex-end;
}

body[data-page="help"] .if-support-messages .support-message-bubble {
  width: fit-content;
  max-width: min(72%, 620px);
  padding: 11px 14px;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  background: #fff;
  color: #253d51;
  box-shadow: 0 4px 14px rgba(28, 60, 92, 0.05);
}

body[data-page="help"] .if-support-messages .support-message.from-user .support-message-bubble {
  border-color: #1875d1;
  background: #1875d1;
  color: #fff;
}

body[data-page="help"] .if-support-messages .support-message-text {
  max-width: 100%;
  color: inherit;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

body[data-page="help"] .if-support-messages .support-message-label {
  margin-bottom: 4px;
  color: #668096;
  font-size: 10px;
  font-weight: 800;
}

body[data-page="help"] .if-support-messages .from-user .support-message-label {
  color: rgba(255, 255, 255, 0.72);
}

body[data-page="help"] .if-support-messages .support-message-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}

body[data-page="help"] .if-support-messages .support-message-time {
  display: inline;
  color: #8798a7;
  font-size: 10px;
}

body[data-page="help"] .if-support-messages .from-user .support-message-time {
  color: rgba(255, 255, 255, 0.7);
}

body[data-page="help"] .if-support-messages .support-message-image {
  display: block;
  max-width: min(320px, 100%);
  max-height: 320px;
  margin-top: 8px;
  border-radius: 6px;
  object-fit: contain;
}

.if-support-composer {
  display: grid;
  gap: 8px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #dce6ee;
  background: #fff;
}

.if-support-form-status {
  padding: 8px 11px;
  border-radius: 6px;
  background: #edf4fb;
  color: #32617e;
  font-size: 12px;
  line-height: 1.4;
}

.if-support-form-status.is-error {
  background: #fff0f2;
  color: #b7324b;
}

.if-support-form-status.is-success {
  background: #eaf8f4;
  color: #167764;
}

.if-support-attachment {
  display: grid;
  min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #d7e3ed;
  border-radius: 8px;
  background: #f6f9fb;
}

.if-support-attachment-image {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.if-support-attachment-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.if-support-attachment-copy strong {
  color: #27465f;
  font-size: 12px;
}

.if-support-attachment-copy span {
  min-width: 0;
  overflow: hidden;
  color: #718496;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.if-support-attachment-remove {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: #e7eef4;
  color: #526d82;
  font-size: 20px;
  cursor: pointer;
}

.if-support-compose-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.if-support-attach-btn,
.if-support-send-btn {
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
}

.if-support-attach-btn {
  width: 44px;
  border: 1px solid #cfdde8;
  background: #f4f7fa;
  color: #31546e;
  font-size: 25px;
  line-height: 1;
}

.if-support-compose-row textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  max-height: 120px;
  margin: 0;
  padding: 10px 12px;
  resize: none;
  border: 1px solid #c9d8e4;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #17334c;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  overflow-y: hidden;
}

.if-support-compose-row textarea:focus {
  border-color: #1683d8;
  box-shadow: 0 0 0 3px rgba(22, 131, 216, 0.12);
}

.if-support-send-btn {
  display: inline-flex;
  min-width: 118px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 0;
  background: linear-gradient(135deg, #155eef, #0f9f8f);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(21, 94, 239, 0.16);
}

.if-support-send-arrow {
  font-size: 18px;
}

.if-support-attach-btn:disabled,
.if-support-send-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

body[data-theme="dark"][data-page="help"] {
  background: #08131f;
}

body[data-theme="dark"] .if-support-app,
body[data-theme="dark"] .if-support-header,
body[data-theme="dark"] .if-support-conversation,
body[data-theme="dark"] .if-support-composer {
  border-color: rgba(190, 215, 245, 0.14);
  background: #0f1e2d;
}

body[data-theme="dark"] .if-support-sidebar,
body[data-theme="dark"] .if-support-messages {
  border-color: rgba(190, 215, 245, 0.14);
  background: #0a1724;
}

body[data-theme="dark"] .if-support-identity h1,
body[data-theme="dark"] .if-support-conversation-head h2,
body[data-theme="dark"] .if-support-sidebar-head strong {
  color: #edf6ff;
}

body[data-theme="dark"] .if-support-compose-row textarea {
  border-color: #33485b;
  background: #132638;
  color: #edf6ff;
}

body[data-theme="dark"] .if-support-thread-list .support-thread-item {
  color: #dceaf6;
}

body[data-theme="dark"] .if-support-thread-list .support-thread-item:hover,
body[data-theme="dark"] .if-support-thread-list .support-thread-item.active {
  border-color: #31516b;
  background: #152b3d;
}

@media (max-width: 760px) {
  body[data-page="help"] .page-shell {
    height: calc(100dvh - 58px);
  }

  .if-support-page {
    padding: 0;
  }

  .if-support-guest {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 30px 22px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .if-support-app {
    width: 100%;
    grid-template-rows: 62px minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .if-support-header {
    padding: 0 10px 0 12px;
  }

  .if-support-identity {
    gap: 9px;
  }

  .if-support-identity img {
    width: 38px;
    height: 38px;
  }

  .if-support-identity h1 {
    font-size: 16px;
  }

  .if-support-identity span {
    font-size: 10px;
  }

  .if-support-new-btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .if-support-close-btn {
    width: 38px;
    min-height: 38px;
  }

  .if-support-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 88px minmax(0, 1fr);
  }

  .if-support-sidebar {
    display: block;
    min-width: 0;
    padding: 8px 10px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid #dce6ee;
  }

  .if-support-sidebar-head,
  .if-support-sidebar-link {
    display: none;
  }

  .if-support-thread-list {
    display: flex;
    height: 100%;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .if-support-thread-list::-webkit-scrollbar {
    display: none;
  }

  .if-support-thread-list .support-thread-item {
    width: 172px;
    min-width: 172px;
    height: 68px;
    margin: 0;
    padding: 9px 10px;
    background: #fff;
  }

  .if-support-thread-list .panel-subcard {
    display: flex;
    min-width: 172px;
    height: 68px;
    align-items: center;
  }

  .if-support-conversation-head {
    padding: 10px 12px;
  }

  .if-support-conversation-head p,
  .if-support-status {
    display: none;
  }

  body[data-page="help"] .if-support-messages {
    padding: 16px 10px;
  }

  body[data-page="help"] .if-support-messages .support-message-bubble {
    max-width: 88%;
    padding: 10px 12px;
  }

  body[data-page="help"] .if-support-messages .support-message-text {
    font-size: 14px;
  }

  .if-support-composer {
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .if-support-compose-row {
    grid-template-columns: 42px minmax(0, 1fr) 44px;
    gap: 6px;
  }

  .if-support-attach-btn {
    width: 42px;
    min-height: 42px;
  }

  .if-support-compose-row textarea {
    min-height: 42px;
    padding: 9px 10px;
  }

  .if-support-send-btn {
    width: 44px;
    min-width: 44px;
    min-height: 42px;
    padding: 0;
  }

  .if-support-send-label {
    display: none;
  }

  .if-support-send-arrow {
    font-size: 20px;
  }
}

@media (max-width: 380px) {
  .if-support-new-btn {
    width: 38px;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  .if-support-new-btn::before {
    content: "+";
    color: #18425f;
    font-size: 22px;
  }
}

/* Public news v50 */
body[data-page="news"] {
  background: #f4f8fa;
  color: #153244;
}

body[data-page="news"] .page-shell {
  padding-bottom: 0;
}

.if-news-page {
  min-width: 0;
  overflow: hidden;
}

.if-news-hero {
  padding: 70px 0 62px;
  border-bottom: 1px solid #dce9ed;
  background: #ffffff;
}

.if-news-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.if-news-kicker,
.if-news-section-label {
  display: block;
  margin-bottom: 10px;
  color: #087f9c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.if-news-hero h1 {
  max-width: 760px;
  margin: 0 auto 18px;
  color: #102d3d;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: 0;
}

.if-news-hero p {
  max-width: 740px;
  margin: 0 auto;
  color: #607681;
  font-size: 19px;
  line-height: 1.65;
}

.if-news-hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 26px;
}

.if-news-hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #087f9c;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.if-news-hero-links a:hover,
.if-news-hero-links a:focus-visible {
  color: #075f77;
}

.if-news-feed-section {
  padding: 56px 0 72px;
}

.if-news-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}

.if-news-section-head h2,
.if-news-more h2 {
  margin: 0;
  color: #102d3d;
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: 0;
}

.if-news-section-head > p {
  margin: 0;
  color: #657a84;
  font-size: 16px;
  line-height: 1.6;
}

.if-news-feed {
  min-width: 0;
}

.if-news-loading,
.if-news-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 260px;
  border: 1px solid #d5e5e9;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.if-news-loading-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 3px solid #d4eef2;
  border-top-color: #0c99b5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.if-news-loading strong {
  display: block;
  color: #173748;
  font-size: 17px;
}

.if-news-loading p {
  margin: 4px 0 0;
  color: #6b7e87;
}

.if-news-featured {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  min-width: 0;
  scroll-margin-top: 90px;
  overflow: hidden;
  border: 1px solid #cfe2e7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(36, 79, 94, 0.08);
}

.if-news-featured-media {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #e2f2f5;
}

.if-news-featured-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.if-news-featured-media.is-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), transparent 55%),
    #dff3f6;
}

.if-news-featured-media.is-placeholder::before,
.if-news-featured-media.is-placeholder::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.if-news-featured-media.is-placeholder::before {
  inset: 30px;
  border: 1px solid rgba(8, 127, 156, 0.15);
}

.if-news-featured-media.is-placeholder::after {
  width: 180px;
  height: 1px;
  background: rgba(8, 127, 156, 0.25);
  transform: rotate(-32deg);
}

.if-news-featured-media.is-placeholder img {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(16, 89, 108, 0.12));
}

.if-news-featured-media.is-placeholder span {
  position: relative;
  z-index: 1;
  color: #173f52;
  font-size: 18px;
  font-weight: 800;
}

.if-news-featured-copy {
  min-width: 0;
  padding: 42px;
}

.if-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 15px;
  color: #70838c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.if-news-category {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #e3f4f6;
  color: #087f9c;
}

.if-news-category.is-proxy {
  background: #e9f0fb;
  color: #3266a8;
}

.if-news-category.is-app {
  background: #edf4e9;
  color: #427b3e;
}

.if-news-category.is-service {
  background: #f4efe4;
  color: #7e6738;
}

.if-news-featured h2 {
  margin: 0 0 20px;
  overflow-wrap: anywhere;
  color: #102d3d;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.if-news-content {
  min-width: 0;
  color: #536b77;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

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

.if-news-content a {
  color: #087f9c;
  font-weight: 700;
}

.if-news-content .news-inline-image {
  width: 100%;
  max-height: 430px;
  margin: 0 0 20px;
  border: 0;
  border-radius: 6px;
  object-fit: contain;
}

.if-news-archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 56px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d5e4e8;
  color: #173748;
}

.if-news-archive-head span {
  font-size: 22px;
  font-weight: 800;
}

.if-news-archive-head strong {
  color: #71848d;
  font-size: 14px;
}

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

.if-news-card {
  display: flex;
  min-width: 0;
  scroll-margin-top: 90px;
  overflow: hidden;
  border: 1px solid #d4e3e7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 9px 26px rgba(42, 80, 92, 0.05);
}

.if-news-card-media {
  width: 150px;
  min-height: 100%;
  flex: 0 0 150px;
  overflow: hidden;
  border-right: 1px solid #dbe8eb;
  background: #e7f1f3;
}

.if-news-card-media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.if-news-card-body {
  min-width: 0;
  flex: 1;
  padding: 24px;
}

.if-news-card h3 {
  margin: 0 0 13px;
  overflow-wrap: anywhere;
  color: #153244;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: 0;
}

.if-news-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #647983;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.if-news-details {
  margin-top: 17px;
  border-top: 1px solid #e0eaed;
}

.if-news-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
  color: #087f9c;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.if-news-details summary::-webkit-details-marker {
  display: none;
}

.if-news-details summary span {
  transition: transform 180ms ease;
}

.if-news-details[open] summary span {
  transform: rotate(180deg);
}

.if-news-details .if-news-content {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid #e0eaed;
  font-size: 15px;
}

.if-news-load-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.if-news-load-more .outline-btn {
  min-width: 210px;
}

.if-news-load-more .outline-btn span {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  margin-left: 7px;
  padding: 0 6px;
  place-items: center;
  border-radius: 5px;
  background: #dff1f4;
  color: #087f9c;
  font-size: 12px;
}

.if-news-empty {
  flex-direction: column;
  min-height: 360px;
  padding: 34px;
  text-align: center;
}

.if-news-empty img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.if-news-empty h2 {
  margin: 2px 0 0;
  color: #153244;
}

.if-news-empty p {
  margin: 0;
  color: #647983;
}

.if-news-more {
  padding: 58px 0;
  border-top: 1px solid #d1e5e9;
  background: #e6f4f6;
}

.if-news-more-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.if-news-more p {
  max-width: 650px;
  margin: 14px 0 0;
  color: #5f747f;
  font-size: 16px;
  line-height: 1.6;
}

.if-news-more-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.if-news-more-actions .primary-btn,
.if-news-more-actions .outline-btn {
  min-width: 155px;
}

@media (max-width: 980px) {
  .if-news-featured {
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  }

  .if-news-featured-copy {
    padding: 34px;
  }

  .if-news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .if-news-card-media {
    width: 190px;
    flex-basis: 190px;
  }
}

@media (max-width: 760px) {
  .if-news-hero {
    padding: 50px 0 45px;
  }

  .if-news-hero h1 {
    font-size: 42px;
  }

  .if-news-hero p {
    font-size: 17px;
  }

  .if-news-feed-section {
    padding: 42px 0 54px;
  }

  .if-news-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .if-news-section-head h2,
  .if-news-more h2 {
    font-size: 31px;
  }

  .if-news-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .if-news-featured-media {
    min-height: 250px;
    max-height: 330px;
  }

  .if-news-featured-copy {
    padding: 28px;
  }

  .if-news-featured h2 {
    font-size: 28px;
  }

  .if-news-more-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .if-news-hero {
    padding: 38px 0 36px;
  }

  .if-news-hero-inner {
    text-align: left;
  }

  .if-news-hero h1 {
    margin: 0 0 15px;
    font-size: 36px;
  }

  .if-news-hero p {
    font-size: 16px;
    line-height: 1.58;
  }

  .if-news-hero-links {
    justify-content: flex-start;
    margin-top: 21px;
  }

  .if-news-feed-section {
    padding: 34px 0 44px;
  }

  .if-news-section-head {
    margin-bottom: 22px;
  }

  .if-news-section-head h2,
  .if-news-more h2 {
    font-size: 28px;
  }

  .if-news-section-head > p {
    font-size: 15px;
  }

  .if-news-featured-media {
    min-height: 210px;
  }

  .if-news-featured-media.is-placeholder img {
    width: 82px;
    height: 82px;
  }

  .if-news-featured-copy {
    padding: 23px 20px 25px;
  }

  .if-news-featured h2 {
    font-size: 25px;
  }

  .if-news-content {
    font-size: 15px;
    line-height: 1.64;
  }

  .if-news-archive-head {
    margin-top: 38px;
  }

  .if-news-archive-head span {
    font-size: 20px;
  }

  .if-news-card {
    display: block;
  }

  .if-news-card-media {
    width: 100%;
    height: 210px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #dbe8eb;
  }

  .if-news-card-media img {
    min-height: 0;
  }

  .if-news-card-body {
    padding: 21px 19px 22px;
  }

  .if-news-card h3 {
    font-size: 20px;
  }

  .if-news-loading {
    min-height: 220px;
    padding: 24px;
  }

  .if-news-more {
    padding: 42px 0;
  }

  .if-news-more-actions {
    width: 100%;
    flex-direction: column;
  }

  .if-news-more-actions .primary-btn,
  .if-news-more-actions .outline-btn {
    width: 100%;
  }
}

/* Admin workspace v52 */
body[data-page="admin"] {
  background: #eef4f6;
  color: #173444;
}

body[data-page="admin"] .page-shell {
  padding-bottom: 48px;
}

body[data-page="admin"] .site-footer {
  display: none;
}

.if-admin-page {
  min-width: 0;
}

.if-admin-head {
  border-bottom: 1px solid #d7e4e8;
  background: #ffffff;
}

.if-admin-head-inner {
  padding-top: 30px;
  padding-bottom: 30px;
}

.if-admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.if-admin-kicker,
.if-admin-section-label {
  display: block;
  margin-bottom: 7px;
  color: #0785a1;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.if-admin-page-head h1 {
  margin: 0;
  color: #102f40;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.if-admin-page-head p {
  margin: 8px 0 0;
  color: #6a7d87;
  font-size: 15px;
  line-height: 1.55;
}

.if-admin-system-state {
  display: grid;
  justify-items: end;
  gap: 5px;
  flex: 0 0 auto;
}

.if-admin-system-state span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #31505e;
  font-size: 13px;
  font-weight: 800;
}

.if-admin-system-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #21a668;
  box-shadow: 0 0 0 4px rgba(33, 166, 104, 0.12);
}

.if-admin-system-state small {
  color: #8a9aa2;
  font-size: 11px;
}

.if-admin-body {
  padding-top: 26px;
}

.if-admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.if-admin-sidebar {
  position: sticky;
  top: 82px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e4e8;
  border-radius: 8px;
  background: #ffffff;
}

.if-admin-sidebar-title {
  display: grid;
  gap: 3px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid #e1eaed;
}

.if-admin-sidebar-title strong {
  color: #173747;
  font-size: 15px;
}

.if-admin-sidebar-title span {
  color: #85949b;
  font-size: 12px;
}

body[data-page="admin"] .admin-side-nav {
  display: grid;
  gap: 2px;
  padding: 9px;
}

body[data-page="admin"] .admin-side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #516973;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

body[data-page="admin"] .admin-side-link:hover {
  background: #edf5f7;
  color: #173747;
}

body[data-page="admin"] .admin-side-link.active {
  background: #dff1f4;
  color: #067e99 !important;
  box-shadow: inset 3px 0 0 #10a5bf;
}

body[data-page="admin"] .admin-side-link.active span {
  color: inherit;
}

body[data-page="admin"] .mini-count-badge {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  place-items: center;
  border-radius: 5px;
  background: #0c96b0;
  color: #ffffff;
  font-size: 11px;
}

body[data-page="admin"] .admin-quick-counters {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid #e1eaed;
  background: #f7fafb;
}

body[data-page="admin"] .admin-counter-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7d85;
  font-size: 12px;
}

body[data-page="admin"] .admin-counter-chip strong {
  color: #173747;
  font-size: 15px;
}

.if-admin-workspace {
  min-width: 0;
}

body[data-page="admin"][data-admin-section="messages"] .if-admin-head {
  display: none;
}

body[data-page="admin"][data-admin-section="messages"] .if-admin-body {
  padding-top: 16px;
}

.if-admin-workspace > .panel-card,
.if-admin-workspace > .stack-list > .panel-card,
.if-admin-workspace > .admin-users-summary-grid + .panel-card {
  margin: 0 0 18px;
  padding: 28px;
  border: 1px solid #d7e4e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 76, 90, 0.05);
}

.if-admin-workspace > .stack-list {
  gap: 18px;
}

body[data-page="admin"] .card-top {
  align-items: flex-start;
  gap: 18px;
}

body[data-page="admin"] .card-top h3,
body[data-page="admin"] .card-top h4 {
  margin: 0 0 7px;
  color: #173747;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

body[data-page="admin"] .card-top h4 {
  font-size: 17px;
}

body[data-page="admin"] .card-top p {
  max-width: 760px;
  margin: 0;
  color: #6d7f87;
  font-size: 14px;
  line-height: 1.55;
}

body[data-page="admin"] .status-badge {
  min-height: 27px;
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  background: #e2f2f5;
  color: #087f9c;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="admin"] .panel-subcard {
  border: 1px solid #dce7ea;
  border-radius: 7px;
  background: #f8fbfc;
  box-shadow: none;
}

body[data-page="admin"] .field {
  gap: 7px;
}

body[data-page="admin"] .field > span,
body[data-page="admin"] .muted-label {
  color: #4e6873;
  font-size: 12px;
  font-weight: 800;
}

body[data-page="admin"] input,
body[data-page="admin"] select,
body[data-page="admin"] textarea {
  border: 1px solid #cfdde1;
  border-radius: 6px;
  background: #ffffff;
  color: #173747;
  box-shadow: none;
}

body[data-page="admin"] input,
body[data-page="admin"] select {
  min-height: 44px;
}

body[data-page="admin"] input:focus,
body[data-page="admin"] select:focus,
body[data-page="admin"] textarea:focus {
  border-color: #11a5bf;
  outline: 3px solid rgba(17, 165, 191, 0.12);
}

body[data-page="admin"] .primary-btn,
body[data-page="admin"] .ghost-btn,
body[data-page="admin"] .outline-btn,
body[data-page="admin"] .mini-btn,
body[data-page="admin"] .danger-btn {
  min-height: 40px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

body[data-page="admin"] .primary-btn {
  border-color: #0a95af;
  background: #0a95af;
  color: #ffffff;
  box-shadow: none;
}

body[data-page="admin"] .primary-btn:hover {
  background: #087f99;
}

body[data-page="admin"] .ghost-btn,
body[data-page="admin"] .outline-btn,
body[data-page="admin"] .mini-btn {
  border-color: #cddde1;
  background: #ffffff;
  color: #31515f;
}

body[data-page="admin"] .notice {
  border: 1px solid #d6e4e8;
  border-radius: 6px;
  background: #f3f8fa;
  color: #536c77;
  font-size: 13px;
  line-height: 1.5;
}

body[data-page="admin"] .admin-users-summary-grid {
  margin-bottom: 18px;
}

body[data-page="admin"] .admin-users-total-card {
  min-height: 130px;
  padding: 24px;
  border: 1px solid #d7e4e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="admin"] .admin-users-total-value {
  color: #0a8da7;
  font-size: 40px;
  letter-spacing: 0;
}

body[data-page="admin"] .admin-tariff-grid,
body[data-page="admin"] .admin-downloads-grid,
body[data-page="admin"] .admin-news-grid {
  gap: 14px;
}

body[data-page="admin"] .admin-tariff-grid .panel-subcard {
  padding: 20px;
  background: #f7fafb;
}

.if-admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.if-admin-section-head h2 {
  margin: 0;
  color: #102f40;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.if-admin-section-head p {
  margin: 8px 0 0;
  color: #6d7f87;
  font-size: 14px;
}

.if-admin-section-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
  color: #71838b;
  font-size: 12px;
}

.if-admin-section-count strong {
  color: #0a8da7;
  font-size: 25px;
}

.if-admin-support-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 390px);
  align-items: center;
  justify-content: end;
  gap: 12px;
  margin-bottom: 12px;
}

.if-admin-support-toolbar label {
  color: #61757f;
  font-size: 12px;
  font-weight: 800;
}

.if-admin-support-toolbar input {
  min-height: 40px;
}

body[data-page="admin"] .admin-support-layout {
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
  height: min(720px, calc(100dvh - 220px));
  min-height: 570px;
  gap: 0;
  overflow: hidden;
  border: 1px solid #cfdee2;
  border-radius: 8px;
  background: #ffffff;
}

.if-admin-dialogs {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid #d7e4e8;
  background: #f7fafb;
}

.if-admin-dialogs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border-bottom: 1px solid #dce7ea;
  background: #ffffff;
}

.if-admin-dialogs-head strong {
  color: #173747;
  font-size: 14px;
}

.if-admin-dialogs-head span {
  color: #89989f;
  font-size: 10px;
}

.if-admin-dialog-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

body[data-page="admin"] .if-admin-dialog-item {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e1e9ec;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="admin"] .if-admin-dialog-item.active {
  background: #e3f3f6;
  box-shadow: inset 3px 0 0 #0fa0bb;
}

body[data-page="admin"] .if-admin-dialog-item.has-unread:not(.active) {
  background: #eef8fa;
}

body[data-page="admin"] .if-admin-dialog-item .support-thread-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 14px 12px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  box-shadow: none;
}

.if-admin-dialog-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #ccebf0;
  color: #087f99;
  font-size: 14px;
  font-weight: 900;
}

.if-admin-dialog-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body[data-page="admin"] .if-admin-dialog-item .support-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

body[data-page="admin"] .if-admin-dialog-item .support-thread-top strong {
  min-width: 0;
  overflow: hidden;
  color: #173747;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="admin"] .if-admin-dialog-item .support-thread-email {
  min-width: 0;
  overflow: hidden;
  color: #71848c;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="admin"] .if-admin-dialog-item .support-thread-preview {
  grid-column: 1 / -1;
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: #5f737d;
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.if-admin-dialog-copy-row {
  display: flex;
  gap: 6px;
  padding: 0 12px 11px 60px;
}

.if-admin-dialog-copy-row button,
.if-admin-peer-actions button {
  min-width: 0;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #ccdde1;
  border-radius: 5px;
  background: #ffffff;
  color: #48636e;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.if-admin-dialog-copy-row button:hover,
.if-admin-peer-actions button:hover {
  border-color: #8fcbd5;
  color: #087f99;
}

body[data-page="admin"] .if-admin-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #edf3f5;
}

body[data-page="admin"] .if-admin-chat .support-chat-header {
  min-height: 66px;
  padding: 10px 14px;
  border-bottom: 1px solid #d7e4e8;
  background: #ffffff;
}

body[data-page="admin"] .support-dialog-peer {
  display: grid;
  grid-template-columns: 42px minmax(120px, 1fr) auto;
  align-items: center;
  gap: 11px;
}

body[data-page="admin"] .support-peer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0b96b0;
  color: #ffffff;
}

body[data-page="admin"] .support-peer-name {
  color: #173747;
  font-size: 14px;
  font-weight: 900;
}

body[data-page="admin"] .support-peer-details {
  color: #7b8c94;
  font-size: 11px;
}

.if-admin-peer-actions {
  display: flex;
  align-items: stretch;
  gap: 7px;
}

.if-admin-peer-actions button {
  display: grid;
  gap: 2px;
  max-width: 220px;
  padding: 6px 9px;
  text-align: left;
}

.if-admin-peer-actions button span {
  color: #82939a;
  font-size: 9px;
}

.if-admin-peer-actions button strong {
  min-width: 0;
  overflow: hidden;
  color: #284b5b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="admin"] .if-admin-chat .support-chat-messages {
  display: flex;
  min-height: 0;
  max-height: none;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: #edf3f5;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

body[data-page="admin"] .if-admin-chat .support-message-bubble {
  max-width: min(76%, 600px);
  gap: 5px;
  padding: 9px 11px 7px;
  border: 1px solid #d8e3e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(42, 77, 90, 0.05);
}

body[data-page="admin"] .if-admin-chat .support-message.from-user .support-message-bubble {
  border-bottom-left-radius: 2px;
  background: #ffffff;
}

body[data-page="admin"] .if-admin-chat .support-message.from-admin .support-message-bubble {
  border-color: #b9e2d5;
  border-bottom-right-radius: 2px;
  background: #dff3ec;
}

body[data-page="admin"] .if-admin-chat .support-message-label {
  color: #68808a;
  font-size: 10px;
  font-weight: 850;
}

body[data-page="admin"] .if-admin-chat .support-message-text {
  color: #203f4d;
  font-size: 14px;
  line-height: 1.48;
}

body[data-page="admin"] .if-admin-chat .support-message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.if-admin-copy-message {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #178da5;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.if-admin-copy-message.is-copied {
  color: #168355;
}

body[data-page="admin"] .if-admin-chat .support-message-time {
  color: #82949b;
  font-size: 10px;
}

.if-admin-chat-status {
  padding: 8px 14px;
  border-top: 1px solid #d7e4e8;
  background: #f7fafb;
  color: #5b717b;
  font-size: 11px;
}

.if-admin-chat-status.is-error {
  background: #fff0f0;
  color: #a83a3a;
}

.if-admin-chat-status.is-success {
  background: #edf8f3;
  color: #247452;
}

body[data-page="admin"] .if-admin-chat .support-compose-form {
  padding: 10px;
  border-top: 1px solid #d7e4e8;
  background: #ffffff;
}

body[data-page="admin"] .if-admin-chat .messenger-compose-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

body[data-page="admin"] .if-admin-chat .compose-icon-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #ccdde1;
  border-radius: 6px;
  background: #f4f8f9;
  color: #47707f;
  font-size: 24px;
  font-weight: 400;
}

body[data-page="admin"] .if-admin-chat textarea {
  min-height: 40px;
  max-height: 140px;
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.45;
  resize: none;
}

body[data-page="admin"] .if-admin-chat .send-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 112px;
  height: 40px;
  padding: 0 13px;
}

body[data-page="admin"] .if-admin-chat .send-btn b {
  font-size: 17px;
}

body[data-page="admin"] .if-admin-chat .send-btn:disabled {
  opacity: 0.48;
  cursor: default;
}

body[data-page="admin"] .if-admin-chat .message-inline-preview {
  position: relative;
  margin: 0 0 8px 48px;
  padding: 8px 38px 8px 9px;
  border: 1px solid #d5e2e6;
  border-radius: 6px;
  background: #f5f9fa;
}

.if-admin-attachment-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #e5eef1;
  color: #4f6974;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .if-admin-shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
  }

  body[data-page="admin"] .admin-support-layout {
    grid-template-columns: 285px minmax(0, 1fr);
  }

  .if-admin-peer-actions button {
    max-width: 155px;
  }
}

@media (max-width: 860px) {
  .if-admin-body {
    padding-top: 16px;
  }

  .if-admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .if-admin-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 8px;
  }

  .if-admin-sidebar-title,
  body[data-page="admin"] .admin-quick-counters {
    display: none;
  }

  body[data-page="admin"] .admin-side-nav {
    display: flex;
    width: max-content;
    min-width: 100%;
    padding: 7px;
  }

  body[data-page="admin"] .admin-side-link {
    min-width: max-content;
    min-height: 38px;
    padding: 8px 10px;
  }

  body[data-page="admin"] .admin-side-link.active {
    box-shadow: inset 0 -3px 0 #10a5bf;
  }

  body[data-page="admin"] .admin-support-layout {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
  }

  .if-admin-dialogs {
    max-height: 245px;
    border-right: 0;
    border-bottom: 1px solid #d7e4e8;
  }

  body[data-page="admin"] .if-admin-chat {
    min-height: 590px;
    height: 68dvh;
  }
}

@media (max-width: 620px) {
  .if-admin-body,
  .if-admin-shell,
  .if-admin-workspace,
  .if-admin-support-toolbar,
  .if-admin-dialogs,
  body[data-page="admin"] .if-admin-chat {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-page="admin"] .admin-side-nav {
    max-width: none;
  }

  body[data-page="admin"] .page-shell {
    padding-bottom: 0;
  }

  .if-admin-head-inner {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .if-admin-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .if-admin-page-head h1 {
    font-size: 27px;
  }

  .if-admin-system-state {
    justify-items: start;
  }

  .if-admin-system-state small {
    display: none;
  }

  .if-admin-workspace > .panel-card,
  .if-admin-workspace > .stack-list > .panel-card,
  .if-admin-workspace > .admin-users-summary-grid + .panel-card {
    padding: 20px 16px;
  }

  body[data-page="admin"] .card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .if-admin-section-head {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .if-admin-section-head h2 {
    font-size: 24px;
  }

  .if-admin-section-count span {
    display: none;
  }

  .if-admin-section-count {
    display: none;
  }

  .if-admin-support-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .if-admin-support-toolbar input {
    width: 100%;
  }

  body[data-page="admin"] .admin-support-layout {
    margin-right: -1px;
    margin-left: -1px;
    border-radius: 7px;
  }

  body[data-page="admin"] .if-admin-chat {
    min-height: 540px;
    height: 70dvh;
  }

  body[data-page="admin"] .support-dialog-peer {
    grid-template-columns: 38px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  .if-admin-peer-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .if-admin-peer-actions button {
    width: 100%;
    max-width: none;
  }

  body[data-page="admin"] .if-admin-chat .support-chat-header {
    min-height: 108px;
  }

  body[data-page="admin"] .if-admin-chat .support-chat-messages {
    padding: 13px 10px;
  }

  body[data-page="admin"] .if-admin-chat .support-message-bubble {
    max-width: 88%;
  }

  body[data-page="admin"] .if-admin-chat .messenger-compose-row {
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    gap: 6px;
  }

  body[data-page="admin"] .if-admin-chat .compose-icon-btn {
    width: 38px;
    min-width: 38px;
  }

  body[data-page="admin"] .if-admin-chat .send-btn {
    width: 42px;
    min-width: 42px;
    padding: 0;
    justify-content: center;
  }

  body[data-page="admin"] .if-admin-chat .send-btn span {
    display: none;
  }

  body[data-page="admin"] .if-admin-chat .message-inline-preview {
    margin-left: 44px;
  }

  body[data-page="admin"] .button-row {
    align-items: stretch;
  }

  body[data-page="admin"] .button-row > button,
  body[data-page="admin"] .button-row > a {
    width: 100%;
  }
}

/* Inbox and payment result workspace v56 */
body[data-page="inbox"] {
  background: #f1f6f8;
  color: #173747;
}

body[data-page="inbox"] .page-shell {
  padding-top: 0;
  padding-bottom: 52px;
}

.if-inbox-page {
  min-width: 0;
}

.if-inbox-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 24px;
}

.if-inbox-kicker {
  display: block;
  margin-bottom: 7px;
  color: #0785a1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.if-inbox-head h1 {
  margin: 0;
  color: #113344;
  font-size: 38px;
  line-height: 1.15;
}

.if-inbox-head p {
  margin: 8px 0 0;
  color: #69808a;
  font-size: 15px;
  line-height: 1.55;
}

.if-inbox-support-head {
  flex: 0 0 auto;
}

.if-inbox-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 18px;
}

.if-inbox-feed,
.if-inbox-help,
.if-inbox-note,
.if-inbox-guest {
  min-width: 0;
  border: 1px solid #d7e5e9;
  border-radius: 8px;
  background: #ffffff;
}

.if-inbox-feed {
  overflow: hidden;
}

.if-inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 16px 20px;
  border-bottom: 1px solid #deeaed;
}

.if-inbox-toolbar h2,
.if-inbox-help h2,
.if-inbox-guest h2 {
  margin: 0;
  color: #163747;
  font-size: 20px;
  line-height: 1.25;
}

.if-inbox-toolbar p {
  margin: 4px 0 0;
  color: #7b8f98;
  font-size: 12px;
}

.if-inbox-toolbar p strong {
  color: #0785a1;
}

.if-inbox-refresh-btn {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #c8dce2;
  border-radius: 6px;
  background: #ffffff;
  color: #315664;
  font-size: 12px;
  font-weight: 850;
}

.if-inbox-refresh-btn:hover {
  border-color: #8fcbd5;
  color: #087f99;
}

.if-inbox-refresh-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.if-inbox-list {
  min-height: 240px;
}

.if-inbox-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid #e3ecef;
  background: #ffffff;
}

.if-inbox-item:last-child {
  border-bottom: 0;
}

.if-inbox-item.is-unread {
  background: #f1fafb;
  box-shadow: inset 3px 0 0 #0c9bb5;
}

.if-inbox-item-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #e5f4f7;
  color: #087f99;
  font-size: 15px;
  font-weight: 900;
}

.if-inbox-item.is-success .if-inbox-item-mark {
  background: #e2f4ec;
  color: #237452;
}

.if-inbox-item.is-warning .if-inbox-item-mark {
  background: #fff3d8;
  color: #896315;
}

.if-inbox-item.is-error .if-inbox-item-mark {
  background: #feeaea;
  color: #a83b3b;
}

.if-inbox-item-body {
  min-width: 0;
}

.if-inbox-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.if-inbox-kind {
  color: #66808a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.if-inbox-item-top time {
  color: #8a9ba2;
  font-size: 10px;
  white-space: nowrap;
}

.if-inbox-item h3 {
  margin: 0 0 5px;
  color: #183847;
  font-size: 16px;
  line-height: 1.35;
}

.if-inbox-item p {
  margin: 0;
  color: #607781;
  font-size: 13px;
  line-height: 1.55;
}

.if-inbox-item-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: #087f99;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.if-inbox-item-action span {
  font-size: 18px;
  line-height: 1;
}

.if-inbox-aside {
  display: grid;
  gap: 12px;
}

.if-inbox-help {
  padding: 20px;
}

.if-inbox-help-mark,
.if-inbox-empty-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 7px;
  background: #0a96b0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.if-inbox-help p {
  margin: 8px 0 16px;
  color: #687f89;
  font-size: 13px;
  line-height: 1.55;
}

.if-inbox-help .wide + .wide {
  margin-top: 8px;
}

.if-inbox-note {
  padding: 15px 17px;
  border-color: #ead9aa;
  background: #fff9ea;
}

.if-inbox-note strong {
  color: #795c18;
  font-size: 12px;
}

.if-inbox-note p {
  margin: 4px 0 0;
  color: #806b3b;
  font-size: 12px;
  line-height: 1.5;
}

.if-inbox-empty,
.if-inbox-guest {
  display: grid;
  justify-items: start;
  padding: 38px 28px;
}

.if-inbox-empty {
  min-height: 270px;
  align-content: center;
}

.if-inbox-empty h3 {
  margin: 0 0 7px;
  color: #173747;
  font-size: 20px;
}

.if-inbox-empty p,
.if-inbox-guest p {
  max-width: 560px;
  margin: 0;
  color: #6d828b;
  font-size: 14px;
}

.if-inbox-guest {
  max-width: 680px;
  margin: 20px auto 0;
}

.if-inbox-guest .button-row {
  margin-top: 20px;
}

.if-inbox-loading {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.if-inbox-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a96b0;
  animation: if-inbox-loading 900ms ease-in-out infinite alternate;
}

.if-inbox-loading span:nth-child(2) {
  animation-delay: 180ms;
}

.if-inbox-loading span:nth-child(3) {
  animation-delay: 360ms;
}

@keyframes if-inbox-loading {
  to { opacity: 0.25; transform: translateY(-3px); }
}

body[data-page="payment"] .payment-page-shell.has-result-state {
  width: min(920px, calc(100% - 32px));
  min-height: calc(100dvh - 160px);
  display: grid;
  align-items: center;
}

body[data-page="payment"] .payment-result-card {
  isolation: auto;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  width: 100%;
  margin: 0;
  padding: 40px;
  overflow: visible;
  border: 1px solid #d4e4e8;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(31, 78, 96, 0.09);
}

.payment-result-status {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: #e4f4ee;
}

body[data-page="payment"] .payment-result-mark {
  position: static;
  z-index: auto;
  color: #237452;
  font-size: 44px;
  line-height: 1;
  opacity: 1;
}

body[data-page="payment"] .payment-result-card.is-failed .payment-result-status {
  background: #fdeaea;
}

body[data-page="payment"] .payment-result-card.is-failed .payment-result-mark {
  color: #aa3f3f;
}

body[data-page="payment"] .payment-result-card.is-pending .payment-result-status {
  background: #e7f5f8;
}

.payment-result-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #b8dfe6;
  border-top-color: #0a96b0;
  border-radius: 50%;
  animation: if-payment-spin 800ms linear infinite;
}

@keyframes if-payment-spin {
  to { transform: rotate(360deg); }
}

body[data-page="payment"] .payment-result-content {
  max-width: 680px;
  min-width: 0;
}

.payment-result-eyebrow {
  margin-bottom: 8px;
  color: #0785a1;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-page="payment"] .payment-result-content h1 {
  margin: 0 0 12px;
  color: #133445;
  font-size: 36px;
  line-height: 1.18;
}

body[data-page="payment"] .payment-result-content > p {
  max-width: 620px;
  color: #607781;
  font-size: 15px;
  line-height: 1.6;
}

.payment-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.payment-result-meta span {
  min-height: 29px;
  padding: 6px 9px;
  border: 1px solid #dce8eb;
  border-radius: 5px;
  background: #f5f9fa;
  color: #59727d;
  font-size: 11px;
  font-weight: 750;
}

body[data-page="payment"] .payment-result-actions {
  margin-top: 22px;
}

body[data-page="payment"] .payment-result-actions .primary-btn {
  background: #0a96b0;
  box-shadow: none;
}

.payment-result-auto-hint {
  margin-top: 13px !important;
  color: #81939a !important;
  font-size: 11px !important;
}

@media (max-width: 860px) {
  .if-inbox-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .if-inbox-aside {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .if-inbox-head {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .if-inbox-head h1 {
    font-size: 30px;
  }

  .if-inbox-support-head {
    display: none;
  }

  .if-inbox-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .if-inbox-toolbar {
    min-height: 70px;
    padding: 13px 14px;
  }

  .if-inbox-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 15px 13px;
  }

  .if-inbox-item-mark {
    width: 32px;
    height: 32px;
  }

  .if-inbox-item-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .if-inbox-item-top time {
    white-space: normal;
  }

  .if-inbox-empty,
  .if-inbox-guest {
    padding: 30px 20px;
  }

  body[data-page="payment"] .payment-page-shell.has-result-state {
    width: min(100%, calc(100% - 20px));
    min-height: calc(100dvh - 110px);
  }

  body[data-page="payment"] .payment-result-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 26px 20px;
  }

  .payment-result-status {
    width: 68px;
    height: 68px;
  }

  body[data-page="payment"] .payment-result-mark {
    font-size: 36px;
  }

  .payment-result-spinner {
    width: 30px;
    height: 30px;
  }

  body[data-page="payment"] .payment-result-content h1 {
    font-size: 28px;
  }

  body[data-page="payment"] .payment-result-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="payment"] .payment-result-actions > * {
    width: 100%;
  }
}

@media (max-width: 520px) {
  body[data-page="payment"] .payment-method-row.is-autopay {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    min-height: 94px;
  }

  body[data-page="payment"] .payment-method-row.is-autopay .payment-method-left {
    width: 100%;
  }

  body[data-page="payment"] .payment-method-row.is-autopay .payment-method-right {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 2px 0 76px;
    border-top: 1px solid rgba(14, 155, 164, 0.16);
  }
}

/* News views and safe inline links */
.if-news-views,
.news-card-views {
  color: #607985;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.news-inline-link {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-inline-link:hover,
.news-inline-link:focus-visible {
  color: #0a91ad;
}

.news-content-flow .news-inline-link {
  color: var(--accent);
  font-weight: 700;
}

body[data-theme="dark"] .if-news-views,
body[data-theme="dark"] .news-card-views {
  color: #9db2c0;
}

@media (max-width: 520px) {
  .if-news-meta {
    gap: 7px 10px;
  }
}
