/* Duarte Baby Registry — warm cream + sage green (default theme below; rainbow overrides at bottom) */
:root {
  --cream: #f5efe4;
  --cream-warm: #eee5d3;
  --sage: #8a9d7f;
  --sage-dark: #65775c;
  --sage-light: #c8d5bf;
  --ink: #2f2a25;
  --ink-soft: #5b524a;
  --terracotta: #c47a5a;
  --gold: #c8a356;
  --boy: #9bbcd9;
  --boy-dark: #5b8fb3;
  --girl: #e8b4c4;
  --girl-dark: #c4798f;
  --shadow: 0 8px 24px rgba(47, 42, 37, 0.08);
  --shadow-lg: 0 18px 50px rgba(47, 42, 37, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.bg-cream { background: var(--cream); }
.text-ink { color: var(--ink); }

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 640px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,239,228,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47,42,37,0.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; }
.logo:hover { text-decoration: none; color: var(--sage-dark); }
.site-header nav a { margin-left: 22px; color: var(--ink-soft); font-size: 15px; }
.site-header nav a:hover { color: var(--sage-dark); text-decoration: none; }

/* Footer */
.site-footer { padding: 60px 0 40px; color: var(--ink-soft); font-size: 14px; text-align: center; }

/* Hero */
.hero { padding: 80px 0 60px; position: relative; overflow: hidden; }
.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--sage-light); color: var(--sage-dark);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 24px;
}
.hero-title { font-size: clamp(40px, 6vw, 64px); margin: 0 0 4px; line-height: 1.05; }
.hero-title .script {
  font-family: 'Tangerine', 'Snell Roundhand', 'Apple Chancery', cursive;
  font-size: 1.4em; color: var(--sage-dark); font-weight: 700;
}
.hero-title .amp { color: var(--terracotta); margin: 0 8px; font-style: italic; }
.hero-sub { color: var(--ink-soft); font-size: 18px; margin: 8px 0 28px; }
.hero-message { max-width: 580px; margin: 28px auto 0; color: var(--ink-soft); font-size: 17px; }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.countdown { display: inline-flex; gap: 14px; justify-content: center; margin: 4px 0 8px; }
.countdown > div {
  background: white; border-radius: var(--radius);
  padding: 14px 18px; min-width: 78px; box-shadow: var(--shadow); text-align: center;
}
.countdown .num { display: block; font-family: 'Cormorant Garamond', serif; font-size: 32px; color: var(--ink); font-weight: 600; line-height: 1; }
.countdown span:not(.num) { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-top: 6px; }
.due { color: var(--ink-soft); font-size: 14px; margin-top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--sage-dark); color: white; }
.btn-primary:hover { background: var(--sage); color: white; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--sage-dark); border: 1.5px solid var(--sage); }
.btn-ghost:hover { background: var(--sage-light); }
.btn-danger { background: #b04545; color: white; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Sections */
.section { padding: 70px 0; position: relative; }
.section-alt { background: var(--cream-warm); }
.section-title { font-size: clamp(30px, 4vw, 42px); margin: 0 0 8px; text-align: center; }
.section-sub { text-align: center; color: var(--ink-soft); margin: 0 auto 40px; max-width: 580px; }
.empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* Cards */
.card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.product-card .card-img { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-warm); }
.product-card .card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; background: white; transition: transform .3s; }
.product-card:hover .card-img img { transform: scale(1.04); }
.card-img-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, var(--cream-warm) 0%, var(--sage-light) 100%); }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.badge-must { background: var(--terracotta); color: white; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 19px; margin: 0; line-height: 1.25; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--sage-dark); text-decoration: none; }
.card-meta { font-size: 13px; color: var(--ink-soft); margin: 0; }
.card-desc { font-size: 14px; color: var(--ink-soft); margin: 0; }
.card-status { margin-top: auto; padding-top: 6px; }
.status-pill { display: inline-block; background: var(--sage-light); color: var(--sage-dark); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-pill.status-done { background: var(--gold); color: white; }
.claimers { font-size: 12px; color: var(--ink-soft); font-style: italic; margin: 0; }
.product-card.is-full { opacity: 0.75; }
.product-card.is-full .card-img img { filter: grayscale(0.3); }
.btn-claim { width: 100%; }

/* Funds */
.fund-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.fund-card { padding: 30px 26px; text-align: center; }
.fund-emoji { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.fund-progress { margin: 18px 0; }
.fund-amount { font-size: 15px; color: var(--ink-soft); }
.fund-amount strong { font-size: 22px; color: var(--ink); display: block; margin-bottom: 2px; }
.bar { height: 8px; background: var(--cream-warm); border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--sage), var(--sage-dark)); border-radius: 999px; transition: width .4s; }
.contrib-count { font-size: 12px; color: var(--ink-soft); }
.btn-contribute { width: 100%; }

