:root {
    --bg: #fff6fb;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --surface-dark: #241621;
    --border: rgba(234, 98, 170, 0.18);
    --text: #3b2333;
    --muted: #7f6074;
    --rose: #ffb2d4;
    --rose-strong: #f04f9b;
    --lavender: #d6cfff;
    --gold: #ffbc5b;
    --success: #4f8b71;
    --danger: #c05d7c;
    --shadow: 0 30px 90px rgba(196, 86, 150, 0.18);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --accent-blue: #7ad8ff;
    --accent-peach: #ffc097;
    --accent-violet: #9a8cff;
    --sparkle: rgba(255, 255, 255, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #faf6fa;
    color: var(--text);
    font-family: "Manrope", sans-serif;
}
.public-body {
    --bg: #fff6fb;
    --surface: rgba(255, 255, 255, 0.64);
    --surface-dark: #261726;
    --border: rgba(240, 79, 155, 0.18);
    --text: #3c2535;
    --muted: #7c6173;
    --rose: #ffb7da;
    --rose-strong: #f04f9b;
    --lavender: #dad2ff;
    --gold: #ffbb56;
    --shadow: 0 30px 90px rgba(194, 93, 151, 0.18);
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 183, 218, 0.48), transparent 24%),
        radial-gradient(circle at 86% 10%, rgba(122, 216, 255, 0.32), transparent 20%),
        radial-gradient(circle at 72% 32%, rgba(218, 210, 255, 0.3), transparent 20%),
        linear-gradient(180deg, #fffaff 0%, #fff1f7 46%, #ffeef7 100%);
    color: var(--text);
    font-family: "Manrope", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.public-page {
    position: relative;
    overflow: clip;
}
.public-page::before,
.public-page::after {
    content: "";
    position: fixed;
    width: 34vw;
    height: 34vw;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
    opacity: 0.34;
    z-index: -5;
}
.public-page::before {
    top: 10vh;
    left: -10vw;
    background: radial-gradient(circle, rgba(255, 170, 214, 0.84), rgba(255, 190, 220, 0));
    animation: floatBlob 18s ease-in-out infinite;
}
.public-page::after {
    right: -10vw;
    bottom: 12vh;
    background: radial-gradient(circle, rgba(122, 216, 255, 0.62), rgba(143, 216, 255, 0));
    animation: floatBlob 22s ease-in-out infinite reverse;
}

.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rose-strong);
    margin-bottom: 12px;
}
h1, h2, h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    line-height: 0.95;
}
h1 { font-size: clamp(3.2rem, 10vw, 6.4rem); }
h2 { font-size: clamp(2.6rem, 7vw, 4.2rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; line-height: 1.7; color: var(--muted); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7fb7, var(--rose-strong) 48%, #8f8dff);
    color: #fff;
    cursor: pointer;
    transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
    box-shadow: 0 18px 34px rgba(214, 103, 168, 0.24);
    background-size: 180% 180%;
    animation: gradientShift 9s ease infinite;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.button i,
.text-link i,
.map-meta strong i,
.gift-alias strong i,
.timeline-card span i {
    font-size: .92em;
}
.button-secondary {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    box-shadow: none;
    border: 1px solid var(--border);
}
.button-full { width: 100%; }
.text-link { color: var(--rose-strong); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; }
.text-danger { color: var(--danger); }

.card, .info-card, .story-card, .gift-card, .music-card, .table-card, .metric-card, .login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.details-section,
.map-section,
.story-section,
.rsvp-section,
.gift-section {
    position: relative;
    isolation: isolate;
}
.details-section::before,
.map-section::before,
.story-section::before,
.rsvp-section::before,
.gift-section::before {
    content: "";
    position: absolute;
    inset: 8px 0 auto;
    height: 220px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.74) 0 2px, transparent 3px),
        radial-gradient(circle at 36% 64%, rgba(255,255,255,.48) 0 1.5px, transparent 3px),
        radial-gradient(circle at 78% 32%, rgba(255,255,255,.65) 0 2px, transparent 3px),
        radial-gradient(circle at 92% 68%, rgba(255,255,255,.36) 0 1.5px, transparent 3px),
        linear-gradient(90deg, rgba(255,183,218,.14), rgba(122,216,255,.08), rgba(154,140,255,.08));
    opacity: .72;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.36) 72%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.36) 72%, transparent 100%);
    animation: sparkleFloat 12s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.section-heading { margin-bottom: 28px; }
.section-heading.center { text-align: center; }
.section-heading h2,
.hero-copy h1,
.closing-panel h2 {
    text-wrap: balance;
}

.flash {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    display: flex;
    gap: 16px;
    align-items: center;
    max-width: min(460px, calc(100% - 32px));
    padding: 16px 18px;
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}
.flash-success { background: rgba(79, 139, 113, 0.96); }
.flash-error { background: rgba(170, 92, 109, 0.96); }
.flash-close { border: 0; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }

