:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --blue-950: #071a44;
  --blue-900: #0b2a66;
  --blue-800: #164193;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --text: #102033;
  --muted: #64748b;
  --line: #d8e4f3;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 18% 28%, rgba(37, 99, 235, 0.2), transparent 28%),
    radial-gradient(circle at 78% 42%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 50% 92%, rgba(29, 78, 216, 0.12), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 48%, #f7fbff 100%);
  background-size:
    44px 44px,
    44px 44px,
    auto,
    auto,
    auto,
    auto;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(37, 99, 235, 0.13) 18.2%, transparent 18.6% 52%, rgba(14, 165, 233, 0.12) 52.2%, transparent 52.6%),
    linear-gradient(245deg, transparent 0 34%, rgba(15, 23, 42, 0.08) 34.2%, transparent 34.6% 72%, rgba(37, 99, 235, 0.1) 72.2%, transparent 72.6%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 72%);
}

body::after {
  background:
    radial-gradient(circle at 20% 40%, rgba(37, 99, 235, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 25%, rgba(14, 165, 233, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 68%, rgba(37, 99, 235, 0.18) 0 2px, transparent 3px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
  opacity: 0.7;
}

.register-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 520px);
  align-items: center;
  gap: 52px;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 44px 0;
}

.brand-panel {
  display: grid;
  gap: 22px;
}

.brand-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22);
  font-size: 18px;
  font-weight: 900;
}

