/* ==========================================================================
   Ajeeb & Safva Wedding Invitation Stylesheet (Luxury Card Deck Theme)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
    /* Premium Color Palette */
    --bg-color: #FAF8F5;          /* Soft Alabaster Ivory */
    --bg-gradient-start: #FCFAF7;
    --bg-gradient-end: #F4EFEB;
    
    --primary-burgundy: #5B1420;  /* Royal Burgundy */
    --deep-burgundy: #400E16;     /* Deep Maroon */
    --champagne-gold: #C5A059;    /* Antique Gold */
    --soft-gold: #D4B270;         /* Soft Gold Sheen */
    --dusty-rose: #C98B8F;        /* Dusty Rose */
    --dark-text: #2C2224;         /* Charcoal Rose */
    --white: #FFFFFF;
    
    /* Typography Fonts */
    --font-header: 'Cinzel', Georgia, serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
    --font-arabic: 'Aref Ruqaa', 'Amiri', serif;
    --font-script: 'Cormorant Garamond', Georgia, serif;
    
    /* Layout Sizes */
    --content-max-width: 960px;
    --card-max-width: 480px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-color);
    /* Luxury watermarked ivory paper texture background using SVG */
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 C44 15, 55 26, 70 30 C55 34, 44 45, 40 60 C36 45, 25 34, 10 30 C25 26, 36 15, 40 0 Z' fill='%23C5A059' fill-opacity='0.03'/%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--dark-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body.lock-scroll {
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* Accessibility: skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-burgundy);
    color: var(--bg-color);
    padding: 8px;
    z-index: 3000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-burgundy);
    border-radius: 4px;
    border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--deep-burgundy);
}

/* --------------------------------------------------------------------------
   2. REUSABLE STYLING COMPONENTS & BUTTONS
   -------------------------------------------------------------------------- */
.section-wrapper {
    width: 100%;
    position: relative;
}

/* The Core Stationery invitation-card Component */
.invitation-card {
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 C44 15, 55 26, 70 30 C55 34, 44 45, 40 60 C36 45, 25 34, 10 30 C25 26, 36 15, 40 0 Z' fill='%23C5A059' fill-opacity='0.015'/%3E%3C/svg%3E"),
        radial-gradient(circle at center, var(--white) 55%, #FAF7F2 100%);
    border: 1px solid var(--champagne-gold);
    box-shadow: 0 15px 45px rgba(74, 22, 32, 0.06);
    padding: clamp(40px, 6vh, 70px) clamp(20px, 5vw, 40px);
    position: relative;
    max-width: 580px;
    width: 92%;
    margin: 50px auto;
    border-radius: 4px;
    text-align: center;
    z-index: 2; /* Sits on top of background petals */
}

/* Thin Burgundy Inner Border for stationery cards */
.invitation-card::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    right: 6px;
    border: 1px solid rgba(91, 21, 32, 0.12);
    pointer-events: none;
    z-index: 1;
}

/* Corner Bracket Ornaments inside cards */
.card-ornament {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--champagne-gold);
    pointer-events: none;
    z-index: 3;
}

.top-left-ornament {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}
.top-right-ornament {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
}
.bottom-left-ornament {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
}
.bottom-right-ornament {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

/* Section Header Typography */
.section-title {
    color: var(--primary-burgundy);
    font-family: var(--font-header);
    font-weight: 700;
    font-size: clamp(1.6rem, 4.5vw, 2.1rem);
    letter-spacing: 0.12em;
    margin-bottom: 6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.section-title::before, .section-title::after {
    content: '✦';
    color: var(--champagne-gold);
    font-size: 0.8rem;
    margin: 0 10px;
    opacity: 0.8;
}

.section-subtitle {
    font-size: clamp(0.72rem, 1.8vw, 0.8rem);
    letter-spacing: 0.22em;
    color: var(--champagne-gold);
    margin-bottom: 45px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 32px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 0; /* Classic formal squared layout */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1.5px solid transparent;
    outline: none;
    box-shadow: 0 6px 15px rgba(74, 22, 32, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-burgundy) 0%, var(--primary-burgundy) 100%);
    color: var(--bg-color);
    border-color: var(--champagne-gold);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--deep-burgundy) 100%);
    border-color: var(--soft-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(74, 22, 32, 0.18);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-burgundy);
    border-color: var(--primary-burgundy);
    box-shadow: none;
}