.hero-section {
    position: relative;
    padding: 36px 0 52px;
    overflow: hidden;
    isolation: isolate;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: -24px;
    background: url("/img/back1.jpg") center 42% / cover no-repeat;
    opacity: 0.92;
    filter: blur(.4px) saturate(1.14) contrast(1.06);
    transform: scale(1.01);
    z-index: -2;
}
.hero-section::after {
    content: "";
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(circle at 18% 26%, rgba(255,255,255,.2) 0 1px, transparent 2px),
        radial-gradient(circle at 74% 18%, rgba(255,245,250,.18) 0 1.2px, transparent 2.6px),
        radial-gradient(circle at 60% 72%, rgba(255,255,255,.14) 0 1.2px, transparent 2.6px);
    background-size: auto;
    opacity: .22;
    z-index: -1;
    pointer-events: none;
}
.hero-sparkles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.hero-sparkles::before,
.hero-sparkles::after {
    content: "";
    position: absolute;
    inset: -12% -18%;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
}
.hero-sparkles::before {
    background-image:
        radial-gradient(circle, rgba(255,255,255,.94) 0 1.8px, transparent 3.4px),
        radial-gradient(circle, rgba(255,235,245,.9) 0 2.4px, transparent 4px),
        radial-gradient(circle, rgba(255,205,230,.82) 0 2px, transparent 3.5px),
        radial-gradient(circle, rgba(255,255,255,.88) 0 1.4px, transparent 2.6px),
        radial-gradient(circle, rgba(255,255,255,.9) 0 1.9px, transparent 3.2px),
        radial-gradient(circle, rgba(255,228,241,.86) 0 1.3px, transparent 2.4px),
        radial-gradient(circle, rgba(255,255,255,.82) 0 1.5px, transparent 2.7px);
    background-size:
        12px 12px,
        16px 16px,
        14px 14px,
        10px 10px,
        12px 12px,
        9px 9px,
        11px 11px;
    background-position:
        7% 18%,
        19% 62%,
        33% 24%,
        48% 71%,
        66% 16%,
        82% 57%,
        91% 28%;
    opacity: .48;
    animation: sparkleCluster 16s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.18));
}
.hero-sparkles::after {
    background-image:
        radial-gradient(circle, rgba(255,255,255,.96) 0 1.8px, transparent 3px),
        radial-gradient(circle, rgba(255,214,232,.9) 0 1.6px, transparent 2.8px),
        radial-gradient(circle, rgba(255,255,255,.84) 0 1.2px, transparent 2.2px),
        conic-gradient(from 45deg, transparent 0 10%, rgba(255,255,255,.9) 10% 14%, transparent 14% 36%, rgba(255,255,255,.9) 36% 40%, transparent 40% 60%, rgba(255,255,255,.9) 60% 64%, transparent 64% 86%, rgba(255,255,255,.9) 86% 90%, transparent 90% 100%),
        conic-gradient(from 45deg, transparent 0 12%, rgba(255,236,244,.86) 12% 15%, transparent 15% 35%, rgba(255,236,244,.86) 35% 38%, transparent 38% 62%, rgba(255,236,244,.86) 62% 65%, transparent 65% 85%, rgba(255,236,244,.86) 85% 88%, transparent 88% 100%),
        radial-gradient(circle, rgba(255,255,255,.78) 0 1.3px, transparent 2.4px);
    background-size:
        12px 12px,
        14px 14px,
        9px 9px,
        18px 18px,
        14px 14px,
        10px 10px;
    background-position:
        12% 44%,
        27% 11%,
        41% 54%,
        58% 22%,
        76% 69%,
        88% 39%;
    opacity: .38;
    animation: sparkleClusterAlt 19s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255,255,255,.22));
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 30%),
        linear-gradient(135deg, rgba(255,249,252,.08), rgba(253,238,245,.04)),
        linear-gradient(135deg, rgba(255,190,220,.04), rgba(220,214,255,.02));
}
.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
    align-items: center;
    min-height: 88vh;
}
.hero-copy { padding: 24px 0; }
.hero-subtitle { font-size: 1.18rem; margin: 18px 0 12px; max-width: 620px; }
.hero-text { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-guest-card {
    margin-top: 26px;
    padding: 20px 22px;
    max-width: 360px;
    border-radius: 22px;
    background: rgba(255,255,255,.74);
    border: 1px solid var(--border);
}
.hero-guest-card span, .hero-guest-card small { display: block; color: var(--muted); }
.hero-guest-card strong { display: block; margin: 6px 0; font-size: 1.2rem; }
.hero-media {
    transform: translateY(0);
    animation: floatCard 8s ease-in-out infinite;
}
.hero-event-card {
    position: relative;
    min-height: 520px;
    padding: 24px;
    display: flex;
    align-items: center;
}
.hero-event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 36px;
    background:
        linear-gradient(160deg, rgba(255,255,255,.74), rgba(255,242,248,.48)),
        linear-gradient(135deg, rgba(255,183,218,.12), rgba(122,216,255,.08));
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,.34);
}
.hero-event-card::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 28px;
    border: 1px solid rgba(240, 79, 155, 0.14);
    pointer-events: none;
}
.hero-event-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    padding: 34px 28px;
}
.hero-event-inner h2 {
    font-size: clamp(5rem, 16vw, 8.6rem);
    color: var(--rose-strong);
    line-height: .82;
    margin-bottom: 18px;
    text-shadow: 0 10px 30px rgba(240, 79, 155, 0.12);
}
.hero-event-meta {
    display: grid;
    gap: 14px;
}
.hero-event-item {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.46);
    border: 1px solid rgba(240, 79, 155, 0.12);
}
.hero-event-item small,
.hero-event-item span {
    display: block;
    color: var(--muted);
}
.hero-event-item strong {
    display: block;
    margin-top: 4px;
    color: var(--surface-dark);
    font-size: 1.08rem;
}