/* Wishes / Guestbook */
.wish-form { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin: 0 auto 40px; max-width: 720px; }
.wish-form textarea { width: 100%; min-height: 90px; resize: vertical; border: 1px solid #e0d8c8; border-radius: 12px; padding: 14px; font: inherit; background: var(--cream); }
.wish-form-row { display: flex; gap: 10px; margin-top: 12px; }
.wish-form-row input { flex: 1; padding: 12px 14px; border: 1px solid #e0d8c8; border-radius: 999px; font: inherit; background: var(--cream); }
.wish-form-row button { flex-shrink: 0; }

.wish-board {
  column-count: 3; column-gap: 22px;
}
@media (max-width: 900px) { .wish-board { column-count: 2; } }
@media (max-width: 560px) { .wish-board { column-count: 1; } }

.wish {
  display: inline-block; width: 100%; break-inside: avoid;
  padding: 22px 22px 18px; margin-bottom: 22px;
  font-family: 'Caveat', 'Bradley Hand', cursive; font-size: 19px; line-height: 1.4;
  transform: rotate(var(--rot, 0deg));
  box-shadow: var(--shadow);
  border-radius: 4px;
}
.wish-msg { margin: 0 0 10px; }
.wish-sig { margin: 0; text-align: right; font-size: 16px; color: var(--ink-soft); }
.wish-color-0 { background: #fff7df; }
.wish-color-1 { background: #ffe9d6; }
.wish-color-2 { background: #d9e8d4; }
.wish-color-3 { background: #e1d6f0; }
.wish-color-4 { background: #d6e5f0; }
.wish-color-5 { background: #f0d6d6; }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(47,42,37,0.5); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .18s;
}
.modal {
  background: white; border-radius: var(--radius-lg); padding: 30px;
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: var(--shadow-lg);
  animation: rise .22s;
}
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 26px; color: var(--ink-soft); cursor: pointer; line-height: 1; }
.modal h3 { font-size: 26px; margin: 0 0 8px; }
.modal-sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }
.modal label { display: block; margin: 14px 0; font-size: 14px; color: var(--ink-soft); }
.modal label input, .modal label select, .modal label textarea {
  display: block; width: 100%; margin-top: 5px;
  padding: 11px 14px; border: 1px solid #e0d8c8; border-radius: 10px; font: inherit; color: var(--ink);
  background: var(--cream);
}
.modal label textarea { min-height: 70px; resize: vertical; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.form-error { color: #b04545; font-size: 14px; margin: 10px 0 0; }
.modal-pay { text-align: center; }
.qr-wrap { display: inline-block; padding: 12px; background: var(--cream); border-radius: 14px; margin: 12px 0; }
.qr-wrap img { display: block; width: 240px; height: 240px; }
.handle { font-family: 'JetBrains Mono', monospace; font-size: 18px; background: var(--cream-warm); padding: 10px 14px; border-radius: 8px; display: inline-block; margin: 6px 0; }
.modal-thanks { color: var(--sage-dark); font-weight: 600; margin: 14px 0 0; }
.open-app a { font-size: 14px; }

/* Flash */
.flash-stack { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.flash { padding: 14px 18px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; background: white; }
.flash-success { border-left: 4px solid var(--sage); }
.flash-error { border-left: 4px solid #b04545; }

/* Reveal modal */
.reveal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(245,239,228,0.96);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  text-align: center; padding: 30px;
}
/* Reserve room at the top so the skip button never overlaps the video */
.reveal-overlay { padding-top: 90px; }
.reveal-overlay video { max-width: min(80vw, 880px); max-height: 60vh; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.reveal-overlay h2 { font-size: clamp(40px, 7vw, 80px); margin: 22px 0 8px; }
.reveal-overlay.boy h2 { color: var(--boy-dark); }
.reveal-overlay.girl h2 { color: var(--girl-dark); }
.reveal-overlay p { color: var(--ink-soft); font-size: 18px; margin: 0 0 30px; }
.reveal-skip {
  position: absolute; top: 28px; right: 32px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(6px);
  border: 1.5px solid var(--ink-soft); border-radius: 999px;
  padding: 10px 20px; color: var(--ink-soft); cursor: pointer;
  font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s, transform .12s;
}
.reveal-skip:hover { background: var(--ink-soft); color: white; transform: translateY(-1px); }
.reveal-cta { background: var(--sage-dark); color: white; padding: 14px 32px; border-radius: 999px; border: none; font-weight: 600; font-size: 16px; cursor: pointer; }

/* Persistent "Replay announcement" button (fixed top-right after reveal is published) */
.replay-reveal-btn {
  position: fixed; top: 78px; right: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 14px; border-radius: 999px;
  background: white; border: 1.5px solid var(--sage-light);
  color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.replay-reveal-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); background: var(--cream); }
.replay-reveal-btn svg { color: var(--sage-dark); flex-shrink: 0; }
.replay-reveal-btn.boy  { border-color: var(--boy);  } .replay-reveal-btn.boy svg  { color: var(--boy-dark); }
.replay-reveal-btn.girl { border-color: var(--girl); } .replay-reveal-btn.girl svg { color: var(--girl-dark); }
@media (max-width: 600px) {
  .replay-reveal-btn span { display: none; }
  .replay-reveal-btn { padding: 10px; right: 16px; top: 72px; }
}

/* Ambient floating leaves */
.ambient { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.leaf {
  position: absolute; width: 18px; height: 26px;
  background: radial-gradient(ellipse at 50% 30%, var(--sage-light), var(--sage) 80%);
  border-radius: 70% 30% 70% 30% / 60% 40% 60% 40%;
  opacity: 0.5;
  animation: drift 22s linear infinite;
}
.leaf-1 { top: 10%; left: 8%;  animation-duration: 28s; }
.leaf-2 { top: 70%; left: 18%; animation-duration: 34s; animation-delay: -8s; }
.leaf-3 { top: 30%; left: 88%; animation-duration: 26s; animation-delay: -14s; }
.leaf-4 { top: 80%; left: 70%; animation-duration: 32s; animation-delay: -4s; }
.leaf-5 { top: 50%; left: 50%; animation-duration: 38s; animation-delay: -22s; }
.leaf-6 { top: 15%; left: 60%; animation-duration: 30s; animation-delay: -12s; }

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(40px, -30px) rotate(80deg); }
  50%  { transform: translate(-20px, 40px) rotate(160deg); }
  75%  { transform: translate(30px, 20px) rotate(260deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 800px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-side { background: var(--ink); color: white; padding: 28px 22px; }
.admin-side h2 { color: white; font-size: 22px; margin: 0 0 24px; }
.admin-side a { display: block; color: rgba(255,255,255,0.7); padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; }
.admin-side a:hover, .admin-side a.is-active { background: rgba(255,255,255,0.08); color: white; text-decoration: none; }
.admin-side .logout-form { margin-top: 30px; }
.admin-side .logout-form button { background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.2); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.admin-main { padding: 40px; background: var(--cream); overflow-x: auto; }
.admin-main h1 { font-size: 32px; margin: 0 0 24px; }
.admin-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: white; padding: 18px 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-num { font-size: 28px; font-weight: 600; color: var(--ink); }
.stat-label { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid rgba(47,42,37,0.06); }
.table th { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.table tbody tr:hover { background: var(--cream); }
.table .thumb { width: 50px; height: 50px; object-fit: contain; background: var(--cream); border-radius: 8px; }

.form-grid { display: grid; gap: 18px; }
.form-grid .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-grid .row-2 { grid-template-columns: 1fr; } }
.form-grid label { font-size: 14px; color: var(--ink-soft); }
.form-grid input[type=text], .form-grid input[type=email], .form-grid input[type=password], .form-grid input[type=number], .form-grid input[type=url], .form-grid select, .form-grid textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid #d6cdb8; border-radius: 10px; font: inherit; color: var(--ink); background: white;
}
.form-grid textarea { min-height: 100px; resize: vertical; }
.form-grid .checkbox { display: inline-flex; align-items: center; gap: 8px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }

.scrape-status { font-size: 14px; color: var(--ink-soft); margin: 10px 0; min-height: 18px; }
.scrape-status.is-error { color: #b04545; }
.scrape-status.is-ok { color: var(--sage-dark); }
.preview-img { width: 120px; height: 120px; object-fit: contain; background: var(--cream); border-radius: 10px; margin-top: 10px; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.login-card { background: white; padding: 40px 44px; border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; max-width: 380px; }
.login-card h1 { font-size: 26px; margin: 0 0 22px; text-align: center; }
.login-card input { width: 100%; padding: 12px 14px; border: 1px solid #d6cdb8; border-radius: 10px; font: inherit; }
.login-card button { width: 100%; margin-top: 14px; }

/* ─────────────────────────────────────────────────────────────────
   RAINBOW THEME — vivid, playful overrides for body[data-theme="rainbow"]
   ───────────────────────────────────────────────────────────────── */
body[data-theme="rainbow"] {
  --cream: #fff9f3;
  --cream-warm: #ffeedf;
  --sage: #ff7eb9;       /* primary turns pink */
  --sage-dark: #d63384;
  --sage-light: #ffd6e8;
  --ink: #2a1f3d;
  --ink-soft: #6b5d8a;
  --terracotta: #ff6f3c; /* orange accent */
  --gold: #ffd166;
  background: linear-gradient(180deg, #fff9f3 0%, #ffe7f5 40%, #e7f6ff 80%, #f3ffe7 100%) fixed;
}

body[data-theme="rainbow"] .hero-title .script {
  background: linear-gradient(90deg, #ff5e7a, #ff9a3c, #ffd166, #5fc777, #4ea7ff, #b07cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
body[data-theme="rainbow"] .hero-title .amp { color: #ffd166; }

body[data-theme="rainbow"] .hero-badge {
  background: linear-gradient(90deg, #ffb3d9, #ffd6a5, #fff3a5, #b7f3c2, #b3e0ff, #d7c2ff);
  color: #4a2a5e;
}

body[data-theme="rainbow"] .countdown > div {
  background: white;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, #ff5e7a, #ffd166, #5fc777, #4ea7ff, #b07cff) 1;
}

body[data-theme="rainbow"] .btn-primary {
  background: linear-gradient(120deg, #ff5e7a, #ff9a3c, #b07cff);
  color: white;
  box-shadow: 0 6px 20px rgba(255, 94, 122, 0.3);
}
body[data-theme="rainbow"] .btn-primary:hover {
  background: linear-gradient(120deg, #ff7e9a, #ffae6c, #c89cff);
  box-shadow: 0 8px 24px rgba(255, 94, 122, 0.4);
}
body[data-theme="rainbow"] .btn-ghost { color: #d63384; border-color: #ff9a3c; }
body[data-theme="rainbow"] .btn-ghost:hover { background: #ffe7f5; }

body[data-theme="rainbow"] .section-alt {
  background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 50%, #e3f2fd 100%);
}

body[data-theme="rainbow"] .card { box-shadow: 0 8px 28px rgba(176, 124, 255, 0.15); }
body[data-theme="rainbow"] .card:hover { box-shadow: 0 18px 50px rgba(255, 94, 122, 0.25); }

body[data-theme="rainbow"] .status-pill {
  background: linear-gradient(90deg, #ffe0ec, #fff0d0);
  color: #d63384;
}
body[data-theme="rainbow"] .status-pill.status-done {
  background: linear-gradient(90deg, #b7f3c2, #fff3a5);
  color: #2a6b34;
}
body[data-theme="rainbow"] .badge-must {
  background: linear-gradient(120deg, #ff5e7a, #ff9a3c);
}

body[data-theme="rainbow"] .bar-fill {
  background: linear-gradient(90deg, #ff5e7a, #ff9a3c, #ffd166, #5fc777, #4ea7ff, #b07cff);
  background-size: 200% 100%;
  animation: rainbow-shift 4s linear infinite;
}
@keyframes rainbow-shift { from { background-position: 0% 0; } to { background-position: 200% 0; } }

body[data-theme="rainbow"] .wish-color-0 { background: #fff3a5; }
body[data-theme="rainbow"] .wish-color-1 { background: #ffd6a5; }
body[data-theme="rainbow"] .wish-color-2 { background: #b7f3c2; }
body[data-theme="rainbow"] .wish-color-3 { background: #d7c2ff; }
body[data-theme="rainbow"] .wish-color-4 { background: #b3e0ff; }
body[data-theme="rainbow"] .wish-color-5 { background: #ffb3d9; }

body[data-theme="rainbow"] .leaf {
  background: radial-gradient(circle, #ff5e7a, #ff9a3c, #ffd166, #5fc777, #4ea7ff, #b07cff);
  border-radius: 50%;
  opacity: 0.4;
}

body[data-theme="rainbow"] .site-header { background: rgba(255, 249, 243, 0.85); }
body[data-theme="rainbow"] .logo { color: #d63384; }
body[data-theme="rainbow"] .logo svg { color: #ff9a3c; }

/* Category filter chips */
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 32px; }
.cat-chip {
  background: white; border: 1.5px solid var(--cream-warm); color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .15s;
}
.cat-chip:hover { border-color: var(--sage); color: var(--sage-dark); }
.cat-chip.is-active { background: var(--sage-dark); color: white; border-color: var(--sage-dark); }
body[data-theme="rainbow"] .cat-chip.is-active { background: linear-gradient(120deg, #ff5e7a, #ff9a3c, #b07cff); border: none; padding: 9.5px 17.5px; }

/* Hide rainbow arches by default — only boho-rainbow theme reveals them */
.rainbow-arch { display: none; }

/* ─────────────────────────────────────────────────────────────────
   BOHO RAINBOW THEME — cream base, dusty rainbow accents, arches
   ───────────────────────────────────────────────────────────────── */
body[data-theme="boho-rainbow"] {
  --cream: #f7eee0;
  --cream-warm: #ead9bf;
  --sage: #c89b8c;          /* dusty terracotta as primary */
  --sage-dark: #a26b59;
  --sage-light: #e8d3c5;
  --ink: #3d2b22;
  --ink-soft: #6b4f43;
  --terracotta: #d18b6a;
  --gold: #d4a557;
  background: linear-gradient(180deg, #faf2e4 0%, #f7eee0 60%, #f3e1cf 100%) fixed;
}

body[data-theme="boho-rainbow"] .hero-title .script {
  background: linear-gradient(90deg, #d18b6a, #d4a557, #a8b56e, #7faab4, #a597b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
body[data-theme="boho-rainbow"] .hero-title .amp { color: #d4a557; font-style: normal; }

body[data-theme="boho-rainbow"] .hero-badge {
  background: linear-gradient(90deg, #e8c5b0, #efd9bb, #f1e0c5, #d6dfc1, #c7d3da);
  color: #6b4f43;
}

body[data-theme="boho-rainbow"] .btn-primary {
  background: linear-gradient(120deg, #d18b6a 0%, #d4a557 100%);
  color: white;
}
body[data-theme="boho-rainbow"] .btn-ghost { color: var(--sage-dark); border-color: var(--terracotta); }
body[data-theme="boho-rainbow"] .btn-ghost:hover { background: var(--sage-light); }

body[data-theme="boho-rainbow"] .bar-fill {
  background: linear-gradient(90deg, #d18b6a, #d4a557, #a8b56e, #7faab4, #a597b8);
}

body[data-theme="boho-rainbow"] .section-alt {
  background: linear-gradient(135deg, #f3e1cf 0%, #e8d3c5 100%);
}

/* Boho-rainbow: swap the leaf VISUAL for a tiny rainbow arch. Same size, position,
   and drift animation as the default leaves — only the shape changes. */
body[data-theme="boho-rainbow"] .leaf {
  background: none !important;
  border-radius: 0 !important;
  /* Same visual area as the default leaf (≈468 sq px), but rainbow aspect ratio */
  width: 26px;
  height: 18px;
}
body[data-theme="boho-rainbow"] .rainbow-arch {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

body[data-theme="boho-rainbow"] .wish-color-0 { background: #f7e6c4; }
body[data-theme="boho-rainbow"] .wish-color-1 { background: #f3d4ba; }
body[data-theme="boho-rainbow"] .wish-color-2 { background: #d9dfc4; }
body[data-theme="boho-rainbow"] .wish-color-3 { background: #d6cce0; }
body[data-theme="boho-rainbow"] .wish-color-4 { background: #c7d3da; }
body[data-theme="boho-rainbow"] .wish-color-5 { background: #ecc8bb; }

/* Per-category sections */
.product-category { margin-bottom: 48px; }
.product-category:last-child { margin-bottom: 0; }
.category-heading {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream-warm);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.category-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream-warm);
}
body[data-theme="rainbow"] .category-heading {
  border-bottom-color: transparent;
  background: linear-gradient(90deg, #ff5e7a, #ff9a3c, #ffd166, #5fc777, #4ea7ff, #b07cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body[data-theme="boho-rainbow"] .category-heading {
  background: linear-gradient(90deg, #d18b6a, #d4a557, #a8b56e, #7faab4, #a597b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Admin: draggable category list */
.cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cat-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: var(--cream); border-radius: 10px;
  cursor: grab; transition: background .12s, transform .12s;
}
.cat-row:hover { background: var(--cream-warm); }
.cat-row.is-dragging { opacity: 0.4; transform: scale(0.98); }
.cat-drag { color: var(--ink-soft); font-size: 18px; cursor: grab; user-select: none; line-height: 1; }
.cat-name { flex: 1; font-weight: 600; }
.cat-count { font-size: 12px; color: var(--ink-soft); }
.cat-actions { display: flex; gap: 4px; }

/* Registry filter bar — chips + "show only needed" toggle */
.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 22px; margin: 0 0 32px;
}
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; }
.needed-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
  background: white; border: 1.5px solid var(--cream-warm);
  padding: 7px 16px 7px 10px; border-radius: 999px;
}
.needed-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.needed-track {
  position: relative;
  width: 36px; height: 20px;
  background: var(--cream-warm); border-radius: 999px;
  transition: background .15s;
}
.needed-track::before {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: white; box-shadow: 0 1px 3px rgba(47,42,37,0.2);
  transition: transform .18s;
}
.needed-toggle input:checked + .needed-track { background: var(--sage-dark); }
.needed-toggle input:checked + .needed-track::before { transform: translateX(16px); }
.needed-label { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
body[data-theme="rainbow"] .needed-toggle input:checked + .needed-track { background: linear-gradient(120deg, #ff5e7a, #b07cff); }
body[data-theme="boho-rainbow"] .needed-toggle input:checked + .needed-track { background: linear-gradient(120deg, #d18b6a, #a597b8); }

/* Reveal: 'Join us in welcoming <Full Name>' — sized between the H2 and sub paragraph */
.reveal-welcoming {
  font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 400;
  margin: 8px 0 18px;
  color: var(--ink-soft);
  line-height: 1.25;
  max-width: 90vw;
}
.reveal-welcoming .reveal-name-text {
  font-weight: 600;
  font-style: italic;
  display: inline;
}
.reveal-overlay.boy  .reveal-welcoming .reveal-name-text { color: var(--boy-dark); }
.reveal-overlay.girl .reveal-welcoming .reveal-name-text { color: var(--girl-dark); }
.reveal-sub { font-size: 18px; color: var(--ink-soft); margin: 0 0 30px; }

/* Hero baby-name subline (replaces 'Welcoming our little one' once name is set) */
.hero-baby-name {
  font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  color: var(--ink);
  margin: 8px 0 28px;
}
body[data-theme="boho-rainbow"] .hero-baby-name { color: var(--sage-dark); }
body[data-theme="rainbow"]      .hero-baby-name { color: #d63384; }

/* Price min/max filter */
.price-filter {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1.5px solid var(--cream-warm);
  padding: 5px 12px; border-radius: 999px;
}
.price-label { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.price-filter input {
  width: 80px; border: none; outline: none; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink);
  padding: 4px 0;
}
.price-filter input::-webkit-outer-spin-button,
.price-filter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-filter input[type=number] { -moz-appearance: textfield; }
.price-dash { color: var(--ink-soft); }

/* Turnstile widget spacing in modals/forms */
.cf-turnstile { margin: 14px 0; }
.wish-form .cf-turnstile { margin: 14px 0 0; }
