/* SKL VPN — public site. Black / red theme, mobile-first. */

:root {
  --bg: #070707;
  --bg-elev: #0f0f0f;
  --bg-card: #121212;
  --bg-card-2: #171717;
  --line: #242424;
  --line-strong: #333;
  --text: #f4f4f4;
  --text-muted: #9a9a9a;
  --text-dim: #6b6b6b;
  --red: #e10600;
  --red-bright: #ff2f2f;
  --red-dark: #8a0000;
  --red-soft: color-mix(in srgb, var(--red), transparent 86%);
  --accent-rgb: 225, 6, 0;
  --ok: #2ecc71;
  --warn: #f5b942;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px color-mix(in srgb, var(--red-bright), transparent 65%), 0 12px 40px color-mix(in srgb, var(--red), transparent 72%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--red), transparent 84%), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, color-mix(in srgb, var(--red-dark), transparent 82%), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 12px; }
code { font-family: var(--mono); font-size: 0.92em; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.eyebrow { color: var(--red-bright); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.lead { font-size: 18px; color: var(--text-muted); max-width: 56ch; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row--form { align-items: stretch; }
.row--form .input { flex: 1 1 220px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  min-height: 44px; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: linear-gradient(135deg, var(--red-bright), var(--red) 55%, var(--red-dark)); color: #fff; box-shadow: 0 8px 28px color-mix(in srgb, var(--red), transparent 72%); }
.btn--primary:hover { box-shadow: var(--glow); }
.btn--primary:active { box-shadow: none; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--red-bright); color: #fff; background: var(--red-soft); }
.btn--sm { padding: 8px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 14px 22px; font-size: 17px; }
.btn--block { width: 100%; }

.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: #0b0b0b; color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus { border-color: var(--red-bright); box-shadow: 0 0 0 3px var(--red-soft); }
.input::placeholder { color: var(--text-dim); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field { display: grid; gap: 6px; margin: 12px 0; }
.field > span { font-size: 14px; color: var(--text-muted); }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--red-soft); color: var(--red-bright); border: 1px solid color-mix(in srgb, var(--red-bright), transparent 65%); }
.badge--ok { background: rgba(46, 204, 113, .12); color: var(--ok); border-color: rgba(46, 204, 113, .35); }
.badge--warn { background: rgba(245, 185, 66, .12); color: var(--warn); border-color: rgba(245, 185, 66, .35); }
.badge--muted { background: #1a1a1a; color: var(--text-muted); border-color: var(--line-strong); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(7, 7, 7, .78); border-bottom: 1px solid color-mix(in srgb, var(--red), var(--line) 70%); box-shadow: 0 10px 40px color-mix(in srgb, var(--red), transparent 92%); }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand__mark { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; filter: drop-shadow(0 4px 14px color-mix(in srgb, var(--red), transparent 45%)); transition: transform .2s ease; }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand em { color: var(--red-bright); font-style: normal; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.nav a:hover { color: #fff; background: #151515; }
.topbar__auth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-card); }
.user-chip__avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--red-bright), var(--red-dark)); }
.user-chip__name { font-weight: 700; font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__logout { background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.user-chip__logout:hover { color: var(--red-bright); background: var(--red-soft); }

@media (max-width: 720px) {
  .topbar__inner { flex-wrap: wrap; row-gap: 6px; padding: 8px 0; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .topbar__auth { margin-left: auto; }
  .btn--sm.topbar-login { padding: 8px 10px; }
  #btn-login { font-size: 13px; }
}

/* Banners */
.banner { margin-top: 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-card); }
.banner--warning { border-color: rgba(245, 185, 66, .4); background: rgba(245, 185, 66, .08); }
.banner--info { border-color: color-mix(in srgb, var(--red-bright), transparent 60%); background: var(--red-soft); }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(24px, 5vw, 56px); }
.hero__inner { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 28px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hero__facts li { padding: 12px 14px; border-radius: 12px; background: var(--bg-card); border: 1px solid color-mix(in srgb, var(--red), var(--line) 80%); display: grid; gap: 2px; }
.hero__facts strong { font-size: 15px; }
.hero__facts span { color: var(--text-muted); font-size: 13px; }
.hero__art { position: relative; min-height: 260px; display: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .6; }
.orb--1 { width: 260px; height: 260px; background: var(--red); top: 10%; left: 20%; }
.orb--2 { width: 200px; height: 200px; background: var(--red-dark); bottom: 0; right: 10%; }
.shield { position: relative; display: grid; place-items: center; height: 100%; }
.shield svg { filter: drop-shadow(0 20px 50px color-mix(in srgb, var(--red), transparent 55%)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
/* A pulse travelling along the route of the logo mark (pathLength="100" on the path). */
.hero-mark__pulse { stroke-dasharray: 14 86; stroke-dashoffset: 100; animation: route-pulse 2.8s linear infinite; }
@keyframes route-pulse { to { stroke-dashoffset: 0; } }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.3fr 1fr; }
  .hero__art { display: block; }
}

/* Sections */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .02) 20%, rgba(255, 255, 255, .02) 80%, transparent); }
.section__head { margin-bottom: 24px; max-width: 70ch; }

