:root {
  --bg: #07111f;
  --bg-soft: rgba(255, 255, 255, 0.06);
  --card: rgba(10, 18, 31, 0.78);
  --card-border: rgba(255, 255, 255, 0.10);
  --text: #f4f7fb;
  --muted: #a5b4c7;
  --accent: #6ea8fe;
  --accent-2: #8b5cf6;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(110, 168, 254, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-1 {
  width: 260px;
  height: 260px;
  background: #3977ff;
  top: 50px;
  left: -60px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: #7c3aed;
  right: -80px;
  top: 220px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
  pointer-events: none;
}

.page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 45px rgba(84, 112, 255, 0.45);
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.topbar-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: #d9e6f3;
  font-size: 13px;
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.hero-copy {
  padding: 22px 8px 0 4px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(110, 168, 254, 0.12);
  color: #c8dcff;
  border: 1px solid rgba(110, 168, 254, 0.18);
  font-size: 13px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.hero-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 28px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dce7f5;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(110, 168, 254, 0.7);
}

.wizard-card,
.info-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.wizard-card {
  border-radius: 28px;
  padding: 24px;
}

.wizard-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-kicker {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.wizard-header h2 {
  margin: 0;
  font-size: 24px;
}

.status-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  color: #dbe7f5;
  font-size: 13px;
}

.steps {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  color: #e7f0fa;
  font-weight: 700;
}

.step-label {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.step.active .step-number,
.step.done .step-number {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.32);
}

.step.active .step-label,
.step.done .step-label {
  color: #eef4fb;
}

.step-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.20), rgba(255,255,255,0.08));
  margin: 0 8px;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.panel-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.panel-text {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #dfe8f5;
}

.field-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: white;
  border-radius: 18px;
  padding: 17px 18px;
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
}

.field-input:focus {
  border-color: rgba(110, 168, 254, 0.65);
  box-shadow: 0 0 0 4px rgba(110, 168, 254, 0.12);
}

.helper-row {
  margin-top: 10px;
  margin-bottom: 18px;
}

.helper-text {
  color: var(--muted);
  font-size: 13px;
}

.message-box {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.message-box.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #d8ffe5;
}

.message-box.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #ffe1e1;
}

.hidden {
  display: none;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 35px rgba(94, 92, 230, 0.35);
}

.btn-secondary {
  color: #d8e4f2;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.summary-card,
.processing-box,
.result-card {
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.04);
}

.summary-card {
  padding: 18px;
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span {
  color: var(--muted);
}

.ok {
  color: #86efac;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  color: #deebf6;
  line-height: 1.6;
}

.checkbox-row input {
  margin-top: 4px;
}

.processing-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  margin-bottom: 18px;
}

.processing-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.processing-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.08);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  margin-bottom: 20px;
}

.progress-fill {
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: pulseMove 2s ease-in-out infinite;
}

@keyframes pulseMove {
  0% { width: 28%; }
  50% { width: 72%; }
  100% { width: 36%; }
}

.result-card {
  padding: 28px;
  text-align: center;
}

.result-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.result-icon.success {
  color: white;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 16px 36px rgba(34, 197, 94, 0.28);
}

.result-icon.error {
  color: white;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.28);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.info-card {
  border-radius: 24px;
  padding: 22px;
}

.info-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.info-text {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 4px;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1200px);
    padding-top: 16px;
  }

  .wizard-card {
    padding: 18px;
    border-radius: 22px;
  }

  .panel-title {
    font-size: 22px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .steps {
    gap: 4px;
  }

  .step {
    min-width: 56px;
  }

  .step-label {
    font-size: 11px;
  }
}

/* Premium Toasts */

.toast-root {
  position: fixed;
  top: 24px;
  right: 24px;
  width: min(390px, calc(100vw - 32px));
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 16px 18px;

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(18, 29, 47, 0.96),
      rgba(10, 18, 31, 0.97)
    );

  border: 1px solid rgba(255,255,255,0.10);

  box-shadow:
    0 24px 70px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);

  backdrop-filter: blur(24px);

  opacity: 0;
  transform: translateY(-14px) scale(0.98);

  animation: toastIn 0.28s ease forwards;

  pointer-events: auto;
}

.toast.hide {
  animation: toastOut 0.24s ease forwards;
}

.toast-icon {
  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  border-radius: 12px;

  display: grid;
  place-items: center;

  font-size: 18px;
  font-weight: 800;
}

