:root {
  --bg: #050606;
  --bg-2: #0b0c0d;
  --surface: #121415;
  --surface-2: #191c1e;
  --surface-3: #23272a;
  --line: #2a2f32;
  --line-2: #43494d;
  --text: #f6f5ef;
  --muted: #a7aaa6;
  --faint: #757b78;
  --accent: #e6c36f;
  --accent-2: #dfe6ec;
  --danger: #d9786f;
  --warn: #c99b58;
  --ok: #83c38d;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(230, 195, 111, .08), transparent 360px),
    linear-gradient(90deg, rgba(223, 230, 236, .055), transparent 44%, rgba(84, 76, 58, .06)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 112px),
    var(--bg);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.12; margin-top: 0; letter-spacing: 0; }
button, input, select, textarea { font: inherit; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 72px; }
.container.wide { width: min(1240px, calc(100% - 40px)); }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(6, 7, 8, .88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
}
.brand:hover { text-decoration: none; }
.brand-word { white-space: nowrap; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12), transparent 44%),
    #090a0b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 28px rgba(0, 0, 0, .36);
}
.logo { width: 23px; height: 26px; flex: 0 0 auto; display: block; }
.accent { color: var(--accent); }

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.topnav a,
.topnav .linkbtn {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  border-radius: 8px;
  padding: 8px 11px;
}
.topnav a:hover,
.topnav .linkbtn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  text-decoration: none;
}
.nav-cta {
  color: #15130d !important;
  background: var(--accent);
  border: 1px solid rgba(230, 195, 111, .5);
}
.nav-cta:hover { background: #ffd76d !important; }
.admin-bar { background: rgba(13, 14, 15, .94); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}
.topnav .lang-link {
  min-width: 34px;
  padding: 5px 8px;
  text-align: center;
  color: var(--faint);
}
.topnav .lang-link.active {
  color: #080806;
  background: var(--accent-2);
}
.topnav .lang-link.active:hover { color: #080806; background: #fff; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: 52px;
  padding: 48px 0 30px;
}

.hero-copy { min-width: 0; }
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1 {
  max-width: 700px;
  margin: 0 0 18px;
  font-size: 56px;
  font-weight: 850;
}
.hero p {
  max-width: 640px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { min-width: 190px; }

.product-panel {
  position: relative;
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(230, 195, 111, .16), transparent 38%),
    linear-gradient(315deg, rgba(223, 230, 236, .1), transparent 36%),
    linear-gradient(180deg, #151719, #0c0d0e);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-panel::before {
  content: "";
  position: absolute;
  inset: 56px 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, .08);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.panel-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}
.panel-head span:first-child { background: var(--danger); }
.panel-head span:nth-child(2) { background: var(--warn); }
.panel-head span:nth-child(3) { background: var(--ok); }
.panel-head b { margin-left: auto; color: var(--text); }
.panel-screen {
  position: absolute;
  inset: 84px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.screen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.screen-label { color: var(--faint); font-family: ui-monospace, Consolas, monospace; }
.screen-row strong { color: var(--text); font-family: ui-monospace, Consolas, monospace; }
.code-lines {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.code-lines i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(230, 195, 111, .72), rgba(223, 230, 236, .34));
}

/* Trust strip */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  margin: 10px 0 52px;
}
.proof-item {
  min-height: 106px;
  padding: 20px;
  background: rgba(23, 24, 25, .96);
}
.proof-item b { display: block; margin-bottom: 5px; font-size: 17px; }
.proof-item span { color: var(--muted); font-size: 14px; }

/* Premium workflow */
.premium-flow {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
  margin: 0 0 54px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(230, 195, 111, .12), transparent 34%),
    linear-gradient(315deg, rgba(223, 230, 236, .08), transparent 40%),
    rgba(13, 14, 15, .92);
  box-shadow: var(--shadow);
}
.premium-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-right: 10px;
}
.premium-copy h2 {
  margin: 0 0 12px;
  font-size: 34px;
}
.premium-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}
.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.premium-item {
  min-width: 0;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent),
    rgba(20, 22, 23, .86);
}
.premium-item span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}
.premium-item b {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}
.premium-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* YouTube */
.youtube-card {
  width: min(860px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 0 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(230, 195, 111, .1), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}
.youtube-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.youtube-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-weight: 800;
}