.btn-outline:hover, .btn-outline:focus {
    background-color: rgba(91, 21, 32, 0.04);
    border-color: var(--deep-burgundy);
    color: var(--deep-burgundy);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-burgundy);
    border-color: var(--champagne-gold);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--bg-color);
    border-color: var(--soft-gold);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* --------------------------------------------------------------------------
   3. INITIAL INVITATION COVER (GATEFOLD)
   -------------------------------------------------------------------------- */
.cover-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1500px;
    background-color: var(--bg-color);
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 C44 15, 55 26, 70 30 C55 34, 44 45, 40 60 C36 45, 25 34, 10 30 C25 26, 36 15, 40 0 Z' fill='%23C5A059' fill-opacity='0.025'/%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.8s ease;
}

/* The card itself centered on the page */
.cover-card {
    position: relative;
    width: 92%;
    max-width: 460px;
    height: 82vh;
    height: 82dvh;
    max-height: 720px;
    min-height: 500px;
    background-color: var(--white);
    border: 1px solid var(--champagne-gold);
    box-shadow: 0 30px 70px rgba(74, 22, 32, 0.18);
    overflow: visible; /* Flaps open outside card boundaries */
    perspective: 1500px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Subtle gold sheen card shimmer effect */
.cover-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(197, 160, 89, 0) 0%,
        rgba(197, 160, 89, 0.05) 50%,
        rgba(197, 160, 89, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 12;
    animation: cardShimmer 6s infinite linear;
}

/* Interactive Wax Seal Hover States */
.cover-card:hover .left-seal {
    transform: translateY(-50%) scale(1.08);
    box-shadow: -4px 6px 16px rgba(74, 22, 32, 0.3);
}

.cover-card:hover .right-seal {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 4px 6px 16px rgba(74, 22, 32, 0.3);
}

/* INSIDE: Sits behind flaps */
.card-inside {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: clamp(16px, 4.5vh, 40px) clamp(16px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 5;
    background-color: var(--white);
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 C44 15, 55 26, 70 30 C55 34, 44 45, 40 60 C36 45, 25 34, 10 30 C25 26, 36 15, 40 0 Z' fill='%23C5A059' fill-opacity='0.015'/%3E%3C/svg%3E");
    border-radius: 3px;
    overflow: hidden;
}

@media (max-height: 620px) {
    .cover-card {
        height: 94vh;
        height: 94dvh;
        min-height: auto;
    }
    .cover-names {
        margin-bottom: 6px !important;
    }
    .cover-couple-img-wrapper {
        max-width: 110px !important;
        margin: 6px auto !important;
    }
    .card-inside {
        padding: 12px clamp(12px, 3vw, 24px);
    }
    .bismillah-wrapper {
        margin-bottom: 4px !important;
    }
}

.card-inside::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    right: 8px;
    border: 1px solid rgba(104, 31, 43, 0.15);
    pointer-events: none;
    z-index: 1;
}

/* OUTSIDE FLAPS: Covers inside, z-index: 10 */
.cover-flap {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--bg-color);
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 C44 15, 55 26, 70 30 C55 34, 44 45, 40 60 C36 45, 25 34, 10 30 C25 26, 36 15, 40 0 Z' fill='%23C5A059' fill-opacity='0.035'/%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    z-index: 10;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.5s;
    overflow: hidden;
    transform-style: preserve-3d;
}

.flap-left {
    left: 0;
    transform-origin: left center;
    border-right: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 4px 0 0 4px;
}

.flap-right {
    right: 0;
    transform-origin: right center;
    border-left: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 0 4px 4px 0;
}

/* Flap Text (Wedding Invitation & Names on front cover) */
.flap-text-container {
    position: absolute;
    top: clamp(65px, 13vh, 130px);
    width: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
}