.card { background: var(--bg-card); border: 1px solid color-mix(in srgb, var(--red), var(--line) 84%); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 color-mix(in srgb, var(--red-bright), transparent 80%); }
.card--center { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 32px 20px; }
.card--empty { text-align: center; }
.card--empty .row { justify-content: center; margin-top: 8px; }
.card--skeleton { min-height: 260px; background: linear-gradient(100deg, #111 40%, #181818 50%, #111 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.grid { display: grid; gap: 16px; }
.grid--tariffs { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Tariffs */
.tariff { display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.tariff::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--red-bright), var(--red-dark)); opacity: .9; }
.tariff--featured { border-color: color-mix(in srgb, var(--red-bright), transparent 55%); box-shadow: var(--glow); }
.tariff__head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.tariff__name { margin: 0; font-size: 20px; }
.tariff__price { display: flex; align-items: baseline; gap: 6px; }
.tariff__amount { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.tariff__period { color: var(--text-muted); }
.tariff__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--text-muted); flex: 1; }
.tariff__features li { display: flex; gap: 8px; align-items: start; }
.tariff__features li::before { content: "✓"; color: var(--red-bright); font-weight: 800; flex-shrink: 0; }

/* Benefits + steps */
.benefits { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.benefits li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card); display: flex; gap: 10px; align-items: center; }
.benefits li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 12px var(--red-bright); flex-shrink: 0; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { padding: 20px; border-radius: var(--radius); background: var(--bg-card-2); border: 1px solid color-mix(in srgb, var(--red), var(--line) 82%); }
.step__num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 800; margin-bottom: 10px; }
.step h3 { font-size: 17px; }
.step p { color: var(--text-muted); margin: 0; }

