/* ============================================
   Wedding Invitation — Red & Gold Islamic Theme
   Mobile-first responsive design
   ============================================ */

:root {
    --gold: #D9AE4E;
    --gold-light: #F2DFAC;
    --gold-dark: #A87C2C;
    --gold-deep: #8A6320;
    --gold-shimmer: #FBF1D4;

    --red: #6B1C28;
    --red-mid: #54151F;
    --red-deep: #3F1018;
    --red-dark: #2C0B11;
    --red-ink: #1A070B;

    --white: #FFFFFF;
    --cream: #FDF7EA;
    --ivory: #F6EBD6;
    --parchment: #FFFBF1;
    --text-dark: #33170F;
    --text-muted: #7A5341;
    --text-on-red: #F6E6C4;
    --text-on-red-muted: rgba(246, 230, 196, 0.72);
    --shadow-gold: rgba(217, 174, 78, 0.3);
    --shadow-soft: rgba(42, 5, 8, 0.12);
    --shadow-deep: rgba(24, 3, 5, 0.45);
    --card-bg:
        url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 6 L30.2 22.2 L46 24.4 L30.2 26.6 L28 42.8 L25.8 26.6 L10 24.4 L25.8 22.2 Z' fill='%23D9AE4E' fill-opacity='0.08'/%3E%3C/svg%3E"),
        linear-gradient(165deg, #5C1822 0%, #3F1018 48%, #1A070B 100%);
    --card-bg-size: 56px 56px, 100% 100%;
    --card-border: 1px solid rgba(217, 174, 78, 0.72);
    --card-shadow:
        0 20px 48px rgba(24, 3, 5, 0.55),
        0 0 0 1px rgba(217, 174, 78, 0.18),
        inset 0 1px 0 rgba(251, 241, 212, 0.24),
        inset 0 0 0 1px rgba(217, 174, 78, 0.28);
    --font-display: 'Great Vibes', cursive;
    --font-body: 'Cormorant Garamond', Georgia, serif;
    --font-elegant: 'Cinzel', 'Times New Roman', serif;
    --font-script: 'Great Vibes', cursive;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;
    --radius: 12px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background-color: var(--red-dark);
}

body {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--red-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

body.page-landing,
body.page-invite {
    color: var(--text-on-red);
    background-color: var(--red-ink);
    background-image:
        radial-gradient(ellipse 130% 48% at 50% -6%, rgba(107, 28, 40, 0.62) 0%, transparent 70%),
        linear-gradient(180deg,
            #4A141C 0%,
            var(--red-deep) 22%,
            var(--red-mid) 48%,
            var(--red-dark) 74%,
            var(--red-ink) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.page-wrapper {
    position: relative;
    z-index: 1;
}

/* Gold filigree runners down both page edges */
.page-wrapper::before,
.page-wrapper::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(9vw, 58px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg width='58' height='116' viewBox='0 0 58 116' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-width='0.9' stroke-opacity='0.5'%3E%3Cpath d='M29 4 C14 18 14 40 29 54 C44 40 44 18 29 4 Z'/%3E%3Cpath d='M29 16 C21 24 21 36 29 44 C37 36 37 24 29 16 Z'/%3E%3Cpath d='M29 54 L29 62'/%3E%3Cpath d='M29 62 C16 74 16 96 29 110 C42 96 42 74 29 62 Z'/%3E%3Cpath d='M29 74 C22 81 22 92 29 99 C36 92 36 81 29 74 Z'/%3E%3C/g%3E%3Cg fill='%23D9AE4E' fill-opacity='0.4'%3E%3Ccircle cx='29' cy='30' r='2.2'/%3E%3Ccircle cx='29' cy='87' r='2.2'/%3E%3Ccircle cx='29' cy='58' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 58px 116px;
}

.page-wrapper::before {
    left: 0;
    border-left: 2px solid rgba(217, 174, 78, 0.35);
}

.page-wrapper::after {
    right: 0;
    border-right: 2px solid rgba(217, 174, 78, 0.35);
}

/* ---- Opening Curtain ----
   Driven entirely by CSS with forwards fill so the page unblocks
   even if the enhancement script never runs. */
.opening-curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background: var(--red-ink);
    animation: curtainRetire 0.01s linear 3.5s forwards;
}

.opening-curtain.is-dismissed {
    display: none;
}

.curtain-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: auto;
    background:
        url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-opacity='0.16' stroke-width='0.8'%3E%3Cpath d='M35 5 L41 21 L57 21 L44 32 L49 49 L35 39 L21 49 L26 32 L13 21 L29 21 Z'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, var(--red) 0%, var(--red-deep) 55%, var(--red-ink) 100%);
    background-size: 70px 70px, 100% 100%;
    animation: curtainPart 1.15s cubic-bezier(0.76, 0, 0.24, 1) 2.45s forwards;
}

.curtain-panel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
}

.curtain-panel--left {
    left: 0;
    right: 50%;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.5);
}

.curtain-panel--left::after {
    right: 0;
    transform: translateX(50%);
}

.curtain-panel--right {
    left: 50%;
    right: 0;
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.5);
    animation-name: curtainPartRight;
}

.curtain-panel--right::after {
    left: 0;
    transform: translateX(-50%);
}

@keyframes curtainPart {
    to { transform: translateX(-102%); }
}

@keyframes curtainPartRight {
    to { transform: translateX(102%); }
}

@keyframes curtainRetire {
    to { visibility: hidden; pointer-events: none; }
}

.curtain-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: max-content;
    max-width: calc(100vw - 3rem);
    padding: 0;
    text-align: center;
    color: var(--gold);
    z-index: 2;
    animation: curtainCenterOut 0.5s ease 2.35s forwards;
}

@keyframes curtainCenterOut {
    to { opacity: 0; transform: translate(-50%, -50%) scale(1.06); }
}

.curtain-medallion {
    width: min(48vw, 210px);
    height: min(48vw, 210px);
    filter: drop-shadow(0 0 16px rgba(217, 174, 78, 0.45));
}

.curtain-medallion .med-ring,
.curtain-medallion .med-star,
.curtain-medallion .med-petal {
    animation: medallionDraw 1.6s ease-out 0.15s forwards;
}

