:root {
  color-scheme: dark;
  --bg: #06101d;
  --bg-deep: #040a13;
  --panel: rgba(12, 28, 47, 0.82);
  --panel-solid: #0c1c2f;
  --panel-high: #112740;
  --text: #f5f9ff;
  --muted: #91a6bd;
  --subtle: #61778f;
  --cyan: #24e5dd;
  --cyan-soft: #72fff7;
  --blue: #2e8cff;
  --gold: #f4c66a;
  --line: rgba(149, 190, 224, 0.16);
  --line-strong: rgba(36, 229, 221, 0.42);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius: 20px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    radial-gradient(circle at 8% 4%, rgba(23, 122, 203, 0.21), transparent 34rem),
    radial-gradient(circle at 88% 22%, rgba(36, 229, 221, 0.12), transparent 30rem),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 46%, #081726);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

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

button { font: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
}

.ambient-one {
  width: 25rem;
  height: 25rem;
  top: 30%;
  left: -18rem;
  background: rgba(36, 229, 221, 0.13);
}

.ambient-two {
  width: 20rem;
  height: 20rem;
  right: -13rem;
  bottom: 0;
  background: rgba(244, 198, 106, 0.08);
}

.site-header,
.page-shell,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 229, 221, 0.5);
  border-radius: 15px 15px 18px 18px;
  color: #04101b;
  background: linear-gradient(145deg, var(--cyan-soft), #13bfc7 58%, var(--blue));
  box-shadow: 0 0 30px rgba(36, 229, 221, 0.2), inset 0 1px 0 rgba(255,255,255,.5);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-copy small { color: var(--muted); font-size: 0.78rem; }

.header-badges { display: flex; align-items: center; gap: 10px; }

.quiet-badge,
.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #bdd0e3;
  background: rgba(7, 18, 31, 0.62);
  font-size: 0.78rem;
  font-weight: 650;
}

.quiet-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.page-shell { padding: 34px 0 52px; }

.progress {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 44px;
}

.progress-item { display: inline-flex; align-items: center; gap: 9px; color: var(--subtle); }

.progress-item span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 800;
}

.progress-item strong { font-size: 0.78rem; font-weight: 750; }
.progress-item.is-active { color: var(--cyan-soft); }
.progress-item.is-active span { border-color: var(--cyan); background: rgba(36,229,221,.12); box-shadow: 0 0 0 5px rgba(36,229,221,.05); }
.progress-line { height: 1px; background: var(--line); }
.progress-item.is-complete { color: #b8cadb; }
.progress-item.is-complete span { color: #031313; border-color: var(--cyan); background: var(--cyan); }
.progress-line.is-complete { background: rgba(36,229,221,.45); }

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.78fr);
  align-items: start;
  gap: clamp(36px, 6vw, 82px);
}

.eyebrow { margin-bottom: 18px; }
.eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(244, 198, 106, 0.28);
  border-radius: 7px;
  color: var(--gold);
  background: rgba(244, 198, 106, 0.06);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 680px;
  margin: 22px 0 42px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.62;
}

.choice-section { margin-top: 30px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.section-heading > div { display: flex; align-items: center; gap: 11px; }
.section-number { color: var(--cyan); font: 800 0.74rem/1 monospace; }
.section-heading h2 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.section-note { color: var(--subtle); font-size: 0.77rem; }

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.plan-card {
  position: relative;
  min-width: 0;
  min-height: 144px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  text-align: left;
  background: rgba(9, 24, 40, 0.7);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.plan-card::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -45px;
  top: -48px;
  border: 1px solid rgba(36,229,221,.2);
  border-radius: 50%;
}

.plan-card:hover { transform: translateY(-2px); border-color: rgba(36,229,221,.32); background: rgba(14, 35, 57, 0.88); }
.plan-card:focus-visible,
.device-button:focus-visible,
.primary-button:focus-visible { outline: 3px solid rgba(114,255,247,.55); outline-offset: 3px; }

.plan-card.is-selected {
  border-color: var(--cyan);
  background: linear-gradient(155deg, rgba(31, 93, 106, 0.55), rgba(10, 28, 47, 0.96));
  box-shadow: inset 0 0 0 1px rgba(36,229,221,.08), 0 16px 40px rgba(0,0,0,.18);
}

.plan-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #021012;
  background: var(--cyan);
  font-size: .7rem;
  font-weight: 900;
}