.toast.error .toast-icon {
  color: #fecaca;
  background: rgba(239,68,68,0.14);
  border: 1px solid rgba(239,68,68,0.22);
}

.toast.success .toast-icon {
  color: #bbf7d0;
  background: rgba(34,197,94,0.14);
  border: 1px solid rgba(34,197,94,0.22);
}

.toast.warning .toast-icon {
  color: #fde68a;
  background: rgba(245,158,11,0.14);
  border: 1px solid rgba(245,158,11,0.22);
}

.toast.info .toast-icon {
  color: #bfdbfe;
  background: rgba(59,130,246,0.14);
  border: 1px solid rgba(59,130,246,0.22);
}

.toast-body {
  min-width: 0;
  flex: 1;
}

.toast-title {
  font-size: 15px;
  font-weight: 750;
  color: #f8fafc;
  margin-bottom: 4px;
}

.toast-text {
  color: #aebdd0;
  font-size: 13px;
  line-height: 1.55;
}

.toast-close {
  border: 0;
  background: transparent;
  color: #7f91a8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
}

.toast-close:hover {
  color: white;
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  height: 2px;
  width: 100%;

  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent-2)
  );

  transform-origin: left;
  animation: toastTimer 4s linear forwards;
}

.toast.error::after {
  background: linear-gradient(90deg,#ef4444,#fb7185);
}

.toast.success::after {
  background: linear-gradient(90deg,#22c55e,#86efac);
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

@keyframes toastTimer {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (max-width: 600px) {
  .toast-root {
    top: 14px;
    right: 14px;
    width: calc(100vw - 28px);
  }
}


/* ===== ACCOUNT STEP ===== */

.account-guide-card {
  border:
    1px solid
    rgba(110, 168, 254, 0.20);

  background:
    linear-gradient(
      145deg,
      rgba(110, 168, 254, 0.07),
      rgba(139, 92, 246, 0.05)
    );

  border-radius:
    22px;

  padding:
    22px;

  margin-bottom:
    18px;
}


.account-guide-actions {
  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    12px;

  margin-bottom:
    20px;
}


.account-link {
  text-decoration:
    none;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  text-align:
    center;
}


.account-guide-list {
  margin:
    0;

  padding-left:
    24px;

  color:
    #dce7f5;

  line-height:
    1.85;

  font-size:
    14px;
}


.account-notice {
  background:
    rgba(59, 130, 246, 0.10);

  border:
    1px solid
    rgba(59, 130, 246, 0.20);

  color:
    #dbeafe;
}


@media (
  max-width: 680px;
) {

  .account-guide-actions {
    grid-template-columns:
      1fr;
  }

}


/* ===== IMPROVED STEPS ===== */

.steps {
  overflow-x:
    auto;

  padding-bottom:
    4px;
}


.step-number {
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}


.step.active .step-number {
  transform:
    scale(1.06);
}


.step.done .step-number {
  position:
    relative;

  
}





/* ===== BETTER CHECKBOX ===== */

.checkbox-row {
  padding:
    18px;

  border-radius:
    18px;

  background:
    rgba(
      255,
      255,
      255,
      0.035
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.08
    );
}


.checkbox-row input {
    20px;

  height:
    20px;

  accent-color:
    #7c6cff;
}



/* =====================================================
   PREMIUM STEPPER V2
   ===================================================== */

.steps {
  position: relative;
  display: grid;
  grid-template-columns:
    auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: start;

  gap: 0;
  overflow: visible;

  margin: 28px 0 42px;
  padding: 0 4px;
}


.step {
  min-width: 88px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;

  position: relative;
  z-index: 2;
}


.step-number {
  width: 38px;
  height: 38px;

  border-radius: 12px;

  display: grid;
  place-items: center;

  background:
    rgba(255,255,255,0.055);

  border:
    1px solid
    rgba(255,255,255,0.10);

  color: #91a0b5;

  font-size: 14px;
  font-weight: 700;

  box-shadow: none;

  transition:
    background .22s ease,
    border-color .22s ease,
    color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}


.step-label {
  color: #8797ad;

  font-size: 12px;
  line-height: 1.25;

  white-space: nowrap;

  transition:
    color .22s ease;
}


.step-line {
  height: 1px;

  align-self: start;

  margin:
    19px 14px 0;

  background:
    rgba(255,255,255,0.10);

  position: relative;
  overflow: hidden;
}


.step-line::after {
  content: "";

  position: absolute;
  inset: 0;

  transform:
    scaleX(0);

  transform-origin:
    left;

  background:
    linear-gradient(
      90deg,
      #6e8fff,
      #8b5cf6
    );

  transition:
    transform .35s ease;
}


/* Active */

.step.active .step-number {
  color: white;

  background:
    linear-gradient(
      135deg,
      #6288ff,
      #805cf8
    );

  border-color:
    transparent;

  transform:
    translateY(-1px);

  box-shadow:
    0 10px 28px
    rgba(99,102,241,.24);
}


.step.active .step-label {
  color:
    #eef3fb;

  font-weight:
    600;
}


/* Done */

.step.done .step-number {
  color:
    #bcd1ff;

  background:
    rgba(99,102,241,.10);

  border-color:
    rgba(122,142,255,.28);

  

  box-shadow:
    none;
}





.step.done .step-label {
  color:
    #b9c5d6;
}


/*
 completed line:
 JS marks previous step as done,
 so make adjacent connector look active
 */

.step.done + .step-line::after {
  transform:
    scaleX(1);
}


/* =====================================================
   STEP 3 / ACCOUNT
   ===================================================== */

.account-guide-card {
  padding: 20px;

  border-radius: 20px;

  border:
    1px solid
    rgba(115,140,255,.16);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.035),
      rgba(100,80,255,.035)
    );

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.025);

  margin-bottom: 16px;
}


.account-guide-actions {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 12px;

  margin-bottom: 18px;
}


.account-guide-actions .btn {
  min-height: 50px;

  border-radius: 14px;

  font-size: 14px;

  box-shadow: none;
}


.account-guide-list {
  margin: 0;

  padding-left: 21px;

  color: #acbacd;

  line-height: 1.8;

  font-size: 13px;
}


.account-guide-list li {
  padding-left: 3px;
}


.account-status-card {
  display: flex;

  align-items: center;

  gap: 14px;

  padding: 16px;

  margin-bottom: 16px;

  border-radius: 18px;

  border:
    1px solid
    rgba(255,255,255,.08);

  background:
    rgba(255,255,255,.03);
}


.account-status-icon {
  width: 42px;
  height: 42px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      rgba(98,136,255,.18),
      rgba(128,92,248,.18)
    );

  border:
    1px solid
    rgba(122,142,255,.17);

  color:
    #b9c8ff;

  font-size: 14px;
  font-weight: 750;
}