/* Section heading */
.section-head { margin: 58px 0 22px; }
.section-head h2 { margin: 0 0 8px; font-size: 34px; }
.section-head p { max-width: 600px; color: var(--muted); margin: 0; }

/* Cards and panels */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}
.card.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.card h2 { margin: 0 0 16px; font-size: 20px; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Catalog tabs */
.catalog { margin-bottom: 14px; }
.tabs {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 19, 20, .9);
  overflow-x: auto;
}
.tab {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
  font-size: 14px;
  white-space: nowrap;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.tab.active { color: #17130a; background: var(--accent); }
.version-block[hidden] { display: none; }

/* Tariffs */
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.tariff {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent),
    var(--surface);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.tariff:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 195, 111, .62);
  background:
    linear-gradient(180deg, rgba(230, 195, 111, .08), transparent),
    var(--surface);
}
.tariff.best { border-color: rgba(223, 230, 236, .72); }
.tariff .tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(223, 230, 236, .11);
  color: var(--accent-2);
  border: 1px solid rgba(223, 230, 236, .3);
  font-size: 12px;
  font-weight: 800;
}
.tariff-top {
  display: flex;
  min-height: 31px;
  align-items: flex-start;
}
.tariff-dur {
  max-width: calc(100% - 84px);
  font-size: 18px;
  font-weight: 850;
}
.tariff-price { display: grid; gap: 2px; margin-top: auto; }
.tariff-price .rub { font-size: 32px; font-weight: 900; color: var(--text); }
.tariff-price .eur { color: var(--muted); font-size: 14px; }
.tariff-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.badge.ok { color: var(--ok); border-color: rgba(105, 201, 133, .42); background: rgba(105, 201, 133, .09); }
.badge.warn { color: var(--warn); border-color: rgba(227, 168, 70, .42); background: rgba(227, 168, 70, .09); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); text-decoration: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #f5d778);
  border-color: rgba(230, 195, 111, .5);
  color: #17130a;
}
.btn.primary:hover { background: #ffd76d; }
.btn.big { min-height: 48px; padding: 13px 20px; font-size: 15px; }
.btn.small { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--text); }
.btn.danger { background: transparent; border-color: rgba(240, 109, 99, .52); color: var(--danger); }
.btn.danger:hover { background: rgba(240, 109, 99, .1); }
.btn.buy { width: 100%; margin-top: auto; }
.linkbtn { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
.linkbtn:hover { color: var(--text); }
.linkbtn.danger { color: var(--danger); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-section { display: grid; gap: 12px; }
.form-section h2 { margin: 0; font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { color: var(--muted); font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 43px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 195, 111, .16);
}
textarea { resize: vertical; }
textarea.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.num { width: 120px; }
.row { display: flex; gap: 12px; }
.row .field { flex: 1; }
.input-action { display: flex; gap: 10px; align-items: stretch; }
.input-action input { flex: 1; min-width: 0; }
.input-action .btn { flex: 0 0 auto; }
.filters { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filters select { width: auto; }
.inline { display: inline; }
.inline-edit { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.checkline { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.checkline input { width: 18px; min-height: 18px; accent-color: var(--accent); }

/* Checkout */
.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  padding: 34px 0 20px;
}
.checkout-main,
.checkout-aside,
.status-shell,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 24, 25, .96);
  box-shadow: var(--shadow);
}
.checkout-main { padding: 28px; }
.checkout-main h1 { margin: 0 0 10px; font-size: 38px; }
.checkout-main > p { margin: 0 0 24px; }
.checkout-aside {
  position: sticky;
  top: 86px;
  padding: 22px;
}
.summary-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.summary-list span { color: var(--muted); }
.summary-list b { text-align: right; }
.aside-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.aside-note span { color: var(--muted); font-size: 14px; }

.account-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(215, 180, 106, .26);
  border-radius: 8px;
  background: rgba(215, 180, 106, .065);
}
.account-prompt div { display: grid; gap: 3px; min-width: 0; }
.account-prompt span { color: var(--muted); font-size: 14px; }

.methods { display: grid; gap: 10px; }
.promo-form { margin: 18px 0 22px; }
.quantity-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(54px, 1fr));
  gap: 8px;
}
.quantity-pill {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}
.quantity-pill:hover { border-color: rgba(230, 195, 111, .62); color: var(--text); }
.quantity-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quantity-pill:has(input:checked) {
  border-color: var(--accent);
  background: rgba(230, 195, 111, .12);
  color: var(--accent);
}
.method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.method:hover { border-color: rgba(230, 195, 111, .62); }
.method:has(input:checked) {
  border-color: var(--accent);
  background: rgba(230, 195, 111, .08);
}
.method input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.method-copy { display: grid; min-width: 0; }
.method-title { color: var(--text); font-weight: 800; }
.method-meta { color: var(--muted); font-size: 13px; }
.method-price {
  display: grid;
  gap: 2px;
  color: var(--accent);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}
