:root {
  --bg: #0a0b10;
  --card: #11141c;
  --card-border: #1f2330;
  --fg: #e8eaed;
  --fg-muted: #8b919c;
  --fg-dim: #5b6270;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --accent-strong: #34d399;
  --accent-violet: #a78bfa;
  --accent-blue: #38bdf8;
  --danger: #ef4444;
  --warn: #f59e0b;
  --info: #6b7280;
  --code-bg: #0c0e14;
}

* { box-sizing: border-box; }

/* Force [hidden] to actually hide. Class-level `display: flex/grid/...`
   in components below has higher specificity than the UA's
   `[hidden] { display: none }`, so without this rule, calling
   `el.hidden = true` on a flex container is a silent no-op. */
[hidden] { display: none !important; }

/* Keyboard refresh instruction shown after every successful activation. */
.refresh-hint {
  margin-top: 10px;
  font-weight: 600;
}

.refresh-service-link {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.refresh-service-link:hover {
  color: #67e8f9;
}

.refresh-key {
  display: inline-block;
  margin: 0 0.25em;
  padding: 0.05em 0.35em;
  border-radius: 0.25em;
  background: #facc15;
  color: #1c1600;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(16,185,129,0.08), transparent 55%),
    radial-gradient(circle at 80% 110%, rgba(167,139,250,0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 60px;
  gap: 24px;
}

/* ---------- hero ---------- */

.hero {
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.08);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h1 .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.24em;
  white-space: nowrap;
  vertical-align: -0.08em;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-violet) 70%, var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* V70.20.6: Claude brand-coloured gradient — Anthropic uses a warm
   coral/orange (#d97757 → #cc785c). Used in the recharge page hero
   to put Claude on equal footing with ChatGPT visually. */
.hero h1 .grad-claude {
  background: linear-gradient(90deg, #f5a06d, #d97757 60%, #c2410c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Grok is a monochrome (white-on-black) brand; use a cool silvery
   gradient so it reads as a distinct third product without clashing
   with the ChatGPT (violet/blue) and Claude (coral) marks. */
.hero h1 .grad-grok {
  background: linear-gradient(90deg, #ffffff, #aab4c4 58%, #6b7480);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* V70.20.9: inline brand marks next to the gradient names. Sized
   to text (0.82em) so they ride the baseline and resize with the
   responsive h1 breakpoints. Kept OUTSIDE the .grad/.grad-claude
   spans because those use background-clip: text + transparent
   color, which would make the SVG invisible. */
.hero h1 .brand-icon {
  height: 1.1em;
  width: auto;
  flex: 0 0 auto;
}
.hero h1 .brand-openai { fill: #ffffff; }
.hero h1 .brand-claude {
  fill: none;
  stroke: #d97757;
  stroke-width: 1.9;
  stroke-linecap: round;
}
/* Grok glyph rides a touch larger so its thin refraction shape reads
   at the same optical weight as the OpenAI knot / Claude star. */
.hero h1 .brand-grok {
  fill: #e7e9ee;
  height: 1.18em;
}

.hero .lead {
  margin: 0 auto;
  max-width: 620px;
  color: var(--fg-muted);
  font-size: 14px;
}

/* ---------- card ---------- */

.card {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.card.card-wide { max-width: 980px; }

label {
  display: block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg);
  color: var(--fg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}

input[type="email"]:disabled { opacity: 0.6; }

button {
  width: 100%;
  padding: 13px 16px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease, transform .05s ease;
  letter-spacing: 0.02em;
}
button:hover:not(:disabled) { background: #0fa674; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: 0.55; cursor: default; }

button.secondary {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--fg);
  font-weight: 500;
}
button.secondary:hover:not(:disabled) {
  background: rgba(255,255,255,0.03);
  border-color: var(--fg-muted);
}

.status {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid var(--card-border);
  background: var(--code-bg);
}
.status.error { border-color: var(--danger); color: #ffb4b4; }
.status.warn  { border-color: var(--warn);   color: #fde2a4; }
.status.info  { border-color: var(--info);   color: var(--fg-muted); }

.hint {
  margin: 12px 0 0;
  color: var(--fg-dim);
  font-size: 12px;
  text-align: center;
}
.hint-inline { margin-top: 10px; text-align: left; }

/* ---------- progress bar (shared) ---------- */

.progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-blue));
  border-radius: 999px;
  transition: width .9s linear;
}

.progress-block { margin-top: 18px; }
.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--fg-muted);
}
.progress-row :last-child { color: var(--accent-blue); font-weight: 600; }

/* ---------- code view ---------- */

.code-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--accent-strong);
  cursor: pointer;
  user-select: all;
  text-shadow: 0 0 24px var(--accent-glow);
  padding: 4px 0;
  transition: transform .1s ease;
}
.code:hover { transform: scale(1.01); }
.code:active { transform: scale(0.99); }

.code-sub {
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  margin: 4px 0 24px;
  letter-spacing: 0.04em;
}
.code-sub.ok { color: var(--accent-strong); }

.refresh-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 8px;
}
.refresh-value {
  color: var(--accent-strong);
  font-size: 16px;
  letter-spacing: 0;
}

.alias {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 16px 0 20px;
  word-break: break-all;
  letter-spacing: 0.01em;
}

.inbox-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 16px;
  margin-top: 12px;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(16,185,129,0.45);
  background: rgba(16,185,129,0.06);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.inbox-btn:hover {
  background: rgba(16,185,129,0.12);
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.inbox-btn b { font-weight: 700; letter-spacing: 0.06em; }
.inbox-btn em {
  font-style: normal;
  color: var(--accent-strong);
  font-size: 12px;
  margin-left: 6px;
}
.inbox-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(16,185,129,0.15);
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- trust footer ---------- */

.trust {
  width: 100%;
  max-width: 560px;
  text-align: center;
  margin-top: 8px;
}
.trust-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 12px;
}
.trust-title .shield { margin-right: 6px; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.trust-pill {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footnote {
  margin-top: 18px;
  color: var(--fg-dim);
  font-size: 12px;
}

/* (Old @media max-width: 480px block removed — superseded by the
   unified phone/tablet/desktop breakpoints at the bottom of this file.) */

/* ---------- inbox page ---------- */

.inbox-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  min-height: 540px;
  gap: 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}
.inbox-side {
  border-right: 1px solid var(--card-border);
  background: rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}
.inbox-side-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.refresh-icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--fg-muted);
  font-size: 16px;
  font-weight: 400;
  display: none; /* shown only on narrow screens */
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.refresh-icon-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.04);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.back-to-list {
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--fg);
  font-size: 18px;
  font-weight: 500;
  display: none; /* shown only on narrow screens */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.back-to-list:hover:not(:disabled) {
  background: rgba(255,255,255,0.04);
  border-color: var(--fg-muted);
}
.inbox-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}
.inbox-list .message {
  padding: 12px 12px;
  margin: 4px 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.inbox-list .message:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--card-border);
}
.inbox-list .message.active {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.4);
}

/* Status messages rendered directly inside the list — used as the
   primary feedback channel on mobile, where the right-side panel
   (and its statusBox) is hidden while the list is the active view. */
.inbox-list .message-placeholder {
  list-style: none;
  padding: 22px 14px;
  margin: 8px 4px;
  border-radius: 10px;
  border: 1px dashed var(--card-border);
  background: rgba(255,255,255,0.02);
  color: var(--fg-muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}
.inbox-list .message-placeholder.error {
  color: #ffb4b4;
  border-color: var(--danger);
  background: rgba(239,68,68,0.06);
}
.inbox-list .message-placeholder.info {
  color: var(--fg-muted);
}

.status-top {
  margin: 0 0 14px;
}
.m-from-line { font-weight: 600; font-size: 13px; }
.m-subj { font-size: 12px; color: var(--fg-muted); margin: 2px 0; }
.m-date-line { font-size: 11px; color: var(--fg-dim); }

.inbox-main {
  display: flex;
  flex-direction: column;
}
.inbox-main-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.inbox-main-head .alias-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--fg-muted);
  padding: 6px 10px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--code-bg);
}
.inbox-main-head .check-btn {
  padding: 8px 14px;
  width: auto;
  margin: 0;
  font-size: 13px;
  background: var(--accent-blue);
  color: #052836;
}
.inbox-main-head .check-btn:hover:not(:disabled) { background: #20a7e6; }

.message-view {
  padding: 18px;
}
.message-view .empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
  color: var(--fg-dim);
  gap: 12px;
}
.empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(56,189,248,0.12);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
#m-subject { margin: 0 0 8px; font-size: 17px; }
.m-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
#m-body {
  width: 100%;
  height: 620px;
  background: white;
  border: 0;
  border-radius: 8px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 16px;
}
.back:hover { color: var(--fg); }

