/* ============================================================
   Togar & Meilani — Adat Batak demo (Maple Undangan Digital)
   Tema: merah ulos / hitam / emas gorga — MEGAH & POWERFUL
   ============================================================ */
:root {
  --red-deep: #6e0a0a;
  --red: #a31621;
  --red-bright: #d42a2a;
  --black: #0c0c0e;
  --char: #141416;
  --gold: #d4af37;
  --gold-soft: #e8c96a;
  --gold-dim: rgba(212, 175, 55, .35);
  --cream: #f5ead2;
  --white: #fff;
  --muted: #b9a88f;
  --card: rgba(20, 12, 12, .92);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--black);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ---------- GORGA BAND (pita motif geometris khas Batak) ---------- */
.gorga-band {
  position: absolute; left: 0; right: 0; height: 46px; z-index: 3;
  background:
    linear-gradient(135deg, var(--gold) 25%, transparent 25%) -23px 0 / 46px 46px,
    linear-gradient(225deg, var(--gold) 25%, transparent 25%) -23px 0 / 46px 46px,
    linear-gradient(45deg, var(--gold) 25%, transparent 25%) 0 0 / 46px 46px,
    linear-gradient(315deg, var(--gold) 25%, #3d0b0b 25%) 0 0 / 46px 46px;
  opacity: .95;
  box-shadow: 0 4px 18px rgba(0,0,0,.6);
}
.gorga-top { top: 0; }
.gorga-bottom { bottom: 0; transform: scaleY(-1); }

/* ---------- PHOTO SECTIONS ---------- */
.photo-sec { position: relative; overflow: hidden; }
.sec-bg {
  position: absolute; inset: -60px 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: brightness(.42) saturate(1.1);
  will-change: transform;
}
.photo-sec::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(12,12,14,.72), rgba(12,12,14,.25) 30%, rgba(12,12,14,.25) 70%, rgba(12,12,14,.8));
  pointer-events: none;
}
.photo-sec > *:not(.sec-bg) { position: relative; z-index: 2; }

/* ---------- COVER ---------- */
#cover {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.2rem;
  transition: opacity .8s ease, visibility .8s;
}
#cover.open { opacity: 0; visibility: hidden; pointer-events: none; }
.cover-inner { max-width: 560px; animation: coverRise 1s cubic-bezier(.2,.7,.3,1) both; }
@keyframes coverRise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
.cover-eyebrow {
  font-size: .8rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1rem;
}
.cover-horas {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.4rem, 15vw, 6rem); font-weight: 800;
  color: var(--white); line-height: 1;
  text-shadow: 0 0 40px rgba(212,42,42,.55), 0 4px 18px rgba(0,0,0,.8);
  margin-bottom: .4rem;
}
.cover-sub { color: var(--muted); font-style: italic; margin-bottom: 1.4rem; }
.cover-names {
  display: flex; flex-direction: column; gap: .2rem; align-items: center;
  font-family: Georgia, serif; font-size: clamp(1.6rem, 7vw, 2.6rem);
  color: var(--gold); margin-bottom: 1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
}
.cover-names .amp { font-size: 1.6rem; color: var(--red-bright); }
.cover-date { letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; color: var(--cream); margin-bottom: 1.2rem; }
.cover-guest { margin: 0 auto 1.2rem; padding: .8rem 1.2rem; border: 1px solid var(--gold-dim); border-radius: 12px; background: rgba(0,0,0,.45); }
.cover-guest strong { color: var(--gold-soft); font-size: 1.1rem; }
#open-invitation {
  position: relative; z-index: 5; margin-top: .6rem;
  font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: .06em;
  color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep));
  border: 1px solid var(--gold); border-radius: 999px;
  padding: .95rem 2.6rem; cursor: pointer;
  box-shadow: 0 8px 30px rgba(163,22,33,.55);
  animation: coverRise .9s cubic-bezier(.2,.7,.3,1) 1.05s both, btnGlow 2.4s ease-in-out 2.2s infinite;
}
#open-invitation:hover { transform: translateY(-2px) scale(1.04); }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 8px 30px rgba(163,22,33,.55); }
  50% { box-shadow: 0 8px 44px rgba(212,42,42,.85), 0 0 22px rgba(212,175,55,.45); }
}

/* ---------- MAIN ---------- */
#main { position: relative; }
body:not(.opened) #main { visibility: hidden; }

