/* ============================================
   Eulogique — Complete Stylesheet
   Refined Warm Minimalism
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #1a1a2e;
  --bg: #faf6f0;
  --accent: #7c9082;
  --accent-hover: #6a7e70;
  --gold: #c4a265;
  --gold-light: #d4b87a;
  --text-dark: #2d2d2d;
  --text-muted: #6b6b6b;
  --text-light: #999;
  --error: #c47070;
  --error-bg: #fdf0f0;
  --card-bg: #ffffff;
  --card-shadow: 0 2px 20px rgba(26,26,46,0.06);
  --card-shadow-hover: 0 4px 30px rgba(26,26,46,0.10);
  --border: #e8e2d8;
  --border-light: #f0ebe3;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --transition: 0.3s ease;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--primary);
}

/* --- Loading Overlay --- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250,246,240,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.loading-overlay.hidden { display: none; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Inline Spinner (small) --- */
.spinner-sm {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* --- Navigation --- */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250,246,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.nav-logo:hover { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--primary); }

.nav-signin {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
}
.nav-signin:hover { background: #2a2a42; color: #fff !important; }

.nav-signout {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hidden { display: none !important; }

/* --- App Container --- */
.app-container {
  min-height: calc(100vh - var(--nav-height) - 120px);
}

/* --- Page Transitions --- */
.page-enter {
  animation: fadeIn 0.4s ease forwards;
}

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

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

/* --- Botanical Divider --- */
.botanical-divider {
  text-align: center;
  padding: 32px 0;
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.5;
  letter-spacing: 16px;
}

.botanical-line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* ============================================
   LANDING PAGE
   ============================================ */

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 100px 24px 60px;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 600;
  transition: all var(--transition);
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,144,130,0.25);
}

.hero-botanical {
  display: block;
  margin: 48px auto 0;
  animation: fadeIn 1.2s ease 0.6s both;
}

.hero-botanical svg {
  width: 120px;
  height: auto;
}

/* --- Section Shared --- */
.section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
  font-weight: 400;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* --- How It Works --- */
.how-it-works-bg {
  background: var(--card-bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.step-card {
  text-align: center;
  padding: 40px 24px;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 36px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--gold);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
}
.pricing-btn:hover {
  background: var(--accent);
  color: #fff;
}

.pricing-card.featured .pricing-btn {
  background: var(--accent);
  color: #fff;
}
.pricing-card.featured .pricing-btn:hover {
  background: var(--accent-hover);
}

/* --- Testimonials --- */
.testimonials-bg {
  background: var(--primary);
  color: var(--bg);
}

.testimonials-bg .section-title { color: var(--bg); }
.testimonials-bg .section-subtitle { color: rgba(250,246,240,0.6); }

.testimonials-carousel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  min-height: 200px;
}

.testimonial-item {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}
.testimonial-item.active { display: block; }

.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(250,246,240,0.9);
}

.testimonial-author {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 500;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250,246,240,0.25);
  cursor: pointer;
  transition: var(--transition);
}
.testimonial-dot.active { background: var(--gold); }

/* ============================================
   AUTH PAGES (Register, Login, Verify)
   ============================================ */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height) - 120px);
  padding: 48px 24px;
}

.auth-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 440px;
}

.auth-card h2 {
  font-size: 1.9rem;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card .auth-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,144,130,0.12);
}
.form-input::placeholder { color: var(--text-light); }

.form-input.error { border-color: var(--error); }

textarea.form-input {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

.form-error {
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 6px;
  display: none;
}
.form-error.visible { display: block; }

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

/* Password toggle */
.password-wrapper {
  position: relative;
}
.password-wrapper .form-input { padding-right: 48px; }
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}
.password-toggle:hover { color: var(--text-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,144,130,0.25);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--gold-light);
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-switch a { font-weight: 600; }

/* --- Google Sign-In Button --- */
.google-btn-wrapper {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
  min-height: 44px;
}
.google-btn-wrapper > div {
  width: 100% !important;
}
.google-btn-wrapper iframe {
  margin: 0 auto;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 16px;
  color: var(--text-light);
  font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.auth-divider span {
  padding: 0 14px;
  white-space: nowrap;
}

/* --- Alert / Error Banner --- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}
.alert.visible { display: block; }
.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(196,112,112,0.2);
}
.alert-success {
  background: #eef6f0;
  color: var(--accent);
  border: 1px solid rgba(124,144,130,0.2);
}

/* ============================================
   VERIFY PAGE
   ============================================ */

.verify-icon {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 28px 0;
}

.code-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}
.code-input:focus { border-color: var(--accent); }