/* Tablet (portrait) — keep two columns but narrower side panel */
@media (min-width: 721px) and (max-width: 1023px) {
  .inbox-shell {
    grid-template-columns: minmax(220px, 260px) 1fr;
    min-height: 520px;
  }
  .card.card-wide { max-width: 940px; padding: 18px 14px; }
  .hero h1 { font-size: 32px; }
  #m-body { height: 520px; }
}

/* Phone / narrow — single panel with view switching */
@media (max-width: 720px) {
  body { padding: 68px 10px 40px; }

  .card { padding: 18px 14px; border-radius: 14px; }
  .card.card-wide { padding: 14px 10px; }

  .hero h1 { font-size: 26px; }
  .hero .lead { font-size: 13px; }

  /* Hero badge + footer pills still need to fit narrow screens */
  .badge { font-size: 10px; padding: 5px 10px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }

  /* Index card */
  .code { font-size: 42px; letter-spacing: 0.04em; }
  .code-label { font-size: 10px; }
  input[type="email"] { font-size: 16px; /* prevent iOS zoom on focus */ }
  .alias { font-size: 13px; padding: 8px 10px; }

  /* Inbox: single-column with view switching */
  .inbox-shell {
    grid-template-columns: 1fr;
    min-height: 480px;
    border-radius: 12px;
  }
  .inbox-side { border-right: 0; border-bottom: 1px solid var(--card-border); }

  /* Hide list panel when viewing a message */
  .inbox-shell[data-view="message"] .inbox-side { display: none; }
  /* Hide message panel (and the desktop "Проверить новые" button)
     while the list is the primary view */
  .inbox-shell[data-view="list"] .inbox-main { display: none; }

  /* Show the icon-refresh in the list header and the back-arrow in
     the message header — both hidden by default on wide screens. */
  .refresh-icon-btn { display: inline-flex; }
  .back-to-list { display: inline-flex; }
  /* Hide the wide "Проверить новые" since the icon-refresh covers it */
  .inbox-main-head .check-btn { display: none; }

  .inbox-main-head {
    padding: 10px 12px;
    gap: 10px;
  }
  .inbox-main-head .alias-pill {
    font-size: 11px;
    padding: 5px 8px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .message-view { padding: 12px; }
  #m-body { height: 520px; }
  #m-subject { font-size: 16px; }

  /* Inbox-list entries — slightly more breathing room for tap targets */
  .inbox-list { overflow-y: visible; flex: none; }
  .inbox-side { min-height: 240px; }
  .inbox-list .message { padding: 14px 12px; }
  .m-from-line { font-size: 14px; }
  .m-subj { font-size: 13px; }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 22px; }
  .hero h1 .brand-icon { height: 1em; }
  .code { font-size: 34px; }
  .trust-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust-pill { padding: 8px 6px; font-size: 10px; }
}

.hero-link {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .15s ease, border-color .15s ease;
}
.hero-link:hover {
  background: rgba(16,185,129,0.16);
  border-color: rgba(16,185,129,0.5);
}

/* ============================================================
   Instructions page (/instructions.html)
   ============================================================ */

.steps-card {
  max-width: 720px;
  padding: 8px 8px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.step:hover {
  border-color: rgba(16,185,129,0.45);
  transform: translateY(-1px);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-blue));
  color: #052836;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(16,185,129,0.25);
}

.step[data-state="complete"] {
  border-color: rgba(16,185,129,0.8);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.24), 0 16px 44px rgba(16,185,129,0.14);
}
.step[data-state="complete"] .step-num {
  background: radial-gradient(circle at 35% 25%, #d1fae5 0, #34d399 38%, #06b6d4 100%);
  color: #022c22;
  font-size: 28px;
  font-weight: 900;
  box-shadow:
    0 0 0 4px rgba(16,185,129,0.18),
    0 0 28px rgba(16,185,129,0.62),
    0 8px 24px rgba(6,182,212,0.3);
}
.step[data-state="complete"] .step-body h3::after {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 10px;
  border-radius: 999px;
  background: rgba(16,185,129,0.16);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.5);
  font-size: 14px;
  vertical-align: 2px;
}

.step-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step-body {
  min-width: 0;
}
.step-body p {
  margin: 0 0 10px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: anywhere;
}
.step-body p:last-child { margin-bottom: 0; }

.step-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(16,185,129,0.4);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.step-link:hover { border-bottom-style: solid; }

.step-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.4);
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease;
}
.step-cta:hover { background: rgba(16,185,129,0.16); }

.step-code-sample {
  display: inline-block;
  padding: 8px 14px;
  margin: 6px 0 10px;
  background: var(--code-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--accent-strong);
  letter-spacing: 0.01em;
}

.step-hint {
  font-size: 12px;
  color: var(--fg-dim);
  border-left: 2px solid rgba(255,255,255,0.08);
  padding-left: 10px;
  margin-top: 8px !important;
}

/* FAQ */

.faq {
  width: 100%;
  max-width: 720px;
  margin-top: 12px;
}
.faq-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] {
  border-color: rgba(16,185,129,0.4);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-weight: 400;
  font-size: 22px;
  color: var(--fg-muted);
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--accent-strong);
}
.faq-body {
  padding: 0 18px 16px;
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.55;
}
.faq-body p { margin: 0 0 10px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  font-size: 12px;
  color: var(--accent-strong);
}

/* Bottom CTA */

.cta-block {
  width: 100%;
  max-width: 720px;
  text-align: center;
  margin-top: 20px;
  padding: 24px 0 0;
}
.cta-big {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-blue));
  color: #052836;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(16,185,129,0.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-big:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16,185,129,0.4);
}
.cta-big:active { transform: translateY(0); }

/* Codex page — keyboard hints, active-step glow, conversion tool */

.kbd {
  display: inline-block;
  max-width: 100%;
  padding: 2px 7px;
  margin: 0 1px;
  border: 1px solid var(--card-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--code-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--fg);
  white-space: nowrap;
}

.step-body .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  font-size: 12px;
  color: var(--accent-strong);
  white-space: nowrap;
}

.step.step-active {
  border-color: rgba(16,185,129,0.5);
  box-shadow: 0 0 0 2px rgba(16,185,129,0.06);
}

.codex-tool {
  margin: 14px 0 4px;
  padding: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  min-width: 0;
}

.codex-tool textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 12px 14px;
  background: var(--code-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  outline: none;
  transition: border-color .15s ease;
  word-break: break-all;
}
.codex-tool textarea:focus {
  border-color: var(--accent);
}
.codex-tool textarea::placeholder {
  color: var(--fg-dim);
  opacity: 0.55;
}

.codex-tool textarea.single-line {
  min-height: 48px;
  max-height: 48px;
  resize: none;
  overflow: hidden;
  white-space: nowrap;
}

.codex-tool-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.primary-btn {
  flex: 1;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-blue));
  color: #052836;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}
.primary-btn:active { transform: translateY(0); }

.secondary-btn {
  padding: 12px 18px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.secondary-btn:hover {
  background: rgba(255,255,255,0.04);
  color: var(--fg);
}

.secondary-input {
  color-scheme: dark;
  min-width: 190px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg, rgba(255,255,255,0.03));
  color: var(--fg);
  font-size: 13px;
}

select.secondary-input option {
  background: #0b1220;
  color: #eef4ff;
}