/* ---------- SECTION BASICS ---------- */
section { padding: 4.2rem 1.4rem; position: relative; }
.section-eyebrow {
  text-align: center; font-size: .75rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .6rem;
}
.section-title {
  text-align: center; font-family: Georgia, serif;
  font-size: clamp(1.9rem, 8vw, 2.9rem); color: var(--white);
  margin-bottom: .4rem; text-shadow: 0 2px 16px rgba(0,0,0,.7);
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.2rem; font-style: italic; }

/* ---------- HERO ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-body { max-width: 640px; padding: 3rem 0; }
.hero-verse {
  font-family: Georgia, serif; font-style: italic; font-size: 1.05rem;
  color: var(--gold-soft); margin-bottom: 1.6rem; line-height: 1.8;
}
.hero-horas {
  font-family: Georgia, serif; font-size: clamp(2.6rem, 12vw, 4.6rem);
  color: var(--white); text-shadow: 0 0 34px rgba(212,42,42,.6);
  margin-bottom: .8rem;
}
.hero-lead { color: var(--cream); margin-bottom: 2rem; }
.couple-frame {
  border: 1px solid var(--gold-dim); border-radius: 18px;
  background: rgba(10, 6, 6, .55); backdrop-filter: blur(4px);
  padding: 1.8rem 1.2rem; margin-bottom: 2rem;
  position: relative; overflow: hidden;
}
.couple-frame::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(212,175,55,.05) 14px 16px);
  pointer-events: none;
}
.couple-names { display: flex; flex-direction: column; gap: .8rem; align-items: center; }
.person h3 { font-family: Georgia, serif; font-size: 1.7rem; color: var(--gold); margin-bottom: .3rem; }
.person p { color: var(--muted); font-size: .92rem; }
.couple-amp { font-family: Georgia, serif; font-size: 2.4rem; color: var(--red-bright); text-shadow: 0 0 18px rgba(212,42,42,.7); }
.hero-date { font-size: 1.05rem; color: var(--cream); }
.hero-date strong { color: var(--gold-soft); letter-spacing: .1em; }

/* ---------- PROFILE ---------- */
.profile-sec { background: radial-gradient(ellipse at 50% 0%, #230d0d 0%, var(--black) 65%); }
.profile-cards { display: flex; flex-direction: column; gap: 1.4rem; max-width: 560px; margin: 0 auto; align-items: center; }
.profile-card {
  width: 100%; text-align: center; background: var(--card);
  border: 1px solid rgba(212,175,55,.28); border-radius: 20px;
  padding: 2rem 1.4rem; position: relative; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
}
.profile-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright), var(--gold), var(--red-bright), var(--red-deep));
}
.profile-photo {
  width: 168px; height: 168px; margin: 0 auto 1.2rem;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(212,175,55,.15), 0 0 34px rgba(212,42,42,.4);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h3 { font-family: Georgia, serif; font-size: 1.6rem; color: var(--white); margin-bottom: .2rem; }
.profile-role { color: var(--red-bright); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .75rem; margin-bottom: .9rem; }
.profile-parents { color: var(--cream); font-size: .95rem; margin-bottom: 1rem; }
.profile-parents strong { color: var(--gold-soft); }
.profile-ig {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--white); text-decoration: none; font-size: .9rem;
  border: 1px solid rgba(212,175,55,.5); border-radius: 999px;
  padding: .45rem 1.1rem; margin-bottom: 1rem;
  background: rgba(212,175,55,.08); transition: background .25s, transform .25s;
}
.profile-ig:hover { background: rgba(212,175,55,.2); transform: translateY(-2px); }
.ig-icon { width: 16px; height: 16px; }
.profile-address { color: var(--muted); font-size: .88rem; font-style: italic; }
.profile-amp { font-family: Georgia, serif; font-size: 3rem; color: var(--red-bright); text-shadow: 0 0 24px rgba(212,42,42,.8); line-height: 1; }