.account-status-content {
  flex: 1;
  min-width: 0;
}


.account-status-title {
  margin-bottom: 4px;

  color:
    #edf3fb;

  font-size: 14px;
  font-weight: 700;
}


.account-status-text {
  color:
    #8fa0b6;

  font-size: 12px;
  line-height: 1.55;
}


.account-status-badge {
  flex: 0 0 auto;

  padding:
    8px 11px;

  border-radius:
    999px;

  color:
    #aab8cb;

  background:
    rgba(255,255,255,.045);

  border:
    1px solid
    rgba(255,255,255,.07);

  font-size:
    11px;

  font-weight:
    600;
}


.compact-summary {
  margin-top:
    0;
}


/* =====================================================
   GENERAL REFINEMENT
   ===================================================== */

.wizard-card {
  border-radius:
    26px;

  border:
    1px solid
    rgba(255,255,255,.075);

  background:
    rgba(8,17,30,.78);

  box-shadow:
    0 25px 70px
    rgba(0,0,0,.28);
}


.panel-title {
  letter-spacing:
    -.025em;

  font-weight:
    730;
}


.status-chip {
  padding:
    9px 13px;

  font-size:
    12px;

  color:
    #aebed0;

  border:
    1px solid
    rgba(255,255,255,.075);

  background:
    rgba(255,255,255,.035);
}


.btn-primary {
  background:
    linear-gradient(
      135deg,
      #6489ff,
      #835cf6
    );

  box-shadow:
    0 12px 28px
    rgba(96,84,230,.22);
}


.btn-secondary {
  background:
    rgba(255,255,255,.04);

  border:
    1px solid
    rgba(255,255,255,.075);
}


.summary-card {
  border:
    1px solid
    rgba(255,255,255,.075);

  background:
    rgba(255,255,255,.025);

  box-shadow:
    none;
}