.cdk-page .cdk-check-help {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--nested, #0b1220);
  color: var(--fg);
}
.cdk-page .cdk-check-help[hidden] { display: none; }
.cdk-page .cdk-support-copy[hidden] { display: none; }
.cdk-page .codex-tool .cdk-support-copy {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  height: auto;
  min-height: 48px;
}
.cdk-page .cdk-support-text {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px;
  color: var(--fg);
  background: var(--nested, #0b1220);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  resize: vertical;
  overflow-wrap: anywhere;
}
.cdk-check-help > strong { font-size: 16px; line-height: 1.45; }
.cdk-page .step-body .cdk-check-help p { margin: 0; line-height: 1.6; }
.cdk-help-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cdk-page .cdk-help-actions .cdk-support-copy { grid-column: 1 / -1; }
.cdk-page .cdk-check-help .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  min-height: 48px;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.cdk-page .cdk-help-actions .cdk-help-primary {
  color: #06141c;
  background: linear-gradient(110deg, #21d6ad, #32b5f5);
  border-color: #29c8cb;
  box-shadow: 0 4px 16px rgba(33, 214, 173, .16);
  font-weight: 700;
}
.cdk-page .cdk-help-actions .cdk-help-support {
  color: #e7dfff;
  background: rgba(124, 92, 255, .12);
  border-color: rgba(155, 130, 255, .48);
}
.cdk-page .cdk-help-actions .secondary-btn:focus-visible {
  outline: 3px solid #32b5f5;
  outline-offset: 3px;
}
@media (hover: hover) {
  .cdk-page .cdk-help-actions .secondary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 6px 20px rgba(50, 181, 245, .2);
  }
  .cdk-page .cdk-help-actions .cdk-help-primary:hover:not(:disabled) {
    color: #06141c;
    background: linear-gradient(110deg, #21d6ad, #32b5f5);
  }
  .cdk-page .cdk-help-actions .cdk-help-support:hover {
    background: rgba(124, 92, 255, .2);
    border-color: #a48aff;
  }
}
.cdk-page .cdk-help-actions .secondary-btn:active:not(:disabled) { transform: scale(.98); }
.cdk-page .cdk-help-actions .secondary-btn:disabled { box-shadow: none; filter: none; transform: none; }
@media (max-width: 600px) {
  .cdk-page .cdk-check-help { padding: 14px; }
  .cdk-help-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .cdk-page .cdk-help-actions .secondary-btn { transition: none; }
  .cdk-page .cdk-help-actions .secondary-btn:hover:not(:disabled),
  .cdk-page .cdk-help-actions .secondary-btn:active:not(:disabled) { transform: none; }
}

.claude-user-id-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.claude-user-id-row[hidden] {
  display: none;
}

.claude-user-id-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
  color: var(--fg);
  border-color: rgba(251, 146, 60, 0.65);
  background: rgba(251, 146, 60, 0.08);
  flex-shrink: 0;
}

.claude-user-id-link:hover {
  color: #fff7ed;
  background: rgba(251, 146, 60, 0.16);
}

.claude-user-id-hint {
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.45;
  flex: 1 1 260px;
}

.codex-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--card-border);
  overflow-wrap: anywhere;
}
.codex-status.success {
  border-color: rgba(16,185,129,0.5);
  background: rgba(16,185,129,0.08);
  color: var(--accent-strong);
}
.codex-status.warn {
  border-color: rgba(245,158,11,0.5);
  background: rgba(245,158,11,0.08);
  color: #fbbf24;
}
.codex-status.error {
  border-color: rgba(239,68,68,0.5);
  background: rgba(239,68,68,0.08);
  color: #fda4a4;
}
.already-active-prompt {
  overflow-wrap: anywhere;
}
.force-activate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-top: 2px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(245,158,11,0.65);
  background: rgba(245,158,11,0.16);
  color: #fde68a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  white-space: normal;
}
.force-activate-btn:hover:not(:disabled) {
  background: rgba(245,158,11,0.24);
  color: #fff7d6;
}
.force-activate-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.cta-secondary {
  display: inline-block;
  margin: 6px 6px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}
.cta-secondary:hover {
  border-color: rgba(16,185,129,0.5);
  background: rgba(16,185,129,0.06);
}

/* Language switcher (top-right pill) + Telegram support FAB
   (bottom-right floating circle). Shared across all pages. */

.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  background: rgba(12, 18, 28, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(140, 160, 180, 0.28);
  border-radius: 999px;
  padding: 3px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 40px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.lang-switch button:hover {
  color: var(--fg);
}
.lang-switch button.active {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-blue));
  color: #052836;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

/* Floating Telegram support button (FAB), bottom-right.
   Mirrors the supplier's UX so customers feel at home. */