.plan-period { color: #d6e4f1; font-size: 0.82rem; font-weight: 650; }
.plan-card strong { font-size: 1.5rem; letter-spacing: -0.04em; }
.plan-card small { color: var(--subtle); font-size: 0.72rem; line-height: 1.3; }
.plan-tag { position: absolute; top: 13px; left: 13px; color: var(--gold); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

.device-section { margin-top: 34px; }
.device-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }

.device-button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #abc0d4;
  background: rgba(9, 24, 40, 0.7);
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.device-button:hover { border-color: rgba(36,229,221,.32); color: var(--text); }
.device-button.is-selected { border-color: var(--cyan); color: var(--cyan-soft); background: rgba(36,229,221,.09); }

.device-help {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 0;
  color: var(--subtle);
  font-size: .78rem;
  line-height: 1.5;
}

.device-help span {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145,166,189,.35);
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 800;
}

.order-card {
  position: sticky;
  top: 24px;
  overflow: hidden;
  border: 1px solid rgba(116, 162, 201, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 39, 64, .96), rgba(7, 19, 33, .96));
  box-shadow: var(--shadow);
}

.order-card-topline { height: 3px; background: linear-gradient(90deg, var(--cyan), var(--blue) 65%, var(--gold)); }
.order-card-head { display: flex; align-items: center; justify-content: space-between; padding: 25px 25px 20px; }
.order-kicker { display: block; margin-bottom: 5px; color: var(--subtle); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.order-card h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.03em; }

.shield-chip {
  width: 39px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36,229,221,.35);
  border-radius: 12px 12px 16px 16px;
  color: var(--cyan-soft);
  background: rgba(36,229,221,.08);
  font-weight: 900;
}

.order-summary { padding: 4px 25px 18px; }
.order-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(149,190,224,.1); }
.order-summary span { color: var(--muted); font-size: .8rem; }
.order-summary strong { max-width: 58%; text-align: right; font-size: .84rem; font-weight: 700; }

.total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 21px 25px; border-top: 1px solid var(--line); }
.total-row span { color: #c7d6e5; font-size: .94rem; font-weight: 650; }
.total-row strong { color: var(--gold); font-size: 2rem; letter-spacing: -.05em; }

.primary-button {
  width: calc(100% - 50px);
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 25px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  color: #021217;
  background: linear-gradient(105deg, var(--cyan-soft), var(--cyan) 46%, #47b5ff);
  box-shadow: 0 16px 30px rgba(36,229,221,.14), inset 0 1px 0 rgba(255,255,255,.5);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.primary-button:hover { transform: translateY(-2px); box-shadow: 0 20px 36px rgba(36,229,221,.22), inset 0 1px 0 rgba(255,255,255,.5); }
.primary-button span:last-child { font-size: 1.25rem; }
.primary-button:disabled { opacity: .72; cursor: wait; transform: none; }

.restore-trigger {
  display: block;
  margin: 13px auto 0;
  padding: 5px 8px;
  border: 0;
  color: #85a1bb;
  background: transparent;
  font-size: .7rem;
  font-weight: 750;
  cursor: pointer;
}

.restore-trigger:hover { color: var(--cyan-soft); }

.no-telegram-note { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; margin: 21px 25px 25px; }
.no-telegram-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(89,157,223,.32); border-radius: 50%; color: #88c8ff; background: rgba(46,140,255,.09); font-size: .76rem; font-weight: 900; }
.no-telegram-note p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.52; }
.no-telegram-note strong { color: #dbe8f4; }

.site-footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: .76rem;
}

.checkout-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(920px, calc(100dvh - 24px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(116, 162, 201, 0.3);
  border-radius: 22px;
  color: var(--text);
  background: #081727;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
}

.checkout-dialog::backdrop {
  background: rgba(1, 6, 12, .82);
  backdrop-filter: blur(10px);
}

.checkout-dialog[open] { animation: dialog-in .22s ease-out; }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-shell { position: relative; max-height: min(920px, calc(100dvh - 24px)); overflow: auto; }
.dialog-accent { position: sticky; z-index: 4; top: 0; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--blue) 70%, var(--gold)); }

.dialog-close {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #b8cadb;
  background: rgba(6, 17, 30, .82);
  font-size: 1.4rem;
  cursor: pointer;
}

.dialog-close:hover { color: white; border-color: rgba(36,229,221,.34); }
.dialog-view { display: none; padding: clamp(28px, 6vw, 50px); }
.dialog-view.is-active { display: block; }
.dialog-view [hidden] { display: none !important; }
#paymentOpenLink { text-decoration: none; }
.dialog-icon { width: 50px; height: 54px; display: grid; place-items: center; margin-bottom: 21px; border-radius: 15px 15px 19px 19px; font-size: 1.2rem; font-weight: 900; }
.payment-icon { color: #251803; border: 1px solid rgba(244,198,106,.62); background: linear-gradient(145deg, #ffe9ab, var(--gold)); box-shadow: 0 12px 28px rgba(244,198,106,.14); }
.restore-icon { color: var(--cyan-soft); border: 1px solid rgba(36,229,221,.38); background: rgba(36,229,221,.08); }
.dialog-kicker { color: var(--cyan); font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.dialog-view h2 { margin: 7px 0 0; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.08; letter-spacing: -.045em; }
.dialog-lead { max-width: 620px; margin: 15px 0 27px; color: var(--muted); font-size: .95rem; line-height: 1.6; }

.payment-receipt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(13, 34, 56, .68);
}

.payment-receipt > div { display: grid; gap: 6px; }
.payment-receipt > div:last-child { text-align: right; }
.payment-receipt span { color: var(--subtle); font-size: .73rem; }
.payment-receipt strong { font-size: .93rem; }
.payment-receipt .receipt-price { color: var(--gold); font-size: 1.5rem; letter-spacing: -.04em; }

.provider-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 13px 0 24px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 17, 30, .6);
}

