/* MONKEY VPN — shop tokens (blue accent) */
:root {
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --surface2: #2c2c2e;
  --surface-3: #3a3a3c;
  --surface3: #3a3a3c;
  --elev: #2c2c2e;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.06);
  --border-mid: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text2: #ebebf5;
  --muted: #8e8e93;
  --dim: #8e8e93;
  --accent: #2aabee;
  --accent-dim: rgba(42, 171, 238, 0.22);
  --accent-border: rgba(42, 171, 238, 0.55);
  --accent-press: #1e96d5;
  --on-accent: #ffffff;
  --blue: var(--accent);
  --blue-dim: var(--accent-dim);
  --green: #30d158;
  --yellow: #f5c518;
  --orange: #ff9f0a;
  --red: #ff453a;
  --danger: #ff453a;
  --white-btn: var(--accent);
  --dock-bg: #1c1c1e;
  --dock-pill: #2c2c2e;
  --dock-muted: #8e8e93;
  --dock-active-fg: var(--accent);
  --dock-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius: 22px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  --dock-h: 78px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 0.18s;
  --dur-med: 0.28s;
}

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

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

body { background: var(--bg); }

.hidden { display: none !important; }

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

/* Gate */
.gate {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: transparent;
  color: var(--text);
}

.gate-inner { width: 100%; max-width: 340px; text-align: center; }
.gate-inner--wide { max-width: 380px; }
.gate-icon { display: flex; justify-content: center; margin-bottom: 28px; }

.gate-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin: 0 0 22px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
}
.gate-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.gate-tab--active {
  background: rgba(194, 227, 5, 0.16);
  color: var(--accent);
}
.auth-pane { text-align: left; }
.auth-pane .field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.auth-pane .input { margin-bottom: 12px; }
.auth-pane .gate-cta { margin-top: 4px; }
.gate-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 8px 0 12px;
  line-height: 1.4;
}
#auth-email-error {
  margin-top: 12px;
  text-align: center;
}

.gate-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}

.gate-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 36px;
  padding: 0 4px;
}

.gate-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.gate-cta:active { opacity: 0.88; transform: scale(0.98); }

.gate-cta--outline {
  background: transparent;
  border: 1px solid rgba(194, 227, 5, 0.45);
  color: var(--accent);
  margin-top: 12px;
}

.gate-widget {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
  min-height: 44px;
}

.gate-demo {
  margin-top: 22px;
  border: none;
  background: none;
  color: var(--dim);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px;
}

.gate-demo:active { color: var(--accent); }

/* Loader */
.loader { min-height: 100dvh; display: grid; place-items: center; background: var(--bg); }
.spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--surface-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

/* Layout */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
}

.content {
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 16px calc(var(--dock-h) + env(safe-area-inset-bottom, 0) + 20px);
  -webkit-overflow-scrolling: touch;
}

.screen { display: none; }
.screen--active { display: block; animation: fadeUp 0.3s var(--ease); }
.safe-bottom { height: 4px; }

/* Page heading */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 18px;
  min-height: 44px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.page-title--sm {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.page-back {
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 0;
}

.page-back svg {
  width: 20px;
  height: 20px;
  display: block;
  /* шеврон визуально смещён влево — чуть сдвигаем к центру */
  transform: translateX(-1px);
}

.page-head:has(.page-back) {
  justify-content: flex-start;
  gap: 12px;
}

.page-head:has(.rate-pill) {
  align-items: center;
  min-height: 40px;
}

.rate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px 0 12px;
  margin: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.15s;
}

.rate-pill:active {
  transform: scale(0.96);
  background: var(--elev);
}

.rate-pill-star {
  color: var(--yellow);
  font-size: 0.95rem;
  line-height: 1;
}

#screen-rate .page-head {
  margin-bottom: 12px;
  min-height: 40px;
}

.rate-card {
  text-align: center;
  padding: 20px 18px 18px;
}

.rate-card .ref-title {
  margin-bottom: 16px;
  text-align: center;
  font-size: 1.0625rem;
}

.rate-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
}

.rate-star {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s, transform 0.14s var(--ease-spring);
}