.status-pill,
.secure-pill {
  display: inline-flex;
  min-height: 32px;
  padding: 0 13px;
  align-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: var(--blue-700);
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-panel h1 {
  max-width: 620px;
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-panel p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 78px rgba(15, 45, 100, 0.16);
}

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

.form-eyebrow {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-card h2 {
  margin: 4px 0 0;
  color: var(--blue-950);
  font-size: 30px;
  line-height: 1.1;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.stepper button {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.stepper button:not(:disabled):hover {
  border-color: #bfdbfe;
  filter: none;
}

.stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.stepper button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
}

.step {
  display: none;
}

.step.active {
  display: grid;
  gap: 14px;
}

.step-copy {
  margin-bottom: 2px;
}

.step-copy h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: 22px;
}

.step-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: #28405f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.optional-label {
  display: inline;
  margin-left: 4px;
  color: var(--blue-700);
  font-weight: 900;
}

.required-label {
  color: #dc2626;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text);
  background: #ffffff;
  outline: none;
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
}

select,
select option {
  font-weight: 900;
}

input::placeholder {
  color: #6f7f96;
  font-weight: 500;
  opacity: 1;
}

input:focus,
select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.field-hint {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.field-hint.is-error {
  color: #b91c1c;
}

.plan-summary {
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 13px 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  color: var(--blue-950);
}

.plan-summary span {
  display: block;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-summary strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.plan-summary small {
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  margin-top: 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.code-input {
  text-align: center;
  font-size: 34px;
  letter-spacing: 8px;
  font-weight: 900;
}

button {
  position: relative;
  z-index: 0;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.22);
}

button.radar-ready {
  overflow: visible;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34), 0 0 0 1px rgba(96, 165, 250, 0.24);
}

button.radar-ready::before,
button.radar-ready::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border: 2px solid rgba(37, 99, 235, 0.36);
  border-radius: 16px;
  animation: radarPulse 1.7s ease-out infinite;
}

button.radar-ready::after {
  animation-delay: 0.85s;
}

@keyframes radarPulse {
  0% {
    opacity: 0.7;
    transform: scale(0.98);
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

button:hover {
  filter: brightness(1.03);
}

button.ghost {
  color: var(--blue-700);
  background: var(--blue-50);
  box-shadow: none;
}

.login-link {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.login-link a {
  color: var(--blue-700);
  font-weight: 900;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

.payment-panel {
  display: grid;
  grid-template-columns: minmax(190px, 238px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--blue-50);
}

.payment-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-panel strong {
  display: block;
  color: var(--blue-950);
  font-size: 26px;
  margin: 2px 0 4px;
}

.payment-panel small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.payment-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.payment-field-row label {
  min-width: 0;
}

.payment-label-title {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.payment-field-row label:last-child {
  white-space: nowrap;
}

.payment-field-row label:last-child input {
  white-space: normal;
}

.operation-label > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.yape-holder {
  color: var(--blue-950);
  font-weight: 900;
}

.copy-yape {
  width: fit-content;
  min-height: 36px;
  margin-top: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--blue-800);
  background: #ffffff;
  box-shadow: none;
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.copy-yape:hover,
.copy-yape:focus-visible {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.22);
  filter: none;
  transform: translateY(-1px);
}

.yape-qr {
  width: 100%;
  max-width: 238px;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 47%;
  box-shadow: 0 12px 30px rgba(15, 45, 100, 0.14);
}

.upload-drop {
  min-height: 132px;
  place-items: center;
  justify-items: center;
  gap: 8px;
  border: 1.5px dashed #93c5fd;
  border-radius: 16px;
  padding: 20px;
  color: var(--blue-800);
  background: linear-gradient(180deg, #f8fbff 0%, var(--blue-50) 100%);
  text-align: center;
  cursor: pointer;
  text-transform: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.upload-drop:hover,
.upload-drop.is-dragging {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
  transform: translateY(-1px);
}

.upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.upload-drop strong {
  color: var(--blue-950);
  font-size: 15px;
  font-weight: 900;
}

.upload-drop small {
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.proof-preview {
  width: min(100%, 240px);
  max-height: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 45, 100, 0.12);
}

.support-link {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.support-link a,
.success-help {
  color: var(--blue-700);
  font-weight: 900;
  text-decoration: none;
}

.support-link a:hover,
.success-help:hover {
  text-decoration: underline;
}

.result-box {
  margin-top: 16px;
  border-radius: 14px;
  padding: 14px;
  color: var(--blue-950);
  background: var(--blue-50);
  font-weight: 700;
  line-height: 1.45;
}

.result-box.is-success {
  border-color: rgba(22, 163, 74, 0.35) !important;
  color: #064e3b;
  background: #ecfdf5;
}

.result-box.is-error {
  border-color: rgba(220, 38, 38, 0.38) !important;
  color: #7f1d1d;
  background: #fef2f2;
}

button:disabled {
  cursor: wait;
  filter: grayscale(0.15);
  opacity: 0.72;
}

.success-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 8px 6px;
  text-align: center;
}

.success-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, var(--blue-950));
  box-shadow: 0 18px 38px rgba(22, 163, 74, 0.22);
  font-size: 36px;
  font-weight: 900;
}

.success-eyebrow {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0 12px;
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.success-panel h3 {
  max-width: 420px;
  margin: 4px 0 0;
  color: var(--blue-950);
  font-size: 30px;
  line-height: 1.12;
}

.success-panel p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.success-note {
  width: min(100%, 430px);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 13px;
  color: var(--blue-950);
  background: var(--blue-50);
  font-weight: 800;
  line-height: 1.4;
}

.success-status-grid {
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 13px;
  background: #f0fdf4;
  text-align: left;
}

.success-status-grid span {
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.success-status-grid strong {
  color: var(--blue-950);
  font-size: 14px;
}

.success-link {
  width: min(100%, 430px);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.22);
}

.success-link:hover {
  filter: brightness(1.03);
}

.success-help {
  margin-top: -2px;
  font-size: 14px;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 26, 68, 0.48);
  backdrop-filter: blur(6px);
}

.confirm-card {
  width: min(100%, 470px);
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 22px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(7, 26, 68, 0.28);
}

.confirm-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  font-weight: 900;
  margin-bottom: 14px;
}

.confirm-content h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 24px;
  line-height: 1.15;
}

.confirm-content p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.confirm-actions button {
  min-width: 128px;
}

.d-none {
  display: none;
}

@media (max-width: 980px) {
  .register-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    width: min(720px, calc(100% - 28px));
    padding: 28px 0;
  }

  .brand-panel {
    gap: 16px;
  }

  .brand-panel h1 {
    max-width: 620px;
    font-size: 44px;
  }

  .brand-panel p {
    max-width: 620px;
    font-size: 16px;
  }

}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at 22% 8%, rgba(37, 99, 235, 0.12), transparent 34%),
      linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  }

  .register-shell {
    width: min(100% - 18px, 520px);
    gap: 18px;
    padding: 16px 0 22px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .status-pill,
  .secure-pill {
    min-height: 28px;
    padding: 0 10px;
    font-size: 10px;
  }

  .brand-panel {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .brand-kicker {
    grid-column: 1;
    grid-row: 1;
    gap: 0;
  }

  .brand-panel h1 {
    grid-column: 2;
    grid-row: 1;
    font-size: 30px;
    line-height: 1.03;
  }

  .brand-panel p {
    grid-column: 1 / -1;
    font-size: 15px;
    line-height: 1.45;
  }

  .field-grid,
  .payment-field-row,
  .payment-panel {
    grid-template-columns: 1fr;
  }

  .payment-field-row label:last-child {
    white-space: normal;
  }

  .form-card {
    padding: 16px;
    border-radius: 18px;
  }

  .form-card-head {
    margin-bottom: 14px;
  }

  .form-card h2 {
    font-size: 24px;
  }

  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 16px;
  }

  .stepper button {
    min-height: 34px;
  }

  .step.active {
    gap: 12px;
  }

  .step-copy h3 {
    font-size: 20px;
  }

  .step-copy p {
    font-size: 14px;
  }

  input,
  select,
  button {
    min-height: 46px;
  }

  input,
  select {
    font-weight: 500;
  }

  input::placeholder {
    color: #718198;
    font-size: inherit;
    font-weight: 500;
  }

  label {
    color: #1f3655;
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .code-input {
    font-size: 30px;
    letter-spacing: 6px;
  }

  .payment-panel {
    justify-items: center;
    text-align: center;
    padding: 14px;
  }

  .copy-yape {
    margin-left: auto;
    margin-right: auto;
  }

  .payment-panel strong {
    font-size: 24px;
  }

  .yape-qr {
    max-width: min(100%, 260px);
  }

  .result-box {
    font-size: 14px;
  }

  .success-status-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .confirm-card {
    padding: 20px;
    border-radius: 18px;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .confirm-actions button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .brand-panel h1 {
    font-size: 30px;
  }

  .form-card {
    padding: 14px;
  }

  input,
  select,
  button {
    font-size: 14px;
  }
}