.support-footer {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 49;
  margin: 0;
  display: block;
}
.support-btn {
  position: relative;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
  border: 0;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 10px 26px rgba(2, 136, 209, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.4);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.support-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 14px 28px rgba(2, 136, 209, 0.6),
    0 3px 8px rgba(0, 0, 0, 0.4);
}
.support-btn:active {
  transform: translateY(0);
}
.support-btn svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  /* The Material Telegram glyph has its visual centre slightly to the
     right of geometric centre — nudge left so the button looks balanced. */
  transform: translateX(-3px) translateY(0);
}
/* Tooltip — visible on desktop hover, hidden on touch. */
.support-btn span {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(15, 23, 35, 0.95);
  color: #fff;
  border: 1px solid rgba(120, 140, 160, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.support-btn:hover span,
.support-btn:focus-visible span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Subtle pulse to draw attention on first load. */
.support-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(41, 182, 246, 0.45);
  z-index: -1;
  animation: support-pulse 2.4s ease-out infinite;
}
@keyframes support-pulse {
  0%   { transform: scale(0.92); opacity: 0.55; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

@media (max-width: 720px) {
  .lang-switch { top: 12px; right: 12px; padding: 3px; }
  .lang-switch button { font-size: 11px; padding: 6px 12px; min-width: 36px; }

  .support-footer { bottom: 22px; right: 22px; }
  .support-btn { width: 52px; height: 52px; }
  .support-btn svg { width: 26px; height: 26px; transform: translateX(-3px); }
  /* Tooltip would overflow on narrow screens — hide on touch. */
  .support-btn span { display: none; }
}

/* Tablets / small laptops — keep the lang-switch from clipping the
   page hero on narrow vertical layouts. */
@media (max-width: 480px) {
  .lang-switch { top: 10px; right: 10px; }
  .lang-switch button { font-size: 10.5px; padding: 5px 10px; min-width: 32px; letter-spacing: 0.06em; }
  .kbd { font-size: 10px; padding: 1px 5px; }
}

/* Recharge page — extra widgets (info-grid for CDK / account, confirm
   summary, consent checkbox). Reuses .codex-tool / .codex-status / .step. */

.codex-tool input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--code-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color .15s ease;
  text-transform: uppercase;
}
.codex-tool input[type="text"]:focus { border-color: var(--accent); }
/* Grok promo codes are lowercase by design — don't force the all-caps
   transform that the other (uppercase) suppliers use. */
.codex-tool input[type="text"].grok-code { text-transform: none; }
.codex-tool input[type="text"]::placeholder {
  color: var(--fg-dim);
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.55;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.info-cell {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.info-value {
  font-size: 14px;
  color: var(--fg);
  word-break: break-word;
}
.info-value[data-kind="ok"] { color: var(--accent-strong); }
.info-value[data-kind="warn"] { color: #fbbf24; }
.info-value[data-kind="error"] { color: #fda4a4; }
.info-value[data-kind="muted"] { color: var(--fg-muted); }

.confirm-summary {
  margin: 12px 0 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 0;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.confirm-row:last-child { border-bottom: 0; }
.confirm-label {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.confirm-value {
  font-size: 14px;
  color: var(--fg);
  text-align: right;
  word-break: break-all;
}

.confirm-value.mono {
  white-space: normal;
  overflow-wrap: anywhere;
}

.recharge-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 12px;
  padding: 11px 12px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.42);
  border-radius: 8px;
  color: #fecaca;
  line-height: 1.5;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.recharge-warning-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #fca5a5;
}

/* Stronger "stop" warning (e.g. the no-Business notice on the confirm step). */
.recharge-warning-danger {
  background: rgba(220,38,38,0.18);
  border-color: rgba(248,113,113,0.8);
  color: #fee2e2;
  font-weight: 600;
}
.recharge-warning-danger .recharge-warning-icon {
  color: #f87171;
}

.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 12px;
  padding: 10px 12px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px;
  font-size: 13px;
  color: #fbe5b5;
  cursor: pointer;
  user-select: none;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  min-width: 0;
  overflow-wrap: anywhere;
}
.confirm-check input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-strong);
  cursor: pointer;
}

.force-recharge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 12px;
  padding: 10px 12px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px;
  color: #fbe5b5;
  cursor: pointer;
  user-select: none;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  min-width: 0;
  overflow-wrap: anywhere;
}
.force-recharge[hidden] {
  display: none;
}
.force-recharge input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
  cursor: pointer;
}
.force-recharge strong {
  display: block;
  color: #fde68a;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.force-recharge small {
  display: block;
  margin-top: 4px;
  color: #fb923c;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

.primary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.secondary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Locked steps look dimmed — visual cue that user can't edit them yet */
.step[data-state="locked"] {
  opacity: 0.45;
}
.step[data-state="locked"] .step-num {
  background: var(--card-border);
  color: var(--fg-muted);
  box-shadow: none;
}

/* Responsive tweaks for instructions */

@media (max-width: 720px) {
  .steps-card { padding: 0; }
  .codex-tool { padding: 10px; }
  .codex-tool textarea { font-size: 12px; min-height: 100px; }
  .codex-tool input[type="text"] { font-size: 12px; padding: 11px 12px; }
  .primary-btn { font-size: 13px; padding: 11px 14px; min-width: 140px; }
  .secondary-btn { font-size: 12px; padding: 11px 14px; }
  .info-grid { grid-template-columns: 1fr; }
  body:not(.cdk-page) .confirm-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  body:not(.cdk-page) .confirm-value { text-align: left; }
  .recharge-warning { font-size: 12px; }
  .step {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 14px;
  }
  .step-num {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
  }
  .step-body h3 { font-size: 16px; }
  .faq-title { font-size: 20px; }
  .faq-item summary { padding: 12px 14px; font-size: 13px; }
  .faq-body { padding: 12px 14px 14px; font-size: 13px; }
  .cta-big { padding: 14px 24px; font-size: 15px; }
}

/* ---------- Grok subscription checker (/grok-check.html) ---------- */
.gc-sub { margin-bottom: 12px; }
.gc-sub[data-active="1"] {
  border: 1px solid rgba(16,185,129,0.35);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.08) inset;
}
.gc-history { margin-top: 6px; }
.gc-history > summary {
  cursor: pointer;
  color: var(--fg-muted);
  font-size: 13px;
  padding: 8px 2px;
  user-select: none;
}
.gc-history > summary:hover { color: var(--fg); }
.gc-history[open] > summary { color: var(--fg); margin-bottom: 8px; }

/* ============================================================
   CDK redesign (cdk.vibe-bazaar.com / recharge.html)
   Scoped to body.cdk-page so other otp-proxy pages stay intact.
   Tokens from docs/CDK_REDESIGN_HANDOFF.md + Figma 2:3
   (CDK Activation / Desktop / Default).
   ============================================================ */

.cdk-page {
  --bg: #070811;
  --card: #090d18;
  --card-border: #213357;
  --nested: #0b1220;
  --nested-border: #1f3052;
  --field: #05070e;
  --field-border: #2b4775;
  --fg: #f2f7ff;
  --fg-muted: #8794b0;
  --fg-dim: #616e8a;
  --accent: #2eebb8;
  --accent-glow: rgba(46, 235, 184, 0.28);
  --accent-strong: #2eebb8;
  --accent-violet: #7d57fa;
  --accent-blue: #33bafa;
  --success: #4affc9;
  --warn: #f2b94b;
  --danger: #ef4444;
  --code-bg: #05070e;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --elevation-card: 0 18px 48px rgba(0, 0, 0, 0.55);
  --glow-primary: 0 8px 28px rgba(46, 230, 194, 0.28), 0 4px 20px rgba(124, 85, 255, 0.18);
  --glow-step-active: 0 0 18px rgba(28, 184, 158, 0.22);
  --glow-step-dot: 0 0 12px rgba(46, 235, 184, 0.35);
  --glow-brand: 0 0 16px rgba(38, 245, 194, 0.30);
  --inset-field: inset 0 2px 6px rgba(0, 0, 0, 0.45);
  --btn-fg: #040e17;
  --cdk-max: 1280px;
  /* Figma ratios inside 1280 content: main 804 / side 452 / gap 24.
     Use fr tracks so columns always fit the shell content box (padding
     inclusive) — fixed 804+452px previously overflowed by ~48px. */
  --cdk-col-main: minmax(0, 804fr);
  --cdk-col-side: minmax(0, 452fr);
  --cdk-gap: 24px;
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 70% 55% at 8% 35%, rgba(46, 235, 184, 0.10), transparent 58%),
    radial-gradient(ellipse 65% 50% at 92% 0%, rgba(125, 87, 250, 0.14), transparent 55%),
    linear-gradient(128deg, #05090d 10%, #070811 54%, #0b0614 95%);
  background-attachment: fixed;
  color: var(--fg);
  display: block;
  align-items: unset;
  padding: 0;
  gap: 0;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
}

/* Kill global otp-proxy button defaults (width:100%, margin-top, FAB). */
.cdk-page button {
  width: auto;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  box-shadow: none;
  transform: none;
}

.cdk-page button:hover:not(:disabled),
.cdk-page button:active:not(:disabled) {
  background: transparent;
  transform: none;
  filter: none;
}

/* ---------- lang switch: separate bordered pills ---------- */

.cdk-page .lang-switch {
  position: static;
  top: auto;
  right: auto;
  margin: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
}

.cdk-page .lang-switch button {
  width: auto;
  min-width: 49px;
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(48, 61, 87, 0.55);
  background: rgba(14, 18, 28, 0.94);
  color: #b2bfd4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: none;
}

.cdk-page .lang-switch button:hover {
  color: var(--fg);
  background: rgba(20, 28, 42, 0.96);
  border-color: rgba(48, 79, 107, 0.7);
}

.cdk-page .lang-switch button.active {
  background: rgba(15, 69, 64, 0.94);
  border-color: rgba(31, 204, 158, 0.55);
  color: #4affc9;
  box-shadow: none;
}

/* ---------- support header: bordered dark pills, not FAB ---------- */

.cdk-page .support-btn,
.cdk-page button.support-btn,
.cdk-page .cdk-text-link.support-btn,
.cdk-page .cdk-control-btn,
.cdk-page button.cdk-control-btn {
  position: static;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 10px 14px;
  margin: 0;
  border-radius: var(--radius-lg);
  background: rgba(14, 18, 28, 0.94);
  border: 1px solid rgba(48, 61, 87, 0.55);
  color: #b2bfd4;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  filter: none;
  transform: none;
  white-space: nowrap;
}

.cdk-page .support-btn::before,
.cdk-page button.support-btn::before {
  content: none;
  display: none;
  animation: none;
}

.cdk-page .support-btn span,
.cdk-page button.support-btn span {
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  white-space: nowrap;
  color: inherit;
  font: inherit;
}

.cdk-page .support-btn:hover,
.cdk-page button.support-btn:hover,
.cdk-page .cdk-control-btn:hover,
.cdk-page button.cdk-control-btn:hover {
  color: var(--fg);
  background: rgba(20, 28, 42, 0.96);
  border-color: rgba(48, 79, 107, 0.7);
  filter: none;
  transform: none;
  box-shadow: none;
}

/* Side action: blue text on #172138, border #2e4d75 */
.cdk-page .cdk-side-action,
.cdk-page button.cdk-side-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 38px;
  margin: 0;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #2e4d75 !important;
  background: #172138 !important;
  color: #33bafa !important;
  -webkit-text-fill-color: #33bafa;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none !important;
  cursor: pointer;
}

.cdk-page .cdk-side-action:hover,
.cdk-page button.cdk-side-action:hover {
  border-color: rgba(51, 186, 250, 0.65) !important;
  background: #1a2944 !important;
  color: #5ec9fc !important;
  -webkit-text-fill-color: #5ec9fc;
  transform: none;
  filter: none;
}

.cdk-page .cdk-side-help .support-btn,
.cdk-page .cdk-side-help button.support-btn,
.cdk-page .cdk-side-help .secondary-btn {
  width: 100% !important;
  box-sizing: border-box;
}

/* ---------- shell ---------- */

.cdk-shell {
  width: 100%;
  max-width: var(--cdk-max);
  margin: 0 auto;
  padding: 28px 24px 48px;
  box-sizing: border-box;
  overflow-x: clip;
}

/* ---------- topbar ---------- */

.cdk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  padding: 14px 18px;
  position: sticky;
  /* Flush to the viewport. `top: 16px` left a gap where scrolled hero
     copy (e.g. benefits item «03 История…») peeked above the bar. */
  top: 0;
  z-index: 40;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  border: 1px solid rgba(48, 79, 107, 0.45);
  background: rgba(7, 8, 17, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
}

.cdk-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 0 0 auto;
}