.rate-star svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.rate-star:active { transform: scale(0.88); }
.rate-star.is-on { color: var(--yellow); }
.rate-stars.is-busy { pointer-events: none; opacity: 0.7; }

.rate-label {
  min-height: 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dim);
}
.rate-label.is-set { color: var(--text); }

.btn-primary--block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-card .btn-primary--block { margin-top: 4px; }
.ref-card .btn-ghost--full {
  margin-top: 10px;
  text-decoration: none;
  color: var(--text);
}

.ref-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.ref-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.ref-stat {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  min-width: 0;
}

.ref-stat-l {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.ref-stat-n {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ref-link-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

.ref-link-btn:active {
  transform: scale(0.99);
  background: var(--surface-3);
}

.ref-link-text {
  width: 100%;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
  line-height: 1.35;
}

.ref-link-hint {
  font-size: 0.6875rem;
  color: var(--dim);
}

.ref-rules {
  margin: 0 0 18px;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.ref-rules li { margin-bottom: 8px; }
.ref-rules li:last-child { margin-bottom: 0; }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin: 12px 0 0;
  padding: 16px 18px;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  transition: transform 0.13s var(--ease), background 0.2s;
}

.nav-row:active {
  transform: scale(0.985);
  background: var(--elev);
}

.nav-row .chev {
  width: 18px;
  height: 18px;
  color: var(--dim);
  flex-shrink: 0;
}

.nav-row + .nav-row {
  margin-top: 10px;
}

.page-sub {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.25;
}

.page-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  align-self: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-avatar.avatar--photo,
.header-avatar.avatar--photo {
  color: transparent;
  font-size: 0;
  background-color: var(--surface2);
}

/* Section header */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.sec-title .chev-sm { width: 18px; height: 18px; color: var(--dim); }
.sec-count { font-size: 0.9rem; font-weight: 600; color: var(--dim); }
.sec-meta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dim);
}
.sec-action { font-size: 0.875rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 4px; }

/* Stat tiles */
.stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.stat-tile {
  position: relative;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.stat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), transparent 55%);
  pointer-events: none;
}

.stat-label { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.stat-value {
  display: block;
  margin-top: 8px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-unit { font-size: 0.8125rem; color: var(--dim); font-weight: 600; margin-left: 4px; }
.stat-tile--accent {
  background: linear-gradient(145deg, rgba(194, 227, 5, 0.28), var(--surface));
  border: 1px solid var(--accent-border);
}
.stat-tile--accent::before { display: none; }
.stat-tile--accent .stat-label { color: var(--muted); }
.stat-tile--accent .stat-value { color: var(--accent); }
.stat-tile--accent .stat-unit { color: var(--muted); }

/* Accent CTA */
.cta-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  margin-top: 14px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.12s var(--ease-spring), background var(--dur-fast);
}

.cta-big svg { width: 20px; height: 20px; }
.cta-big:active { transform: scale(0.985); background: var(--accent-press); }

/* Search */
.search-wrap { position: relative; margin-bottom: 12px; }

.search-ico {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--dim);
  pointer-events: none;
}

.search {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 44px;
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.search::placeholder { color: var(--dim); }
.search:focus { outline: none; box-shadow: 0 0 0 2px var(--accent-dim); }

.search-clear {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border: none; border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1rem; line-height: 1;
  cursor: pointer;
}

/* Pills */
.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.pills::-webkit-scrollbar { display: none; }

.pill {
  flex-shrink: 0;
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s;
}

.pill:active { transform: scale(0.96); }
.pill--on { background: var(--accent); color: var(--on-accent); }

/* Up next — horizontal cards */
.upnext {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  margin: 0 -2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.upnext::-webkit-scrollbar { display: none; }

.upnext-card {
  position: relative;
  flex-shrink: 0;
  width: 168px;
  min-height: 132px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  border: none;
  cursor: pointer;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform 0.14s var(--ease), background 0.2s;
}

.upnext-card:active { transform: scale(0.97); background: var(--elev); }

.upnext-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: auto;
}

.upnext-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.upnext-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  padding: 4px 8px;
  border-radius: 7px;
  white-space: nowrap;
}

