:root {
  /* Forced dark cabinet palette — do not follow Telegram/system light theme. */
  --bg: #0c0c0d;
  --fg: #f4f4f5;
  --muted: #8a8a93;
  --card: #18181b;
  --accent: #006fff;
  --accent-fg: #fff;
  --ai-btn: #006fff;
  --ai-btn-fg: #fff;
  --font-text: "Atyp Text", sans-serif;
  --font-display: "Atyp Display", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* Верх безопасной зоны Telegram: статус-бар + панель управления Mini App
     в полноэкранном режиме. Значение выставляет app.js из safeAreaInset +
     contentSafeAreaInset; вне fullscreen остаётся 0. */
  --safe-t: env(safe-area-inset-top, 0px);
  --app-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius-card: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-text);
  font-weight: 300;
  background: var(--bg);
  color: var(--fg);
}
body:not(.site):not(.go-page) {
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(0, 111, 255, 0.12), transparent 55%),
    var(--bg);
}
h1, h2, h3, h4, h5, h6,
.section-title,
.card-title,
.subsection-title,
.pay-heading,
.club-card-amount,
.pay-earn-card .pay-earn-value,
.hero-title,
.wizard-kicker,
.setup-step-title,
.status-section-title,
.status-subsection-title,
.status-chart-block-title,
.site-h1,
.site-h2,
.site-wordmark,
.land-pricing-price {
  font-family: var(--font-display);
  font-weight: 500;
}
b, strong {
  font-weight: 500;
}
/* Mini App cabinet: lock the shell to the viewport so #view-ai .chat-scroll
   (not the page) owns the wheel/trackpad. Site/go pages stay free-scrolling. */
body:not(.site):not(.go-page) {
  overflow: hidden;
  height: 100%;
  max-height: 100dvh;
}
.app {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: 100dvh;
  /* Без нижнего padding: иначе появляется сплошная «плашка» под floating menu. */
  padding: calc(16px + var(--safe-t)) 16px 0;
}
body:not(.site):not(.go-page) .app {
  overflow: hidden;
}
body.site .app {
  height: auto;
  max-height: none;
  overflow: visible;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  /* Место под glass-меню внутри скролла — контент уходит под капсулу. */
  padding-bottom: calc(88px + var(--safe-b));
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.panel.hidden {
  display: none !important;
}
.panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.top-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  display: block;
  width: auto;
  height: 22px;
  max-width: min(52vw, 168px);
  object-fit: contain;
  object-position: left center;
}
.header-check-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 6px 11px;
  background: var(--ai-btn);
  color: var(--ai-btn-fg);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  animation: header-check-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ai-btn) 55%, transparent);
}
.header-check-btn:hover {
  filter: brightness(1.08);
}
.header-check-btn.on {
  animation: none;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--ai-btn) 45%, transparent),
    0 2px 10px color-mix(in srgb, var(--ai-btn) 32%, transparent);
}
@keyframes header-check-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ai-btn) 50%, transparent);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--ai-btn) 0%, transparent);
    transform: scale(1.03);
  }
}

.home-pay-cta {
  display: block;
  width: 100%;
  margin: 0;
  /* Keep the glow inside the column — no scale (that overflowed the screen). */
  overflow: hidden;
  border-radius: 14px;
  flex-shrink: 0;
}
.home-pay-cta.hidden,
.home-pay-cta[hidden] {
  display: none !important;
}
.home-connect-cta {
  display: block;
  width: 100%;
  margin: 0;
  flex-shrink: 0;
}
.home-connect-cta.hidden {
  display: none !important;
}
.home-connect-cta .btn {
  width: 100%;
}
.home-pay-cta .btn,
.btn.home-pay-pulse {
  width: 100%;
  background: var(--ai-btn);
  color: var(--ai-btn-fg);
  border: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ai-btn) 40%, transparent);
  animation: home-pay-pulse 2s ease-in-out infinite;
}
.home-pay-cta .btn:hover,
.btn.home-pay-pulse:hover {
  filter: brightness(1.06);
}
#home-no-sub-pay {
  overflow: hidden;
  border-radius: 14px;
}
#home-no-sub-pay .btn.home-pay-pulse {
  width: 100%;
}
@keyframes home-pay-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 color-mix(in srgb, #fff 0%, transparent);
    filter: brightness(1);
  }
  50% {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, #fff 28%, transparent);
    filter: brightness(1.08);
  }
}
.status {
  font-size: 12px;
  color: var(--muted);
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.text-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}
.text-btn:hover { color: var(--fg); }
.site-link {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.site-link:hover { color: var(--fg); }

.hidden { display: none; }

.thread {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.thread::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.bubble {
  max-width: 88%;
  min-width: 0;
  padding: 10px 14px 8px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bubble-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
  user-select: text;
  -webkit-user-select: text;
}
.bubble-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.bubble-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  position: static;
}
.bubble-link-actions .text-btn,
.bubble-link-actions .bubble-action {
  font-size: 13px;
  color: inherit;
  opacity: 0.9;
}
.bubble-action {
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.bubble-link-actions .bubble-action-pay {
  width: 100%;
  margin-top: 2px;
  opacity: 1;
}
.bubble-time {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  align-self: flex-end;
  opacity: 0.62;
}
.bubble.bot { background: var(--card); align-self: flex-start; }
.bubble.me { background: var(--accent); color: var(--accent-fg); align-self: flex-end; }
.bubble.me .bubble-time { opacity: 0.72; }
.bubble.wait {
  color: var(--muted);
  animation: chat-wait-pulse 1.15s ease-in-out infinite;
}
.bubble.typing .bubble-text::after {
  content: "▍";
  margin-left: 1px;
  font-weight: 400;
  opacity: 0.72;
  animation: chat-caret 0.9s step-end infinite;
}
@keyframes chat-wait-pulse {
  50% { opacity: 0.55; }
}
@keyframes chat-caret {
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble.wait,
  .bubble.typing .bubble-text::after { animation: none; }
}
.chat-day {
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
  margin: 2px 0;
}

.composer {
  display: flex;
  gap: 8px;
}
.composer input {
  flex: 1;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--card);
  color: var(--fg);
  font-size: 16px;
  outline: none;
}
.composer button {
  width: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 18px;
}

.lead { color: var(--muted); font-size: 15px; line-height: 1.45; }
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
}
body:not(.site):not(.go-page) .card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.2);
}
.label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
code {
  display: block;
  font-size: 12px;
  word-break: break-all;
  line-height: 1.4;
  margin-bottom: 12px;
}
#home-sub-url,
#home-backup-sub-url {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--fg);
  flex: 1 1 auto;
  min-width: 0;
}
.sub-link-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}
.sub-copy-btn {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}
.sub-copy-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.sub-copy-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.sub-copy-btn .sub-copy-icon,
.sub-copy-btn .sub-copy-check {
  width: 18px;
  height: 18px;
  display: block;
}
.sub-copy-btn .sub-copy-check { display: none; }
.sub-copy-btn.copied {
  color: #34c759;
}
.sub-copy-btn.copied .sub-copy-icon { display: none; }
.sub-copy-btn.copied .sub-copy-check { display: block; }
.devices { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  background: var(--accent);
  color: var(--accent-fg);
}
body:not(.site):not(.go-page) .btn:not(:disabled) {
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
body:not(.site):not(.go-page) .btn:not(:disabled):active {
  opacity: 0.92;
}
a.btn {
  display: block;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
  line-height: 1.2;
}
.btn.danger { background: #2a2220; color: #f0d9d4; }
#reset-btn { margin-top: 12px; }
.btn.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--fg);
}
.btn.tiny {
  width: auto;
  max-width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 10px;
  opacity: 0.85;
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.autorenew-foot {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.autorenew-foot.hidden {
  display: none !important;
}
.autorenew-foot .text-btn {
  align-self: flex-start;
  margin: 0;
}
.autorenew-foot .hint {
  margin: 0;
  opacity: 0.75;
  font-size: 12px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.btn-row .btn { width: auto; flex: 1; min-width: 118px; }

.home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.home-no-sub {
  margin-top: 2px;
}
.home-free-day-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.home-free-day-actions .btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
}
#home-free-day-note.bad {
  color: #e07070;
}
#home-stats.hidden,
#home-no-sub.hidden {
  display: none;
}
.section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg);
}
.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--fg);
}
.subsection-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
#view-sub {
  --home-gap: 20px;
  --home-gap-tight: 12px;
  gap: var(--home-gap);
}
#view-sub > .pay-heading {
  margin: 0;
}
#view-sub > .club-card,
#view-sub > .club-card-more,
#view-sub > .home-pay-cta,
#view-sub > .home-connect-cta,
#view-sub > .wheel-home,
#view-sub > .card,
#view-sub > .home-reset-action,
#view-sub > .autorenew-foot {
  margin-top: 0;
}
#view-sub .card > .card-title,
#view-sub .card > .label:first-child {
  margin-bottom: var(--home-gap-tight);
}
#view-sub .card > .home-head + .loyalty-line {
  margin-top: var(--home-gap-tight);
}
#view-sub .home-head .card-title {
  font-size: 20px;
}
.home-remaining {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.3;
}
.home-remaining-prefix {
  color: color-mix(in srgb, var(--fg) 62%, transparent);
  font-weight: 500;
}
.home-remaining-value {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.home-remaining.is-active .home-remaining-value {
  color: #b8e0c8;
  background: color-mix(in srgb, #34c759 22%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #34c759 30%, transparent);
}
.home-remaining.is-expired .home-remaining-value {
  color: #f0b0b0;
  background: color-mix(in srgb, #e07070 16%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e07070 28%, transparent);
}
.home-remaining.is-inactive .home-remaining-value {
  padding: 0;
  color: var(--muted);
  background: none;
  box-shadow: none;
  font-weight: 500;
}
.home-remaining.is-trial-pending {
  display: block;
  margin-top: 8px;
}
.home-remaining.is-trial-pending .home-remaining-prefix {
  display: none;
}
.home-remaining.is-trial-pending .home-remaining-value {
  display: inline-block;
  padding: 5px 11px;
  color: #f0b0b0;
  background: color-mix(in srgb, #e07070 18%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e07070 32%, transparent);
  font-weight: 600;
}
.home-grace-note {
  margin: 10px 0 0;
  max-width: 28rem;
  font-size: 12px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--fg) 68%, transparent);
  font-weight: 500;
}
.home-grace-note:not(.hidden) {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}
#view-sub .home-head .card-title + .home-remaining {
  margin-top: 6px;
}
#view-sub .home-head .card-title + .hint.tight {
  margin-top: 4px;
}
#view-sub .home-reset-action > .hint.tight {
  margin-top: 8px;
}
#view-sub .autorenew-foot > .hint.tight:first-child {
  margin-top: 0;
}
.hint.tight { margin-top: 4px; }
.pill {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.pill.ok { background: #1d3a2a; color: #b8e0c8; }
.pill.expired { background: #3a1d1d; color: #f0b0b0; }
.pill.off { background: #2a2220; color: #f0d9d4; }
.loyalty-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.loyalty-line > .label,
.loyalty-line > .hint.tight {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  padding-top: 2px;
}
.loyalty-line > .stat-value {
  flex: 0 0 auto;
  text-align: right;
  line-height: 1.35;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.loyalty-line > .home-presets-value {
  flex: 1;
  min-width: 0;
  text-align: right;
  line-height: 1.35;
}
.home-presets-value {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.home-presets-value .preset-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  white-space: nowrap;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 16px;
}
#home-traffic-topup {
  margin-top: 8px;
  width: 100%;
  font-size: 13px;
  padding: 8px 10px;
}
.home-traffic-topups {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.home-traffic-topups .btn {
  width: 100%;
  font-size: 13px;
  padding: 8px 10px;
}
.home-traffic-note {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}
.home-traffic-note:empty {
  display: none;
}
.home-traffic-topups-label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-traffic-topups-label.hidden {
  display: none;
}
.home-traffic-topups .pay-traffic-pack {
  width: 100%;
}
.pay-traffic-card .pay-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.pay-traffic-included {
  flex-shrink: 0;
  background: color-mix(in srgb, #34c759 18%, var(--card));
  color: #b8e0c8;
  border: 1px solid color-mix(in srgb, #34c759 28%, transparent);
}
.pay-traffic-topups-label {
  margin: 12px 0 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pay-traffic-packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pay-traffic-pack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pay-traffic-pack b {
  font-size: 15px;
  font-weight: 600;
}
.pay-traffic-pack span {
  font-size: 12px;
  color: var(--muted);
}
.pay-traffic-pack.is-active {
  border-color: color-mix(in srgb, #34c759 45%, transparent);
  background: color-mix(in srgb, #34c759 10%, var(--card));
}
.pay-traffic-pack:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pay-line.included b {
  color: #34c759;
}
.stat-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-reset-action {
  margin-top: 0;
}
.home-reset-action .btn {
  width: 100%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.home-reset-action > .hint.tight {
  margin-top: 8px;
}
.home-reset-action > .hint.tight:empty {
  display: none;
}
.reset-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid rgba(240, 217, 212, 0.28);
  border-top-color: #f0d9d4;
  border-radius: 50%;
  box-sizing: border-box;
}
#reset-btn.is-loading .reset-btn-spinner {
  display: inline-block;
  animation: reset-spin 0.7s linear infinite;
}
#reset-btn.is-loading .reset-btn-label {
  opacity: 0.92;
}
.reset-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  box-sizing: border-box;
}
.reset-status[hidden] {
  display: none !important;
}
.reset-status-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  position: relative;
}
.reset-status-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.reset-status[data-state="loading"] {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.reset-status[data-state="loading"] .reset-status-text {
  color: var(--muted);
}
.reset-status[data-state="loading"] .reset-status-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #c8c8d0;
  border-radius: 50%;
  animation: reset-spin 0.7s linear infinite;
}
.reset-status[data-state="ok"] {
  background: rgba(52, 199, 89, 0.1);
  box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.28);
}
.reset-status[data-state="ok"] .reset-status-text {
  color: #b8e0c8;
}
.reset-status[data-state="ok"] .reset-status-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #7dcea0;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.reset-status[data-state="err"] {
  background: rgba(255, 138, 128, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 128, 0.32);
}
.reset-status[data-state="err"] .reset-status-text {
  color: #ff8a80;
}
.reset-status[data-state="err"] .reset-status-icon::before,
.reset-status[data-state="err"] .reset-status-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: #ff8a80;
}
.reset-status[data-state="err"] .reset-status-icon::before {
  transform: rotate(45deg);
}
.reset-status[data-state="err"] .reset-status-icon::after {
  transform: rotate(-45deg);
}
@keyframes reset-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  #reset-btn.is-loading .reset-btn-spinner,
  .reset-status[data-state="loading"] .reset-status-icon::before {
    animation: none;
  }
}

.club-card {
  /* Figma Frame 5: 640×360 — scale as one unit; never break aspect */
  --club-accent: #006fff;
  --club-pad-x: calc(16 / 640 * 100%);
  position: relative;
  container-type: inline-size;
  container-name: club-card;
  aspect-ratio: 640 / 360;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  padding: 0;
  border-radius: calc(20 / 640 * 100cqw);
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  color: #fff;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: "Atyp Text", sans-serif;
}
/* Mini App + site /app cabinet only (not landing .mkt-club-card):
   panel width may grow; keep bank-card height and type size.
   Landing still scales as one unit via 100cqw on .club-card. */
#club-card {
  aspect-ratio: auto;
  height: 200px;
  max-height: 200px;
  container-type: size;
}
#club-card .club-card-title,
#club-card .club-card-pct {
  font-size: calc(38 / 360 * 100cqh);
}
#club-card .club-card-amount {
  font-size: calc(62 / 360 * 100cqh);
}
#club-card .club-card-member-name {
  font-size: calc(24 / 360 * 100cqh);
}
#club-card .club-card-stat-label {
  font-size: calc(30 / 360 * 100cqh);
}
.club-card-more {
  width: 100%;
  margin: 0;
  background: var(--ai-btn);
  color: var(--ai-btn-fg);
}
.club-card-more:active {
  filter: brightness(0.94);
}
.club-card-mascot {
  position: absolute;
  /* Figma 125:273 — 364,-156 / 414×611 inside 640×360 */
  left: calc(364 / 640 * 100%);
  top: calc(-156 / 360 * 100%);
  width: calc(414 / 640 * 100%);
  height: calc(611 / 360 * 100%);
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.club-card-title {
  position: absolute;
  left: calc(19 / 640 * 100%);
  top: calc(30 / 360 * 100%);
  z-index: 1;
  margin: 0;
  font-family: "Rene", sans-serif;
  font-weight: 400;
  font-size: calc(38 / 640 * 100cqw);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #fff;
  white-space: nowrap;
  transform: rotate(-2.77deg);
  transform-origin: left center;
  -webkit-text-stroke: 0.14em var(--club-accent);
  paint-order: stroke fill;
  text-shadow:
    0.03em 0.03em 0 var(--club-accent),
    -0.03em 0.03em 0 var(--club-accent),
    0.03em -0.03em 0 var(--club-accent),
    -0.03em -0.03em 0 var(--club-accent);
  pointer-events: none;
  user-select: none;
}
.club-card-amount {
  position: absolute;
  left: var(--club-pad-x);
  top: calc(137 / 360 * 100%);
  z-index: 1;
  display: block;
  font-size: calc(62 / 640 * 100cqw);
  letter-spacing: -0.06em;
  line-height: 1;
  /* Match Figma text-box trim so the name isn't glued to the glyphs */
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  font-variant-numeric: tabular-nums;
  color: #fff;
  max-width: 52%;
  white-space: nowrap;
}
.club-card-member-name {
  position: absolute;
  left: var(--club-pad-x);
  /* Below amount: Figma 196 + extra air (Display metrics without trim fallback) */
  top: calc(208 / 360 * 100%);
  z-index: 1;
  display: block;
  font-family: "Atyp Text", sans-serif;
  font-size: calc(24 / 640 * 100cqw);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48%;
}
.club-card-pct {
  position: absolute;
  z-index: 1;
  display: block;
  font-family: "Rene", sans-serif;
  font-weight: 400;
  font-size: calc(38 / 640 * 100cqw);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #fff;
  white-space: nowrap;
  transform: rotate(-4.62deg);
  transform-origin: left center;
  -webkit-text-stroke: 0.14em var(--club-accent);
  paint-order: stroke fill;
  text-shadow:
    0.03em 0.03em 0 var(--club-accent),
    -0.03em 0.03em 0 var(--club-accent),
    0.03em -0.03em 0 var(--club-accent),
    -0.03em -0.03em 0 var(--club-accent);
}
.club-card-pct--cashback {
  left: calc(23 / 640 * 100%);
  /* Closer to labels at 309 */
  top: calc(272 / 360 * 100%);
}
.club-card-pct--redeem {
  left: calc(192 / 640 * 100%);
  top: calc(272 / 360 * 100%);
}
.club-card-stat-label {
  position: absolute;
  z-index: 1;
  font-family: "Atyp Text", sans-serif;
  font-size: calc(30 / 640 * 100cqw);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  color: #ccc;
  white-space: nowrap;
}
.club-card-stat-label--cashback {
  left: var(--club-pad-x);
  top: calc(309 / 360 * 100%);
}
.club-card-stat-label--redeem {
  left: calc(186 / 640 * 100%);
  top: calc(309 / 360 * 100%);
}

.modal-body-rich {
  white-space: normal;
  color: var(--fg);
}
.modal-body-rich p {
  margin: 0 0 12px;
  color: var(--muted);
}
.modal-body-rich p b,
.modal-body-rich li b {
  color: var(--fg);
}
.modal-body-rich ul {
  margin: 0 0 12px;
  padding-left: 18px;
}
.modal-body-rich li {
  margin-bottom: 6px;
  color: var(--muted);
}
.modal-body-rich li:last-child {
  margin-bottom: 0;
}

@media (max-width: 420px) {
  .stat-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
.stat-value { font-size: 15px; font-weight: 600; }
.qr-box {
  margin-top: 12px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
}
.qr-box.hidden { display: none; }
.qr-box img { width: 220px; height: 220px; display: block; margin: 0 auto; }
.qr-box .hint { color: #666; }
#app-row { margin-top: 0; }
#devices-row { margin: 10px 0 8px; }
#devices-ask { margin-top: 8px; }
#view-setup { counter-reset: setup-step; }
#view-setup #app-guide:empty { display: none; }
.setup-step-card { counter-increment: setup-step; }
#view-setup .setup-step-card {
  position: relative;
  z-index: 0;
  overflow: visible;
}
#view-setup .setup-step-card:has(.os-select-trigger[aria-expanded="true"]) {
  z-index: 50;
}
#view-setup .os-select-menu {
  z-index: 60;
}
.setup-sub-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.setup-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.setup-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-fg);
}
.setup-step-num::before { content: counter(setup-step); }
.setup-step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
html:has(body.go-page) {
  background: #000000;
  color-scheme: dark;
}
body.go-page {
  --go-bg: #000000;
  --go-card: #1c1c1c;
  --go-card-muted: #141414;
  --go-fg: #ffffff;
  --go-muted: rgba(255, 255, 255, 0.68);
  --go-subtle: rgba(255, 255, 255, 0.5);
  --go-line: rgba(255, 255, 255, 0.12);
  --go-btn: #006fff;
  --go-btn-fg: #ffffff;
  min-height: 100%;
  background: var(--go-bg);
  color: var(--go-fg);
  font-family: var(--font-text);
  font-weight: 300;
}
body.go-page .app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: min(920px, calc(100% - 32px));
  max-width: none;
  margin: 0 auto;
  justify-content: center;
  gap: 16px;
  padding: 40px 0 calc(40px + var(--safe-b));
}
body.go-page .card {
  background: var(--go-card);
  border: 1px solid var(--go-line);
  border-radius: 16px;
  padding: 24px;
  margin-top: 0;
}
body.go-page .setup-step-title {
  color: var(--go-fg);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
body.go-page .hint {
  color: var(--go-muted);
  font-size: 14px;
  line-height: 1.5;
}
body.go-page .hint strong {
  color: var(--go-fg);
  font-weight: 500;
}
body.go-page .btn {
  background: var(--go-btn);
  color: var(--go-btn-fg);
}
body.go-page a.btn {
  color: var(--go-btn-fg);
}
body.go-page .btn.ghost {
  background: var(--go-card-muted);
  color: var(--go-fg);
  border: 1px solid var(--go-line);
}
body.go-page .card .btn { margin-top: 16px; }
body.go-page .card .setup-step-title + .hint.tight { margin-top: 8px; }
body.go-page code#sub {
  display: block;
  margin-top: 16px;
  margin-bottom: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--go-card-muted);
  border: 1px solid var(--go-line);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}
