:root {
  --card-bg: rgba(20, 22, 33, 0.88);
  --accent: var(--teal, #27f0c9);
  --accent-strong: var(--purple, #d56dff);
  --border: rgba(255, 255, 255, 0.08);
  --error: #ff5f7d;
  --success: #48f8c2;
}

.signup-page .site-header {
  background: rgba(15, 18, 27, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.signup-main {
  padding: 80px 20px 60px;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.signup-intro {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: stretch;
}

.signup-intro .intro-content {
  background: linear-gradient(135deg, rgba(213, 109, 255, 0.18), rgba(39, 240, 201, 0.15));
  border-radius: 24px;
  padding: 22px 28px 28px;
  box-shadow: var(--accent-glow, 0 0 18px rgba(213, 109, 255, 0.45));
}

.signup-intro h1 {
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 700;
  margin: 0;
}

.signup-intro p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.intro-highlight {
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 28px;
  background: rgba(11, 13, 19, 0.75);
  display: grid;
  gap: 12px;
}

.signup-intro + .signup-card {
  margin-top: 4px;
}

.intro-highlight strong {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 16px;
  opacity: 0.95;
}

.intro-highlight ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.intro-highlight li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.signup-card {
  background: rgba(11, 14, 20, 0.92);
  border: 1px solid rgba(39, 240, 201, 0.32);
  border-radius: 32px;
  padding: 36px 36px 40px;
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.wizard-toast {
  min-height: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(-6px);
}

.wizard-toast.success {
  color: var(--success);
}

.wizard-toast.error {
  color: var(--error);
}

.wizard-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.wizard-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  padding: 0;
}

.wizard-steps li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 100px;
  justify-content: center;
  align-items: center;
}

.wizard-steps li .step-label {
  display: block;
  line-height: 1.3;
  word-break: break-word;
  white-space: normal;
}

.wizard-steps li .step-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
}

.wizard-steps li.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(39, 240, 201, 0.18), rgba(213, 109, 255, 0.16));
  border-color: rgba(39, 240, 201, 0.35);
  transform: translateY(-2px);
}

.wizard-steps li.is-active .step-index,
.wizard-steps li.is-complete .step-index {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b0d13;
  box-shadow: 0 0 12px rgba(39, 240, 201, 0.45);
}

.wizard-steps li.is-complete {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(39, 240, 201, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.wizard-form {
  display: grid;
  gap: 28px;
}

.wizard-panels {
  position: relative;
  min-height: 0;
  transition: height 0.35s ease;
  will-change: height;
}



.wizard-step {
  position: absolute;
  inset: 0;
  padding: 30px 24px;
  opacity: 0;
  transform: translateX(6%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  display: grid;
  gap: 20px;
  background: rgba(11, 13, 20, 0.92);
  border-radius: 24px;
  border: 1px solid rgba(39, 240, 201, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(39, 240, 201, 0.08);
}

.wizard-step legend {
  font-size: 24px;
  font-weight: 600;
}

.wizard-step .step-copy {
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
}

.wizard-step .field {
  display: grid;
  gap: 8px;
}

.wizard-step .field-label {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.wizard-step input[type="text"],
.wizard-step input[type="password"],
.wizard-step input[type="email"],
.wizard-step input[type="date"] {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 14, 0.75);
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 52px;
}

.wizard-step input:focus {
  outline: none;
  border-color: rgba(39, 240, 201, 0.65);
  box-shadow: 0 0 0 2px rgba(39, 240, 201, 0.2);
}

.field-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.policy-invite {
  margin-top: 14px;
}

.field-hint--warning {
  color: #ff8ba1;
  font-weight: 600;
}

.field-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.preferences {
  display: grid;
  gap: 24px;
}

.preferences-group {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  background: rgba(11, 13, 19, 0.65);
  display: grid;
  gap: 14px;
}

.checkbox.attestation {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  background: rgba(39, 240, 201, 0.08);
  border: 1px solid rgba(39, 240, 201, 0.35);
}

.checkbox.attestation input[type="checkbox"] {
  margin: 0;
}

.enhanced-verification {
  border: 1px solid rgba(39, 240, 201, 0.32);
  border-radius: 20px;
  padding: 20px;
  background: rgba(11, 13, 20, 0.7);
  display: grid;
  gap: 18px;
}

.enhanced-verification h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.enhanced-verification p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.enhanced-verification .region-note {
  border-left: 3px solid rgba(39, 240, 201, 0.55);
  padding-left: 12px;
}

.verification-guidelines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.verification-guide {
  display: grid;
  gap: 12px;
  text-align: center;
  background: rgba(20, 24, 34, 0.65);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(39, 240, 201, 0.18);
}

.verification-guide img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.verification-guide p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.upload-grid {
  margin-top: 4px;
}

.field.upload-field input[type="file"] {
  border-radius: 14px;
  border: 1px dashed rgba(39, 240, 201, 0.4);
  padding: 12px;
  background: rgba(7, 10, 15, 0.75);
  color: var(--muted);
}

.field.upload-field input[type="file"]:focus-visible {
  outline: 2px solid rgba(39, 240, 201, 0.6);
  outline-offset: 2px;
}

.dropzone {
  position: relative;
  border-radius: 16px;
  border: 1px dashed rgba(39, 240, 201, 0.45);
  background: rgba(8, 11, 17, 0.8);
  padding: 22px;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  min-height: 160px;
}

.dropzone:hover {
  border-color: rgba(39, 240, 201, 0.65);
  background: rgba(8, 11, 17, 0.9);
}

.dropzone.dragover {
  border-color: rgba(213, 109, 255, 0.7);
  background: rgba(17, 21, 30, 0.9);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone .dropzone-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
}

.dropzone .dropzone-hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.dropzone .dropzone-preview {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  overflow: hidden;
  display: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(39, 240, 201, 0.32);
  aspect-ratio: 4 / 3;
  background: rgba(6, 8, 12, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone .dropzone-preview img {
  width: 100%;
  display: block;
}

.dropzone.has-file .dropzone-preview {
  display: flex;
}

.dropzone.has-file .dropzone-label,
.dropzone.has-file .dropzone-hint,
.dropzone.has-file .dropzone-icon {
  display: none;
}

.dropzone .dropzone-icon {
  width: 48px;
  height: 48px;
  color: rgba(39, 240, 201, 0.75);
}

.preferences-group h3 {
  font-size: 18px;
  font-weight: 600;
}

.checkbox-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.categories-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 9, 14, 0.85);
  appearance: none;
  position: relative;
}

.checkbox input[type="checkbox"]:checked {
  border-color: rgba(39, 240, 201, 0.9);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 2px rgba(39, 240, 201, 0.25);
}

.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  background: rgba(12, 15, 22, 0.9);
}

.checkbox span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.checkbox:hover {
  border-color: rgba(39, 240, 201, 0.3);
  transform: translateY(-1px);
}

.checkbox--terms {
  margin-top: 24px;
}

.checkbox--terms span {
  line-height: 1.5;
}

.checkbox--terms .link-button {
  font-weight: 600;
}

.wizard-step.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.wizard-step.is-before {
  transform: translateX(-6%);
}

.step-error {
  color: var(--error);
  min-height: 20px;
  font-weight: 600;
  font-size: 13px;
}

.wizard-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 0px;
}

.btn {
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.is-hidden {
  display: none;
}

.wizard-controls .btn[data-action="next"] {
  margin-left: auto;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b0d13;
  box-shadow: 0 18px 35px rgba(39, 240, 201, 0.2);
}

.btn.primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn:focus-visible {
  outline: 2px solid rgba(39, 240, 201, 0.7);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .signup-intro {
    grid-template-columns: 1fr;
  }

  .signup-main {
    padding-top: 110px;
  }

  .signup-card {
    padding: 30px;
  }
}

@media (max-width: 720px) {
  .signup-card {
    padding: 24px;
  }

  .wizard-steps {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
  }

  .wizard-steps li {
    padding: 12px 8px;
    font-size: 11px;
    min-height: 90px;
  }

  .wizard-step legend {
    font-size: 21px;
  }

  .checkbox-grid,
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .wizard-controls {
    flex-direction: column;
  }

  .wizard-controls .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .signup-main {
    padding: 100px 16px 50px;
  }

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

  .wizard-steps {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .wizard-steps li {
    min-height: 86px;
  }

  .preferences-group {
    padding: 18px;
  }
}