/* Subscriptions */
#subscriptions { display: grid; gap: 16px; margin-bottom: 16px; }
.subscription__head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 14px; }
.subscription__title { margin: 0; }
.subscription__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.subscription__stats > div { padding: 10px 12px; border-radius: 12px; background: #0d0d0d; border: 1px solid var(--line); display: grid; gap: 2px; }
.stat__label { color: var(--text-muted); font-size: 12px; }
.stat__value { font-size: 15px; }
.subscription__links { display: grid; gap: 10px; }
.linkrow { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #0d0d0d; }
.linkrow__label { font-weight: 700; font-size: 14px; }
.linkrow__value code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 13px; }
.linkrow__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.apps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.apps a { font-size: 13px; }
@media (min-width: 760px) {
  .linkrow { grid-template-columns: 150px 1fr auto; align-items: center; }
}

/* Support chat */
.support-layout { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .support-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--bg-card-2); }
.chat__messages { padding: 16px; display: flex; flex-direction: column; gap: 10px; height: min(60vh, 520px); overflow-y: auto; background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--red), transparent 94%), transparent 70%); }
.chat__empty { margin: auto; color: var(--text-dim); text-align: center; max-width: 36ch; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; word-wrap: break-word; white-space: pre-wrap; position: relative; animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.msg--user { align-self: flex-end; background: linear-gradient(135deg, var(--red-bright), var(--red) 50%, var(--red-dark)); color: #fff; border-bottom-right-radius: 6px; }
.msg--staff { align-self: flex-start; background: #1b1b1b; border: 1px solid var(--line-strong); border-bottom-left-radius: 6px; }
.msg--system { align-self: center; background: transparent; color: var(--text-dim); font-size: 13px; padding: 4px 8px; text-align: center; }
.msg__author { display: block; font-size: 12px; font-weight: 700; color: var(--red-bright); margin-bottom: 4px; }
.msg__time { display: block; font-size: 11px; opacity: .6; margin-top: 4px; text-align: right; }
.msg--user .msg__time { color: rgba(255, 255, 255, .8); }
.msg img { border-radius: 10px; margin-top: 6px; max-height: 320px; }
.msg a.file { color: var(--red-bright); }
.chat__form { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-card-2); align-items: end; }
.chat__input { resize: none; max-height: 140px; }
.chat__foot { padding: 0 16px 12px; background: var(--bg-card-2); min-height: 18px; }
.support-aside { display: grid; gap: 12px; align-content: start; }

/* Rules */
.rules summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::before { content: "▸"; color: var(--red-bright); transition: transform .2s ease; }
.rules[open] summary::before { transform: rotate(90deg); }
.rules__text { margin: 16px 0 0; white-space: pre-wrap; font-family: var(--font); color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.rules__text--modal { max-height: 50vh; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #0b0b0b; margin-bottom: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--text-muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }
.modal__box { position: relative; width: min(480px, 100%); background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); max-height: calc(100vh - 32px); overflow: auto; }
.modal__box--wide { width: min(760px, 100%); }
.modal__box--qr { width: min(360px, 100%); text-align: center; }
.modal__box--qr img { margin: 12px auto; border-radius: 12px; background: #fff; padding: 10px; }
.modal__close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--text-muted); font-size: 26px; cursor: pointer; line-height: 1; padding: 6px; }
.modal__close:hover { color: #fff; }
.modal__steps { padding-left: 20px; color: var(--text-muted); }
.modal__steps li { margin-bottom: 6px; }
.login-wait { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--text-muted); font-size: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--red-bright); animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.code-block { display: block; padding: 10px 12px; border-radius: 10px; background: #0b0b0b; border: 1px solid var(--line); color: var(--text-muted); overflow-x: auto; user-select: all; }
.buy-summary { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card); margin-bottom: 8px; display: grid; gap: 4px; }
.buy-summary strong { font-size: 18px; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.buy-total strong { font-size: 22px; }
.promo-status { min-height: 18px; color: var(--text-muted); transition: color .2s ease; }
.promo-status--ok { color: var(--ok); }
.promo-status--error { color: var(--red-bright); }
.card, .msg, .modal__box { transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease; }
.card:hover { border-color: var(--line-strong); }
.modal:not(.hidden) .modal__box { animation: modal-in .22s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #161616; border: 1px solid var(--line-strong); color: var(--text); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: min(520px, calc(100% - 32px)); z-index: 90; font-size: 14px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--error { border-color: color-mix(in srgb, var(--red-bright), transparent 50%); }
.toast--ok { border-color: rgba(46, 204, 113, .5); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Accent themes (switcher in the top bar) ---------- */
html[data-theme="blue"] { --red: #2563eb; --red-bright: #60a5fa; --red-dark: #1e3a8a; }
html[data-theme="green"] { --red: #16a34a; --red-bright: #4ade80; --red-dark: #14532d; }
html[data-theme="violet"] { --red: #7c3aed; --red-bright: #a78bfa; --red-dark: #4c1d95; }
html[data-theme="amber"] { --red: #d97706; --red-bright: #fbbf24; --red-dark: #92400e; }
html[data-theme="cyan"] { --red: #0891b2; --red-bright: #22d3ee; --red-dark: #0e7490; }

.theme-picker { position: relative; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--red-bright), var(--line-strong) 50%); background: var(--bg-card); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.theme-toggle:hover { border-color: var(--red-bright); background: var(--red-soft); }
.theme-toggle__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 12px color-mix(in srgb, var(--red-bright), transparent 40%); }
.theme-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; display: flex; gap: 10px; padding: 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-elev); box-shadow: var(--shadow); animation: modal-in .18s ease both; }
.theme-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; background: var(--dot); padding: 0; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.theme-dot:hover { transform: scale(1.12); }
.theme-dot.active { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot), transparent 60%); }
.theme-dot.red { --dot: #ff2f2f; }
.theme-dot.blue { --dot: #3b82f6; }
.theme-dot.green { --dot: #22c55e; }
.theme-dot.violet { --dot: #8b5cf6; }
.theme-dot.amber { --dot: #f59e0b; }
.theme-dot.cyan { --dot: #06b6d4; }

/* Subscription actions + manual links */
.subscription__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.subscription__renew-hint { flex-basis: 100%; }
.subscription__details summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text-muted); list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.subscription__details summary::-webkit-details-marker { display: none; }
.subscription__details summary::before { content: "▸"; color: var(--red-bright); transition: transform .2s ease; }
.subscription__details[open] summary::before { transform: rotate(90deg); }
.subscription__details[open] summary { margin-bottom: 10px; }

/* Pending order */
.pending-order { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; border-color: rgba(245, 185, 66, .45); background: linear-gradient(135deg, rgba(245, 185, 66, .08), var(--bg-card) 60%); }
.pending-order__text { display: grid; gap: 2px; }

/* Orders history */
.orders summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.orders summary::-webkit-details-marker { display: none; }
.orders summary::before { content: "▸"; color: var(--red-bright); transition: transform .2s ease; }
.orders[open] summary::before { transform: rotate(90deg); }
.orders__list { display: grid; gap: 8px; margin-top: 14px; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #0d0d0d; }
.order-row__main { display: grid; gap: 2px; min-width: 0; }
.order-row__title { font-weight: 700; font-size: 14px; }
.order-row__side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: end; }
.order-row__amount { font-weight: 800; }

/* Login QR */
.login-qr { display: grid; justify-items: center; gap: 6px; margin: 14px 0 4px; text-align: center; }
.login-qr img { border-radius: 12px; background: #fff; padding: 8px; }

/* Buy modal: renewal */
.buy-renew-info { margin: -2px 0 8px; color: var(--text-muted); }
.buy-renew-info strong { color: var(--text); }

/* Connect modal */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 16px; }
.tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-muted); font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.tab:hover { color: #fff; border-color: var(--red-bright); }
.tab.active { color: #fff; background: var(--red-soft); border-color: var(--red-bright); }
.connect__intro { color: var(--text-muted); margin-bottom: 12px; }
.connect__apps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 16px; }
.app-card { display: grid; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #0d0d0d; align-content: start; }
.app-card--featured { border-color: color-mix(in srgb, var(--red-bright), transparent 55%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--red-bright), transparent 75%); }
.app-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app-card__name { font-weight: 800; font-size: 16px; }
.app-card__note { color: var(--text-muted); font-size: 13px; margin: 0; min-height: 18px; }
.app-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.connect__steps { margin: 0 0 16px; padding-left: 20px; color: var(--text-muted); display: grid; gap: 6px; }
.connect__steps strong { color: var(--text); }
.connect__sub { display: grid; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #0d0d0d; }
.connect__sub code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 13px; }
.connect__qr { display: grid; justify-items: center; gap: 6px; }
.connect__qr img { border-radius: 12px; background: #fff; padding: 8px; width: 220px; height: 220px; }
@media (max-width: 520px) {
  .order-row { grid-template-columns: 1fr; }
  .order-row__side { justify-content: start; }
}

/* Login without Telegram (access key) */
.tabs--login { margin: 4px 0 16px; }
.key-form { display: grid; gap: 10px; }
.input--key { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; font-size: 17px; }
.or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--text-dim); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-block--key { font-size: clamp(18px, 4.6vw, 24px); letter-spacing: 0.08em; text-align: center; color: var(--text); font-weight: 700; padding: 16px 12px; border-color: color-mix(in srgb, var(--red-bright), transparent 55%); background: var(--red-soft); margin: 12px 0; }
.key-actions { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: start; color: var(--text-muted); font-size: 14px; margin: 0 0 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red-bright); flex-shrink: 0; }
.web-account { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.web-account__text { display: grid; gap: 4px; min-width: 0; }
.web-account code { color: var(--text); }

/* Outline polish */
.linkrow, .subscription__stats > div, .support-aside, .chat__head, .chat__form { border-color: color-mix(in srgb, var(--red), var(--line) 84%); }
.section__head h2 { background: linear-gradient(90deg, var(--text), color-mix(in srgb, var(--text), var(--red-bright) 40%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav a:hover { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--red-bright), transparent 40%); }
.input:focus { border-color: var(--red-bright); box-shadow: 0 0 0 3px var(--red-soft), inset 0 1px 0 rgba(255, 255, 255, .04); }