:root {
    --accent: var(--wedding-accent, #d96a92);
    --accent-deep: #b84875;
    --accent-soft: #f4c2d6;
    --cream: #fff6ec;
    --rose-fog: #ffd8e6;
    --ink: #523740;
    --muted: #7f626c;
    --card: #fffdfa;
    --gold: #cc9a4d;
    --champagne: #ffe8bd;
    --rose-glow: rgba(232, 97, 139, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

.wedding-body {
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% -12%, rgba(255, 178, 203, 0.72), transparent 42%),
        radial-gradient(circle at 100% 0%, rgba(255, 213, 143, 0.46), transparent 36%),
        radial-gradient(circle at 50% 115%, rgba(232, 97, 139, 0.22), transparent 38%),
        linear-gradient(180deg, #fff7fb 0%, var(--cream) 100%);
}

.floating-nav {
    position: fixed;
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 1rem));
    z-index: 1200;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 30px rgba(67, 39, 34, 0.13);
    backdrop-filter: blur(9px);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.floating-brand {
    font-family: "Playfair Display", serif;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.05rem;
    white-space: nowrap;
    padding: 0.35rem 0.5rem;
}

.floating-links {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.floating-links::-webkit-scrollbar {
    display: none;
}

.floating-links a {
    color: #5f524f;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: 0.2s ease;
}

.floating-links a:hover,
.floating-links a.is-active {
    background: rgba(217, 106, 146, 0.16);
    color: var(--accent-deep);
}

.floating-copy {
    margin-left: auto;
    border: 1px solid rgba(186, 143, 78, 0.45);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 224, 0.9));
    color: #6f573a;
    border-radius: 999px;
    padding: 0.4rem 0.78rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 9, 7, 0.25) 0%, rgba(17, 8, 7, 0.7) 92%);
}

.hero-glow {
    position: absolute;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 234, 205, 0.42), transparent 68%);
    top: -190px;
    right: -170px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    max-width: 820px;
    padding: 4.7rem 1rem 2rem;
}

.hero-chip {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    margin-bottom: 0.8rem;
}

.hero-couple {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 7.2vw, 4.4rem);
    margin: 0;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin: 0.65rem 0 0.35rem;
}

.hero-subtitle {
    margin: 0 auto 0.8rem;
    max-width: 680px;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.94);
}

.hero-date {
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 560px;
    margin: 0 auto 1.15rem;
}

.countdown div {
    border-radius: 17px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.16);
    padding: 0.75rem 0.35rem;
    backdrop-filter: blur(5px);
}

.countdown strong {
    display: block;
    font-size: 1.38rem;
    line-height: 1.2;
}

.countdown span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.hero-actions .btn {
    border-radius: 999px;
    padding: 0.68rem 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-gold {
    position: relative;
    overflow: hidden;
    border: 0;
    background: linear-gradient(135deg, #b97937, #e0b66f 48%, #fff0bd);
    color: #fff;
    box-shadow: 0 14px 30px rgba(160, 101, 45, 0.28);
}

.btn-gold::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.42) 50%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    transform: skewX(-25deg) translateX(-120%);
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.btn-gold:hover::after {
    transform: skewX(-25deg) translateX(120%);
}

.btn-soft {
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: transparent;
    color: #fff;
}

.btn {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-gold:hover {
    box-shadow: 0 18px 42px rgba(160, 101, 45, 0.36), 0 0 30px rgba(255, 226, 177, 0.32);
}

.wedding-main {
    position: relative;
}

.w-section {
    padding: 5rem 0;
}

.w-soft {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(252, 227, 238, 0.78)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 14px, rgba(255, 255, 255, 0) 14px, rgba(255, 255, 255, 0) 30px);
}

.section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.section-head h2 {
    margin: 0 0 0.35rem;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.timeline {
    position: relative;
    padding-left: 1rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15px;
    width: 2px;
    height: 100%;
    background: linear-gradient(var(--accent), rgba(217, 106, 146, 0.24));
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 6px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(217, 106, 146, 0.24);
}

.timeline-card {
    border: 1px solid #efdeda;
    background: var(--card);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 18px 36px rgba(78, 44, 38, 0.09);
}

.timeline-date {
    font-weight: 700;
    color: var(--accent-deep);
    font-size: 0.82rem;
}

.timeline-card h3 {
    margin: 0.3rem 0 0.4rem;
    font-family: "Playfair Display", serif;
}

.timeline-card p {
    margin: 0;
    color: var(--muted);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.info-card {
    border: 1px solid #ecdcd8;
    background: #fffdfa;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 14px 28px rgba(83, 52, 46, 0.07);
}

.info-card h3,
.info-card h4 {
    font-family: "Playfair Display", serif;
    margin: 0 0 0.45rem;
}

.info-card h4 {
    margin-top: 0.9rem;
    font-size: 1rem;
}

.info-card p {
    margin: 0 0 0.35rem;
    color: var(--muted);
}

.inline-link {
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 700;
}

.schedule {
    display: grid;
    gap: 0.85rem;
}

.schedule-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 0.95rem;
    align-items: center;
    border: 1px solid #ecdad7;
    background: #fffdfa;
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.schedule-time {
    color: var(--accent-deep);
    font-weight: 800;
    font-size: 1.05rem;
}

.schedule-item h3 {
    margin: 0 0 0.2rem;
    font-family: "Playfair Display", serif;
}

.schedule-item p {
    margin: 0;
    color: var(--muted);
}

.surface {
    border: 1px solid #ead9d5;
    background: rgba(255, 253, 251, 0.95);
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 18px 36px rgba(79, 50, 44, 0.09);
}

.form-control,
.form-select {
    border-radius: 13px;
    border: 1px solid #e5d5d1;
    padding: 0.65rem 0.8rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(217, 106, 146, 0.2);
}

.masonry {
    columns: 1;
    column-gap: 0.8rem;
}

.masonry-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0.8rem;
    break-inside: avoid;
    border: 1px solid #efdfdc;
    box-shadow: 0 16px 30px rgba(72, 43, 37, 0.12);
}

.masonry-card img {
    width: 100%;
    display: block;
}

.masonry-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    font-size: 0.85rem;
    padding: 0.55rem 0.72rem;
    background: linear-gradient(180deg, transparent, rgba(19, 10, 8, 0.82));
}

.faq details {
    border: 1px solid #ecdbd7;
    border-radius: 14px;
    background: #fff;
    padding: 0.78rem 0.92rem;
    margin-bottom: 0.66rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: #5b4c48;
}

.faq p {
    margin: 0.6rem 0 0.1rem;
    color: var(--muted);
}

.wedding-footer {
    background: #241513;
    color: #f8ece7;
    text-align: center;
    padding: 3rem 1rem 4.4rem;
}

.wedding-footer h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
}