.upnext-tag--pro { color: var(--accent); background: var(--accent-dim); }

.upnext-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.upnext-price { font-size: 0.875rem; color: var(--muted); margin-top: 3px; }

/* Region rows — flush list */
.reg-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.reg-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast), transform 0.12s var(--ease-spring);
}

.reg-card + .reg-card { border-top: 1px solid var(--border); }

.reg-card:active { transform: scale(0.985); background: var(--surface2); }

.reg-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.reg-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reg-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; }
.reg-sub { font-size: 14px; color: var(--muted); }

.reg-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.reg-price { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.reg-cycle { font-size: 12px; color: var(--muted); }

.list-pro {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.reg-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
  background: var(--surface);
  border-radius: var(--radius);
}

/* Review card */
.review-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  margin-top: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.13s var(--ease);
}

.review-card:active { transform: scale(0.985); }

.review-ico-box {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(255, 214, 10, 0.16);
  color: var(--yellow);
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-body { flex: 1; min-width: 0; }
.review-body strong { font-size: 0.9375rem; font-weight: 600; }
.review-score { text-align: right; margin-right: 2px; }
.review-score b { display: block; font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.review-score small { display: block; font-size: 0.6875rem; color: var(--muted); margin-top: 1px; }

.chev { width: 16px; height: 16px; color: var(--dim); flex-shrink: 0; }

/* Trial */
.trial-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  font-size: 0.8125rem;
  color: var(--text2);
}

.trial-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.trial-banner strong { color: var(--accent); font-weight: 700; }
.trial-banner--error {
  background: rgba(255, 77, 109, 0.12);
  border-color: rgba(255, 77, 109, 0.45);
}
.trial-banner--error .trial-dot { background: #ff4d6d; }
.trial-banner--error strong { color: #ff8aa0; }

/* Help / generic list card (joined) */
.list-card { display: flex; flex-direction: column; gap: 10px; }

.list-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.13s var(--ease), background 0.2s;
}

.list-row:active { transform: scale(0.985); background: var(--elev); }

.list-ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.list-ico--num { font-size: 0.875rem; font-weight: 700; color: var(--accent); background: var(--accent-dim); }
.list-ico--chat, .list-ico--news { font-size: 0; background: var(--surface-2); }
.list-ico--chat svg, .list-ico--news svg { width: 19px; height: 19px; color: var(--accent); }

.list-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-name { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.02em; }
.list-sub { font-size: 0.8125rem; color: var(--muted); }

/* Profile */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--radius-xl);
}

.header-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.profile-meta { font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.metric {
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  min-width: 0;
}
.metric-n {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-l { font-size: 0.75rem; color: var(--dim); margin-top: 4px; }

/* Keys */
.key {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.key-row1 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.key-flag {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  width: 1.5em;
  text-align: center;
}

.key-info { flex: 1; min-width: 0; }
.key-info strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.key-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.35;
}

.tag {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.tag--ok { background: rgba(48, 209, 88, 0.16); color: var(--green); }
.tag--warn { background: rgba(255, 159, 10, 0.16); color: var(--orange); }
.tag--bad { background: rgba(255, 69, 58, 0.16); color: var(--red); }
.tag--muted { background: var(--surface-2); color: var(--dim); }

.key-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.key-cell {
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.key-cell small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.key-cell b {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-break: break-word;
}

.key-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.15s;
}

.key-copy:active {
  transform: scale(0.98);
  background: var(--surface-3);
}

.key-copy--accent {
  background: var(--accent);
  color: var(--on-accent);
}

.key-copy--accent:active {
  background: var(--accent-press);
}

.key-devices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s var(--ease), background 0.15s;
}

.key-devices:active {
  transform: scale(0.98);
  background: var(--surface-3);
}

.key-devices > span:first-child {
  font-size: inherit;
  font-weight: inherit;
}

.key-devices-hint {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.key-devices-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.key-devices-label small {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dim);
}

.key-devices-label b {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.key-devices-chev {
  width: 16px;
  height: 16px;
  color: var(--dim);
  flex-shrink: 0;
}

/* Экран устройств — та же карточка .key, что в кабинете */
.hwid-key {
  margin-bottom: 10px;
}

.hwid-key .key-grid {
  margin-top: 14px;
}

#hwid-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

#hwid-list.hidden { display: none !important; }

.hwid-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-sizing: border-box;
}

.hwid-row-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--text);
  display: grid;
  place-items: center;
}