@media (max-width: 640px) {
  body.go-page .app {
    width: calc(100% - 24px);
    padding-top: 24px;
    padding-bottom: calc(24px + var(--safe-b));
  }
  body.go-page .card {
    padding: 20px;
  }
}
.os-select {
  position: relative;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.os-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
}
.os-select-trigger[aria-expanded="true"] {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.os-select-leading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.os-select-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.os-select-icon svg { width: 100%; height: 100%; display: block; }
.os-select-label {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}
.os-select-tag {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  color: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.os-select-chevron {
  flex-shrink: 0;
  color: inherit;
  opacity: 0.72;
  font-size: 14px;
  line-height: 1;
}
.os-select-chevron::before { content: "▾"; }
.os-select-menu {
  position: absolute;
  z-index: 30;
  left: 4px;
  right: 4px;
  top: calc(100% - 4px);
  max-height: min(320px, 48vh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.os-select-menu.hidden { display: none; }
.os-select-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
}
.os-select-option:hover,
.os-select-option:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.os-select-option.on {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.os-select-option-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.os-select-option.on .os-select-option-label { font-weight: 600; }
.os-select-option-tag {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--fg);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.setup-store-help {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.setup-store-help:hover,
.setup-store-help:focus-visible {
  color: var(--fg);
}
.chip:focus { outline: none; }
.chip:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
}
.wizard-kicker { font-size: 18px; font-weight: 500; letter-spacing: -0.03em; }
.wizard-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wizard-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.wizard-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-fg);
  margin-top: 2px;
}
.wizard-body { min-width: 0; flex: 1; }
.wizard-body p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.photo-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--fg);
  font-size: 22px;
  cursor: pointer;
  flex-shrink: 0;
}

#view-pay .hint.tight { margin-top: 0; line-height: 1.45; }
#pay-faq {
  margin-top: 22px;
}
#pay-faq > .label {
  margin-bottom: 6px;
}
#pay-faq > .hint.tight {
  margin-bottom: 10px;
}
#pay-faq .faq {
  padding-bottom: 0;
}
#pay-faq .faq-item {
  margin-top: 8px;
}
#pay-faq .faq-item summary {
  padding: 14px 16px;
  font-size: 14px;
}
#pay-faq .faq-item p {
  font-size: 13px;
}
.pay-footer {
  display: flex;
  justify-content: center;
  padding: 20px 0 8px;
}
.pay-footer a { display: inline-block; line-height: 0; }
.pay-footer img {
  display: block;
  width: 88px;
  height: 31px;
  border: 0;
}
.pay-heading {
  margin: 4px 0 16px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.pay-heading + .hint.tight {
  margin: -8px 0 16px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.page-head .pay-heading {
  margin: 4px 0;
}
.product-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.product-tab {
  appearance: none;
  border: 0;
  border-radius: 13px;
  padding: 10px 12px;
  background: none;
  color: color-mix(in srgb, var(--fg) 78%, var(--muted) 22%);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  opacity: 1;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.product-tab:not(.on):hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}
.product-tab.on {
  background: var(--ai-btn);
  color: var(--ai-btn-fg);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--ai-btn) 32%, transparent);
}
#pay-tab-steam:not(.on) {
  color: color-mix(in srgb, var(--fg) 88%, #6bbfff 12%);
}
#view-steam:not(.hidden) {
  display: block;
  /* Не flex:1 — иначе низ Steam упирается в glass-меню без скролла панели. */
  padding-bottom: 4px;
}

.hero { margin-bottom: 8px; }
.hero-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.hero-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.hero .lead { margin: 0 0 16px; }
.hero .btn { max-width: 220px; }

.land-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.land-list li + li { margin-top: 10px; }

.land-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 36px 0 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.land-pricing-plan {
  background: #fff;
  color: #006fff;
  padding: 28px 24px;
}
.land-pricing-term {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #006fff;
  opacity: 0.62;
}
.land-pricing-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #006fff;
}
.land-pricing-off {
  margin-left: 0.2em;
  font-size: 0.36em;
  font-weight: 500;
  letter-spacing: 0.04em;
  vertical-align: super;
  color: #006fff;
  opacity: 0.62;
}
@media (max-width: 640px) {
  .land-pricing-grid {
    grid-template-columns: 1fr;
  }
}

.land-pricing-extras {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.land-pricing-extras li + li { margin-top: 6px; }

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: var(--muted);
}
.price-row:first-of-type { padding-top: 2px; }
.price-row b { color: var(--fg); font-weight: 600; }
.price-was,
.pay-line s {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: line-through;
}
#pay-cashback-card .loyalty-line:first-child,
#steam-cashback-card .loyalty-line:first-child,
.ai-cashback-card .loyalty-line:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
#pay-cashback-card .hint.tight,
#steam-cashback-card .hint.tight {
  margin-top: 8px;
}
.pay-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pay-line b { color: var(--fg); font-weight: 600; }
.pay-deal-name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag.limited {
  background: color-mix(in srgb, #34c759 22%, var(--card));
  color: #b8e0c8;
}
.pay-line .deal-now { color: #34c759; }
.pay-line.discount b { color: #34c759; }
.pay-line.cashback b { color: #b8e0c8; }
.pay-earn-card {
  --club-accent: #006fff;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0;
  padding: 16px 18px;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pay-earn-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.pay-earn-card-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.pay-earn-club-mark {
  display: block;
  margin: 0;
  font-family: "Rene", sans-serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #fff;
  white-space: nowrap;
  transform: rotate(-2.77deg);
  transform-origin: left center;
  -webkit-text-stroke: 0.12em var(--club-accent);
  paint-order: stroke fill;
  text-shadow:
    0.03em 0.03em 0 var(--club-accent),
    -0.03em 0.03em 0 var(--club-accent),
    0.03em -0.03em 0 var(--club-accent),
    -0.03em -0.03em 0 var(--club-accent);
  pointer-events: none;
  user-select: none;
}
.pay-earn-kicker {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-text);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #ccc;
}
.pay-earn-divider {
  flex: 0 0 1px;
  align-self: stretch;
  width: 1px;
  min-height: 52px;
  margin: 2px 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.14) 18%,
    rgba(255, 255, 255, 0.14) 82%,
    transparent
  );
}
.pay-earn-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
}
.pay-earn-block > .pay-earn-card,
.pay-earn-block > #pay-earn-card {
  width: 100%;
}
.pay-earn-block > #pay-earn-more {
  width: 100%;
  margin: 0;
}
.pay-earn-card-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 0;
  max-width: 46%;
}
.pay-earn-card .pay-earn-value,
#pay-earn-card .pay-earn-value {
  margin: 0;
  padding-left: 2px;
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #b8e0c8;
  text-align: right;
  white-space: nowrap;
}
.pay-earn-note {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, #b8e0c8 72%, var(--muted));
  text-align: right;
}
.pay-earn-note[hidden] {
  display: none;
}
.pay-earn-card.is-off,
#pay-earn-card.is-off {
  background: color-mix(in srgb, #18181b 72%, var(--card));
  border-color: rgba(255, 255, 255, 0.05);
}
.pay-earn-card.is-off .pay-earn-kicker,
.pay-earn-card.is-off .pay-earn-value,
#pay-earn-card.is-off .pay-earn-kicker,
#pay-earn-card.is-off .pay-earn-value {
  color: var(--muted);
}
.pay-earn-card.is-off .pay-earn-club-mark,
#pay-earn-card.is-off .pay-earn-club-mark {
  opacity: 0.35;
  -webkit-text-stroke-color: color-mix(in srgb, var(--club-accent) 40%, var(--muted));
}
.pay-earn-card .hint,
#pay-earn-card .hint {
  margin-top: 8px;
}
.pay-promo-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pay-promo-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.pay-promo-row input.is-ok {
  background: rgba(95, 214, 138, 0.12);
  box-shadow: inset 0 0 0 1px rgba(95, 214, 138, 0.55);
}
.pay-promo-row input.is-err {
  background: rgba(255, 138, 128, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 128, 0.55);
}
.pay-promo-row .btn {
  width: auto;
  padding: 0 16px;
  flex-shrink: 0;
}
#pay-promo-note:empty { display: none; }
#pay-promo-note.ok { color: #b8e0c8; }
#pay-promo-note.err { color: #ff8a80; }
#steam-card .steam-field input,
#view-steam .steam-field input {
  width: 100%;
  margin-top: 0;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  font-size: 16px;
  outline: none;
}
#steam-card > .steam-field:first-child .label {
  margin-top: 0;
}
#steam-card .steam-field .label {
  margin-bottom: 8px;
}
#steam-card .steam-field .label.steam-section-label {
  margin-top: 16px;
}
.steam-field.invalid .label {
  color: #ff8a80;
}
.steam-field.invalid input {
  background: rgba(255, 107, 107, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.72);
}
.steam-amount-min-hint {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: #ff8a80;
}
.steam-amount-min-hint.hidden { display: none; }
#steam-card .steam-section-label {
  margin-top: 16px;
}
#steam-card .mode-row,
#view-steam .mode-row { margin-top: 8px; }
.steam-login-disclaimer {
  margin-top: 8px;
  opacity: 0.85;
}
.steam-convert-note {
  margin: 16px 0 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #2c261f;
  color: #f3ece4;
  font-size: 15px;
  line-height: 1.35;
}
.steam-confirm {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
}
#view-steam .steam-confirm input[type="checkbox"] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  accent-color: var(--ai-btn);
  cursor: pointer;
  vertical-align: middle;
}
.steam-confirm input:disabled {
  cursor: default;
  opacity: 0.45;
}
.steam-confirm-text {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}
#steam-pay-btn { margin-top: 12px; }
#steam-pay-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
#steam-pay-btn.is-hint {
  font-size: 14px;
  line-height: 1.25;
  white-space: normal;
  padding-top: 12px;
  padding-bottom: 12px;
}
#steam-card.steam-locked,
#steam-cashback-card.steam-locked,
#steam-checkout-card.steam-locked {
  opacity: 0.45;
  pointer-events: none;
}
.steam-upsell {
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid rgba(255, 196, 120, 0.45);
  background: linear-gradient(160deg, rgba(255, 170, 70, 0.18), rgba(255, 255, 255, 0.03));
}
.steam-upsell-kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffc978;
  text-transform: uppercase;
}
.steam-upsell-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff6e8;
}
.steam-upsell .btn {
  margin-top: 12px;
  width: 100%;
}
.steam-perk {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(120, 220, 160, 0.35);
  background: rgba(80, 180, 120, 0.12);
}
.steam-perk-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #c8f0d8;
}
#steam-bill-fee-row.is-loud span,
#steam-bill-fee-row.is-loud b {
  color: #ffc978;
}
#steam-bill-fee-row.is-free span,
#steam-bill-fee-row.is-free b {
  color: #b8e0c8;
}
.steam-warn-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, #f59e0b 16%, var(--card));
  border: 1px solid color-mix(in srgb, #f59e0b 42%, transparent);
}

.steam-warn-banner.hidden {
  display: none;
}

#steam-unavailable .steam-warn-banner {
  margin-top: 0;
}

.steam-warn-banner-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #fbbf24;
}

.steam-warn-banner-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #fde68a;
}