.med-ring--outer { stroke-dasharray: 560; stroke-dashoffset: 560; }
.med-ring--inner { stroke-dasharray: 395; stroke-dashoffset: 395; animation-delay: 0.3s; }
.med-star        { stroke-dasharray: 680; stroke-dashoffset: 680; animation-delay: 0.1s; }
.med-petal       { stroke-dasharray: 300; stroke-dashoffset: 300; animation-delay: 0.5s; }
.med-petal--cross { animation-delay: 0.65s; }

@keyframes medallionDraw {
    to { stroke-dashoffset: 0; }
}

.curtain-medallion .med-core {
    opacity: 0;
    transform-origin: center;
    animation: medallionCore 0.7s ease-out 1.1s forwards;
}

@keyframes medallionCore {
    0% { opacity: 0; transform: scale(0.2); }
    100% { opacity: 1; transform: scale(1); }
}

.curtain-names {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.45rem 0.6rem;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 7vw, 2.6rem);
    letter-spacing: 0.06em;
    padding-left: 0.06em;
    color: var(--gold-light);
    opacity: 0;
    animation: curtainTextIn 0.9s ease-out 1.05s forwards;
}

.curtain-amp {
    font-family: var(--font-script);
    font-size: 1.15em;
    color: var(--gold);
}

.curtain-tagline {
    font-family: var(--font-elegant);
    font-size: clamp(0.6rem, 2.4vw, 0.72rem);
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(242, 223, 172, 0.7);
    opacity: 0;
    animation: curtainTextIn 0.9s ease-out 1.35s forwards;
    /* Offset trailing letter-spacing so the text reads as centred */
    padding-left: 0.42em;
}

@keyframes curtainTextIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .opening-curtain { display: none; }
}

/* ---- Parallax Scene ---- */
.parallax-scene,
.ambient-particles,
.ambient-lanterns {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.parallax-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    will-change: transform;
}

.parallax-layer > [class*="layer-"] {
    position: absolute;
    inset: 0;
}

.parallax-layer--floral-left,
.parallax-layer--floral-right {
    inset: auto;
    bottom: 0;
    top: auto;
    width: min(42vw, 220px);
    height: min(55vh, 420px);
}

.parallax-layer--floral-left {
    left: 0;
    right: auto;
}

.parallax-layer--floral-right {
    left: auto;
    right: 0;
}

.parallax-layer--floral-right .layer-floral-right {
    transform: scaleX(-1);
}

.parallax-layer--skyline {
    inset: auto 0 0;
    top: auto;
    height: 22vh;
}

.parallax-layer--skyline .layer-skyline {
    inset: 0;
}

/* Warm candlelit wash over the deep red */
.layer-glow {
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 174, 78, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 60% 40% at 10% 90%, rgba(242, 223, 172, 0.12) 0%, transparent 52%),
        radial-gradient(ellipse 60% 40% at 90% 85%, rgba(217, 174, 78, 0.1) 0%, transparent 48%);
}

/* Twinkling gold dust — two layers so the sky stays dense in every section */
.layer-star-field {
    inset: 0;
}

