/* ==========================================
   宠物领养 · AI 缘分匹配舱 - 主样式表
   ========================================== */

/* ---- CSS Variables ---- */
:root {
  --bg-cream: #FDFBF7;
  --orange: #FF9800;
  --orange-dark: #F57C00;
  --orange-light: #FFE0B2;
  --green: #4CAF50;
  --green-light: #E8F5E9;
  --text-primary: #3E2723;
  --text-secondary: #795548;
  --card-bg: #FFFFFF;
  --card-shadow: rgba(62, 39, 35, 0.08);
  --card-shadow-hover: rgba(62, 39, 35, 0.15);
  --radius: 16px;
  --radius-pill: 20px;
  --font-main: 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-main);
}

/* ==========================================
   MODULE 1: Hero Screen · 双色脚印交织动效
   ========================================== */
.hero-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-cream);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.hero-screen.fade-out {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.hero-overlay {
  text-align: center;
  padding: 40px;
}

/* Dual Paw Container */
.dual-paw-container {
  position: relative;
  width: 220px;
  height: 180px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Individual Paws */
.paw {
  position: absolute;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-paw {
  left: -40px;
  top: 50%;
  transform: translateY(-50%) rotate(-20deg);
}

.dog-paw {
  right: -40px;
  top: 50%;
  transform: translateY(-50%) rotate(20deg);
}

/* Paw entrance animation */
.cat-paw.paw-enter {
  opacity: 1;
  left: 30px;
  transform: translateY(-50%) rotate(-10deg);
}

.dog-paw.paw-enter {
  opacity: 1;
  right: 30px;
  transform: translateY(-50%) rotate(10deg);
}

/* Paws merge to center */
.cat-paw.paw-merge {
  opacity: 0.7;
  left: 50%;
  top: 45%;
  transform: translate(-80%, -50%) rotate(-5deg) scale(0.8);
}

.dog-paw.paw-merge {
  opacity: 0.7;
  right: 50%;
  top: 55%;
  transform: translate(80%, -50%) rotate(5deg) scale(0.8);
}

/* Heart Shape */
.heart-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

.heart-shape.heart-show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  animation: heartBeat 1s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  15% { transform: translate(-50%, -50%) scale(1.15); }
  30% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.1); }
  60% { transform: translate(-50%, -50%) scale(1); }
}

/* Pulse Rings */
.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
}

.pulse-ring.pulse-active {
  animation: pulseExpand 2s ease-out infinite;
}

.pulse-ring.pulse-1 {
  border: 2px solid rgba(76, 175, 80, 0.4);
  animation-delay: 0s;
}

.pulse-ring.pulse-2 {
  border: 2px solid rgba(255, 152, 0, 0.4);
  animation-delay: 0.5s;
}

.pulse-ring.pulse-3 {
  border: 2px solid rgba(76, 175, 80, 0.3);
  animation-delay: 1s;
}

@keyframes pulseExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Hero Text Lines */
.hero-text-lines {
  text-align: center;
}

.hero-line {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.hero-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-line.line-1 {
  color: #4CAF50;
}

.hero-line.line-2 {
  color: #FF9800;
}

.hero-line.line-3 {
  font-weight: 700;
  font-size: 19px;
  background: linear-gradient(90deg, #4CAF50, #FF9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   Main Content
   ========================================== */
.main-content {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.main-content.fade-in {
  opacity: 1;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ==========================================
   MODULE 2: Emotion Video · Glassmorphism
   ========================================== */
.emotion-section {
  padding-top: 40px;
}

/* Hero Title Area */
.hero-title-area {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero-main-title {
  font-size: 38px;
  font-weight: 700;
  color: #2A1A12;
  line-height: 1.5;
  margin-bottom: 0;
  letter-spacing: -0.3px;
}

.hero-main-title .highlight-orange {
  color: #E67E22;
  font-weight: 700;
  position: relative;
  display: inline;
  background-image: linear-gradient(180deg, transparent 60%, rgba(230, 126, 34, 0.2) 60%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 2px;
}

.hero-sub-title {
  font-size: 16px;
  color: #6F655F;
  line-height: 1.8;
  margin-top: 24px;
  padding: 0 15%;
}

/* CTA Button */
.cta-wrapper {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 28px;
}

.cta-match-btn {
  width: 320px;
  height: 56px;
  border-radius: 28px;
  background: linear-gradient(135deg, #FF9800 0%, #E67E22 100%);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-main);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.25);
  transition: all 0.3s var(--ease);
  animation: ctaBreath 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.cta-match-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: ctaShimmer 3s ease-in-out infinite;
}

@keyframes ctaBreath {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 12px 36px rgba(230, 126, 34, 0.4);
    transform: scale(1.02);
  }
}

@keyframes ctaShimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.cta-match-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 36px rgba(230, 126, 34, 0.45);
}

.cta-match-btn:active {
  transform: scale(0.98);
}

/* Live Tag */
.live-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4CAF50;
  animation: liveBlink 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(76, 175, 80, 0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 4px rgba(76, 175, 80, 0.2); }
}

.live-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Glassmorphism Video Container */
.video-glass-container {
  position: relative;
  padding: 12px;
  margin: 0 auto 32px auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 8px 32px rgba(62, 39, 35, 0.08),
    0 2px 8px rgba(62, 39, 35, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  width: fit-content;
  max-width: calc(100% - 32px);
}

.video-glass-container::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.video-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rescue-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2D1B10, #4E342E);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.video-placeholder-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.video-placeholder-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  text-align: center;
}

.video-placeholder-text small {
  color: rgba(255, 255, 255, 0.4);
}

.emotion-desc {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 32px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ==========================================
   MODULE 3: Quiz
   ========================================== */
.quiz-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #FFF8E1 100%);
}

.quiz-container {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  min-height: 320px;
}

.quiz-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 8px 32px var(--card-shadow);
  display: none;
  animation: slideIn 0.4s var(--ease);
}

.quiz-card.active {
  display: block;
}

.quiz-card.exit-left {
  animation: slideOutLeft 0.3s var(--ease) forwards;
}

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

@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-40px); }
}

.quiz-progress {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: #EFEBE9;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease);
}

.quiz-step.active {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.quiz-step.completed {
  background: var(--green);
  color: white;
}

.quiz-question {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-cream);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-primary);
  text-align: left;
  transition: all 0.3s var(--ease);
  line-height: 1.5;
}