.countdown-section, .details-section, .map-section, .gallery-section, .floral-section, .story-section, .gift-section, .music-section, .table-section, .rsvp-section {
    padding: 64px 0;
}
.countdown-grid, .details-grid, .timeline-grid, .metric-grid, .admin-grid, .gallery-admin-grid {
    display: grid;
    gap: 18px;
}
.countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.countdown-card, .timeline-card, .metric-card {
    padding: 28px 18px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,241,248,.68));
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}
.countdown-card::before,
.timeline-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -120%;
    width: 48%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
    transform: skewX(-22deg);
    animation: cardShine 9s ease-in-out infinite;
}
.countdown-card span, .metric-card strong { display: block; font-size: clamp(2rem, 6vw, 3rem); color: var(--surface-dark); }
.countdown-card small, .metric-card span { color: var(--muted); }
.countdown-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(240, 79, 155, 0.16), rgba(154, 140, 255, 0.12));
    color: var(--rose-strong);
}
.details-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card {
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.62) 0 4px, transparent 5px),
        linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,243,249,.72));
}
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(240, 79, 155, 0.16), rgba(122, 216, 255, 0.12));
    color: var(--rose-strong);
    box-shadow: 0 12px 24px rgba(240, 79, 155, 0.1);
}
.info-card p + p { margin-top: 8px; }

.map-card {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.72) 0 5px, transparent 6px),
        linear-gradient(145deg, rgba(255,255,255,.84), rgba(255,245,250,.68));
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}
.event-map {
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,239,246,.9));
}
.map-meta {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 16px 8px;
}
.map-meta strong {
    font-size: 1.5rem;
    font-family: "Cormorant Garamond", serif;
    color: var(--surface-dark);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.map-note {
    display: inline-flex;
    align-items: center;
    min-height: 100%;
    padding: 28px;
    color: var(--muted);
}

.timeline-section {
    padding: 64px 0;
    background:
        radial-gradient(circle at center top, rgba(255,255,255,.3), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.5));
}
.timeline-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 700;
}

.parallax-section {
    position: relative;
    min-height: clamp(340px, 62vh, 620px);
    display: grid;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(32, 23, 30, 0.22), rgba(32, 23, 30, 0.4)),
        linear-gradient(135deg, rgba(183, 127, 140, 0.22), rgba(217, 209, 236, 0.1)),
        url("/img/back2.jpg") center center / cover no-repeat fixed;
}
.parallax-panel {
    padding: 84px 0;
}
.parallax-copy {
    max-width: 520px;
    padding: 30px 32px;
    background: rgba(255, 248, 251, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 80px rgba(32, 23, 30, 0.18);
}
.parallax-copy p,
.floral-copy p { color: rgba(52, 37, 48, 0.76); }

.gallery-slider {
    position: relative;
    padding: 0 56px;
}
.gallery-track { position: relative; }
.gallery-slide { display: none; }
.gallery-slide.is-active { display: block; animation: fade .5s ease; }
.gallery-slide img {
    width: 100%;
    height: clamp(280px, 54vw, 520px);
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow);
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(142, 91, 126, 0.16);
}
.slider-arrow[data-slider-prev] { left: 0; }
.slider-arrow[data-slider-next] { right: 0; }

.floral-card {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 22px;
    align-items: stretch;
    padding: 22px;
    background:
        radial-gradient(circle at 84% 14%, rgba(255,255,255,.62) 0 5px, transparent 6px),
        linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,243,250,.72));
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: var(--shadow);
}
.floral-copy {
    align-self: center;
    padding: 18px 12px 18px 10px;
}
.floral-media {
    min-height: 360px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(52,37,48,0.12)),
        url("/img/back3.jpg") center center / cover no-repeat;
    box-shadow: 0 18px 48px rgba(32, 23, 30, 0.14);
}