.layer-star-field--far {
    background:
        radial-gradient(1px 1px at 8% 12%, var(--gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 18% 44%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 27% 8%, var(--gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 36% 63%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 47% 22%, var(--gold) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 58% 78%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 69% 16%, var(--gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 77% 51%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 86% 33%, var(--gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 93% 71%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 14% 86%, var(--gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 42% 91%, var(--gold-light) 50%, transparent 50%);
}

.layer-star-field--near {
    background:
        radial-gradient(1.5px 1.5px at 11% 29%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 22% 67%, var(--gold) 50%, transparent 50%),
        radial-gradient(2px 2px at 33% 14%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 41% 48%, var(--gold) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 54% 6%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 61% 39%, var(--gold) 50%, transparent 50%),
        radial-gradient(2px 2px at 73% 84%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 81% 19%, var(--gold) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 89% 57%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 96% 91%, var(--gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 5% 74%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 49% 59%, var(--gold) 50%, transparent 50%);
}

.anim-twinkle {
    -webkit-animation: starTwinkle 5s ease-in-out infinite alternate;
    animation: starTwinkle 5s ease-in-out infinite alternate;
}

.anim-twinkle-slow {
    -webkit-animation: starTwinkle 7.5s ease-in-out 1.2s infinite alternate;
    animation: starTwinkle 7.5s ease-in-out 1.2s infinite alternate;
}

@keyframes starTwinkle {
    0% { opacity: 0.28; }
    100% { opacity: 0.78; }
}

/* Islamic 8-point star lattice with interlaced strapwork */
.layer-geometric {
    inset: -5%;
    background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-width='0.8' stroke-opacity='0.3'%3E%3Cpath d='M48 6 L56 22 L74 22 L61 34 L67 52 L48 41 L29 52 L35 34 L22 22 L40 22 Z'/%3E%3Cpath d='M48 16 L53 27 L65 27 L56 35 L60 47 L48 40 L36 47 L40 35 L31 27 L43 27 Z'/%3E%3Cpath d='M0 48 L12 42 L12 54 Z'/%3E%3Cpath d='M96 48 L84 42 L84 54 Z'/%3E%3Cpath d='M48 96 L42 84 L54 84 Z'/%3E%3Cpath d='M22 22 L0 0 M74 22 L96 0 M22 74 L0 96 M74 74 L96 96'/%3E%3C/g%3E%3Cg fill='%23D9AE4E' fill-opacity='0.18'%3E%3Ccircle cx='48' cy='33' r='2'/%3E%3Ccircle cx='0' cy='96' r='1.5'/%3E%3Ccircle cx='96' cy='96' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 96px 96px;
}

/* Interlocking arabesque vines */
.layer-arabesque {
    inset: -5%;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-opacity='0.16' stroke-width='0.7'%3E%3Cpath d='M0 60 Q30 30 60 60 T120 60'/%3E%3Cpath d='M0 60 Q30 90 60 60 T120 60'/%3E%3Cpath d='M0 0 Q60 60 0 120'/%3E%3Cpath d='M120 0 Q60 60 120 120'/%3E%3Cpath d='M60 0 Q40 30 60 60 Q80 90 60 120'/%3E%3C/g%3E%3Cg fill='%23D9AE4E' fill-opacity='0.12'%3E%3Ccircle cx='60' cy='60' r='2.4'/%3E%3Ccircle cx='0' cy='60' r='1.6'/%3E%3Ccircle cx='120' cy='60' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
}

.anim-pattern-drift {
    -webkit-animation: patternDrift 90s linear infinite;
    animation: patternDrift 90s linear infinite;
}

.anim-pattern-drift-reverse {
    -webkit-animation: patternDrift 120s linear infinite reverse;
    animation: patternDrift 120s linear infinite reverse;
}

@keyframes patternDrift {
    0% { background-position: 0 0; }
    100% { background-position: 144px 144px; }
}

/* Corner florals — fills side empty space */
.layer-floral {
    bottom: 0;
    top: auto;
    width: min(42vw, 220px);
    height: min(55vh, 420px);
    opacity: 0.6;
}

.layer-floral-left,
.layer-floral-right {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 420'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-opacity='0.55'%3E%3Cpath d='M22 415 Q42 330 32 262 Q22 198 54 158 Q86 118 44 76' stroke-width='1.2'/%3E%3Cpath d='M32 262 Q62 250 74 214' stroke-width='0.8'/%3E%3Cpath d='M38 330 Q8 314 4 276' stroke-width='0.8'/%3E%3Cpath d='M46 372 C28 360 24 336 44 326 C64 336 62 360 46 372 Z' stroke-width='1'/%3E%3Cpath d='M74 214 C60 206 58 186 74 178 C90 186 88 206 74 214 Z' stroke-width='0.9'/%3E%3Cpath d='M4 276 C-8 268 -8 250 6 243 C20 250 18 268 4 276 Z' stroke-width='0.9'/%3E%3Cpath d='M44 76 C30 60 34 38 50 28' stroke-width='0.9'/%3E%3C/g%3E%3Cg fill='%23D9AE4E' fill-opacity='0.35'%3E%3Ccircle cx='46' cy='349' r='4.5'/%3E%3Ccircle cx='74' cy='196' r='3.2'/%3E%3Ccircle cx='5' cy='259' r='3'/%3E%3Ccircle cx='50' cy='28' r='2.6'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.layer-floral-left {
    left: 0;
    right: auto;
    inset: auto auto 0 0;
    background-position: left bottom;
}

.layer-floral-right {
    left: auto;
    right: 0;
    inset: auto 0 0 auto;
    background-position: right bottom;
}

/* Wide dome skyline — bulbous domes, no minaret towers */
.layer-skyline {
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    height: 22vh;
    inset: auto 0 0;
    opacity: 0.4;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 160' preserveAspectRatio='xMidYMax slice'%3E%3Cellipse cx='600' cy='155' rx='580' ry='12' fill='%23D9AE4E' opacity='0.3'/%3E%3Cpath d='M460 155 C460 120 490 88 530 72 C570 88 600 120 600 155 Z' fill='%23D9AE4E' opacity='0.18'/%3E%3Cpath d='M480 155 C480 125 505 98 530 86 C555 98 580 125 580 155 Z' fill='%23D9AE4E' opacity='0.12'/%3E%3Cpath d='M540 155 C540 105 570 55 600 38 C630 55 660 105 660 155 Z' fill='%23D9AE4E' opacity='0.22'/%3E%3Cpath d='M560 155 C560 115 580 78 600 62 C620 78 640 115 640 155 Z' fill='%23D9AE4E' opacity='0.14'/%3E%3Cpath d='M670 155 C670 120 700 88 740 72 C780 88 810 120 810 155 Z' fill='%23D9AE4E' opacity='0.18'/%3E%3Cpath d='M690 155 C690 125 715 98 740 86 C765 98 790 125 790 155 Z' fill='%23D9AE4E' opacity='0.12'/%3E%3Cpath d='M320 155 C320 130 345 108 370 98 C395 108 420 130 420 155 Z' fill='%23D9AE4E' opacity='0.1'/%3E%3Cpath d='M780 155 C780 130 805 108 830 98 C855 108 880 130 880 155 Z' fill='%23D9AE4E' opacity='0.1'/%3E%3C/svg%3E") center bottom / 100% auto no-repeat;
}

/* Floating gold particles */
.ambient-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: particleFloat 12s ease-in-out infinite;
    animation: particleFloat 12s ease-in-out infinite;
}

.p1 { left: 10%; animation-delay: 0s; }
.p2 { left: 25%; animation-delay: 1.5s; }
.p3 { left: 40%; animation-delay: 3s; }
.p4 { left: 55%; animation-delay: 4.5s; }
.p5 { left: 70%; animation-delay: 2s; }
.p6 { left: 85%; animation-delay: 5s; }
.p7 { left: 18%; animation-delay: 6s; }
.p8 { left: 62%; animation-delay: 7.5s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.35; }
    90% { opacity: 0.2; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Hanging lanterns */
.ambient-lanterns {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.lantern {
    position: absolute;
    width: 22px;
    height: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 32'%3E%3Cline x1='11' y1='0' x2='11' y2='7' stroke='%23D9AE4E' stroke-width='0.7'/%3E%3Cpath d='M11 7 L5 12 L5 26 Q5 29 11 29 Q17 29 17 26 L17 12 Z' fill='%23D9AE4E' fill-opacity='0.35'/%3E%3Cellipse cx='11' cy='12' rx='6' ry='1.5' fill='%23F2DFAC'/%3E%3C/svg%3E") center / contain no-repeat;
}

.l1 { top: 8%; left: 15%; }
.l2 { top: 6%; left: 50%; transform: translateX(-50%); }
.l3 { top: 8%; right: 15%; }

.anim-sway {
    animation: lanternSway 4s ease-in-out infinite;
    transform-origin: top center;
}

.anim-sway-delay {
    animation-delay: 1.2s;
}

@keyframes lanternSway {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

.l2.anim-sway {
    animation-name: lanternSwayCenter;
}

@keyframes lanternSwayCenter {
    0%, 100% { transform: translateX(-50%) rotate(-4deg); }
    50% { transform: translateX(-50%) rotate(4deg); }
}

/* ---- Arabic Text ---- */
.arabic-text {
    font-family: var(--font-arabic);
    direction: rtl;
}

/* ---- Hero Section ---- */
.hero,
.invite-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.75rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before,
.invite-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 90% 55% at 50% 30%, rgba(107, 28, 40, 0.22) 0%, transparent 74%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.48;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D9AE4E'%3E%3Cpath d='M16 14 L17.6 18.4 H22.4 L18.4 21.2 L20 25.6 L16 22.8 L12 25.6 L13.6 21.2 L9.6 18.4 H14.4 Z' fill-opacity='0.3'/%3E%3Cpath d='M48 6 L49.4 10 H53.4 L50.2 12.2 L51.6 16 L48 13.8 L44.4 16 L45.8 12.2 L42.6 10 H46.6 Z' fill-opacity='0.26'/%3E%3Cpath d='M82 72 L83.4 76 H87 L84.2 78.2 L85.6 82 L82 79.8 L78.4 82 L79.8 78.2 L76.6 76 H80.2 Z' fill-opacity='0.28'/%3E%3Cpath d='M30 78 L31.2 81.5 H34.5 L32 83.2 L33.2 86.5 L30 84.5 L26.8 86.5 L28 83.2 L25.5 81.5 H28.8 Z' fill-opacity='0.24'/%3E%3Cpath d='M64 14 A15 15 0 1 0 64 44 A11 11 0 1 1 64 14 Z' fill-opacity='0.4'/%3E%3Cpath d='M20 52 A13 13 0 1 0 20 78 A9.5 9.5 0 1 1 20 52 Z' fill-opacity='0.36'/%3E%3Cpath d='M86 34 A12 12 0 1 0 86 58 A8.5 8.5 0 1 1 86 34 Z' fill-opacity='0.38'/%3E%3Cpath d='M52 62 A11 11 0 1 0 52 84 A8 8 0 1 1 52 62 Z' fill-opacity='0.34'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100px 100px;
    background-repeat: repeat;
    pointer-events: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-animation: heroCelestialDrift 120s linear infinite;
    animation: heroCelestialDrift 120s linear infinite;
}

/* Ornate double gold frame with corner medallions */
.hero::after,
.invite-hero::after {
    content: '';
    position: absolute;
    inset: clamp(0.9rem, 3.5vw, 2rem);
    pointer-events: none;
    z-index: 0;
    border: 1px solid rgba(217, 174, 78, 0.55);
    border-radius: 4px;
    box-shadow:
        inset 0 0 0 4px rgba(42, 5, 8, 0.001),
        inset 0 0 0 5px rgba(217, 174, 78, 0.28),
        inset 0 0 44px rgba(217, 174, 78, 0.09);
    background:
        url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-width='1.1' stroke-opacity='0.85'%3E%3Cpath d='M2 22 C2 10 10 2 22 2'/%3E%3Cpath d='M2 34 C10 34 12 26 12 18 C20 18 24 12 24 2'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.6' fill='%23D9AE4E' fill-opacity='0.85'/%3E%3C/svg%3E") top left / 46px 46px no-repeat,
        url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-width='1.1' stroke-opacity='0.85' transform='translate(46,0) scale(-1,1)'%3E%3Cpath d='M2 22 C2 10 10 2 22 2'/%3E%3Cpath d='M2 34 C10 34 12 26 12 18 C20 18 24 12 24 2'/%3E%3C/g%3E%3Ccircle cx='34' cy='12' r='2.6' fill='%23D9AE4E' fill-opacity='0.85'/%3E%3C/svg%3E") top right / 46px 46px no-repeat,
        url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-width='1.1' stroke-opacity='0.85' transform='translate(0,46) scale(1,-1)'%3E%3Cpath d='M2 22 C2 10 10 2 22 2'/%3E%3Cpath d='M2 34 C10 34 12 26 12 18 C20 18 24 12 24 2'/%3E%3C/g%3E%3Ccircle cx='12' cy='34' r='2.6' fill='%23D9AE4E' fill-opacity='0.85'/%3E%3C/svg%3E") bottom left / 46px 46px no-repeat,
        url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-width='1.1' stroke-opacity='0.85' transform='translate(46,46) scale(-1,-1)'%3E%3Cpath d='M2 22 C2 10 10 2 22 2'/%3E%3Cpath d='M2 34 C10 34 12 26 12 18 C20 18 24 12 24 2'/%3E%3C/g%3E%3Ccircle cx='34' cy='34' r='2.6' fill='%23D9AE4E' fill-opacity='0.85'/%3E%3C/svg%3E") bottom right / 46px 46px no-repeat;
}

@keyframes heroCelestialDrift {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

.hero-content,
.personal-greeting,
.bismillah,
.bismillah-small,
.couple-showcase,
.scroll-indicator,
.invitation-intro,
.hero-divider,
.invite-divider {
    position: relative;
    z-index: 1;
}

.hero-ornament {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-ornament::before,
.hero-ornament::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 0.75rem;
}

.hero-ornament::before { left: -1rem; }
.hero-ornament::after { right: -1rem; }

.bismillah {
    margin-bottom: 1.5rem;
}

.bismillah-text {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--gold-light);
    text-shadow: 0 2px 18px rgba(217, 174, 78, 0.35);
    line-height: 1.8;
    letter-spacing: 0.02em;
    animation: fadeInDown 1.2s ease-out;
}

.bismillah-translation {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-on-red-muted);
    font-style: italic;
    margin-top: 0.5rem;
    letter-spacing: 0.06em;
}

.bismillah-small {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    color: var(--gold-light);
    text-shadow: 0 2px 18px rgba(217, 174, 78, 0.3);
    margin-bottom: 1.5rem;
}

.hero-divider {
    margin: 1.5rem 0;
}

.divider-star {
    color: var(--gold);
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.hero-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(0.75rem, 2.2vw, 0.85rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-on-red-muted);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.invitation-intro {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 3.5vw, 1.2rem);
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-on-red-muted);
    margin: 0 auto 0.85rem;
    max-width: 480px;
    line-height: 1.7;
    font-weight: 400;
    font-style: italic;
}

.hero-content {
    width: 100%;
    max-width: 640px;
}

/* ---- Couple showcase (hero focus) ---- */
.couple-showcase {
    margin: 0.5rem 0 0;
    padding: 0.85rem 0 0.75rem;
    position: relative;
}

.couple-showcase::before,
.couple-showcase::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 420px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 174, 78, 0.55), transparent);
}

.couple-showcase::before { top: 0; }
.couple-showcase::after { bottom: 0; }

.rukhsati-of-label {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 4vw, 1.7rem);
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--text-on-red-muted);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.text-shimmer {
    font-family: var(--font-display);
    font-weight: 400;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-shimmer), var(--gold), var(--gold-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 0.55px rgba(251, 241, 212, 0.45);
    paint-order: stroke fill;
    animation: shimmer 4s linear infinite;
    line-height: 1.25;
    -webkit-text-stroke: 0;
}

.couple-names-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.couple-names-hero .name-bride,
.couple-names-hero .name-groom {
    font-size: clamp(2.6rem, 11vw, 4.6rem);
    -webkit-text-stroke: 0;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.couple-names-hero .name-ampersand {
    font-family: var(--font-script);
    font-size: clamp(2.4rem, 9vw, 3.6rem);
    color: var(--gold);
    line-height: 0.9;
    margin: 0.15rem 0;
}

.hero-title {
    margin-bottom: 1rem;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.couple-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.name-bride,
.name-groom {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--gold-light);
}

.name-ampersand {
    font-family: var(--font-script);
    color: var(--gold);
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.scroll-indicator--inline {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 2.5rem auto 0;
}

/* Reveal animation must not override horizontal centering */
.scroll-indicator.reveal {
    transform: none;
}

.scroll-indicator.reveal.visible {
    transform: none;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    -webkit-animation: bounceInline 2s ease-in-out infinite;
    animation: bounceInline 2s ease-in-out infinite;
}

@keyframes bounceInline {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(8px); transform: translateY(8px); }
}

.scroll-text {
    font-family: var(--font-elegant);
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-on-red-muted);
    font-weight: 300;
    text-align: center;
    display: block;
    /* Offset trailing letter-spacing so text looks visually centered */
    padding-left: 0.28em;
    white-space: nowrap;
}

.scroll-arrow span {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    opacity: 0.6;
}

.scroll-arrow span:first-child {
    animation: arrowDown 1.5s ease-in-out infinite;
}

.scroll-arrow span:last-child {
    animation: arrowDown 1.5s ease-in-out 0.2s infinite;
    margin-top: -6px;
}

@keyframes arrowDown {
    0% { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(4px, 4px); }
}

/* ---- Transition Section ---- */
.transition-section {
    position: relative;
    overflow: hidden;
}

.transition-section--compact {
    padding: 0;
    background: none;
}

.transition-section--compact .islamic-border {
    height: 28px;
    opacity: 0.85;
}

.islamic-border {
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg width='120' height='40' viewBox='0 0 120 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-opacity='0.55' stroke-width='1'%3E%3Cpath d='M0 20 Q15 4 30 20 Q45 36 60 20 Q75 4 90 20 Q105 36 120 20'/%3E%3C/g%3E%3Cpath d='M60 6 L64 17 L76 17 L66 24 L70 35 L60 28 L50 35 L54 24 L44 17 L56 17 Z' fill='%23D9AE4E' fill-opacity='0.4'/%3E%3Cg fill='%23D9AE4E' fill-opacity='0.5'%3E%3Ccircle cx='0' cy='20' r='2'/%3E%3Ccircle cx='30' cy='20' r='1.6'/%3E%3Ccircle cx='90' cy='20' r='1.6'/%3E%3Ccircle cx='120' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E") center / 120px 40px repeat-x;
}

.islamic-border--animated {
    animation: borderSlide 40s linear infinite;
}

.islamic-border--reverse {
    animation-direction: reverse;
    opacity: 0.85;
}

@keyframes borderSlide {
    0% { background-position: 0 center; }
    100% { background-position: 400px center; }
}

/* ---- Lookup / RSVP Sections ---- */
.lookup-section,
.event-section,
.rsvp-section {
    padding: 2.5rem 1.5rem 3rem;
    background: none;
    position: relative;
}

.lookup-section::before,
.event-section::before,
.rsvp-section::before {
    content: '❋';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    opacity: 0.22;
    font-size: 3rem;
    pointer-events: none;
}

.section-inner {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-ornament {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 18px rgba(217, 174, 78, 0.45);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 7vw, 3rem);
    font-weight: 400;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-shadow: 0 2px 16px rgba(217, 174, 78, 0.3);
}

/* Gold rule with a diamond beneath every section title */
.section-title::after {
    content: '';
    display: block;
    width: 130px;
    height: 9px;
    margin: 0.65rem auto 0;
    background:
        linear-gradient(90deg, transparent, rgba(217, 174, 78, 0.75), transparent) center / 100% 1px no-repeat,
        url("data:image/svg+xml,%3Csvg width='9' height='9' viewBox='0 0 9 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 0 L9 4.5 L4.5 9 L0 4.5 Z' fill='%23D9AE4E'/%3E%3C/svg%3E") center / 9px 9px no-repeat;
}

.section-desc {
    font-family: var(--font-body);
    color: var(--text-on-red-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
    font-weight: 400;
    line-height: 1.7;
}

/* ---- Event & Venue ---- */
.event-datetime-inner,
.venue-card,
.event-itinerary-card,
.event-seating-card,
.event-contacts-card,
.lookup-form,
.rsvp-form {
    background: var(--card-bg);
    background-size: var(--card-bg-size);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    color: var(--text-on-red);
}

.event-datetime-card {
    margin-bottom: 1.75rem;
}

.event-datetime-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 1.75rem 2rem;
    border-radius: var(--radius);
    position: relative;
}

.event-datetime-inner::before,
.event-datetime-inner::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    opacity: 0.7;
    font-size: 0.75rem;
}