.flap-text-container.text-right {
    right: 0;
    text-align: right;
    padding-right: 12px; /* Gap between text and center split */
}

.flap-text-container.text-left {
    left: 0;
    text-align: left;
    padding-left: 12px; /* Gap between text and center split */
}

.flap-label {
    font-family: var(--font-sans);
    font-size: clamp(0.6rem, 1.8vw, 0.72rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--champagne-gold);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 4px;
}

.flap-title {
    font-family: var(--font-script), serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.6rem, 4.5vw, 2.3rem);
    color: var(--primary-burgundy);
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

/* Double Borders on Flaps */
.flap-border {
    position: absolute;
    top: 12px;
    bottom: 12px;
    border: 1px solid var(--champagne-gold);
    width: calc(100% - 18px);
    z-index: 2;
}

.flap-border::before {
    content: '';
    position: absolute;
    top: 3px;
    bottom: 3px;
    border: 1px solid rgba(91, 21, 32, 0.12); /* Inner thin burgundy line */
    pointer-events: none;
    width: 100%;
}

.flap-left .flap-border {
    left: 12px;
    border-right: none;
}
.flap-left .flap-border::before {
    left: 3px;
    right: 0;
    border-right: none;
}

.flap-right .flap-border {
    right: 12px;
    border-left: none;
}
.flap-right .flap-border::before {
    right: 3px;
    left: 0;
    border-left: none;
}

/* Monogram Wax Seal Splitting */
.seal-half {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 88px;
    background: radial-gradient(circle at center, var(--soft-gold) 0%, var(--champagne-gold) 85%, #B48E48 100%);
    border: 2px solid var(--primary-burgundy);
    z-index: 12;
    box-shadow: 
        inset 2px 2px 5px rgba(255, 255, 255, 0.4),
        inset -2px -2px 5px rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(74, 22, 32, 0.22);
    display: flex;
    align-items: center;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.left-seal {
    right: 0;
    border-radius: 88px 0 0 88px;
    border-right: none;
    justify-content: flex-end;
    padding-right: 6px;
    transform: translateY(-50%);
    transform-origin: right center;
}

.right-seal {
    left: 0;
    border-radius: 0 88px 88px 0;
    border-left: none;
    justify-content: flex-start;
    padding-left: 6px;
    transform: translateY(-50%);
    transform-origin: left center;
}

.seal-text {
    font-family: var(--font-header); /* Matching Cinzel header style */
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    line-height: 1;
    text-shadow: -1px -1px 1px rgba(0,0,0,0.35), 1px 1px 1px rgba(255,255,255,0.3);
    user-select: none;
}

/* Decorative Corners in Flaps */
.corner-ornament {
    position: absolute;
    width: clamp(35px, 10vw, 70px);
    height: clamp(35px, 10vw, 70px);
    z-index: 3;
}

.flap-left .top-left { top: 16px; left: 16px; }
.flap-left .bottom-left { bottom: 16px; left: 16px; }
.flap-right .top-right { top: 16px; right: 16px; }
.flap-right .bottom-right { bottom: 16px; right: 16px; }

/* Clickable Trigger overlays the seal */
.seal-trigger-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    outline: none;
}

.seal-pulse-glow {
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1.5px dashed var(--champagne-gold);
    animation: pulseGlow 2.2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.3; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.trigger-hint {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 105px;
    text-shadow: 0 1px 3px rgba(255,255,255,0.9);
    animation: pulseText 2.2s infinite ease-in-out;
    white-space: nowrap;
}

@keyframes pulseText {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Bismillah calligraphic style (aligned centered, no justification stretches) */
.bismillah-wrapper {
    margin-bottom: clamp(12px, 2.5vh, 24px);
    text-align: center !important;
    width: 100%;
}

.bismillah-arabic {
    font-family: 'Aref Ruqaa', var(--font-arabic), serif;
    font-size: clamp(1.4rem, 4.5vw, 1.8rem); /* Refined size to prevent font stretch bugs */
    color: var(--champagne-gold);
    line-height: 1.2;
    margin-bottom: 4px;
    text-align: center !important;
    text-justify: none !important; /* Forces normal word alignment, bypassing justification */
    white-space: nowrap;
}

.bismillah-translation {
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    letter-spacing: 0.08em;
    color: var(--champagne-gold);
    text-transform: uppercase;
    text-align: center !important;
}

.cover-sub-header {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--champagne-gold);
    font-weight: 600;
    margin-bottom: clamp(8px, 1.5vh, 16px);
    text-transform: uppercase;
}

.cover-names {
    font-family: var(--font-script), serif;
    font-style: italic;
    font-weight: 500;
    color: var(--primary-burgundy);
    margin-bottom: clamp(12px, 2vh, 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.cover-names .name-groom, .cover-names .name-bride {
    font-size: clamp(2rem, 7vw, 3.2rem);
    letter-spacing: 0.02em;
}

/* Pulsing Love Heart Symbol */
.love-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.2rem, 3.5vw, 1.8rem);
    height: clamp(1.2rem, 3.5vw, 1.8rem);
    color: var(--champagne-gold);
    margin: 6px 0;
    animation: pulseHeart 1.8s infinite ease-in-out;
}

.love-symbol svg {
    width: 100%;
    height: 100%;
}

/* Heart size for standard text lines */
.intro-names .love-symbol, .final-names .love-symbol {
    width: clamp(1.2rem, 3.2vw, 1.6rem);
    height: clamp(1.2rem, 3.2vw, 1.6rem);
    margin: 0 10px;
    vertical-align: middle;
}

@keyframes pulseHeart {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.12); }
    100% { transform: scale(0.9); }
}