.quiz-option:hover {
  border-color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.15);
}

.quiz-option.selected {
  border-color: var(--orange);
  background: var(--orange-light);
}

.option-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.option-text {
  flex: 1;
}

.match-btn {
  display: block;
  margin: 40px auto 0;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
}

.match-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 28px rgba(255, 152, 0, 0.4);
}

.match-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================
   MODULE 4: Result
   ========================================== */
.result-section {
  background: linear-gradient(180deg, #FFF8E1 0%, var(--bg-cream) 100%);
}

.result-radar {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-radar .paw-icon {
  font-size: 64px;
}

.result-radar .radar-text {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 14px;
}

.result-card {
  display: flex;
  gap: 32px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 8px 40px var(--card-shadow);
  max-width: 800px;
  margin: 60px auto 0;
  animation: resultSlideUp 0.6s var(--ease);
}

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

.result-card-left {
  flex-shrink: 0;
  width: 240px;
}

.result-pet-photo {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--card-shadow);
}

.result-card-right {
  flex: 1;
}

.result-report {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2;
}

.report-line {
  margin-bottom: 8px;
}

.report-label {
  color: var(--orange);
  font-weight: 700;
}

.report-value {
  color: var(--text-primary);
}

.report-value.highlight {
  color: var(--orange);
  font-weight: 700;
  font-size: 16px;
}

.report-value.health-green {
  color: var(--green);
}

.report-detail {
  color: var(--text-secondary);
  padding-left: 16px;
  margin: 8px 0;
  line-height: 1.8;
  font-family: var(--font-main);
}

/* ==========================================
   MODULE 5: Angel Wall
   ========================================== */
.angel-section {
  background: var(--bg-cream);
}

.angel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.angel-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--card-shadow);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.angel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--card-shadow-hover);
}

.angel-photo-wrap {
  aspect-ratio: 1;
  overflow: hidden;
}

.angel-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.angel-card:hover .angel-photo {
  transform: scale(1.05);
}

.angel-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.angel-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.angel-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.angel-vaccine {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  width: fit-content;
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(62, 39, 35, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
  animation: modalSlideUp 0.4s var(--ease);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-cream);
  font-size: 24px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  z-index: 2;
}

.modal-close:hover {
  background: var(--orange-light);
  color: var(--orange);
}

.modal-body {
  display: flex;
  gap: 24px;
}

.modal-photo-section {
  flex-shrink: 0;
}

.modal-photo {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

.modal-info-section {
  flex: 1;
}

.modal-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-meta span {
  padding: 4px 12px;
  background: var(--bg-cream);
  border-radius: var(--radius-pill);
}

.modal-story {
  margin-bottom: 20px;
}

.modal-story h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-story p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.modal-health-report h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.health-table {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-cream);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.health-row {
  padding: 6px 0;
  border-bottom: 1px solid rgba(62, 39, 35, 0.06);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.health-row:last-child {
  border-bottom: none;
}

.health-test {
  color: var(--text-secondary);
  min-width: 120px;
}

.health-result {
  color: var(--text-primary);
  font-weight: 700;
}

.modal-adopt-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
}

.modal-adopt-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(255, 152, 0, 0.4);
}

/* ==========================================
   MODULE 6: Safety
   ========================================== */
.safety-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #E8F5E9 50%, var(--bg-cream) 100%);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.safety-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px var(--card-shadow);
  transition: all 0.3s var(--ease);
}

.safety-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--card-shadow-hover);
}

.safety-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.safety-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.safety-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==========================================
   MODULE 7: Feedback
   ========================================== */
.feedback-section {
  background: var(--bg-cream);
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.feedback-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: 0 4px 20px var(--card-shadow);
  transition: all 0.3s var(--ease);
}