.story-card, .gift-card, .music-card, .table-card, .rsvp-form, .login-card, .table-card, .card {
    padding: 28px;
}
.story-card,
.gift-card,
.rsvp-form,
.table-card {
    position: relative;
    overflow: hidden;
}
.story-card::before,
.gift-card::before,
.rsvp-form::before,
.table-card::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -10%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 186, 223, 0.32), rgba(255, 186, 223, 0));
    pointer-events: none;
}
.story-card::after,
.gift-card::after,
.rsvp-form::after {
    content: "";
    position: absolute;
    inset: auto -32px -42px auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 216, 255, 0.18), rgba(122, 216, 255, 0));
    pointer-events: none;
}
.gift-card, .music-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}
.music-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,241,247,.6));
}
.music-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 250, 249, 0.92) 0%, rgba(255, 250, 249, 0.74) 42%, rgba(255, 250, 249, 0.38) 100%),
        linear-gradient(135deg, rgba(183, 127, 140, 0.12), rgba(217, 209, 236, 0.08)),
        url("/img/back5.jpg") center center / cover no-repeat;
    filter: saturate(.88) contrast(.96);
    z-index: -2;
}
.music-card::after {
    content: "";
    position: absolute;
    inset: auto -8% -38% 42%;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,0));
    z-index: -1;
    pointer-events: none;
}
.gift-actions, .music-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.music-controls .button,
.hero-actions .button {
    min-width: 210px;
}
.gift-alias {
    min-width: 240px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.88);
}
.gift-alias strong {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.gift-alias small { display: block; color: var(--muted); }

.form-grid, .filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.form-grid-full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--text); font-weight: 600; }
input, select, textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(143, 111, 134, 0.2);
    background: rgba(255,255,255,.88);
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(235, 95, 157, 0.42);
    box-shadow: 0 0 0 4px rgba(255, 190, 220, 0.22);
    transform: translateY(-1px);
}
textarea { min-height: 140px; resize: vertical; }
.stack-form { display: grid; gap: 22px; }
.checkbox-row { flex-direction: row; align-items: center; font-weight: 500; }
.empty-card { text-align: center; }

.music-card > div:first-child h2::before,
.table-card h2::before,
.rsvp-section .section-heading h2::before,
.story-card .section-heading h2::before,
.gallery-section .section-heading h2::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block;
    margin-right: 14px;
    color: var(--rose-strong);
    font-size: .55em;
    vertical-align: middle;
}
.music-card > div:first-child h2::before { content: "\F001"; }
.table-card h2::before { content: "\F6C0"; }
.rsvp-section .section-heading h2::before { content: "\F0E0"; }
.story-card .section-heading h2::before { content: "\F004"; }
.gallery-section .section-heading h2::before { content: "\F03E"; }

.closing-section {
    position: relative;
    margin-top: 24px;
    padding: 120px 0 110px;
    overflow: hidden;
    isolation: isolate;
}
.closing-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,245,249,.14), rgba(255,245,249,.72)),
        linear-gradient(135deg, rgba(255,183,218,.22), rgba(217,209,236,.14)),
        url("/img/back4.jpg") center center / cover no-repeat;
    filter: saturate(.86) blur(1.2px);
    transform: scale(1.02);
    z-index: -2;
}
.closing-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,.36), transparent 42%),
        radial-gradient(circle at 20% 34%, rgba(255,255,255,.24) 0 2px, transparent 3px),
        radial-gradient(circle at 72% 62%, rgba(255,255,255,.2) 0 2px, transparent 3px),
        linear-gradient(180deg, rgba(252,247,246,.04), rgba(252,247,246,.42));
    z-index: -1;
    animation: sparkleFloat 16s linear infinite reverse;
}
.closing-panel {
    max-width: 720px;
    text-align: center;
    padding: 34px 38px;
    background: rgba(255, 250, 249, 0.58);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 32px;
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 80px rgba(125, 91, 108, 0.16);
}
.closing-panel h2 {
    margin-bottom: 16px;
}
.closing-panel p {
    max-width: 560px;
    margin: 0 auto;
}