.wedding-footer p {
    margin: 0.45rem 0 0;
    opacity: 0.92;
}

.footer-brand-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-brand-line img {
    display: inline-block;
    width: auto;
    height: 60px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.wedding-legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
}

.wedding-legal-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    text-decoration: none;
}

.wedding-legal-links a:hover {
    color: #f5d196;
}

.mobile-actions {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.8rem;
    width: min(430px, calc(100% - 1rem));
    display: none;
    z-index: 1300;
    border-radius: 999px;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.mobile-actions a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #5d4f4c;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.52rem 0.45rem;
    border-radius: 999px;
}

.mobile-actions a:hover {
    background: rgba(217, 106, 146, 0.14);
}

.wedding-toast {
    position: fixed;
    top: 5.3rem;
    right: 1rem;
    z-index: 1500;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    color: #fff;
    max-width: min(360px, 90vw);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.wedding-toast.success {
    background: #3e8b58;
}

.wedding-toast.error {
    background: #bb5a5c;
}

.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(22, 12, 10, 0.87);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.lightbox-image {
    max-width: min(980px, 94vw);
    max-height: 80vh;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.lightbox-caption {
    color: #f8ebe6;
    margin-top: 0.75rem;
}

.lightbox-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.lightbox-counter {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}
.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
    left: 1rem;
}
.lightbox-next {
    right: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.premium-page {
    --theme-primary: var(--accent);
    --theme-accent: var(--accent-soft);
    --theme-ink: var(--ink);
    --glass-bg: rgba(255, 255, 255, 0.14);
    --glass-border: rgba(255, 255, 255, 0.28);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 2%, color-mix(in srgb, var(--theme-primary), transparent 72%), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(255, 219, 168, 0.42), transparent 32%),
        linear-gradient(180deg, rgba(255, 250, 253, 0.98), rgba(255, 238, 246, 0.98));
}

.premium-page::before,
.premium-page::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(28px);
    opacity: 0.55;
}

.premium-page::before {
    width: 360px;
    height: 360px;
    left: -150px;
    top: 18vh;
    background: rgba(255, 180, 205, 0.42);
}

.premium-page::after {
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: 10vh;
    background: rgba(255, 222, 169, 0.38);
}

.theme-champagne_gold {
    --theme-primary: #c99a4e;
    --theme-accent: #f4dfb8;
    --theme-ink: #4a3926;
}

.theme-minimal_white {
    --theme-primary: #8f7c72;
    --theme-accent: #f5f1ee;
    --theme-ink: #35302d;
}

.theme-sunset_love {
    --theme-primary: #e97962;
    --theme-accent: #ffd0bc;
    --theme-ink: #56362f;
}

.theme-elegant_black {
    --theme-primary: #d7b46a;
    --theme-accent: #302722;
    --theme-ink: #f8efe7;
    background: #171210;
}

.theme-soft_beige {
    --theme-primary: #b88f72;
    --theme-accent: #ead7c5;
    --theme-ink: #4a3a32;
}

.theme-lavender_dream {
    --theme-primary: #9c7cc4;
    --theme-accent: #e2d5f3;
    --theme-ink: #40344f;
}

.font-cormorant_manrope h1,
.font-cormorant_manrope h2,
.font-cormorant_manrope h3 {
    font-family: "Cormorant Garamond", "Playfair Display", serif;
}

.font-playfair_inter {
    font-family: "Inter", "Manrope", sans-serif;
}

.premium-nav {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(var(--wedding-blur));
}

.premium-hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-film {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 206, 220, 0.26), transparent 35%),
        radial-gradient(circle at 78% 20%, rgba(255, 223, 167, 0.2), transparent 28%),
        linear-gradient(180deg, rgba(21, 10, 13, 0.08), rgba(20, 9, 13, 0.82)),
        linear-gradient(90deg, rgba(32, 13, 18, 0.56), rgba(32, 13, 18, 0.06));
}

.premium-hero-inner {
    position: relative;
    z-index: 2;
    padding: 8.4rem 1rem 5.9rem;
    color: #fff;
    text-shadow: 0 12px 38px rgba(24, 10, 14, 0.26);
}

.premium-hero h1 {
    max-width: 980px;
    margin: 0;
    color: #fff;
    font-size: clamp(3.2rem, 10vw, 7.4rem);
    line-height: 0.95;
}

.hero-kicker {
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.86;
}

.hero-line {
    margin: 1rem 0 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.35rem, 3vw, 2.15rem);
}

.hero-subline {
    max-width: 650px;
    margin: 0.42rem 0 1rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-meta span {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.38rem 0.7rem;
    backdrop-filter: blur(var(--wedding-blur));
}

.hero-romance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.4rem 0 0.3rem;
}

.hero-romance-tags span {
    border: 1px solid rgba(255, 236, 209, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.34rem 0.68rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
}

.premium-countdown {
    margin: 1rem 0 1.15rem;
    max-width: 620px;
}

.premium-countdown div {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.26);
    border-radius: var(--wedding-radius);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 16px 32px rgba(18, 8, 12, 0.12);
}

.buttons-soft_square .hero-actions .btn,
.buttons-soft_square .lcv-actions .btn {
    border-radius: 12px;
}

.buttons-minimal .hero-actions .btn,
.buttons-minimal .lcv-actions .btn {
    border-radius: 0;
}

.music-toggle {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1400;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(var(--wedding-blur));
    box-shadow: 0 14px 28px rgba(35, 15, 19, 0.2);
}

.music-toggle.is-playing {
    background: var(--theme-primary);
}

.premium-main {
    position: relative;
    z-index: 1;
    background:
        radial-gradient(circle at 82% 12%, rgba(217, 106, 146, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 242, 248, 0.98));
}

.premium-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    transform: translateY(-42px);
    position: relative;
    z-index: 3;
}

