:root {
  --maroon: #6f1018;
  --deep: #24090b;
  --gold: #d8a84b;
  --cream: #fff5df;
  --paper: #fffaf0;
  --ink: #211817;
  --muted: #7a6660;
  --line: rgba(111, 16, 24, .16);
  --shadow: 0 24px 70px rgba(36, 9, 11, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff8ea;
}
a { color: inherit; }
input, textarea, select, button { font: inherit; }

.flash {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92vw;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--maroon);
  box-shadow: var(--shadow);
}

.hero {
  min-height: 88vh;
  padding: 24px clamp(18px, 4vw, 64px);
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(216, 168, 75, .34), transparent 28%),
    linear-gradient(135deg, rgba(36, 9, 11, .88), rgba(111, 16, 24, .86)),
    repeating-linear-gradient(45deg, #6f1018 0 16px, #24090b 16px 32px);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
nav a {
  margin-left: 18px;
  text-decoration: none;
  color: rgba(255,255,255,.86);
  font-weight: 700;
}
.brand {
  margin: 0;
  font-family: Cinzel, serif;
  color: #fff;
}
.hero-inner {
  max-width: 920px;
  padding: 110px 0 70px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 880px;
  font-family: Cinzel, serif;
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  line-height: .98;
}
.hero p {
  max-width: 650px;
  color: rgba(255,255,255,.82);
  font-size: 1.1rem;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--gold), #b98024); }
.btn.ghost { color: var(--maroon); border: 1px solid var(--line); background: rgba(255,255,255,.76); }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.btn.danger { color: #fff; background: #9a2029; }
.btn.small { padding: 8px 12px; font-size: .86rem; }

main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: -58px auto 34px;
}
.features article,
.panel,
.login-card,
.table-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,250,240,.92);
  box-shadow: var(--shadow);
}
.features article { padding: 26px; }
.features span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--maroon);
  font-weight: 900;
}
.features h3 { margin: 18px 0 8px; font-family: Cinzel, serif; }
.features p, .muted { color: var(--muted); line-height: 1.7; }
.panel { margin: 34px 0; padding: clamp(22px, 4vw, 42px); }
.panel h2, .auth h1, .admin-wrap h1 {
  margin: 0 0 20px;
  font-family: Cinzel, serif;
  color: var(--maroon);
}