.cdk-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Onest", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #05141f;
  background: linear-gradient(135deg, #26f5c2 14%, #2e85ff 86%);
  box-shadow: var(--glow-brand);
  flex: 0 0 auto;
}

.cdk-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: normal;
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
}

.cdk-brand-name {
  font-family: "Onest", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.15px;
  line-height: 19px;
  color: #ebf2ff;
  white-space: nowrap;
  text-align: center;
}

.cdk-brand-sub {
  font-family: "Unbounded", "Onest", sans-serif;
  /* Figma desktop node is 8px, but Unbounded renders optically smaller in
     browsers than in Figma — 10px matches the intended visual weight. */
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 12px;
  color: #4fe8bf;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.cdk-topbar-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.cdk-text-link {
  width: auto;
  margin: 0;
  padding: 10px 14px;
  background: rgba(14, 18, 28, 0.94);
  border: 1px solid rgba(48, 61, 87, 0.55);
  color: #b2bfd4;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: var(--radius-lg);
}

.cdk-text-link:hover {
  color: var(--fg);
  background: rgba(20, 28, 42, 0.96);
}

/* ---------- hero: single card, 1fr + 458px ---------- */

.cdk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 458px);
  gap: 28px;
  align-items: stretch;
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  background: linear-gradient(90deg, #090e1a 0%, #0e091f 100%);
  box-shadow: var(--elevation-card);
}

.cdk-hero-copy {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 4px 0 0;
  min-width: 0;
}

.cdk-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #2eebb8;
}

.cdk-page .cdk-hero h1 {
  margin: 0 0 16px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 14ch;
  color: var(--fg);
}

.cdk-page .cdk-hero .lead {
  margin: 0;
  max-width: 36ch;
  color: #33bafa;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.cdk-page .hero-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.cdk-page .hero-link:hover { text-decoration: underline; }

.cdk-benefits {
  padding: 18px 20px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid #243b61;
  background: #0a111f;
  box-shadow: none;
  min-width: 0;
}

.cdk-benefits h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.cdk-benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cdk-benefits-list li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 34px;
  padding: 4px 11px;
  border-radius: var(--radius-md);
  border: 1px solid #1f2e4d;
  background: #0e1626;
  color: var(--fg);
  text-align: left;
}

.cdk-benefits-list li span:first-child {
  flex: 0 0 auto;
  width: auto;
  text-align: left;
  color: #2eebb8;
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.72px;
  line-height: 15px;
}

.cdk-benefits-list li span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-family: "Onest", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 19px;
}

/* ---------- progress: 4 equal cards ---------- */

.cdk-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin: 24px 0;
  padding: 16px 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  background: #080d18;
  box-shadow: var(--elevation-card);
  width: 100%;
  box-sizing: border-box;
}

.cdk-progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 56px;
  height: 56px;
  padding: 0 14px 0 13px;
  border-radius: var(--radius-lg);
  border: 1px solid #1c2945;
  background: #0b111d;
  opacity: 1;
  box-sizing: border-box;
}

.cdk-progress-item[data-state="active"] {
  border-color: #1f8f73;
  background: #0b2426;
  box-shadow: var(--glow-step-active);
}

.cdk-progress-item[data-state="done"] {
  border-color: rgba(46, 235, 184, 0.35);
  background: rgba(46, 235, 184, 0.06);
}

.cdk-progress-item[data-state="error"] {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
  box-shadow: none;
}

.cdk-progress-item[data-state="pending"] {
  opacity: 0.92;
}

.cdk-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 16px;
  color: #8591ad;
  border: 0;
  background: #1f2942;
}

.cdk-progress-item[data-state="active"] .cdk-progress-dot {
  color: #031a1c;
  background: #2eebb8;
  box-shadow: var(--glow-step-dot);
}

.cdk-progress-item[data-state="done"] .cdk-progress-dot {
  color: #031a1c;
  background: var(--accent);
}

.cdk-progress-item[data-state="error"] .cdk-progress-dot {
  color: #fff;
  background: #ef4444;
}

.cdk-progress-item[data-state="error"] .cdk-progress-copy strong {
  color: #fecaca;
}

.cdk-progress-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.cdk-progress-copy strong {
  font-family: "Onest", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  color: #bfc9de;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cdk-progress-item[data-state="active"] .cdk-progress-copy strong {
  color: var(--fg);
}

.cdk-progress-copy small {
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #8591ad;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- workspace 2-col ---------- */

.cdk-workspace {
  display: grid;
  grid-template-columns: var(--cdk-col-main) var(--cdk-col-side);
  gap: var(--cdk-gap);
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cdk-progress,
.cdk-hero,
.cdk-workspace,
.cdk-footer {
  width: 100%;
  box-sizing: border-box;
}

.cdk-main,
.cdk-sidebar {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.cdk-page .cdk-main.card,
.cdk-page .steps-card {
  max-width: none;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.cdk-page .steps {
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cdk-page .step {
  display: block;
  grid-template-columns: none;
  margin: 0;
  padding: 28px 30px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--elevation-card);
  scroll-margin-top: 88px;
}

.cdk-page .step:hover {
  border-color: var(--card-border);
  transform: none;
}

.cdk-page .step[data-state="complete"],
.cdk-page .step[data-state="locked"] {
  /* Single-panel wizard: only the active step stays visible. */
}

.cdk-page .step-num[hidden] { display: none !important; }

.cdk-step-chip {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #248c73;
  background: #0d2b29;
  color: #2eebb8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.cdk-page .step-body h3 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--fg);
}

.cdk-page .step-body p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg-muted);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.cdk-page .step-body a.step-link {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- product chips (3 cols) ---------- */

.cdk-product-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
  max-width: 540px;
}

.cdk-product-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(41, 122, 219, 0.82);
  background: #091329;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.cdk-product-chip--gpt {
  border-color: rgba(41, 122, 219, 0.82);
  background: #091329;
}

.cdk-product-chip--grok {
  border-color: rgba(26, 148, 235, 0.82);
  background: #061a2e;
}

.cdk-product-chip--claude {
  border-color: rgba(184, 82, 61, 0.82);
  background: #1f111f;
}

.cdk-product-dot,
img.cdk-product-dot,
.cdk-product-logo,
img.cdk-product-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  display: block;
}

.cdk-product-logo--grok,
img.cdk-product-logo--grok {
  width: 32px;
  height: 32px;
}

.cdk-product-logo--claude,
img.cdk-product-logo--claude {
  width: 28px;
  height: 28px;
}

.cdk-product-chip--gpt .cdk-product-dot,
.cdk-product-chip--gpt .cdk-product-logo,
img.cdk-product-dot,
img.cdk-product-logo {
  background: transparent;
  box-shadow: none;
}

.cdk-product-chip--grok .cdk-product-dot,
.cdk-product-chip--grok .cdk-product-logo {
  background: transparent;
  box-shadow: none;
}

.cdk-product-chip--claude .cdk-product-dot,
.cdk-product-chip--claude .cdk-product-logo {
  background: transparent;
  box-shadow: none;
}

.cdk-product-chip-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.cdk-product-chip-copy strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
}

.cdk-product-chip-copy small {
  display: none;
}

/* ---------- fields / input shell ---------- */

.cdk-field-label {
  display: block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.cdk-page .codex-tool .cdk-input-example {
  margin: 10px 0 0;
  color: var(--fg-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cdk-input-shell {
  position: relative;
  width: 100%;
}

.cdk-page .cdk-input-shell input,
.cdk-page .codex-tool .cdk-input-shell input {
  width: 100%;
  min-height: 76px;
  padding: 22px 110px 22px 20px;
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  box-sizing: border-box;
}

.cdk-page .cdk-input-shell input::placeholder,
.cdk-page .codex-tool .cdk-input-shell input::placeholder {
  color: var(--fg-dim);
  opacity: 1;
  text-transform: none;
  letter-spacing: 0;
}

.cdk-page .cdk-input-shell input:focus,
.cdk-page .codex-tool .cdk-input-shell input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(46, 235, 184, 0.18);
}

.cdk-paste-btn,
.cdk-page button.cdk-paste-btn {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 40px;
  padding: 0 14px;
  margin: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: #121a2e;
  color: #33bafa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cdk-paste-btn:hover,
.cdk-page button.cdk-paste-btn:hover {
  background: #18233a;
  color: #5ec9fc;
  transform: translateY(-50%);
}

.cdk-secure-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid #1a574f;
  background: #09171a;
}

.cdk-secure-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 53px;
  height: 40px;
  border-radius: 999px;
  background: #0f3830;
  color: #2eebb8;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.cdk-secure-note strong {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.cdk-secure-note p {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: var(--fg-muted) !important;
}

.cdk-page .codex-tool input,
.cdk-page .codex-tool textarea {
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--inset-field);
  color: var(--fg);
}

