:root {
  --pfx-navy: #1a3673;
  --pfx-gold: #c5ae7d;
  --pfx-red: #c41e3a;
  --pfx-bg: #f4f6fb;
  --pfx-card: #ffffff;
  --pfx-muted: #64748b;
  --pfx-radius: 16px;
  --pfx-shadow: 0 10px 40px rgba(26, 54, 115, 0.08);
}

body.profexel-reg-body {
  background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 45%, #fff7ed 100%);
  min-height: 100vh;
}

.profexel-top-panel .title-slot h1 {
  color: var(--pfx-navy);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin: 0;
}

.profexel-top-sub {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--pfx-muted);
  font-weight: 500;
}

.profexel-reg-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.profexel-steps {
  display: flex;
  gap: 8px;
  margin: 20px 0 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.profexel-step-dot {
  flex: 1;
  min-width: 56px;
  text-align: center;
  position: relative;
}

.profexel-step-dot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--pfx-muted);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.profexel-step-dot small {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--pfx-muted);
  line-height: 1.2;
}

.profexel-step-dot.is-active span,
.profexel-step-dot.is-done span {
  background: var(--pfx-navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 54, 115, 0.25);
}

.profexel-step-dot.is-done span {
  background: var(--pfx-gold);
  color: var(--pfx-navy);
}

.profexel-card {
  background: var(--pfx-card);
  border-radius: var(--pfx-radius);
  box-shadow: var(--pfx-shadow);
  padding: 24px 20px;
  border: 1px solid rgba(26, 54, 115, 0.06);
}

.profexel-card h2 {
  margin: 0 0 6px;
  color: var(--pfx-navy);
  font-size: 1.25rem;
}

.profexel-card .pfx-lead {
  margin: 0 0 20px;
  color: var(--pfx-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.profexel-field {
  margin-bottom: 16px;
}

.profexel-field label {
  display: block;
  font-weight: 600;
  color: var(--pfx-navy);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.profexel-field input,
.profexel-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profexel-field input:focus,
.profexel-field select:focus {
  outline: none;
  border-color: var(--pfx-navy);
  box-shadow: 0 0 0 3px rgba(26, 54, 115, 0.12);
}

.profexel-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profexel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
  justify-content: flex-end;
}

.profexel-actions--nav {
  justify-content: space-between;
}

.profexel-field-error {
  margin: 8px 0 0;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 600;
}

.profexel-field-error.hidden {
  display: none;
}

.profexel-field input.pfx-input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.profexel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.profexel-btn:active {
  transform: scale(0.98);
}

.profexel-btn--primary {
  background: linear-gradient(135deg, var(--pfx-navy), #2d4a8a);
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 54, 115, 0.25);
}

.profexel-btn--gold {
  background: linear-gradient(135deg, var(--pfx-gold), #d4bc8e);
  color: var(--pfx-navy);
}

.profexel-btn--ghost {
  background: #f1f5f9;
  color: var(--pfx-navy);
}

.profexel-icon-next {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--pfx-navy);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26, 54, 115, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profexel-icon-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.profexel-icon-prev {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(26, 54, 115, 0.2);
  background: #fff;
  color: var(--pfx-navy);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 54, 115, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.profexel-icon-prev:hover {
  background: #f8fafc;
  border-color: var(--pfx-navy);
}

.profexel-stage {
  display: none;
}

.profexel-stage.is-visible {
  display: block;
}

.profexel-fee-box {
  background: linear-gradient(135deg, rgba(26, 54, 115, 0.06), rgba(197, 174, 125, 0.15));
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
  text-align: center;
}

.profexel-fee-box strong {
  display: block;
  font-size: 1.75rem;
  color: var(--pfx-navy);
}

.profexel-fee-box--total {
  margin-top: 8px;
}

.profexel-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.profexel-payment-grid input[readonly] {
  background: #f1f5f9;
  color: var(--pfx-navy);
  font-weight: 600;
  cursor: default;
}

.profexel-top-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.profexel-donation-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.08);
  color: var(--pfx-red);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.profexel-donation-link:hover {
  background: rgba(196, 30, 58, 0.14);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .profexel-payment-grid {
    grid-template-columns: 1fr;
  }

  .profexel-donation-link span {
    display: none;
  }
}

.profexel-pass-stage {
  text-align: center;
}

.profexel-pass-preview {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--pfx-shadow);
  margin: 16px auto;
}

.profexel-pass-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px auto 0;
  width: 100%;
  max-width: 360px;
}

.profexel-pass-actions .profexel-btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 168px;
  padding: 12px 16px;
  white-space: nowrap;
}

.profexel-pass-actions--secondary {
  margin-top: 12px;
}

.profexel-pass-register-another {
  flex: 1 1 auto;
  max-width: 100%;
  white-space: normal;
}

.profexel-field--mobile {
  margin-bottom: 0;
}

.profexel-mobile-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.profexel-mobile-row input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
}

.profexel-mobile-row .profexel-btn--verify {
  flex: 0 0 auto;
  min-width: 128px;
  max-width: 148px;
  padding: 12px 18px;
  white-space: nowrap;
}

.profexel-btn--verify.is-loading {
  pointer-events: none;
  opacity: 0.92;
}

.profexel-btn--verify .pfx-verify-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profexel-btn--verify .pfx-verify-loading.hidden,
.profexel-btn--verify.is-loading .pfx-verify-label {
  display: none;
}

.profexel-btn--verify.is-loading .pfx-verify-loading {
  display: inline-flex;
}

.profexel-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pfx-spin 0.7s linear infinite;
}

.profexel-verify-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--pfx-radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.profexel-verify-overlay.hidden {
  display: none;
}

.profexel-verify-overlay__box {
  text-align: center;
  padding: 24px;
}

.profexel-verify-overlay__box p {
  margin: 14px 0 0;
  color: var(--pfx-navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.profexel-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 3px solid rgba(26, 54, 115, 0.15);
  border-top-color: var(--pfx-navy);
  border-radius: 50%;
  animation: pfx-spin 0.75s linear infinite;
}

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

#stage1.profexel-card {
  position: relative;
}

.profexel-recover-link-wrap {
  margin: 14px 0 0;
  text-align: center;
}

.profexel-recover-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--pfx-navy);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.profexel-recover-link:hover {
  color: var(--pfx-gold, #c9a227);
}

.profexel-recover-modal h3 {
  margin: 0 0 8px;
  color: var(--pfx-navy);
  font-size: 1.15rem;
}

.profexel-recover-modal .pfx-lead {
  margin-bottom: 16px;
}

.profexel-recover-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}

.profexel-recover-result {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(26, 54, 115, 0.06);
  color: var(--pfx-navy);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-line;
}

.profexel-recover-result.hidden {
  display: none;
}

.profexel-recover-result--error {
  background: rgba(180, 35, 35, 0.08);
  color: #8b1a1a;
}

.profexel-gateway-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10, 22, 48, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.profexel-gateway-overlay.hidden {
  display: none;
}

.profexel-gateway-overlay__box {
  max-width: 420px;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.profexel-gateway-overlay__box p {
  margin: 16px 0 0;
  color: var(--pfx-navy);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}

.profexel-hidden-canvas {
  position: absolute;
  left: -9999px;
  top: 0;
  pointer-events: none;
}

@media (max-width: 560px) {
  .profexel-grid-2 {
    grid-template-columns: 1fr;
  }

  .profexel-mobile-row {
    flex-direction: column;
  }

  .profexel-mobile-row .profexel-btn--verify {
    max-width: none;
    width: 100%;
  }

  .profexel-step-dot small {
    font-size: 0.6rem;
  }
}