.cover-couple-img-wrapper {
    width: 100%;
    max-width: 160px;
    margin: 4px auto clamp(12px, 2vh, 24px) auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cover-couple-img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.cover-date-details {
    margin-bottom: 0;
    border-top: 1px solid rgba(197, 160, 89, 0.25);
    padding-top: clamp(8px, 1.5vh, 16px);
    width: 100%;
}

.cover-day {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--primary-burgundy);
    line-height: 1;
    font-weight: 700;
}

.cover-month-year {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    letter-spacing: 0.2em;
    color: var(--dark-text);
    font-weight: 600;
    margin: 2px 0;
}

.cover-time {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--champagne-gold);
    font-weight: 600;
}

/* Cover Opened State (Gatefold Animation) - Smooth horizontal swing */
.cover-wrapper.open {
    pointer-events: none;
    /* Wrapper scales up slightly and fades away revealing main content */
    transform: scale(1.05);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 1.5s, opacity 0.8s ease 1.5s, visibility 2.3s;
    visibility: hidden;
}

.cover-wrapper.open .flap-left {
    transform: rotateY(-135deg);
}

.cover-wrapper.open .flap-right {
    transform: rotateY(135deg);
}

.cover-wrapper.open .left-seal {
    transform: translateY(-50%) rotateY(-60deg) rotateZ(-30deg) translate3d(-40px, 0, 0);
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease;
}

.cover-wrapper.open .right-seal {
    transform: translateY(-50%) rotateY(60deg) rotateZ(30deg) translate3d(40px, 0, 0);
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease;
}

.cover-wrapper.open .seal-trigger-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* --------------------------------------------------------------------------
   4. MAIN CONTENT WRAPPER
   -------------------------------------------------------------------------- */
#main-content {
    opacity: 0;
    transition: opacity 1.2s ease 0.6s;
    display: none;
}

#main-content.main-content-visible {
    display: block;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   5. FLOATING CONTROLS
   -------------------------------------------------------------------------- */
.music-btn {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: 16px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-burgundy);
    border: 1px solid var(--champagne-gold);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(74, 22, 32, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease;
    outline: none;
    
    /* Initially hidden to clean up cover, shown in JS */
    opacity: 0;
    visibility: hidden;
}

.music-btn.visible {
    opacity: 1;
    visibility: visible;
}

.music-btn:hover, .music-btn:focus {
    transform: scale(1.08);
    background-color: var(--deep-burgundy);
}