.resend-link {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.resend-link a { cursor: pointer; }
.resend-link .cooldown { color: var(--text-light); }

/* ============================================
   QUESTIONNAIRE / FORM STEPS
   ============================================ */

.form-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* --- Progress Bar --- */
.progress-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  padding: 0 8px;
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.progress-step.active .progress-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.progress-step.done .progress-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.progress-step::after {
  content: '';
  position: absolute;
  top: 15px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.progress-step:last-child::after { display: none; }

.progress-step.done::after { background: var(--accent); }

.progress-label {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 6px;
  white-space: nowrap;
}
.progress-step.active .progress-label,
.progress-step.done .progress-label { color: var(--accent); }

/* --- Step Content --- */
.step-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
}

.step-heading {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.step-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* --- Selectable Cards Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.select-card {
  padding: 14px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
  color: var(--text-muted);
  background: var(--bg);
  user-select: none;
}
.select-card:hover {
  border-color: var(--accent);
  color: var(--text-dark);
}
.select-card.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Pill Toggles (Pronouns, etc.) --- */
.pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pill {
  padding: 10px 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
  color: var(--text-muted);
  background: var(--bg);
  user-select: none;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--text-dark);
}
.pill.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Trait Pills (multi-select) --- */
.trait-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.trait-pill {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  color: var(--text-muted);
  background: var(--card-bg);
  user-select: none;
}
.trait-pill:hover {
  border-color: var(--accent);
  color: var(--text-dark);
}
.trait-pill.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.trait-counter {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.trait-counter strong { color: var(--accent); }

/* --- Tone/Length Cards (larger) --- */
.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.option-card {
  padding: 20px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
  user-select: none;
  position: relative;
}
.option-card:hover {
  border-color: var(--accent);
}
.option-card.selected {
  border-color: var(--accent);
  background: rgba(124,144,130,0.06);
}

.option-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.option-card .option-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.option-card .option-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.75;
  margin-top: 6px;
  line-height: 1.4;
}

.option-card .option-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* --- Toggle Switch --- */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle-label {
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* --- Step Navigation --- */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.save-later {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
}
.save-later:hover { color: var(--text-muted); }

/* ============================================
   REVIEW / PLAN SELECTION PAGE
   ============================================ */

.review-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.review-page h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  text-align: center;
}

.review-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.review-section {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  overflow: hidden;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}
.review-header:hover { background: rgba(250,246,240,0.6); }

.review-header h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.review-header .review-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-edit-btn {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.review-edit-btn:hover { color: var(--accent-hover); }

.review-toggle-icon {
  font-size: 0.75rem;
  color: var(--text-light);
  transition: transform var(--transition);
}
.review-section.open .review-toggle-icon { transform: rotate(180deg); }

.review-body {
  padding: 0 20px 16px;
  display: none;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.review-section.open .review-body { display: block; }

.review-body dt {
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 10px;
}
.review-body dd {
  margin-left: 0;
  margin-bottom: 4px;
}

/* --- Plan Selection in Review --- */
.plan-selection {
  margin-top: 40px;
}

.plan-selection h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--card-bg);
  position: relative;
}
.plan-card:hover { border-color: var(--accent); }
.plan-card.selected {
  border-color: var(--accent);
  background: rgba(124,144,130,0.04);
}

.plan-card .plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.plan-card .plan-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.plan-card .plan-delivery {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-card .plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* ============================================
   MOCK PAYMENT PAGE
   ============================================ */

.mock-payment-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.mock-payment-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
}

.mock-payment-card h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.mock-payment-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.mock-stripe-box {
  background: #f7f7f7;
  border: 1px dashed #ccc;
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   SUCCESS PAGE
   ============================================ */

.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height) - 120px);
  padding: 48px 24px;
  text-align: center;
}

.success-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 56px 48px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  max-width: 520px;
  width: 100%;
}

/* Animated checkmark */
.success-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-check::after {
  content: '✓';
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  animation: checkFade 0.4s ease 0.3s forwards;
  opacity: 0;
}

@keyframes checkFade {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.success-card h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.success-card p {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 1rem;
}

.success-detail {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.success-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ============================================
   ORDER / EULOGY VIEW
   ============================================ */

.order-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.order-header {
  text-align: center;
  margin-bottom: 32px;
}

.order-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.order-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.order-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.order-status-badge.completed {
  background: rgba(124,144,130,0.12);
  color: var(--accent);
}
.order-status-badge.pending {
  background: rgba(196,162,101,0.12);
  color: var(--gold);
}

.eulogy-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.eulogy-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-dark);
  white-space: pre-wrap;
}

.eulogy-text p {
  margin-bottom: 18px;
}

.order-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.edits-info {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ============================================
   EDIT REQUEST PAGE
   ============================================ */

.edit-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.edit-page h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-align: center;
}

.edit-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.current-eulogy {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  margin-bottom: 28px;
  max-height: 300px;
  overflow-y: auto;
}

.current-eulogy-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.edit-prompts {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 6px;
  font-style: italic;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.dashboard-page h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.dashboard-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.dashboard-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.dashboard-empty p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.order-list {
  display: grid;
  gap: 16px;
}

.order-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition);
}
.order-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.order-card-info h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
}

.order-card-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.order-card-arrow {
  color: var(--text-light);
  font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
  background: var(--primary);
  color: rgba(250,246,240,0.6);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-botanical {
  color: var(--gold);
  opacity: 0.4;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  color: rgba(250,246,240,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(250,246,240,0.9); }

.footer-sep {
  margin: 0 10px;
  opacity: 0.3;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(250,246,240,0.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-toggle { display: flex; }

  .hero { padding: 60px 20px 40px; }
  .hero h1 { font-size: 2.3rem; }
  .hero-sub { font-size: 1rem; }

  .steps-grid { grid-template-columns: 1fr; gap: 0; }
  .step-card { padding: 28px 20px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }

  .section { padding: 56px 20px; }

  .auth-card { padding: 36px 24px; }

  .form-row { grid-template-columns: 1fr; }

  .step-content { padding: 32px 20px; }

  .progress-label { display: none; }
  .progress-dot { width: 28px; height: 28px; font-size: 0.8rem; }

  .plan-cards { grid-template-columns: 1fr; }

  .card-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  .eulogy-card { padding: 32px 20px; }
  .eulogy-text { font-size: 1.05rem; }

  .order-card { flex-direction: column; align-items: flex-start; gap: 12px; }

  .code-input {
    width: 44px;
    height: 52px;
    font-size: 1.3rem;
  }

  .success-card { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .pricing-card { padding: 32px 24px; }
  .code-inputs { gap: 6px; }
  .code-input {
    width: 38px;
    height: 46px;
    font-size: 1.2rem;
  }
}

/* --- Utility classes --- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