#steam-note:empty { display: none; }
#steam-note.ok { color: #b8e0c8; }
#steam-note.err { color: #ff8a80; }
#steam-amount-help {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
}
#steam-amount-help.hidden { display: none; }
#steam-quote-note:empty { display: none; }
.steam-quote-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.steam-quote-note.ok {
  color: #b8e0c8;
  background: rgba(95, 214, 138, 0.08);
  border: 1px solid rgba(95, 214, 138, 0.18);
}
.steam-quote-note.err {
  color: #ffc9c2;
  background: rgba(255, 138, 128, 0.1);
  border: 1px solid rgba(255, 138, 128, 0.22);
}
.steam-quote-note.wait {
  color: #9aa3b2;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.steam-back-btn {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #8eb8ff;
  font-size: 14px;
  cursor: pointer;
}
.steam-checkout-summary {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.steam-checkout-summary .muted { color: #9aa3b2; margin-right: 6px; }
.steam-checkout-steps {
  margin: 12px 0;
  padding-left: 18px;
  color: #c8d0dc;
  font-size: 13px;
  line-height: 1.45;
}
.steam-copy-box {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0 12px;
}
.steam-copy-box code {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 13px;
  word-break: break-all;
}
.steam-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.steam-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b7cff;
  flex-shrink: 0;
}
.steam-status[data-phase="paying"] .steam-status-dot,
.steam-status[data-phase="checking"] .steam-status-dot {
  animation: steam-pulse 1s ease-in-out infinite;
}
.steam-status[data-phase="done"] {
  background: rgba(72, 160, 104, 0.15);
  color: #b8e0c8;
}
.steam-status[data-phase="done"] .steam-status-dot { background: #5fd68a; }
.steam-status[data-phase="error"] {
  background: rgba(200, 80, 80, 0.15);
  color: #f0b0b0;
}
.steam-status[data-phase="error"] .steam-status-dot { background: #e07070; }
@keyframes steam-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.pay-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  font-size: 16px;
}
.pay-total b { font-size: 22px; letter-spacing: -0.03em; }
.steam-bill {
  margin-top: 0;
}
.steam-bill .pay-line {
  padding: 8px 0;
  border-bottom: 0;
}
.steam-bill .pay-line + .pay-line {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.steam-bill .pay-line:first-child {
  padding-top: 0;
}
.steam-bill-total {
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
#steam-redeem-slider,
#pay-redeem-slider,
#ai-redeem-slider,
#esim-redeem-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 10px 0 8px;
  background: transparent;
  --fill: 0%;
}
#steam-redeem-slider::-webkit-slider-runnable-track,
#pay-redeem-slider::-webkit-slider-runnable-track,
#ai-redeem-slider::-webkit-slider-runnable-track,
#esim-redeem-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #34c759 var(--fill),
    rgba(255, 255, 255, 0.18) var(--fill)
  );
}
#steam-redeem-slider::-webkit-slider-thumb,
#pay-redeem-slider::-webkit-slider-thumb,
#ai-redeem-slider::-webkit-slider-thumb,
#esim-redeem-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
#steam-redeem-slider::-moz-range-track,
#pay-redeem-slider::-moz-range-track,
#ai-redeem-slider::-moz-range-track,
#esim-redeem-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
#steam-redeem-slider::-moz-range-progress,
#pay-redeem-slider::-moz-range-progress,
#ai-redeem-slider::-moz-range-progress,
#esim-redeem-slider::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #34c759;
}
#steam-redeem-slider::-moz-range-thumb,
#pay-redeem-slider::-moz-range-thumb,
#ai-redeem-slider::-moz-range-thumb,
#esim-redeem-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
#steam-redeem-slider:disabled,
#pay-redeem-slider:disabled,
#ai-redeem-slider:disabled,
#esim-redeem-slider:disabled {
  opacity: 0.45;
}
#steam-redeem-all,
#pay-redeem-all,
#ai-redeem-all,
#esim-redeem-all {
  width: 100%;
  margin-top: 4px;
}
#pay-btn { margin-top: 16px; }
#pay-btn:disabled { opacity: 0.55; }
.pay-wheel-spins {
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  color: #b8e0c8;
}
.pay-wheel-spins.hidden { display: none; }
html.tg-theme-light .pay-wheel-spins {
  color: var(--ok-fg-soft, #148044);
}
.pay-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  margin: 12px 0 0;
}
.pay-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #b8e0c8;
  background: transparent;
  box-shadow: none;
}
.pay-trust-icon {
  flex-shrink: 0;
  display: block;
  color: inherit;
}
html.tg-theme-light .pay-trust-badge {
  color: var(--ok-fg-soft, #0f7a3a);
  background: transparent;
  box-shadow: none;
}
.pay-methods-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.pay-methods-block > .label {
  margin: 0;
}
.pay-methods-block > .mode-row {
  margin: 0;
}
.pay-methods-block > .label:not(:first-child) {
  margin-top: 4px;
}
#pay-methods .chip,
#pay-currencies .chip,
#pay-sub-methods .chip {
  padding: 7px 10px;
  font-size: 12px;
  min-height: 30px;
  font-weight: 600;
}
#pay-method-hint:empty { display: none; }
#pay-note:empty { display: none; }
#pay-note:has(.pay-open-fallback) {
  margin-top: 14px;
  text-align: center;
}
.pay-open-fallback {
  display: inline-block;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.pay-open-fallback:hover,
.pay-open-fallback:visited {
  color: #fff;
}
.pay-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  font-size: 15px;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
}
.pay-toggle .toggle {
  position: relative;
  flex-shrink: 0;
  width: 51px;
  height: 31px;
}
.pay-toggle .toggle input {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pay-toggle .toggle-ui {
  display: block;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}
.pay-toggle .toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.pay-toggle .toggle input:checked + .toggle-ui {
  background: #34c759;
}
.pay-toggle .toggle input:checked + .toggle-ui::after {
  transform: translateX(20px);
}
.pay-toggle .toggle input:disabled {
  cursor: default;
}
.pay-toggle .toggle input:disabled + .toggle-ui {
  opacity: 0.45;
}
.pay-redeem-controls { margin-top: 12px; }
.pay-redeem-controls .loyalty-line {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.pay-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pay-section-head .label {
  margin-bottom: 0;
}
.pay-term-actions {
  margin: 0;
  justify-content: flex-end;
}
.pay-term-actions:empty {
  display: none;
}
.pay-devices-badge.hidden {
  display: none;
}
.pay-term-meta,
.pay-stepper-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 8px;
}
.pay-term-pack,
.pay-devices-charge {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.pay-term-per,
.pay-devices-included,
.pay-devices-slots {
  font-size: 13px;
  color: var(--muted);
}
.pay-term-save {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #b8e0c8;
  background: color-mix(in srgb, #34c759 24%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #34c759 28%, transparent);
}
.pay-term-save.hidden,
.pay-devices-slots.hidden,
.pay-devices-charge.hidden {
  display: none;
}
.pay-stepper.is-off .pay-term-meta,
.pay-stepper.is-off .pay-stepper-meta {
  opacity: 0.7;
}
.pay-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.pay-stepper button {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--fg);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.pay-stepper.is-off {
  opacity: 0.55;
}
.pay-stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}
.pay-stepper-value {
  flex: 1;
  text-align: center;
}
.pay-stepper-value b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.pay-stepper-value span {
  display: block;
}
#pay-presets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.pay-preset-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.pay-preset-actions {
  width: 100%;
  margin-top: 0;
}
.pay-preset {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--fg);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.pay-preset:not(.is-owned) {
  cursor: default;
}
.pay-preset.is-owned {
  background: color-mix(in srgb, #34c759 8%, var(--card));
  border-color: color-mix(in srgb, #34c759 22%, transparent);
}
.pay-preset.is-selected {
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, #34c759 14%, transparent) 0%, transparent 55%),
    color-mix(in srgb, #34c759 12%, var(--card));
  border-color: color-mix(in srgb, #34c759 34%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #b8e0c8 12%, transparent);
}
.pay-preset-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pay-preset .pay-preset-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.pay-preset-badge {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.pay-preset-badge.owned {
  color: #b8e0c8;
  background: color-mix(in srgb, #34c759 24%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #34c759 28%, transparent);
}
.pay-preset-badge.price {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
}
.pay-preset.is-selected .pay-preset-badge.price {
  color: #b8e0c8;
  background: color-mix(in srgb, #34c759 20%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #34c759 24%, transparent);
}
.pay-preset-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--fg) 62%, transparent);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-top: 16px;
  background: rgba(0, 0, 0, 0.55);
  animation: app-modal-backdrop-in 0.32s var(--app-ease) both;
}
.modal.hidden { display: none; }
.modal.modal--center {
  align-items: center;
  padding: 20px;
}
.modal.modal--center .modal-sheet {
  border-radius: 20px;
  max-height: min(72vh, 440px);
}
@keyframes app-modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-sheet {
  width: min(100%, 420px);
  max-height: min(78vh, 640px);
  overflow: auto;
  padding: 16px 16px 20px;
  border-radius: 20px 20px 16px 16px;
  background: var(--card);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
}
.modal-body p { margin: 0 0 10px; }
.faq { padding-bottom: 8px; }
.faq-item {
  background: var(--card);
  border-radius: 16px;
  margin-top: 10px;
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.faq-item p b { color: var(--fg); font-weight: 600; }
.faq-item.glossary p { padding-bottom: 10px; }
.faq-item.glossary p:last-of-type { padding-bottom: 16px; }
.faq-item ol, .faq-item ul {
  margin: 0;
  padding: 0 16px 16px 36px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.faq-item li + li { margin-top: 8px; }
.faq-item a,
.glossary-block a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.glossary-block {
  margin-top: 22px;
}
.glossary-block .label {
  margin-bottom: 4px;
}
.glossary-body p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.glossary-body p:first-child { margin-top: 0; }
.glossary-body p:last-child { margin-bottom: 0; }
.glossary-body p b { color: var(--fg); font-weight: 600; }

.tabs {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 0;
  z-index: 20;
  display: block;
  width: auto;
  max-width: none;
  pointer-events: none;
  padding: 0 0 calc(10px + var(--safe-b));
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
body.chat-typing .tabs {
  /* Keep the bar out of hit-testing and layout reserve while the keyboard is open.
     opacity/visibility alone left the 88px panel padding as a dead gap above the keyboard. */
  display: none;
}
.tabs.hidden { display: none; }
.tabs-glass {
  position: relative;
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 62px;
  padding: 5px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0.02)),
    rgba(22, 24, 30, 0.42);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  overflow: hidden;
}
.tabs-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 14px rgba(51, 144, 236, 0.18);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.42s cubic-bezier(0.22, 1.1, 0.32, 1),
    width 0.42s cubic-bezier(0.22, 1.1, 0.32, 1),
    opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}
.tabs-indicator.is-instant {
  transition: none !important;
}
.tabs button.hidden,
.tabs button[hidden] { display: none; }
.tabs button {
  position: relative;
  z-index: 1;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(6px, 1.7vw, 8px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 2px;
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1.1, 0.32, 1);
  -webkit-tap-highlight-color: transparent;
}
.tabs button:active {
  transform: scale(0.94);
}

/* Svoboda Wheel — на главной */
.wheel-home {
  --wheel-accent: #006fff;
  --wheel-surface: #18181b;
  margin-top: 0;
  font-family: "Atyp Text", sans-serif;
}
.wheel-home .section-title {
  margin-bottom: 10px;
  font-family: "Atyp Display", sans-serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
}
.wheel-rule {
  margin: 10px 0 0;
  text-align: center;
  color: rgba(244, 244, 245, 0.55);
  font-size: 13px;
  line-height: 1.4;
}
.wheel-subtitle {
  margin: 0 0 var(--home-gap-tight, 12px);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.wheel-home .wheel-hero {
  margin-top: 0;
}
.wheel-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px 18px 18px;
  background: var(--wheel-surface);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.wheel-hero-rays {
  pointer-events: none;
  position: absolute;
  inset: -18% -28% auto;
  height: 118%;
  background:
    repeating-conic-gradient(
      from 0deg at 50% 42%,
      rgba(0, 111, 255, 0.22) 0deg 7deg,
      rgba(0, 111, 255, 0) 7deg 14deg
    );
  opacity: 0.85;
  mask-image: radial-gradient(circle at 50% 42%, #000 16%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 16%, transparent 70%);
}
.wheel-title {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-family: "Atyp Display", sans-serif;
  font-size: clamp(22px, 6.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.15;
}
.wheel-subtitle {
  position: relative;
  z-index: 1;
  margin: 10px auto 0;
  max-width: 28ch;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(244, 244, 245, 0.62);
}
.wheel-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  margin: 18px auto 6px;
  aspect-ratio: 1;
  filter: drop-shadow(0 12px 28px rgba(0, 111, 255, 0.22));
}
.wheel-rim {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    #006fff,
    #003d99,
    #4da3ff,
    #001a4d,
    #006fff,
    #66b3ff,
    #006fff
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 24px rgba(0, 111, 255, 0.28);
}
.wheel-glow {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 111, 255, 0.28) 0%,
    rgba(24, 24, 27, 0) 72%
  );
  pointer-events: none;
  z-index: 2;
}
.wheel-canvas {
  position: absolute;
  inset: 10px;
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #0c0c0d;
  box-shadow:
    0 0 0 2px rgba(0, 111, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.wheel-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 4;
  width: 36px;
  height: 44px;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 111, 255, 0.45));
}
.wheel-pointer-arrow {
  display: block;
  width: 100%;
  height: 100%;
}
.wheel-prizes {
  position: relative;
  z-index: 1;
  margin-top: var(--home-gap-tight, 12px);
}
.wheel-prizes[hidden] {
  display: none;
}
.wheel-hero .subsection-title,
.wheel-prizes-title {
  text-align: center;
  color: #f4f4f5;
  font-family: "Atyp Text", sans-serif;
  font-weight: 500;
}
.wheel-super-prize {
  margin-bottom: 10px;
  text-align: center;
}
.wheel-super-prize[hidden] {
  display: none;
}
.wheel-super-prize-title {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.5);
  font-family: "Atyp Text", sans-serif;
}
.wheel-super-prize-name {
  display: inline-block;
  margin: 0 0 2px;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 2px 8px rgba(154, 117, 24, 0.18);
}
.wheel-super-prize-stock {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(244, 244, 245, 0.55);
}
.wheel-prizes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.wheel-wins {
  position: relative;
  z-index: 1;
  margin-top: var(--home-gap-tight, 12px);
}
.wheel-wins[hidden] {
  display: none;
}
.wheel-wins-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.wheel-wins-summary::-webkit-details-marker {
  display: none;
}
.wheel-wins-summary::marker {
  content: "";
}
.wheel-wins-title {
  margin: 0;
  text-align: center;
  color: #f4f4f5;
  font-family: "Atyp Display", sans-serif;
  font-weight: 500;
}
.wheel-wins-chevron {
  display: block;
  flex-shrink: 0;
  color: rgba(244, 244, 245, 0.7);
  transition: transform 0.2s ease;
}
.wheel-wins:not([open]) .wheel-wins-chevron {
  transform: rotate(-90deg);
}
.wheel-wins-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .wheel-wins-chevron {
    transition: none;
  }
}
.wheel-win-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #22222a;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #f4f4f5;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.wheel-win-label {
  font-weight: 500;
}
.wheel-win-date {
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(244, 244, 245, 0.5);
}
.wheel-prize-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  background: #1a2740;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #d6e7ff;
  box-shadow: inset 0 0 0 1px rgba(0, 111, 255, 0.45);
}
.wheel-prize-tag--silver {
  background: #2e3748;
  color: #e8f1ff;
  box-shadow: inset 0 0 0 1px rgba(122, 138, 163, 0.55);
  font-weight: 500;
}
.wheel-prize-tag--gold {
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 2px 6px rgba(154, 117, 24, 0.18);
  font-weight: 500;
}
.wheel-attempts {
  position: relative;
  z-index: 1;
  margin: var(--home-gap-tight, 12px) 0 0;
  text-align: center;
  font-family: "Atyp Display", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #f4f4f5;
}
.wheel-attempts:empty {
  display: none;
}
.wheel-spin-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  font-family: "Atyp Text", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  background: var(--wheel-accent);
  box-shadow: 0 8px 20px rgba(0, 111, 255, 0.28);
}
.wheel-spin-btn:active:not(:disabled) {
  filter: brightness(0.94);
}
.btn.wheel-spin-btn:disabled,
.wheel-spin-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  color: rgba(244, 244, 245, 0.55);
  background: #2a2a32;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  filter: none;
}
.wheel-note {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(244, 244, 245, 0.72);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  min-height: 1.2em;
}
.wheel-note:empty { display: none; }
.wheel-note.ok {
  color: #b8e0c8;
  font-weight: 500;
  background: color-mix(in srgb, #34c759 18%, var(--wheel-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #34c759 28%, transparent);
}
.wheel-note.warn {
  color: #e8c48a;
  background: color-mix(in srgb, #c9953a 16%, var(--wheel-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #c9953a 26%, transparent);
}

.wheel-result-sheet {
  text-align: center;
  padding: 22px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(0, 111, 255, 0.14), transparent 58%),
    var(--card);
}
.wheel-result-sheet.is-win {
  border-color: color-mix(in srgb, #34c759 32%, transparent);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(52, 199, 89, 0.16), transparent 58%),
    var(--card);
}
.wheel-result-sheet.is-empty {
  border-color: rgba(255, 255, 255, 0.08);
}
.wheel-result-icon {
  font-size: 40px;
  line-height: 1;
  margin: 0 0 10px;
  animation: wheel-result-pop 0.55s var(--app-ease) both;
}
.wheel-result-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.wheel-result-headline {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #b8e0c8;
}
.wheel-result-sheet.is-empty .wheel-result-headline {
  color: var(--muted);
}
.wheel-result-message {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}
.wheel-result-btn {
  margin-top: 4px;
}
@keyframes wheel-result-pop {
  from {
    opacity: 0;
    transform: scale(0.82) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
html.motion-reduce .wheel-result-icon {
  animation: none;
}
html.motion-reduce .modal {
  animation: none;
}
.tabs button span {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}
.tabs button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.28s cubic-bezier(0.22, 1.1, 0.32, 1);
}
.tabs button.on {
  color: #6cbcff;
  background: transparent;
}
.tabs button.on span { color: #8fccff; }
.tabs button.on svg {
  /* Keep icon metrics stable — scale/translate made the tab feel jumpy. */
  transform: none;
}
.tabs button[data-tab="ai"] svg {
  fill: currentColor;
  stroke: none;
}
.tabs button[data-tab="ai"].on {
  color: #6cbcff;
  background: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .tabs-indicator,
  .tabs button,
  .tabs button svg {
    transition: none !important;
  }
}

.mode-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.chip {
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 32px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  /* Keep selected/idle the same metrics — weight change made chips jump. */
  box-shadow: inset 0 0 0 0 transparent;
}
.chip.on {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}
body:not(.site):not(.go-page) .chip {
  transition: background-color 0.25s var(--app-ease), transform 0.25s var(--app-ease);
}
body:not(.site):not(.go-page) .chip:active:not(:disabled) {
  transform: scale(0.97);
}
.exit-row .chip { padding: 6px 10px; font-size: 12px; min-height: 28px; }

/* Вкладка Svoboda AI: чат вписан в экран, лента скроллится внутри,
   поле ввода всегда видно над таббаром. */
#view-ai {
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
/* Keyboard open: drop the tab-bar spacer so the composer sits on the keyboard. */
body.chat-typing #view-ai {
  padding-bottom: 10px;
}
#view-ai .chat-pane {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#view-ai .chat-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  -ms-overflow-style: auto;
  padding-top: 44px;
}
#view-ai .chat-scroll::-webkit-scrollbar {
  display: block;
  width: 6px;
}
#view-ai .chat-scroll::-webkit-scrollbar-track {
  background: transparent;
}
#view-ai .chat-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}
#view-ai .chat-scroll::-webkit-scrollbar-thumb:active {
  background: rgba(255, 255, 255, 0.42);
}
#view-ai .thread {
  min-width: 0;
  flex: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
}
#view-ai .chat-clear {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-text);
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0.02)),
    rgba(22, 24, 30, 0.42);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.22);
}
#view-ai .chat-clear:active:not(:disabled) {
  transform: scale(0.97);
  filter: brightness(0.96);
}
#view-ai .chat-clear:disabled {
  opacity: 0.45;
  cursor: default;
}
#view-ai .composer {
  flex-shrink: 0;
}
.chat-suggest-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  margin: 2px 0 6px;
}
.chat-suggest-inline .chip {
  text-align: left;
  line-height: 1.35;
  max-width: 100%;
}