.hwid-row-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

.hwid-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hwid-row-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hwid-row-text span {
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hwid-del {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.15s, opacity 0.15s;
}

.hwid-del:active {
  transform: scale(0.97);
  background: rgba(255, 69, 58, 0.18);
  color: var(--red);
}

.hwid-del:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.hwid-key .hwid-loading {
  margin-top: 12px;
  padding: 16px 14px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--dim);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.hwid-empty {
  margin: 12px 0 0;
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.hwid-empty.hidden { display: none !important; }

.list-row--static {
  cursor: default;
}

.list-row--static:active {
  transform: none;
  background: var(--surface);
}

.connect-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active {
  transform: scale(0.96);
  background: var(--surface-2);
  color: var(--text);
}

.promo-badge {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(42, 171, 238, 0.16);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}
.promo-badge.hidden { display: none; }


.connect-key .key-row1 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.connect-panel {
  margin-top: 14px;
  animation: fadeUp 0.22s var(--ease);
}

.connect-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.connect-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.15s, border-color 0.15s;
}
.connect-row:active {
  transform: scale(0.985);
}
.connect-row.on {
  background: rgba(42, 171, 238, 0.12);
  border-color: rgba(42, 171, 238, 0.42);
}

.connect-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.connect-row-main strong {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.connect-row-main span {
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.3;
}

.connect-row-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: transparent;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.connect-row-check svg {
  width: 12px;
  height: 12px;
  display: block;
}
.connect-row.on .connect-row-check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.connect-row-chev {
  width: 16px;
  height: 16px;
  color: var(--dim);
  flex-shrink: 0;
  opacity: 0.85;
}

.connect-hint {
  margin: 0 0 12px;
  padding: 0 2px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.connect-hint:empty { display: none; }

.connect-key .key-copy {
  margin-top: 12px;
  height: 46px;
  font-size: 0.9375rem;
}

.connect-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.connect-actions .key-copy {
  margin-top: 0;
  height: 44px;
  font-size: 0.875rem;
}

.connect-sep {
  height: 1px;
  margin: 16px 0 0;
  background: var(--line);
}

#btn-connect-done {
  margin-top: 12px;
}

.empty {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
}

.empty-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center; color: var(--dim);
}

.empty-icon svg { width: 28px; height: 28px; }
.empty h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.empty p { font-size: 0.875rem; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }

/* Form */
.form-block, .card-block { margin-bottom: 12px; }

.field-label, .form-block label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim);
  margin-bottom: 10px;
}

.card-block { padding: 18px 20px; background: var(--surface); border-radius: var(--radius-xl); }

.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-sm); }
.seg--wrap { flex-wrap: wrap; }

.seg button {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.seg button.on { background: var(--surface); color: var(--text); }

.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
}

.input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent-dim); }
.input--sm {
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  height: 46px;
  padding: 0 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.input-row .input { flex: 1; min-width: 0; }
.input-row .btn-ghost {
  height: auto;
  min-height: 46px;
  align-self: stretch;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sheet-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  animation: sheetUp 0.36s var(--ease);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.55);
}

.sheet-handle {
  width: 36px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  flex-shrink: 0;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px;
  flex-shrink: 0;
}

.sheet-head-text { flex: 1; min-width: 0; }
.sheet-flag {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 1.15em;
  text-align: center;
}
.sheet-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.sheet-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}

.sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}
.sheet-close:active { opacity: 0.75; }
.sheet-close svg { width: 14px; height: 14px; display: block; }

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 20px 8px;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.buy-seg {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--bg);
  border-radius: 14px;
}