.premium-stats article,
.story-card,
.detail-panels article,
.premium-schedule article,
.premium-form,
.premium-upload,
.wish-grid article,
.premium-faq details {
    border: 1px solid rgba(232, 210, 220, 0.8);
    border-radius: var(--wedding-radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 48px rgba(75, 40, 52, 0.08);
    backdrop-filter: blur(var(--wedding-blur));
}

.premium-stats article {
    padding: 1rem;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.premium-stats article:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(75, 40, 52, 0.12);
}

.premium-stats strong,
.premium-stats a {
    display: block;
    color: var(--theme-primary);
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
}

.premium-stats span {
    color: var(--muted);
    font-size: 0.84rem;
}

.premium-section {
    position: relative;
    padding: 5.4rem 0;
}

.premium-heading {
    max-width: 700px;
    margin-bottom: 1.65rem;
}

.premium-heading span {
    display: inline-block;
    margin-bottom: 0.42rem;
    color: var(--theme-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 800;
}

.premium-heading .upload-section-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(201, 154, 78, 0.2);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 42px rgba(91, 46, 61, 0.12);
}

.premium-heading .upload-section-logo img {
    display: block;
    width: auto;
    height: 60px;
    object-fit: contain;
}

.premium-heading h2 {
    margin: 0;
    font-family: "Playfair Display", "Cormorant Garamond", serif;
    font-size: clamp(2rem, 5vw, 4rem);
}

.premium-heading p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.premium-heading::after {
    content: "";
    display: block;
    width: 92px;
    height: 1px;
    margin-top: 1rem;
    background: linear-gradient(90deg, transparent, var(--theme-primary), var(--gold), transparent);
}

.story-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.story-card {
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -52px;
    top: -52px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-primary), transparent 84%);
}

.story-card time {
    color: var(--theme-primary);
    font-weight: 800;
    font-size: 0.8rem;
}

.story-card h3 {
    margin: 0.55rem 0 0.42rem;
    font-size: 1.28rem;
}

.story-card p {
    margin: 0;
    color: var(--muted);
}

.details-section,
.lcv-section,
.gallery-section,
.faq-section {
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 218, 229, 0.32), transparent 30%),
        linear-gradient(180deg, rgba(255, 250, 253, 0.94), rgba(255, 234, 243, 0.62));
}

.details-layout {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 1.2rem;
    align-items: start;
}

.detail-panels {
    display: grid;
    gap: 0.8rem;
}

.detail-panels article {
    padding: 1.1rem;
}

.detail-panels small {
    color: var(--theme-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-panels strong,
.detail-panels span {
    display: block;
}

.detail-panels strong {
    margin-top: 0.35rem;
    font-size: 1.1rem;
}

.detail-panels span {
    color: var(--muted);
}

.detail-panels a {
    display: inline-block;
    margin-top: 0.65rem;
    color: var(--theme-primary);
    font-weight: 800;
    text-decoration: none;
}

.premium-schedule {
    display: grid;
    gap: 0.75rem;
}

.premium-schedule article {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1rem;
    padding: 1rem;
}

.premium-schedule time {
    color: var(--theme-primary);
    font-weight: 900;
}

.premium-schedule h3,
.premium-schedule p {
    margin: 0;
}

.premium-schedule p {
    color: var(--muted);
}

.form-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1.2rem;
    align-items: start;
}

.premium-form,
.premium-upload {
    padding: 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 249, 251, 0.74)),
        radial-gradient(circle at 0% 0%, rgba(255, 211, 225, 0.42), transparent 34%);
}

.premium-form fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    display: none;
}

.premium-form fieldset.is-active {
    display: grid;
    gap: 0.85rem;
}

.premium-form label,
.premium-upload label {
    display: grid;
    gap: 0.38rem;
    color: #6f5962;
    font-weight: 800;
    font-size: 0.88rem;
}

.premium-form input,
.premium-form select,
.premium-form textarea,
.premium-upload input {
    width: 100%;
    border: 1px solid #ecd2df;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.75rem 0.82rem;
    color: var(--ink);
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus,
.premium-upload input:focus {
    outline: 0;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem rgba(217, 106, 146, 0.16);
}

.premium-checks {
    display: grid;
    gap: 0.45rem;
}

.premium-checks label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
}

.premium-checks input {
    width: auto;
}

.lcv-progress {
    height: 5px;
    border-radius: 999px;
    background: #f4dbe6;
    margin-bottom: 1rem;
    overflow: hidden;
}

.lcv-progress span {
    display: block;
    width: 33.333%;
    height: 100%;
    background: linear-gradient(90deg, var(--theme-primary), var(--gold));
    transition: width 0.28s ease;
}

.lcv-actions {
    display: flex;
    gap: 0.55rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.lcv-actions .btn-soft {
    color: var(--theme-primary);
    border-color: color-mix(in srgb, var(--theme-primary), transparent 56%);
    background: rgba(255, 255, 255, 0.78);
}

.premium-upload p {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.premium-upload .upload-privacy-note {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin-top: 0.8rem;
    border: 1px solid color-mix(in srgb, var(--theme-primary), transparent 78%);
    border-radius: 16px;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 242, 248, 0.72));
    color: #72515b;
    font-size: 0.84rem;
    line-height: 1.55;
}

.premium-upload .upload-privacy-note::before {
    content: "i";
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-primary), transparent 84%);
    color: var(--theme-primary);
    font-weight: 900;
    font-size: 0.78rem;
}

