:root {
  --lw-done: #4fe0a8;
  --lw-done-ink: #0b2a1e;
  --lw-active: #2b9bff;
  --lw-active-label: #6cb8ff;
  --lw-active-bg: #12294a;
  --lw-pending: #a99bb0;
  --lw-card-bg: #2c1a2f;
}

.mint-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  margin-bottom: 1.5em;
}

.mint-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 1.5em;
  animation: spin calc(var(--speed) * 1s) infinite linear;
  border-radius: calc(var(--radius) * 1px);
  background: var(--lw-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(calc(var(--cardblur, 5) * 1px));
  transition: border-color 0.4s ease;
}

.mint-panel.is-complete {
  border-color: rgba(79, 224, 168, 0.5);
}

.progress-label {
  font-family: Mix, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lw-active-label);
}

.mint-panel.is-complete .progress-label {
  color: var(--lw-done);
}

.progress-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.progress-seg {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.4s ease;
}

.progress-seg.is-done { background: var(--lw-done); }
.progress-seg.is-active { background: var(--lw-active); }

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 14px;
}

.step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--lw-pending);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.step-icon.is-done {
  background: var(--lw-done);
  border-color: var(--lw-done);
  color: var(--lw-done-ink);
}

.step-icon.is-active {
  background: var(--lw-active-bg);
  border-color: var(--lw-active);
  color: #fff;
  animation: lw-pulse 1.8s ease-out infinite;
}

.step-icon svg { display: block; }

.step-line {
  width: 2px;
  flex-grow: 1;
  min-height: 12px;
  margin: 6px 0;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.4s ease;
}

.step-line.is-done { background: var(--lw-done); }

.step-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.step:last-child .step-body { padding-bottom: 0; }

.step-value {
  font-family: Mix, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.04em;
  color: var(--lw-pending);
  overflow-wrap: anywhere;
}

.step.is-active .step-value,
.step.is-done .step-value { color: #fff; }

.step-hint {
  font-family: Mix, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--lw-pending);
  /* бронируем высоту одной строки, иначе когда текст (например,
     birthday-hint) становится пустым, соседние шаги сдвигаются по вертикали */
  min-height: 1.45em;
}

.step-callout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  margin-top: 10px;
  border-radius: 12px;
  font-family: Mix, sans-serif;
  background: rgba(79, 224, 168, 0.1);
  border: 1px solid rgba(79, 224, 168, 0.5);
}

.step-callout.is-info {
  background: rgba(43, 155, 255, 0.14);
  border-color: rgba(43, 155, 255, 0.55);
}

.step-callout.is-warning {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.55);
  color: #ffb4b4;
}

.step-callout-icon {
  width: 26px;
  height: 26px;
  box-sizing: border-box;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 107, 0.18);
}

.step-callout[hidden] {
  display: none;
}

.step-callout-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-callout .mini-progress {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.step-callout .mini-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: var(--lw-done);
  transition: width 1.8s linear;
}

.step-callout .mini-progress-fill.is-filling { width: 100%; }

.spinner {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--lw-active-label);
  animation: lw-spin 0.9s linear infinite;
}

.step-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-field label {
  font-family: Mix, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lw-pending);
}

.step-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.step-input {
  height: 46px;
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.step-input::placeholder { color: var(--lw-pending); opacity: 0.8; }
.step-input:focus { border-color: var(--lw-active); background: rgba(255, 255, 255, 0.09); }

/* Заблокированные поля должны читаться иначе, чем просто доступные —
   не светлее/темнее того же белого, а другим, приглушённым оттенком бордюра. */
.step-input:disabled {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(169, 155, 176, 0.3);
  color: var(--lw-pending);
  cursor: not-allowed;
}

.step-input[type="date"] { color-scheme: dark; }

.field-counter {
  font-family: Mix, sans-serif;
  font-size: 12px;
  color: var(--lw-pending);
}

.field-counter.warning { color: #ff6b6b; }

.btn-outline {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  background: #000;
  border: 2px solid var(--lw-active);
  border-radius: 10px;
  color: #fff;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

#mint[disabled] {
  background: #3a2740;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--lw-pending);
  cursor: not-allowed;
  animation: none !important;
}

#mint[disabled]::before {
  content: none;
}

#mint[disabled]::after {
  animation: none !important;
}

@keyframes lw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 155, 255, 0.65); }
  70% { box-shadow: 0 0 0 12px rgba(43, 155, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 155, 255, 0); }
}

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

@media (prefers-reduced-motion: reduce) {
  .step-icon.is-active,
  .spinner { animation: none !important; }
}

@media only screen and (max-width: 480px) {
  .mint-panel { padding: 1.1em; gap: 16px; }
  .step-value { font-size: 18px; }
}