@media (max-width: 760px) {

  .steps {
    grid-template-columns:
      auto 1fr auto 1fr auto 1fr auto 1fr auto;

    overflow-x:
      auto;

    padding-bottom:
      8px;
  }


  .step {
    min-width:
      64px;
  }


  .step-label {
    font-size:
      10px;
  }


  .step-line {
    margin-left:
      7px;

    margin-right:
      7px;
  }


  .account-guide-actions {
    grid-template-columns:
      1fr;
  }


  .account-status-card {
    align-items:
      flex-start;

    flex-wrap:
      wrap;
  }


  .account-status-badge {
    margin-left:
      56px;
  }

}


/* ===== TOKEN JSON INPUT ===== */

.token-json-input {
  width: 100%;
  min-height: 220px;
  resize: vertical;

  padding: 18px 20px;

  border-radius: 18px;

  border:
    1px solid
    rgba(255,255,255,.09);

  background:
    rgba(255,255,255,.035);

  color: #e7edf6;

  outline: none;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 13px;
  line-height: 1.7;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.token-json-input::placeholder {
  color: #697b92;
}

.token-json-input:focus {
  border-color:
    rgba(107,137,255,.55);

  background:
    rgba(255,255,255,.045);

  box-shadow:
    0 0 0 4px
    rgba(99,102,241,.10);
}

#tokenCheckMessage {
  margin-top: 14px;
  margin-bottom: 0;
}

.token-footnote {
  margin-top: 12px;
  margin-bottom: 20px;

  color: #8798ad;

  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .token-json-input {
    min-height: 180px;
  }
}


/* ===== CLEAN TOKEN STEP ===== */

.token-guide-card {
  padding: 22px;
  margin-bottom: 18px;

  border-radius: 20px;

  border:
    1px solid
    rgba(108, 134, 255, .16);

  background:
    rgba(255,255,255,.025);
}

.token-guide-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 14px;

  margin-bottom: 22px;
}

.token-link {
  min-height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  text-align: center;
}

.token-guide-list {
  margin: 0;

  padding-left: 24px;

  color: #b8c5d6;

  font-size: 14px;

  line-height: 1.9;
}

.token-warning-box {
  margin-bottom: 20px;

  padding: 15px 18px;

  border-radius: 16px;

  color: #f5c98f;

  background:
    rgba(245,158,11,.07);

  border:
    1px solid
    rgba(245,158,11,.18);

  font-size: 13px;

  line-height: 1.65;
}

.token-field-title {
  margin-bottom: 10px;

  font-weight: 650;

  color: #e4ebf5;
}

.token-json-input {
  display: block;

  width: 100%;

  min-height: 220px;

  resize: vertical;

  padding: 18px 20px;

  border-radius: 18px;

  outline: none;

  color: #e8eef8;

  background:
    rgba(255,255,255,.03);

  border:
    1px solid
    rgba(255,255,255,.09);

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 13px;

  line-height: 1.7;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.token-json-input::placeholder {
  color: #66778d;
}

.token-json-input:focus {
  background:
    rgba(255,255,255,.04);

  border-color:
    rgba(108,137,255,.55);

  box-shadow:
    0 0 0 4px
    rgba(99,102,241,.09);
}

#tokenCheckMessage {
  margin-top: 14px;
  margin-bottom: 0;
}

.token-footnote {
  margin-top: 10px;
  margin-bottom: 20px;

  color: #7f90a6;

  font-size: 12px;
}

@media (max-width: 700px) {

  .token-guide-actions {
    grid-template-columns: 1fr;
  }

  .token-json-input {
    min-height: 180px;
  }

}



/* =====================================================
   PREMIUM PROGRESS STEPPER V3
   ===================================================== */

.steps {
  display: flex !important;
  align-items: flex-start !important;

  width: 100%;

  gap: 0 !important;

  margin: 30px 0 44px !important;
  padding: 0 2px !important;

  overflow: visible !important;
}


.step {
  flex: 0 0 92px !important;

  min-width: 0 !important;

  display: flex !important;
  flex-direction: column !important;

  align-items: center !important;

  gap: 10px !important;

  position: relative;

  z-index: 3;
}


.step-number {
  width: 44px !important;
  height: 44px !important;

  flex: 0 0 44px;

  border-radius: 14px !important;

  display: grid !important;
  place-items: center !important;

  background:
    rgba(255,255,255,.045) !important;

  border:
    1px solid
    rgba(255,255,255,.09) !important;

  color:
    #8494aa !important;

  font-size: 14px !important;
  font-weight: 750 !important;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.025) !important;

  transform: none !important;

  transition:
    background .35s ease,
    border-color .35s ease,
    color .35s ease,
    box-shadow .35s ease,
    transform .35s ease !important;
}