.event-datetime-inner::before { left: 1rem; }
.event-datetime-inner::after { right: 1rem; }

.event-day {
    font-family: var(--font-elegant);
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-on-red-muted);
    font-weight: 300;
}

.event-date {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 6vw, 2.5rem);
    font-weight: 400;
    color: var(--gold-light);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.event-time {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 3.5vw, 1.2rem);
    color: var(--text-on-red);
    font-weight: 400;
    font-style: italic;
    margin-top: 0.15rem;
}

.event-inshaallah {
    font-size: clamp(1rem, 3vw, 1.15rem);
    color: var(--gold);
    margin-top: 0.85rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.venue-card {
    text-align: center;
    border-radius: var(--radius);
    overflow: hidden;
}

.venue-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1.35rem 1.35rem 1rem;
    border-bottom: 1px solid rgba(217, 174, 78, 0.22);
    background: transparent;
}

.venue-info {
    width: 100%;
}

.venue-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 50%;
    color: var(--red-deep);
    box-shadow: 0 4px 14px var(--shadow-gold), inset 0 0 0 1px rgba(255, 251, 241, 0.5);
}

.venue-icon svg {
    width: 22px;
    height: 22px;
}

.venue-name {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 5vw, 2rem);
    font-weight: 400;
    color: var(--gold-light);
    line-height: 1.35;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.venue-address {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-on-red-muted);
    line-height: 1.5;
    text-align: center;
}