/* Premium invitation redesign */
.public-body {
    --bg: #fffaf7;
    --surface: rgba(255, 250, 247, 0.78);
    --surface-dark: #4b3140;
    --border: rgba(184, 137, 95, 0.14);
    --text: #4b3140;
    --muted: #876a77;
    --rose: #f8e7ec;
    --rose-strong: #b8895f;
    --gold: #d4af37;
    --shadow: 0 28px 70px rgba(120, 79, 93, 0.14);
    background:
        radial-gradient(circle at top left, rgba(243, 215, 223, 0.72), transparent 26%),
        radial-gradient(circle at top right, rgba(248, 231, 236, 0.86), transparent 22%),
        linear-gradient(180deg, #fffaf7 0%, #fdf4f5 48%, #fffaf7 100%);
}
.public-page::before { background: radial-gradient(circle, rgba(243, 215, 223, 0.84), rgba(243, 215, 223, 0)); }
.public-page::after { background: radial-gradient(circle, rgba(234, 195, 207, 0.7), rgba(234, 195, 207, 0)); }
.invitation-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 14px 0;
    background: linear-gradient(180deg, rgba(255, 250, 247, 0.92), rgba(255, 250, 247, 0.68));
    border-bottom: 1px solid rgba(184, 137, 95, 0.12);
    backdrop-filter: blur(18px);
}
.topbar-inner,
.topbar-brand,
.topbar-copy,
.topbar-nav {
    display: flex;
    align-items: center;
}
.topbar-inner { justify-content: space-between; gap: 16px; }
.topbar-brand { gap: 12px; }
.topbar-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(184,137,95,.08));
    border: 1px solid rgba(212,175,55,.24);
    color: #b8895f;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
}
.topbar-copy { flex-direction: column; align-items: flex-start; gap: 2px; }
.topbar-copy strong { font-size: .95rem; color: var(--surface-dark); }
.topbar-copy small { font-size: .76rem; color: var(--muted); }
.topbar-nav { gap: 10px; }
.topbar-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: background-color .3s ease, color .3s ease;
}
.topbar-nav a:hover,
.topbar-nav a:focus-visible {
    background: rgba(255,255,255,.74);
    color: var(--surface-dark);
}
.hero-section {
    padding: 28px 0 40px;
}
.hero-section::before {
    inset: 0;
    background:
        linear-gradient(180deg, rgba(75,49,64,.3), rgba(75,49,64,.48)),
        linear-gradient(140deg, rgba(248,231,236,.1), rgba(255,250,247,.06)),
        url("/img/back1.jpg") center 42% / cover no-repeat;
    filter: saturate(.8) brightness(.82);
    transform: scale(1.03);
}
.hero-section::after { display: none; }
.hero-overlay {
    background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.14), transparent 26%),
        linear-gradient(180deg, rgba(255,250,247,.04), rgba(255,250,247,.18));
}
.hero-sparkles::before,
.hero-sparkles::after {
    inset: 0;
    background-repeat: no-repeat;
}
.hero-sparkles::before {
    background-image:
        radial-gradient(circle, rgba(255,255,255,.95) 0 1.6px, transparent 3px),
        radial-gradient(circle, rgba(255,244,247,.88) 0 2px, transparent 3.5px),
        radial-gradient(circle, rgba(255,255,255,.86) 0 1.2px, transparent 2.2px),
        radial-gradient(circle, rgba(255,240,244,.82) 0 1.5px, transparent 2.6px);
    background-size: 12px 12px, 15px 15px, 9px 9px, 11px 11px;
    background-position: 10% 18%, 24% 62%, 67% 16%, 88% 48%;
    animation: sparkleDrift 14s ease-in-out infinite;
}
.hero-sparkles::after {
    background-image:
        conic-gradient(from 45deg, transparent 0 10%, rgba(255,255,255,.9) 10% 14%, transparent 14% 36%, rgba(255,255,255,.9) 36% 40%, transparent 40% 60%, rgba(255,255,255,.9) 60% 64%, transparent 64% 86%, rgba(255,255,255,.9) 86% 90%, transparent 90% 100%),
        conic-gradient(from 45deg, transparent 0 12%, rgba(255,243,247,.84) 12% 15%, transparent 15% 35%, rgba(255,243,247,.84) 35% 38%, transparent 38% 62%, rgba(255,243,247,.84) 62% 65%, transparent 65% 85%, rgba(255,243,247,.84) 85% 88%, transparent 88% 100%),
        radial-gradient(circle, rgba(255,255,255,.82) 0 1.3px, transparent 2.3px);
    background-size: 15px 15px, 18px 18px, 10px 10px;
    background-position: 16% 40%, 60% 24%, 82% 68%;
    animation: sparkleDriftAlt 18s ease-in-out infinite;
    opacity: .42;
}
.hero-content {
    min-height: calc(100vh - 94px);
    gap: 20px;
    padding: 18px 0 12px;
    align-items: end;
}
.hero-copy { max-width: 38rem; }
.hero-script {
    display: inline-block;
    margin-bottom: 10px;
    font-family: "Parisienne", cursive;
    font-size: clamp(2rem, 10vw, 3.5rem);
    color: rgba(255,250,247,.96);
    text-shadow: 0 10px 24px rgba(75,49,64,.18);
}
.hero-copy h1,
.hero-subtitle,
.hero-text,
.hero-guest-card { color: #fffaf7; }
.hero-copy h1 { max-width: 10ch; text-shadow: 0 18px 45px rgba(45,26,35,.3); }
.hero-subtitle { color: rgba(255,250,247,.9); max-width: 34rem; }
.hero-text { color: rgba(255,250,247,.78); max-width: 32rem; }
.hero-actions { gap: 12px; }
.hero-guest-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
}
.hero-media { padding-top: 28px; }
.hero-event-card,
.map-card,
.story-card,
.gift-card,
.music-card,
.table-card,
.rsvp-form,
.card,
.parallax-copy,
.closing-panel,
.info-card {
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,247,244,.72));
    border: 1px solid rgba(184,137,95,.14);
    box-shadow: 0 24px 60px rgba(120,79,93,.12);
}
.hero-event-card { overflow: visible; min-height: 480px; }
.hero-event-card::before { border-radius: 34px; }
.hero-event-card::after { border-color: rgba(212,175,55,.14); }
.hero-avatar {
    position: absolute;
    top: -26px;
    left: 24px;
    z-index: 2;
    width: 72px;
    height: 72px;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212,175,55,.86), rgba(184,137,95,.72));
    box-shadow: 0 18px 36px rgba(90,58,68,.2);
}
.hero-avatar img,
.hero-avatar span { width: 100%; height: 100%; border-radius: 50%; }
.hero-avatar img { -o-object-fit: cover; object-fit: cover; background: #fffaf7; }
.hero-avatar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fffaf7;
    color: #b8895f;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
}
.hero-event-inner h2 { color: #b8895f; text-shadow: 0 14px 28px rgba(212,175,55,.12); }
.hero-event-item { background: rgba(255,255,255,.58); border-color: rgba(212,175,55,.14); }
.button {
    min-height: 56px;
    background: linear-gradient(135deg, #d8b46a 0%, #d4af37 38%, #b8895f 100%);
    border-color: rgba(184,137,95,.18);
    box-shadow: 0 14px 32px rgba(184,137,95,.22);
}
.button-secondary {
    background: rgba(255,255,255,.74);
    color: var(--surface-dark);
}
.section-heading { text-align: center; margin-bottom: 28px; }
.eyebrow { color: #b8895f; }
.eyebrow::after {
    content: "";
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, rgba(212,175,55,.54), rgba(212,175,55,0));
}
.details-section,
.map-section,
.gallery-section,
.floral-section,
.story-section,
.gift-section,
.music-section,
.table-section,
.rsvp-section,
.countdown-section { padding-top: 72px; }
.details-grid,
.timeline-grid,
.countdown-grid { gap: 16px; }
.countdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.countdown-card,
.timeline-card {
    background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,245,241,.74));
    border-color: rgba(184,137,95,.12);
    box-shadow: 0 14px 34px rgba(120,79,93,.1);
}
.countdown-card small { letter-spacing: .18em; font-size: .68rem; text-transform: uppercase; }
.section-icon {
    background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(184,137,95,.1));
    color: #b8895f;
}
.parallax-section {
    margin-top: 72px;
    background:
        linear-gradient(180deg, rgba(75,49,64,.36), rgba(75,49,64,.54)),
        linear-gradient(135deg, rgba(248,231,236,.12), rgba(255,250,247,.04)),
        url("/img/back2.jpg") center center / cover no-repeat;
}
.parallax-copy h3,
.parallax-copy p { color: #fffaf7; }
.floral-media {
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(75,49,64,.12)),
        url("/img/back3.jpg") center center / cover no-repeat;
}
.music-card::before {
    background:
        linear-gradient(120deg, rgba(255,250,247,.94), rgba(255,250,247,.6)),
        url("/img/back5.jpg") center center / cover no-repeat;
    filter: saturate(.78) brightness(.96);
}
.closing-section::before {
    background:
        linear-gradient(180deg, rgba(75,49,64,.3), rgba(75,49,64,.54)),
        linear-gradient(135deg, rgba(248,231,236,.18), rgba(255,250,247,.08)),
        url("/img/back4.jpg") center center / cover no-repeat;
    filter: saturate(.76) brightness(.88);
}
.closing-panel { max-width: 700px; background: rgba(255,250,247,.72); }
@keyframes sparkleDrift {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: .3; }
    50% { transform: translate3d(-8px, 10px, 0); opacity: .54; }
}
@keyframes sparkleDriftAlt {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .24; }
    50% { transform: translate3d(10px, -10px, 0) scale(1.04); opacity: .44; }
}
@media (max-width: 860px) {
    .topbar-nav { display: none; }
}
@media (min-width: 700px) {
    .countdown-grid,
    .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .details-grid,
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
    .hero-content { grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .95fr); gap: 40px; }
    .details-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .countdown-grid,
    .timeline-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Decorative section pass */