.old-price {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  text-decoration: line-through;
}

/* Order status */
.status-shell {
  max-width: 760px;
  margin: 34px auto 0;
  padding: 28px;
}
.status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.status-head h1 { margin: 0; font-size: 34px; }
.order-summary { margin-bottom: 20px; }
.keybox { display: flex; gap: 10px; align-items: stretch; margin: 16px 0; flex-wrap: wrap; }
.key-list { display: grid; gap: 12px; margin: 16px 0; }
.key-row { display: grid; gap: 6px; }
.key-row .keybox { margin: 0; }
.license {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px dashed rgba(223, 230, 236, .55);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--accent-2);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 17px;
  word-break: break-all;
}
.receipt-thumb { max-width: 100%; border: 1px solid var(--line-2); border-radius: 8px; margin-top: 8px; }

.requisites {
  white-space: pre-wrap;
  margin: 12px 0;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-2);
  font-size: 14.5px;
  line-height: 1.7;
}
.dropzone {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 132px;
  padding: 22px;
  border: 2px dashed var(--line-2);
  border-radius: 8px;
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone.has-file { border-color: var(--accent-2); border-style: solid; }
.dropzone .dz-name { color: var(--accent-2); font-weight: 800; margin-top: 6px; }
.dropzone input[type=file] { display: none; }

.timer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: center;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(230, 195, 111, .34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(230, 195, 111, .1), transparent 48%),
    var(--surface-2);
}
.timer-card span {
  color: var(--muted);
  font-weight: 800;
}
.timer-card b {
  color: var(--accent);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 26px;
  line-height: 1;
}
.timer-card small {
  grid-column: 1 / -1;
  color: var(--faint);
}
.timer-card.is-expired {
  border-color: rgba(240, 109, 99, .45);
  background: rgba(240, 109, 99, .08);
}
.timer-card.is-expired b { color: var(--danger); }

