/* =============================================
   DICOIN — Registration Flow Styles
   ============================================= */

/* Multi-step modal */
.reg-modal {
  max-width: 520px;
  padding: 0;
  overflow: hidden;
}

/* Step indicator */
.reg-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 40px 0;
}
.reg-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 1;
}
.reg-step-dot.active {
  border-color: var(--indigo);
  background: rgba(79,70,229,0.15);
  color: var(--indigo-light);
  box-shadow: 0 0 12px rgba(79,70,229,0.3);
}
.reg-step-dot.done {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}
.reg-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background 0.4s ease;
  max-width: 60px;
}
.reg-step-line.done { background: var(--emerald); }

/* Step panels */
.reg-panels {
  overflow: hidden;
  position: relative;
}
.reg-panel {
  padding: 32px 40px 40px;
  display: none;
  animation: regSlideIn 0.3s ease;
}
.reg-panel.active { display: block; }

@keyframes regSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reg-panel-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.reg-panel-sub { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 28px; }

/* Password strength */
.pw-strength-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0%;
}
.pw-strength-label {
  font-size: 0.78rem;
  margin-top: 6px;
  font-weight: 600;
  transition: color 0.3s;
}

/* Password requirements */
.pw-reqs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pw-req {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.pw-req.met { color: var(--emerald-light); }
.pw-req-icon { font-size: 0.7rem; transition: all 0.2s; }
.pw-req.met .pw-req-icon { color: var(--emerald-light); }

/* Password toggle */
.pw-field { position: relative; }
.pw-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: color var(--transition);
  line-height: 1;
}
.pw-toggle:hover { color: var(--text-primary); }

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}
.input-icon + .form-input { padding-left: 42px; }

/* Terms */
.reg-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.reg-terms input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--indigo);
  width: 16px; height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.reg-terms label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}
.reg-terms a { color: var(--indigo-light); }

/* Success panel */
.reg-success {
  text-align: center;
  padding: 48px 40px 48px;
}
.success-anim {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  border: 2px solid var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.success-sub { color: var(--text-secondary); font-size: 0.9rem; }

.wallet-reveal {
  background: var(--bg-secondary);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  text-align: left;
}
.wallet-reveal-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
/* Seed phrase grid */
.seed-word {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-primary); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 7px 10px; font-size: 0.84rem; font-weight: 600;
}
.seed-num { font-size: 0.68rem; color: var(--text-muted); min-width: 16px; font-weight: 400; }

.wallet-reveal-addr {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--cyan-light);
  word-break: break-all;
  line-height: 1.6;
}

.bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--emerald-light);
  margin-bottom: 24px;
}

.reg-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.reg-divider::before, .reg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Back button */
.reg-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  transition: color var(--transition);
}
.reg-back:hover { color: var(--text-primary); }

/* Login link at bottom */
.reg-login-link {
  text-align: center;
  padding: 0 40px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .reg-panel { padding: 24px 20px 32px; }
  .reg-steps { padding: 20px 20px 0; }
  .reg-success { padding: 36px 20px 36px; }
  .reg-login-link { padding: 0 20px 20px; }
  .pw-reqs { grid-template-columns: 1fr; }
}