.music-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.music-icon-svg {
    width: 22px;
    height: 22px;
    transition: opacity 0.3s, transform 0.3s;
}

/* Pulsing audio waves indicator */
.music-waves {
    position: absolute;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.music-waves span {
    width: 3px;
    background-color: var(--soft-gold);
    height: 100%;
    border-radius: 3px;
    transform-origin: bottom;
    animation: bounceWave 1.2s ease-in-out infinite alternate;
}

.music-waves span:nth-child(2) {
    animation-delay: -0.4s;
}

.music-waves span:nth-child(3) {
    animation-delay: -0.8s;
}

@keyframes bounceWave {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1.0); }
}

/* Music active playing state style */
.music-btn.playing .music-icon-svg {
    opacity: 0.15;
    transform: scale(0.7);
}

.music-btn.playing .music-waves {
    opacity: 1;
}

@media (min-width: 1024px) {
    .music-btn {
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
    }
}

/* --------------------------------------------------------------------------
   6. SECTION SPECIFIC STYLE
   -------------------------------------------------------------------------- */

/* Section 1: Introduction */
.section-ornament {
    margin-bottom: 24px;
    width: 100%;
}

.floral-divider {
    width: 180px;
    height: auto;
}

.arabic-large .bismillah-arabic {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 8px;
}

.intro-salutation {
    font-size: clamp(1.35rem, 3.8vw, 1.8rem);
    color: var(--primary-burgundy);
    margin-top: 16px;
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.intro-blessing {
    max-width: 500px;
    margin: 12px auto 24px auto;
    font-style: italic;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    color: var(--dark-text);
    line-height: 1.8;
    opacity: 0.85;
}

.intro-names {
    color: var(--primary-burgundy);
    font-family: var(--font-script), serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2rem, 7vw, 2.8rem);
    margin-top: 12px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Section 2: Couple (Corner Aligned Illustration) */
.couple-flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
}

.couple-text-side {
    width: 100%;
    z-index: 2;
    position: relative;
}

.couple-img-side {
    width: 100%;
    max-width: 160px;
    margin: 20px auto 0 auto; /* Centered on mobile viewports */
    display: flex;
    justify-content: center;
    z-index: 1;
}

.couple-corner-img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    display: block;
    transition: transform 0.8s ease;
}

.couple-corner-img:hover {
    transform: scale(1.06) rotate(1deg);
}

.couple-heading {
    font-family: var(--font-script), serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    color: var(--primary-burgundy);
    margin-bottom: 8px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .couple-flex-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-end;
    }
    .couple-text-side {
        width: 62%;
        margin-bottom: 10px;
    }
    .couple-img-side {
        width: 35%;
        max-width: 185px;
        margin-top: 0;
        margin-bottom: 0;
        display: flex;
        justify-content: flex-end;
    }
}

.verse-quote-box {
    position: relative;
    padding: 0 20px;
    margin-top: 12px;
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--champagne-gold);
    line-height: 0;
    opacity: 0.25;
    position: absolute;
    user-select: none;
}

.open-quote {
    top: 20px;
    left: -10px;
}

.close-quote {
    bottom: -8px;
    right: -10px;
}

.couple-desc {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    line-height: 1.8;
    color: var(--dark-text);
    font-style: italic;
    opacity: 0.9;
}

.quran-verse {
    display: block;
    margin-top: 16px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--champagne-gold);
    text-transform: uppercase;
    font-style: normal;
    font-weight: 600;
}

/* Section 3: Wedding Details (Dual-Column inside stationery-card) */
.top-ornament {
    margin-bottom: 12px;
}
.top-ornament svg {
    width: 80px;
    height: auto;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: center;
    width: 100%;
}

.details-col-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.details-col-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.details-col-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, rgba(197, 160, 89, 0) 0%, rgba(197, 160, 89, 0.5) 50%, rgba(197, 160, 89, 0) 100%);
}

.details-day-name {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--champagne-gold);
    font-weight: 600;
}

.date-ring-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--champagne-gold) 0%, var(--soft-gold) 50%, #9F7E3B 100%);
    padding: 1.5px;
    margin: 16px 0;
}