.step-label {
  font-size: 12px !important;

  color:
    #8494aa !important;

  white-space: nowrap;

  line-height: 1.2;

  transition:
    color .3s ease,
    opacity .3s ease;
}


/* соединительная линия */

.step-line {
  display: block !important;

  flex: 1 1 auto !important;

  min-width: 22px;

  height: 3px !important;

  margin:
    21px 10px 0 !important;

  position: relative;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(255,255,255,.075) !important;
}


/* цветное заполнение */

.step-line::after {
  content: "";

  position: absolute;

  inset: 0;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #668cff 0%,
      #756eff 48%,
      #8b5cf6 100%
    );

  transform:
    translateX(-101%);

  transition:
    transform .55s
    cubic-bezier(.22,.8,.25,1);
}


/* пройденный шаг заполняет следующую линию */

.step.done + .step-line::after {
  transform:
    translateX(0);
}


/* лёгкий блик по уже заполненной линии */

.step.done + .step-line::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  width: 42%;

  z-index: 2;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.7),
      transparent
    );

  transform:
    translateX(-180%);

  animation:
    paradoxStepShine
    2.1s ease-in-out
    infinite;

  opacity: .38;
}


@keyframes paradoxStepShine {
  0% {
    transform:
      translateX(-180%);
  }

  55%,
  100% {
    transform:
      translateX(320%);
  }
}


/* активный шаг */

.step.active .step-number {
  color: #ffffff !important;

  background:
    linear-gradient(
      135deg,
      #6388ff,
      #865cf6
    ) !important;

  border-color:
    transparent !important;

  transform:
    translateY(-2px) !important;

  box-shadow:
    0 12px 30px
    rgba(102, 92, 245, .26) !important;
}


.step.active .step-label {
  color:
    #edf2fb !important;

  font-weight:
    650;
}


/* завершённый шаг */

.step.done .step-number {
  

  color:
    #adc0ff !important;

  background:
    rgba(99, 102, 241, .10) !important;

  border-color:
    rgba(122, 142, 255, .24) !important;

  box-shadow:
    inset 0 0 0 1px
    rgba(120, 136, 255, .025) !important;
}





.step.done .step-label {
  color:
    #b3c0d2 !important;
}


/* мобильная версия */

@media (max-width: 760px) {

  .steps {
    overflow-x: auto !important;

    padding-bottom:
      10px !important;
  }

  .step {
    flex-basis:
      68px !important;
  }

  .step-number {
      40px !important;

    height:
      40px !important;

    flex-basis:
      40px;
  }

  .step-line {
    min-width:
      22px;

    margin-top:
      19px !important;

    margin-left:
      4px !important;

    margin-right:
      4px !important;
  }

  .step-label {
    font-size:
      10px !important;
  }

}


/* Email аккаунта в подтверждении */

.account-email {
  color: #8fb0ff;
  font-weight: 700;
  word-break: break-word;
  text-align: right;
}


.existing-plan-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 18px 20px;
  margin-bottom: 14px;

  border-radius: 18px;

  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.20);

  cursor: pointer;
}

.existing-plan-checkbox.hidden {
  display: none;
}

.existing-plan-checkbox input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;

  margin-top: 3px;

  accent-color: #7c68ff;
}

.existing-plan-title {
  margin-bottom: 5px;

  color: #f2c98f;

  font-size: 15px;
  font-weight: 700;
}

.existing-plan-description {
  color: #ad9f91;

  font-size: 13px;
  line-height: 1.6;
}


/* Стилизация новой аватарки бренда */
.brand-mark {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%) !important;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
  border-radius: 14px !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.brand-mark:hover {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.65) !important;
}


/* === ФОНОВЫЕ ЛОГОТИПЫ CHATGPT === */
.bg-watermarks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.watermark {
  position: absolute;
  color: rgba(139, 92, 246, 0.04);
  filter: drop-shadow(0 0 35px rgba(99, 102, 241, 0.08));
  animation: wmFloat 18s ease-in-out infinite alternate;
}

.wm-1 {
  top: 4%;
  left: -4%;
  width: 380px;
  height: 380px;
  transform: rotate(-15deg);
  animation-duration: 22s;
}

.wm-2 {
  bottom: 8%;
  right: -5%;
  width: 460px;
  height: 460px;
  transform: rotate(20deg);
  animation-duration: 26s;
}