body.site .app.site-app {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 24px calc(48px + var(--safe-b));
}
body.site .tabs { display: none; }
body.site .site-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.site-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
  padding-bottom: calc(28px + var(--safe-b));
}
.site-footer-top {
  display: grid;
  gap: 10px;
}

.site-footer-brand {
  display: inline-block;
  line-height: 0;
}

.site-footer-brand img {
  display: block;
  width: 148px;
  height: auto;
}

.site-footer-tagline {
  max-width: 28em;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.site-footer-brandcol {
  display: grid;
  align-content: start;
  gap: 12px;
  max-width: 28em;
}

.site-footer-cta {
  justify-self: start;
  color: inherit;
  font-size: 14px;
}

.site-bot-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.site-bot-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 18px 28px;
  flex: 1;
  min-width: min(100%, 420px);
}

.site-footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer-label {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-footer-cols {
    grid-template-columns: 1fr;
  }
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}
.site-footer-disclaimer {
  margin: 16px 0 0;
  max-width: 52rem;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.site-footer-disclaimer p {
  margin: 0;
}
.site-footer-disclaimer p + p {
  margin-top: 10px;
}
.site-footer-requisites {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.site-footer-requisites p {
  margin: 0;
}
.site-footer-requisites p + p {
  margin-top: 4px;
}
.site-footer-pay {
  display: flex;
  align-items: center;
}
.site-footer-pay a {
  display: inline-block;
  line-height: 0;
}
.site-footer-pay img {
  display: block;
  width: 88px;
  height: 31px;
  border: 0;
}
body.site:not(.site-home) .site-footer .site-wrap {
  width: 100%;
}
body.site:not(.site-home) .site-footer-inner {
  padding-bottom: 0;
}

html:has(body.site-home) {
  scroll-behavior: smooth;
  background: #006fff;
  color-scheme: only light;
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.site-home) { scroll-behavior: auto; }
}

/* TNR has no Light cut. Svoboda Serif 300 = Source Serif 4 Light (OFL), Times-like. */
@font-face {
  font-family: "Atyp Text";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/AtypText-Light.woff2") format("woff2"),
    url("/static/fonts/AtypText-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Atyp Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/AtypText-Medium.woff2") format("woff2"),
    url("/static/fonts/AtypText-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Atyp Display";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("/static/fonts/AtypDisplay-Thin.woff2") format("woff2"),
    url("/static/fonts/AtypDisplay-Thin.ttf") format("truetype");
}
@font-face {
  font-family: "Atyp Display";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/AtypDisplay-Light.woff2") format("woff2"),
    url("/static/fonts/AtypDisplay-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Atyp Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/AtypDisplay-Regular.woff2") format("woff2"),
    url("/static/fonts/AtypDisplay-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Atyp Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/AtypDisplay-Medium.woff2") format("woff2"),
    url("/static/fonts/AtypDisplay-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Atyp Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/AtypDisplay-Semibold.woff2") format("woff2"),
    url("/static/fonts/AtypDisplay-Semibold.ttf") format("truetype");
}
@font-face {
  font-family: "Atyp Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/AtypDisplay-Bold.woff2") format("woff2"),
    url("/static/fonts/AtypDisplay-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Rene";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/Rene-Regular.woff2") format("woff2"),
    url("/static/fonts/Rene-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Svoboda Serif";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/source-serif-4-cyrillic-300.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Svoboda Serif";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/source-serif-4-latin-300.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
/* Svoboda Mono = Fira Mono (OFL), self-hosted. */
@font-face {
  font-family: "Svoboda Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/fira-mono-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Svoboda Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/fira-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

body.site.site-home {
  --hermes: #006fff;
  --hermes-fg: #f5f5f5;
  --hermes-paper: #fff;
  --serif: var(--font-display);
  --mono: var(--font-text);
  background: var(--hermes);
  color: var(--hermes-fg);
  color-scheme: only light;
  scroll-padding-top: 96px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-text);
  font-weight: 300;
}
body.site.site-home .app.site-app {
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-text);
  font-weight: 300;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-home main {
  flex: 1 1 auto;
  display: flex;
}
body.site.site-home .site-link {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  text-underline-offset: 0.3em;
}
body.site.site-home .site-link:hover { text-decoration: underline; }
body.site.site-home .text-btn {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}
body.site.site-home .hint {
  font-family: var(--font-text);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}

.site-frame,
.site-home .site-frame {
  display: none !important;
}
.site-grain {
  display: none;
}
.site-home .site-grain {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 55;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0c0c0d;
}
.site-home .site-nav {
  position: sticky;
  top: 0;
  width: auto;
  margin: 0;
  background: var(--hermes);
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 28px;
  row-gap: 12px;
  padding: 18px max(22px, 5vw);
  padding-top: calc(18px + env(safe-area-inset-top));
  z-index: 30;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.site-home .site-logo {
  display: block;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--hermes-fg);
}
.site-mark {
  width: 22px;
  height: 22px;
  display: block;
}
.site-home .site-mark { display: none; }
.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
}
.site-home .site-nav-links {
  flex: 1 1 auto;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 22px;
  min-width: 0;
}
.site-home .site-nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.3em;
  white-space: nowrap;
}
.site-home .site-nav-links a:hover { text-decoration: underline; }
.site-nav-aside {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}
.site-nav-end {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.site-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: min(100%, 28rem);
  margin-top: 32px;
}
.site-hero-login {
  margin-top: 0;
  color-scheme: only light;
}
body.site.site-home .site-tg-btn,
.site-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 22px 32px;
  background: #fff !important;
  background-color: #fff !important;
  color: #006fff;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  color-scheme: only light;
  forced-color-adjust: none;
}
body.site.site-home .site-tg-btn:hover,
.site-tg-btn:hover { background: #f4f4f8 !important; }
body.site.site-home #tg-bot-btn {
  background: #000 !important;
  background-color: #000 !important;
  color: #fff;
}
body.site.site-home #tg-bot-btn:hover {
  background: #1a1a1a !important;
}
.site-tg-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
}
body.site.site-home .site-hero-login #login-error {
  margin: 8px 0 0;
  min-height: 0;
  text-align: left;
}
body.site.site-home .site-hero-login #login-error:empty {
  display: none;
  margin: 0;
}
.site-home .site-nav-end a:not(.site-nav-cta),
.site-home .site-nav-end .text-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.site-home .site-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  background: var(--hermes-fg);
  color: var(--hermes);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}
.site-home .site-nav-cta:hover { background: #fff; }

.site-block {
  padding: 88px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.site-home .site-block {
  border-top: 0;
  padding: 72px 0;
}
.site-hero {
  padding: 72px 0 96px;
  border-top: 0;
}
.site-home .site-hero {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  padding: 48px 0 10vh;
}
.site-kicker {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.site-home .site-kicker {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.1vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: inherit;
  opacity: 0.85;
}
.site-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 8.4vw, 92px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.site-home .site-h1 {
  display: block;
  max-width: 14ch;
  font-size: clamp(2.8rem, 9vw, 7.4rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.site-soon {
  margin: 20px 0 0;
  max-width: 28rem;
  font-family: var(--font-text);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  opacity: 0.82;
}
.site-h2 {
  margin: 0 0 32px;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.site-home .site-h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.site-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px 64px;
  align-items: end;
}
.site-hero-copy { max-width: 36ch; }
.site-lead,
.site-text,
.site-note {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.site-home .site-lead,
.site-home .site-text,
.site-home .site-note {
  font-family: var(--mono);
  font-size: clamp(0.92rem, 1.2vw, 1.15rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: inherit;
  opacity: 0.9;
  text-transform: uppercase;
}
.site-home .site-lead {
  margin: 28px 0 36px;
  max-width: 42ch;
}
.site-note {
  font-size: 14px;
  max-width: 62ch;
}
.site-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}
.site-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.site-btn,
.site-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.site-home .site-btn {
  position: relative;
  min-height: 0;
  padding: 18px 28px;
  border-radius: 0;
  background: var(--hermes-fg);
  color: var(--hermes);
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.site-home .site-btn:hover { background: #fff; }
.site-home .site-btn-ghost {
  background: transparent;
  color: var(--hermes-fg);
  box-shadow: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hermes-fg) 60%, transparent);
}
.site-home .site-btn-ghost:hover {
  background: var(--hermes-fg);
  color: var(--hermes);
}

.site-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}
.site-home .site-steps {
  gap: 18px;
  background: none;
  border: 0;
}
.site-steps li {
  background: #0c0c0d;
  padding: 24px 22px 28px;
  margin: 0;
}
.site-home .site-steps li {
  background: transparent;
  padding: 22px 20px 26px;
  border: 1px solid color-mix(in srgb, var(--hermes-fg) 22%, transparent);
}
.site-step-n {
  display: block;
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.site-home .site-step-n {
  font-family: var(--mono);
  color: inherit;
  opacity: 0.7;
}
.site-steps h3,
.site-facts h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.site-home .site-steps h3,
.site-home .site-facts h3,
.site-home .site-product-k {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.site-steps p,
.site-facts p,
.site-product p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.site-home .site-steps p,
.site-home .site-facts p,
.site-home .site-product p {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: inherit;
  opacity: 0.88;
}
.site-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.site-facts li {
  padding: 28px 32px 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.site-home .site-facts {
  gap: 48px 40px;
}
.site-home .site-facts li {
  padding: 0;
  border: 0;
}
.site-facts li:nth-child(odd) { padding-right: 40px; }
.site-facts li:nth-child(even) { padding-left: 40px; border-left: 1px solid rgba(255,255,255,0.1); }
.site-home .site-facts li:nth-child(odd),
.site-home .site-facts li:nth-child(even) {
  padding: 0;
  border: 0;
}
.site-product {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
.site-product-k {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.site-login { min-height: 56px; }
.site-home #logged-in-connect .site-btn { width: auto; }

.site-paper {
  position: relative;
  background: var(--hermes-paper);
  color: var(--hermes);
  margin: 24px max(10px, 1.2vw) 0;
  padding: 28px 0 72px;
}
.site-paper .site-kicker,
.site-paper .site-h2,
.site-paper .site-lead,
.site-paper .site-text,
.site-paper .site-note,
.site-paper .site-steps p,
.site-paper .site-facts p,
.site-paper .site-product p,
.site-paper .site-product-k,
.site-paper .land-pricing-term,
.site-paper .land-pricing-price,
.site-paper .site-link {
  color: var(--hermes);
}
.site-paper .site-lead,
.site-paper .site-note,
.site-paper .site-facts p,
.site-paper .site-product p {
  opacity: 0.82;
}
.site-paper-tags {
  position: absolute;
  top: 28px;
  right: max(24px, 4vw);
  display: flex;
  z-index: 2;
}
.site-paper-tags span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  border: 1px solid currentColor;
  opacity: 0.85;
}
.site-paper-tags span + span { border-left: 0; }
.site-wordmark {
  margin: 96px 0 8px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(4rem, 22vw, 18rem);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.site-home .land-pricing {
  max-width: 40rem;
  margin: 36px 0 0;
}
.site-home .land-pricing-grid {
  max-width: none;
  margin: 0;
  gap: 12px;
  background: transparent;
  border: 0;
}
body.site.site-home .land-pricing-plan,
body.site.site-home .site-price-card {
  background: #fff !important;
  background-color: #fff !important;
  color: #006fff;
}
body.site.site-home .land-pricing-term,
body.site.site-home .land-pricing-off {
  font-family: var(--font-text);
  font-weight: 300;
  color: #006fff;
  opacity: 0.62;
}
body.site.site-home .land-pricing-price {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #006fff;
}
body.site.site-home .land-pricing-extras {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hermes-fg);
  opacity: 0.82;
  margin-top: 18px;
}
.site-home .site-footer {
  border-top: 0;
  margin-top: 0;
  padding: 48px 0 32px;
}
.site-home .site-footer-inner {
  padding-bottom: calc(36px + var(--safe-b));
}
.site-home .site-footer-requisites,
.site-home .site-footer-requisites a {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  color: var(--hermes-fg);
}

@media (max-width: 900px) {
  .site-hero-grid,
  .site-split,
  .site-steps,
  .site-product {
    grid-template-columns: 1fr;
  }
  .site-facts {
    grid-template-columns: 1fr;
  }
  .site-facts li,
  .site-facts li:nth-child(odd),
  .site-facts li:nth-child(even) {
    padding: 24px 0;
    border-left: 0;
  }
  .site-home .site-facts li,
  .site-home .site-facts li:nth-child(odd),
  .site-home .site-facts li:nth-child(even) {
    padding: 0;
  }
  .site-h2 { max-width: none; }
  .site-block { padding: 64px 0; }
  .site-hero { padding: 40px 0 64px; }
  .site-home .site-hero {
    min-height: 0;
    padding: 32px 0 8vh;
  }
  .site-paper-tags { display: none; }
}
@media (max-width: 760px) {
  .site-home .site-nav-links {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  body.site .site-wrap {
    width: calc(100% - 32px);
    padding-left: 0;
    padding-right: 0;
  }
  .site-home .site-nav {
    width: auto;
    padding: 14px 16px;
    padding-top: calc(14px + env(safe-area-inset-top));
  }
  .site-h1 { font-size: clamp(40px, 12vw, 56px); }
  .site-home .site-h1 { font-size: clamp(2.4rem, 14vw, 3.4rem); }
}
.legal-page .legal-doc {
  margin-top: 4px;
}
.legal-doc {
  line-height: 1.55;
  font-size: 14px;
}
.legal-doc h1.legal-title,
.legal-doc h2,
.legal-doc h3 {
  margin: 22px 0 10px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.legal-doc h1.legal-title {
  margin-top: 0;
  font-size: 22px;
}
.legal-doc h2 { font-size: 17px; }
.legal-doc h3 { font-size: 15px; color: var(--muted); }
.legal-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.legal-doc p,
.legal-doc ul {
  margin: 0 0 12px;
}
.legal-doc ul {
  padding-left: 20px;
}
.legal-doc li + li { margin-top: 6px; }
.legal-doc a {
  color: var(--fg);
  word-break: break-all;
}
.legal-requisites {
  list-style: none;
  padding-left: 0;
}
.legal-requisites li + li { margin-top: 8px; }

.legal-pricing-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  -webkit-overflow-scrolling: touch;
}
.legal-pricing-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
.legal-pricing-caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--fg);
  padding-bottom: 10px;
}
.legal-pricing-table th,
.legal-pricing-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.legal-pricing-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.legal-pricing-table td b {
  color: var(--fg);
  white-space: nowrap;
}
#login-widget, #auth-widget { min-height: 48px; margin-top: 10px; }
.profile-load-error {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, #f59e0b 14%, var(--card));
  border: 1px solid color-mix(in srgb, #f59e0b 34%, transparent);
}
.profile-load-error.hidden { display: none; }
.profile-load-error-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg);
  flex: 1;
}
.profile-load-error .text-btn {
  flex-shrink: 0;
  margin-top: 1px;
  color: #fbbf24;
}
.auth-gate {
  margin-bottom: 16px;
}
#login-error, #auth-gate-note {
  min-height: 1.2em;
}

/* —— Cheburcheck /status (Svoboda home theme) —— */
html:has(body.status-page) {
  background: #000000;
  color-scheme: dark;
}

body.site.site-home.status-page {
  --status-paper: #ffffff;
  --status-surface: #ffffff;
  --status-surface-muted: #f4f4f8;
  --status-fg: #12101f;
  --status-muted: #3f3a56;
  --status-subtle: #5c5675;
  --status-border: rgba(0, 0, 242, 0.14);
  --status-border-strong: rgba(0, 0, 242, 0.24);
  --status-ok: #0b6e3f;
  --status-ok-bg: #dff5ea;
  --status-bad: #b42318;
  --status-bad-bg: #fde8e8;
  --status-warn: #8a5b00;
  --status-brand: #006fff;
  --status-brand-dark: #004db2;
}

body.site.site-home.status-page main {
  display: block;
  flex: 1;
}

body.site.site-home.status-page .status-hero-block {
  padding: 8px 0 28px;
  border-top: 0;
}

body.site.site-home.status-page .status-hero-title {
  max-width: 14ch;
  font-size: clamp(2.2rem, 8vw, 5.2rem);
  line-height: 0.92;
}

body.site.site-home.status-page .status-hero-lead {
  margin-top: 18px;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.45;
  opacity: 0.88;
  max-width: 38rem;
}

body.site.site-home.status-page .status-body-block {
  padding-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.site.site-home.status-page .status-stack {
  display: grid;
  gap: 14px;
  padding-bottom: 8vh;
}

body.site.site-home.status-page .status-panel {
  background: var(--status-paper);
  color: var(--status-fg);
  padding: 22px 24px;
}

body.site.site-home.status-page .status-panel-summary,
body.site.site-home.status-page .status-svoboda-summary,
body.site.site-home.status-page .status-check-summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--status-fg);
  list-style: none;
}

body.site.site-home.status-page .status-panel-summary::-webkit-details-marker,
body.site.site-home.status-page .status-svoboda-summary::-webkit-details-marker,
body.site.site-home.status-page .status-check-summary::-webkit-details-marker {
  display: none;
}

body.site.site-home.status-page details[open] > .status-panel-summary,
body.site.site-home.status-page details[open] > .status-svoboda-summary,
body.site.site-home.status-page details[open] > .status-check-summary {
  margin-bottom: 14px;
}

body.site.site-home.status-page .status-section-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body.site.site-home.status-page .status-section-hint,
body.site.site-home.status-page .status-summary-label,
body.site.site-home.status-page .status-check-label,
body.site.site-home.status-page .status-my-exit-hint {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

body.site.site-home.status-page .status-my-exit-notice {
  font-family: var(--mono);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
}

body.site.site-home.status-page .status-note {
  padding: 8px 0 0;
  font-family: var(--mono);
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  text-transform: none;
  letter-spacing: 0.03em;
  line-height: 1.5;
  opacity: 0.78;
}

body.site.site-home.status-page .status-note p {
  margin: 0 0 12px;
  color: inherit;
}

body.site.site-home.status-page .status-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

body.site.site-home.status-page .status-note strong {
  font-weight: 500;
}

body.site.site-home.status-page .status-panel .text-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--status-brand);
  text-decoration: underline;
}

body.site.site-home.status-page .status-check-btn {
  background: #006fff;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 14px 22px;
}

body.site.site-home.status-page .status-check-btn:hover:not(:disabled) {
  background: #004db2;
}

body.site.site-home.status-page .status-check-secondary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--status-muted);
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 0;
}

body.site.site-home.status-page .status-check-report {
  margin-top: 14px;
}

body.site.site-home.status-page .status-check-report-section {
  border: 1px solid var(--status-border);
  border-radius: 0;
  background: var(--status-surface-muted);
  padding: 0 14px 12px;
}

body.site.site-home.status-page .status-check-report-section[open] {
  background: var(--status-surface);
}

body.site.site-home.status-page .status-check-report-section > summary {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--status-muted);
  padding: 12px 0;
  list-style: none;
}

body.site.site-home.status-page .status-check-report-section > summary::-webkit-details-marker {
  display: none;
}

body.site.site-home.status-page .status-check-report-section--tech > summary {
  color: var(--status-fg);
  font-weight: 600;
}

body.site.site-home.status-page .status-check-report-lines {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

body.site.site-home.status-page .status-check-report-tech dt {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.site.site-home.status-page .status-check-report-tech dd {
  font-size: 0.82rem;
  word-break: break-word;
}

body.site.site-home.status-page .status-my-exit-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.82;
}

.status-meta b {
  font-weight: 500;
}

.status-stale-warn {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.12);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.status-main {
  display: grid;
  gap: 16px;
}

.status-hero {
  padding: 0;
  background: transparent;
  color: inherit;
  border: none;
  box-shadow: none;
}

.status-kicker {
  margin: 0;
}

.status-title {
  margin: 0;
}

.status-lead {
  margin: 0;
}

.status-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px;
}

.status-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-summary-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--status-muted);
}