.provider-logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: white; background: #7e52ff; font-size: 1.12rem; font-weight: 900; }
.provider-row > div { display: grid; gap: 3px; }
.provider-row strong { font-size: .87rem; }
.provider-row small { color: var(--subtle); font-size: .72rem; }
.demo-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid rgba(244,198,106,.3); border-radius: 6px; color: var(--gold); background: rgba(244,198,106,.06); font-size: .62rem; font-weight: 900; letter-spacing: .06em; }
.dialog-primary { width: 100%; margin: 0; }

.text-button {
  display: block;
  margin: 17px auto 0;
  padding: 7px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover { color: var(--cyan-soft); }

.restore-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.restore-form input { min-width: 0; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: rgba(4,15,27,.78); font: 800 .9rem/1 monospace; letter-spacing: .07em; outline: 0; }
.restore-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(36,229,221,.08); }
.restore-form button { min-height: 50px; padding: 0 18px; border: 1px solid rgba(36,229,221,.55); border-radius: 11px; color: #031316; background: linear-gradient(110deg, var(--cyan-soft), var(--cyan)); font-size: .78rem; font-weight: 900; cursor: pointer; }
.restore-hint { margin: 12px 0 0; color: var(--subtle); font-size: .72rem; line-height: 1.5; }
.restore-hint button { padding: 0; border: 0; color: var(--gold); background: transparent; font: 800 .72rem/1 monospace; cursor: pointer; }
.field-error { min-height: 20px; margin: 7px 0 0; color: #ff9e9e; font-size: .72rem; }

.processing-view { min-height: 500px; padding-top: 100px; text-align: center; }
.processing-view .dialog-lead { margin-inline: auto; }
.radar-loader { position: relative; width: 88px; height: 88px; margin: 0 auto 30px; border: 1px solid rgba(36,229,221,.18); border-radius: 50%; background: radial-gradient(circle, rgba(36,229,221,.18) 0 6%, transparent 7% 100%); box-shadow: 0 0 45px rgba(36,229,221,.11); }
.radar-loader::before, .radar-loader::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(36,229,221,.2); border-radius: 50%; }
.radar-loader::after { inset: 33px; }
.radar-loader span { position: absolute; inset: 5px 43px 43px; transform-origin: 50% 39px; background: linear-gradient(var(--cyan), transparent); animation: radar 1.15s linear infinite; }
@keyframes radar { to { transform: rotate(360deg); } }

.processing-steps { width: min(420px, 100%); display: grid; gap: 8px; margin: 30px auto 0; text-align: left; }
.processing-steps span { position: relative; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 10px; color: var(--subtle); background: rgba(8,25,42,.58); font-size: .78rem; }
.processing-steps span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 9px; height: 9px; border: 1px solid var(--subtle); border-radius: 50%; transform: translateY(-50%); }
.processing-steps .is-complete { color: #bed0e0; }
.processing-steps .is-complete::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 10px rgba(36,229,221,.5); }
.processing-steps .is-current { color: var(--cyan-soft); border-color: rgba(36,229,221,.3); }
.processing-steps .is-current::before { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(36,229,221,.09); }

