/* ─── Variables ──────────────────────────────────────────── */
:root {
  --red:        #C8102E;
  --red-dark:   #9B0B20;
  --red-mid:    #E5234A;
  --red-light:  #FDEEF1;
  --pink:       #F4A0B5;
  --pink-light: #FFF0F4;
  --gold:       #C9973A;
  --gold-light: #FBF5DC;
  --white:      #FFFFFF;
  --warm-white: #FFF8F8;
  --bg:         #FFF4F6;
  --text:       #2D1010;
  --text-muted: #8A5C5C;
  --border:     #F0CECE;
  --shadow:     rgba(200, 16, 46, 0.10);
  --radius:     16px;
  --radius-sm:  10px;
  --transition: 0.2s ease;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Lato', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.caption { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Layout ─────────────────────────────────────────────── */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 600px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ─── Header / Nav ───────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}
.logo-mark { font-size: 1.5rem; line-height: 1; }
.logo-img { height: 2rem; width: auto; border-radius: 4px; }

/* Desktop nav */
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { color: var(--red); background: var(--red-light); }
.nav-links a.active { color: var(--red); background: var(--red-light); }

/* Hamburger button — hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.menu-toggle:hover { background: var(--red-light); }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 680px) {
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
    gap: 0.1rem;
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .nav-links .btn {
    margin-top: 0.4rem;
    text-align: center;
    border-radius: var(--radius-sm);
  }
  .site-header .container { padding-bottom: 0.85rem; }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-mid), var(--red-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.45);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover {
  background: var(--red-light);
  color: var(--red-dark);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a87820);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(201, 151, 58, 0.40);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 151, 58, 0.50);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
}
.btn-ghost:hover { background: var(--red-light); color: var(--red); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  overflow: hidden;
}
.card-body { padding: 1.75rem; }
.card-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--red-light);
}
.card-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--warm-white);
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1.35rem; }
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.form-label .required { color: var(--red); margin-left: 3px; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(244, 160, 181, 0.25);
}
.form-control.error { border-color: var(--red); }
.form-error { font-size: 0.8rem; color: var(--red); margin-top: 0.3rem; display: none; }
.form-error.show { display: block; }
.input-prefix {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-prefix:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(244, 160, 181, 0.25);
}
.input-prefix span {
  padding: 0.75rem 0.9rem;
  background: var(--red-light);
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  border-right: 2px solid var(--border);
}
.input-prefix input {
  border: none;
  outline: none;
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A5C5C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ─── Range Slider ───────────────────────────────────────── */
.range-wrapper { position: relative; }
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-mid), var(--red-dark));
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.4);
  cursor: pointer;
  border: 3px solid var(--white);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ─── Split Visualizer ───────────────────────────────────── */
.split-bar {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  height: 36px;
  margin: 1rem 0 0.5rem;
  box-shadow: 0 2px 8px var(--shadow);
}
.split-charity {
  background: linear-gradient(90deg, var(--red-mid), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  transition: width 0.3s ease;
  min-width: 0;
  overflow: hidden;
}
.split-couple {
  background: linear-gradient(90deg, var(--gold), #a87820);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  transition: width 0.3s ease;
  min-width: 0;
  overflow: hidden;
}
.split-legend {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}
.split-legend-item { display: flex; align-items: center; gap: 0.4rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-red { background: var(--red-mid); }
.dot-gold { background: var(--gold); }

/* ─── Progress Bar ───────────────────────────────────────── */
.progress-track {
  background: var(--border);
  border-radius: 50px;
  height: 12px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-mid), var(--gold));
  border-radius: 50px;
  transition: width 0.8s ease;
}

/* ─── Badges / Tags ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-red   { background: var(--red-light);  color: var(--red);  }
.badge-gold  { background: var(--gold-light); color: var(--gold); }
.badge-green { background: #EDFAF3;           color: #1A7C42;     }
.badge-gray  { background: #F4F4F4;           color: #666;        }

/* ─── Step Indicator ─────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding: 0.25rem 0;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 60px;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-item.done:not(:last-child)::after { background: var(--red); }
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.step-item.active .step-circle {
  background: var(--red);
  color: white;
  box-shadow: 0 2px 12px rgba(200, 16, 46, 0.4);
}
.step-item.done .step-circle {
  background: var(--red-dark);
  color: white;
}
.step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: center;
  font-weight: 600;
}
.step-item.active .step-label { color: var(--red); }

/* ─── Stat Cards ─────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 2px 10px var(--shadow);
}
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

/* ─── Gift Card List ─────────────────────────────────────── */
.gift-list { display: flex; flex-direction: column; gap: 0.75rem; }
.gift-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--shadow);
  transition: box-shadow var(--transition);
}
.gift-item:hover { box-shadow: 0 4px 16px var(--shadow); }
.gift-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-mid), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.gift-info { flex: 1; }
.gift-name { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.gift-meta { font-size: 0.8rem; color: var(--text-muted); }
.gift-amounts { text-align: right; }
.gift-total { font-weight: 700; color: var(--red); font-size: 1rem; }
.gift-charity-amt { font-size: 0.78rem; color: var(--text-muted); }

/* ─── QR Box ─────────────────────────────────────────────── */
.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  gap: 1rem;
}
.qr-box #qrcode canvas,
.qr-box #qrcode img {
  border-radius: var(--radius-sm);
  border: 3px solid var(--red-light);
}