.invitation-topbar {
    top: 14px;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
}
.topbar-inner {
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 250, 247, 0.88), rgba(255, 247, 244, 0.72));
    border: 1px solid rgba(184, 137, 95, 0.14);
    box-shadow: 0 18px 40px rgba(120, 79, 93, 0.1);
}
.topbar-nav a {
    padding-inline: 16px;
}

.countdown-section,
.details-section,
.story-section,
.gift-section {
    isolation: isolate;
}
.countdown-section::after,
.details-section::after,
.story-section::after,
.gift-section::after {
    content: "";
    position: absolute;
    inset: 26px 0 auto;
    height: 320px;
    pointer-events: none;
    z-index: -1;
}
.countdown-section::after {
    background:
        radial-gradient(circle at 8% 44%, rgba(243, 215, 223, 0.34) 0 48px, transparent 49px),
        radial-gradient(circle at 10% 68%, rgba(184, 137, 95, 0.12) 0 14px, transparent 15px),
        radial-gradient(circle at 88% 30%, rgba(248, 231, 236, 0.42) 0 58px, transparent 59px),
        radial-gradient(circle at 84% 60%, rgba(212, 175, 55, 0.1) 0 18px, transparent 19px),
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.22) 0 3px, transparent 4px),
        radial-gradient(circle at 62% 48%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px);
    filter: blur(8px);
}
.details-section::after {
    background:
        radial-gradient(circle at 10% 18%, rgba(243, 215, 223, 0.28) 0 74px, transparent 75px),
        radial-gradient(circle at 16% 58%, rgba(212, 175, 55, 0.08) 0 22px, transparent 23px),
        radial-gradient(circle at 88% 72%, rgba(234, 195, 207, 0.26) 0 84px, transparent 85px),
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.24) 0 4px, transparent 5px),
        radial-gradient(circle at 68% 30%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px);
    filter: blur(10px);
}
.story-section::after,
.gift-section::after {
    background:
        radial-gradient(circle at 10% 30%, rgba(243, 215, 223, 0.22) 0 88px, transparent 89px),
        radial-gradient(circle at 84% 70%, rgba(212, 175, 55, 0.08) 0 92px, transparent 93px),
        radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.24) 0 4px, transparent 5px),
        radial-gradient(circle at 58% 20%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px);
    filter: blur(10px);
}