.buy-seg-btn {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.buy-seg-btn.on {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.buy-plans {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 18px;
  overflow: hidden;
}

.buy-plan {
  display: grid;
  grid-template-columns: 1fr auto 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
}
.buy-plan + .buy-plan {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.buy-plan:active { background: rgba(255, 255, 255, 0.03); }
.buy-plan-l {
  font-size: 0.975rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.buy-plan-p {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.buy-plan-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--surface-3);
  display: grid;
  place-items: center;
  color: transparent;
  justify-self: end;
}
.buy-plan-check svg {
  width: 12px;
  height: 12px;
  display: block;
}
.buy-plan.on .buy-plan-p { color: var(--text); }
.buy-plan.on .buy-plan-check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.buy-email {
  height: 52px;
  width: 100%;
  margin: 8px 0 12px;
  background: var(--bg);
  border-radius: 18px;
  padding: 0 16px;
  font-size: 0.975rem;
}
.buy-email:focus {
  box-shadow: none;
  background: #111113;
}

.sheet-footer {
  flex-shrink: 0;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0));
}

.sheet-footer .btn-primary {
  height: 54px;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.btn-primary {
  height: 50px;
  padding: 0 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s var(--ease-spring), background var(--dur-fast);
}

.btn-primary:active { transform: scale(0.97); background: var(--accent-press); }

.btn-ghost {
  height: 50px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.btn-ghost--full {
  display: flex;
  width: 100%;
  margin-top: 10px;
  height: 50px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-align: center;
}
.err { color: var(--red); font-size: 0.8125rem; margin-top: 10px; text-align: center; }

/* Dock — floating bar + sliding pill */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0 16px calc(10px + var(--safe-b));
  pointer-events: none;
}

.dock-bar {
  position: relative;
  pointer-events: auto;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 5px;
  height: 64px;
  box-sizing: border-box;
  border-radius: 32px;
  background: var(--dock-bg);
  border: 0.5px solid var(--border-mid);
  box-shadow: var(--dock-shadow);
}

.dock-pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 26px;
  background: var(--dock-pill);
  box-shadow: inset 0 1px 0 var(--border);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    width 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    height 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.25s ease;
  will-change: transform, width;
}

.dock-pill.is-ready { opacity: 1; }

.dock-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 86px;
  height: 100%;
  margin: 0;
  padding: 0 14px;
  border: none;
  border-radius: 26px;
  background: transparent;
  color: var(--dock-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.28s var(--ease-out), transform 0.16s var(--ease-spring);
}

.dock-btn:active { transform: scale(0.94); }

.dock-icon-wrap {
  position: relative;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}

.dock-btn svg {
  width: 26px;
  height: 26px;
  display: block;
  transition: transform 0.28s var(--ease-spring);
}

.dock-btn--active {
  color: var(--dock-active-fg);
  background: transparent;
  font-weight: 600;
}

.dock-btn--active svg {
  color: var(--dock-active-fg);
}

.dock-btn.dock-bump .dock-icon-wrap svg {
  animation: dock-icon-pop 0.42s var(--ease-spring);
}

@keyframes dock-icon-pop {
  0% { transform: scale(0.82); }
  55% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.dock-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--dock-bg);
}

/* Sheet */
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); animation: fadeIn 0.25s var(--ease); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* —— Buy: Lite / Plus / Ultra —— */
.buy-step {
  animation: fadeUp 0.28s var(--ease-out);
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 18px 16px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  font-family: var(--font);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s var(--ease-spring), border-color 0.2s ease, background 0.2s ease;
}

.plan-card:active { transform: scale(0.985); }

.plan-card--plus {
  border-color: var(--accent-border);
  background: linear-gradient(165deg, rgba(42, 171, 238, 0.14) 0%, var(--surface) 55%);
}

.plan-card--ultra {
  border-color: rgba(255, 159, 10, 0.45);
  background: linear-gradient(165deg, rgba(255, 159, 10, 0.1) 0%, var(--surface) 55%);
}

.plan-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-rec {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 8px;
}

.plan-tag {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--muted);
}

.plan-price-col {
  text-align: right;
  flex-shrink: 0;
}

.plan-from {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}

.plan-feats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-feats li {
  position: relative;
  padding-left: 14px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text2);
}