.btn-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

.venue-actions {
    padding: 1.25rem 1.35rem 1.35rem;
}

.venue-actions .btn-directions {
    margin: 0;
}

.btn-directions .btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.event-itinerary-card,
.event-seating-card,
.event-contacts-card {
    position: relative;
    margin-top: 1.75rem;
    padding: 1.5rem 1.35rem;
    border-radius: var(--radius);
    text-align: left;
}

/* Gold filigree corners on every detail card */
.event-itinerary-card::before,
.event-seating-card::before,
.event-contacts-card::before {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: calc(var(--radius) - 3px);
    pointer-events: none;
    background:
        url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-width='1.1' stroke-opacity='0.75'%3E%3Cpath d='M1 10 C1 5 5 1 10 1'/%3E%3C/g%3E%3C/svg%3E") top left / 22px 22px no-repeat,
        url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-width='1.1' stroke-opacity='0.75'%3E%3Cpath d='M21 10 C21 5 17 1 12 1'/%3E%3C/g%3E%3C/svg%3E") top right / 22px 22px no-repeat,
        url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-width='1.1' stroke-opacity='0.75'%3E%3Cpath d='M1 12 C1 17 5 21 10 21'/%3E%3C/g%3E%3C/svg%3E") bottom left / 22px 22px no-repeat,
        url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D9AE4E' stroke-width='1.1' stroke-opacity='0.75'%3E%3Cpath d='M21 12 C21 17 17 21 12 21'/%3E%3C/g%3E%3C/svg%3E") bottom right / 22px 22px no-repeat;
}