.date-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0.5px dashed rgba(91, 21, 32, 0.2);
}

.details-day-num {
    font-size: clamp(2.8rem, 8vw, 3.2rem);
    color: var(--primary-burgundy);
    font-weight: 700;
    line-height: 1;
}

.details-month-year {
    font-size: 1.02rem;
    letter-spacing: 0.18em;
    color: var(--dark-text);
    font-weight: 600;
}

.details-time {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    color: var(--primary-burgundy);
    font-weight: 600;
    margin-top: 4px;
}

.venue-label {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--champagne-gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.venue-name {
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    color: var(--primary-burgundy);
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.3;
}

.venue-address {
    font-size: 0.92rem;
    color: var(--dark-text);
    opacity: 0.8;
    margin-bottom: 24px;
}

.btn-directions {
    padding: 12px 28px;
}

@media (min-width: 768px) {
    .details-grid {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .details-col-left {
        flex: 1;
    }
    
    .details-col-divider {
        width: 1px;
        height: 150px;
        background: linear-gradient(to bottom, rgba(197, 160, 89, 0) 0%, rgba(197, 160, 89, 0.5) 50%, rgba(197, 160, 89, 0) 100%);
    }
    
    .details-col-right {
        flex: 1.2;
    }
}

/* Section 4: Countdown (Circular Plates) */
.countdown-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--champagne-gold);
    margin-bottom: 30px;
    font-weight: 600;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.countdown-box {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.25) 0%, rgba(212, 178, 112, 0.65) 50%, rgba(159, 126, 59, 0.25) 100%);
    padding: 1.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(74, 22, 32, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.countdown-box-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 0.5px solid rgba(91, 21, 32, 0.08);
}

.countdown-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(74, 22, 32, 0.12);
}

.countdown-num {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    color: var(--primary-burgundy);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.countdown-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--dark-text);
    opacity: 0.6;
}

.countdown-finished {
    font-size: clamp(1.4rem, 5vw, 2rem);
    color: var(--primary-burgundy);
    letter-spacing: 0.15em;
    margin-top: 24px;
    animation: pulseText 2s infinite alternate;
}

@media (min-width: 480px) {
    .countdown-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 500px;
    }
}

/* Section 5: Locations (Icons & Split column inside card) */
.loc-icon-bg {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--champagne-gold) 0%, var(--soft-gold) 50%, #9F7E3B 100%);
    padding: 1.5px;
    color: var(--primary-burgundy);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0 6px 15px rgba(74, 22, 32, 0.05);
}

.loc-icon-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0.5px solid rgba(91, 21, 32, 0.08);
}

.loc-icon {
    width: 22px;
    height: 22px;
}

.loc-card-title {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: var(--primary-burgundy);
    font-weight: 700;
    margin-bottom: 6px;
}

.loc-card-venue {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.loc-card-desc {
    font-size: 0.85rem;
    color: var(--dark-text);
    opacity: 0.7;
}

/* 3-Column Locations layout */
.locations-grid-three {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
}

.loc-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.loc-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, rgba(197, 160, 89, 0) 0%, rgba(197, 160, 89, 0.5) 50%, rgba(197, 160, 89, 0) 100%);
}

.btn-loc {
    width: 100%;
    max-width: 220px;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .locations-card {
        max-width: 900px; /* Wider card to fit 3 columns beautifully on desktop viewports */
    }

    .locations-grid-three {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: 20px;
    }
    
    .loc-col {
        flex: 1;
        justify-content: space-between;
    }
    
    .loc-divider {
        width: 1px;
        height: auto;
        min-height: 160px;
        background: linear-gradient(to bottom, rgba(197, 160, 89, 0) 0%, rgba(197, 160, 89, 0.5) 50%, rgba(197, 160, 89, 0) 100%);
        align-self: center;
    }
}

/* Section 6: Save the Date details */
.save-couple {
    font-family: var(--font-script), serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    color: var(--primary-burgundy);
    margin-bottom: 6px;
    line-height: 1.2;
}