.status-summary-value {
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--status-fg);
  font-weight: 700;
}

.status-summary-value.ok { color: var(--status-ok); }
.status-summary-value.bad { color: var(--status-bad); }

.status-visitor {
  padding: 16px 20px;
  border-left: 4px solid var(--status-brand);
  background: #f3f5ff;
}

.status-visitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.status-visitor-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.status-visitor p {
  margin: 0;
  color: var(--status-subtle);
  line-height: 1.5;
}

.status-visitor-ip {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--status-fg);
}

body.status-page .status-my-exit {
  background: var(--status-card-bg);
  border-left: 0;
}

body.status-page .site-footer {
  border-top-color: var(--status-line);
  margin-top: 32px;
}

body.status-page .site-link {
  color: var(--status-muted);
}

body.status-page .site-link:hover {
  color: var(--status-text);
}

body.status-page .site-footer-requisites,
body.status-page .site-footer-requisites a {
  color: var(--status-muted);
}

body.status-page .site-footer-requisites a:hover {
  color: var(--status-text);
}

body.status-page .site-footer-disclaimer,
body.status-page .site-footer-disclaimer a {
  color: var(--status-muted);
}

body.status-page .legal-doc p {
  color: var(--status-muted);
}
body.status-page .legal-doc .legal-back {
  margin-top: 24px;
}

body.status-page .status-nav-logo:hover,
body.status-page .status-nav-links a:hover {
  color: var(--status-muted);
}

body.status-page .status-footnote a {
  color: var(--status-text);
  font-weight: 500;
}

.status-my-exit {
  padding: 22px 24px;
  border-left: 4px solid var(--status-brand);
  background: var(--status-paper);
}

.status-my-exit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.status-my-exit-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.status-my-exit-notice {
  margin: 0 0 12px;
  color: var(--status-subtle);
  line-height: 1.5;
}

.status-my-exit-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 8px;
}

.status-my-exit-ongoing {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid #f5c2c2;
  line-height: 1.45;
}

.status-my-exit-hint {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--status-muted);
  line-height: 1.45;
}

.status-my-exit-actions {
  margin-top: 12px;
}

body.site.site-home.status-page .status-my-exit-chart {
  display: block;
  width: 100%;
  margin-top: 8px;
}

body.site.site-home.status-page .status-my-exit-actions--primary {
  margin: 16px 0 0;
}

body.site.site-home.status-page .status-exit-start {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 22px 28px;
  border: 0;
  background: #006fff;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
}

body.site.site-home.status-page .status-exit-start:hover:not(:disabled) {
  background: #004db2;
}

body.site.site-home.status-page .status-exit-start:disabled {
  opacity: 0.72;
  cursor: wait;
}

body.site.site-home.status-page .status-my-exit-start-hint {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: none;
  color: var(--status-subtle);
  text-align: center;
}

body.site.site-home.status-page .status-my-exit-ip {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--status-fg);
}

body.site.site-home.status-page .status-exit-chart-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--status-border);
}

body.site.site-home.status-page .status-chart-block-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--status-fg);
}

body.site.site-home.status-page .status-chart-block-hint,
body.site.site-home.status-page .status-chart-placeholder {
  margin: 0 0 10px;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: none;
  color: var(--status-subtle);
}

body.site.site-home.status-page .status-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--status-muted);
}

body.site.site-home.status-page .status-chart-legend-item::before {
  content: "■ ";
}

body.site.site-home.status-page .status-chart-legend-item--ok::before {
  color: #0b6e3f;
}

body.site.site-home.status-page .status-chart-legend-item--warn::before {
  color: #9a6700;
}

body.site.site-home.status-page .status-chart-legend-item--bad::before {
  color: #b42318;
}

.status-my-exit-chart {
  display: block;
  width: 100%;
  margin-top: 14px;
}

.status-check-result--inline {
  margin-top: 0;
  padding: 12px 0 0;
  border: none;
  background: transparent;
}

.status-check-summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--status-fg);
  list-style: none;
  margin-bottom: 0;
}

.status-check-summary::-webkit-details-marker {
  display: none;
}

.status-check[open] .status-check-summary {
  margin-bottom: 12px;
}

.status-check[open] {
  padding: 16px 20px;
}

.status-empty.bad {
  color: var(--status-bad);
}

.status-reliability {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.status-reliability ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.status-reliability li {
  margin: 4px 0;
}

.status-reliability--ok {
  background: #f0f7f4;
  border: 1px solid #b8dfc8;
  color: var(--status-subtle);
}

.status-reliability--warn {
  background: #fff9eb;
  border: 1px solid #f0d58a;
  color: #6b4f00;
}

.status-reliability--bad {
  background: #fff5f5;
  border: 1px solid #f5c2c2;
  color: #8a1f1f;
}

.status-svoboda {
  padding: 16px 20px;
}

.status-svoboda-summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--status-fg);
  list-style: none;
}

.status-svoboda-summary::-webkit-details-marker {
  display: none;
}

.status-svoboda[open] .status-svoboda-summary {
  margin-bottom: 12px;
}

.status-svoboda .status-summary {
  margin-top: 12px;
}

.status-overview {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.status-overview-head {
  margin-bottom: 14px;
}

.status-overview-head .status-section-title {
  margin: 0 0 4px;
}

.status-overview-head .status-section-hint {
  margin: 0;
}

.status-severity-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--status-border);
  background: var(--status-surface-muted);
  margin-bottom: 14px;
}

.status-severity-card--ok {
  border-color: #9fd4b8;
  background: var(--status-ok-bg);
}

.status-severity-card--warn {
  border-color: #e6c56d;
  background: #fff8e6;
}

.status-severity-card--bad {
  border-color: #efb4b4;
  background: var(--status-bad-bg);
}

.status-severity-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
}

.status-severity-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--status-fg);
}

.status-severity-unit {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--status-muted);
  text-align: center;
}

.status-severity-copy h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.status-severity-copy p {
  margin: 0;
  color: var(--status-subtle);
  line-height: 1.45;
}

.status-overview-ongoing-line {
  margin: 8px 0 0 !important;
  color: var(--status-bad) !important;
  font-weight: 600;
}

.status-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.status-overview-item {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--status-border);
  background: var(--status-surface);
}

.status-overview-item h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.status-overview-stat {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--status-muted);
}

.status-overview-stat b {
  color: var(--status-fg);
}

.status-overview-incident {
  margin: 8px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--status-bad);
}

.status-overview-ongoing {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--status-bad-bg);
  border: 1px solid #efb4b4;
}

.status-overview-ongoing h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.status-overview-ongoing ul {
  margin: 0;
  padding-left: 18px;
  color: var(--status-subtle);
}

.status-pill.warn {
  background: #fff3cd;
  color: var(--status-warn);
}

.status-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-period {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--status-surface);
  border: 1px solid var(--status-border);
}

.status-period-btn {
  border: 0;
  background: transparent;
  color: var(--status-muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.status-period-btn.active {
  background: var(--status-brand);
  color: #fff;
}

.status-block-title {
  margin: 8px 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--status-fg);
}

.status-block-hint {
  margin: 0 0 12px;
  color: var(--status-subtle);
  font-size: 0.95rem;
  line-height: 1.45;
}

.status-operator {
  padding: 20px;
  border-left: 4px solid var(--status-brand);
}

.status-operator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.status-operator-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--status-fg);
}

.status-operator-lead {
  margin: 0 0 10px;
  color: var(--status-subtle);
  line-height: 1.5;
}

.status-feed-kind {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8ebf8;
  color: var(--status-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-nodes--reference .status-node {
  border-left-color: #5b4fd1;
}

.status-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.status-node {
  padding: 18px;
  border: 1px solid var(--status-border);
  border-left: 4px solid var(--status-border-strong);
  background: var(--status-surface);
  color: var(--status-fg);
}

.status-node--ok { border-left-color: var(--status-ok); }
.status-node--bad { border-left-color: var(--status-bad); }

.status-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.status-node-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--status-fg);
}

.status-node-ip {
  margin: 0 0 8px;
  color: var(--status-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.status-node-detail {
  margin: 0 0 10px;
  line-height: 1.5;
  color: var(--status-fg);
}

.status-node-meta {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--status-subtle);
  font-size: 0.92rem;
}

.status-node-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.9rem;
  color: var(--status-muted);
  margin-bottom: 8px;
}

.status-node-stats b {
  color: var(--status-fg);
}

.status-node-ts {
  margin: 0;
  font-size: 0.88rem;
  color: var(--status-subtle);
}

.status-node-incident {
  margin: 10px 0 0;
  color: var(--status-bad);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.status-pill.ok {
  background: var(--status-ok-bg);
  color: var(--status-ok);
  border-color: #b9e4cb;
}

.status-pill.bad {
  background: var(--status-bad-bg);
  color: var(--status-bad);
  border-color: #f5c2c2;
}

.status-pill.unknown {
  background: #ececf5;
  color: #2f2b45;
  border-color: #d2d2e4;
}

.status-section-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--status-fg);
}

.status-section-hint {
  margin: 0 0 14px;
  color: var(--status-subtle);
  font-size: 0.92rem;
  line-height: 1.45;
}

.status-chart-grid {
  display: grid;
  gap: 18px;
}

.status-chart-block {
  border: 1px solid var(--status-border);
  border-radius: 12px;
  padding: 12px;
  background: var(--status-surface);
}

.status-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.status-chart-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--status-fg);
}

.status-chart-head span {
  color: var(--status-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.status-chart {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: var(--status-surface-muted);
  border: 1px solid var(--status-border);
}

.status-table-wrap {
  overflow-x: auto;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: var(--status-fg);
}

.status-table th,
.status-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--status-border);
  text-align: left;
  vertical-align: top;
}

.status-table th {
  color: var(--status-muted);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--status-surface-muted);
}

.status-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.status-feed-item {
  border: 1px solid var(--status-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--status-surface);
  color: var(--status-fg);
}

.status-feed-item time {
  display: block;
  color: var(--status-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.status-feed-item strong {
  margin-right: 8px;
  color: var(--status-fg);
}

.status-feed-item p {
  margin: 8px 0 0;
  line-height: 1.5;
  color: var(--status-subtle);
}

.status-feed-item--bad { border-left: 4px solid var(--status-bad); }
.status-feed-item--ok { border-left: 4px solid var(--status-ok); }

.status-empty {
  color: var(--status-muted);
  padding: 8px 0;
  font-weight: 500;
}

.status-note p {
  margin: 0;
  line-height: 1.55;
  color: var(--status-subtle);
}

.status-page .mono {
  font-family: var(--mono);
}

.status-check-form {
  display: grid;
  gap: 8px;
}

.status-check-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--status-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-check-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--status-border-strong);
  border-radius: 0;
  background: var(--status-surface);
  color: var(--status-fg);
  font-family: var(--mono);
  font-size: 0.95rem;
}

.status-check-input:focus {
  outline: 2px solid var(--status-brand);
  outline-offset: 1px;
}

.status-check-btn {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
}

.status-check-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status-check-secondary {
  justify-self: start;
  border: 0;
  padding: 0;
  background: none;
  color: var(--status-brand-dark);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.status-check-secondary:hover:not(:disabled) {
  color: var(--status-brand);
}

.status-check-secondary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status-check-note {
  margin: 10px 0 0;
  color: var(--status-subtle);
  font-size: 0.92rem;
}

.status-check-note.bad {
  color: var(--status-bad);
  font-weight: 600;
}

.status-check-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--status-border);
  border-radius: 12px;
  background: var(--status-surface-muted);
}

.status-check-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.status-check-result-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.status-check-result p {
  margin: 6px 0 0;
  line-height: 1.5;
  color: var(--status-fg);
}

.status-check-result-head--main h3 {
  font-size: 1.15rem;
}

.status-check-dual {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.status-check-panel {
  padding: 12px;
  border: 1px solid var(--status-border);
  border-radius: 10px;
  background: var(--status-surface);
}

.status-check-panel--muted {
  background: var(--status-surface-muted);
}

.status-check-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.status-check-panel .status-check-result-head {
  margin-bottom: 8px;
}

.status-check-verdict {
  margin-top: 12px !important;
  font-size: 1.02rem;
  font-weight: 600;
}

.status-check-summary {
  color: var(--status-muted);
}

.status-check-meta-line {
  font-size: 0.92rem;
  color: var(--status-subtle);
}

.status-check-report {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.status-check-report-section {
  border: 1px solid var(--status-border);
  border-radius: 10px;
  background: var(--status-surface);
  padding: 0 12px 10px;
}

.status-check-report-section > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 0;
}

.status-check-report-section--tech > summary {
  color: var(--status-subtle);
  font-size: 0.92rem;
}

.status-check-report-lines {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--status-muted);
  line-height: 1.5;
}

.status-check-report-tech {
  margin: 0;
  display: grid;
  gap: 8px;
}

.status-check-report-tech div {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 8px 12px;
  align-items: start;
}

.status-check-report-tech dt {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--status-subtle);
}

.status-check-report-tech dd {
  margin: 0;
  font-size: 0.92rem;
  word-break: break-word;
}

.status-check-result .status-node-meta {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .status-summary {
    grid-template-columns: 1fr;
  }

  body.site.site-home.status-page .status-panel {
    padding: 18px 16px;
  }
}

/* Svoboda Check — dark minimal (Inter) */

body.status-page {
  --status-bg: #000000;
  --status-card-bg: #1c1c1c;
  --status-blue: var(--status-card-bg);
  --status-text: #ffffff;
  --status-muted: rgba(255, 255, 255, 0.62);
  --status-line: rgba(255, 255, 255, 0.12);
  --status-card-fg: #ffffff;
  --status-card-muted: rgba(255, 255, 255, 0.72);
  --status-card-line: rgba(255, 255, 255, 0.14);
  --status-on-card-btn-bg: #006fff;
  --status-on-card-btn-fg: #ffffff;
  --status-ok-on-card: #4ade80;
  --status-bad-on-card: #f87171;
  --status-alert-on-card: #ffb4ab;
  --status-radius: 12px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--status-text);
  background: var(--status-bg);
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}

body.status-page * {
  box-sizing: border-box;
}

body.status-page.site .app.status-app {
  /* Keep top inset — padding:0 glued the logo bar to the viewport edge. */
  padding: calc(20px + env(safe-area-inset-top, 0px)) 0 48px;
  min-height: 100dvh;
}

body.status-page .status-app {
  width: min(920px, calc(100% - 32px));
  max-width: none;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 0 48px;
}

body.status-page .status-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 12px;
}

body.status-page .status-nav-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: min(52vw, 14rem);
  color: var(--status-text);
  text-decoration: none;
  flex: 0 1 auto;
  line-height: 0;
}
body.status-page .status-nav-logo .brand-logo {
  height: 24px;
  max-width: min(52vw, 168px);
}

body.status-page .status-nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

body.status-page .landing-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--status-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--status-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

body.status-page .status-nav-links #cabinet-link {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(42vw, 11.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

body.status-page .landing-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.status-page .landing-nav-btn--accent {
  border-color: transparent;
  background: #006fff;
  color: #fff;
}

body.status-page .landing-nav-btn--accent:hover {
  background: #2a86ff;
}

body.site-auth-in .landing-nav-btn--accent {
  display: none !important;
}

body.status-page .site-header-anchors {
  display: none;
}

/* —— Burger + full-screen menu (all site pages) —— */
body.status-page .site-header-nav {
  position: relative;
  z-index: 60;
}

body.status-page .site-burger {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid var(--status-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

body.status-page .site-burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1), top 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}

body.status-page .site-burger span:first-child { top: 15px; }
body.status-page .site-burger span:last-child { top: 23px; }

body.site-menu-open .site-burger span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

body.site-menu-open .site-burger span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

body.status-page .site-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(96px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  background: #000;
  overflow-y: auto;
  visibility: hidden;
  clip-path: circle(0% at calc(100% - 44px) 40px);
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.7s;
}

body.site-menu-open .site-menu {
  visibility: visible;
  clip-path: circle(200vmax at calc(100% - 44px) 40px);
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s;
}

body.site-menu-open {
  overflow: hidden;
}

body.site-menu-open .site-header-nav {
  transform: none !important;
}

