@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root{
  --pampas:#ece2d6;
  --ink:#3c4a4a;
  --muted:#6b7a7a;
  --accent:#2f6b64;
  --card:#ffffff;
  --shadow:0 18px 55px rgba(0,0,0,.18);
}

html,body{height:100%;}
body.inv-body{
  margin:0;
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: var(--pampas);
  color: var(--ink);
}

/* Center "paper" like the video */
.inv-wrap{
  min-height:100vh;
  display:flex;
  justify-content:center;
  padding: 0;
  position:relative;
  background: var(--pampas);
}
.inv-wrap::before{
  content:"";
  position:fixed; inset:0;
  background: var(--pampas);
  z-index:-2;
}
.inv-wrap::after{
  content:"";
  position:fixed; inset:0;
  background: url('/assets/theme/paper.jpg') center/cover no-repeat;
  opacity:.12;
  z-index:-1;
  pointer-events:none;
}

.inv-sheet{
  width:min(520px, 100vw);
  min-height:100vh;
  background: #fff;
  background-image: url('/assets/theme/paper.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}

/* Floral corner */
.inv-sheet .floral-top{
  position:absolute; top:-50px; left:-50px;
  width: 320px; height: 320px;
  background: url('/assets/theme/corner.png') center/contain no-repeat;
  opacity:.95;
  pointer-events:none;
}
.inv-sheet .floral-bottom{
  position:absolute; bottom:-60px; right:-60px;
  width: 260px; height: 260px;
  background: url('/assets/theme/corner.png') center/contain no-repeat;
  transform: rotate(180deg);
  opacity:.55;
  pointer-events:none;
}

/* Cover styling */
.cover{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 54px 18px 120px;
  text-align:center;
}
.cover-bg{
  position:absolute; inset:0;
  background: url('/assets/theme/cover_bg.jpg') center/cover no-repeat;
  filter: saturate(.95);
  opacity:.55;
}
.cover-inner{position:relative; width:100%; max-width:420px;}
.to-pill{
  display:inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(47,107,100,.22);
  color: var(--ink);
  font-size: 14px;
  backdrop-filter: blur(8px);
}
.cover-script{
  margin-top: 18px;
  font-family: Great Vibes, cursive;
  font-size: 44px;
  color: var(--muted);
  letter-spacing:.5px;
}
.cover-monogram{
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin: 12px auto 10px;
  display:block;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.18));
}
.cover-line{
  width: 180px;
  height: 3px;
  background: rgba(60,74,74,.22);
  margin: 6px auto 14px;
  border-radius: 999px;
}
.cover-title{
  font-family: Playfair Display, serif;
  font-weight: 700;
  font-size: 34px;
  color: var(--ink);
}
.cover-sub{
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.cover-actions{
  margin-top: 18px;
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap;
}
.btn-cover{
  display:inline-flex; gap:10px; align-items:center; justify-content:center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(47,107,100,.35);
  text-decoration:none;
  font-weight:600;
}
.btn-gold{ background: var(--accent); color:#fff; border-color: rgba(47,107,100,.45);}
.btn-ghost{ background: rgba(255,255,255,.72); color: var(--accent); }
.btn-cover:active{ transform: translateY(1px); }

/* Heading style like the video */
.section-title{
  font-family: Great Vibes, cursive;
  font-size: 54px;
  color: var(--muted);
  text-align:center;
  margin: 18px 0 2px;
}
.section-subtitle{
  text-align:center;
  color: var(--muted);
  font-weight:600;
  letter-spacing:.2px;
  margin-bottom: 10px;
}

/* Bottom nav */
.bottom-nav{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom: 18px;
  width:min(520px, calc(100vw - 24px));
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(47,107,100,.18);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  padding: 10px 10px;
  z-index: 50;
}
.bottom-nav a{
  flex:1;
  text-align:center;
  text-decoration:none;
  color: var(--muted);
  font-size: 11px;
  font-weight:600;
  padding: 8px 6px;
  border-radius: 14px;
}
.bottom-nav a.active{
  background: rgba(236,226,214,.9);
  color: var(--accent);
}

/* Floating buttons (right) */
.fab-stack{
  position: fixed;
  right: 14px;
  top: 46%;
  transform: translateY(-50%);
  display:flex;
  flex-direction:column;
  gap: 10px;
  z-index: 60;
}
.fab{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(47,107,100,.20);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  display:flex; align-items:center; justify-content:center;
  color: var(--accent);
  text-decoration:none;
}
.fab small{display:block; font-size:10px; color:var(--muted); margin-top:2px}

/* Mobile safe area */
@media (max-width: 520px){
  .inv-sheet{width:100vw;}
  .fab-stack{right: 10px;}
  .cover{padding-left:14px; padding-right:14px;}
  .cover-script{font-size:40px;}
}

/* ===== Wedding Premium (026-inspired) ===== */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg: #0b1220;
  --paper: #ffffff;
  --soft: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --gold: #d6b25e;
  --gold2:#f5e6b5;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 18px 55px rgba(0,0,0,.16);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.10);
  --ease: cubic-bezier(.2,.8,.2,1);
}

html{ scroll-behavior:smooth; }
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 10% 10%, rgba(214,178,94,.14), transparent 60%),
              radial-gradient(900px 600px at 90% 20%, rgba(255,255,255,.06), transparent 60%),
              linear-gradient(180deg, #070b12, var(--bg));
  color: #e5e7eb;
}