.save-date {
    font-family: var(--font-header);
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 4px;
}

.save-time {
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    color: var(--champagne-gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.save-venue {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 32px;
}

.calendar-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.calendar-buttons .btn {
    width: 100%;
    max-width: 250px;
}

@media (min-width: 600px) {
    .calendar-buttons {
        flex-direction: row;
    }
}

/* Section 7: RSVP Section */
.rsvp-subtitle {
    margin-bottom: 30px;
}

.rsvp-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    max-width: 440px;
    margin: 0 auto 20px auto;
}

.rsvp-btn {
    width: 100%;
    min-height: 52px;
}

@media (min-width: 600px) {
    .rsvp-actions {
        flex-direction: row;
    }
    .rsvp-btn {
        flex: 1;
        width: auto;
    }
}

.rsvp-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(91, 21, 32, 0.04);
    border: 1.5px dashed var(--primary-burgundy);
    border-radius: 0;
    padding: 12px 20px;
    max-width: 480px;
    margin: 16px auto 0 auto;
    font-size: 0.85rem;
    color: var(--primary-burgundy);
    text-align: left;
}

.warning-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.rsvp-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
    background-color: #e5e0dc !important;
    border-color: #d0c9c3 !important;
    color: #908882 !important;
    box-shadow: none !important;
}

/* Section 8: Share Section */
.share-desc {
    margin-bottom: 24px;
}

/* Section 9: Final Blessing */
.final-section {
    margin-bottom: 60px !important; /* Spacing from bottom of viewport */
}

.final-quote {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    color: var(--primary-burgundy);
    font-style: italic;
    line-height: 1.8;
}

.final-divider-wrapper {
    margin: 24px 0;
}

.floral-divider-small {
    width: 80px;
    height: auto;
}