.countdown-grid,
.details-grid {
    position: relative;
    padding: 22px;
    border-radius: 42px;
    background:
        linear-gradient(180deg, rgba(255, 250, 247, 0.56), rgba(255, 247, 244, 0.28));
}
.countdown-grid::before,
.details-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}
.countdown-grid::before {
    background:
        radial-gradient(circle at 12% 22%, rgba(255,255,255,.28) 0 3px, transparent 4px),
        radial-gradient(circle at 84% 24%, rgba(255,255,255,.24) 0 2px, transparent 3px),
        radial-gradient(circle at 74% 78%, rgba(255,255,255,.2) 0 3px, transparent 4px),
        linear-gradient(135deg, rgba(243,215,223,.24), rgba(255,255,255,0) 40%);
}
.details-grid::before {
    background:
        radial-gradient(circle at 8% 20%, rgba(243,215,223,.18) 0 80px, transparent 81px),
        radial-gradient(circle at 92% 78%, rgba(212,175,55,.08) 0 90px, transparent 91px),
        radial-gradient(circle at 70% 20%, rgba(255,255,255,.24) 0 3px, transparent 4px);
}

.countdown-card {
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,246,242,.7));
    backdrop-filter: blur(12px);
}
.countdown-card:nth-child(1),
.countdown-card:nth-child(4) {
    transform: translateY(-6px);
}
.countdown-card:nth-child(2),
.countdown-card:nth-child(3) {
    transform: translateY(6px);
}

.info-card,
.story-card,
.gift-card {
    border-radius: 36px;
}
.info-card {
    min-height: 250px;
    padding: 28px 24px 24px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.5) 0 18px, transparent 19px),
        linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,245,241,.74));
}
.info-card::before {
    content: "";
    position: absolute;
    inset: auto -20px -30px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243,215,223,.28), rgba(243,215,223,0));
    filter: blur(8px);
    pointer-events: none;
}
.info-card:nth-child(2)::before,
.info-card:nth-child(4)::before {
    background: radial-gradient(circle, rgba(212,175,55,.12), rgba(212,175,55,0));
}

.story-card,
.gift-card {
    overflow: hidden;
}
.story-card::before,
.gift-card::before {
    width: 240px;
    height: 240px;
    top: -90px;
    left: -70px;
    background: radial-gradient(circle, rgba(243,215,223,.34), rgba(243,215,223,0));
    filter: blur(10px);
}
.story-card::after,
.gift-card::after {
    width: 220px;
    height: 220px;
    right: -70px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(212,175,55,.14), rgba(212,175,55,0));
    filter: blur(10px);
}
.story-card .section-heading,
.gift-card > div:first-child {
    position: relative;
    z-index: 1;
}
.story-card .section-heading::before,
.gift-card > div:first-child::before {
    position: absolute;
    top: -10px;
    right: 10px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 6rem;
    line-height: 1;
    opacity: .07;
    color: #d4af37;
    filter: blur(1px);
    pointer-events: none;
}
.story-card .section-heading::before {
    content: "\F004";
}
.gift-card > div:first-child::before {
    content: "\F79F";
}
.gift-card {
    background:
        linear-gradient(90deg, rgba(255,255,255,.82), rgba(255,246,242,.66)),
        radial-gradient(circle at 84% 26%, rgba(243,215,223,.22), transparent 18%);
}
.gift-actions {
    position: relative;
    z-index: 1;
}
.gift-alias {
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,248,244,.78));
}

@media (max-width: 979px) {
    .countdown-card:nth-child(1),
    .countdown-card:nth-child(2),
    .countdown-card:nth-child(3),
    .countdown-card:nth-child(4) {
        transform: none;
    }
}
@media (max-width: 860px) {
    .invitation-topbar {
        top: 10px;
    }
    .topbar-inner {
        padding: 12px 16px;
        border-radius: 28px;
    }
}

