/* ===== Signup / Onboarding ===== */

/* Progress bar */
.signup-progress-bar { height: 3px; background: var(--surface); position: fixed; top: 0; left: 0; right: 0; z-index: 300; }
.spb-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--coral)); transition: width 0.5s ease; width: 25%; border-radius: 0 3px 3px 0; }

/* Shell */
.signup-shell { min-height: 100vh; display: grid; grid-template-columns: 380px 1fr; }

/* Left panel */
.signup-left {
  background: linear-gradient(160deg, #0f1120 0%, #1a1f3c 100%);
  padding: 40px 40px 40px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.signup-left::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.signup-logo {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.5px; position: relative; z-index: 1;
}
.signup-logo span { color: var(--coral); }
.signup-left-content { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }

/* Step indicators */
.signup-step-indicators { display: flex; flex-direction: column; gap: 0; margin-bottom: 48px; }
.ssi { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.ssi-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.35);
  flex-shrink: 0; transition: all 0.4s ease;
}
.ssi.active .ssi-num { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 0 20px rgba(74,111,165,0.5); }
.ssi.done .ssi-num   { background: var(--green); border-color: var(--green); color: white; }
.ssi.done .ssi-num::before { content: '✓'; }
.ssi-label { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.3); transition: color 0.4s ease; }
.ssi.active .ssi-label { color: rgba(255,255,255,0.9); }
.ssi.done .ssi-label   { color: rgba(255,255,255,0.5); }
.ssi-line { width: 1px; height: 24px; background: rgba(255,255,255,0.08); margin-left: 15px; }

.signup-left-quote {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 20px 22px;
}
.signup-left-quote p { color: rgba(255,255,255,0.65); font-size: 0.9rem; font-style: italic; line-height: 1.7; margin-bottom: 10px; }
.signup-left-quote span { font-size: 0.75rem; color: rgba(255,255,255,0.3); font-weight: 600; }

.signup-left-orb {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,111,165,0.15) 0%, transparent 65%);
  filter: blur(60px); bottom: -100px; right: -100px; pointer-events: none;
}

/* Right panel */
.signup-right {
  background: var(--bg); padding: 60px 64px;
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto; min-height: 100vh;
}

/* Steps */
.signup-step { display: none; max-width: 520px; width: 100%; animation: stepIn 0.35s ease; }
.signup-step.active { display: block; }
@keyframes stepIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

.step-header { margin-bottom: 36px; }
.step-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--coral);
  margin-bottom: 10px;
}
.step-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; letter-spacing: -0.5px; }
.step-header p  { font-size: 0.95rem; color: var(--text-muted); }

/* Form layout */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Avatar upload */
.avatar-upload-zone {
  width: 120px; height: 120px; border-radius: 30px;
  border: 2px dashed var(--surface); background: var(--white);
  cursor: pointer; margin-bottom: 28px; overflow: hidden;
  transition: all var(--transition);
}
.avatar-upload-zone:hover { border-color: var(--blue); background: rgba(74,111,165,0.03); }
.auz-inner {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.auz-icon  { font-size: 1.8rem; }
.auz-text  { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.auz-hint  { font-size: 0.65rem; color: var(--text-muted); opacity: 0.7; }
.auz-img   { width: 100%; height: 100%; object-fit: cover; }

/* Interest category labels */
.chip-category-label {
  width: 100%; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.4px; color: rgba(196,170,255,0.5);
  padding: 18px 0 6px; margin-top: 2px;
  border-top: 1px solid rgba(155,111,255,0.08);
}
.chip-category-label:first-child { padding-top: 4px; border-top: none; }

/* Interests counter */
.interest-counter {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  margin: 20px 0 6px; text-align: center;
  transition: color var(--transition);
}
.interest-counter.enough { color: var(--green); }

/* Step navigation */
.step-nav { display: flex; gap: 12px; margin-top: 36px; }
.step-nav .btn { flex: 1; }

/* Visibility options */
.visibility-card { margin-bottom: 20px; }
.vc-label { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.visibility-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vis-option input { display: none; }
.vis-box {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--surface); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; background: var(--white);
  transition: all var(--transition);
}
.vis-option input:checked + .vis-box { border-color: var(--blue); background: rgba(74,111,165,0.04); box-shadow: 0 0 0 3px rgba(74,111,165,0.06); }
.vis-icon { font-size: 1.4rem; flex-shrink: 0; }
.vis-text strong { display: block; font-size: 0.88rem; color: var(--text); margin-bottom: 2px; }
.vis-text span   { font-size: 0.74rem; color: var(--text-muted); }

/* Login link */
.step-login-link { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 20px; }
.step-login-link a { color: var(--blue); font-weight: 600; }

/* ---- Step 4: Success ---- */
.success-celebration { text-align: center; max-width: 480px; }
.success-emoji { font-size: 4rem; margin-bottom: 20px; animation: bounceIn 0.6s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes bounceIn { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.success-celebration h1 { margin-bottom: 12px; font-size: 2rem; }
.success-celebration > p { margin-bottom: 32px; font-size: 1rem; line-height: 1.7; }

.success-profile-preview {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border-radius: 16px; padding: 20px 22px;
  border: 1px solid var(--surface); box-shadow: var(--shadow-sm);
  text-align: left; margin-bottom: 32px;
}
.spp-avatar {
  width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg,#eef2f8,#dce7f5);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; overflow: hidden;
}
.spp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.spp-name { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.spp-meta { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 8px; }
.spp-interests { display: flex; flex-wrap: wrap; gap: 6px; }
.spp-interest { font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 12px; background: rgba(74,111,165,0.08); color: var(--blue); }
.success-actions { display: flex; flex-direction: column; gap: 0; }

/* Confetti */
.confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 999; }
.confetti-piece {
  position: absolute; width: 10px; height: 10px; border-radius: 2px;
  animation: confettiFall 3s ease-in forwards;
}
@keyframes confettiFall {
  0%   { transform:translateY(-20px) rotate(0deg); opacity:1; }
  100% { transform:translateY(100vh) rotate(720deg); opacity:0; }
}

/* Responsive */
@media (max-width: 900px) { .signup-shell { grid-template-columns: 1fr; } .signup-left { display: none; } .signup-right { padding: 40px 24px; } }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } .visibility-options { grid-template-columns: 1fr; } }