form { display: grid; gap: 20px; }
label { display: grid; gap: 8px; color: var(--deep); font-weight: 800; }
label small, legend span { color: var(--muted); font-weight: 500; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(111, 16, 24, .22);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255,255,255,.52);
}
legend {
  padding: 0 8px;
  color: var(--maroon);
  font-family: Cinzel, serif;
  font-weight: 800;
}
.form-grid, .two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
fieldset { display: grid; gap: 16px; }

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}
.section-head p:last-child {
  color: var(--muted);
  line-height: 1.7;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.theme-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 16px;
  min-height: 280px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(36,9,11,.1);
}
.theme-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background: repeating-linear-gradient(135deg, var(--maroon) 0 12px, var(--gold) 12px 18px, transparent 18px 30px);
}
.phone-preview,
.theme-copy {
  position: relative;
  z-index: 1;
}
.phone-preview {
  display: grid;
  place-items: center;
}
.mini-cover {
  width: 110px;
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 16px 10px;
  border: 5px solid rgba(255,255,255,.8);
  border-radius: 28px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(216,168,75,.45), transparent 35%),
    linear-gradient(160deg, #76111a, #24090b);
  box-shadow: 0 20px 40px rgba(36,9,11,.22);
}
.mini-cover span,
.theme-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: var(--maroon);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mini-cover strong {
  font-family: Cinzel, serif;
  font-size: 1.2rem;
  line-height: 1;
}
.mini-cover small { color: rgba(255,255,255,.75); }
.theme-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}
.theme-copy h3 {
  margin: 0;
  color: var(--maroon);
  font-family: Cinzel, serif;
}
.theme-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.theme-copy small { color: var(--deep); font-weight: 800; }
.theme-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.theme-ulos-royal .mini-cover { background: linear-gradient(160deg, #31070a, #8f1722 45%, #c08a32); }
.theme-modern-adat .mini-cover { background: linear-gradient(160deg, #111, #f7ead0); color: #211817; }
.theme-minimal-luxury .mini-cover { background: linear-gradient(160deg, #e8d4a5, #fff8ea); color: #6f1018; }
.theme-rustic-horas .mini-cover { background: linear-gradient(160deg, #5f3f2a, #d7b071); }
.theme-toba-classic .mini-cover { background: repeating-linear-gradient(135deg, #7a111a 0 14px, #111 14px 28px, #f6efe1 28px 36px); }

.link-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 18px;
}
.link-cards > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  word-break: break-word;
}
.link-cards strong { color: var(--maroon); }

.auth {
  display: grid;
  min-height: 100vh;
  place-items: center;
}
.login-card {
  width: min(440px, 100%);
  padding: 34px;
}
.admin-wrap {
  padding: 40px 0;
}
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.table-card { overflow: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}
th, td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { color: var(--maroon); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
td small { color: var(--muted); }
.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: #777;
  font-size: .8rem;
  font-weight: 800;
}
.badge.published { background: #18774e; }
.badge.draft { background: #b98024; }
.copy-box { min-height: 230px; }
.guest-list {
  display: grid;
  gap: 12px;
}
.guest-list > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.invitation-body {
  background: #1f0a0b;
}
.phone-shell {
  position: relative;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 120px rgba(0,0,0,.45);
}
.section {
  position: relative;
  min-height: 100vh;
  padding: 82px 28px 96px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
}
.section h1,
.section h2 {
  margin: 0;
  font-family: Cinzel, serif;
  color: var(--maroon);
}
.section h1 {
  font-size: 3.4rem;
  line-height: .92;
}
.section h1 span, .ampersand {
  display: block;
  margin: 12px 0;
  font-family: "Great Vibes", cursive;
  color: var(--gold);
  font-size: 3rem;
}
.cover {
  color: #fff;
  background:
    linear-gradient(rgba(36,9,11,.72), rgba(36,9,11,.82)),
    repeating-linear-gradient(135deg, #6f1018 0 18px, #2c0b0d 18px 36px);
}
.invitation-theme-ulos-royal .cover,
.invitation-theme-ulos-royal .red {
  background: radial-gradient(circle at top, rgba(216,168,75,.35), transparent 34%), linear-gradient(160deg, #3b0508, #941722);
}
.invitation-theme-modern-adat .cover,
.invitation-theme-modern-adat .red {
  background: radial-gradient(circle at top, rgba(255,255,255,.24), transparent 30%), linear-gradient(160deg, #111, #3c2c23);
}
.invitation-theme-minimal-luxury .cover,
.invitation-theme-minimal-luxury .red {
  color: var(--maroon);
  background: linear-gradient(160deg, #fff8ea, #e3c987);
}
.invitation-theme-minimal-luxury .cover h1,
.invitation-theme-minimal-luxury .cover h2,
.invitation-theme-minimal-luxury .red h2,
.invitation-theme-minimal-luxury .red h3 { color: var(--maroon); }
.invitation-theme-rustic-horas .cover,
.invitation-theme-rustic-horas .red {
  background: linear-gradient(160deg, #4d301f, #9e7041);
}
.invitation-theme-toba-classic .cover,
.invitation-theme-toba-classic .red {
  background: repeating-linear-gradient(135deg, #7a111a 0 20px, #161111 20px 38px, #8e6b36 38px 45px);
}
.cover h1, .cover h2 { color: #fff; }
.cover h2 {
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
}
.ulos-border {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 2px solid rgba(216,168,75,.8);
  border-radius: 28px;
}
.cream {
  background:
    radial-gradient(circle at top, rgba(216,168,75,.16), transparent 38%),
    var(--cream);
}
.red {
  color: #fff;
  background:
    radial-gradient(circle at 15% 10%, rgba(216,168,75,.3), transparent 34%),
    linear-gradient(160deg, #7a111a, #24090b);
}
.red h2, .red h3, .red .eyebrow { color: #fff; }
.quote {
  font-family: Georgia, serif;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
}
.couple-card, .event-card, .bank-card {
  width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 44px rgba(36,9,11,.12);
}
.red .event-card {
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.09);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}
.gallery img, .photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, #f4ddab, #fff);
}
.photo-placeholder {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--muted);
  min-height: 260px;
}
.bank-card strong {
  display: block;
  margin: 8px 0;
  color: var(--maroon);
  font-size: 1.35rem;
}
.wish-form input, .wish-form textarea, .wish-form select {
  color: var(--ink);
}
.bottom-nav {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(400px, calc(100% - 26px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(36,9,11,.82);
  backdrop-filter: blur(16px);
}
.bottom-nav a {
  padding: 9px 4px;
  border-radius: 999px;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

@media (max-width: 760px) {
  nav { align-items: flex-start; }
  nav div { display: grid; gap: 8px; text-align: right; }
  .hero-inner { padding-top: 72px; }
  .features, .form-grid, .two-cols, .theme-grid, .link-cards { grid-template-columns: 1fr; }
  .theme-card { grid-template-columns: 1fr; }
  .features { margin-top: -30px; }
  .admin-top { align-items: flex-start; flex-direction: column; }
}

/* Batak Elegance invitation — app-like, responsive slide experience */
.invitation-body {
  min-height: 100dvh;
  overflow: hidden;
  color: #fff8e9;
  background: #65000c;
}
.invitation-shell {
  --inv-red: #79000d;
  --inv-deep: #310006;
  --inv-gold: #c8a064;
  --inv-cream: #f6dfb4;
  position: relative;
  width: min(430px, 100%);
  height: 100dvh;
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--inv-cream);
  background: var(--inv-red);
  box-shadow: 0 0 90px rgba(0,0,0,.48);
  isolation: isolate;
}
.invitation-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #65000c;
}
.invitation-cover,
.inv-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(220,42,43,.2), transparent 42%),
    linear-gradient(rgba(72,0,8,.2), rgba(72,0,8,.55)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 5px),
    var(--inv-red);
}
.invitation-cover::before,
.inv-slide::before {
  content: "";
  position: absolute;
  inset: 48px 0 58px;
  opacity: .12;
  pointer-events: none;
  background:
    linear-gradient(45deg, transparent 45%, var(--inv-gold) 46% 54%, transparent 55%) 0 0/28px 28px,
    linear-gradient(-45deg, transparent 45%, var(--inv-gold) 46% 54%, transparent 55%) 0 0/28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}
.invitation-cover {
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 78px 30px 82px;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .65s ease, transform .65s ease, visibility .65s;
  background:
    linear-gradient(to bottom, rgba(55,0,7,.5), rgba(65,0,8,.3) 45%, rgba(55,0,7,.85)),
    var(--cover-image) center/cover no-repeat;
}
.invitation-cover.is-visible { visibility: visible; opacity: 1; transform: none; }
.invitation-cover::after {
  content: "";
  position: absolute;
  inset: 56px 24px 72px;
  border: 1px solid rgba(231,196,133,.5);
  border-radius: 190px 190px 18px 18px;
  box-shadow: inset 0 0 0 6px rgba(75,0,9,.15);
}
.cover-content { position: relative; z-index: 2; width: 100%; text-shadow: 0 2px 18px rgba(0,0,0,.75); }
.inv-kicker {
  margin: 0 0 12px;
  color: var(--inv-cream);
  font: 500 .72rem/1.4 Cinzel, serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cover-content h1 {
  margin: 0;
  color: #f8dfaf;
  font: 400 clamp(2.8rem, 12vw, 4.35rem)/.82 "Great Vibes", cursive;
}
.cover-content h1 span { display: block; margin: 9px 0 4px; font-size: .7em; }
.guest-card {
  width: min(290px, 92%);
  margin: 34px auto 18px;
  padding: 13px 16px;
  border: 1px solid rgba(242,220,175,.42);
  border-radius: 10px;
  background: rgba(54,0,6,.5);
  backdrop-filter: blur(8px);
}
.guest-card small { display: block; color: rgba(255,245,226,.85); font-size: .7rem; }
.guest-card strong { display: block; margin-top: 5px; color: #fff; font-family: Cinzel, serif; font-size: 1.08rem; }
.inv-button,
.inv-pill,
.copy-bank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,241,210,.34);
  border-radius: 999px;
  padding: 11px 19px;
  color: #fffaf0;
  background: linear-gradient(135deg, #c59a58, #967039);
  box-shadow: 0 8px 24px rgba(30,0,4,.24);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.inv-button:focus-visible,
.gallery-photo:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.inv-bottom-nav button:focus-visible { outline: none; }
.ulos-ornament {
  position: absolute;
  z-index: 4;
  left: 0;
  width: 100%;
  height: 63px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}
.ulos-ornament.top { top: 0; background-image: url("../images/ulos-frame-top.png"); }
.ulos-ornament.bottom { bottom: 0; height: 65px; background-image: url("../images/ulos-frame-bottom.png"); }
.invitation-cover .ulos-ornament.bottom { bottom: 0; }
.invitation-stage { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .45s ease; }
.invitation-stage.is-open { visibility: visible; opacity: 1; }
.inv-slides { position: absolute; inset: 0 0 76px; }
.inv-slide {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 76px 26px 84px;
  visibility: hidden;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .42s ease, transform .42s ease, visibility .42s;
}
.inv-slide.is-active { visibility: visible; opacity: 1; transform: none; }
.slide-copy { position: relative; z-index: 2; width: 100%; text-align: center; }
.slide-copy h2 {
  margin: 0 0 10px;
  color: var(--inv-gold);
  font: 400 clamp(2.2rem, 9vw, 3.35rem)/1 "Great Vibes", cursive;
}
.slide-copy h2 i { font-weight: 400; }
.slide-copy strong { font-family: Cinzel, serif; font-size: .88rem; }
.slide-copy p { margin: 10px auto; max-width: 330px; color: #f9ead0; font: 500 .78rem/1.65 Cinzel, serif; }
.slide-copy.compact h2 { font-size: clamp(2rem, 8vw, 3rem); }
.inv-quote { font-family: Georgia, serif !important; font-style: italic !important; }
.greeting-copy { max-width: 340px; }
.greeting-copy h2 { margin-bottom: 24px; }
.greeting-copy p { font-size: .84rem; line-height: 1.85; }
.mini-names { margin-top: 28px; color: var(--inv-gold); font: 400 2.1rem "Great Vibes", cursive; }
.mini-names i { padding: 0 6px; font-weight: 400; }
.quote-frame {
  position: relative;
  z-index: 2;
  width: min(255px, 68vw);
  aspect-ratio: 1;
  padding: 7px;
  border: 2px solid var(--inv-gold);
  background: #f1d19a;
  box-shadow: 0 16px 45px rgba(31,0,4,.35);
}
.quote-frame img { width: 100%; height: 100%; object-fit: cover; }
.quote-copy small { display: block; margin-top: 9px; color: var(--inv-gold); font: italic .72rem Georgia, serif; }
.photo-arch {
  position: relative;
  z-index: 2;
  width: min(265px, 78vw);
  height: min(300px, 39dvh);
  overflow: hidden;
  padding: 7px;
  border: 2px solid var(--inv-gold);
  border-radius: 150px 150px 4px 4px;
  background: #f1d19a;
  box-shadow: 0 16px 45px rgba(31,0,4,.35);
}
.photo-arch img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.portrait-medallion {
  position: relative;
  z-index: 2;
  width: min(250px, 68vw);
  aspect-ratio: 1;
  padding: 8px;
  border: 2px solid var(--inv-gold);
  border-radius: 50%;
  background: #f0d29e;
  box-shadow: 0 18px 50px rgba(31,0,4,.35);
}
.portrait-medallion img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.event-copy { display: grid; gap: 14px; }
.event-copy article h2 { font-size: 2rem; margin-bottom: 5px; }
.event-copy article p { margin: 5px auto 8px; line-height: 1.45; }
.inv-pill { padding: 7px 13px; font-size: .66rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 3px; }
.countdown span {
  display: grid;
  gap: 1px;
  padding: 9px 3px;
  border-radius: 7px;
  color: #fff8e9;
  background: linear-gradient(145deg, #d0ad72, #9c753f);
  font: 600 .61rem Cinzel, serif;
}
.countdown b { font-size: 1.15rem; }
.map-copy h2 { margin-bottom: 17px; }
.map-card { width: 100%; height: min(42dvh, 310px); overflow: hidden; border: 6px solid #f2d7a7; border-radius: 20px; box-shadow: 0 18px 45px rgba(35,0,4,.34); background: #ead6b2; }
.map-card iframe { width: 100%; height: 100%; border: 0; }
.map-coordinate { margin: 10px auto !important; color: var(--inv-gold) !important; font: 600 .62rem Inter, sans-serif !important; letter-spacing: .02em; }
.gallery-copy { overflow: hidden; }
.gallery-copy h2 { margin-bottom: 12px; }
.gallery-carousel { position: relative; width: 100%; }
.inv-gallery-track {
  width: 100%;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 3px 9% 8px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.inv-gallery-track::-webkit-scrollbar { display: none; }
.gallery-photo {
  position: relative;
  flex: 0 0 82%;
  aspect-ratio: 4/5;
  overflow: hidden;
  scroll-snap-align: center;
  border: 4px solid #f0d29e;
  border-radius: 19px;
  padding: 0;
  background: #3b0006;
  box-shadow: 0 14px 35px rgba(39,0,5,.32);
  cursor: zoom-in;
}
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-photo:hover img { transform: scale(1.035); }
.gallery-photo span { position: absolute; right: 10px; bottom: 9px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #fff; background: rgba(54,0,6,.72); font: 700 .68rem Cinzel, serif; backdrop-filter: blur(5px); }
.gallery-arrow { position: absolute; z-index: 3; top: 50%; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #fff; background: rgba(178,137,73,.9); font: 400 1.6rem/1 Georgia, serif; transform: translateY(-50%); cursor: pointer; }
.gallery-prev { left: 1px; }
.gallery-next { right: 1px; }
.gallery-dots { display: flex; justify-content: center; gap: 5px; margin-top: 7px; }
.gallery-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,238,205,.34); transition: .25s; }
.gallery-dots i.is-active { width: 17px; border-radius: 999px; background: var(--inv-gold); }
.love-story-slide { background: linear-gradient(rgba(91,0,11,.69), rgba(91,0,11,.84)), var(--cover-image) center/cover no-repeat; }
.love-story-copy h2 { margin-bottom: 8px; }
.story-intro { max-width: 320px !important; margin-bottom: 14px !important; color: #fff2dc !important; font: italic .72rem/1.55 Georgia, serif !important; }
.story-timeline { width: 100%; max-height: min(49dvh, 360px); overflow-y: auto; display: grid; gap: 9px; padding: 2px 3px 12px; scrollbar-width: thin; scrollbar-color: var(--inv-gold) transparent; }
.story-timeline article { display: grid; grid-template-columns: 78px 1fr; gap: 11px; align-items: center; padding: 8px; border: 1px solid rgba(126,72,42,.14); border-radius: 16px; color: #4b2625; text-align: left; background: rgba(255,244,226,.92); box-shadow: 0 10px 25px rgba(35,0,5,.16); backdrop-filter: blur(9px); }
.story-timeline img { width: 78px; height: 88px; border-radius: 11px; object-fit: cover; }
.story-timeline small { color: #a3764d; font-size: .56rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.story-timeline h3 { margin: 2px 0; color: #7b2730; font: 400 1.18rem "Great Vibes", cursive; }
.story-timeline p { margin: 0; color: #604342; font: 500 .6rem/1.45 Inter, sans-serif; }
.gift-copy > p { max-width: 310px; }
.inv-bank {
  display: grid;
  gap: 5px;
  width: min(310px, 100%);
  margin: 18px auto;
  padding: 18px;
  border: 1px solid rgba(255,240,211,.28);
  border-radius: 14px;
  background: rgba(46,0,5,.35);
}
.inv-bank span { color: var(--inv-gold); font-weight: 900; }
.inv-bank strong { color: #fff; font-size: 1.2rem; letter-spacing: .06em; }
.copy-bank { justify-self: center; margin-top: 7px; padding: 8px 14px; font-size: .68rem; }
.gift-copy details { width: min(310px, 100%); margin: 0 auto; }
.gift-copy summary { cursor: pointer; color: #fff; font-weight: 800; }
.wish-copy h2 { margin-bottom: 18px; }
.wish-form { gap: 9px; }
.wish-form input,
.wish-form textarea,
.wish-form select { border-color: rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,248,232,.95); font-size: .78rem; }
.wish-form textarea { min-height: 90px; }
.wish-form .inv-button { justify-self: center; }
.inv-bottom-nav {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 5px 3px 6px;
  color: #fff;
  background: #2b0005;
  scrollbar-width: none;
}
.inv-bottom-nav::-webkit-scrollbar { display: none; }
.inv-bottom-nav button {
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 0;
  border-radius: 17px;
  color: rgba(255,249,236,.84);
  background: transparent;
  font-size: .69rem;
  font-weight: 600;
  cursor: pointer;
  transition: .25s ease;
}
.inv-bottom-nav button.is-active { color: #fff; background: #c5a25d; }
.inv-floating-tools {
  position: absolute;
  z-index: 12;
  right: 9px;
  bottom: 103px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-bubble {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #fff7e6;
  background: rgba(198,157,87,.86);
  box-shadow: 0 5px 16px rgba(36,0,4,.22);
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.tool-bubble:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tool-bubble:hover { background: rgba(211,174,108,.96); }
.bubble-icon { position: relative; display: block; width: 24px; height: 24px; }
.icon-guest-qr {
  background:
    linear-gradient(#fff7e6 0 0) 1px 1px/8px 8px no-repeat,
    linear-gradient(#fff7e6 0 0) 13px 1px/8px 8px no-repeat,
    linear-gradient(#fff7e6 0 0) 1px 13px/8px 8px no-repeat,
    linear-gradient(#fff7e6 0 0) 13px 13px/4px 4px no-repeat;
  border-radius: 3px;
}
.icon-guest-qr::after { content: "♪"; position: absolute; right: -5px; bottom: -5px; color: #fff7e6; font: 800 13px Georgia, serif; }
.icon-speaker {
  width: 25px;
  background: #fff7e6;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9v6h4l6 5V4L7 9H3Zm13.4-1.7a1 1 0 0 0-1.4 1.4 4.7 4.7 0 0 1 0 6.6 1 1 0 1 0 1.4 1.4 6.7 6.7 0 0 0 0-9.4Zm2.8-2.8a1 1 0 1 0-1.4 1.4 8.7 8.7 0 0 1 0 12.2 1 1 0 0 0 1.4 1.4 10.7 10.7 0 0 0 0-15Z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9v6h4l6 5V4L7 9H3Zm13.4-1.7a1 1 0 0 0-1.4 1.4 4.7 4.7 0 0 1 0 6.6 1 1 0 1 0 1.4 1.4 6.7 6.7 0 0 0 0-9.4Zm2.8-2.8a1 1 0 1 0-1.4 1.4 8.7 8.7 0 0 1 0 12.2 1 1 0 0 0 1.4 1.4 10.7 10.7 0 0 0 0-15Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.music-toggle:not(.is-playing)::after { content: ""; position: absolute; width: 25px; height: 2px; border-radius: 2px; background: #fff7e6; transform: rotate(-45deg); }
.sound-wave { position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; opacity: 0; }
.music-toggle.is-playing .sound-wave { animation: soundPulse 1.5s ease-out infinite; }
.icon-pause::before,
.icon-pause::after { content: ""; position: absolute; top: 4px; width: 5px; height: 16px; border-radius: 2px; background: #fff7e6; }
.icon-pause::before { left: 6px; }
.icon-pause::after { right: 6px; }
.autoplay-toggle:not(.is-playing) .icon-pause::before { left: 5px; top: 3px; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 15px solid #fff7e6; border-radius: 0; background: transparent; }
.autoplay-toggle:not(.is-playing) .icon-pause::after { display: none; }
.guest-link-tool.is-copied::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #7d5b2d; font-size: 1.2rem; }
@keyframes soundPulse { from { transform: scale(.7); opacity: .65; } to { transform: scale(1.25); opacity: 0; } }
.nav-icon {
  display: block;
  width: 25px;
  height: 25px;
  flex: none;
  color: currentColor;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}
.icon-home { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.8 10.6 12 2.8l9.2 7.8v9.1a1.8 1.8 0 0 1-1.8 1.8h-4.6v-6.6H9.2v6.6H4.6a1.8 1.8 0 0 1-1.8-1.8z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.8 10.6 12 2.8l9.2 7.8v9.1a1.8 1.8 0 0 1-1.8 1.8h-4.6v-6.6H9.2v6.6H4.6a1.8 1.8 0 0 1-1.8-1.8z'/%3E%3C/svg%3E"); }
.icon-salam { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4Zm2 5a1 1 0 0 0 0 2h5a1 1 0 1 0 0-2H8Zm0 4a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Zm0 4a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H8Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4Zm2 5a1 1 0 0 0 0 2h5a1 1 0 1 0 0-2H8Zm0 4a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Zm0 4a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H8Z'/%3E%3C/svg%3E"); }
.icon-quotes { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 2h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3Zm3 5a1 1 0 0 0 0 2h5a1 1 0 1 0 0-2H8Zm0 4a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Zm0 4a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H8Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 2h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3Zm3 5a1 1 0 0 0 0 2h5a1 1 0 1 0 0-2H8Zm0 4a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Zm0 4a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H8Z'/%3E%3C/svg%3E"); opacity:.55; }
.icon-heart { width: 27px; height: 27px; background: none; -webkit-mask-image: none; mask-image: none; font-size: 28px; line-height: 1; }
.icon-heart-left { color: transparent; background: linear-gradient(90deg, currentColor 0 50%, rgba(255,247,230,.32) 50%); -webkit-background-clip: text; background-clip: text; }
.icon-heart-left, .icon-heart-right { color: transparent; background-image: linear-gradient(90deg, #fff8e8 0 52%, rgba(255,248,232,.3) 52%); -webkit-background-clip: text; background-clip: text; }
.icon-calendar { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h2v3h6V2h2v3h2a3 3 0 0 1 3 3v11a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h2V2Zm-3 8v9a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-9H4Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h2v3h6V2h2v3h2a3 3 0 0 1 3 3v11a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h2V2Zm-3 8v9a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-9H4Z'/%3E%3C/svg%3E"); }
.icon-map { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a8 8 0 0 0-8 8c0 5.8 6.7 11.3 7 11.5a1.6 1.6 0 0 0 2 0c.3-.2 7-5.7 7-11.5a8 8 0 0 0-8-8Zm0 11.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a8 8 0 0 0-8 8c0 5.8 6.7 11.3 7 11.5a1.6 1.6 0 0 0 2 0c.3-.2 7-5.7 7-11.5a8 8 0 0 0-8-8Zm0 11.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Z'/%3E%3C/svg%3E"); }
.icon-gallery { border-radius: 5px; mask-image: none; -webkit-mask-image: none; background: linear-gradient(145deg,currentColor 0 48%,transparent 49%) border-box; border: 3px solid currentColor; }
.icon-story { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21s-9-5.3-9-12a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 6.7-9 12-9 12Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21s-9-5.3-9-12a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 6.7-9 12-9 12Z'/%3E%3C/svg%3E"); }
.icon-gift { border: 3px solid currentColor; border-radius: 3px; mask-image: none; -webkit-mask-image: none; background: linear-gradient(90deg,transparent 42%,currentColor 42% 58%,transparent 58%); }
.icon-chat { border-radius: 50%; mask-image: none; -webkit-mask-image: none; background: radial-gradient(circle at 7px 12px,currentColor 0 1.5px,transparent 2px),radial-gradient(circle at 12px 12px,currentColor 0 1.5px,transparent 2px),radial-gradient(circle at 17px 12px,currentColor 0 1.5px,transparent 2px),rgba(255,248,232,.28); }
.inv-lightbox { width: min(760px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 48px 46px 28px; border: 0; color: #fff; background: rgba(18,0,2,.96); }
.inv-lightbox::backdrop { background: rgba(15,0,2,.9); backdrop-filter: blur(5px); }
.inv-lightbox figure { width: 100%; height: 100%; margin: 0; display: grid; place-items: center; align-content: center; gap: 12px; }
.inv-lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 105px); margin: auto; border-radius: 8px; object-fit: contain; }
.inv-lightbox figcaption { color: rgba(255,255,255,.65); font: 600 .72rem Cinzel, serif; }
.inv-lightbox button { position: fixed; z-index: 3; border: 0; color: #fff; background: rgba(99,53,28,.62); cursor: pointer; }
.inv-lightbox .lightbox-close { top: 12px; right: 14px; width: 40px; height: 40px; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.inv-lightbox .lightbox-nav { top: 50%; width: 40px; height: 55px; border-radius: 999px; font: 400 2rem/1 Georgia, serif; transform: translateY(-50%); }
.inv-lightbox .lightbox-prev { left: 5px; }
.inv-lightbox .lightbox-next { right: 5px; }

.invitation-theme-modern-adat .invitation-shell { --inv-red:#20201f; --inv-deep:#0b0b0b; --inv-gold:#c7a46b; }
.invitation-theme-minimal-luxury .invitation-shell { --inv-red:#836634; --inv-deep:#3e2c14; --inv-gold:#f2d49b; }
.invitation-theme-rustic-horas .invitation-shell { --inv-red:#69442c; --inv-deep:#2e1b12; --inv-gold:#d4b47c; }

@media (min-width: 700px) {
  .invitation-shell { border-left: 1px solid rgba(255,255,255,.14); border-right: 1px solid rgba(255,255,255,.14); }
}
@media (max-height: 650px) {
  .photo-arch { height: 235px; }
  .portrait-medallion { width: 190px; }
  .slide-copy p { margin: 6px auto; }
  .event-copy { gap: 7px; }
  .event-copy article h2 { font-size: 1.65rem; }
  .event-copy article p { font-size: .67rem; }
}
@media (prefers-reduced-motion: reduce) {
  .invitation-cover, .invitation-stage, .inv-slide, .gallery-photo img { transition: none; }
}
