:root {
  --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);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background:
    radial-gradient(circle at top left, rgba(88, 182, 255, 0.18), transparent 25%),
    radial-gradient(circle at top right, rgba(42, 114, 255, 0.18), transparent 24%),
    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-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: -1.8px; line-height: 1.02; }
h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); }
h3 { margin: 0 0 12px; font-size: 28px; }
h4 { margin: 0 0 8px; font-size: 20px; }
p { margin: 0; line-height: 1.7; color: var(--muted); }

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

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

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

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


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

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

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

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


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

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

@media (max-width: 1100px) {
  .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);
}

.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; min-height:40px; padding:8px 14px; border-radius:999px; background:rgba(88,182,255,0.12); border:1px solid rgba(88,182,255,0.22); color:#d9efff; }
.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: -1px; }
  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; }
}
