/* ── Base ── */
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { overscroll-behavior: none; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* ── Screen transitions ── */
.screen {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.screen.hidden {
  display: none !important;
}
.screen.slide-in {
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Quiz progress bar ── */
.quiz-progress {
  width: 100%;
  height: 4px;
  background: #F1EFEC;
  border-radius: 2px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: #E77D53;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Quiz option cards ── */
.quiz-option {
  display: block;
  width: 100%;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 2px solid #E8E5E1;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  color: #17171C;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.quiz-option:active {
  transform: scale(0.98);
}
.quiz-option.selected {
  border-color: #E77D53;
  background: #FFF1ED;
}

/* ── Quiz next button ── */
.quiz-next-btn {
  width: 100%;
  padding: 16px;
  background: #17171C;
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  margin-top: 16px;
  flex-shrink: 0;
}
.quiz-next-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.quiz-next-btn:not(:disabled):active {
  transform: scale(0.98);
}

/* ── Gender toggle ── */
.gender-btn {
  flex: 1;
  padding: 14px;
  border: 2px solid #E8E5E1;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #5C5C66;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.gender-btn.selected {
  border-color: #17171C;
  background: #17171C;
  color: #FFFFFF;
}

/* ── Form inputs ── */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #5C5C66;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E8E5E1;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 500;
  color: #17171C;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: #E77D53;
}
.form-input.error {
  border-color: #E5484D;
}
.form-error {
  font-size: 12px;
  color: #E5484D;
  margin-top: 4px;
}

/* ── Loading pulse ring ── */
.pulse-ring {
  position: relative;
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid #E77D53;
  animation: pulseRing 1.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Phase cards ── */
.phase-card {
  background: #FFFFFF;
  border: 1px solid #F1EFEC;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.phase-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phase-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

/* ── Quiz option hint (surprise benefits) ── */
.quiz-option-hint {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #E77D53;
  margin-top: 3px;
  letter-spacing: 0.01em;
}
.quiz-option-hint::before {
  content: '\2728 ';
}

/* ── Locked metric cards (paywall curiosity) ── */
.locked-metric-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #F1EFEC;
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
  min-height: 56px;
}
.locked-metric-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F0EDE9 0%, #E8E5E1 50%, #F1EFEC 100%);
  filter: blur(6px);
  opacity: 0.85;
}
.locked-metric-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #5C5C66;
  filter: blur(5px);
  -webkit-user-select: none;
  user-select: none;
}

/* ── Social auth buttons ── */
.social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 2px solid #E8E5E1;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #17171C;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.social-auth-btn:active {
  transform: scale(0.98);
  background: #F8F7F5;
}

/* ── Utility ── */
.hidden { display: none !important; }