.premium-upload .filepond--panel-root {
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed rgba(217, 106, 146, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.premium-upload .filepond--drop-label {
    color: #76545f;
    font-weight: 800;
}

.upload-success,
.upload-error {
    margin-top: 0.9rem;
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
}

.upload-success {
    background: linear-gradient(135deg, #eef9f2, #fff4df);
    color: #37613e;
    border: 1px solid #d9e7bb;
    box-shadow: 0 14px 32px rgba(82, 117, 72, 0.12);
}

.upload-error {
    background: #fff0f0;
    color: #9c3b44;
    border: 1px solid #e8bcc2;
}

.premium-masonry {
    columns: 3;
    column-gap: 0.85rem;
}

.premium-masonry a {
    display: block;
    position: relative;
    margin-bottom: 0.85rem;
    break-inside: avoid;
    border-radius: var(--wedding-radius);
    overflow: hidden;
    box-shadow: 0 20px 42px rgba(59, 27, 37, 0.15);
}

.premium-masonry img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.premium-masonry a:hover img {
    transform: scale(1.045);
}

.premium-masonry span {
    position: absolute;
    inset: auto 0 0;
    color: #fff;
    padding: 0.8rem;
    background: linear-gradient(180deg, transparent, rgba(18, 8, 12, 0.76));
}

.wish-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.wish-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 0.85rem;
    margin: 0 auto 1.1rem;
    padding: 1rem;
    border: 1px solid rgba(232, 210, 220, 0.82);
    border-radius: var(--wedding-radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 52px rgba(75, 40, 52, 0.08);
    backdrop-filter: blur(var(--wedding-blur));
}

.wish-form label {
    display: grid;
    gap: 0.35rem;
}

.wish-form span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wish-form input,
.wish-form select,
.wish-form textarea {
    width: 100%;
    border: 1px solid rgba(200, 160, 170, 0.36);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    padding: 0.86rem 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wish-form input:focus,
.wish-form select:focus,
.wish-form textarea:focus {
    border-color: color-mix(in srgb, var(--theme-primary), #fff 10%);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-primary), transparent 82%);
    background: #fff;
}

.wish-message-field,
.wish-form button {
    grid-column: 1 / -1;
}

.wish-form button {
    justify-self: end;
}

.wish-grid article {
    padding: 1rem;
}

.wish-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-primary), transparent 82%);
    color: var(--theme-primary);
    font-size: 0.74rem;
    font-weight: 900;
}

.wish-grid strong {
    color: var(--theme-primary);
}

.wish-grid p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.premium-faq {
    display: grid;
    gap: 0.65rem;
}

.premium-faq details {
    padding: 0.9rem 1rem;
}

.premium-faq summary {
    cursor: pointer;
    color: var(--theme-ink);
    font-weight: 800;
}

.premium-faq p {
    margin: 0.65rem 0 0;
    color: var(--muted);
}

.romantic-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.romantic-particles span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 0 18px rgba(255, 220, 235, 0.82);
    animation: particleFloat 9s linear infinite;
}

.hero-petals {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-petals span {
    position: absolute;
    width: 18px;
    height: 12px;
    border-radius: 100% 0 100% 0;
    background: linear-gradient(135deg, rgba(255, 214, 225, 0.82), rgba(255, 240, 206, 0.5));
    filter: blur(0.1px);
    opacity: 0.68;
    animation: petalDrift 14s ease-in-out infinite;
}

.hero-petals span:nth-child(1) {
    left: 10%;
    top: 32%;
    animation-delay: -1s;
}

.hero-petals span:nth-child(2) {
    left: 28%;
    top: 18%;
    transform: scale(0.8) rotate(22deg);
    animation-delay: -4s;
}

.hero-petals span:nth-child(3) {
    left: 62%;
    top: 22%;
    transform: scale(1.2) rotate(-18deg);
    animation-delay: -7s;
}

.hero-petals span:nth-child(4) {
    left: 78%;
    top: 45%;
    transform: scale(0.72) rotate(40deg);
    animation-delay: -10s;
}

.hero-petals span:nth-child(5) {
    left: 48%;
    top: 62%;
    transform: scale(0.92) rotate(-34deg);
    animation-delay: -12s;
}

.scroll-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    margin-top: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.scroll-indicator span {
    position: relative;
    width: 24px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
}

.scroll-indicator span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
    animation: scrollDot 1.8s ease-in-out infinite;
}

.romantic-confetti {
    position: fixed;
    top: -14px;
    z-index: 5001;
    width: 10px;
    height: 14px;
    border-radius: 60% 0 60% 0;
    background: var(--confetti-color, #f5a1bd);
    pointer-events: none;
    animation: confettiFall 1.8s ease-in forwards;
}

@keyframes particleFloat {
    from {
        transform: translate3d(0, 26px, 0);
        opacity: 0;
    }
    20% {
        opacity: 0.9;
    }
    to {
        transform: translate3d(18px, -120px, 0);
        opacity: 0;
    }
}

@keyframes petalDrift {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.72;
    }
    50% {
        transform: translate3d(34px, -42px, 0) rotate(50deg);
    }
    100% {
        transform: translate3d(-28px, -130px, 0) rotate(120deg);
        opacity: 0;
    }
}

@keyframes scrollDot {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    35% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes confettiFall {
    to {
        transform: translate3d(var(--confetti-x, 0), 105vh, 0) rotate(520deg);
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .story-track,
    .wish-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .details-layout,
    .form-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .floating-copy {
        display: none;
    }
}

@media (max-width: 768px) {
    .floating-nav {
        top: 0.5rem;
    }

    .hero-content {
        padding-top: 5.4rem;
    }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .w-section {
        padding: 3.4rem 0;
    }

    .surface {
        padding: 1rem;
    }

    .schedule-item {
        grid-template-columns: 1fr;
    }

    .schedule-time {
        font-size: 0.95rem;
    }

    .mobile-actions {
        display: flex;
    }

    .wedding-footer {
        padding-bottom: 6.2rem;
    }

    .premium-hero {
        min-height: 94svh;
    }

    .premium-hero-inner {
        padding: 6.6rem 1rem 5.2rem;
    }

    .premium-hero h1 {
        font-size: clamp(2.85rem, 17vw, 5.2rem);
    }

    .hero-meta,
    .hero-romance-tags {
        justify-content: center;
    }

    .premium-stats,
    .story-track,
    .wish-grid {
        grid-template-columns: 1fr;
    }

    .wish-form {
        grid-template-columns: 1fr;
        padding: 0.82rem;
    }

    .wish-form button {
        justify-self: stretch;
    }

    .premium-stats {
        transform: translateY(-28px);
    }

    .premium-section {
        padding: 3.6rem 0;
    }

    .premium-schedule article {
        grid-template-columns: 1fr;
    }

    .premium-masonry {
        columns: 1;
    }

    .music-toggle {
        right: 1rem;
        bottom: 4.6rem;
    }

    .scroll-indicator {
        justify-content: center;
        width: 100%;
    }

    .lcv-actions {
        flex-direction: column;
    }

    .lcv-actions .btn {
        width: 100%;
    }
}

@media (min-width: 740px) {
    .masonry {
        columns: 2;
    }
}

@media (min-width: 1120px) {
    .masonry {
        columns: 3;
    }
}

/* --- PREMIUM OVERHAULS & WIDGETS --- */

/* 1. Personalized Greetings Modal */
.greetings-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(253, 244, 247, 0.96), rgba(255, 238, 244, 0.94));
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.greetings-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.greetings-card {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 30px 70px rgba(217, 106, 146, 0.18), inset 0 1px rgba(255, 255, 255, 0.4);
    transform: translateY(20px);
    animation: greetCardEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes greetCardEnter {
    to {
        transform: translateY(0);
    }
}

.greetings-heart {
    font-size: 2.5rem;
    color: var(--theme-primary, #d96a92);
    margin-bottom: 1.5rem;
    animation: greetHeartBeat 1.4s infinite ease-in-out;
}

@keyframes greetHeartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.greetings-card h2 {
    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-size: clamp(2rem, 6vw, 3rem);
    margin: 0 0 1rem;
    color: var(--theme-ink, #523740);
    line-height: 1.1;
}

.greetings-guest-name {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 7vw, 3.4rem);
    color: var(--theme-primary, #d96a92);
    font-style: italic;
    font-weight: 700;
    margin: 0.5rem 0 1.5rem;
}

.greetings-card p {
    font-size: 1.05rem;
    color: var(--muted, #7f626c);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.greetings-btn {
    display: inline-block;
    border: 0;
    background: linear-gradient(135deg, var(--theme-primary, #d96a92), #e0b66f);
    color: #fff;
    font-weight: 700;
    padding: 0.95rem 2.2rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(217, 106, 146, 0.28);
    transition: transform 0.25s, box-shadow 0.25s;
}

.greetings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(217, 106, 146, 0.36);
}


/* 2. Premium Modals (Table Finder, Lightbox Comments) */
.premium-modal {
    position: fixed;
    inset: 0;
    z-index: 4500;
    background: rgba(30, 20, 22, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.premium-modal.show {
    opacity: 1;
    visibility: visible;
}

.premium-modal-card {
    max-width: 550px;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-modal.show .premium-modal-card {
    transform: translateY(0);
}

.premium-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.premium-modal-header h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    color: var(--theme-ink, #523740);
}

.premium-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--muted, #7f626c);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    transition: color 0.2s;
}

.premium-modal-close:hover {
    color: var(--theme-primary, #d96a92);
}

.premium-modal-body {
    padding: 1.5rem;
}

/* Table Finder Styles */
.table-finder-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.table-finder-search input {
    flex: 1;
    border: 1px solid #ecd2df;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    color: var(--ink);
}

.table-finder-search button {
    border: 0;
    background: var(--theme-primary, #d96a92);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.table-finder-search button:hover {
    background: var(--accent-deep, #b84875);
}

.table-finder-result {
    border-radius: 18px;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 246, 0.7));
    border: 1px solid rgba(217, 106, 146, 0.15);
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.table-result-card {
    animation: greetCardEnter 0.4s ease forwards;
}

.table-result-icon {
    font-size: 2.2rem;
    color: var(--theme-primary, #d96a92);
    margin-bottom: 0.5rem;
}

.table-result-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--theme-primary, #d96a92);
    margin: 0.25rem 0 0.5rem;
}


/* 3. Photo Engagement UI on Gallery & Lightbox */
.gallery-item-engagement {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    pointer-events: auto;
}

.eng-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--theme-ink, #523740);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, color 0.2s;
}

.eng-badge:hover {
    background: #fff;
    transform: scale(1.05);
}

.eng-badge.liked {
    color: var(--theme-primary, #d96a92);
}

.eng-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Lightbox Engagement Overlay Panel */
.lightbox-engagement-panel {
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 0 0 14px 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: var(--theme-ink, #523740);
    z-index: 2;
    box-sizing: border-box;
}

.lightbox-eng-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.lightbox-action-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--theme-ink, #523740);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.lightbox-action-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
}

.lightbox-action-btn.liked {
    background: color-mix(in srgb, var(--theme-primary, #d96a92), transparent 90%);
    border-color: var(--theme-primary, #d96a92);
    color: var(--theme-primary, #d96a92);
}

.lightbox-action-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.lightbox-comments-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1rem;
}

.lightbox-comments-list {
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-right: 0.5rem;
    text-align: left;
}

.lightbox-comments-list::-webkit-scrollbar {
    width: 4px;
}
.lightbox-comments-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.comment-item {
    background: rgba(0, 0, 0, 0.025);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.comment-author {
    font-weight: 800;
    color: var(--theme-primary, #d96a92);
    margin-bottom: 0.15rem;
    font-size: 0.82rem;
}

.comment-text {
    color: var(--theme-ink, #523740);
    line-height: 1.4;
}

.comment-form {
    display: flex;
    gap: 0.5rem;
}

.comment-form input[name="guest_name"] {
    width: 140px;
}

.comment-form input {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    outline: none;
    background: #fff;
    color: #333;
}

.comment-form input:focus {
    border-color: var(--theme-primary, #d96a92);
}

.comment-form button {
    border: 0;
    background: var(--theme-primary, #d96a92);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.comment-form button:hover {
    background: var(--accent-deep, #b84875);
}

.lightbox-modal {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.lightbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: min(980px, 94vw);
    width: 100%;
}

.lightbox-modal .lightbox-image {
    max-width: 100%;
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
}

/* Floating Vinyl Record Player */
.vinyl-player-container {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1400;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    direction: ltr;
}

.vinyl-record {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle, #333 30%, #111 60%, #000 70%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-record::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--theme-primary, #d96a92);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.vinyl-record::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    z-index: 3;
}

/* Grooves on vinyl */
.vinyl-grooves {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px double rgba(255, 255, 255, 0.05);
    pointer-events: none;
}
.vinyl-grooves::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.vinyl-record.is-playing {
    animation: rotateVinyl 3s linear infinite;
}

.vinyl-record:hover {
    transform: scale(1.08);
}

/* Vinyl Player Controls Panel */
.vinyl-controls-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transform: translateX(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vinyl-player-container:hover .vinyl-controls-panel {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.vinyl-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--theme-ink, #523740);
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.vinyl-btn:hover {
    color: var(--theme-primary, #d96a92);
}

/* Volume Slider */
.vinyl-volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.vinyl-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--theme-primary, #d96a92);
    cursor: pointer;
    transition: transform 0.1s;
}

.vinyl-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

@keyframes rotateVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hide old music toggle if still present */
.music-toggle {
    display: none !important;
}

/* Background Preset Styles */

/* Editorial Background Preset */
.premium-page.bg-editorial {
    background: #fbf9f5;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(201, 154, 78, 0.08), transparent 35%),
        radial-gradient(circle at 90% 90%, rgba(217, 106, 146, 0.05), transparent 40%),
        linear-gradient(180deg, #faf7f2 0%, #f4ede2 100%);
    color: #4a3c31;
}

.premium-page.bg-editorial .story-card,
.premium-page.bg-editorial .detail-panels article,
.premium-page.bg-editorial .premium-schedule article,
.premium-page.bg-editorial .premium-form,
.premium-page.bg-editorial .premium-upload,
.premium-page.bg-editorial .wish-grid article,
.premium-page.bg-editorial .premium-faq details {
    background: rgba(254, 253, 251, 0.9);
    border: 1px solid rgba(201, 154, 78, 0.32);
    box-shadow: 0 12px 32px rgba(111, 87, 58, 0.04);
}

.premium-page.bg-editorial .floating-nav,
.premium-page.bg-editorial .vinyl-controls-panel,
.premium-page.bg-editorial .emoji-options,
.premium-page.bg-editorial .countdown div {
    background: rgba(254, 253, 251, 0.88);
    border-color: rgba(201, 154, 78, 0.28);
}

.premium-page.bg-editorial .floating-links a:hover,
.premium-page.bg-editorial .floating-links a.is-active {
    background: rgba(201, 154, 78, 0.12);
    color: #8c6328;
}

.premium-page.bg-editorial .floating-copy {
    background: linear-gradient(135deg, #fdfbfa, #f4ede2);
    color: #6d5236;
    border-color: rgba(201, 154, 78, 0.45);
}

/* Clean Background Preset */
.premium-page.bg-clean {
    background: #ffffff;
    background-image: linear-gradient(180deg, #ffffff 0%, #f7f9fa 100%);
    color: #333333;
}

.premium-page.bg-clean .story-card,
.premium-page.bg-clean .detail-panels article,
.premium-page.bg-clean .premium-schedule article,
.premium-page.bg-clean .premium-form,
.premium-page.bg-clean .premium-upload,
.premium-page.bg-clean .wish-grid article,
.premium-page.bg-clean .premium-faq details {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.025);
}

.premium-page.bg-clean .floating-nav,
.premium-page.bg-clean .vinyl-controls-panel,
.premium-page.bg-clean .emoji-options,
.premium-page.bg-clean .countdown div {
    background: rgba(255, 255, 255, 0.92);
    border-color: #e1e8ed;
}

.premium-page.bg-clean .floating-links a:hover,
.premium-page.bg-clean .floating-links a.is-active {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.premium-page.bg-clean .floating-copy {
    background: #ffffff;
    color: #333;
    border-color: #ccd6dd;
}

/* Dark Luxury Background Preset */
.premium-page.bg-dark_luxury {
    background: #0d0a09;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(201, 154, 78, 0.14), transparent 35%),
        radial-gradient(circle at 85% 85%, rgba(217, 106, 146, 0.08), transparent 35%),
        linear-gradient(180deg, #151110 0%, #080606 100%);
    color: #eae3db;
}

.premium-page.bg-dark_luxury .story-card,
.premium-page.bg-dark_luxury .detail-panels article,
.premium-page.bg-dark_luxury .premium-schedule article,
.premium-page.bg-dark_luxury .premium-form,
.premium-page.bg-dark_luxury .premium-upload,
.premium-page.bg-dark_luxury .wish-grid article,
.premium-page.bg-dark_luxury .premium-faq details {
    background: rgba(26, 20, 18, 0.78);
    border: 1px solid rgba(201, 154, 78, 0.22);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

.premium-page.bg-dark_luxury .floating-nav,
.premium-page.bg-dark_luxury .vinyl-controls-panel,
.premium-page.bg-dark_luxury .emoji-options,
.premium-page.bg-dark_luxury .countdown div {
    background: rgba(26, 20, 18, 0.82);
    border-color: rgba(201, 154, 78, 0.28);
}

.premium-page.bg-dark_luxury .floating-brand,
.premium-page.bg-dark_luxury .floating-links a,
.premium-page.bg-dark_luxury .vinyl-btn {
    color: #eae3db;
}

.premium-page.bg-dark_luxury .floating-links a:hover,
.premium-page.bg-dark_luxury .floating-links a.is-active {
    background: rgba(201, 154, 78, 0.18);
    color: #ffffff;
}

.premium-page.bg-dark_luxury .floating-copy {
    background: linear-gradient(135deg, #261f1a, #161210);
    color: #f4dfb8;
    border-color: rgba(201, 154, 78, 0.45);
}

.premium-page.bg-dark_luxury .premium-heading h2,
.premium-page.bg-dark_luxury .section-head h2,
.premium-page.bg-dark_luxury h1,
.premium-page.bg-dark_luxury h2,
.premium-page.bg-dark_luxury h3 {
    color: #fcf9f5 !important;
}

.premium-page.bg-dark_luxury .text-muted,
.premium-page.bg-dark_luxury .section-head p,
.premium-page.bg-dark_luxury .premium-heading p,
.premium-page.bg-dark_luxury .story-card p,
.premium-page.bg-dark_luxury .timeline-item p,
.premium-page.bg-dark_luxury .details-section span {
    color: #bcada8 !important;
}

.premium-page.bg-dark_luxury input,
.premium-page.bg-dark_luxury textarea,
.premium-page.bg-dark_luxury select {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(201, 154, 78, 0.25) !important;
    color: #ffffff !important;
}

.premium-page.bg-dark_luxury .timeline::before {
    background: linear-gradient(var(--theme-primary, var(--accent)), rgba(201, 154, 78, 0.12)) !important;
}

/* Modal and Greetings Overlay Overrides */
.premium-page.bg-dark_luxury .premium-modal-card,
.premium-page.bg-dark_luxury .greetings-card {
    background: rgba(26, 20, 18, 0.94) !important;
    border-color: rgba(201, 154, 78, 0.3) !important;
    color: #eae3db !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.premium-page.bg-dark_luxury .premium-modal-header {
    border-bottom-color: rgba(201, 154, 78, 0.15) !important;
}

.premium-page.bg-dark_luxury .table-finder-search input {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(201, 154, 78, 0.25) !important;
    color: #ffffff !important;
}

.premium-page.bg-dark_luxury .table-finder-result {
    background: linear-gradient(135deg, rgba(20, 15, 12, 0.9), rgba(40, 30, 25, 0.7)) !important;
    border-color: rgba(201, 154, 78, 0.18) !important;
}

.premium-page.bg-editorial .premium-modal-card,
.premium-page.bg-editorial .greetings-card {
    background: rgba(254, 253, 251, 0.96) !important;
    border-color: rgba(201, 154, 78, 0.4) !important;
    color: #4a3c31 !important;
    box-shadow: 0 30px 60px rgba(111, 87, 58, 0.15);
}

.premium-page.bg-editorial .premium-modal-header {
    border-bottom-color: rgba(201, 154, 78, 0.18) !important;
}

.premium-page.bg-editorial .table-finder-search input {
    border-color: rgba(201, 154, 78, 0.3) !important;
}

.premium-page.bg-editorial .table-finder-result {
    background: linear-gradient(135deg, rgba(254, 253, 251, 0.95), rgba(250, 245, 238, 0.8)) !important;
    border-color: rgba(201, 154, 78, 0.22) !important;
}

/* --- DETAILED PREMIUM DESIGN SYSTEM OVERRIDES & ANIMATIONS --- */

/* 1. Shimmering Gold Text for Titles */
.premium-hero h1, 
.premium-heading h2,
.wedding-footer h3 {
    background: linear-gradient(135deg, #ffffff 0%, #fff1d6 25%, #cc9a4d 50%, #fff1d6 75%, #ffffff 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent !important;
    animation: goldTextShimmer 8s linear infinite !important;
    text-shadow: none !important;
}
@keyframes goldTextShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 200% 50%; }
}

.bg-dark_luxury .premium-hero h1,
.bg-dark_luxury .premium-heading h2 {
    background: linear-gradient(135deg, #fff0e0 0%, #ffdca8 30%, #cc9a4d 50%, #ffdca8 70%, #fff0e0 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 2. Glassmorphism & Gold Foil Card Overrides */
.premium-stats article,
.story-card,
.detail-panels article,
.premium-schedule article,
.premium-form,
.premium-upload,
.wish-grid article,
.premium-faq details {
    border: 1px solid transparent !important;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.74)), 
        linear-gradient(135deg, rgba(201, 154, 78, 0.4) 0%, rgba(244, 223, 184, 0.15) 50%, rgba(201, 154, 78, 0.4) 100%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
    box-shadow: 0 20px 50px -12px rgba(75, 40, 52, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bg-dark_luxury .premium-stats article,
.bg-dark_luxury .story-card,
.bg-dark_luxury .detail-panels article,
.bg-dark_luxury .premium-schedule article,
.bg-dark_luxury .premium-form,
.bg-dark_luxury .premium-upload,
.bg-dark_luxury .wish-grid article,
.bg-dark_luxury .premium-faq details {
    background-image: 
        linear-gradient(rgba(26, 20, 18, 0.82), rgba(26, 20, 18, 0.78)), 
        linear-gradient(135deg, rgba(201, 154, 78, 0.3) 0%, rgba(201, 154, 78, 0.1) 50%, rgba(201, 154, 78, 0.3) 100%) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4) !important;
}

.premium-stats article:hover,
.story-card:hover,
.detail-panels article:hover,
.premium-schedule article:hover,
.wish-grid article:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 35px 70px -15px rgba(201, 154, 78, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.bg-dark_luxury .premium-stats article:hover,
.bg-dark_luxury .story-card:hover,
.bg-dark_luxury .detail-panels article:hover,
.bg-dark_luxury .premium-schedule article:hover,
.bg-dark_luxury .wish-grid article:hover {
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.55), 0 0 20px rgba(201, 154, 78, 0.12) !important;
}

/* 3. Sleek Inputs & Focus Highlights */
.premium-form input,
.premium-form select,
.premium-form textarea,
.premium-upload input,
.wish-form input,
.wish-form select,
.wish-form textarea,
.table-finder-search input {
    border: 1px solid rgba(201, 154, 78, 0.22) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    color: var(--theme-ink, #523740) !important;
}

.bg-dark_luxury .premium-form input,
.bg-dark_luxury .premium-form select,
.bg-dark_luxury .premium-form textarea,
.bg-dark_luxury .premium-upload input,
.bg-dark_luxury .wish-form input,
.bg-dark_luxury .wish-form select,
.bg-dark_luxury .wish-form textarea,
.bg-dark_luxury .table-finder-search input {
    border-color: rgba(201, 154, 78, 0.25) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus,
.premium-upload input:focus,
.wish-form input:focus,
.wish-form select:focus,
.wish-form textarea:focus,
.table-finder-search input:focus {
    border-color: var(--theme-primary, #d96a92) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-primary, #d96a92), transparent 86%), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-1px);
}

.bg-dark_luxury .premium-form input:focus,
.bg-dark_luxury .premium-form select:focus,
.bg-dark_luxury .premium-form textarea:focus,
.bg-dark_luxury .premium-upload input:focus,
.bg-dark_luxury .wish-form input:focus,
.bg-dark_luxury .wish-form select:focus,
.bg-dark_luxury .wish-form textarea:focus,
.bg-dark_luxury .table-finder-search input:focus {
    background: rgba(18, 14, 12, 0.95) !important;
    box-shadow: 0 0 0 4px rgba(201, 154, 78, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* 4. Wax Sealed 3D Envelope Greeting Modal */
.greetings-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(254, 250, 252, 0.96), rgba(255, 240, 246, 0.94)) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.greetings-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.96);
}

.envelope-wrapper {
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    z-index: 10000;
}

.envelope {
    position: relative;
    width: 100%;
    height: 360px;
    background: transparent;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.envelope-front {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fefdfc 0%, #f9f2eb 100%);
    border: 1px solid rgba(201, 154, 78, 0.28);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(75, 40, 52, 0.14);
    z-index: 4;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s, box-shadow 0.5s ease;
}

.envelope.opened .envelope-front {
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(75, 40, 52, 0.05);
}

.envelope-flap {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 52%;
    background: linear-gradient(180deg, #fffefe 0%, #f5ebd5 100%);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transform-origin: top;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 6;
    filter: drop-shadow(0 4px 6px rgba(75, 40, 52, 0.08));
    border-bottom: 1px solid rgba(201, 154, 78, 0.15);
}

.envelope.opened .envelope-flap {
    transform: rotateX(180deg);
    z-index: 2;
}

.envelope-pocket {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #fefbfc 40%, #f1e4d7 100%);
    clip-path: polygon(0 40%, 50% 90%, 100% 40%, 100% 100%, 0 100%);
    z-index: 5;
    border-top: 1px solid rgba(201, 154, 78, 0.12);
}

.envelope-wax-seal {
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%);
    width: 76px; height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--theme-accent, #ffd8e6) 0%, var(--theme-primary, #d96a92) 60%, var(--accent-deep, #b84875) 100%);
    box-shadow: 
        0 6px 20px rgba(158, 57, 87, 0.4), 
        inset 0 2px 4px rgba(255,255,255,0.4), 
        inset 0 -2px 4px rgba(0,0,0,0.3);
    z-index: 7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px double rgba(255, 255, 255, 0.2);
}

.envelope-wax-seal::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.envelope-wax-seal:hover {
    transform: translate(-50%, -50%) scale(1.08) rotate(15deg);
    box-shadow: 
        0 8px 26px rgba(158, 57, 87, 0.5), 
        inset 0 2px 4px rgba(255,255,255,0.5);
}

.envelope.opened .envelope-wax-seal {
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    opacity: 0;
    pointer-events: none;
}

.wax-seal-heart {
    color: rgba(255,255,255,0.92);
    font-size: 1.8rem;
    text-shadow: 0 -1px 2px rgba(0,0,0,0.4);
    user-select: none;
    animation: greetHeartPulse 1.6s infinite ease-in-out;
}
@keyframes greetHeartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.envelope-invitation-snippet {
    position: absolute;
    bottom: 12%; left: 0; right: 0;
    text-align: center;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.envelope-to {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8c735c;
    font-weight: 800;
}

.envelope-guest-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.95rem;
    font-style: italic;
    font-weight: 700;
    color: #5c4731;
}

/* Slide-out Invitation Letter */
.envelope-letter {
    position: absolute;
    bottom: 5px;
    left: 3%;
    width: 94%;
    height: 94%;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(201, 154, 78, 0.28) !important;
    border-radius: 20px !important;
    box-shadow: 0 5px 15px rgba(75, 40, 52, 0.04) !important;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.2rem !important;
    opacity: 0;
    transform: translateY(0) scale(0.95);
    transition: 
        transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s, 
        opacity 0.6s ease 0.5s, 
        box-shadow 0.6s ease 0.5s;
    pointer-events: none;
}

.envelope.opened .envelope-letter {
    transform: translateY(-46%) scale(1.03);
    opacity: 1;
    z-index: 8;
    box-shadow: 0 35px 80px rgba(75, 40, 52, 0.22) !important;
    pointer-events: auto;
}

.greetings-card-guest-name {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 2.3rem;
    color: var(--theme-primary, #d96a92);
    font-style: italic;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* Adjustments for dark_luxury overlay */
.bg-dark_luxury .greetings-overlay {
    background: linear-gradient(135deg, rgba(16, 12, 10, 0.98), rgba(26, 20, 18, 0.96)) !important;
}

.bg-dark_luxury .envelope-front {
    background: linear-gradient(135deg, #1f1816 0%, #15100f 100%);
    border-color: rgba(201, 154, 78, 0.35);
}

.bg-dark_luxury .envelope-flap {
    background: linear-gradient(180deg, #2b211f 0%, #1c1514 100%);
    border-bottom-color: rgba(201, 154, 78, 0.25);
}

.bg-dark_luxury .envelope-pocket {
    background: linear-gradient(180deg, #1e1715 40%, #120e0d 100%);
    border-top-color: rgba(201, 154, 78, 0.2);
}

.bg-dark_luxury .envelope-to {
    color: #ffdca8;
}

.bg-dark_luxury .envelope-guest-name {
    color: #f7e7d0;
}

.bg-dark_luxury .envelope-letter {
    background: rgba(26, 20, 18, 0.96) !important;
    border-color: rgba(201, 154, 78, 0.35) !important;
}

.bg-dark_luxury .envelope-letter h2 {
    color: #fff !important;
}

.bg-dark_luxury .envelope-letter p {
    color: #bcada8 !important;
}

/* 5. Scroll-driven timeline filling effect & polaroid style */
.story-track::before {
    background: linear-gradient(to bottom, rgba(201, 154, 78, 0) 0%, #c99a4e 15%, #c99a4e 85%, rgba(201, 154, 78, 0) 100%) !important;
}

.story-card-image {
    border: 8px solid #fff;
    border-bottom: 30px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 4px !important;
    transform: rotate(calc(var(--rotation, 0) * 1deg));
    margin-top: 20px !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.story-card:nth-child(odd) .story-card-image {
    --rotation: -2;
}

.story-card:nth-child(even) .story-card-image {
    --rotation: 2;
}

.story-card:hover .story-card-image {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.bg-dark_luxury .story-card-image {
    border-color: #1f1816;
    border-bottom-color: #1f1816;
}

/* Premium micro-ornaments styling */
.section-title-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}
.section-title-ornament::before,
.section-title-ornament::after {
    content: "";
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--theme-primary, #d96a92));
}
.section-title-ornament::after {
    background: linear-gradient(to left, transparent, var(--theme-primary, #d96a92));
}
.section-title-ornament span {
    font-size: 0.9rem;
    color: var(--theme-primary, #d96a92);
}

/* Lightbox Premium Glass styling */
.lightbox-modal {
    background: rgba(16, 12, 10, 0.92) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lightbox-engagement-panel {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0 0 20px 20px !important;
}

.bg-dark_luxury .lightbox-engagement-panel {
    background: rgba(26, 20, 18, 0.94) !important;
    border-color: rgba(201, 154, 78, 0.25);
}

@media (max-width: 768px) {
    .envelope {
        height: 310px;
    }
    .envelope-guest-name {
        font-size: 1.55rem;
    }
    .envelope.opened .envelope-letter {
        transform: translateY(-40%) scale(1.01);
        padding: 1.5rem !important;
    }
    .greetings-card-guest-name {
        font-size: 1.85rem;
    }
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL BOTTOM SHEET & DOCK CORE ARCHITECTURE
   ───────────────────────────────────────────────────────────── */
.dp-bottom-sheet-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.dp-bottom-sheet-overlay.is-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.dp-sheet-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dp-sheet-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: 36px 36px 0 0;
    box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.dp-bottom-sheet-overlay.is-active .dp-sheet-container {
    transform: translateY(0);
}