body.status-page .site-menu-links {
  display: flex;
  flex-direction: column;
}

body.status-page .site-menu-links a,
body.status-page .site-menu-foot a {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.site-menu-open .site-menu-links a,
body.site-menu-open .site-menu-foot a {
  opacity: 1;
  transform: none;
}

body.site-menu-open .site-menu-links a:nth-child(1) { transition-delay: 0.18s; }
body.site-menu-open .site-menu-links a:nth-child(2) { transition-delay: 0.22s; }
body.site-menu-open .site-menu-links a:nth-child(3) { transition-delay: 0.26s; }
body.site-menu-open .site-menu-links a:nth-child(4) { transition-delay: 0.30s; }
body.site-menu-open .site-menu-links a:nth-child(5) { transition-delay: 0.34s; }
body.site-menu-open .site-menu-links a:nth-child(6) { transition-delay: 0.38s; }
body.site-menu-open .site-menu-foot a { transition-delay: 0.46s; }

body.status-page .site-menu-links a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Atyp Display", sans-serif;
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  text-decoration: none;
}

body.status-page .site-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.status-page .site-menu-cta,
body.status-page .site-menu-sub,
body.status-page .site-menu-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

body.status-page .site-menu-status {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff;
}

body.status-page .site-menu-foot .site-bot-cta {
  width: 100%;
  align-items: stretch;
}

body.status-page .site-menu-cta {
  width: 100%;
  box-sizing: border-box;
  background: #006fff;
  color: #fff;
}

body.status-page .site-menu-sub {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.site-auth-in .site-menu-cta {
  display: none;
}

@media (max-width: 1099px) {
  body.status-page .site-header-status,
  body.status-page .site-header-links #cabinet-link,
  body.status-page .site-header-links .landing-nav-btn--accent {
    display: none;
  }
}

@media (max-width: 560px) {
  body.status-page .site-header-links #logout-btn {
    display: none !important;
  }
}

@media (min-width: 1100px) {
  body.status-page .site-burger,
  body.status-page .site-menu {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.status-page .site-menu,
  body.status-page .site-menu-links a,
  body.status-page .site-menu-foot a {
    transition: none;
  }
}

@media (min-width: 1100px) {
  body.status-page .site-header-anchors {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-width: 0;
  }

  body.status-page .site-header-anchors + .status-nav-links {
    flex: 0 0 auto;
  }

  body.status-page .site-header-anchors a {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  body.status-page .site-header-anchors a:hover {
    color: #fff;
  }
}

body.status-page .landing-nav-btn.hidden,
body.status-page .landing-nav-btn[hidden],
body.status-page #logout-btn.hidden,
body.status-page #logout-btn[hidden],
body.status-page #cabinet-link.hidden,
body.status-page #cabinet-link[hidden],
body.status-page #nav-check-link.hidden,
body.status-page #nav-check-link[hidden] {
  display: none !important;
}

body.status-page .status-nav-links a:not(.landing-nav-btn) {
  color: var(--status-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

body.status-page .status-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 22rem);
  gap: 20px 24px;
  align-items: start;
  color: var(--status-text);
  margin-bottom: 28px;
}

body.status-page .status-intro-main {
  min-width: 0;
}

body.status-page .status-intro-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--status-muted);
}

body.status-page .status-intro-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.status-page .status-intro-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--status-muted);
  max-width: 42ch;
}

body.status-page .status-intro-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--status-card-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

body.status-page .status-intro-note-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--status-muted);
}

body.status-page .status-intro-note-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--status-muted);
}

body.status-page .status-intro-main .status-stale-warn {
  margin-top: 12px;
}

body.status-page .status-meta {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.status-page .status-meta b {
  font-weight: 500;
}

body.status-page .status-stale-warn {
  margin: 12px 0 0;
  font-size: 13px;
  color: #6d4c00;
  background: #fff8e1;
  padding: 10px 12px;
  border-radius: 8px;
}

body.status-page .status-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.status-page .status-main:not(.hidden) {
  display: block;
}

body.status-page .status-stack > * {
  flex: 0 0 auto;
}

body.status-page .status-my-exit,
body.status-page .status-more {
  border-left: 0;
}

body.status-page .status-panel {
  background: var(--status-card-bg);
  color: var(--status-card-fg);
  border-radius: var(--status-radius);
  padding: 24px;
  width: 100%;
}

body.status-page .status-panel .status-muted,
body.status-page .status-panel .status-empty,
body.status-page .status-panel .status-check-meta-line,
body.status-page .status-panel .status-summary-label,
body.status-page .status-panel .status-check-report-lines,
body.status-page .status-panel .status-node-meta,
body.status-page .status-panel .status-feed li,
body.status-page .status-panel #overview-period-hint,
body.status-page .status-panel #chart-hint {
  color: var(--status-card-muted);
}

body.status-page .status-panel .status-result-ip,
body.status-page .status-panel .status-summary-value,
body.status-page .status-panel .status-node-name,
body.status-page .status-panel .status-check-report-section > summary,
body.status-page .status-panel .status-check-verdict,
body.status-page .status-panel .status-table td {
  color: var(--status-card-fg);
}

body.status-page .status-panel .status-my-exit-stats,
body.status-page .status-panel .status-check-report,
body.status-page .status-panel .status-check-result,
body.status-page .status-panel .status-node,
body.status-page .status-panel .status-feed li {
  border-color: var(--status-card-line);
}

body.status-page .status-panel .status-my-exit-stats {
  border-top: 1px solid var(--status-card-line);
}

body.status-page .status-panel .status-check-report {
  border-top: 0;
  margin-top: 0;
}

body.status-page .status-panel .status-check-report-section {
  border-bottom: 1px solid var(--status-card-line);
}

body.status-page .status-panel .status-check-result {
  border-top: 1px solid var(--status-card-line);
}

body.status-page .status-panel .status-node {
  border-bottom: 1px solid var(--status-card-line);
}

body.status-page .status-panel .status-feed li {
  border-bottom: 1px solid var(--status-card-line);
}

body.status-page .status-panel .status-table th,
body.status-page .status-panel .status-table td {
  border-bottom: 1px solid var(--status-card-line);
}

body.status-page .status-panel .status-table th {
  color: var(--status-card-muted);
}

body.status-page .status-panel .status-summary-value.ok {
  color: var(--status-ok-on-card);
}

body.status-page .status-panel .status-summary-value.bad {
  color: var(--status-bad-on-card);
}

body.status-page .status-panel .status-alert,
body.status-page .status-panel .status-empty.bad {
  color: var(--status-alert-on-card);
}

body.status-page .status-more {
  padding: 0;
}

body.status-page .status-more > summary {
  padding: 20px 28px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
  color: #fff;
}

body.status-page .status-svoboda-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

body.status-page .status-svoboda-lead {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--status-card-muted);
}

body.status-page .status-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

body.status-page .status-panel-head .status-svoboda-lead {
  margin-bottom: 20px;
}

body.status-page .status-freshness {
  margin: 0;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.4;
  color: var(--status-card-muted);
  white-space: nowrap;
}

body.status-page .status-freshness--stale {
  color: #fbbf24;
}

body.status-page .status-reference-grid {
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
}

body.status-page .status-reference-card {
  padding: 12px 14px;
}

body.status-page .status-reference-card .status-server-card-title {
  font-size: 0.95rem;
}

body.status-page .status-reference-card .status-server-card-meta {
  font-size: 0.78rem;
}

body.status-page .status-pill--reference {
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: normal;
  text-align: right;
  max-width: 7.5rem;
  line-height: 1.25;
}

body.status-page .status-reference-card--restricted .status-server-card-note {
  color: var(--status-card-muted);
}

body.status-page .status-monitor-login {
  max-width: 28rem;
  margin: 0 auto;
}

body.status-page .status-monitor-login-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

body.status-page .status-monitor-login-lead {
  margin: 0 0 18px;
  color: var(--status-muted);
  line-height: 1.45;
}

body.status-page .status-monitor-login-form {
  display: grid;
  gap: 12px;
}

body.status-page .status-monitor-login-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--status-muted);
}

body.status-page .status-monitor-login-error {
  margin: 0;
  color: #f87171;
  font-size: 13px;
}

body.status-page .status-monitor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

body.status-page .status-intro--compact {
  margin-bottom: 0;
}

body.status-page .status-operators-note {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--status-muted);
}

body.status-page .status-operator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 10px;
}

body.status-page .status-operator-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--status-card-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

body.status-page .status-operator-card--ok {
  border-color: rgba(134, 239, 172, 0.35);
}

body.status-page .status-operator-card--warn {
  border-color: rgba(251, 191, 36, 0.35);
}

body.status-page .status-operator-card--bad {
  border-color: rgba(248, 113, 113, 0.35);
}

body.status-page .status-operator-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.status-page .status-operator-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

body.status-page .status-operator-you {
  font-size: 11px;
  line-height: 1.2;
  color: var(--status-card-muted);
}

body.status-page .status-check-meta-line .status-freshness-inline {
  color: var(--status-card-muted);
}

body.status-page .status-health-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

body.status-page .status-health-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  text-transform: capitalize;
}

body.status-page .status-health-lead {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--status-muted);
  max-width: 42ch;
}

body.status-page .status-health-stability {
  margin: 0;
  font-size: 14px;
  color: var(--status-card-muted);
}

body.status-page .status-health-stability strong {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

body.status-page .status-health-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 999px;
  border: 2px solid var(--status-line);
  background: rgba(255, 255, 255, 0.04);
}

body.status-page .status-health-score--calm {
  border-color: rgba(134, 239, 172, 0.45);
  box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.12) inset;
}

body.status-page .status-health-score--mild {
  border-color: rgba(251, 191, 36, 0.45);
}

body.status-page .status-health-score--moderate {
  border-color: rgba(251, 146, 60, 0.5);
}

body.status-page .status-health-score--severe {
  border-color: rgba(248, 113, 113, 0.55);
}

body.status-page .status-health-score-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

body.status-page .status-health-score-caption {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--status-card-muted);
  text-align: center;
}

body.status-page .status-health-components {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

body.status-page .status-health-component {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

body.status-page .status-health-component-label {
  font-size: 13px;
  color: var(--status-muted);
}

body.status-page .status-health-component-value {
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
}

body.status-page .status-health-component-bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

body.status-page .status-health-component-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #86efac, #fbbf24, #f87171);
}

body.status-page .status-health-chart-wrap {
  margin-bottom: 12px;
}

body.status-page .status-health-disclaimer {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--status-card-muted);
}

@media (max-width: 640px) {
  body.status-page .status-health-hero {
    grid-template-columns: 1fr;
  }

  body.status-page .status-health-score {
    width: 6.5rem;
    height: 6.5rem;
  }
}

body.status-page .status-more > *:not(summary) {
  padding-left: 28px;
  padding-right: 28px;
}

body.status-page .status-more > *:last-child {
  padding-bottom: 32px;
}

body.status-page .status-toolbar {
  margin-bottom: 24px;
}

body.status-page .status-ongoing-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(252, 165, 165, 0.12);
  border: 1px solid rgba(252, 165, 165, 0.35);
  color: #fecaca;
  font-size: 14px;
  line-height: 1.45;
}

body.status-page .status-svoboda-section {
  margin: 32px 0 8px;
}

body.status-page .status-svoboda-heading {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--status-card-muted);
}

body.status-page .status-subsection {
  margin-top: 12px;
  padding: 4px 16px 8px;
  border: 1px solid var(--status-card-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

body.status-page .status-subsection + .status-subsection {
  margin-top: 12px;
}

body.status-page .status-subsection-title {
  margin: 0;
  padding: 14px 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

body.status-page .status-subsection-lead {
  margin: -4px 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--status-card-muted);
}

body.status-page .status-subsection .status-reference-grid {
  margin-bottom: 12px;
}

body.status-page .status-subsection .status-simple-list {
  margin-bottom: 12px;
}

body.status-page .status-simple-list {
  margin: 0 0 24px;
  padding: 0 0 4px;
  list-style: none;
}

body.status-page .status-simple-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--status-card-muted);
  border-bottom: 1px solid var(--status-card-line);
}

body.status-page .status-simple-list .status-pill {
  margin-left: auto;
}

body.status-page .status-simple-list li:last-child {
  border-bottom: 0;
}

body.status-page .status-simple-list strong {
  color: var(--status-card-fg);
  font-weight: 500;
}

body.status-page .status-simple-list time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

body.status-page .status-node-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--status-card-muted);
}

body.status-page .status-chart-block {
  margin-bottom: 28px;
}

body.status-page .status-chart-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

body.status-page .status-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
}

body.status-page .status-summary-card {
  padding: 16px;
  border: 1px solid var(--status-card-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

body.status-page .status-summary-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--status-card-muted);
}

body.status-page .status-summary-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

body.status-page .status-server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

body.status-page .status-server-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--status-card-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

body.status-page .status-server-card--ok {
  border-color: rgba(74, 222, 128, 0.22);
}

body.status-page .status-server-card--bad {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.05);
}

body.status-page .status-server-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body.status-page .status-server-card-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}

body.status-page .status-server-card-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--status-card-muted);
}

body.status-page .status-server-card-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #fecaca;
}

body.status-page .status-server-card-chart {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--status-card-line);
}

body.landing-page #landing-server-status {
  margin-top: 4px;
}

body.landing-page .status-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.landing-page .status-server-grid {
  grid-template-columns: 1fr;
}

body.landing-page .status-landing-visitor {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--status-card-line);
  background: rgba(255, 255, 255, 0.04);
}

body.landing-page .status-landing-visitor-text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

body.landing-page .status-landing-visitor-label {
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

body.landing-page .status-landing-visitor-ip {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

body.landing-page .status-landing-visitor-server {
  color: var(--status-brand, #6bbfff);
}

body.landing-page .status-landing-visitor-server .status-country-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.landing-page .status-landing-visitor-server .status-ip-flag-img {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

body.landing-page .status-server-card--yours,
body.servers-status-page .status-server-card--yours {
  box-shadow: inset 0 0 0 1px rgba(138, 180, 255, 0.55);
}

body.landing-page .status-server-yours,
body.servers-status-page .status-server-yours,
body.status-page .status-server-yours {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dbeafe;
  background: rgba(0, 111, 255, 0.22);
  vertical-align: middle;
}

body.landing-page .status-load-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

body.landing-page .status-load-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

body.landing-page .status-load-bar-label {
  min-width: 72px;
  font-size: 0.78rem;
  color: var(--status-card-muted);
  white-space: nowrap;
}

body.landing-page .status-server-card--bad {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.05);
}

body.landing-page .status-load-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

body.landing-page .status-load-bar-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.35s ease;
}

body.landing-page .status-load-bar-fill--ok {
  background: #86efac;
}

body.landing-page .status-load-bar-fill--warn {
  background: #fbbf24;
}

body.landing-page .status-load-bar-fill--bad {
  background: #f87171;
}

body.landing-page .status-server-card-head .status-pill {
  flex-shrink: 0;
}

body.status-page .status-nodes {
  margin-bottom: 8px;
}

body.status-page .status-node {
  padding: 20px 0;
  border-bottom: 1px solid var(--status-card-line);
}

body.status-page .status-node:last-child {
  border-bottom: 0;
}

body.status-page .status-summary-value.ok {
  color: var(--status-ok-on-card);
}

body.status-page .status-summary-value.bad {
  color: var(--status-bad-on-card);
}

body.status-page .status-more > summary::-webkit-details-marker {
  display: none;
}

body.status-page .status-more[open] > summary {
  border-bottom: 1px solid var(--status-card-line);
}

body.status-page .status-how {
  margin-top: 16px;
}

body.status-page .status-how-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

body.status-page .status-how-list {
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--status-card-muted);
}

body.status-page .status-how-list li {
  margin: 0 0 12px;
}

body.status-page .status-how-list li:last-child {
  margin-bottom: 0;
}

body.status-page .status-how-list strong {
  color: var(--status-card-fg);
  font-weight: 500;
}

body.status-page .status-how-list code {
  display: inline;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #e5e5e5;
  word-break: normal;
}

body.status-page .status-muted {
  margin: 0 0 12px;
  color: var(--status-muted);
  font-size: 13px;
}

body.status-page .status-lead {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--status-muted);
}

body.status-page .status-empty {
  margin: 0;
  color: var(--status-muted);
  font-size: 14px;
}

body.status-page .status-panel .status-empty {
  color: var(--status-card-muted);
  font-size: 15px;
  padding: 0;
}

body.status-page .status-empty.bad,
body.status-page .status-alert {
  color: var(--status-alert-on-card);
  font-size: 14px;
  margin: 0 0 12px;
}

body.status-page .status-result {
  margin-bottom: 20px;
}

body.status-page .status-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.status-page .status-result-ip {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #fff;
}

body.status-page .status-check-verdict {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
}

body.status-page .status-check-meta-line {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--status-muted);
}

body.status-page .status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

body.status-page .status-pill.ok,
body.status-page .status-pill.not_blocked {
  background: rgba(34, 197, 94, 0.22);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08);
}

body.status-page .status-pill.bad,
body.status-page .status-pill.blocked {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.45);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.08);
}

body.status-page .status-pill.warn,
body.status-page .status-pill.degraded {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
}

body.status-page .status-pill.unknown {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}

body.status-page .status-my-exit-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--status-card-line);
  margin-bottom: 20px;
}

body.status-page .status-summary-label {
  display: block;
  font-size: 12px;
  color: var(--status-muted);
  margin-bottom: 4px;
}

body.status-page .status-summary-value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.status-page .status-actions {
  margin-top: 8px;
}

