.glass-panel {
    position: relative;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 252, 246, 0.7));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 12px 34px rgba(56, 39, 26, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.52) inset;
}

.soft-card {
    position: relative;
    background:
        linear-gradient(170deg, #ffffff 0%, #fff9f2 56%, #fdf4ea 100%);
    border-radius: 1.5rem;
    box-shadow:
        0 12px 36px -16px rgba(86, 58, 32, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border: 1px solid rgba(208, 172, 132, 0.2);
}

.cta-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.cta-button:hover {
    transform: translateY(-1px);
}

.cta-button:active {
    transform: scale(0.97);
}

.cta-button-primary,
.cta-button-primary:visited {
    color: #fffdf9;
    background: linear-gradient(135deg, #516887 0%, #425673 100%);
    box-shadow: 0 18px 32px -18px rgba(61, 81, 112, 0.72);
}

.cta-button-primary:hover {
    background: linear-gradient(135deg, #495f7d 0%, #394d68 100%);
    box-shadow: 0 20px 36px -16px rgba(61, 81, 112, 0.8);
}

.cta-button-outline,
.cta-button-outline:visited {
    color: #4a5d7a;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(74, 93, 122, 0.16);
    box-shadow: 0 14px 28px -22px rgba(74, 93, 122, 0.5);
}

.cta-button-outline:hover {
    color: #fffdf9;
    background: #4a5d7a;
    border-color: #4a5d7a;
}

.cta-button-soft,
.cta-button-soft:visited {
    color: #4a5d7a;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(243, 238, 229, 0.92));
    border: 1px solid rgba(196, 177, 151, 0.24);
    box-shadow: 0 14px 30px -24px rgba(128, 102, 72, 0.45);
}

.cta-button-soft:hover {
    background: linear-gradient(180deg, rgba(244, 237, 224, 0.96), rgba(236, 229, 217, 0.98));
}

.cta-button-compact {
    min-height: 2.625rem;
    padding: 0.7rem 1.15rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.floral-bg {
    background-image: url('/templates/ethereal-union/assets/images/floral-bg.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0.15;
}

.mobile-frame {
    width: 100%;
    min-height: max(884px, 100dvh);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 216, 193, 0.46) 0%, rgba(255, 216, 193, 0) 52%),
        radial-gradient(circle at 82% 20%, rgba(176, 209, 255, 0.34) 0%, rgba(176, 209, 255, 0) 58%),
        radial-gradient(circle at 50% 90%, rgba(255, 230, 190, 0.26) 0%, rgba(255, 230, 190, 0) 50%),
        linear-gradient(165deg, #fbf8f1 0%, #f1efe8 40%, #efe8df 100%);
}

.mobile-frame::before,
.mobile-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mobile-frame::before {
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.72) 0 11%, rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 88% 24%, rgba(255, 247, 228, 0.7) 0 12%, rgba(255, 247, 228, 0) 36%),
        radial-gradient(circle at 28% 83%, rgba(255, 220, 214, 0.52) 0 9%, rgba(255, 220, 214, 0) 33%),
        radial-gradient(circle at 76% 74%, rgba(207, 228, 255, 0.52) 0 10%, rgba(207, 228, 255, 0) 33%);
    opacity: 0.72;
    z-index: 0;
    animation: frameGlow 15s ease-in-out infinite alternate;
}

.mobile-frame::after {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.4) 1.2px, transparent 1.2px),
        radial-gradient(rgba(219, 184, 131, 0.2) 1px, transparent 1px);
    background-size: 26px 26px, 38px 38px;
    background-position: 0 0, 14px 12px;
    opacity: 0.3;
    z-index: 0;
}

.cover-screen {
    position: fixed;
    inset: 0;
    z-index: 60;
    width: 100%;
    min-height: max(884px, 100dvh);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cover-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.content-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.content-active {
    opacity: 1;
    pointer-events: auto;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 100ms;
    opacity: 0;
}

.delay-200 {
    animation-delay: 200ms;
    opacity: 0;
}

.delay-300 {
    animation-delay: 300ms;
    opacity: 0;
}

.delay-400 {
    animation-delay: 400ms;
    opacity: 0;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 70;
    isolation: isolate;
    transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
}

.music-control {
    position: fixed;
    right: 1rem;
    bottom: 6rem;
    z-index: 72;
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9999px;
    color: #4a5d7a;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(252, 245, 235, 0.82));
    box-shadow: 0 16px 28px -18px rgba(56, 39, 26, 0.32);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 300ms ease, transform 200ms ease, visibility 300ms ease, background-color 200ms ease, color 200ms ease;
}

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

.music-control:active {
    transform: scale(0.95);
}

.music-control-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
}

.music-control-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.music-control.is-playing {
    color: #fffdf9;
    background: linear-gradient(135deg, #516887 0%, #425673 100%);
}

.music-control.is-playing .material-symbols-outlined {
    animation: musicPulse 1.8s ease-in-out infinite;
}

.mobile-bottom-nav-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
}

.mobile-bottom-nav-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    color: rgba(74, 93, 122, 0.62);
    transition: color 200ms ease, transform 200ms ease;
}