/* ─── Charity Card ───────────────────────────────────────── */
.charity-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  text-align: left;
  width: 100%;
}
.charity-option:hover, .charity-option.selected {
  border-color: var(--red);
  background: var(--red-light);
  box-shadow: 0 2px 10px var(--shadow);
}
.charity-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-light);
  border-radius: var(--radius-sm);
}
.charity-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.charity-desc { font-size: 0.78rem; color: var(--text-muted); }
.charity-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.charity-option.selected .charity-check {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, #3D0812 0%, #7A1020 40%, #C8102E 80%, #E5234A 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '囍';
  position: absolute;
  font-size: 22rem;
  opacity: 0.04;
  top: -4rem;
  right: -3rem;
  line-height: 1;
  user-select: none;
}
.hero::after {
  content: '囍';
  position: absolute;
  font-size: 14rem;
  opacity: 0.04;
  bottom: -2rem;
  left: -2rem;
  line-height: 1;
  user-select: none;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero .lead { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

/* ─── How It Works ───────────────────────────────────────── */
.how-it-works { background: var(--white); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.how-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--warm-white);
  border: 1px solid var(--border);
  position: relative;
}
.how-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-mid), var(--red-dark));
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}
.how-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.how-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }

/* ─── Tax Relief Banner ──────────────────────────────────── */
.tax-banner {
  background: linear-gradient(135deg, #FBF5DC, #FEF0F4);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.tax-icon { font-size: 3rem; flex-shrink: 0; }
.tax-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

/* ─── Charity Grid ───────────────────────────────────────── */
.charity-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ─── Charity Info Button & Popup ────────────────────────── */
.charity-option-wrapper {
  display: flex;
  flex-direction: column;
}
.charity-option-wrapper--couple-choice {
  margin-top: 0.75rem;
  border-top: 2px dashed var(--border);
  padding-top: 0.75rem;
}
.charity-option--couple-choice {
  border: 2px dashed #b8860b !important;
  background: #fffdf0 !important;
}
.charity-option--couple-choice:hover,
.charity-option--couple-choice.selected {
  border-color: #b8860b !important;
  background: #fff8d6 !important;
  box-shadow: 0 2px 10px rgba(184,134,11,0.18) !important;
}
.charity-option--couple-choice.selected .charity-check {
  background: #b8860b !important;
  border-color: #b8860b !important;
  color: white;
}
.charity-option-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.charity-info-btn {
  background: var(--red-light);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.25rem;
  transition: all var(--transition);
  font-style: normal;
}
.charity-info-btn:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.charity-popup {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-top: -2px;
  box-shadow: 0 6px 20px var(--shadow);
  animation: fadeInUp 0.2s ease both;
}
.charity-popup-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.charity-popup-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--text);
}
.charity-popup-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.charity-popup-ipc {
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  background: var(--red-light);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}
.charity-popup-link {
  color: var(--red);
  font-weight: 600;
  font-size: 0.85rem;
  word-break: break-all;
}
.charity-popup-link:hover { text-decoration: underline; }