body.status-page .status-exit-start {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: var(--status-on-card-btn-bg);
  color: var(--status-on-card-btn-fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

body.status-page .status-exit-start:hover:not(:disabled) {
  opacity: 0.9;
}

body.status-page .status-exit-start:disabled {
  opacity: 0.6;
  cursor: wait;
}

body.status-page .status-actions .status-muted {
  margin-top: 8px;
  text-align: center;
}

body.status-page .status-reliability {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

body.status-page .status-reliability p {
  margin: 0;
}

body.status-page .status-reliability--warn {
  background: #fff8e1;
  color: #6d4c00;
}

body.status-page .status-reliability--bad {
  background: #ffebee;
  color: #b71c1c;
}

body.status-page .status-check-report {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  border: 0;
}

body.status-page .status-check-report-section {
  border-bottom: 1px solid var(--status-card-line);
}

body.status-page .status-panel .status-check-report-section > summary,
body.status-page .status-check-report-section > summary {
  padding: 12px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--status-card-fg);
  list-style: none;
}

body.status-page .status-check-report-section > summary::-webkit-details-marker {
  display: none;
}

body.status-page .status-panel .status-check-report-lines,
body.status-page .status-check-report-lines {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--status-card-muted);
  line-height: 1.6;
}

body.status-page .status-check-report-lines li {
  padding: 2px 0;
}

body.status-page .status-check-report-section--tech .status-check-report-lines {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
}

body.status-page .status-chart-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--status-card-line);
}

body.status-page .status-chart--timeline {
  display: block;
  width: 100%;
  height: 132px;
}

body.status-page .status-chart-caption,
body.status-page .status-chart-stats {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--status-card-muted);
}

body.status-page .status-chart-stats {
  margin-bottom: 10px;
}

body.status-page .status-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

body.status-page .status-chart-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--status-card-fg);
}

body.status-page .status-chart-meta {
  font-size: 12px;
  color: var(--status-card-muted);
  white-space: nowrap;
}

body.status-page .status-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--status-card-muted);
}

body.status-page .status-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.status-page .status-chart-legend-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

body.status-page .status-chart-legend-item--ok::before {
  background: #86efac;
}

body.status-page .status-chart-legend-item--warn::before {
  background: #fbbf24;
}

body.status-page .status-chart-legend-item--bad::before {
  background: #f87171;
}

body.status-page .status-chart {
  display: block;
  width: 100%;
  height: 160px;
}

body.status-page .status-check-form {
  margin-top: 0;
}

body.status-page .status-detected-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--status-card-muted);
}

body.status-page .status-ip-info {
  margin: 0 0 20px;
  display: grid;
  gap: 14px;
}

body.status-page .status-ip-info-ip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--status-card-line);
}

body.status-page .status-ip-info-ip-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body.status-page .status-ip-info-row {
  display: grid;
  grid-template-columns: 22px minmax(7.5rem, auto) 1fr;
  align-items: center;
  gap: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}

body.status-page .status-ip-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

body.status-page .status-ip-svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.status-page .status-ip-info-label {
  color: var(--status-card-muted);
}

body.status-page .status-ip-info-value {
  color: #a5f3fc;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  min-width: 0;
}

body.status-page .status-ip-info-value--ip {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1.2;
}

body.status-page .status-ip-flag-img {
  width: 28px;
  height: 21px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

body.status-page .status-ip-location-text {
  min-width: 0;
}

body.status-page .status-ip-flag {
  font-size: 16px;
  line-height: 1;
}

body.status-page .status-ip-provider-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

body.status-page .status-ip-provider-icon--mts {
  background: #e30611;
}

body.status-page .status-ip-provider-icon--megafon {
  background: #00b956;
}

body.status-page .status-ip-provider-icon--beeline {
  background: #ffcc00;
  color: #111;
}

body.status-page .status-ip-provider-icon--tele2 {
  background: #111;
  color: #ff3f81;
}

body.status-page .status-ip-provider-icon--rostelecom {
  background: #7700ff;
}

body.status-page .status-ip-provider-icon--hosting,
body.status-page .status-ip-provider-icon--vpn {
  background: rgba(255, 255, 255, 0.12);
}

body.status-page .status-ip-provider-name {
  min-width: 0;
  word-break: break-word;
}

body.status-page .status-exit-results {
  margin-top: 20px;
}

body.status-page .status-exit-results:empty {
  display: none;
}

body.status-page .status-exit-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.status-page .status-exit-alert {
  margin: 0 0 4px;
}

body.status-page .status-check-card {
  padding: 16px;
  border: 1px solid var(--status-card-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

body.status-page .status-check-card--hero.status-check-card--ok {
  border-color: rgba(74, 222, 128, 0.22);
}

body.status-page .status-check-card--hero.status-check-card--bad {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.05);
}

body.status-page .status-check-card--meta {
  padding: 12px 16px;
}

body.status-page .status-check-card-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

body.status-page .status-check-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.status-page .status-check-card--hero .status-result-ip {
  margin: 0;
  font-size: 22px;
}

body.status-page .status-check-card--hero .status-check-verdict {
  margin: 0;
}

body.status-page .status-exit-summary {
  margin: 0;
  padding: 0;
  border: 0;
}

body.status-page .status-tech-value--ok {
  color: #4ade80;
  font-weight: 600;
}

body.status-page .status-tech-value--bad {
  color: #f87171;
  font-weight: 600;
}

body.status-page .status-check-report {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  border: 0;
}

body.status-page .status-check-report-tech {
  display: grid;
  gap: 8px;
  margin: 0;
}

body.status-page .status-check-report-tech div {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--status-card-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

body.status-page .status-check-report-tech dt {
  margin: 0;
  font-size: 12px;
  color: var(--status-card-muted);
}

body.status-page .status-check-report-tech dd {
  margin: 0;
  font-size: 12px;
  color: var(--status-card-fg);
  word-break: break-word;
}

body.status-page .status-check-card--hero .status-reliability {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

body.status-page .status-check-card--hero .status-reliability--warn {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fde68a;
}

body.status-page .status-check-card--hero .status-reliability--bad {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

body.status-page .status-check-card--hero .status-reliability p {
  margin: 0;
}

body.status-page .status-check-report-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--status-card-muted);
  line-height: 1.6;
}

body.status-page .status-check-report-lines li {
  padding: 8px 12px;
  border: 1px solid var(--status-card-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

body.status-page .status-check-report-lines li + li {
  margin-top: 8px;
}

body.status-page .status-check-card--tech .status-check-report-tech dd {
  font-family: ui-monospace, "Cascadia Code", monospace;
}

body.status-page .status-check-card--meta .status-check-meta-line {
  margin: 0;
}

body.status-page .status-check-card--chart .status-chart-stats {
  margin: 0 0 12px;
}

body.status-page .status-check-card--chart .status-chart-legend {
  margin-top: 10px;
}

body.status-page .status-check-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--status-card-muted);
}

body.status-page .status-check-note.bad {
  color: var(--status-alert-on-card);
}

body.status-page .status-check-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.status-page .status-check-row {
  display: block;
}

body.status-page .status-check-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
}

body.status-page .status-check-btn {
  position: relative;
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 14px;
  background: var(--status-on-card-btn-bg);
  color: var(--status-on-card-btn-fg);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, box-shadow;
}

body.status-page .status-check-btn-label {
  position: relative;
  z-index: 1;
}

body.status-page .status-check-btn-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 100%
  );
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 0;
}

body.status-page .status-check-btn:hover:not(:disabled) {
  filter: brightness(1.03);
}

body.status-page .status-check-btn:disabled,
body.status-page .status-check-btn.is-loading {
  opacity: 0.88;
  cursor: wait;
}

body.status-page .status-check-btn:disabled .status-check-btn-shine,
body.status-page .status-check-btn.is-loading .status-check-btn-shine {
  opacity: 0;
}

body.status-page .status-text-btn {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.status-page .status-check-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--status-line);
}

body.status-page .status-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

body.status-page .status-period {
  display: flex;
  gap: 4px;
}

body.status-page .status-period-btn {
  padding: 6px 12px;
  border: 1px solid var(--status-card-line);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

body.status-page .status-period-btn.active {
  background: var(--status-on-card-btn-bg);
  border-color: var(--status-on-card-btn-bg);
  color: var(--status-on-card-btn-fg);
}

body.status-page .status-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.status-page .status-node-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 500;
  font-size: 14px;
}

body.status-page .status-country-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.status-page .status-server-card-title .status-country-label,
body.status-page .status-chart-head h4 .status-country-label {
  gap: 7px;
}

body.status-page .status-country-label .status-ip-flag-img {
  width: 22px;
  height: 16px;
}

body.status-page .status-node-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--status-card-muted);
}

body.status-page .status-check-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

body.status-page .status-credits {
  margin: 24px 4px 0;
}

body.status-page .status-credits-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

body.status-page .status-credits-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--status-card-muted);
}

body.status-page .status-credits a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.status-page .status-how-footnote {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--status-card-line);
  font-size: 12px;
  color: var(--status-card-muted);
}

body.status-page .status-how-footnote a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.status-page .status-footnote {
  margin: 8px 4px 0;
  font-size: 12px;
  color: var(--status-muted);
  line-height: 1.5;
}

body.status-page .status-footnote a {
  color: var(--status-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.status-page .status-overview-severity {
  margin-bottom: 12px;
  font-size: 14px;
}

body.status-page .status-overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

body.status-page .status-overview-chip {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

body.status-page .status-chart-grid {
  display: grid;
  gap: 12px;
}

@media (max-width: 900px) {
  body.status-page .status-server-grid {
    grid-template-columns: 1fr;
  }

  body.status-page .status-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body.status-page .status-app {
    width: calc(100% - 24px);
    padding: calc(16px + env(safe-area-inset-top, 0px)) 0 40px;
  }

  body.status-page.site .app.status-app {
    padding: calc(16px + env(safe-area-inset-top, 0px)) 0 40px;
  }

  body.status-page .status-intro-title {
    font-size: 24px;
  }

  body.status-page .status-panel {
    padding: 20px 18px;
  }

  body.status-page .status-my-exit-stats,
  body.status-page .status-summary {
    grid-template-columns: 1fr 1fr;
  }

  body.status-page .status-my-exit-stats > div:last-child,
  body.status-page .status-summary > div:last-child {
    grid-column: 1 / -1;
  }

  body.status-page .status-check-row {
    flex-direction: column;
  }
}

/* —— Landing (Check design system) —— */
body.landing-page,
body.landing-page button,
body.landing-page input,
body.landing-page a {
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

/* Figma Усть-Луга 28:933 — plaque fits site grid (≤920px), scales as one unit */
body.landing-page .status-intro.landing-hero-intro {
  display: block;
  margin-bottom: 28px;
}

body.landing-page .landing-hero {
  --hero-accent: #006fff;
  --hero-pad-x: calc(16 / 1016 * 100%);
  position: relative;
  container-type: inline-size;
  container-name: landing-hero;
  aspect-ratio: 1016 / 360;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  padding: 0;
  border-radius: calc(20 / 1016 * 100cqw);
  overflow: hidden;
  display: block;
  color: #fff;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.landing-page .landing-hero-mascot {
  position: absolute;
  /* Figma 28:935 — 699,-164 / 423×625 inside 1016×360 */
  left: calc(699 / 1016 * 100%);
  top: calc(-164 / 360 * 100%);
  width: calc(423 / 1016 * 100%);
  height: calc(625 / 360 * 100%);
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

body.landing-page .landing-hero-kicker {
  position: absolute;
  left: calc(31 / 1016 * 100%);
  top: calc(32 / 360 * 100%);
  z-index: 1;
  margin: 0;
  font-family: "Rene", sans-serif;
  font-weight: 400;
  font-size: calc(52.482 / 1016 * 100cqw);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #fff;
  white-space: nowrap;
  transform: rotate(-2.77deg);
  transform-origin: left center;
  -webkit-text-stroke: 0.14em var(--hero-accent);
  paint-order: stroke fill;
  text-shadow:
    0.03em 0.03em 0 var(--hero-accent),
    -0.03em 0.03em 0 var(--hero-accent),
    0.03em -0.03em 0 var(--hero-accent),
    -0.03em -0.03em 0 var(--hero-accent);
  pointer-events: none;
  user-select: none;
}

body.landing-page .landing-hero-title {
  position: absolute;
  left: var(--hero-pad-x);
  top: calc(171 / 360 * 100%);
  z-index: 1;
  margin: 0;
  width: calc(487 / 1016 * 100%);
  max-width: 52%;
  font-family: "Atyp Display", sans-serif;
  font-size: calc(62 / 1016 * 100cqw);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  color: #fff;
}

body.landing-page .landing-hero-lead {
  position: absolute;
  left: var(--hero-pad-x);
  top: calc(307 / 360 * 100%);
  z-index: 1;
  margin: 0;
  width: calc(615 / 1016 * 100%);
  max-width: 64%;
  font-family: "Atyp Text", sans-serif;
  font-size: calc(30 / 1016 * 100cqw);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  color: #ccc;
}

@media (max-width: 560px) {
  body.landing-page .landing-hero-lead {
    max-width: 62%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.landing-page .landing-hero-mascot {
    animation: landing-hero-mascot-drift 7s ease-in-out infinite;
  }

  body.landing-page .landing-hero-kicker {
    animation: landing-hero-kicker-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes landing-hero-mascot-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1.2%, 1.6%, 0);
  }
}

@keyframes landing-hero-kicker-in {
  from {
    opacity: 0;
    transform: rotate(-2.77deg) translate3d(-0.4em, 0.35em, 0);
  }
  to {
    opacity: 1;
    transform: rotate(-2.77deg) translate3d(0, 0, 0);
  }
}

body.landing-page .landing-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.landing-page .landing-section-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

body.landing-page .landing-tariff-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

body.landing-page #tariffs .land-pricing-grid {
  margin-top: 16px;
}

body.landing-page .landing-login:not(.hidden):not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.landing-page .landing-login.hidden,
body.landing-page .landing-login[hidden],
body.landing-page #login-card.hidden,
body.landing-page #login-card[hidden],
body.landing-page #tg-login-btn.hidden,
body.landing-page #tg-login-btn[hidden],
body.landing-page #cabinet-cta.hidden,
body.landing-page #cabinet-cta[hidden],
body.landing-page #cabinet-btn.hidden,
body.landing-page #cabinet-btn[hidden],
body.site-auth-in #login-card,
body.site-auth-in #tg-login-btn,
body.site-auth-in #cabinet-btn {
  display: none !important;
}

body.site-auth-pending .landing-actions {
  visibility: hidden;
}

body.site-auth-pending .site-header-links .landing-nav-btn.hidden {
  visibility: hidden;
}

body.site-auth-pending.site-auth-in .site-header-links .landing-nav-btn.hidden,
body.site-auth-pending.site-auth-out .site-header-links .landing-nav-btn.hidden {
  visibility: visible;
}

body.landing-page a.landing-primary-btn,
body.landing-page a.status-check-btn:not(.mkt-btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 14px;
  background: #006fff;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

body.landing-page a.landing-primary-btn:hover,
body.landing-page a.status-check-btn:not(.mkt-btn):hover {
  filter: brightness(1.03);
}

body.landing-page .landing-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--status-line);
  border-radius: 14px;
  background: transparent;
  color: var(--status-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

body.landing-page .landing-outline-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.landing-page .landing-btn-icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

body.landing-page #login-error:empty {
  display: none;
}

body.landing-page #login-error:not(:empty) {
  margin: 10px 0 0;
  color: var(--status-bad-on-card, #f87171);
}

body.landing-page .land-pricing {
  margin: 0;
}

body.landing-page .land-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
  border: 0;
}

body.landing-page .land-pricing-plan {
  gap: 8px;
  min-height: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--status-card-line);
  border-radius: 14px;
  color: var(--status-card-fg);
}

body.landing-page .land-pricing-term {
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--status-card-muted);
  opacity: 1;
}

body.landing-page .land-pricing-price {
  margin: 0;
  font-family: inherit;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--status-card-fg);
}

body.landing-page .land-pricing-off {
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: baseline;
  color: #4ade80;
  opacity: 1;
}

body.landing-page .land-pricing-extras {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.45;
  color: var(--status-muted);
}

body.landing-page .land-pricing-extras li + li {
  margin-top: 6px;
}

body.landing-page .site-footer {
  border-top: 1px solid var(--status-line);
  margin-top: 32px;
  padding: 24px 0 32px;
}

@media (max-width: 900px) {
  body.landing-page .land-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body.landing-page .land-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Svoboda Check inside Mini App tab */
body.miniapp-check-tab .tabs {
  z-index: 30;
}

body.miniapp-check-tab.status-page {
  background: #000;
  color: #fff;
}

body.miniapp-check-tab.status-page > .app {
  background: #000;
  padding-top: calc(8px + var(--safe-t));
}

body.miniapp-check-tab #view-check.panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: calc(88px + var(--safe-b));
}

body.miniapp-check-tab #view-check > .status-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

body.miniapp-check-tab .status-stack {
  padding-bottom: 8px;
}

#view-check .status-embed-legal {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--status-muted, rgba(255, 255, 255, 0.62));
}

#view-check .status-embed-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Telegram light theme contrast ——
   Mini App inherits TG CSS vars, but many UI tokens were painted for dark:
   pastel greens/pinks and white/8 fills go near-invisible on a white bg. */
html.tg-theme-light {
  --muted: color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 55%,
    var(--tg-theme-text-color, #18181b) 45%
  );
  --ok-fg: #0f7a3a;
  --ok-fg-soft: #148044;
  --bad-fg: #b42318;
  --bad-fg-soft: #c2352c;
  --warn-fg: #9a6700;
  --warn-fg-soft: #a16207;
  --ghost-fill: rgba(15, 23, 42, 0.05);
  --ghost-fill-2: rgba(15, 23, 42, 0.07);
  --ghost-fill-3: rgba(15, 23, 42, 0.1);
  --ghost-line: rgba(15, 23, 42, 0.12);
  --ghost-line-soft: rgba(15, 23, 42, 0.08);
}

html.tg-theme-light .chat-day {
  background: var(--ghost-fill-2);
}

html.tg-theme-light .sub-link-row {
  background: var(--ghost-fill);
}
html.tg-theme-light .sub-copy-btn {
  color: var(--accent);
}

html.tg-theme-light .btn.ghost {
  background: var(--ghost-fill-2);
  box-shadow: inset 0 0 0 1px var(--ghost-line-soft);
}

html.tg-theme-light .btn.danger {
  background: #f8e8e6;
  color: #8a1f16;
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.22);
}