/* Banners and states */
.banner,
.notice {
  padding: 13px 15px;
  border-radius: 8px;
  margin: 14px 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.notice { border-left: 3px solid var(--warn); }
.banner.ok { border-color: rgba(105, 201, 133, .45); background: rgba(105, 201, 133, .08); }
.banner.warn { border-color: rgba(227, 168, 70, .45); background: rgba(227, 168, 70, .08); }
.banner.err { border-color: rgba(240, 109, 99, .45); background: rgba(240, 109, 99, .08); }
.banner.info { border-color: rgba(223, 230, 236, .32); background: rgba(223, 230, 236, .07); }

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid var(--line-2);
  white-space: nowrap;
}
.s-delivered { background: rgba(105, 201, 133, .12); color: var(--ok); border-color: rgba(105, 201, 133, .38); }
.s-awaiting_stock { background: rgba(227, 168, 70, .12); color: var(--warn); border-color: rgba(227, 168, 70, .38); }
.s-review { background: rgba(223, 230, 236, .1); color: var(--accent-2); border-color: rgba(223, 230, 236, .34); }
.s-pending { background: rgba(230, 195, 111, .12); color: var(--accent); border-color: rgba(230, 195, 111, .38); }
.s-paid { background: rgba(223, 230, 236, .1); color: var(--accent-2); border-color: rgba(223, 230, 236, .34); }
.s-expired, .s-failed { background: rgba(240, 109, 99, .12); color: var(--danger); border-color: rgba(240, 109, 99, .38); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.step .n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(230, 195, 111, .12);
  border: 1px solid rgba(230, 195, 111, .36);
  color: var(--accent);
  font-weight: 900;
}
.step b { display: block; margin-bottom: 5px; }
.step span { color: var(--muted); font-size: 14px; }

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: 1.08fr .96fr .96fr;
  gap: 14px;
  margin: 0 0 20px;
}
.support-card {
  display: flex;
  min-width: 0;
  min-height: 230px;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent),
    var(--surface);
  box-shadow: var(--shadow);
}
.support-card-main {
  border-color: rgba(230, 195, 111, .34);
  background:
    linear-gradient(145deg, rgba(230, 195, 111, .12), transparent 44%),
    linear-gradient(315deg, rgba(223, 230, 236, .075), transparent 38%),
    var(--surface);
}
.support-role {
  color: var(--accent);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.support-card h3 {
  margin: 0;
  font-size: 24px;
}
.support-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.support-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: 13px;
}
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.support-card-main .btn { margin-top: auto; align-self: flex-start; }

/* Tables and admin */
table.data, table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { color: var(--muted); font-weight: 800; font-size: 12px; }
table.kv td { padding: 8px 8px; border-bottom: 1px solid var(--line); }
table.kv td:first-child { color: var(--muted); width: 150px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 4px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.kpi-num { font-size: 26px; font-weight: 900; }
.kpi-lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }
.alert { border-color: rgba(227, 168, 70, .42); background: rgba(227, 168, 70, .06); }
.chip { display: inline-block; margin: 4px 6px 0 0; padding: 4px 10px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; }
.chip-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cfg-admin-list,
.cfg-client-list {
  display: grid;
  gap: 14px;
}
.cfg-admin-item,
.cfg-client-item {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.cfg-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.cfg-admin-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.cfg-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}
.cfg-test-result {
  display: grid;
  gap: 5px;
}
.cfg-token-test {
  max-width: 860px;
}
.cfg-preview {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .13);
}
.cfg-tab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cfg-tab-chips .chip {
  margin: 0;
}
.cfg-changelog {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: 13px;
  white-space: pre-wrap;
}
.cfg-device-warning {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(227, 168, 70, .42);
  border-radius: 8px;
  background: rgba(227, 168, 70, .08);
  color: var(--warn);
  font-size: 13px;
}
.cfg-log-detail {
  max-width: 260px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cfg-upload-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cfg-versions {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .12);
}
.cfg-versions summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}
.cfg-grant-form {
  align-items: stretch;
}
.cfg-grant-form select {
  min-width: 220px;
}
.cfg-access-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Helpers */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.good { color: var(--ok); }
.danger { color: var(--danger); }
.err-title { color: var(--danger); }
.row-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.back { display: inline-block; color: var(--muted); font-size: 13px; font-weight: 800; margin-bottom: 18px; }
.back:hover { color: var(--text); }

.empty-state {
  max-width: 620px;
  margin: 48px auto 0;
  padding: 34px;
  text-align: center;
}
.empty-state h1 { margin-bottom: 10px; font-size: 34px; }