.feedback-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--card-shadow-hover);
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.feedback-badge {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.badge-green {
  background: var(--green-light);
  color: var(--green);
}

.badge-orange {
  background: var(--orange-light);
  color: var(--orange-dark);
}

.feedback-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.feedback-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-style: italic;
}

/* ==========================================
   MODULE 8: FAQ
   ========================================== */
.faq-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #FFF8E1 100%);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--card-shadow);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  transition: all 0.3s var(--ease);
}

.faq-question:hover {
  background: var(--bg-cream);
}

.faq-question.open {
  background: var(--bg-cream);
}

.faq-toggle {
  font-size: 24px;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-answer.open {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ==========================================
   MODULE 9: Get Started
   ========================================== */
.getstarted-section {
  background: var(--bg-cream);
  padding-bottom: 40px;
}

.getstarted-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.getstarted-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 20px var(--card-shadow);
}

.getstarted-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.getstarted-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.guide-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-input {
  padding: 14px 20px;
  border: 2px solid #EFEBE9;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--text-primary);
  transition: border-color 0.3s var(--ease);
  outline: none;
}

.guide-input:focus {
  border-color: var(--green);
}

.guide-input::placeholder {
  color: #BCAAA4;
}

.guide-btn {
  padding: 14px 24px;
  background: var(--green);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.guide-btn:hover {
  background: #388E3C;
  transform: scale(1.02);
}

.guide-success {
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  background: var(--green-light);
  border-radius: var(--radius);
  text-align: center;
}

.donate-card {
  border: 2px solid var(--orange-light);
}

.donate-btn {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
}

.donate-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 28px rgba(255, 152, 0, 0.4);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: #3E2723;
  padding: 32px 0;
  text-align: center;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  .angel-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .angel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .getstarted-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    flex-direction: column;
    align-items: center;
  }

  .result-card-left {
    width: 100%;
    max-width: 280px;
  }

  .result-pet-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-photo {
    width: 100%;
    height: 200px;
  }

  .hero-line {
    font-size: 14px;
  }

  .hero-main-title {
    font-size: 26px;
  }

  .hero-sub-title {
    font-size: 14px;
    padding: 0 5%;
  }

  .cta-match-btn {
    width: 280px;
    height: 50px;
    font-size: 16px;
  }

  .video-glass-container {
    padding: 8px;
    border-radius: 20px;
  }

  .emotion-desc {
    font-size: 14px;
    padding: 20px;
  }

  .quiz-card {
    padding: 24px 20px;
  }

  .quiz-question {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-main-title {
    font-size: 22px;
  }

  .hero-sub-title {
    font-size: 13px;
    padding: 0 2%;
  }

  .cta-match-btn {
    width: 260px;
    height: 48px;
    font-size: 15px;
  }

  .dual-paw-container {
    width: 180px;
    height: 150px;
  }

  .angel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .angel-info {
    padding: 12px;
  }

  .angel-name {
    font-size: 13px;
  }

  .feedback-card {
    padding: 20px;
  }
}

/* ==========================================
   14. PAYMENT MODAL
   ========================================== */
.payment-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.payment-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.payment-modal {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(62, 39, 35, 0.2);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.payment-modal-overlay.active .payment-modal {
  transform: scale(1) translateY(0);
}

.payment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(62, 39, 35, 0.06);
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.payment-modal-close:hover {
  background: rgba(62, 39, 35, 0.12);
  color: var(--text-primary);
}

.payment-modal-header {
  text-align: center;
  padding: 32px 24px 20px;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.08), rgba(76, 175, 80, 0.06));
  border-radius: 24px 24px 0 0;
}

.payment-modal-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.payment-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.payment-modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.payment-modal-body {
  padding: 24px;
}

.payment-qr-wrapper {
  text-align: center;
  margin-bottom: 24px;
}

.payment-qr-img {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  border: 3px solid rgba(255, 152, 0, 0.2);
  box-shadow: 0 4px 16px rgba(62, 39, 35, 0.08);
  object-fit: contain;
  background: #fff;
}

.payment-address-section {
  margin-bottom: 24px;
}

.payment-address-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 8px;
  font-weight: 500;
}

.payment-address-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8F5F0;
  border: 1px solid rgba(62, 39, 35, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.payment-address-text {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.5;
  user-select: all;
}

.payment-copy-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: var(--orange);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.payment-copy-btn:hover {
  background: var(--orange-dark);
  transform: scale(1.02);
}

.payment-copy-btn.copied {
  background: var(--green);
}

.payment-steps {
  background: rgba(76, 175, 80, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
}

.payment-steps-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.payment-steps-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.payment-steps-list li {
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .payment-modal {
    max-width: 100%;
    border-radius: 20px;
  }

  .payment-modal-header {
    padding: 24px 20px 16px;
  }

  .payment-modal-body {
    padding: 20px;
  }

  .payment-qr-img {
    width: 160px;
    height: 160px;
  }

  .payment-address-text {
    font-size: 11px;
  }
}
