/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #F5F1E8;
  color: #1A1A1A;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
#app { min-height: 100vh; min-height: 100dvh; }

/* ===== Color Variables ===== */
:root {
  --cream: #F5F1E8;
  --green: #4CAF50;
  --green-dark: #2E7D32;
  --orange: #FF9800;
  --orange-btn: #FFA34D;
  --teal: #1B4B5A;
  --tan: #D4B896;
  --brown: #A67C52;
  --gray-light: #E0E0E0;
  --text-dark: #1A1A1A;
  --text-light: #757575;
}

/* ===== Shared Components ===== */
.screen {
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 2rem;
}
.screen-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}
.screen-header h2 { flex: 1; font-size: 1.4rem; color: var(--green); font-weight: 700; }
.back-btn { font-size: 0.95rem; white-space: nowrap; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 19px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
  width: 100%;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(76,175,80,0.35);
}
.btn-primary:hover:not(:disabled) { background: #43a047; }
.btn-secondary {
  background: var(--orange-btn);
  color: #fff;
  box-shadow: 0 4px 13px rgba(255,163,77,0.21);
}
.btn-secondary:hover:not(:disabled) { background: #ff9100; }
.btn-danger { background: #d32f2f; color: #fff; }
.btn-link {
  background: none;
  color: var(--orange);
  padding: 0.5rem;
  width: auto;
  font-weight: 500;
  text-decoration: underline;
}
.error-msg { color: #d32f2f; font-size: 0.8rem; font-weight: 700; min-height: 1.2rem; margin: 0.5rem 0; }
.success-msg { color: var(--green); font-size: 0.85rem; font-weight: 600; min-height: 1.2rem; margin: 0.25rem 0; }
.divider { border: none; border-top: 2px solid var(--orange); margin: 1.25rem 0; opacity: 0.4; }
.form-hint { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; }

/* ===== Login Screen ===== */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem;
}
.login-logo { width: 280px; max-width: 80%; margin-bottom: 1.5rem; }
.login-card {
  background: var(--cream);
  border: 3.5px solid rgba(255,152,0,0.62);
  border-radius: 28px;
  padding: 30px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
}
.login-card h2 {
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
}
.login-card input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(255,152,0,0.47);
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
  outline: none;
  background: var(--cream);
  transition: border-color 0.2s;
}
.login-card input:focus { border-color: var(--orange); }
.login-card .btn { margin-top: 0.5rem; }
.login-card .btn-primary {
  height: 60px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loginPulse 1.23s infinite ease-in-out;
}
@keyframes loginPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
.login-card .btn-primary:active { animation: none; transform: scale(0.97); }
.login-card .btn-secondary {
  height: 52px;
  font-size: 1.1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card .btn-link {
  font-size: 0.8rem;
  text-decoration: underline;
  color: var(--orange);
}

/* ===== Dashboard ===== */
.dashboard-screen { padding-top: 2.5rem; }
.dash-header { text-align: center; margin-bottom: 0.5rem; }
.dash-logo { width: 80%; max-width: 320px; margin-bottom: 0.4rem; }
.dash-divider {
  width: 280px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0 auto 0.75rem;
}
.welcome-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.dash-divider-sm {
  width: 280px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0.5rem auto 1rem;
}
.dash-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.dash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  padding: 0.7rem 1.25rem;
  background: var(--green);
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}
a.dash-btn { text-decoration: none; }
.dash-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.dash-btn:active { transform: scale(0.97); }
.dash-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.dash-btn-icon { display: none; }
.dash-btn-logout {
  background: var(--green);
  color: #fff;
}

.dash-btn.pulse {
  animation: dashPulse 0.8s infinite linear;
}
@keyframes dashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* ===== Top Gifts (Dashboard) ===== */
.top-gifts { display: flex; flex-direction: column; align-items: center; }
.top-gifts h3 {
  margin-bottom: 0.75rem;
  color: var(--orange);
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
}
.gift-card {
  background: #fff;
  border: 2px solid rgba(255,152,0,0.4);
  border-radius: 14px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  width: 90%;
  max-width: 420px;
}
.gift-card-header {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  cursor: pointer;
  gap: 0.5rem;
}
.gift-card-header .gift-name { flex: 1; font-weight: 700; font-size: 1.1rem; color: var(--orange); }
.gift-card-header .gift-score { color: var(--green); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.gift-chevron { font-size: 1.1rem; color: var(--orange); transition: transform 0.25s; margin-left: 0.25rem; }
.gift-card.expanded .gift-chevron { transform: rotate(90deg); }
.gift-card-body {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.gift-card.expanded .gift-card-body { max-height: 350px; padding: 0 1rem 1rem; }
.gift-card-body p { color: var(--text-dark); font-size: 0.92rem; font-weight: 600; line-height: 1.45; }
.gift-verse { color: var(--text-light); font-size: 0.85rem; font-style: italic; margin-top: 0.5rem; }
.gift-teams { font-size: 0.85rem; font-weight: 600; font-style: italic; margin-top: 0.5rem; color: var(--green); }

/* ===== Survey Screens ===== */
.survey-screen { padding-bottom: 5rem; }
.survey-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  background: var(--cream);
  z-index: 10;
  padding-bottom: 0.75rem;
}
.survey-header h2 { font-size: 1.3rem; margin-bottom: 0.25rem; color: var(--green); font-weight: 700; }
.survey-subtitle { color: var(--text-light); font-size: 0.85rem; margin-bottom: 0.75rem; }
.progress-bar { height: 6px; background: var(--gray-light); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.3s; }
.progress-text { font-size: 0.8rem; color: var(--text-light); margin-top: 0.25rem; }

/* Carousel */
.carousel-container { position: relative; overflow: hidden; min-height: 240px; }
.carousel-card { display: none; }
.carousel-card.active { display: flex; align-items: center; justify-content: center; min-height: 240px; animation: cardFadeIn 0.2s ease; }
@keyframes cardFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.carousel-question {
  background: #fff;
  border: 2px solid rgba(255,152,0,0.3);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: center;
  width: 100%;
}
.carousel-question .question-num {
  width: 2.4rem;
  height: 2.4rem;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}
.carousel-question .question-text {
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-dark);
  min-height: 3.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-question .answer-buttons {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.carousel-question .answer-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2.5px solid var(--gray-light);
  background: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  color: #555;
}
.carousel-question .answer-btn:hover { border-color: var(--orange); }
.carousel-question .answer-btn.selected { color: #fff; border-color: transparent; transform: scale(1.15); }

/* Carousel nav buttons */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.carousel-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.carousel-nav-btn:disabled { background: rgba(27,75,90,0.25); cursor: not-allowed; }
.carousel-counter { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); min-width: 60px; text-align: center; }

/* DISC 1-5 colors */
.answer-1.selected { background: #e53935; }
.answer-2.selected { background: #ff9800; }
.answer-3.selected { background: #9e9e9e; }
.answer-4.selected { background: #4caf50; }
.answer-5.selected { background: #2E7D32; }

/* SG 1-3 colors */
.sg-answer-1.selected { background: #e53935; }
.sg-answer-2.selected { background: #ff9800; }
.sg-answer-3.selected { background: #2E7D32; }

.survey-submit {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 468px;
  z-index: 20;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}

/* ===== Results Screen ===== */
.results-screen { padding-top: 0.5rem; position: relative; }
.results-top { text-align: center; margin-bottom: 0.5rem; }
.results-logo { width: 75%; max-width: 300px; margin-bottom: 0.4rem; }
.results-title { color: var(--green); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.results-divider { width: 280px; height: 3px; background: var(--orange); border-radius: 2px; margin: 0.75rem auto; }
.results-close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.results-section { margin-bottom: 1.5rem; }

/* DISC Quadrant Grid */
.disc-quadrant-grid {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
}
.disc-axis-label {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.disc-axis-top { top: 0; left: 50%; transform: translateX(-50%); }
.disc-axis-bottom { bottom: -0.2rem; left: 50%; transform: translateX(-50%); }
.disc-axis-left {
  left: calc(50% - 110px);
  top: 50%;
  transform: translateX(-100%) rotate(-90deg);
  transform-origin: right center;
}
.disc-axis-right {
  right: calc(50% - 110px);
  top: 50%;
  transform: translateX(100%) rotate(90deg);
  transform-origin: left center;
}
.disc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 192px;
  height: 192px;
}
.disc-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(180,180,180,0.2);
  cursor: pointer;
  transition: transform 0.2s;
}
.disc-box:active { transform: scale(0.96); }
.disc-box-top { border: 3px solid var(--teal); }
.disc-box-bottom { border: 1px solid var(--gray-light); opacity: 0.7; }
.disc-box-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 0 0 9px 9px;
  transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.85;
}
.disc-box-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.disc-box-letter {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  line-height: 1;
}
.disc-box-score {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2px;
}
.disc-box-top .disc-box-letter { animation: boxPulse 1s infinite alternate ease-in-out 1.5s; }
@keyframes boxPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}
.disc-type-label {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.75rem 0 0.25rem;
}
.disc-type-high { font-size: 1.6rem; font-weight: 800; }
.disc-type-slash { color: var(--text-dark); margin: 0 2px; }
.disc-type-low { font-size: 1.4rem; font-weight: 700; }
.disc-hint { text-align: center; font-size: 0.85rem; color: #2C3E50; font-weight: 500; margin-top: 0.25rem; }

/* DISC Info Modal */
.disc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.disc-modal-card {
  background: var(--cream);
  border-radius: 28px;
  padding: 1.5rem;
  width: 90%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.disc-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.disc-modal-letter { text-align: center; font-size: 2.4rem; font-weight: 800; margin-bottom: 0.25rem; }
.disc-modal-label { text-align: center; font-size: 1rem; font-weight: 600; color: var(--text-light); margin-bottom: 0.75rem; }
.disc-modal-desc { text-align: center; font-size: 1rem; font-weight: 600; color: var(--text-dark); line-height: 1.45; margin-bottom: 1rem; padding: 0 0.5rem; }
.disc-modal-advice { display: flex; flex-direction: column; gap: 0.5rem; }
.disc-modal-advice-item { display: flex; align-items: flex-start; gap: 0.6rem; }
.disc-modal-bullet { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 0.45rem; }
.disc-modal-advice-item span:last-child { font-size: 0.95rem; color: var(--text-dark); }

/* Spiritual Gifts v2 */
.gifts-title { color: var(--orange); font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }
.gifts-list-v2 { display: flex; flex-direction: column; gap: 0.35rem; }
.gift-card-v2 {
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  cursor: pointer;
}
.gift-card-v2.gift-top { border-left: 3px solid var(--green); }
.gift-card-v2-header {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  gap: 0.5rem;
  cursor: pointer;
}
.gift-card-v2-name { flex: 1; font-size: 1.05rem; font-weight: 700; color: var(--orange); }
.gift-card-v2-score { font-size: 0.9rem; font-weight: 600; color: var(--green); white-space: nowrap; }
.gift-card-v2-chevron {
  font-size: 0.65rem;
  color: var(--orange);
  transition: transform 0.25s;
  margin-left: 0.25rem;
}
.gift-card-v2.expanded .gift-card-v2-chevron { transform: rotate(180deg); }
.gift-card-v2-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.gift-card-v2.expanded .gift-card-v2-body { max-height: 400px; padding: 0 1rem 1rem; }
.gift-card-v2-desc { font-size: 0.92rem; font-weight: 600; color: var(--text-dark); line-height: 1.45; margin-bottom: 0.6rem; }
.gift-card-v2-verse { font-size: 0.85rem; font-style: italic; color: var(--text-light); margin-bottom: 0.4rem; }
.gift-card-v2-teams { font-size: 0.85rem; font-weight: 600; font-style: italic; color: var(--green); }

/* ===== Profile Screen ===== */
.form-card {
  background: var(--cream);
  border: 2px solid rgba(255,152,0,0.3);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.form-card label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
}
.form-card label:first-child { margin-top: 0; }
.form-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,152,0,0.47);
  border-radius: 14px;
  font-size: 1rem;
  outline: none;
  background: var(--cream);
}
.form-card input:focus { border-color: var(--orange); }
.form-card input:disabled { background: #ede8de; color: #999; }
.form-card .btn { margin-top: 1rem; }
.privacy-card h3 { margin-bottom: 0.75rem; color: var(--text-dark); }
.privacy-link {
  display: block;
  color: var(--green);
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 600;
}
.profile-delete-link {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  margin-top: 2rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Resources Screen ===== */
.res-screen { position: relative; padding-top: 0.5rem; }
.res-top { text-align: center; margin-bottom: 1rem; }
.res-logo { width: 75%; max-width: 300px; margin-bottom: 0.4rem; }
.res-title { color: var(--green); font-size: 1.5rem; font-weight: 700; }
.res-tiles { display: flex; flex-direction: column; gap: 0.75rem; }
.res-tile {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--gray-light);
  border-radius: 22px;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.15s;
  gap: 0.75rem;
}
.res-tile:hover { transform: translateY(-1px); }
.res-tile-icon { font-size: 1.4rem; color: var(--orange); flex-shrink: 0; }
.res-tile-label { flex: 1; font-weight: 700; font-size: 1.05rem; color: var(--orange); }
.res-tile-arrow { font-size: 1.4rem; color: #999; font-weight: 300; }
.res-divider { width: 100%; height: 4px; background: var(--orange); border-radius: 2px; margin: 1.25rem 0; }
.res-footer { font-size: 0.82rem; color: var(--text-dark); line-height: 1.4; }

/* ===== Ways to Serve Modal ===== */
.wts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.wts-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 1.25rem;
  width: 95%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.wts-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.wts-logo { display: block; margin: 0 auto; width: 70%; max-width: 260px; }
.wts-title { text-align: center; color: var(--green); font-size: 1.3rem; font-weight: 700; margin: 0.25rem 0; }
.wts-divider { width: 80%; height: 3px; background: var(--orange); border-radius: 2px; margin: 0.5rem auto 1rem; }
.wts-items { display: flex; flex-direction: column; gap: 0.6rem; min-height: 280px; }
.wts-item {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}
.wts-item-header {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  gap: 0.5rem;
}
.wts-item-name { flex: 1; font-weight: 700; color: var(--teal); font-size: 0.95rem; }
.wts-item-chevron {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  transition: transform 0.25s;
}
.wts-item.expanded .wts-item-chevron { transform: rotate(90deg); }
.wts-item.expanded { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.wts-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.wts-item.expanded .wts-item-body { max-height: 220px; padding: 0 1rem 0.75rem; }
.wts-item-scroll { max-height: 180px; overflow-y: auto; }
.wts-item-scroll p { font-size: 0.88rem; line-height: 1.45; color: var(--text-dark); }
.wts-req { color: var(--orange); }

/* Pagination */
.wts-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.5rem;
}
.wts-page-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wts-page-btn:disabled { background: rgba(27,75,90,0.25); cursor: not-allowed; }
.wts-dots { display: flex; gap: 6px; align-items: center; }
.wts-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(27,75,90,0.25); }
.wts-dot.active { background: var(--orange); }

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal-content {
  background: var(--cream);
  border: 2px solid rgba(255,152,0,0.4);
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%;
  max-width: 360px;
}
.modal-content h3 { margin-bottom: 0.75rem; }
.modal-content input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,152,0,0.47);
  border-radius: 14px;
  font-size: 1rem;
  margin: 0.75rem 0;
  outline: none;
  background: var(--cream);
}
.modal-buttons { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.modal-buttons .btn { flex: 1; }
.warning-text { color: #d32f2f; font-size: 0.9rem; }

/* ===== PDF Button ===== */
.results-pdf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 85%;
  max-width: 320px;
  margin: 0.75rem auto 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--orange);
  border: none;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,152,0,0.3);
  transition: transform 0.15s;
}
.results-pdf-btn:hover { transform: translateY(-1px); }
.results-pdf-btn:active { transform: scale(0.97); }
.results-pdf-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Responsive ===== */
@media (max-width: 380px) {
  .question-card { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .answer-buttons { align-self: flex-end; }
  .resource-links { grid-template-columns: 1fr; }
  .dash-btn { width: 200px; }
}