/* ---------- LOVE STORY ---------- */
.lovestory-sec { background: linear-gradient(to bottom, var(--black), #1c0b0b 50%, var(--black)); }
.lovestory-timeline { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.4rem; position: relative; }
.lovestory-timeline::before {
  content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--red), var(--gold));
  opacity: .5;
}
.love-item { display: flex; gap: 1.2rem; align-items: flex-start; position: relative; }
.love-item::before {
  content: ""; flex: none; width: 40px; height: 40px; margin-top: 4px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--red-bright), var(--red-deep));
  border: 2px solid var(--gold); box-shadow: 0 0 16px rgba(212,42,42,.6);
  z-index: 1;
}
.love-photo { flex: none; width: 118px; height: 118px; border-radius: 14px; overflow: hidden; border: 2px solid rgba(212,175,55,.4); box-shadow: 0 10px 26px rgba(0,0,0,.55); }
.love-photo img { width: 100%; height: 100%; object-fit: cover; }
.love-body { min-width: 0; }
.love-year { color: var(--gold); font-weight: 800; letter-spacing: .28em; font-size: .78rem; margin-bottom: .2rem; }
.love-body h3 { font-family: Georgia, serif; color: var(--white); font-size: 1.25rem; margin-bottom: .4rem; }
.love-body p { color: var(--muted); font-size: .93rem; }