.cdk-page .codex-tool input::placeholder,
.cdk-page .codex-tool textarea::placeholder {
  color: var(--fg-dim);
  opacity: 1;
}

.cdk-page .codex-tool input:focus,
.cdk-page .codex-tool textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(46, 235, 184, 0.18), var(--inset-field);
}

.cdk-page .codex-tool textarea {
  min-height: 160px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.cdk-page .codex-tool-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.cdk-page .codex-tool-row .primary-btn {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}

/* ---------- primary / secondary / kbd ---------- */

.cdk-page button.primary-btn,
.cdk-page .primary-btn {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 66px;
  min-height: 66px;
  margin-top: 0;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 0 !important;
  background: linear-gradient(90deg, #2bdbab 0%, #30b5fa 55%, #7857fa 100%) !important;
  color: #040e17 !important;
  -webkit-text-fill-color: #040e17;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition: transform .15s ease, box-shadow .15s ease;
}

.cdk-page button.primary-btn:hover:not(:disabled),
.cdk-page .primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #2bdbab 0%, #30b5fa 55%, #7857fa 100%) !important;
  color: #040e17 !important;
  -webkit-text-fill-color: #040e17;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3), var(--glow-primary);
}

.cdk-page .primary-btn:active:not(:disabled) { transform: translateY(0); }

.cdk-page .primary-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.cdk-page .primary-btn.is-loading,
.cdk-page .primary-btn[aria-busy="true"] {
  position: relative;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}

.cdk-page .primary-btn.is-loading::after,
.cdk-page .primary-btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 999px;
  border: 2px solid rgba(4, 14, 23, 0.25);
  border-top-color: var(--btn-fg);
  animation: cdk-spin 0.8s linear infinite;
}

@keyframes cdk-spin {
  to { transform: rotate(360deg); }
}

.cdk-page .secondary-btn {
  width: auto;
  min-height: 48px;
  margin-top: 0;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--nested);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.cdk-page .secondary-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border-color: rgba(46, 235, 184, 0.35);
}

.cdk-page .kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--nested-border);
  background: var(--nested);
  color: var(--fg);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
}

.kbd-seq {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  max-width: 100%;
  white-space: nowrap;
  vertical-align: middle;
  box-sizing: border-box;
}

.kbd-combo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  white-space: nowrap;
}

.kbd-op {
  display: inline;
  margin: 0;
  padding: 0;
  font-weight: 700;
  line-height: 1;
}

/* ---------- promo summary / confirm / info-grid ---------- */

.cdk-page .promo-summary,
.promo-summary {
  display: grid;
  /* First column hugs the code chip but can shrink; product keeps >=7rem
     so "ChatGPT Plus · 1 месяц" wraps at words, not letter-by-letter. */
  grid-template-columns: minmax(0, max-content) minmax(7rem, 1fr);
  align-items: start;
  gap: 12px 24px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 235, 184, 0.28);
  background: var(--nested);
  box-sizing: border-box;
}

.cdk-page .promo-summary-cell,
.promo-summary-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.cdk-page .promo-summary-cell--product,
.promo-summary-cell--product {
  justify-self: end;
  justify-items: end;
  align-items: flex-end;
  text-align: end;
}

.cdk-page .promo-summary-cell--product .promo-summary-label,
.promo-summary-cell--product .promo-summary-label,
.cdk-page .promo-summary-cell--product .promo-summary-value,
.promo-summary-cell--product .promo-summary-value {
  width: 100%;
  text-align: end;
  justify-content: flex-end;
}

.cdk-page .promo-summary-cell--product .promo-summary-value,
.promo-summary-cell--product .promo-summary-value {
  display: block;
  height: auto;
  min-height: 32px;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.3;
  padding-top: 6px;
  box-sizing: border-box;
}

.cdk-page .promo-summary-label,
.promo-summary-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 14px;
  min-height: 14px;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.cdk-page .promo-summary-value,
.promo-summary-value {
  display: flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cdk-page .promo-summary-value.mono,
.promo-summary-value.mono {
  display: inline-flex;
  font-variant-ligatures: none;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
  text-overflow: unset;
  height: auto;
}

.cdk-page .confirm-summary {
  margin: 0 0 18px;
  border: 1px solid var(--nested-border);
  border-radius: var(--radius-lg);
  background: var(--nested);
  overflow: hidden;
  padding: 0;
}

.cdk-page .confirm-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 52px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--nested-border);
}

.cdk-page .confirm-row:last-child { border-bottom: 0; }

.cdk-page .confirm-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.cdk-page .confirm-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  text-align: right;
  overflow-wrap: anywhere;
}

.cdk-page .confirm-value.mono,
.cdk-page .confirm-summary .mono {
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  white-space: normal;
}

.cdk-page .recharge-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: none;
  border: 1.5px solid #f87171;
  border-radius: var(--radius-lg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.cdk-page .recharge-notice-icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1;
}

.cdk-page .recharge-notice-copy {
  min-width: 0;
}

.cdk-page .recharge-notice-copy p {
  margin: 0 0 10px;
}

.cdk-page .recharge-notice-copy p:last-child {
  margin-bottom: 0;
}

.cdk-page .recharge-notice-copy strong {
  font-weight: 800;
}

.cdk-page .confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid var(--nested-border);
  border-radius: var(--radius-lg);
  background: var(--nested);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.cdk-page .confirm-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.cdk-page .confirm-check input[type="checkbox"]:checked {
  background: radial-gradient(circle at center, var(--accent) 0 7px, transparent 8px);
}

.cdk-page .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cdk-page .info-cell {
  background: var(--nested);
  border: 1px solid var(--nested-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cdk-page .info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.cdk-page .info-value {
  font-size: 14px;
  color: var(--fg);
  word-break: break-word;
}

.cdk-page .info-value[data-kind="ok"] { color: var(--accent-strong); }
.cdk-page .info-value[data-kind="warn"] { color: #fbbf24; }
.cdk-page .info-value[data-kind="error"] { color: #fda4a4; }
.cdk-page .info-value[data-kind="muted"] { color: var(--fg-muted); }

.cdk-page .codex-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--nested-border);
  background: var(--nested);
  color: var(--fg-muted);
  font-size: 13px;
}

.cdk-page .codex-status.success {
  border-color: rgba(46, 235, 184, 0.4);
  color: var(--accent-strong);
}

.cdk-page .codex-status.warn {
  border-color: rgba(242, 185, 75, 0.45);
  color: var(--warn);
}

.cdk-page .codex-status.error {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fda4a4;
}

/* ---------- state panels ---------- */

.cdk-state-panel { margin-top: 14px; }

.cdk-state-banner {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(242, 185, 75, 0.45);
  background: rgba(242, 185, 75, 0.08);
  margin-bottom: 12px;
}

.cdk-state-banner--warn { border-color: rgba(242, 185, 75, 0.45); }
.cdk-state-banner--error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
}
.cdk-state-banner--info {
  border-color: rgba(51, 186, 250, 0.35);
  background: rgba(51, 186, 250, 0.08);
}
.cdk-state-banner--offline {
  border-color: rgba(135, 148, 176, 0.35);
  background: rgba(135, 148, 176, 0.08);
}

.cdk-state-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warn);
}

.cdk-state-banner--error .cdk-state-kicker { color: #fda4a4; }
.cdk-state-banner--info .cdk-state-kicker { color: var(--accent-blue); }
.cdk-state-banner--offline .cdk-state-kicker { color: var(--fg-muted); }

.cdk-state-text {
  margin: 0 !important;
  color: var(--fg) !important;
  font-size: 14px !important;
}

.cdk-page .recharge-warning {
  border-radius: var(--radius-md);
}

.cdk-page .confirm-check,
.cdk-page .force-recharge {
  border-color: var(--nested-border);
  background: var(--nested);
}

/* ---------- sidebar: stacked cards (no side-split / 2fa) ---------- */

.cdk-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.cdk-side-card {
  width: 100%;
  box-sizing: border-box;
  padding: 24px 22px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--elevation-card);
}

.cdk-side-card h2,
.cdk-side-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
}