.plan-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.plan-card--plus .plan-feats li::before { background: var(--accent); }
.plan-card--plusru {
  border-color: rgba(76, 175, 80, 0.45);
  background: linear-gradient(165deg, rgba(76, 175, 80, 0.12) 0%, var(--surface) 55%);
}
.plan-card--plusru .plan-feats li::before { background: #4caf50; }
.plan-card--ultra .plan-feats li::before { background: var(--orange); }

/* Checkout — одна сумма + цены в строках */
.pay-card .pay-sum {
  margin: 0 0 6px;
}

.pay-sum-caption {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.pay-sum-n {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pay-sum-l {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.pay-sum-save {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.35;
}

.pay-sum-save.hidden { display: none; }

.pay-card .field-label {
  margin-top: 18px;
}

.pay-card .connect-rows {
  margin-bottom: 0;
}

.pay-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  text-align: right;
}

.pay-row-price {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.pay-row-save {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--green);
}

.pay-card .pay-row-check-empty {
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
}

.pay-card .input {
  margin-bottom: 0;
}

.pay-card .err {
  margin: 10px 0 0;
}

.pay-card .btn-primary--block {
  margin-top: 18px;
}

.pay-card .btn-primary--block:disabled {
  opacity: 0.55;
  cursor: default;
}

#buy-step-config .page-head {
  margin-bottom: 12px;
  min-height: 40px;
}

.layout--nodock .content {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
}

.dock.hidden { display: none !important; }

.upsell-simple .ref-title {
  margin-bottom: 6px;
}

.upsell-extra {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

.upsell-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 18px;
}

.upsell-vs-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
  text-align: center;
  box-sizing: border-box;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.upsell-vs-card:active {
  transform: scale(0.98);
}

.upsell-vs-card--best {
  border-color: var(--accent);
  background: rgba(47, 129, 247, 0.1);
}

.upsell-vs-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.upsell-vs-price {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
}

.upsell-vs-card--best .upsell-vs-price {
  color: var(--text);
}

.upsell-vs-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
}

.upsell-simple .btn-primary--block {
  margin-bottom: 0;
}

.upsell-simple .upsell-skip {
  margin-top: 10px;
  background: var(--surface-2);
  color: var(--text);
}

.upsell-simple .upsell-skip:active {
  background: rgba(255, 255, 255, 0.1);
}

.wait-card .ref-title {
  margin-bottom: 10px;
}

.wait-lead {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.wait-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wait-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.wait-row strong {
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.wait-note {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.wait-card .btn-primary--block + .btn-primary--block {
  margin-top: 10px;
}

.wait-card .upsell-skip {
  background: var(--surface-2);
  color: var(--text);
}

.wait-card .upsell-skip:active {
  background: rgba(255, 255, 255, 0.1);
}

/* Home */
.home-status {
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.home-status.hidden { display: none; }

.home-status-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.home-status-flag {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.home-status-info {
  flex: 1;
  min-width: 0;
}

.home-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.home-status-name {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.home-status-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}

.home-status-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.home-status-link {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-status-link.hidden { display: none; }
.home-status-link:active { opacity: 0.7; }

.cabinet-actions .list-ico {
  font-size: 0;
  color: var(--muted);
}

.cabinet-actions .list-ico svg {
  width: 20px;
  height: 20px;
  display: block;
}

.home-tariffs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(42, 171, 238, 0.16) 0%, var(--surface) 60%);
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s var(--ease-spring);
}

.home-tariffs:active { transform: scale(0.985); }

.home-tariffs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.home-tariffs-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.home-tariffs-from {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
}

.home-tariffs-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.home-tariffs-sub {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}

.home-tariffs-go {
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.home-actions .list-row + .list-row {
  margin-top: 0;
}

.list-ico--accent {
  background: var(--accent-dim);
  color: var(--accent);
}

.list-ico--accent svg,
.home-actions .list-ico svg {
  width: 20px;
  height: 20px;
}

.home-actions .list-ico {
  font-size: 0;
  color: var(--muted);
}

.home-actions .list-ico svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