/* Account */
.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 190px);
  padding: 28px 0;
}
.auth-card,
.account-shell {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent),
    rgba(21, 22, 21, .98);
  box-shadow: var(--shadow);
}
.auth-card {
  max-width: 460px;
  padding: 28px;
}
.verify-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
}
.auth-card h1,
.account-head h1 { margin-bottom: 10px; }
.auth-switch { margin: 18px 0 0; }
.account-shell {
  max-width: 900px;
  margin: 34px auto 0;
  padding: 28px;
}
.account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.empty-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.empty-panel h2 { margin-bottom: 8px; }
.account-filters {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(150px, .7fr) minmax(150px, .7fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.account-filters > div:first-child {
  display: grid;
  gap: 3px;
  align-self: center;
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.order-list { display: grid; gap: 12px; }
.order-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.order-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.order-item h2 { margin: 3px 0 4px; font-size: 18px; }
.order-item p { margin: 0; }
.order-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.account-key-panel {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.account-key-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.account-key-head > div:first-child {
  display: grid;
  gap: 3px;
}
.order-key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.account-key-vault {
  display: grid;
  gap: 10px;
}
.account-key-row {
  display: grid;
  gap: 6px;
}
.copy-source {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: pre;
  border: 0;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 390px; }
.login-card h1 { text-align: center; margin: 0 0 20px; }
.inline-row td { vertical-align: middle; }
.maintenance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.maintenance-card h2 { margin-bottom: 6px; }
.maintenance-card p { margin: 0; }
.maintenance-card form { flex: 0 0 auto; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 46px; }
  .product-panel { min-height: 330px; }
  .premium-flow { grid-template-columns: 1fr; }
  .checkout-shell { grid-template-columns: 1fr; }
  .checkout-aside { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container,
  .container.wide,
  .footer-inner { width: min(100% - 28px, 1160px); }
  .topbar { align-items: flex-start; flex-direction: column; padding: 12px 14px; }
  .topnav { justify-content: flex-start; }
  .topnav a,
  .topnav .linkbtn { padding: 7px 8px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .proof-strip,
  .steps,
  .premium-grid,
  .support-grid { grid-template-columns: 1fr; }
  .premium-flow { padding: 20px; }
  .premium-copy h2 { font-size: 29px; }
  .premium-item { min-height: auto; }
  .support-card { min-height: auto; }
  .section-head { margin-top: 42px; }
  .section-head h2 { font-size: 29px; }
  .tariff-grid { grid-template-columns: 1fr; }
  .checkout-main,
  .checkout-aside,
  .status-shell,
  .empty-state { padding: 20px; }
  .checkout-main h1,
  .status-head h1,
  .empty-state h1 { font-size: 30px; }
  .status-head { flex-direction: column; }
  .grid-2,
  .kpis { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
  .input-action { flex-direction: column; }
  .account-prompt,
  .maintenance-card,
  .account-head,
  .order-item-main,
  .account-key-head { flex-direction: column; align-items: stretch; }
  .account-filters { grid-template-columns: 1fr; }
  .maintenance-card form { width: 100%; }
  .maintenance-card .btn { width: 100%; }
  .order-actions,
  .order-key-actions,
  .filter-actions { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .brand { font-size: 17px; }
  .product-panel { min-height: 300px; }
  .panel-screen { inset: 82px 18px 20px; }
  .tariff-price .rub { font-size: 28px; }
  .tariff-dur { max-width: 100%; padding-right: 0; }
  .tariff .tag { position: static; align-self: flex-start; margin-bottom: -4px; }
  .tariff-meta { flex-direction: column; align-items: flex-start; }
  .method { grid-template-columns: auto minmax(0, 1fr); }
  .method-price { grid-column: 2; }
  .quantity-grid { grid-template-columns: repeat(3, minmax(54px, 1fr)); }
  .summary-list > div { flex-direction: column; gap: 4px; }
  .summary-list b { text-align: left; }
  .keybox .btn { width: 100%; }
  .cfg-admin-head,
  .cfg-grant-form { flex-direction: column; align-items: stretch; }
  .cfg-grant-form select { width: 100%; min-width: 0; }
}