.cdk-side-help h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.cdk-side-lead {
  margin: 0 0 18px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.4;
}

.cdk-side-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-violet);
}

.cdk-side-latest .cdk-side-kicker {
  color: var(--fg-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.cdk-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cdk-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 14px 8px;
  border-radius: var(--radius-lg);
  border: 1px solid #1f3052;
  background: var(--nested);
  text-align: center;
  min-width: 0;
}

.cdk-metric strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1.2;
}

.cdk-side-metrics .cdk-metric:first-child strong {
  color: var(--accent-strong);
}

.cdk-metric span {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.25;
}

.cdk-side-help {
  background: linear-gradient(90deg, #0e1426 0%, #140d29 100%);
  border-color: #2e3666;
}

.cdk-side-help p:not(.cdk-side-kicker) {
  margin: 0 0 16px;
  color: var(--fg-muted);
  font-size: 12px;
  line-height: 1.4;
}

.cdk-side-latest {
  background: #0a101c;
  border-color: #1c2e4d;
}

.cdk-latest-empty {
  margin: 0;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.45;
}

.cdk-latest-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cdk-latest-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cdk-latest-row strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.cdk-latest-row .mono {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}

/* Text-only status pill — no ::before (● is in the copy). */
.cdk-latest-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #2eebb8;
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 18px;
}

.cdk-latest-pill::before {
  content: none;
  display: none;
}

/* ---------- step 4 success (Figma 926:40 desktop / 929:6 mobile) ---------- */

.cdk-page #step-progress.is-success #promo-summary-progress,
.cdk-page #step-progress.is-success #progress-bar,
.cdk-page #step-progress.is-success #progress-status,
.cdk-page #step-progress.is-success #cancel-btn,
.cdk-page #step-progress.is-success #restart-btn,
.cdk-page #step-progress.is-success #check-result-btn,
.cdk-page #step-progress.is-success #progress-actions {
  display: none !important;
}

.cdk-page #step-progress.is-success #progress-title {
  margin-bottom: 8px;
}

.cdk-page #step-progress.is-success #progress-text {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 24px;
  color: #97a7c2;
}

.cdk-page .cdk-success {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 0;
}

.cdk-page .cdk-success-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 12px 22px;
  border-radius: 16px;
  border: 1px solid #2de6c3;
  background: #083b37;
  box-shadow: 0 0 18px rgba(28, 184, 158, 0.22);
  box-sizing: border-box;
}

.cdk-page .cdk-success-banner-icon {
  flex: 0 0 auto;
  width: 26px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #2de6c3;
}

.cdk-page .cdk-success-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cdk-page .cdk-success-banner-copy strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2de6c3;
}

.cdk-page .cdk-success-banner-copy span {
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
  color: #eef3ff;
}

.cdk-page .cdk-success-table {
  margin: 0;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid #1f4066;
  background: #050a14;
}

.cdk-page .cdk-success-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 46px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #1a3859;
}

.cdk-page .cdk-success-row:last-child {
  border-bottom: 0;
}

.cdk-page .cdk-success-row dt {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
  color: #2de6c3;
  white-space: nowrap;
}

.cdk-page .cdk-success-row dd {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #eef3ff;
  text-align: right;
  overflow-wrap: anywhere;
}

/* Promo dd inherits .step-body .mono chip (padding/border/bg). Keep the chip,
   but hug the code — do not let the grid cell stretch it into a wide bar. */
.cdk-page .cdk-success .mono {
  width: max-content;
  max-width: 100%;
  justify-self: end;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 600;
  color: #eef3ff;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: right;
}

.cdk-page .cdk-success .cdk-open-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  width: min(560px, 100%);
  max-width: 100%;
  height: 58px;
  min-height: 58px;
  margin: 8px auto 0;
  padding: 0 20px;
  border-radius: 16px;
  background: #2de6c3 !important;
  color: #06121d !important;
  -webkit-text-fill-color: #06121d;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(46, 230, 194, 0.28), 0 4px 20px rgba(124, 85, 255, 0.18);
}

.cdk-page .cdk-success .cdk-open-service:hover:not(:disabled) {
  background: #2de6c3 !important;
  color: #06121d !important;
  -webkit-text-fill-color: #06121d;
}

.cdk-page .cdk-success-note {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  color: #97a7c2;
}

/* ---------- micro-interactions (hover-capable devices only) ---------- */