h1,h2,h3,h4,.font-serif{ font-family: "Playfair Display", Georgia, serif; color: var(--ink); }
.font-script{ font-family: "Great Vibes", cursive; }

.navbar{ border-bottom: 1px solid rgba(255,255,255,.08); }
.card{ border:0; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); color: var(--ink); }
.btn{ border-radius: 16px; font-weight: 800; }
.form-control,.form-select{ border-radius: 16px; }

/* container card */
.inv-wrap{
  border-radius: var(--radius-xl);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
}

/* Cover */
.cover{
  min-height: 92vh;
  position:relative;
  display:grid;
  place-items:center;
  padding: 26px;
  background: #0b1220;
  color:#fff;
}
.cover-bg{
  position:absolute; inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.70)),
    url('./cover.jpg'),
    url('./cover.svg');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.cover:before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(800px 500px at 20% 15%, rgba(214,178,94,.20), transparent 60%),
    radial-gradient(700px 450px at 85% 20%, rgba(255,255,255,.10), transparent 60%);
  pointer-events:none;
}
.cover-inner{
  position:relative; z-index:1;
  width: min(980px, 100%);
  display:grid;
  gap: 14px;
  text-align:center;
}
.to-pill{
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.86);
  width: fit-content;
}
.to-pill b{ color:#fff; }
.cover-title{
  font-size: clamp(44px, 6vw, 86px);
  line-height: .95;
  font-weight: 700;
  letter-spacing: .2px;
}
.cover-sub{ color: rgba(255,255,255,.80); font-size: 15px; }
.cover-script{ font-size: clamp(28px, 4vw, 46px); color: rgba(255,255,255,.88); }
.meta{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap: 10px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}
.meta span{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.cover-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 6px;
}
.btn-cover{
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color:#fff;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.btn-cover:hover{ transform: translateY(-1px); filter: brightness(.98); }
.btn-gold{
  background: var(--gold);
  border-color: var(--gold);
  color: #101827;
}
.btn-gold:hover{ filter: brightness(.98); }

.floral-top{
  position:absolute;
  top:0; left:0; right:0;
  height: 200px;
  background: url('./floral-top.svg') center top / cover no-repeat;
  opacity:.9;
  pointer-events:none;
}
.floral-bottom{
  position:absolute;
  bottom:0; left:0; right:0;
  height: 200px;
  background: url('./floral-bottom.svg') center bottom / cover no-repeat;
  opacity:.9;
  pointer-events:none;
}

.scroll-hint{
  margin-top: 10px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

/* Sections */
.content{
  background: linear-gradient(180deg, #fff, #fff);
  color: var(--ink);
  padding: 22px;
}
.section{
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  margin-bottom: 14px;
}
.section .kicker{
  color: var(--muted);
  font-size: 13px;
}
.section h3{
  margin: 2px 0 10px 0;
  font-weight: 900;
}
.divider{
  height: 80px;
  background: url('./divider.svg') center / 520px 80px no-repeat;
  margin: 8px 0 4px;
  opacity:.9;
}
.grid-2{ display:grid; gap:14px; }
@media (min-width: 992px){
  .grid-2{ grid-template-columns: 1.2fr .8fr; align-items:start; }
}

.fact{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15,23,42,.03);
}
.ico{
  width: 44px; height: 44px;
  border-radius: 16px;
  background: rgba(214,178,94,.16);
  border: 1px solid rgba(214,178,94,.22);
  display:grid; place-items:center;
  font-size: 20px;
}
.muted{ color: var(--muted); }

.countdown{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.cd{
  border-radius: 18px;
  background: rgba(15,23,42,.03);
  padding: 12px 10px;
  text-align:center;
}
.cd .num{ font-size: 22px; font-weight: 950; }
.cd .lbl{ font-size: 12px; color: var(--muted); }

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 992px){
  .gallery{ grid-template-columns: repeat(3, 1fr); }
}
.g-item{
  border-radius: 18px;
  overflow:hidden;
  aspect-ratio: 1/1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.18)),
    radial-gradient(600px 300px at 30% 20%, rgba(214,178,94,.22), transparent 60%),
    linear-gradient(180deg, #111827, #0b1220);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.g-item span{
  display:block;
  height:100%;
  background: url('./cover.svg') center/cover no-repeat;
  opacity:.85;
}

/* Timeline */
.timeline{
  display:grid;
  gap: 12px;
}
.ti{
  display:flex; gap:12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15,23,42,.03);
}
.ti .dot{
  width: 12px; height: 12px;
  border-radius: 999px;
  margin-top: 6px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(214,178,94,.14);
}
.ti .when{ font-weight: 900; }
.ti .desc{ color: var(--muted); }

/* sticky bottom nav */
.bottomnav{
  position: sticky;
  bottom: 14px;
  display:flex;
  justify-content:center;
  z-index: 10;
}
.navmini{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  padding: 10px;
  backdrop-filter: blur(10px);
}
.navmini a{
  text-decoration:none;
  color: var(--ink);
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 999px;
}
.navmini a:hover{ background: rgba(15,23,42,.06); }

@media (prefers-reduced-motion: reduce){
  .fade-up{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}


/* JS-optional reveal: visible by default */
.fade-up{ opacity: 1; transform: none; }
html.js .fade-up{ opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .fade-up.show{ opacity: 1; transform: none; }


/* ===== Mobile-first tuning ===== */
@media (max-width: 576px){
  body{ background-attachment: scroll; }
  .container{ padding-left: 10px !important; padding-right: 10px !important; }
  .inv-wrap{ border-radius: 18px; }
  .cover{ min-height: 100svh; padding: 18px; }
  .cover-inner{ gap: 12px; }
  .to-pill{ font-size: 13px; padding: 9px 12px; }
  .cover-script{ font-size: 30px; }
  .cover-title{ font-size: 44px; }
  .cover-sub{ font-size: 14px; }
  .meta{ gap: 8px; }
  .meta span{ font-size: 12px; padding: 8px 10px; }
  .cover-actions{ gap: 8px; }
  .btn-cover{ padding: 11px 14px; font-size: 14px; }
  .floral-top,.floral-bottom{ height: 150px; opacity: .85; }

  .content{ padding: 14px; }
  .section{ border-radius: 18px; padding: 14px; margin-bottom: 12px; }
  .section h3{ font-size: 22px; }
  .divider{ background-size: 340px 80px; height: 60px; margin: 4px 0 0; opacity: .75; }

  .fact{ padding: 10px; border-radius: 16px; }
  .ico{ width: 40px; height: 40px; border-radius: 14px; }

  .countdown{ gap: 8px; }
  .cd{ padding: 10px 8px; border-radius: 16px; }
  .cd .num{ font-size: 18px; }
  .cd .lbl{ font-size: 11px; }

  .gallery{ grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .g-item{ border-radius: 16px; }

  /* Bottom nav: fixed, safe-area */
  .bottomnav{ position: fixed; left: 0; right: 0; bottom: 10px; pointer-events:none; }
  .navmini{
    pointer-events:auto;
    width: fit-content;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 8px;
  }
  .navmini a{ padding: 9px 10px; font-size: 13px; white-space: nowrap; }

  /* give room for fixed bottom nav */
  #content{ padding-bottom: 80px; }
}

/* Slightly bigger phones/tablets */
@media (min-width: 577px) and (max-width: 992px){
  .cover{ min-height: 92svh; }
  .container{ padding-left: 16px !important; padding-right: 16px !important; }
  .navmini a{ font-size: 14px; }
}


/* ===== Mobile Fullscreen Invitation Mode ===== */
body.inv-full .navbar{ display:none !important; }
body.inv-full main, body.inv-full .container{ margin-top:0 !important; padding-top:0 !important; }
body.inv-full{ background:#070b12 !important; }

/* Floating controls */
.inv-fab{
  position: fixed;
  right: 14px;
  bottom: 92px;
  z-index: 9999;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.inv-fab .fab-btn{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(17,24,39,.65);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.inv-fab .fab-btn:active{ transform: translateY(1px); }
.inv-fab .fab-btn .lbl{
  position:absolute;
  right: 62px;
  white-space:nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(17,24,39,.78);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events:none;
}
.inv-fab .fab-btn:hover .lbl{ opacity:1; transform: translateX(0); }

@media (max-width: 576px){
  .inv-fab{ right: 12px; bottom: 88px; }
  .inv-fab .fab-btn{ width: 50px; height: 50px; }
}


/* ===== Premium extras: open animation + slider + guestbook + gift QR ===== */
@keyframes fadeOutUp{ from{opacity:1; transform:translateY(0);} to{opacity:0; transform:translateY(-8px);} }
@keyframes fadeInUp{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }

.inv-wrap.opening #cover{ animation: fadeOutUp .45s ease forwards; }
.inv-wrap.opening #content{ display:block !important; animation: fadeInUp .55s ease .05s both; }

.qr-card{
  border-radius: 18px;
  background: rgba(15,23,42,.03);
  padding: 12px;
}
.qr-img{
  border-radius: 16px;
  overflow:hidden;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
}
.qr-img img{ width: 100%; height: auto; display:block; }
.copy-row{ display:flex; gap: 10px; flex-wrap:wrap; align-items:center; }

.gal-slider{
  display:flex;
  gap: 10px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.gal-slider .g-item{
  flex: 0 0 74%;
  max-width: 74%;
  scroll-snap-align: start;
}
@media (min-width: 992px){
  .gal-slider{ display:grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .gal-slider .g-item{ flex: none; max-width: none; }
}

.wish-form .form-control{
  border-radius: 16px;
}
.wish{
  border-radius: 18px;
  background: rgba(15,23,42,.03);
  padding: 12px;
  border: 1px solid rgba(15,23,42,.06);
}
.wish .who{ font-weight: 900; }
.wish .when{ color: var(--muted); font-size: 12px; }
.wish .msg{ color: var(--ink); white-space: pre-wrap; }


/* ===== Video-inspired Pampas Premium Theme ===== */
:root{
  --ink:#2b2a27;
  --muted:#6f6a61;
  --card: rgba(255,255,255,.72);
  --card2: rgba(255,255,255,.58);
  --stroke: rgba(43,42,39,.10);
  --gold:#b79a60;
  --brown:#6b5048;
  --green:#0e4d4a;
  --ease:cubic-bezier(.2,.8,.2,1);
}

body{
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: url('./bg.jpg') center/cover no-repeat fixed;
}
@media (max-width: 576px){
  body{ background-attachment: scroll; }
}

/* If bg.jpg missing, use bg.svg */
body.no-bgjpg{
  background: url('./bg.svg') center/cover no-repeat fixed;
}

.font-serif{ font-family: "Great Vibes", cursive !important; font-weight: 400; letter-spacing: .2px; }

.inv-wrap{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
}

/* translucent sections */
.section{
  background: var(--card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}
.section .kicker{ color: var(--muted); }

.cover{
  background: var(--card2);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
}
.cover-title{ font-family: "Great Vibes", cursive; color: var(--brown); }
.cover-script{ color: var(--brown); }
.to-pill{ border-color: rgba(43,42,39,.16); background: rgba(255,255,255,.65); color: var(--ink); }

/* gold frame like video */
.photo-frame{
  border: 2px solid rgba(183,154,96,.45);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255,255,255,.65);
}
.photo-frame .inner{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(43,42,39,.12);
  background:#fff;
}

/* buttons */
.btn-gold{
  background: var(--brown) !important;
  border-color: rgba(0,0,0,0) !important;
  color:#fff !important;
  border-radius: 999px !important;
}
.btn-gold:hover{ filter: brightness(1.03); }
.btn-outline{ border-radius: 999px !important; border:1px solid rgba(43,42,39,.18) !important; background: rgba(255,255,255,.62) !important; }

/* Countdown blocks like video */
.cd{
  background: rgba(107,80,72,.92);
  color:#fff;
  border: 0;
}
.cd .lbl{ color: rgba(255,255,255,.85); }

/* Right side controls */
.side-controls{
  position: fixed;
  right: 14px;
  top: 42%;
  transform: translateY(-50%);
  z-index: 9999;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.side-controls .sc-btn{
  width: 54px; height: 54px;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(43,42,39,.14);
  box-shadow: 0 14px 35px rgba(0,0,0,.16);
  display:grid; place-items:center;
  color: var(--green);
  text-decoration:none;
}
.side-controls .sc-btn small{ display:block; font-size: 11px; font-weight: 700; color: rgba(14,77,74,.85); margin-top:2px; }
.side-controls .sc-btn:active{ transform: translateY(1px); }

@media (max-width: 576px){
  .side-controls{ right: 10px; }
  .side-controls .sc-btn{ width:52px; height:52px; }
}

/* Bottom nav like video */
.bottomnav{ position: fixed; left:0; right:0; bottom: 0; z-index: 9998; pointer-events:none; }
.navmini{
  pointer-events:auto;
  margin: 10px auto 14px;
  width: calc(100vw - 28px);
  max-width: 520px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(43,42,39,.12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  display:flex;
  justify-content: space-between;
  padding: 10px 10px;
  gap: 4px;
  overflow-x:auto;
}
.navmini a{
  flex: 1 0 auto;
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 14px;
  font-size: 11px;
  color: rgba(43,42,39,.75);
  white-space: nowrap;
}
.navmini a .ic{ font-size: 18px; line-height: 1; }
.navmini a.active{ background: rgba(14,77,74,.10); color: var(--green); font-weight: 800; }

/* Gallery single carousel */
.gal-one{
  position: relative;
  margin-top: 12px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(43,42,39,.12);
  background: rgba(255,255,255,.75);
}
.gal-one .img{
  width:100%;
  aspect-ratio: 1 / 1;
  background: #eee;
  display:block;
  object-fit: cover;
}
.gal-one .arr{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(0,0,0,.35);
  color:#fff;
  display:grid; place-items:center;
  cursor:pointer;
}
.gal-one .arr.left{ left: 10px; }
.gal-one .arr.right{ right: 10px; }
.gal-dots{
  display:flex; justify-content:center; gap: 6px;
  margin-top: 10px;
}
.gal-dots span{
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(43,42,39,.22);
}
.gal-dots span.on{ background: rgba(14,77,74,.65); width: 18px; }

/* Story timeline */
.story{
  position: relative;
  padding-left: 18px;
}
.story:before{
  content:"";
  position:absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: rgba(14,77,74,.35);
  border-radius: 999px;
}
.story-item{
  position: relative;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(43,42,39,.10);
  margin: 10px 0;
}
.story-item:before{
  content:"❤";
  position:absolute;
  left: -4px;
  top: 14px;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  display:grid; place-items:center;
  color: var(--green);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(43,42,39,.10);
  border-radius: 999px;
  font-size: 12px;
}

/* RSVP buttons */
.btn-pill{ border-radius: 999px !important; }


/* ===== Theme Switch Pack (2 themes) ===== */
/* Default: Floral Soft */
body.theme-floral{
  background-image: url('./bg.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
body.theme-mandala{
  background-image: url('./bg_mandala.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
@media (max-width:576px){
  body.theme-floral, body.theme-mandala{ background-attachment: scroll !important; }
}

/* overlay readability */
body.theme-floral::before,
body.theme-mandala::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  z-index: 0;
}
body.theme-floral::before{
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.88)),
    radial-gradient(900px 600px at 20% 10%, rgba(214,178,94,.10), transparent 60%),
    radial-gradient(900px 600px at 90% 30%, rgba(0,0,0,.04), transparent 60%);
}
body.theme-mandala::before{
  background:
    linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.55)),
    radial-gradient(900px 600px at 25% 12%, rgba(214,178,94,.22), transparent 62%),
    radial-gradient(900px 600px at 85% 22%, rgba(255,255,255,.06), transparent 62%);
}
body.theme-floral > *,
body.theme-mandala > *{ position: relative; z-index: 1; }

/* wrapper + cards */
body.theme-floral .inv-wrap{
  background: rgba(255,255,255,.70) !important;
  border: 1px solid rgba(15,23,42,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.theme-mandala .inv-wrap{
  background: rgba(17,24,39,.56) !important;
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.theme-floral .section{
  background: rgba(255,255,255,.90) !important;
  border: 1px solid rgba(15,23,42,.06);
}
body.theme-mandala .section{
  background: rgba(17,24,39,.68) !important;
  border: 1px solid rgba(255,255,255,.10);
}

body.theme-floral .fact, body.theme-floral .cd, body.theme-floral .ti, body.theme-floral .wish, body.theme-floral .qr-card{
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(15,23,42,.06);
}
body.theme-mandala .fact, body.theme-mandala .cd, body.theme-mandala .ti, body.theme-mandala .wish, body.theme-mandala .qr-card{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12);
}

/* text contrast */
body.theme-floral .muted{ color: rgba(15,23,42,.58) !important; }
body.theme-floral .section .kicker{ color: rgba(15,23,42,.62) !important; }
body.theme-mandala .muted{ color: rgba(255,255,255,.70) !important; }
body.theme-mandala .section .kicker{ color: rgba(255,255,255,.72) !important; }
body.theme-mandala .section{ color: rgba(255,255,255,.92) !important; }

/* buttons */
body.theme-mandala .btn-dark{
  background: #d6b25e !important;
  border-color: #d6b25e !important;
  color: #101827 !important;
}
body.theme-mandala .btn-outline-dark{
  border-color: rgba(255,255,255,.24) !important;
  color: rgba(255,255,255,.90) !important;
}
body.theme-mandala .btn-outline-dark:hover{
  background: rgba(214,178,94,.14) !important;
}

/* bottom nav glass */
body.theme-floral .navmini{
  background: rgba(255,255,255,.88) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
}
body.theme-mandala .navmini{
  background: rgba(17,24,39,.70) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
body.theme-mandala .navmini a{ color: rgba(255,255,255,.90) !important; }
body.theme-mandala .navmini a:hover{ background: rgba(255,255,255,.06) !important; }

/* cover per theme */
body.theme-floral .cover-bg{
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(0,0,0,.55)),
    url('./cover_floral.jpg') center/cover no-repeat !important;
}
body.theme-mandala .cover-bg{
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.70)),
    url('./cover_mandala.jpg') center/cover no-repeat !important;
}