.wm-3 {
  top: 42%;
  right: 18%;
  width: 220px;
  height: 220px;
  color: rgba(217, 70, 239, 0.035);
  transform: rotate(45deg);
  animation-duration: 16s;
}

@keyframes wmFloat {
  0% { transform: translateY(0px) rotate(var(--rot, 0deg)) scale(1); }
  50% { transform: translateY(-20px) rotate(calc(var(--rot, 0deg) + 6deg)) scale(1.03); }
  100% { transform: translateY(15px) rotate(calc(var(--rot, 0deg) - 4deg)) scale(0.98); }
}

.wm-1 { --rot: -15deg; }
.wm-2 { --rot: 20deg; }
.wm-3 { --rot: 45deg; }

/* На мобильных скрываем кастомный курсор */
@media (max-width: 768px) {
  
/* === ПРЕМИАЛЬНАЯ АУРА КУРСОРА === */
.pointer-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.05) 35%, transparent 70%);
  filter: blur(12px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease, width 0.3s ease, height 0.3s ease;
  will-change: transform, opacity;
}

/* Показываем, когда мышь зашла на экран */
body.mouse-active .pointer-aura {
  opacity: 1;
}

/* При наведении на кликабельные кнопки слегка концентрируем */
.pointer-aura.active-hover {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(139, 92, 246, 0.07) 40%, transparent 70%);
}

/* ПОЛНОЕ ИСЧЕЗНОВЕНИЕ над любыми полями ввода, текстом и формами */
.pointer-aura.hidden-input {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.6);
}

@media (max-width: 768px), (pointer: coarse) {
  .pointer-aura {
    display: none !important;
  }
}

/* Акцентный бейдж отзыва на финальном экране */
.review-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  color: #e9d5ff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.15);
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.review-cta-badge .review-star {
  color: #fbbf24;
  font-size: 16px;
}

@keyframes badgePop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* === ЕДИНАЯ ГАЛОЧКА ПО ЦЕНТРУ === */
.step-number::before,
.step-number::after,
.step.done .step-number::before,
.step.done .step-number::after,
.step::before,
.step::after,
.step.done::before,
.step.done::after {
  content: none !important;
  display: none !important;
  background: none !important;
  mask: none !important;
  -webkit-mask: none !important;
}

.step-number {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.step.done .step-number svg {
  display: block !important;
  margin: 0 !important;
  pointer-events: none !important;
}

/* === ФИНАЛЬНОЕ ЦЕНТРИРОВАНИЕ ЕДИНОГО SVG === */
.step-number {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.step.done .step-number {
  font-size: 15px !important;
  color: #c4b5fd !important;
}

.step.done .step-number::after,
.step.done .step-number::before {
  content: none !important;
  display: none !important;
}

.step.done .step-number svg {
  display: block !important;
  margin: 0 auto !important;
  transform: translateY(-1px) !important;
}


/* Полное скрытие кнопки перезапуска/повторного пополнения */
#restartBtn,
.restart-btn {
  display: none !important;
}



/* === ADAPTIVE & RESPONSIVE ENGINE === */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-copy {
    padding: 0;
    text-align: center;
  }
  .hero-copy h1 {
    font-size: clamp(28px, 5vw, 42px);
  }
  .hero-copy p {
    margin: 0 auto 24px;
    font-size: 15px;
  }
  .feature-list {
    display: inline-flex;
    text-align: left;
    margin: 0 auto;
  }
  .topbar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* Идеальный адаптивный степпер */
.steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  z-index: 2;
}

.step-number {
  width: 38px;
  height: 38px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-sizing: border-box;
}

.step-line {
  flex: 1 1 0px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 6px;
  margin-bottom: 20px;
}

.step.done + .step-line,
.step-line.active {
  background: linear-gradient(90deg, #6ea8fe, #8b5cf6);
}

.step-label {
  font-size: 11px;
  color: var(--muted, #a5b4c7);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .page {
    width: 100%;
    padding: 16px 12px;
  }
  .wizard-card {
    padding: 18px 14px;
    border-radius: 20px;
  }
  .step-number {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 13px;
  }
  .step-line {
    margin: 0 4px;
    margin-bottom: 18px;
  }
  .step-label {
    font-size: 10px;
  }
  .pointer-aura, .bg-orb {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .step-label {
    font-size: 9px;
    letter-spacing: -0.02em;
  }
  .step-line {
    margin: 0 2px;
    margin-bottom: 16px;
  }
}