/* ─── Alert ──────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0;
}
.alert-info { background: #EEF4FF; border-left: 4px solid #4A7CF6; color: #1E3A8A; }
.alert-success { background: #EDFAF3; border-left: 4px solid #22C55E; color: #14532D; }
.alert-warning { background: #FFFBEB; border-left: 4px solid var(--gold); color: #713F12; }

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Share Link Box ─────────────────────────────────────── */
.share-box {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--warm-white);
}
.share-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  outline: none;
  font-family: monospace;
}
.share-box button {
  padding: 0.75rem 1.1rem;
  background: var(--red-light);
  border: none;
  border-left: 2px solid var(--border);
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.share-box button:hover { background: var(--red); color: white; }

/* ─── Section Title ──────────────────────────────────────── */
.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-sub { text-align: center; max-width: 500px; margin: 0 auto 2.5rem; }
.title-accent {
  display: inline-block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--pink));
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ─── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(150deg, #3D0812 0%, #7A1020 50%, #C8102E 100%);
  color: white;
  padding: 3rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '囍';
  position: absolute;
  font-size: 18rem;
  opacity: 0.05;
  top: -3rem;
  right: -2rem;
  user-select: none;
}
.page-hero h1 { color: white; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-hero p  { color: rgba(255,255,255,0.8); margin-top: 0.5rem; }

/* ─── Aura / Broadcast Hero ──────────────────────────────── */
.aura-hero {
  background: linear-gradient(150deg, #3D0812 0%, #7A1020 35%, #C8102E 70%, #F4A0B5 100%);
  color: white;
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.aura-couple-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: white;
  margin: 0.5rem 0;
}
.aura-subtitle { color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.aura-hearts {
  font-size: 2rem;
  letter-spacing: 0.2rem;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

/* ─── NRIC Input ─────────────────────────────────────────── */
.nric-field { font-family: monospace; letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── Blessing Certificate ──────────────────────────────── */
.cert-wrapper {
  background: linear-gradient(135deg, #fff9f0, #fff4f6);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(201,151,58,0.25), inset 0 0 60px rgba(201,151,58,0.05);
}
.cert-wrapper::before {
  content: '囍';
  position: absolute;
  font-size: 16rem;
  opacity: 0.03;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
}
.cert-corner {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.4;
}
.cert-corner.tl { top: 0.6rem; left: 0.8rem; }
.cert-corner.tr { top: 0.6rem; right: 0.8rem; }
.cert-corner.bl { bottom: 0.6rem; left: 0.8rem; }
.cert-corner.br { bottom: 0.6rem; right: 0.8rem; }
.cert-border-line {
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}
.cert-logo {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.cert-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--red-dark);
  margin: 0.5rem 0;
  line-height: 1.2;
}
.cert-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.cert-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--gold);
  font-size: 1rem;
}
.cert-divider::before, .cert-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cert-from {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.cert-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.cert-to {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cert-couple {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--red);
}
.cert-charity-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.cert-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0.25rem 0;
}
.cert-amount-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cert-ref {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-top: 1rem;
}
.cert-seal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-mid), var(--red-dark));
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(200,16,46,0.4);
  margin: 1rem auto 0;
  line-height: 1.3;
  padding: 0.5rem;
}
.cert-seal-icon { font-size: 1.4rem; line-height: 1; margin-bottom: 0.15rem; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem 1.25rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}
.site-footer a { color: var(--pink); }

/* ─── Utility ────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-red     { color: var(--red); }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.fw-bold      { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.gap-1 { gap: 0.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

/* ─── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.fade-in-up { animation: fadeInUp 0.5s ease both; }
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(200, 16, 46, 0); }
}
.pulse { animation: pulse-red 2s infinite; }

/* ─── Couple Dropdown ────────────────────────────────────── */
.couple-dropdown {
  position: relative;
}
.couple-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  min-height: 52px;
  transition: border-color var(--transition);
}
.couple-dropdown-trigger:hover {
  border-color: var(--red);
}
.couple-dropdown-placeholder {
  color: #aaa;
  font-size: 0.95rem;
}
.couple-dropdown-arrow {
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.couple-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px var(--shadow);
  z-index: 200;
  overflow: hidden;
}
.couple-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background var(--transition);
}
.couple-item:hover {
  background: var(--red-light);
}
.couple-item + .couple-item {
  border-top: 1px solid var(--border);
}
.couple-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.couple-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.couple-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.couple-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.couple-item-date {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 2.5rem 0; }
  .card-body { padding: 1.25rem; }
  .stat-number { font-size: 1.5rem; }
  .how-grid { grid-template-columns: 1fr; gap: 1rem; }
  .tax-banner { flex-direction: column; text-align: center; }
  .steps { gap: 0; }
  .aura-couple-names { font-size: 2rem; }
}
