/* ==============================================================================
 * WioRoute — Registration Modal Styles (Pastel Glassmorphism)
 * ============================================================================== */

.reg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 20, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reg-overlay.reg-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.reg-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: rgba(23, 19, 36, 0.88);
  border: 1px solid rgba(220, 180, 254, 0.2);
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(192, 132, 252, 0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fdf2f8;
}

.reg-overlay.reg-overlay--visible .reg-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.reg-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(220, 180, 254, 0.15);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reg-close:hover {
  background: rgba(244, 114, 182, 0.2);
  color: #fdf2f8;
  border-color: rgba(244, 114, 182, 0.4);
}

/* Steps Indicator */
.reg-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.reg-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 136, 167, 0.3);
  transition: all 0.3s ease;
}

.reg-step-dot.active {
  background: #f472b6;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.6);
  transform: scale(1.2);
}

.reg-step-dot.done {
  background: #c084fc;
}

.reg-step-line {
  width: 24px;
  height: 2px;
  background: rgba(148, 136, 167, 0.2);
  border-radius: 1px;
}

/* Step container animation */
.reg-step {
  display: flex;
  flex-direction: column;
  animation: fadeInStep 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reg-step--hidden {
  display: none !important;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon, Title, Subtitle */
.reg-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f472b6;
  margin: 0 auto 16px;
}

.reg-step-icon--success {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.reg-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fdf2f8 30%, #fbcfe8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reg-subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  color: #c4b5fd;
  margin-bottom: 24px;
}

.reg-subtitle a {
  color: #f472b6;
  text-decoration: none;
  font-weight: 600;
}

.reg-subtitle a:hover {
  text-decoration: underline;
}

/* Fields & Inputs */
.reg-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.reg-label {
  font-size: 13px;
  font-weight: 600;
  color: #c4b5fd;
}

.reg-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.reg-input-prefix {
  position: absolute;
  left: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #f472b6;
  pointer-events: none;
}

.reg-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(220, 180, 254, 0.2);
  background: rgba(16, 13, 27, 0.7);
  color: #fdf2f8;
  font-size: 14.5px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.reg-input:focus {
  border-color: #d8b4fe;
  box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.2);
  background: rgba(16, 13, 27, 0.9);
}

.reg-input--prefixed {
  padding-left: 32px;
}

.reg-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #9488a7;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.reg-eye:hover {
  color: #fdf2f8;
}

.reg-hint {
  font-size: 11.5px;
  color: #9488a7;
}

/* Telegram bot link helper */
.reg-bot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.reg-bot-link:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Code Inputs (6 cells) */
.reg-code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.reg-code-cell {
  width: 48px;
  height: 58px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(220, 180, 254, 0.25);
  background: rgba(16, 13, 27, 0.7);
  color: #fdf2f8;
  outline: none;
  transition: all 0.2s ease;
}

.reg-code-cell:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.25);
  transform: translateY(-2px);
}

.reg-code-cell.filled {
  border-color: #c084fc;
  background: rgba(192, 132, 252, 0.1);
}

/* Countdown */
.reg-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: #9488a7;
  margin-bottom: 18px;
}

.reg-countdown span {
  font-weight: 600;
  color: #f472b6;
}

/* Password Strength Bar */
.reg-strength {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reg-strength-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.reg-strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
}

.strength-weak   { background: #ef4444; }
.strength-fair   { background: #f59e0b; }
.strength-good   { background: #10b981; }
.strength-strong { background: #06b6d4; }

.reg-strength-label {
  font-size: 11px;
  font-weight: 600;
  color: #c4b5fd;
  min-width: 50px;
  text-align: right;
}

/* Error message */
.reg-error {
  font-size: 12.5px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: none;
  text-align: center;
}

/* Buttons */
.reg-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #f472b6 0%, #c084fc 50%, #a855f7 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(244, 114, 182, 0.3);
  transition: all 0.25s ease;
}

.reg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 114, 182, 0.45);
}

.reg-btn:active {
  transform: translateY(0);
}

.reg-btn-ghost {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  color: #9488a7;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.reg-btn-ghost:hover {
  color: #fdf2f8;
}

.reg-btn--outline {
  background: transparent;
  border: 1px solid rgba(220, 180, 254, 0.25);
  color: #fdf2f8;
  box-shadow: none;
}

.reg-btn--outline:hover {
  background: rgba(220, 180, 254, 0.08);
  border-color: rgba(220, 180, 254, 0.4);
  box-shadow: none;
}

/* Success Step Stub Badge */
.reg-stub-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 14px;
  color: #d8b4fe;
  font-size: 13.5px;
  font-weight: 500;
  margin: 16px 0 24px;
}
.reg-referral-note{margin:16px 0;padding:12px 14px;border-radius:12px;background:#7f4f9b28;border:1px solid #af86c3;color:#d4b9ed;font-size:12px;line-height:1.5;text-align:center}
.reg-turnstile { display: flex; justify-content: center; margin: 12px 0 18px; min-height: 65px; }
.reg-turnstile[hidden] { display: none; }