.mobile-nav-link:hover {
    color: #4a5d7a;
}

.mobile-nav-link:active {
    transform: scale(0.92);
}

.mobile-nav-link.is-active {
    color: #4a5d7a;
}

.mobile-nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: -0.35rem;
    width: 1.75rem;
    height: 2px;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgba(74, 93, 122, 0.15), rgba(74, 93, 122, 0.8), rgba(74, 93, 122, 0.15));
}

.mobile-nav-link.is-active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.cover-background {
    background-size: cover;
    background-position: center;
}

.cover-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(155deg, rgba(255, 249, 237, 0.72) 0%, rgba(244, 236, 226, 0.66) 40%, rgba(235, 232, 248, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.cover-screen > .relative {
    z-index: 2;
}

.floral-bg {
    opacity: 0.24;
    mix-blend-mode: multiply;
    filter: saturate(1.15);
}

#invitation-content {
    position: relative;
    z-index: 1;
}

#invitation-content > section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

#invitation-content > section::before,
#invitation-content > section::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

#invitation-content > section::before {
    width: 220px;
    height: 220px;
    top: -74px;
    right: -86px;
    border-radius: 9999px;
    background:
        radial-gradient(circle, rgba(255, 245, 229, 0.78) 0%, rgba(255, 245, 229, 0.28) 42%, rgba(255, 245, 229, 0) 72%),
        conic-gradient(from 35deg, rgba(195, 156, 109, 0.18), rgba(195, 156, 109, 0.04), rgba(195, 156, 109, 0.18));
    filter: blur(1px);
}

#invitation-content > section::after {
    width: 210px;
    height: 210px;
    bottom: -96px;
    left: -84px;
    border-radius: 9999px;
    background:
    radial-gradient(circle, rgba(213, 226, 252, 0.52) 0%, rgba(213, 226, 252, 0.2) 44%, rgba(213, 226, 252, 0) 74%),
    conic-gradient(from 210deg, rgba(132, 156, 199, 0.16), rgba(132, 156, 199, 0.03), rgba(132, 156, 199, 0.16));
}

#invitation-content > section:nth-of-type(even)::before {
    background:
        radial-gradient(circle, rgba(255, 236, 222, 0.72) 0%, rgba(255, 236, 222, 0.23) 44%, rgba(255, 236, 222, 0) 75%);
}

#invitation-content > section:nth-of-type(even)::after {
    background:
        radial-gradient(circle, rgba(230, 218, 246, 0.44) 0%, rgba(230, 218, 246, 0.16) 44%, rgba(230, 218, 246, 0) 75%);
}

#invitation-content > section > * {
    position: relative;
    z-index: 1;
}

#invitation-content > section .soft-card,
#invitation-content > section .glass-panel {
    position: relative;
    overflow: hidden;
}

#invitation-content > section .soft-card::before,
#invitation-content > section .glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.42) 45%, transparent 68%),
        radial-gradient(circle at 85% 12%, rgba(223, 196, 150, 0.2) 0 10px, transparent 11px),
        radial-gradient(circle at 90% 20%, rgba(223, 196, 150, 0.14) 0 5px, transparent 6px),
        radial-gradient(circle at 78% 18%, rgba(223, 196, 150, 0.1) 0 4px, transparent 5px);
    opacity: 0.72;
    z-index: 0;
}

#invitation-content > section .soft-card > *,
#invitation-content > section .glass-panel > * {
    position: relative;
    z-index: 1;
}

#invitation-content > section#hero::before {
    width: 290px;
    height: 290px;
    top: -110px;
    right: -100px;
}

#invitation-content > section#hero::after {
    width: 260px;
    height: 260px;
    bottom: -118px;
    left: -100px;
}

@keyframes frameGlow {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }

    100% {
        transform: scale(1.04);
        opacity: 0.82;
    }
}

@keyframes musicPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@media (min-width: 768px) {
    html,
    body {
        background:
            radial-gradient(circle at 12% 20%, rgba(255, 232, 206, 0.45), transparent 48%),
            radial-gradient(circle at 88% 30%, rgba(203, 220, 247, 0.4), transparent 44%),
            linear-gradient(180deg, #eee8dd 0%, #e6e0d6 100%);
    }

    body {
        display: flex;
        justify-content: center;
    }

    .mobile-frame {
        max-width: 430px;
        box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
    }

    .cover-screen {
        left: 50%;
        transform: translateX(-50%);
        max-width: 430px;
    }

    .mobile-bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        max-width: 430px;
    }

    .music-control {
        right: calc(50% - 215px + 1rem);
    }

    .desktop-top-nav {
        display: none !important;
    }

    .mobile-content {
        padding-top: 0 !important;
    }
}