.event-itinerary-card > *,
.event-seating-card > *,
.event-contacts-card > * {
    position: relative;
    z-index: 1;
}

.event-subheading {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 5vw, 1.9rem);
    font-weight: 400;
    color: var(--gold-light);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.event-subheading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(217, 174, 78, 0.65), transparent);
}

.itinerary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.itinerary-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(217, 174, 78, 0.16);
}

.itinerary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.itinerary-item:first-child {
    padding-top: 0;
}

.itinerary-time {
    flex-shrink: 0;
    min-width: 5.5rem;
    font-family: var(--font-elegant);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
}

.itinerary-label {
    font-family: var(--font-body);
    font-size: 1.02rem;
    color: var(--text-on-red);
    line-height: 1.5;
}

.seating-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.seating-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(217, 174, 78, 0.16);
    font-family: var(--font-body);
    font-size: 1.02rem;
    color: var(--text-on-red);
    line-height: 1.5;
}

.seating-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.seating-item:first-child {
    padding-top: 0;
}

.seating-table {
    color: var(--gold);
    font-family: var(--font-elegant);
    letter-spacing: 0.04em;
}

.seating-note {
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-style: italic;
    color: var(--text-on-red-muted);
    line-height: 1.6;
    margin: 0;
}

.event-contacts-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-on-red-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contacts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(217, 174, 78, 0.16);
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item:first-child {
    padding-top: 0;
}

.contact-name {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-on-red);
    line-height: 1.45;
}

.contact-phone {
    font-family: var(--font-elegant);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-phone:hover,
.contact-phone:focus-visible {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ---- Forms ---- */
.lookup-form,
.rsvp-form {
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius);
    position: relative;
    text-align: left;
}

.lookup-form::before,
.rsvp-form::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(217, 174, 78, 0.28);
    border-radius: calc(var(--radius) - 2px);
    pointer-events: none;
}

.lookup-form > *,
.rsvp-form > * {
    position: relative;
    z-index: 1;
}

.form-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: var(--font-elegant);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.lookup-form .form-group label,
.rsvp-form .form-group label {
    color: var(--gold);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1.5px solid rgba(217, 174, 78, 0.45);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--shadow-gold);
}

.form-group input::placeholder {
    color: #B8AFA0;
}

.lookup-form .form-group input,
.lookup-form .form-group textarea,
.rsvp-form .form-group input,
.rsvp-form .form-group textarea {
    background: rgba(42, 5, 8, 0.55);
    border-color: rgba(217, 174, 78, 0.42);
    color: var(--text-on-red);
}

.lookup-form .form-group input::placeholder,
.rsvp-form .form-group input::placeholder {
    color: rgba(246, 230, 196, 0.42);
}

.lookup-form .form-message.error,
.rsvp-form .form-message.error {
    background: rgba(155, 18, 25, 0.45);
    color: var(--gold-light);
    border-color: rgba(217, 174, 78, 0.4);
}

.lookup-form .form-message.success,
.rsvp-form .form-message.success {
    background: rgba(217, 174, 78, 0.14);
    color: var(--gold-light);
    border-color: rgba(217, 174, 78, 0.45);
}

.form-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.form-message.error {
    background: #FDF0F0;
    color: #9B2C2C;
    border: 1px solid #FEB2B2;
}

.form-message.success {
    background: #F0FDF4;
    color: #276749;
    border: 1px solid #9AE6B4;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: var(--font-elegant);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold), var(--gold-light), var(--gold));
    color: var(--red-ink);
    font-weight: 700;
    box-shadow:
        0 6px 24px var(--shadow-gold),
        inset 0 1px 0 rgba(255, 251, 241, 0.55),
        inset 0 0 0 1px rgba(255, 251, 241, 0.3);
    width: 100%;
}