.success-view { padding: clamp(24px, 5vw, 42px); }
.success-heading { display: flex; align-items: center; gap: 16px; padding-right: 45px; }
.success-heading .dialog-icon { flex: 0 0 auto; margin: 0; }
.success-heading h2 { margin-top: 3px; }
.success-icon { color: #021512; border: 1px solid rgba(36,229,221,.58); background: linear-gradient(145deg, var(--cyan-soft), var(--cyan)); box-shadow: 0 12px 28px rgba(36,229,221,.14); }

.access-layout { display: grid; grid-template-columns: 270px 1fr; gap: 18px; margin-top: 25px; }
.qr-panel, .access-details { border: 1px solid var(--line); border-radius: 16px; background: rgba(12,31,51,.78); }
.qr-panel { padding: 14px; }
.qr-panel canvas { display: block; width: 232px; max-width: 100%; height: auto; margin-inline: auto; image-rendering: pixelated; }
.qr-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #c9d9e8; font-size: .78rem; font-weight: 750; }
#qrCanvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; background: white; image-rendering: pixelated; }
.qr-device-limit { margin: 10px 0 0; color: var(--subtle); font-size: .76rem; text-align: center; }
.qr-device-limit strong { color: var(--cyan-soft); }

.access-details { padding: 18px; }
.access-status { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-bottom: 16px; padding: 0 11px; border: 1px solid rgba(36,229,221,.2); border-radius: 9px; color: #c9d9e8; background: rgba(36,229,221,.05); font-size: .73rem; }
.access-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.field-label { display: block; margin-bottom: 7px; color: var(--subtle); font-size: .7rem; font-weight: 700; }
.copy-field { display: grid; grid-template-columns: minmax(0,1fr) auto; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(4,15,27,.78); }
.copy-field input { min-width: 0; height: 43px; padding: 0 12px; overflow: hidden; border: 0; color: #c9d9e8; background: transparent; font: 500 .73rem/1.2 monospace; text-overflow: ellipsis; outline: 0; }
.copy-field button, .recovery-card button { border: 0; border-left: 1px solid var(--line); color: var(--cyan-soft); background: rgba(36,229,221,.05); font-size: .67rem; font-weight: 800; cursor: pointer; }
.access-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.secondary-button { min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: #c9d9e8; background: rgba(9,27,45,.85); font-size: .72rem; font-weight: 800; cursor: pointer; }
.secondary-button:hover { border-color: rgba(36,229,221,.34); }
.secondary-button.is-accent { color: #031316; border-color: rgba(36,229,221,.6); background: linear-gradient(110deg, var(--cyan-soft), var(--cyan)); }

.recovery-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; margin-top: 12px; padding: 12px; border: 1px dashed rgba(244,198,106,.3); border-radius: 10px; background: rgba(244,198,106,.04); }
.recovery-card span { color: var(--subtle); font-size: .67rem; }
.recovery-card strong { color: var(--gold); font: 800 .83rem/1.2 monospace; letter-spacing: .05em; }
.recovery-card button { grid-row: 1 / span 2; grid-column: 2; height: 100%; padding-left: 12px; color: var(--gold); background: transparent; }

.telegram-later { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; margin-top: 18px; padding: 17px; border: 1px solid rgba(46,140,255,.25); border-radius: 14px; background: linear-gradient(100deg, rgba(46,140,255,.09), rgba(36,229,221,.04)); }
.telegram-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg, #58b9ff, #2178e8); font-weight: 900; }
.telegram-later strong { font-size: .86rem; }
.telegram-later p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.telegram-later button { min-height: 40px; padding: 0 13px; border: 1px solid rgba(86,172,255,.33); border-radius: 9px; color: #a9d9ff; background: rgba(46,140,255,.08); font-size: .7rem; font-weight: 800; cursor: pointer; }
.telegram-later button:hover { border-color: rgba(86,172,255,.6); }
.success-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.success-footer p { margin: 0; color: var(--subtle); font-size: .67rem; line-height: 1.45; }
.success-footer .text-button { flex: 0 0 auto; margin: 0; }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 22px;
  max-width: min(420px, calc(100% - 28px));
  padding: 12px 16px;
  border: 1px solid rgba(36,229,221,.35);
  border-radius: 11px;
  color: #dffdfb;
  background: rgba(8,28,44,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  font-size: .78rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.telegram-dialog-icon {
  color: white;
  border: 1px solid rgba(89, 176, 255, .48);
  border-radius: 50%;
  background: linear-gradient(145deg, #58b9ff, #2178e8);
  box-shadow: 0 12px 28px rgba(46, 140, 255, .16);
}

.claim-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 18px;
  margin: 22px 0 17px;
  padding: 17px 18px;
  border: 1px dashed rgba(244, 198, 106, .34);
  border-radius: 14px;
  background: rgba(244, 198, 106, .045);
}

.claim-card strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--gold);
  font: 900 1.05rem/1.2 monospace;
  letter-spacing: .06em;
}

.claim-label { color: #c5d5e4; font-size: .86rem; font-weight: 750; }
.claim-expiry { color: var(--subtle); font-size: .75rem; }
.claim-link-field { margin-bottom: 14px; }

.claim-waiting {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid rgba(36, 229, 221, .18);
  border-radius: 13px;
  background: rgba(36, 229, 221, .045);
}

.waiting-pulse {
  width: 10px;
  height: 10px;
  margin: 5px 0 0 3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(36, 229, 221, .35);
  animation: waiting-pulse 1.6s ease-out infinite;
}

@keyframes waiting-pulse {
  70% { box-shadow: 0 0 0 9px rgba(36, 229, 221, 0); }
  100% { box-shadow: 0 0 0 0 rgba(36, 229, 221, 0); }
}

.claim-waiting strong { display: block; color: #dce9f4; font-size: .86rem; }
.claim-waiting p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.48; }

.demo-action-button {
  width: 100%;
  min-height: 45px;
  margin-top: 9px;
  border: 1px dashed rgba(244, 198, 106, .35);
  border-radius: 11px;
  color: var(--gold);
  background: rgba(244, 198, 106, .045);
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-action-button:hover { border-style: solid; background: rgba(244, 198, 106, .08); }

.conflict-heading {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 16px;
  padding-right: 42px;
}

.conflict-heading h2 { margin-top: 3px; }

.conflict-icon {
  width: 50px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 198, 106, .5);
  border-radius: 15px 15px 19px 19px;
  color: #251803;
  background: linear-gradient(145deg, #ffe9ab, var(--gold));
  font-size: 1.2rem;
  font-weight: 950;
}

.telegram-identity {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(46, 140, 255, .24);
  border-radius: 14px;
  background: rgba(46, 140, 255, .065);
}

.telegram-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #58b9ff, #2178e8);
  font-weight: 900;
}

.telegram-identity > div:nth-child(2) { display: grid; gap: 3px; }
.telegram-identity strong { font-size: .92rem; }
.telegram-identity span { color: var(--muted); font-size: .75rem; }
.identity-status { color: var(--cyan-soft) !important; font-weight: 800; }

.conflict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.client-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 25, 42, .68);
}

.existing-client-card { border-color: rgba(36, 229, 221, .24); }
.web-client-card { border-color: rgba(244, 198, 106, .22); }
.client-card-label { display: block; margin-bottom: 8px; color: var(--subtle); font-size: .69rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.client-card > strong { display: block; overflow-wrap: anywhere; color: #dce9f4; font: 800 .77rem/1.45 monospace; }
.client-card dl { display: grid; gap: 6px; margin: 15px 0 0; }
.client-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.client-card dt, .client-card dd { margin: 0; font-size: .72rem; }
.client-card dt { color: var(--subtle); }
.client-card dd { color: #b9cada; text-align: right; }

.resolution-fieldset { min-width: 0; margin: 23px 0 0; padding: 0; border: 0; }
.resolution-fieldset legend { margin-bottom: 10px; color: #dce9f4; font-size: .9rem; font-weight: 800; }
.resolution-options { display: grid; gap: 9px; }

.resolution-card {
  position: relative;
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  text-align: left;
  background: rgba(7, 21, 36, .72);
  cursor: pointer;
}

.resolution-card:hover { border-color: rgba(36, 229, 221, .3); }
.resolution-card:disabled { opacity: .48; cursor: not-allowed; }
.resolution-card:disabled:hover { border-color: var(--line); }
.resolution-card.is-selected { border-color: var(--cyan); background: rgba(36, 229, 221, .065); box-shadow: inset 0 0 0 1px rgba(36,229,221,.05); }
.resolution-radio { width: 18px; height: 18px; border: 1px solid #6c8298; border-radius: 50%; }
.resolution-card.is-selected .resolution-radio { border: 5px solid var(--cyan); background: #062027; }
.resolution-card > span:nth-child(2) { display: grid; gap: 4px; }
.resolution-card strong { font-size: .84rem; }
.resolution-card small { color: var(--muted); font-size: .74rem; line-height: 1.42; }
.resolution-card em { align-self: start; padding: 5px 7px; border-radius: 6px; color: var(--gold); background: rgba(244, 198, 106, .07); font-size: .61rem; font-style: normal; font-weight: 900; text-transform: uppercase; }

.safety-note {
  display: grid;
  grid-template-columns: 27px 1fr;
  align-items: start;
  gap: 11px;
  margin: 14px 0;
  padding: 13px 14px;
  border: 1px solid rgba(36, 229, 221, .18);
  border-radius: 11px;
  background: rgba(36, 229, 221, .04);
}

.safety-note > span { width: 25px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(36,229,221,.36); border-radius: 8px 8px 10px 10px; color: var(--cyan-soft); font-size: .7rem; font-weight: 900; }
.safety-note p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.48; }
.safety-note strong { color: #d8e7f2; }
.conflict-error { margin-bottom: 6px; }

.binding-result {
  margin: 24px 0 15px;
  padding: 18px;
  border: 1px solid rgba(36, 229, 221, .24);
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(36,229,221,.07), rgba(9,27,45,.72));
}

.rename-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.rename-flow > div { min-width: 0; display: grid; gap: 7px; }
.rename-flow > div:last-child { text-align: right; }
.rename-flow span { color: var(--subtle); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rename-flow strong { overflow-wrap: anywhere; color: #dce9f4; font: 800 .76rem/1.42 monospace; }
.rename-flow > div:last-child strong { color: var(--cyan-soft); }
.rename-arrow { color: var(--cyan) !important; font-size: 1.2rem !important; }
.binding-summary { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.5; }
.success-safety-note { margin-bottom: 20px; }

@media (max-width: 960px) {
  .purchase-layout { grid-template-columns: 1fr; }
  .order-card { position: relative; top: auto; width: min(520px, 100%); }
}

@media (max-width: 720px) {
  .site-header, .page-shell, .site-footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 78px; }
  .secure-badge { display: none; }
  .page-shell { padding-top: 26px; }
  .progress { gap: 8px; margin-bottom: 34px; }
  .progress-item { gap: 6px; }
  .progress-item strong { display: none; }
  h1 { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .lead { margin: 18px 0 34px; font-size: 1rem; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: center; }
  .section-note { font-size: .7rem; text-align: right; }
  .site-footer { padding: 22px 0; flex-direction: column; align-items: flex-start; }
  .access-layout { grid-template-columns: 1fr; }
  .qr-panel { width: min(290px, 100%); margin-inline: auto; }
  .telegram-later { grid-template-columns: 42px 1fr; }
  .telegram-later button { grid-column: 1 / -1; width: 100%; }
  .success-footer { flex-direction: column; align-items: flex-start; }
  .success-footer .text-button { margin-left: -7px; }
  .conflict-grid { grid-template-columns: 1fr; }
  .resolution-card { grid-template-columns: 22px 1fr; }
  .resolution-card em { grid-column: 2; justify-self: start; }
}

@media (max-width: 420px) {
  .quiet-badge { padding-inline: 9px; font-size: .7rem; }
  .brand-copy small { display: none; }
  .plan-card { min-height: 132px; padding: 14px; }
  .plan-card strong { font-size: 1.35rem; }
  .order-card-head, .order-summary, .total-row { padding-left: 19px; padding-right: 19px; }
  .primary-button { width: calc(100% - 38px); margin-inline: 19px; }
  .no-telegram-note { margin-inline: 19px; }
  .dialog-view { padding: 28px 19px; }
  .dialog-close { top: 13px; right: 13px; }
  .payment-receipt { grid-template-columns: 1fr; }
  .payment-receipt > div:last-child { text-align: left; }
  .restore-form { grid-template-columns: 1fr; }
  .provider-row { grid-template-columns: 36px 1fr auto; padding-inline: 12px; }
  .provider-logo { width: 36px; height: 36px; }
  .access-actions { grid-template-columns: 1fr; }
  .claim-card { grid-template-columns: 1fr; }
  .claim-card strong { grid-row: auto; grid-column: auto; }
  .telegram-identity { grid-template-columns: 40px 1fr; }
  .identity-status { grid-column: 2; }
  .rename-flow { grid-template-columns: 1fr; }
  .rename-flow > div:last-child { text-align: left; }
  .rename-arrow { transform: rotate(90deg); justify-self: start; }
}

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