html.tg-theme-light .reset-btn-spinner {
  border-color: rgba(138, 31, 22, 0.22);
  border-top-color: #8a1f16;
}
html.tg-theme-light .reset-status[data-state="loading"] {
  background: var(--ghost-fill);
  box-shadow: inset 0 0 0 1px var(--ghost-line-soft);
}
html.tg-theme-light .reset-status[data-state="loading"] .reset-status-icon::before {
  border-color: rgba(0, 0, 0, 0.12);
  border-top-color: var(--muted);
}
html.tg-theme-light .reset-status[data-state="ok"] {
  background: color-mix(in srgb, #34c759 12%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #34c759 28%, transparent);
}
html.tg-theme-light .reset-status[data-state="ok"] .reset-status-text {
  color: var(--ok-fg, #1f6b3a);
}
html.tg-theme-light .reset-status[data-state="ok"] .reset-status-icon::before {
  border-color: var(--ok-fg, #1f6b3a);
}
html.tg-theme-light .reset-status[data-state="err"] {
  background: color-mix(in srgb, #e07070 12%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e07070 30%, transparent);
}
html.tg-theme-light .reset-status[data-state="err"] .reset-status-text {
  color: var(--bad-fg, #8a1f16);
}
html.tg-theme-light .reset-status[data-state="err"] .reset-status-icon::before,
html.tg-theme-light .reset-status[data-state="err"] .reset-status-icon::after {
  background: var(--bad-fg, #8a1f16);
}

html.tg-theme-light .pill.ok {
  background: color-mix(in srgb, #34c759 16%, var(--card));
  color: var(--ok-fg);
}
html.tg-theme-light .pill.expired {
  background: color-mix(in srgb, #e07070 16%, var(--card));
  color: var(--bad-fg);
}
html.tg-theme-light .pill.off {
  background: var(--ghost-fill-2);
  color: var(--muted);
}

html.tg-theme-light .home-remaining.is-active .home-remaining-value {
  color: var(--ok-fg);
  background: color-mix(in srgb, #34c759 16%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #34c759 34%, transparent);
}

html.tg-theme-light .home-remaining.is-expired .home-remaining-value,
html.tg-theme-light .home-remaining.is-trial-pending .home-remaining-value {
  color: var(--bad-fg);
  background: color-mix(in srgb, #e07070 14%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e07070 32%, transparent);
}

html.tg-theme-light .product-tabs {
  background: var(--ghost-fill-2);
  box-shadow: inset 0 0 0 1px var(--ghost-line-soft);
}

html.tg-theme-light .product-tab:not(.on) {
  color: color-mix(in srgb, var(--fg) 72%, var(--muted) 28%);
}

html.tg-theme-light #pay-tab-steam:not(.on) {
  color: color-mix(in srgb, var(--fg) 82%, #1a6fb5 18%);
}

html.tg-theme-light .product-tab:not(.on):hover {
  background: var(--ghost-fill-3);
  color: var(--fg);
}

html.tg-theme-light .pay-earn-card .pay-earn-value,
html.tg-theme-light #pay-earn-card .pay-earn-value,
html.tg-theme-light .pay-earn-value,
html.tg-theme-light .pay-line.cashback b,
html.tg-theme-light #pay-promo-note.ok,
html.tg-theme-light .tag.limited,
html.tg-theme-light .pay-preset-badge.owned,
html.tg-theme-light .pay-preset.is-selected .pay-preset-badge.price {
  color: var(--ok-fg-soft);
}

html.tg-theme-light .pay-line .deal-now,
html.tg-theme-light .pay-line.discount b {
  color: #0f7a3a;
}

html.tg-theme-light .pay-preset-badge.price {
  background: var(--ghost-fill-2);
  border-color: var(--ghost-line);
  color: var(--fg);
}

html.tg-theme-light #pay-promo-note.err,
html.tg-theme-light .pay-promo-error,
html.tg-theme-light #steam-note.err {
  color: var(--bad-fg);
}

html.tg-theme-light .pay-promo-row input.is-ok {
  background: rgba(15, 122, 58, 0.08);
  box-shadow: inset 0 0 0 1px rgba(15, 122, 58, 0.45);
}

html.tg-theme-light .pay-promo-row input.is-err {
  background: rgba(180, 35, 24, 0.08);
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.45);
}

html.tg-theme-light #steam-note.ok,
html.tg-theme-light .steam-status[data-phase="done"] {
  color: var(--ok-fg-soft);
}

html.tg-theme-light .steam-upsell-kicker,
html.tg-theme-light .steam-deal-kicker {
  color: var(--warn-fg);
}

html.tg-theme-light .steam-upsell-title,
html.tg-theme-light .steam-upsell {
  color: var(--fg);
}

html.tg-theme-light .steam-checkout-summary .muted {
  color: var(--muted);
}

html.tg-theme-light .steam-status[data-phase="error"] {
  color: var(--bad-fg);
}

html.tg-theme-light .os-select,
html.tg-theme-light .mode-row .chip,
html.tg-theme-light .chip {
  background: var(--ghost-fill-2);
  box-shadow: inset 0 0 0 1px var(--ghost-line-soft);
}

html.tg-theme-light .chip.on {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: inset 0 0 0 1px transparent;
  font-weight: 600;
}

html.tg-theme-light .faq-item,
html.tg-theme-light .glossary-item,
html.tg-theme-light .price-row,
html.tg-theme-light .pay-line {
  border-color: var(--ghost-line-soft);
}

/* Bottom glass nav: frosted light capsule, dark labels */
html.tg-theme-light .tabs-glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72) 42%, rgba(248, 248, 250, 0.82)),
    rgba(244, 244, 247, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.12);
}

html.tg-theme-light .tabs-indicator {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7)),
    rgba(51, 144, 236, 0.12);
  border: 1px solid rgba(51, 144, 236, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 14px rgba(51, 144, 236, 0.16);
}

html.tg-theme-light .tabs button {
  color: rgba(24, 24, 27, 0.58);
}

html.tg-theme-light .tabs button.on,
html.tg-theme-light .tabs button[data-tab="ai"].on {
  color: #1a6fb5;
}

html.tg-theme-light .tabs button.on span {
  color: #1a6fb5;
}

html.tg-theme-light .text-btn,
html.tg-theme-light .site-link {
  color: color-mix(in srgb, var(--muted) 70%, var(--fg) 30%);
}

html.tg-theme-light .text-btn:hover,
html.tg-theme-light .site-link:hover {
  color: var(--fg);
}

html.tg-theme-light .bubble.bot {
  box-shadow: inset 0 0 0 1px var(--ghost-line-soft);
}

html.tg-theme-light .chat-suggest-inline .chip {
  background: var(--ghost-fill-2);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--ghost-line);
}

html.tg-theme-light .profile-load-error {
  color: var(--bad-fg);
  background: color-mix(in srgb, #e07070 12%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e07070 28%, transparent);
}

body.service-page {
  background: #000;
}

body.service-page .svc-kicker {
  margin: 0 0 12px;
  color: #006fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.service-page .svc-hero h1,
body.service-page .svc-block h2,
body.service-page .svc-card h3,
body.service-page .svc-steps h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

body.service-page .svc-hero {
  padding: 28px 0 8px;
}

body.service-page .svc-hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(40px, 6vw, 64px);
  color: #fff;
}

body.service-page .svc-lead,
body.service-page .svc-card p,
body.service-page .svc-steps p,
body.service-page .svc-data p,
body.service-page .svc-company p {
  color: #c6c6cc;
  font-size: 16px;
  line-height: 1.5;
}

body.service-page .svc-lead {
  max-width: 62ch;
  margin: 18px 0 0;
}

body.service-page .svc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

body.service-page .svc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #006fff;
  color: #fff;
  font-family: var(--font-text);
  font-size: 15px;
  text-decoration: none;
}

body.service-page .svc-btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body.service-page .svc-block {
  margin-top: 48px;
}

body.service-page .svc-block h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 36px);
  color: #fff;
}

body.service-page .svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.service-page .svc-card,
body.service-page .svc-data,
body.service-page .svc-company {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

body.service-page .svc-card {
  padding: 20px;
}

body.service-page .svc-card h3,
body.service-page .svc-steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
}

body.service-page .svc-card p,
body.service-page .svc-steps p {
  margin: 0;
}

body.service-page .svc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.service-page .svc-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

body.service-page .svc-steps li > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #006fff;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
}

body.service-page .svc-data {
  padding: 24px;
}

body.service-page .svc-list {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

body.service-page .svc-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 16px;
  color: #c6c6cc;
  font-size: 16px;
  line-height: 1.45;
}

body.service-page .svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #006fff;
}

body.service-page .svc-company {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 24px;
}

body.service-page .svc-company dl {
  margin: 0;
}

body.service-page .svc-company dl div + div {
  margin-top: 12px;
}

body.service-page .svc-company dt {
  color: #8a8a93;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.service-page .svc-company dd {
  margin: 2px 0 0;
  font-size: 16px;
}

body.service-page a {
  color: #7eb6ff;
}

body.service-page .svc-btn,
body.service-page .status-nav a,
body.service-page .svc-foot a {
  color: inherit;
}

body.service-page .svc-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a8a93;
  font-size: 14px;
}

body.service-page .svc-foot p {
  margin: 0;
}

@media (max-width: 720px) {
  body.service-page .svc-grid,
  body.service-page .svc-company {
    grid-template-columns: 1fr;
  }
}

/* AI Subscriptions Shop Section */
.shop-sales-unavailable {
  margin-bottom: 12px;
  border-color: color-mix(in srgb, var(--muted) 35%, var(--line));
  background: color-mix(in srgb, var(--card) 92%, var(--muted));
}

.shop-sales-unavailable-text {
  margin: 0;
  color: var(--text);
  font-size: 13.5px;
}

.shop-esim-section {
  margin-top: 40px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.esim-shop-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.esim-search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  background: var(--card);
  color: var(--text);
  box-sizing: border-box;
}

.esim-pick-hint {
  margin: 0;
  line-height: 1.45;
}

.esim-popular-scroll {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.esim-popular-scroll.hidden {
  display: none;
}

.esim-popular-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.esim-popular-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.esim-popular-scrollbar {
  display: none;
  padding: 0 2px;
  touch-action: none;
}

@media (hover: hover) and (pointer: fine) {
  .esim-popular-scrollbar:not(.hidden) {
    display: block;
  }
}

.esim-popular-scrollbar-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.esim-popular-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 36px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(108, 188, 255, 0.85), rgba(108, 188, 255, 0.55));
  box-shadow: 0 0 12px rgba(108, 188, 255, 0.35);
  cursor: grab;
  transition: background 0.15s ease;
  will-change: transform, width;
}

.esim-popular-scrollbar-thumb:active {
  cursor: grabbing;
  background: linear-gradient(90deg, rgba(108, 188, 255, 1), rgba(108, 188, 255, 0.7));
}

.esim-popular-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.esim-popular-chip .esim-flag-img,
.esim-popular-chip .esim-flag-fallback {
  flex-shrink: 0;
}

.esim-dest-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.esim-dest-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.esim-dest-row span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-weight: 600;
}

.esim-dest-kind {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.esim-pager {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 0;
}

.esim-pager-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.esim-pager-label {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.esim-pager-btn {
  width: 100%;
  min-width: 0;
}

.esim-plans-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.esim-checkout .esim-pay-panel {
  margin-top: 0;
  margin-bottom: 0;
}

.esim-checkout {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.esim-modal-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.esim-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.esim-plan-row.on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.esim-plan-row.on .esim-plan-main b,
.esim-plan-row.on .esim-plan-price {
  color: #fff;
}

.esim-plan-row.on .esim-plan-main .hint {
  color: rgba(255, 255, 255, 0.84);
}

.esim-plan-row.is-unavailable {
  opacity: 0.62;
}

.esim-plan-row.on .esim-plan-unavail {
  color: rgba(255, 255, 255, 0.92);
}

.esim-plan-unavail {
  display: block;
  margin-top: 4px;
  color: #f59e0b;
  font-size: 11.5px;
}

.esim-plan-main b {
  display: block;
  font-size: 15px;
}

.esim-plan-main .hint {
  margin-top: 2px;
  font-size: 12px;
}

.esim-plan-price {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.esim-flag-img {
  width: 28px;
  height: 21px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.esim-flag-fallback {
  width: 28px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.esim-dest-row .esim-flag-img,
.esim-dest-row .esim-flag-fallback {
  flex-shrink: 0;
}

#esim-cashback-card.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.ai-card.is-unavailable {
  opacity: 0.62;
}

.ai-card-unavail-label {
  margin: 0;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 40%, var(--card));
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.25;
  text-align: center;
}

.shop-ai-section {
  margin-top: 28px;
  margin-bottom: 24px;
}
.shop-section-head {
  margin-bottom: 14px;
}
.shop-section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 4px;
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 340px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
}
.ai-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.ai-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ai-card:active {
  transform: scale(0.97);
}
.ai-card-skeleton {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
}
.ai-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.ai-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.ai-card-icon svg {
  width: 22px;
  height: 22px;
}
.ai-card-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ai-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
  margin: 0 0 12px;
}
.ai-card-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 12px;
}
.ai-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-card-footer.is-stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.ai-card-footer.is-stacked .ai-card-price {
  width: 100%;
}

.ai-card-footer.is-stacked .ai-card-btn {
  width: 100%;
  padding: 9px 10px;
  font-size: 11.5px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  border-radius: 12px;
}
.ai-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.ai-card-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 0;
  background: color-mix(in srgb, var(--accent) 85%, transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: none;
}

/* AI Buy Modal specifics */
/* AI Buy Modal specifics */
.ai-modal-sheet {
  width: min(100%, 460px);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ai-modal-body {
  white-space: normal;
  color: var(--fg);
  padding-bottom: 8px;
}

.ai-buy-product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.ai-buy-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ai-buy-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.ai-buy-details {
  flex: 1;
  min-width: 0;
}

.ai-buy-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
  margin-bottom: 4px;
}

.ai-buy-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-buy-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ai-buy-term,
.ai-buy-secure-pill {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 6px;
}

.ai-buy-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-left: 3px solid var(--accent);
}

.ai-buy-section {
  margin-bottom: 14px;
}

.ai-buy-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}

.ai-buy-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ai-buy-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.ai-buy-feature-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #10b981;
}

.ai-buy-feature-icon svg {
  width: 100%;
  height: 100%;
}

.ai-buy-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-buy-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 12px;
}

.ai-buy-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-buy-step-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
}

.ai-buy-trust-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 14px;
  padding: 11px 13px;
  margin-top: 4px;
  margin-bottom: 14px;
}

.ai-buy-trust-icon {
  color: #10b981;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-buy-trust-text {
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.ai-buy-trust-text b {
  color: #10b981;
}

.ai-buy-method-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-buy-method-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-buy-method-info {
  flex: 1;
  min-width: 0;
}

.ai-buy-method-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.ai-buy-method-types {
  font-size: 11px;
  color: var(--muted);
}

.ai-cashback-card {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-cashback-card .loyalty-line {
  align-items: center;
  gap: 10px;
}

.ai-cashback-card .loyalty-line > .label {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  padding-top: 0;
}

.ai-cashback-card .pay-redeem-controls .loyalty-line > .hint.tight {
  padding-top: 0;
  font-size: 13px;
}

.ai-cashback-card .pay-toggle {
  margin-top: 12px;
}

.ai-cashback-card .pay-redeem-controls {
  margin-top: 10px;
}

.ai-buy-pay-block {
  margin-top: 14px;
}

.ai-buy-pay-block .label {
  margin-bottom: 8px;
}

.ai-buy-pay-block .mode-row {
  margin-bottom: 8px;
}

.ai-buy-bill-details {
  margin-top: 14px;
  margin-bottom: 4px;
  padding: 0 4px;
}

.ai-buy-bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.ai-buy-bill-discount {
  color: #34c759;
  font-weight: 550;
}

.ai-buy-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 14px;
  margin-bottom: 14px;
}

.ai-buy-total-row b {
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.01em;
}

.ai-buy-status-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}

#esim-plans-modal .modal-sheet {
  padding-top: 26px;
}

#esim-plans-modal .modal-head {
  margin-bottom: 14px;
}

#esim-plans-modal .ai-buy-status-card {
  margin-top: 14px;
  margin-bottom: 4px;
}

#esim-plans-modal .esim-checkout > .btn {
  margin-bottom: 0;
}

.ai-buy-spinner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ai-buy-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes ai-spin {
  to { transform: rotate(360deg); }
}

#ai-buy-status-text {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.ai-buy-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-buy-actions .btn {
  width: 100%;
}

.ai-buy-footer-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* Fulfill Success UI */
.ai-fulfill-success {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.ai-fulfill-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-fulfill-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-fulfill-title {
  font-size: 15px;
  font-weight: 700;
  color: #10b981;
}

.ai-fulfill-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.ai-fulfill-link-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
}

.ai-fulfill-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ai-fulfill-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-fulfill-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  color: #6cbcff;
  font-size: 12px;
  font-family: monospace;
  outline: none;
}

.ai-copy-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ai-copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.ai-copy-btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.ai-activate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
}

.ai-fulfill-note {
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 10px;
  padding: 9px 11px;
}

/* Cabinet motion (blocks only — no text splits) */
.motion-enter:not(.motion-in) {
  opacity: 0;
  transform: translateY(18px);
}
.motion-enter.motion-in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.55s var(--app-ease),
    transform 0.55s var(--app-ease);
  transition-delay: var(--motion-delay, 0s);
}
html.motion-reduce .motion-enter {
  opacity: 1;
  transform: none;
  transition: none;
}
.panel.panel-switch {
  animation: app-panel-in 0.42s var(--app-ease) both;
}
@keyframes app-panel-in {
  from {
    opacity: 0.88;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-sheet.modal-sheet--anim {
  animation: app-sheet-in 0.48s var(--app-ease) both;
}
@keyframes app-sheet-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
body:not(.site):not(.go-page) .ai-card {
  transition:
    transform 0.45s var(--app-ease),
    border-color 0.35s var(--app-ease),
    box-shadow 0.45s var(--app-ease);
}
@media (hover: hover) and (pointer: fine) {
  body:not(.site):not(.go-page) .ai-card:hover {
    transform: translateY(-2px);
  }
}