.btn-gold:hover {
    box-shadow: 0 8px 32px rgba(217, 174, 78, 0.5);
}

.btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
}

.btn-danger {
    background: #C53030;
    color: white;
    border: none;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* ---- Guest List / RSVP ---- */
.guest-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.guest-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(42, 5, 8, 0.42);
    border: 1.5px solid rgba(217, 174, 78, 0.32);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.guest-item:has(input:checked) {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(217, 174, 78, 0.2), rgba(90, 11, 16, 0.55));
    box-shadow: 0 4px 16px var(--shadow-gold);
}

.guest-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.guest-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(217, 174, 78, 0.55);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.guest-checkbox svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    color: var(--red-ink);
    transition: opacity 0.2s;
}

.guest-item input:checked + .guest-checkbox {
    background: var(--gold);
    border-color: var(--gold);
}

.guest-item input:checked + .guest-checkbox svg {
    opacity: 1;
}

.guest-name {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-on-red);
}

.rsvp-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.status-badge {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold), var(--gold-light));
    color: var(--red-ink);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-detail {
    color: var(--text-on-red-muted);
    font-size: 0.9rem;
}

.no-members {
    color: var(--text-on-red-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.gift-note {
    margin: 0 auto;
    padding: 0.25rem 1rem 0.15rem;
    max-width: 16rem;
    font-family: var(--font-body);
    font-size: clamp(1.28rem, 4.8vw, 1.85rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: center;
    color: var(--gold-light);
}

.gift-note + .rsvp-section {
    padding-top: 1.35rem;
}

@media (min-width: 768px) {
    .gift-note { max-width: 36rem; }
}

/* ---- Invite Page ---- */
.page-invite .invite-hero {
    padding: 1.75rem 1.5rem 4rem;
}

.personal-greeting {
    margin-bottom: 1rem;
}

.greeting-label {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--text-on-red-muted);
    margin-bottom: 0.35rem;
    font-weight: 400;
}

.greeting-name {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 8vw, 3.1rem);
    font-weight: 400;
    color: var(--gold-light);
    text-shadow: 0 2px 20px rgba(217, 174, 78, 0.3);
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.greeting-family {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 4.5vw, 1.7rem);
    font-style: normal;
    color: var(--text-on-red-muted);
    margin-top: 0.35rem;
}

.invite-divider {
    width: 150px;
    height: 12px;
    background:
        linear-gradient(90deg, transparent, var(--gold), transparent) center / 100% 1px no-repeat,
        url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 0 L7.6 4.4 L12 6 L7.6 7.6 L6 12 L4.4 7.6 L0 6 L4.4 4.4 Z' fill='%23D9AE4E'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
    margin: 1.25rem auto;
}

.page-not-found h1 {
    font-family: var(--font-display);
    color: var(--gold-light);
    margin: 1.5rem 0;
}

.page-not-found p {
    margin-bottom: 2rem;
    color: var(--text-on-red-muted);
}

/* Outline buttons sit on the red backdrop on guest-facing pages */
.page-landing .btn-outline,
.page-invite .btn-outline {
    color: var(--gold-light);
    border-color: rgba(217, 174, 78, 0.7);
}

/* ---- Quran Ayat ---- */
.ayat-section {
    padding: 2.5rem 1.5rem 2.5rem;
    background: none;
    border-top: 1px solid rgba(217, 174, 78, 0.22);
}

.ayat-section--intro {
    padding: 2.5rem 1.5rem 2.25rem;
    border-top: 1px solid rgba(217, 174, 78, 0.28);
    border-bottom: 1px solid rgba(217, 174, 78, 0.28);
    scroll-margin-top: 1rem;
}

.ayat-section--intro .scroll-indicator--inline {
    margin-top: 2rem;
}

.ayat-section--intro .section-ornament {
    display: none;
}

.ayat-section .section-inner {
    max-width: 640px;
}

.ayat-reference {
    font-family: var(--font-elegant);
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-on-red-muted);
    margin-bottom: 0.85rem;
    font-weight: 300;
}

.ayat-arabic {
    font-size: clamp(1.2rem, 4vw, 1.65rem);
    color: var(--gold-light);
    text-shadow: 0 2px 20px rgba(217, 174, 78, 0.3);
    line-height: 1.85;
    margin: 0 0 1rem;
    padding: 0;
    border: none;
    quotes: none;
}

.ayat-translation {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    font-style: italic;
    color: var(--text-on-red-muted);
    line-height: 1.75;
    max-width: 540px;
    margin: 0 auto;
}

/* ---- Footer ---- */
.site-footer {
    text-align: center;
    padding: 2.5rem 1.5rem 3rem;
    background: none;
    border-top: 1px solid rgba(217, 174, 78, 0.22);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 12px;
    background:
        linear-gradient(90deg, transparent, rgba(217, 174, 78, 0.6), transparent) center / 100% 1px no-repeat,
        url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 0 L7.6 4.4 L12 6 L7.6 7.6 L6 12 L4.4 7.6 L0 6 L4.4 4.4 Z' fill='%23D9AE4E'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.footer-dua {
    font-size: clamp(1.45rem, 5.5vw, 2.1rem);
    color: var(--gold-light);
    text-shadow: 0 2px 20px rgba(217, 174, 78, 0.3);
    margin: 0.5rem auto 1rem;
    line-height: 1.9;
    max-width: 640px;
}

.footer-text {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-on-red-muted);
    letter-spacing: 0.1em;
    font-weight: 400;
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.35s ease, transform 1.35s ease;
}

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

.hero-ornament {
    opacity: 0;
    animation: pageTextIn 1.4s ease 2.55s forwards;
}

@keyframes pageTextIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Admin Styles ---- */
.page-admin {
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D9AE4E' fill-opacity='0.05'%3E%3Cpath d='M30 0l4 8-4 8-4-8z'/%3E%3C/g%3E%3C/svg%3E"),
        var(--cream);
    background-size: 60px 60px, 100% 100%;
    color: var(--text-dark);
    min-height: 100vh;
}