.final-compliment {
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    color: var(--champagne-gold);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.final-names {
    font-family: var(--font-script), serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    color: var(--primary-burgundy);
    margin-bottom: 4px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.final-date {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--dark-text);
    opacity: 0.8;
    margin-bottom: 30px;
}

.final-couple-ornament {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    border: 1.5px solid var(--champagne-gold);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.final-img {
    width: 100%;
    height: auto;
    transform: scale(1.1);
    mix-blend-mode: multiply;
}

/* --------------------------------------------------------------------------
   7. SCROLL-REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000), transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

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

/* --------------------------------------------------------------------------
   8. CUSTOM TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 320px;
    pointer-events: none;
}

.toast {
    background-color: var(--primary-burgundy);
    border: 1px solid var(--champagne-gold);
    color: var(--bg-color);
    padding: 12px 20px;
    border-radius: 0;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(74, 22, 32, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   9. FLOATING FLOWER PETALS / LEAVES BACKGROUND (JavaScript spawned)
   -------------------------------------------------------------------------- */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Sits behind text cards but on top of background texture */
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -50px;
    pointer-events: none;
    transform-origin: center;
    animation-name: fall, sway;
    animation-iteration-count: infinite;
    animation-timing-function: linear, ease-in-out;
}

@keyframes fall {
    0% { top: -50px; }
    100% { top: 105vh; }
}

@keyframes sway {
    0% { transform: rotate(0deg) translateX(0); }
    50% { transform: rotate(180deg) translateX(40px); }
    100% { transform: rotate(360deg) translateX(0); }
}

/* --------------------------------------------------------------------------
   10. MOBILE RESPONSIVENESS AND SMALL SCREEN SCALING
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .cover-card {
        height: 84vh;
        height: 84dvh;
        min-height: 480px;
    }
    .card-inside {
        padding: clamp(16px, 4vh, 32px) 16px;
    }
    .cover-names .name-groom, .cover-names .name-bride {
        font-size: 2.1rem;
    }
    .cover-names .ampersand {
        font-size: 1.1rem;
    }
    .cover-couple-img-wrapper {
        max-width: 140px;
        margin: 4px auto 16px auto;
    }
    .cover-couple-img {
        max-height: 140px;
    }
    .cover-date-details {
        padding-top: 10px;
    }
    .cover-day {
        font-size: 1.4rem;
    }
    .cover-month-year {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
    }
    .cover-time {
        font-size: 0.7rem;
    }
    .bismillah-arabic {
        font-size: 1.25rem;
    }
    .seal-half {
        width: 36px;
        height: 72px;
    }
    .left-seal {
        padding-right: 4px;
        border-radius: 72px 0 0 72px;
    }
    .right-seal {
        padding-left: 4px;
        border-radius: 0 72px 72px 0;
    }
    .seal-text {
        font-size: 1.3rem;
    }
    .seal-trigger-btn {
        width: 100px;
        height: 100px;
    }
    .seal-pulse-glow {
        width: 72px;
        height: 72px;
    }
    .trigger-hint {
        margin-top: 90px;
        font-size: 0.6rem;
    }
}

/* Very small height screens (like iPhone SE, older Android devices or landscape heights) */
@media (max-height: 700px) and (max-width: 480px) {
    .cover-card {
        height: 90vh;
        min-height: 460px;
        max-height: 580px;
    }
    .card-inside {
        padding: 10px;
    }
    .bismillah-wrapper {
        margin-bottom: 6px;
    }
    .bismillah-arabic {
        font-size: 1.1rem;
    }
    .bismillah-translation {
        font-size: 0.6rem;
    }
    .cover-sub-header {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }
    .cover-names {
        margin-bottom: 8px;
    }
    .cover-names .name-groom, .cover-names .name-bride {
        font-size: 1.55rem;
    }
    .cover-names .ampersand {
        font-size: 0.9rem;
        margin: 0;
    }
    .cover-couple-img-wrapper {
        max-width: 100px;
        margin: 2px auto 8px auto;
    }
    .cover-couple-img {
        max-height: 100px;
    }
    .cover-date-details {
        padding-top: 4px;
    }
    .cover-day {
        font-size: 1.1rem;
    }
    .cover-month-year {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }
    .cover-time {
        font-size: 0.65rem;
    }
    .seal-half {
        width: 30px;
        height: 60px;
    }
    .left-seal {
        border-radius: 60px 0 0 60px;
    }
    .right-seal {
        border-radius: 0 60px 60px 0;
    }
    .seal-text {
        font-size: 1.1rem;
    }
    .seal-trigger-btn {
        width: 80px;
        height: 80px;
    }
    .seal-pulse-glow {
        width: 60px;
        height: 60px;
    }
    .trigger-hint {
        margin-top: 75px;
        font-size: 0.55rem;
    }
}

/* --------------------------------------------------------------------------
   11. PREFERS-REDUCED-MOTION SUPPORT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .cover-wrapper.open .flap-left,
    .cover-wrapper.open .flap-right {
        transform: none !important;
        display: none !important;
    }
    
    .cover-wrapper.open {
        opacity: 0 !important;
        transform: none !important;
    }
    
    .btn-shine {
        animation: none !important;
        display: none;
    }
    
    .petals-container {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   12. ATTENDANCE POP-UP MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 34, 36, 0.55);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.modal-card {
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 C44 15, 55 26, 70 30 C55 34, 44 45, 40 60 C36 45, 25 34, 10 30 C25 26, 36 15, 40 0 Z' fill='%23C5A059' fill-opacity='0.015'/%3E%3C/svg%3E"),
        radial-gradient(circle at center, var(--white) 55%, #FAF7F2 100%);
    border: 1px solid var(--champagne-gold);
    box-shadow: 0 25px 55px rgba(74, 22, 32, 0.22);
    padding: 40px 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 4px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.show .modal-card {
    transform: scale(1);
}

.modal-card::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    right: 6px;
    border: 1px solid rgba(91, 21, 32, 0.12);
    pointer-events: none;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--champagne-gold);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-burgundy);
}

.modal-ornament {
    margin-bottom: 12px;
}
.modal-ornament svg {
    width: 60px;
    height: auto;
}

.modal-title {
    color: var(--primary-burgundy);
    font-family: var(--font-header);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--dark-text);
    opacity: 0.85;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
    position: relative;
}