.admin-body { background: linear-gradient(180deg, #f8f2f4 0%, #f3eef4 100%); }
.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    padding: 28px;
    background: rgba(35, 22, 32, 0.92);
    color: #fff;
    display: grid;
    align-content: start;
    gap: 28px;
}
.admin-brand { display: block; }
.admin-brand-kicker { display: block; color: rgba(255,255,255,.6); font-size: 12px; text-transform: uppercase; letter-spacing: .22em; }
.admin-brand strong { font-size: 2rem; font-family: "Cormorant Garamond", serif; }
.admin-nav { display: grid; gap: 10px; }
.admin-nav a {
    padding: 14px 16px;
    border-radius: 16px;
    color: rgba(255,255,255,.78);
}
.admin-nav .is-active, .admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { padding: 34px; }
.admin-header { margin-bottom: 24px; }
.admin-header-inline, .header-actions, .actions-cell, .inline-form { display: flex; gap: 12px; align-items: center; }
.admin-header-inline { justify-content: space-between; flex-wrap: wrap; }
.metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 24px; }
.admin-grid { grid-template-columns: 1.1fr .9fr; }
.menu-stats, .recent-list { display: grid; gap: 14px; }
.menu-stat, .recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.recent-item:last-child, .menu-stat:last-child { border-bottom: 0; }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 14px; text-align: left; border-bottom: 1px solid var(--border); }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 4px; }
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}
.status-confirmed { background: rgba(79, 139, 113, .14); color: var(--success); }
.status-declined { background: rgba(170, 92, 109, .14); color: var(--danger); }
.status-pending { background: rgba(198, 163, 106, .16); color: #956f34; }

.gallery-admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.gallery-admin-card img { border-radius: 18px; margin-bottom: 16px; }
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-card { width: min(460px, 100%); }

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.pagination .page-item, .pagination .page-link { list-style: none; }

@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sparkleCluster {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: .28;
    }
    25% {
        transform: translate3d(-6px, 8px, 0);
        opacity: .44;
    }
    50% {
        transform: translate3d(-14px, 16px, 0);
        opacity: .68;
    }
    75% {
        transform: translate3d(-8px, 10px, 0);
        opacity: .36;
    }
    100% {
        transform: translate3d(-18px, 20px, 0);
        opacity: .28;
    }
}
@keyframes sparkleClusterAlt {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: .22;
    }
    30% {
        transform: translate3d(8px, -6px, 0) scale(1.02);
        opacity: .34;
    }
    50% {
        transform: translate3d(14px, -10px, 0) scale(1.05);
        opacity: .58;
    }
    75% {
        transform: translate3d(20px, -14px, 0) scale(.98);
        opacity: .3;
    }
    100% {
        transform: translate3d(28px, -14px, 0) scale(1);
        opacity: .22;
    }
}
@keyframes floatBlob {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(3vw, -2vh, 0) scale(1.08); }
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes cardShine {
    0%, 82%, 100% { left: -120%; }
    92% { left: 130%; }
}
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes sparkleFloat {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.reveal-block {
    opacity: 1;
    transform: translateY(0);
}
.js-ready .reveal-block {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.js-ready .reveal-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-content, .details-grid, .timeline-grid, .metric-grid, .admin-grid, .gallery-admin-grid, .floral-card, .map-card {
        grid-template-columns: 1fr 1fr;
    }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-content, .details-grid, .timeline-grid, .form-grid, .filter-grid, .metric-grid, .admin-grid, .gallery-admin-grid, .floral-card, .map-card {
        grid-template-columns: 1fr;
    }
    .container { width: min(100%, calc(100% - 22px)); }
    .public-page::before,
    .public-page::after { display: none; }
    h1 { font-size: clamp(2.75rem, 15vw, 4.4rem); line-height: .92; }
    h2 { font-size: clamp(2.1rem, 11vw, 3.2rem); line-height: .96; }
    .hero-section { padding-top: 10px; }
    .hero-sparkles::before,
    .hero-sparkles::after {
        opacity: .52;
    }
    .hero-content {
        min-height: auto;
        gap: 18px;
    }
    .hero-copy {
        padding: 8px 0 0;
        text-align: center;
    }
    .hero-subtitle,
    .hero-text,
    .hero-guest-card {
        max-width: none;
    }
    .hero-guest-card { margin-inline: auto; }
    .hero-actions {
        justify-content: center;
        gap: 12px;
    }
    .hero-actions .button,
    .music-controls .button {
        width: 100%;
        min-width: 0;
    }
    .hero-media {
        order: -1;
    }
    .hero-event-card {
        min-height: 380px;
        padding: 14px;
    }
    .hero-event-card::before {
        border-radius: 28px;
    }
    .hero-event-card::after {
        inset: 12px;
        border-radius: 22px;
    }
    .hero-event-inner {
        padding: 20px 14px;
    }
    .hero-event-inner h2 {
        font-size: clamp(4.2rem, 24vw, 6.2rem);
    }
    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .countdown-card {
        padding: 20px 12px;
        border-radius: 20px;
    }
    .countdown-card span {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }
    .details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .info-card {
        padding: 18px 16px;
        border-radius: 20px;
    }
    .event-map { min-height: 320px; }
    .parallax-section {
        min-height: 360px;
        background-attachment: scroll;
        background-position: center top;
    }
    .parallax-panel { padding: 56px 0; }
    .parallax-copy, .floral-copy { padding: 24px; }
    .floral-media { min-height: 300px; }
    .closing-section { padding: 88px 0 84px; }
    .closing-panel { padding: 28px 24px; }
    .gallery-slider { padding: 0; }
    .slider-arrow { top: auto; bottom: -20px; transform: none; }
    .slider-arrow[data-slider-prev] { left: calc(50% - 52px); }
    .slider-arrow[data-slider-next] { right: calc(50% - 52px); }
    .gift-card, .music-card, .admin-header-inline, .header-actions, .actions-cell, .inline-form {
        flex-direction: column;
        align-items: stretch;
    }
    .gift-actions, .music-controls {
        width: 100%;
        justify-content: stretch;
    }
    .gift-actions .button {
        width: 100%;
    }
    .gift-alias {
        min-width: 0;
    }
    .admin-main { padding: 20px; }
    .flash { left: 16px; right: 16px; top: 16px; max-width: none; }
}

@media (max-width: 520px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    .timeline-card,
    .story-card,
    .gift-card,
    .music-card,
    .table-card,
    .rsvp-form,
    .map-card {
        border-radius: 22px;
    }
    .section-heading {
        margin-bottom: 22px;
    }
}