.page-admin .admin-header h1,
.page-admin .admin-card h2,
.page-admin .admin-login-header h1 {
    color: var(--red);
}

.page-admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-login-card {
    background: linear-gradient(160deg, var(--parchment) 0%, var(--ivory) 100%);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 12px 36px var(--shadow-soft), inset 0 1px 0 rgba(255, 251, 241, 0.8);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(217, 174, 78, 0.4);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.admin-login-header h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.admin-login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.admin-header {
    background: var(--white);
    border-bottom: 2px solid rgba(217, 174, 78, 0.45);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.admin-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

.admin-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(155, 18, 25, 0.07), rgba(217, 174, 78, 0.12));
    border: 1px solid rgba(217, 174, 78, 0.4);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px var(--shadow-soft);
}

.admin-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 5rem;
}

.admin-stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 2.75rem);
    line-height: 1;
    color: var(--gold-dark);
}

.admin-stat-label {
    font-family: var(--font-elegant);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.35rem;
    font-weight: 300;
}

.admin-stat-divider {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.45;
    line-height: 1;
}

.admin-stat-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-left: auto;
    text-align: right;
}

.admin-stat-rate {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-dark);
}

.admin-stat-detail {
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (max-width: 639px) {
    .admin-stat-meta {
        width: 100%;
        margin-left: 0;
        text-align: left;
        padding-top: 0.25rem;
        border-top: 1px solid rgba(217, 174, 78, 0.12);
    }
}

.admin-card {
    background: linear-gradient(160deg, var(--parchment) 0%, var(--ivory) 100%);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 28px var(--shadow-soft), inset 0 1px 0 rgba(255, 251, 241, 0.8);
    border: 1px solid rgba(217, 174, 78, 0.38);
}

.admin-card h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(217, 174, 78, 0.28);
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 640px) {
    .admin-form .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.input-prefix {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(217, 174, 78, 0.25);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.input-prefix span {
    padding: 0.85rem 0 0.85rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    background: var(--ivory);
}

.input-prefix input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.form-actions .btn-gold {
    width: auto;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #F0FDF4;
    color: #276749;
    border: 1px solid #9AE6B4;
}

.alert-error {
    background: #FDF0F0;
    color: #9B2C2C;
    border: 1px solid #FEB2B2;
}

.admin-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(217, 174, 78, 0.1);
}

.admin-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.invite-link {
    color: var(--gold-dark);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.85rem;
}

.invite-link:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #F0FDF4;
    color: #276749;
}

.badge-muted {
    background: var(--ivory);
    color: var(--text-muted);
}

.actions-cell {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form {
    display: inline;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(42, 5, 8, 0.55);
}

.admin-modal-dialog {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    background: var(--white);
    border: 1px solid rgba(217, 174, 78, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(44, 36, 22, 0.18);
    padding: 1.5rem;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.admin-modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--gold-dark);
}

.admin-modal-close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.admin-modal-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.admin-reminder-text {
    width: 100%;
    min-height: 220px;
    padding: 1rem;
    border: 1px solid rgba(217, 174, 78, 0.25);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--cream);
    resize: vertical;
    margin-bottom: 0.75rem;
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

.admin-copy-status {
    margin-top: 0.75rem;
    color: #276749;
    font-size: 0.9rem;
}

.admin-meta {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.admin-meta a {
    color: var(--gold-dark);
}

.rsvp-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rsvp-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(217, 174, 78, 0.1);
}

.rsvp-detail-item.attending {
    background: #F0FDF4;
}

.rsvp-detail-item.not-attending {
    background: var(--ivory);
    opacity: 0.7;
}

.rsvp-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.attending .rsvp-icon {
    background: #276749;
    color: white;
}

.not-attending .rsvp-icon {
    background: #CBD5E0;
    color: #4A5568;
}

.rsvp-name {
    flex: 1;
    font-weight: 600;
}

.rsvp-status-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rsvp-summary {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(217, 174, 78, 0.1);
}

/* ---- Loading state ---- */
.btn.loading .btn-text {
    opacity: 0.5;
}

.btn.loading {
    pointer-events: none;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 767px) {
    .parallax-layer {
        will-change: auto;
    }

    .hero,
    .invite-hero {
        min-height: 100dvh;
        padding-bottom: 3.5rem;
    }

    .hero-pattern {
        background-size: 76px 76px;
    }

    .ambient-lanterns {
        display: none;
    }

    .layer-floral {
        opacity: 0.22;
        width: 38vw;
        height: 40vh;
    }

    .layer-skyline {
        opacity: 0.1;
        height: 16vh;
    }

    .layer-geometric,
    .layer-arabesque {
        opacity: 0.85;
    }

    .page-wrapper::before,
    .page-wrapper::after {
        display: none;
    }

    .particle:nth-child(n+5) {
        display: none;
    }

    .lookup-section,
    .event-section,
    .rsvp-section,
    .ayat-section--intro {
        padding: 2rem 1.25rem 2.5rem;
    }

    .event-datetime-inner {
        padding: 1.5rem 1.15rem;
    }

    .event-datetime-inner::before,
    .event-datetime-inner::after {
        display: none;
    }

    .lookup-form,
    .rsvp-form {
        padding: 1.6rem 1.15rem;
    }

    .event-itinerary-card,
    .event-seating-card,
    .event-contacts-card {
        padding: 1.25rem 1.1rem;
    }

    .itinerary-item {
        gap: 0.75rem;
    }

    .itinerary-time {
        min-width: 4.75rem;
        letter-spacing: 0.08em;
    }

    .hero,
    .invite-hero {
        padding-top: max(1.75rem, env(safe-area-inset-top));
        padding-bottom: max(3.5rem, calc(2.75rem + env(safe-area-inset-bottom)));
    }

    .site-footer {
        padding-bottom: max(3rem, calc(2.25rem + env(safe-area-inset-bottom)));
    }
}

@media (min-width: 768px) {
    .couple-names-hero {
        gap: 0.25rem;
    }

    .hero {
        padding: 2rem 2rem 3.5rem;
    }

    .lookup-section,
    .event-section,
    .rsvp-section {
        padding: 3rem 2rem 3.5rem;
    }

    .ayat-section--intro {
        padding: 2rem 2rem 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .hero-ornament {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