.cdk-brand-mark {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Scale from the left so the wordmark grows away from the VB square instead of
   drifting over it. Transforms don't reflow, so the header controls stay put. */
.cdk-brand-text {
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.cdk-brand-name,
.cdk-brand-sub {
  transition: text-shadow 0.2s ease, color 0.2s ease;
}

.cdk-success-banner-icon {
  animation: cdk-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cdk-page .cdk-success {
  animation: cdk-rise-in 0.35s ease-out both;
}

@keyframes cdk-pop-in {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes cdk-rise-in {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (hover: hover) and (pointer: fine) {
  .cdk-brand:hover .cdk-brand-mark {
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 0 24px rgba(38, 245, 194, 0.55);
  }

  .cdk-brand:hover .cdk-brand-text {
    transform: scale(1.07);
  }

  .cdk-brand:hover .cdk-brand-name {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(38, 245, 194, 0.40);
  }

  .cdk-brand:hover .cdk-brand-sub {
    color: #6cf5d2;
  }

  .cdk-benefits-list li {
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }

  .cdk-benefits-list li:hover {
    transform: translateX(4px);
    border-color: rgba(46, 235, 184, 0.45);
    background: #101b30;
  }

  .cdk-product-chip {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .cdk-product-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  }

  .cdk-metric {
    transition: transform 0.18s ease, border-color 0.18s ease;
  }

  .cdk-metric:hover {
    transform: translateY(-2px);
    border-color: rgba(51, 186, 250, 0.45);
  }

  .cdk-page .cdk-open-service:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cdk-brand-mark,
  .cdk-brand-text,
  .cdk-benefits-list li,
  .cdk-product-chip,
  .cdk-metric {
    transition: none;
  }
  .cdk-success-banner-icon,
  .cdk-page .cdk-success {
    animation: none;
  }
}

/* ---------- footer ---------- */

.cdk-footer {
  margin-top: 28px;
  padding: 8px 8px 0;
  text-align: center;
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.cdk-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cdk-footer a:hover {
  color: var(--fg);
}

.cdk-footer-narrow { display: none; }

.cdk-page .support-footer { display: none !important; }

/* ---------- laptop 1024–1279: keep step titles readable ---------- */

@media (min-width: 1024px) and (max-width: 1279px) {
  .cdk-progress {
    gap: 14px;
    padding: 14px 18px;
  }

  .cdk-progress-item {
    padding: 0 10px 0 12px;
  }

  .cdk-progress-copy strong {
    font-size: 14px;
    line-height: 19px;
  }
}

/* ---------- tablet 721–1023 ---------- */

@media (min-width: 721px) and (max-width: 1023px) {
  .cdk-shell { padding: 22px 18px 40px; }
  .cdk-topbar {
    height: auto;
    min-height: 64px;
    flex-wrap: nowrap;
    gap: 12px;
    top: 0;
  }
  .cdk-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }
  .cdk-page .cdk-hero h1 { font-size: 36px; max-width: none; }
  .cdk-benefits { width: 100%; }
  .cdk-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 16px;
  }
  .cdk-progress-item {
    padding: 0 10px 0 12px;
  }
  .cdk-progress-copy strong {
    font-size: 13px;
    line-height: 18px;
  }
  .cdk-progress-copy small { display: none; }
  .cdk-workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cdk-product-chips {
    max-width: none;
  }
  .cdk-page .step { padding: 24px; scroll-margin-top: 80px; }

  .cdk-page .confirm-row {
    grid-template-columns: max-content minmax(0, 1fr);
    padding: 12px 16px;
  }
}

/* ---------- mobile ≤720 ---------- */

@media (max-width: 720px) {
  .cdk-shell { padding: 14px 14px 36px; }

  .cdk-page .support-btn,
  .cdk-page button.support-btn,
  .cdk-page .cdk-control-btn {
    width: auto !important;
    height: auto !important;
  }

  .cdk-page .cdk-side-help .support-btn,
  .cdk-page .cdk-side-help .cdk-side-action {
    width: 100% !important;
  }

  .cdk-page .support-btn span {
    display: inline !important;
    position: static !important;
    opacity: 1 !important;
  }

  /* Figma 360 header: brand lockup + language only */
  .cdk-topbar {
    height: 54px;
    min-height: 54px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    top: 0;
  }

  .cdk-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
  }

  .cdk-brand-mark {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .cdk-brand-text {
    min-width: 0;
    overflow: visible;
  }

  .cdk-brand-name {
    font-size: 20px;
    letter-spacing: -0.2px;
    line-height: 24px;
  }

  .cdk-brand-sub {
    font-size: 10px;
    letter-spacing: 0.5px;
    line-height: 12px;
  }

  .cdk-topbar-controls {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
    gap: 6px;
  }

  .cdk-topbar .support-btn,
  .cdk-topbar .cdk-control-btn {
    display: none !important;
  }

  .cdk-page .lang-switch {
    gap: 6px;
  }

  .cdk-page .lang-switch button {
    min-width: 47px;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 12px;
  }

  .cdk-hero {
    grid-template-columns: 1fr;
    margin-top: 16px;
    gap: 0;
    padding: 18px 19px 20px;
  }

  .cdk-eyebrow {
    font-size: 10px;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
  }

  .cdk-page .cdk-hero h1 {
    font-size: 28px;
    line-height: 34px;
    max-width: none;
    margin-bottom: 12px;
  }

  .cdk-page .cdk-hero .lead {
    font-size: 14px;
    line-height: 19px;
    color: #8594b0;
  }

  .cdk-benefits { display: none; }

  /* Figma mobile progress: dots + connectors, no text cards */
  .cdk-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    position: relative;
    height: 70px;
    min-height: 70px;
    margin: 14px 0 12px;
    padding: 15px 19px;
    border-radius: 16px;
  }

  .cdk-progress::before {
    content: "";
    position: absolute;
    left: 38px;
    right: 38px;
    top: 50%;
    height: 2px;
    background: #143052;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
  }

  .cdk-progress-item {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    justify-content: center;
    opacity: 1;
  }

  .cdk-progress-item[data-state="active"],
  .cdk-progress-item[data-state="done"],
  .cdk-progress-item[data-state="pending"],
  .cdk-progress-item[data-state="error"] {
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
  }

  /* Keep step names in the accessibility tree without widening the rail. */
  .cdk-progress-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .cdk-progress-dot {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    font-family: "Onest", sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 15px;
    border: 1px solid #143052;
    background: #0f1c38;
    color: #8594b0;
  }

  .cdk-progress-item[data-state="done"] .cdk-progress-dot {
    background: #0a594a;
    color: #8594b0;
    box-shadow: none;
  }

  .cdk-progress-item[data-state="active"] .cdk-progress-dot {
    background: #1fe8b8;
    color: #052626;
    border-color: #143052;
    box-shadow: 0 0 12px rgba(46, 230, 194, 0.35);
  }

  .cdk-progress-item[data-state="error"] .cdk-progress-dot {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    box-shadow: none;
  }

  .cdk-workspace {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cdk-page .step {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    scroll-margin-top: 70px;
  }

  .cdk-page .step-body h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .cdk-page .kbd {
    padding: 1px 5px;
    font-size: 10px;
  }

  .cdk-page .kbd-seq {
    gap: 3px;
  }

  .cdk-step-chip { margin-bottom: 14px; }

  .cdk-product-chips {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 10px;
  }

  .cdk-page .cdk-input-shell input,
  .cdk-page .codex-tool .cdk-input-shell input {
    min-height: 64px;
    padding: 16px 100px 16px 14px;
    font-size: 14px;
  }

  .cdk-paste-btn,
  .cdk-page button.cdk-paste-btn {
    min-width: 78px;
    height: 36px;
    right: 10px;
  }

  .cdk-page .primary-btn,
  .cdk-page button.primary-btn {
    height: 56px;
    min-height: 56px;
    font-size: 15px;
  }

  .cdk-secure-note {
    padding: 14px 12px;
  }

  .cdk-secure-mark {
    width: 40px;
    height: 36px;
    font-size: 16px;
  }

  .promo-summary,
  .cdk-page .promo-summary {
    grid-template-columns: minmax(0, max-content) minmax(7rem, 1fr);
    gap: 10px 12px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 14px 14px;
  }

  .cdk-page .confirm-summary {
    margin-bottom: 16px;
  }

  .cdk-page .confirm-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 46px;
    padding: 11px 14px;
  }

  .cdk-page .confirm-label {
    font-size: 13px;
    line-height: 1.3;
  }

  .cdk-page .confirm-value,
  .cdk-page .confirm-value.mono,
  .cdk-page .confirm-summary .mono {
    text-align: right;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .cdk-page .recharge-notice {
    font-size: 13px;
    line-height: 1.45;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
  }

  .cdk-page .confirm-check {
    padding: 14px;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
  }

  .cdk-page .info-grid {
    grid-template-columns: 1fr;
  }

  .cdk-side-card {
    padding: 18px 16px;
    border-radius: var(--radius-lg);
  }

  .cdk-side-card h2 { font-size: 21px; }

  .cdk-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .cdk-metric {
    min-height: 80px;
    padding: 10px 6px;
  }

  .cdk-metric strong { font-size: 15px; }
  .cdk-metric span { font-size: 10.5px; }

  .cdk-latest-pill {
    font-size: 14px;
    line-height: 18px;
  }

  .cdk-latest-row strong {
    font-size: 17px;
    font-weight: 700;
  }

  .cdk-footer-wide { display: none; }
  .cdk-footer-narrow { display: inline; }

  /* Success screen, Figma 926:342 mobile: full-width CTA, same 4-row table. */
  .cdk-page #step-progress.is-success #progress-text {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 22px;
  }

  .cdk-page .cdk-success {
    gap: 18px;
  }

  .cdk-page .cdk-success-banner {
    min-height: 58px;
    padding: 12px 16px;
    gap: 12px;
  }

  .cdk-page .cdk-success-table {
    padding: 0 14px;
  }

  .cdk-page .cdk-success-row {
    gap: 12px;
    min-height: 46px;
  }

  .cdk-page .cdk-success-row dt {
    font-size: 14px;
  }

  .cdk-page .cdk-success-row dd {
    font-size: 14px;
  }

  .cdk-page .cdk-success .cdk-open-service {
    width: 100%;
    height: 56px;
    min-height: 56px;
    margin-top: 4px;
    font-size: 16px;
  }
}

/* ---------- narrow phone ≤340 (below Figma 360) ---------- */

@media (max-width: 340px) {
  .cdk-shell { padding: 10px 10px 28px; }

  .cdk-brand-name {
    font-size: 17px;
    line-height: 21px;
  }

  .cdk-brand-sub {
    font-size: 9px;
    letter-spacing: 0.4px;
  }

  .cdk-page .lang-switch button {
    min-width: 40px;
    padding: 7px 9px;
  }

  .cdk-page .cdk-hero h1 { font-size: 26px; line-height: 32px; }
  .cdk-page .cdk-hero .lead { font-size: 13px; }

  .cdk-progress {
    padding: 14px 12px;
  }

  .cdk-progress::before {
    left: 28px;
    right: 28px;
  }

  .cdk-progress-item,
  .cdk-progress-dot {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .cdk-page .step { padding: 16px 12px; scroll-margin-top: 70px; }
  .cdk-page .step-body h3 { font-size: 20px; }

  .cdk-page .confirm-row {
    gap: 10px;
    padding: 10px 12px;
  }

  .cdk-page .confirm-label,
  .cdk-page .confirm-value,
  .cdk-page .confirm-value.mono,
  .cdk-page .confirm-summary .mono,
  .cdk-page .cdk-success-row dt,
  .cdk-page .cdk-success-row dd,
  .cdk-page .cdk-success .mono {
    font-size: 13px;
  }

  .cdk-metric strong { font-size: 13px; }

  .cdk-page .primary-btn,
  .cdk-page button.primary-btn,
  .cdk-page .secondary-btn {
    min-height: 48px;
    height: 48px;
    font-size: 13px;
  }

  .cdk-page .cdk-input-shell input,
  .cdk-page .codex-tool .cdk-input-shell input {
    min-height: 56px;
    padding: 14px 78px 14px 12px;
    font-size: 13px;
  }

  .cdk-paste-btn,
  .cdk-page button.cdk-paste-btn {
    min-width: 66px;
    height: 34px;
    right: 8px;
    padding: 0 10px;
    font-size: 12px;
  }
}
