/* ============================================================
   MONEY TEST — Modal Styles
   ============================================================ */

.test-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0A0A0A;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.test-modal.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Header ── */
.test-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.test-modal__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.test-modal__logo strong { color: #FF6B00; }
.test-modal__close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.test-modal__close:hover { background: rgba(255,107,0,0.15); border-color: #FF6B00; color: #FF6B00; }

/* ── Progress ── */
.test-progress {
  padding: 0 32px 20px;
  flex-shrink: 0;
}
.test-progress__info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
  margin-top: 16px;
}
.test-progress__count { font-weight: 700; color: #FF6B00; }
.test-progress__track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.test-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B00, #FF9A4D);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ── Body ── */
.test-modal__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px 48px;
}
.test-screen {
  width: 100%;
  max-width: 640px;
  display: none;
  animation: slideIn 0.35s ease;
}
.test-screen.active { display: block; }

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

/* ── Question screen ── */
.test-question__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF6B00;
  margin-bottom: 16px;
}
.test-question__text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.test-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.test-option {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}
.test-option:hover {
  border-color: #FF6B00;
  background: rgba(255,107,0,0.08);
  color: #fff;
  transform: translateX(4px);
}
.test-option.selected {
  border-color: #FF6B00;
  background: rgba(255,107,0,0.12);
  color: #FF6B00;
}
.test-option__letter {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s;
}
.test-option.selected .test-option__letter {
  background: #FF6B00;
  border-color: #FF6B00;
  color: #fff;
}
.test-option__text { flex: 1; line-height: 1.4; }

.test-next-btn {
  margin-top: 24px;
  padding: 16px 32px;
  background: #FF6B00;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: none;
  box-shadow: 0 4px 20px rgba(255,107,0,0.3);
}
.test-next-btn.visible { display: inline-flex; align-items: center; gap: 8px; }
.test-next-btn:hover { background: #E05500; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,0,0.4); }

/* ── Email gate screen ── */
.email-screen {
  text-align: center;
}
.email-screen__emoji { font-size: 4rem; margin-bottom: 24px; }
.email-screen__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.email-screen__sub {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  margin-bottom: 36px;
  line-height: 1.6;
}
.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.email-input {
  padding: 18px 24px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
}
.email-input::placeholder { color: rgba(255,255,255,0.3); }
.email-input:focus { border-color: #FF6B00; }
.email-submit-btn {
  padding: 18px;
  background: #FF6B00;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(255,107,0,0.3);
}
.email-submit-btn:hover { background: #E05500; transform: translateY(-2px); }
.email-privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  margin-top: 4px;
}

/* ── Result screen ── */
.result-screen { text-align: center; }

.result-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,107,0,0.3);
  border-radius: 24px;
  padding: 40px 36px;
  margin-bottom: 24px;
  text-align: left;
}
.result-card__top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.result-card__emoji {
  font-size: 4rem;
  line-height: 1;
  flex-shrink: 0;
}
.result-card__type-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF6B00;
  margin-bottom: 6px;
}
.result-card__type-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.result-card__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 28px;
}

.result-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.result-trait {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px;
}
.result-trait__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.result-trait__label--green { color: #4ade80; }
.result-trait__label--red   { color: #f87171; }
.result-trait__text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.result-learn {
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 14px;
  padding: 20px;
}
.result-learn__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FF6B00;
  margin-bottom: 12px;
}
.result-learn__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-learn__item {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 10px;
}
.result-learn__item::before {
  content: '→';
  color: #FF6B00;
  font-weight: 700;
  flex-shrink: 0;
}

.result-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.result-cta__btn {
  padding: 18px 40px;
  background: #FF6B00;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(255,107,0,0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.result-cta__btn:hover { background: #E05500; transform: translateY(-2px); }
.result-cta__share {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .test-modal__header { padding: 16px 20px; }
  .test-progress { padding: 0 20px 16px; }
  .test-modal__body { padding: 16px 20px 40px; }
  .test-question__text { font-size: 1.25rem; }
  .test-option { padding: 14px 18px; font-size: 0.9rem; }
  .result-traits { grid-template-columns: 1fr; }
  .result-card { padding: 28px 20px; }
}