/* ---------- SAVE THE DATE ---------- */
.savethedate-sec { text-align: center; padding: 6rem 1.4rem; }
.std-day { font-size: 1.3rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-soft); }
.std-date {
  font-family: Georgia, serif; font-size: clamp(5rem, 26vw, 9rem); font-weight: 800;
  color: var(--white); line-height: 1.05;
  text-shadow: 0 0 50px rgba(212,42,42,.65);
}
.std-month { font-size: 1.6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.std-note { color: var(--muted); font-style: italic; }

/* ---------- WAKTU (events) ---------- */
.event-cards { display: flex; flex-direction: column; gap: 1.2rem; max-width: 560px; margin: 0 auto; }
.event-card {
  background: rgba(12, 7, 7, .78); border: 1px solid rgba(212,175,55,.3);
  border-radius: 18px; padding: 1.8rem 1.4rem; text-align: center;
  backdrop-filter: blur(4px); box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.event-label {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
  color: #0c0c0e; background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  padding: .4rem 1.2rem; border-radius: 999px; margin-bottom: 1rem;
}
.event-card h3 { font-family: Georgia, serif; font-size: 1.5rem; color: var(--white); }
.event-date { color: var(--gold-soft); font-size: 1.1rem; font-weight: 700; }
.event-time { color: var(--cream); margin: .3rem 0; }
.event-place { color: var(--muted); margin-bottom: 1.2rem; }
.btn-ghost {
  display: inline-block; text-decoration: none; color: var(--gold-soft);
  border: 1px solid var(--gold-dim); border-radius: 999px; padding: .6rem 1.6rem;
  font-size: .9rem; transition: background .25s;
}
.btn-ghost:hover { background: rgba(212,175,55,.15); }

/* ---------- RANGKAIAN ACARA ---------- */
.acara { background: radial-gradient(ellipse at 50% 100%, #230d0d 0%, var(--black) 70%); }
.ritual-cards { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; margin: 0 auto; }
.ritual {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: rgba(20, 12, 12, .7); border-left: 3px solid var(--red-bright);
  border-radius: 0 14px 14px 0; padding: 1.1rem 1.2rem;
}
.ritual-time {
  flex: none; font-weight: 800; color: var(--gold);
  background: rgba(212,175,55,.1); border: 1px solid var(--gold-dim);
  border-radius: 10px; padding: .4rem .7rem; font-size: .9rem;
}
.ritual h3 { font-family: Georgia, serif; color: var(--white); font-size: 1.1rem; margin-bottom: .2rem; }
.ritual p { color: var(--muted); font-size: .9rem; }

/* ---------- RSVP ---------- */
.rsvp-sec { background: linear-gradient(to bottom, var(--black), #200c0c); }
#rsvp-form { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
#rsvp-form input[type="text"], #rsvp-form select {
  width: 100%; padding: .9rem 1.1rem; border-radius: 12px;
  border: 1px solid rgba(212,175,55,.35); background: rgba(255,255,255,.05);
  color: var(--white); font-size: 1rem; font-family: inherit;
}
#rsvp-form input::placeholder { color: #8a7a63; }
#rsvp-form select option { color: #111; }
.rsvp-attendance { display: flex; gap: .8rem; }
.rsvp-option { flex: 1; cursor: pointer; }
.rsvp-option input { display: none; }
.rsvp-option span {
  display: block; text-align: center; padding: .85rem; border-radius: 12px;
  border: 1px solid rgba(212,175,55,.35); color: var(--muted); transition: all .25s;
}
.rsvp-option input:checked + span {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(163,22,33,.5);
}
.rsvp-guests-label { color: var(--muted); font-size: .9rem; }
.btn-gold {
  font-family: inherit; font-size: 1rem; font-weight: 800; letter-spacing: .04em;
  color: #1a0d05; background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: none; border-radius: 12px; padding: 1rem; cursor: pointer;
  box-shadow: 0 8px 26px rgba(212,175,55,.35); transition: transform .2s;
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-gold:disabled { opacity: .6; cursor: default; transform: none; }
.rsvp-msg { text-align: center; padding: .8rem; border-radius: 10px; font-size: .92rem; }
.rsvp-msg.ok { background: rgba(46, 125, 50, .2); border: 1px solid rgba(76, 175, 80, .5); color: #b9e6bb; }
.rsvp-msg.err { background: rgba(163,22,33,.2); border: 1px solid rgba(212,42,42,.5); color: #f0b0b0; }

/* ---------- COUNTDOWN ---------- */
.countdown-sec { text-align: center; }
.medallion {
  max-width: 520px; margin: 0 auto; padding: 2rem 1rem;
  background: rgba(12, 7, 7, .72); border: 1px solid rgba(212,175,55,.35);
  border-radius: 20px; backdrop-filter: blur(4px);
}
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1.2rem; }
.cd-cell {
  background: linear-gradient(to bottom, #2a1212, #160a0a);
  border: 1px solid rgba(212,175,55,.3); border-radius: 14px; padding: 1rem .4rem;
}
.cd-cell span {
  display: block; font-family: Georgia, serif; font-size: 2rem; font-weight: 800;
  color: var(--gold-soft); font-variant-numeric: tabular-nums;
}
.cd-cell span.tick { animation: tickPop .4s ease; }
@keyframes tickPop { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
.cd-cell label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cd-date { color: var(--muted); font-size: .9rem; }

/* ---------- GALLERY ---------- */
.gallery-sec { background: var(--black); }
.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem;
  max-width: 640px; margin: 0 auto;
}
.gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px;
  border: 1px solid rgba(212,175,55,.22); cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.gallery img:hover { transform: scale(1.03); box-shadow: 0 12px 30px rgba(0,0,0,.6), 0 0 18px rgba(212,42,42,.3); }

/* ---------- GIFT ---------- */
.gift-card {
  max-width: 420px; margin: 0 auto; text-align: center;
  background: rgba(12, 7, 7, .8); border: 1px solid rgba(212,175,55,.4);
  border-radius: 20px; padding: 2rem 1.6rem; backdrop-filter: blur(4px);
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
}
.bank-logo { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto .8rem; object-fit: contain; background: #fff; }
.bank-name { color: var(--muted); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; }
.bank-number {
  font-family: Georgia, serif; font-size: 1.5rem; letter-spacing: .08em;
  color: var(--gold-soft); margin: .5rem 0;
}
.bank-owner { color: var(--cream); margin-bottom: 1.4rem; }

/* ---------- GUESTBOOK ---------- */
.guestbook-sec .section-title, .guestbook-sec .section-eyebrow, .guestbook-sec .section-sub { position: relative; z-index: 2; }
#wish-form {
  max-width: 520px; margin: 0 auto 2.4rem; display: flex; flex-direction: column; gap: .9rem;
  position: relative; z-index: 2;
}
#wish-form input, #wish-form textarea {
  width: 100%; padding: .9rem 1.1rem; border-radius: 12px;
  border: 1px solid rgba(212,175,55,.35); background: rgba(0,0,0,.5);
  color: var(--white); font-size: 1rem; font-family: inherit; resize: vertical;
}
#wish-form input::placeholder, #wish-form textarea::placeholder { color: #8a7a63; }
.voice-row { display: flex; align-items: center; gap: .8rem; }
.btn-voice {
  font-family: inherit; font-size: .9rem; font-weight: 700; color: var(--white);
  background: rgba(163,22,33,.35); border: 1px solid rgba(212,42,42,.6);
  border-radius: 999px; padding: .6rem 1.2rem; cursor: pointer; transition: background .25s;
}
.btn-voice:hover { background: rgba(163,22,33,.55); }
.btn-voice.recording { background: var(--red-bright); animation: recPulse 1.2s ease-in-out infinite; }
@keyframes recPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.voice-status { color: var(--muted); font-size: .85rem; }
.voice-preview { width: 100%; }
#wishes-list { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 2; }
.wish {
  background: rgba(12, 7, 7, .72); border: 1px solid rgba(212,175,55,.25);
  border-radius: 14px; padding: 1.1rem 1.2rem; backdrop-filter: blur(4px);
}
.wish-name { color: var(--gold-soft); }
.wish-time { color: var(--muted); font-size: .8rem; }
.wish-text { color: var(--cream); margin-top: .4rem; font-size: .95rem; }
.wish-audio { width: 100%; margin-top: .6rem; }
.wishes-empty, .wishes-error { text-align: center; color: var(--muted); font-style: italic; }

/* ---------- ORDER ---------- */
.order-sec {
  background: linear-gradient(160deg, #2b0e0e 0%, var(--black) 60%);
  text-align: center; overflow: hidden;
}
.order-inner { max-width: 520px; margin: 0 auto; position: relative; }
.order-eyebrow { color: var(--gold); letter-spacing: .35em; text-transform: uppercase; font-size: .75rem; margin-bottom: .6rem; }
.order-title { font-family: Georgia, serif; font-size: clamp(2rem, 9vw, 3rem); color: var(--white); margin-bottom: .8rem; }
.order-sub { color: var(--muted); margin-bottom: 1.6rem; }
.order-brand { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: 1.8rem; }
.order-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.order-brand-name { font-weight: 800; color: var(--gold-soft); font-size: 1.1rem; }
.btn-order {
  position: relative; display: inline-block; overflow: hidden;
  text-decoration: none; font-weight: 800; font-size: 1.05rem; color: #fff;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  border: 1px solid var(--gold); border-radius: 999px; padding: 1rem 3rem;
  box-shadow: 0 10px 34px rgba(163,22,33,.6);
  animation: orderBounce 2.2s ease-in-out infinite;
}
@keyframes orderBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.btn-order-shine {
  position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 0% { left: -80%; } 60%, 100% { left: 130%; } }
.order-note { margin-top: 1rem; color: var(--muted); font-size: .88rem; }

/* ---------- FOOTER ---------- */
footer {
  text-align: center; padding: 3rem 1.4rem 2.4rem;
  background: #08080a; border-top: 1px solid rgba(212,175,55,.2);
}
.foot-thanks { color: var(--muted); font-style: italic; margin-bottom: .3rem; }
.foot-names { font-family: Georgia, serif; font-size: 1.8rem; color: var(--gold); margin-bottom: 1.6rem; }
.brand { display: flex; align-items: center; justify-content: center; gap: .9rem; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.brand-name { font-weight: 800; color: var(--cream); text-align: left; }
.brand-tag { color: var(--muted); font-size: .82rem; text-align: left; }

/* ---------- LIGHTBOX ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
#lightbox.show { opacity: 1; visibility: visible; }
.lb-img { max-width: 92vw; max-height: 82vh; border-radius: 10px; border: 2px solid rgba(212,175,55,.4); }
.lb-img.swap { animation: lbSwap .3s ease; }
@keyframes lbSwap { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(212,175,55,.15); color: var(--gold-soft);
  border: 1px solid var(--gold-dim); border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--gold-soft); }

/* ---------- MUSIC TOGGLE ---------- */
#music-toggle {
  position: fixed; bottom: 20px; right: 20px; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border: 2px solid var(--gold); color: #fff; font-size: 1.3rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
}
#music-toggle.playing { animation: musicSpin 4s linear infinite; }
@keyframes musicSpin { to { transform: rotate(360deg); } }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn-order, #open-invitation, .btn-voice.recording { animation: none !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 640px) {
  .profile-cards { flex-direction: row; max-width: 860px; align-items: stretch; }
  .profile-card { flex: 1; }
  .profile-amp { align-self: center; }
  .event-cards { flex-direction: row; max-width: 860px; }
  .event-card { flex: 1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .couple-names { flex-direction: row; justify-content: center; gap: 2rem; }
  .love-item { align-items: center; }
  .love-photo { width: 150px; height: 150px; }
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
