/* ============================================
   Hamzah × Nimra — Dark Blue & Gold Theme
   Mobile-first responsive design
   ============================================ */

:root {
    --navy-deep: #050D18;
    --navy: #0A1628;
    --navy-mid: #122240;
    --navy-light: #1A2D4A;
    --navy-card: #0F1E35;
    --gold: #D4AF37;
    --gold-light: #F0D78C;
    --gold-dark: #9A7B2F;
    --gold-shimmer: #FFE9A8;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --white: #FFFFFF;
    --cream: #F5F0E6;
    --ivory: #E8E2D4;
    --text-on-light: #2C3E50;
    --text-on-light-muted: #5A6578;
    --text-dark: #F5F0E6;
    --text-muted: #A8B4C8;
    --text-dim: #7A8BA3;
    --shadow-gold: rgba(212, 175, 55, 0.3);
    --shadow-soft: rgba(0, 0, 0, 0.35);
    --font-display: 'Italiana', Georgia, serif;
    --font-body: 'Libre Baskerville', Georgia, serif;
    --font-elegant: 'Josefin Sans', 'Helvetica Neue', sans-serif;
    --font-script: 'Pinyon Script', 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%;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--navy-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.page-landing,
body.page-invite {
    background: var(--navy-deep);
}

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

.page-wrapper::before,
.page-wrapper::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(8vw, 52px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2l2.5 7.5H30l-6 4.5 2.5 7.5L20 17l-6.5 4.5 2.5-7.5L14 9.5h7.5z' fill='%23C9A84C' fill-opacity='0.12'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

.page-wrapper::before { left: 0; }
.page-wrapper::after { right: 0; }

/* ---- 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;
}

/* Soft golden light wash on dark navy */
.layer-glow {
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 175, 55, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 10% 90%, rgba(26, 45, 74, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 85%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-mid) 100%);
    animation: auroraPulse 12s ease-in-out infinite alternate;
}

@keyframes auroraPulse {
    0% { opacity: 0.85; filter: hue-rotate(0deg); }
    100% { opacity: 1; filter: hue-rotate(8deg); }
}

/* Twinkling gold dust */
.layer-star-field {
    inset: 0;
    background:
        radial-gradient(1px 1px at 12% 18%, var(--gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 28% 72%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 55% 12%, var(--gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 78% 38%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 92% 68%, var(--gold) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 8% 88%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 42% 48%, var(--gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 65% 82%, var(--gold-light) 50%, transparent 50%);
}

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

@keyframes starTwinkle {
    0% { opacity: 0.35; }
    100% { opacity: 0.7; }
}

/* Islamic 8-point star lattice */
.layer-geometric {
    inset: -5%;
    background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A84C' stroke-width='0.65' opacity='0.22'%3E%3Cpath d='M36 4 L41 18 L56 18 L44 27 L49 42 L36 33 L23 42 L28 27 L16 18 L31 18 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 72px 72px;
}

/* Interlocking arabesque curves */
.layer-arabesque {
    inset: -5%;
    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%3Cpath d='M0 50 Q25 25 50 50 T100 50' fill='none' stroke='%23C9A84C' stroke-width='0.5' opacity='0.1'/%3E%3Cpath d='M0 0 Q50 50 0 100' fill='none' stroke='%23C9A84C' stroke-width='0.4' opacity='0.08'/%3E%3Cpath d='M100 0 Q50 50 100 100' fill='none' stroke='%23C9A84C' stroke-width='0.4' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

.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.45;
}

.layer-floral-left {
    left: 0;
    right: auto;
    inset: auto auto 0 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 420'%3E%3Cpath d='M20 400 Q40 320 30 260 Q20 200 50 160 Q80 120 40 80' fill='none' stroke='%23C9A84C' stroke-width='1' opacity='0.2'/%3E%3Cellipse cx='45' cy='370' rx='22' ry='34' fill='%23FFFCF7' stroke='%23C9A84C' stroke-width='0.8' opacity='0.5'/%3E%3Cellipse cx='70' cy='330' rx='16' ry='26' fill='%23FFFCF7' stroke='%23C9A84C' stroke-width='0.8' opacity='0.45'/%3E%3Cellipse cx='30' cy='300' rx='14' ry='22' fill='%23FFFCF7' stroke='%23C9A84C' stroke-width='0.8' opacity='0.4'/%3E%3Ccircle cx='45' cy='370' r='7' fill='%23C9A84C' opacity='0.15'/%3E%3Cpath d='M10 390 Q35 350 60 375' stroke='%23C9A84C' stroke-width='0.8' fill='none' opacity='0.25'/%3E%3Cpath d='M5 410 Q30 370 55 395' stroke='%23C9A84C' stroke-width='0.6' fill='none' opacity='0.2'/%3E%3C/svg%3E") left bottom / contain no-repeat;
}

.layer-floral-right {
    left: auto;
    right: 0;
    inset: auto 0 0 auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 420'%3E%3Cpath d='M20 400 Q40 320 30 260 Q20 200 50 160 Q80 120 40 80' fill='none' stroke='%23C9A84C' stroke-width='1' opacity='0.2'/%3E%3Cellipse cx='45' cy='370' rx='22' ry='34' fill='%23FFFCF7' stroke='%23C9A84C' stroke-width='0.8' opacity='0.5'/%3E%3Cellipse cx='70' cy='330' rx='16' ry='26' fill='%23FFFCF7' stroke='%23C9A84C' stroke-width='0.8' opacity='0.45'/%3E%3Cellipse cx='30' cy='300' rx='14' ry='22' fill='%23FFFCF7' stroke='%23C9A84C' stroke-width='0.8' opacity='0.4'/%3E%3Ccircle cx='45' cy='370' r='7' fill='%23C9A84C' opacity='0.15'/%3E%3C/svg%3E") right bottom / contain no-repeat;
}

/* 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.14;
    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='%23C9A84C' opacity='0.3'/%3E%3Cpath d='M460 155 C460 120 490 88 530 72 C570 88 600 120 600 155 Z' fill='%23C9A84C' opacity='0.18'/%3E%3Cpath d='M480 155 C480 125 505 98 530 86 C555 98 580 125 580 155 Z' fill='%23C9A84C' opacity='0.12'/%3E%3Cpath d='M540 155 C540 105 570 55 600 38 C630 55 660 105 660 155 Z' fill='%23C9A84C' opacity='0.22'/%3E%3Cpath d='M560 155 C560 115 580 78 600 62 C620 78 640 115 640 155 Z' fill='%23C9A84C' opacity='0.14'/%3E%3Cpath d='M670 155 C670 120 700 88 740 72 C780 88 810 120 810 155 Z' fill='%23C9A84C' opacity='0.18'/%3E%3Cpath d='M690 155 C690 125 715 98 740 86 C765 98 790 125 790 155 Z' fill='%23C9A84C' opacity='0.12'/%3E%3Cpath d='M320 155 C320 130 345 108 370 98 C395 108 420 130 420 155 Z' fill='%23C9A84C' opacity='0.1'/%3E%3Cpath d='M780 155 C780 130 805 108 830 98 C855 108 880 130 880 155 Z' fill='%23C9A84C' 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='%23C9A84C' 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='%23C9A84C' fill-opacity='0.35'/%3E%3Cellipse cx='11' cy='12' rx='6' ry='1.5' fill='%23E8D5A3'/%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-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    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='%23C9A84C'%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.18'/%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.15'/%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.16'/%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.14'/%3E%3Cpath d='M64 14 A15 15 0 1 0 64 44 A11 11 0 1 1 64 14 Z' fill-opacity='0.32'/%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.28'/%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.3'/%3E%3Cpath d='M52 62 A11 11 0 1 0 52 84 A8 8 0 1 1 52 62 Z' fill-opacity='0.26'/%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;
}

.hero::after,
.invite-hero::after {
    content: '';
    position: absolute;
    inset: clamp(1.25rem, 5vw, 3rem);
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
    background:
        linear-gradient(var(--gold), var(--gold)) top left / 28px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) top left / 1px 28px no-repeat,
        linear-gradient(var(--gold), var(--gold)) top right / 28px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) top right / 1px 28px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom left / 28px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom left / 1px 28px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom right / 28px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom right / 1px 28px no-repeat;
}

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

.hero-content,
.personal-greeting,
.bismillah,
.bismillah-small,
.couple-showcase,
.invitation-card,
.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-dark);
    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-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-dark);
    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-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-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;
}

/* ---- Invitation card (side-specific hosts → primary → with → secondary) ---- */
.invitation-card {
    margin: 0.5rem 0 0;
    padding: 1rem 0 0.5rem;
    text-align: center;
}

.invitation-custom {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 3.5vw, 1.2rem);
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-inline: auto;
}

.invite-hosts {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 4.2vw, 1.5rem);
    color: var(--text-dark);
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    font-weight: 400;
}

.invite-cordial {
    font-family: var(--font-elegant);
    font-size: clamp(0.65rem, 2vw, 0.78rem);
    letter-spacing: 0.22em;
    text-transform: lowercase;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    font-weight: 300;
    font-style: italic;
}

.invite-event-title {
    font-family: var(--font-script);
    font-size: clamp(2rem, 8vw, 3.2rem);
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.invite-of {
    font-family: var(--font-elegant);
    font-size: clamp(0.65rem, 2vw, 0.78rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.invite-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin: 0.5rem 0;
}

.invite-person--primary {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.invite-person--primary .name-prominent {
    font-size: clamp(2.8rem, 13vw, 5.5rem);
}

.invite-person--secondary .name-prominent--secondary {
    font-size: clamp(2rem, 9vw, 3.8rem);
    font-family: var(--font-display);
    background: linear-gradient(135deg, #8A6820, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 0.65px var(--gold-dark);
    animation: shimmer 4s linear infinite;
    line-height: 1.1;
}

.invite-with {
    font-family: var(--font-elegant);
    font-size: clamp(0.65rem, 2vw, 0.78rem);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0.75rem 0;
    font-weight: 300;
}

.invite-lineage {
    font-family: var(--font-elegant);
    font-size: clamp(0.6rem, 1.8vw, 0.72rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.35rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 90%;
}

.name-given--inline {
    margin-top: -0.1rem;
}

.welcome-showcase {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0;
    text-align: center;
}

.welcome-label {
    font-family: var(--font-elegant);
    font-size: clamp(0.7rem, 2.2vw, 0.82rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 300;
}

.event-invite-section {
    padding: 2.5rem 1.5rem;
    position: relative;
    background: transparent;
}

.event-invite-section + .event-invite-section {
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.event-rsvp-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.event-rsvp-heading {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--gold);
    text-align: center;
    margin-bottom: 0.35rem;
}

.event-rsvp-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.rsvp-form--multi-event {
    display: block;
}

.rsvp-status--global {
    text-align: center;
    margin: 1.5rem auto 0;
    max-width: 640px;
    padding: 0 1.5rem;
}

.rsvp-form-message {
    max-width: 640px;
    margin: 0 auto 1.25rem;
    padding: 0 1.5rem;
}

.rsvp-submit-section {
    padding: 1.5rem 1.5rem 3rem;
    text-align: center;
    background: transparent;
}

.event-rsvp-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.event-rsvp-actions .btn {
    width: 100%;
    max-width: 320px;
}

.rsvp-submit-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rsvp-submit-section .section-inner {
    max-width: 640px;
    margin: 0 auto;
}

/* ---- Couple showcase (legacy / optional) ---- */
.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(201, 168, 76, 0.2), transparent);
}

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

.nikkah-of-label {
    font-family: var(--font-elegant);
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 300;
}

.text-shimmer {
    font-family: var(--font-display);
    font-weight: 400;
    background: linear-gradient(135deg, #8A6820, var(--gold-dark), var(--gold), var(--gold-light), var(--gold-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 0.55px var(--gold-dark);
    paint-order: stroke fill;
    animation: shimmer 4s linear infinite;
    line-height: 1.15;
}

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

.name-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.name-given {
    font-family: var(--font-elegant);
    font-size: clamp(0.75rem, 2.8vw, 1rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.3;
}

.name-prominent {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 13vw, 5.5rem);
    font-weight: 400;
    background: linear-gradient(135deg, #8A6820, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 0.85px var(--gold-dark);
    paint-order: stroke fill;
    animation: shimmer 4s linear infinite, nameGlow 3s ease-in-out infinite alternate;
    line-height: 1.05;
    letter-spacing: 0.03em;
}

@keyframes nameGlow {
    0% { filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.2)); }
    100% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.45)); }
}

.couple-names-hero .name-ampersand {
    font-family: var(--font-script);
    font-size: clamp(2.4rem, 9vw, 3.8rem);
    color: var(--gold);
    line-height: 0.9;
    margin: 0.2rem 0;
    animation: ampersandFloat 4s ease-in-out infinite;
}

@keyframes ampersandFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.05); }
}

.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(--text-dark);
}

.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-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%3Cpath d='M60 0 L65 15 L80 15 L68 24 L73 40 L60 30 L47 40 L52 24 L40 15 L55 15 Z' fill='%23C9A84C' fill-opacity='0.18'/%3E%3C/svg%3E") center / 100px 36px 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: transparent;
    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.1;
    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;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5.5vw, 2.35rem);
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
}

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

/* ---- Event & Venue ---- */
.event-datetime-card {
    margin-bottom: 1.75rem;
}

.event-datetime-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 1.5rem 2rem;
    background: var(--navy-card);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow-soft);
    position: relative;
}

.event-datetime-inner::before,
.event-datetime-inner::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    opacity: 0.4;
    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-muted);
    font-weight: 300;
}

.event-date {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 400;
    color: var(--gold-dark);
    line-height: 1.2;
    letter-spacing: 0.04em;
}

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

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

.venue-card {
    text-align: center;
    background: var(--navy-card);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.9);
    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(201, 168, 76, 0.1);
    background: var(--navy-card);
}

.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));
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 4px 14px var(--shadow-gold);
}

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

.venue-name {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    font-weight: 400;
    color: var(--gold-dark);
    line-height: 1.35;
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
    text-align: center;
}

.venue-address {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-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-contacts-card {
    margin-top: 1.75rem;
    padding: 1.5rem 1.35rem;
    background: var(--navy-card);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px var(--shadow-soft);
    text-align: left;
}

.event-subheading {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    font-weight: 400;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.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(201, 168, 76, 0.1);
}

.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-dark);
    font-weight: 400;
}

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

.event-contacts-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-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(201, 168, 76, 0.1);
}

.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-dark);
    line-height: 1.45;
}

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

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

/* ---- Forms ---- */
.lookup-form,
.rsvp-form {
    padding: 2rem 1.5rem;
    background: var(--navy-card);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 8px 36px var(--shadow-soft);
    position: relative;
    text-align: left;
}

.lookup-form::before,
.rsvp-form::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: calc(var(--radius) - 2px);
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2l2.5 7.5H30l-6 4.5 2.5 7.5L20 17l-6.5 4.5 2.5-7.5L14 9.5h7.5z' fill='%23C9A84C' fill-opacity='0.04'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

.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;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1.5px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
    background: var(--navy-card);
    color: var(--text-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--shadow-gold);
}

.form-group input:not([type="checkbox"]):not([type="radio"])::placeholder {
    color: #B8AFA0;
}

.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-dark), var(--gold), var(--gold-light));
    color: var(--white);
    box-shadow: 0 4px 20px var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.2);
    width: 100%;
}

.btn-gold:hover {
    box-shadow: 0 6px 28px rgba(201, 168, 76, 0.4);
}

.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 ---- */
.rsvp-guest-list[hidden],
.rsvp-virtual-note[hidden] {
    display: none !important;
}

.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: var(--navy-card);
    border: 1.5px solid rgba(201, 168, 76, 0.15);
    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(201, 168, 76, 0.05), rgba(232, 213, 163, 0.1));
    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(201, 168, 76, 0.4);
    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(--white);
    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-dark);
}

.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-dark), var(--gold));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

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

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

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

.greeting-label {
    font-family: var(--font-elegant);
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.greeting-name {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 7vw, 2.75rem);
    font-weight: 400;
    color: var(--gold-dark);
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.greeting-family {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.invite-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.25rem auto;
}

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

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

/* ---- Quran Ayat ---- */
.ayat-section {
    padding: 2.5rem 1.5rem 2.5rem;
    background: transparent;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.ayat-section--intro {
    padding: 2.5rem 1.5rem 2.25rem;
    border-top: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    background: transparent;
    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-muted);
    margin-bottom: 0.85rem;
    font-weight: 300;
}

.ayat-arabic {
    font-size: clamp(1.2rem, 4vw, 1.65rem);
    color: var(--gold);
    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-muted);
    line-height: 1.75;
    max-width: 540px;
    margin: 0 auto;
}

/* ---- Footer ---- */
.site-footer {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    background: transparent;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}
}

.site-footer::before {
    content: '✦';
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    opacity: 0.25;
    font-size: 0.85rem;
}

.footer-dua {
    font-size: clamp(1.45rem, 5.5vw, 2.1rem);
    color: var(--gold-dark);
    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-muted);
    letter-spacing: 0.1em;
    font-weight: 400;
}

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

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

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

/* ---- Admin Styles ---- */
.page-admin {
    background: var(--navy-mid);
    min-height: 100vh;
}

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

.admin-login-card {
    background: var(--navy-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px var(--shadow-soft);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.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(--navy-card);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    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(201, 168, 76, 0.08), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(201, 168, 76, 0.2);
    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(201, 168, 76, 0.12);
    }
}

.admin-card {
    background: var(--navy-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px var(--shadow-soft);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.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(201, 168, 76, 0.1);
}

.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(201, 168, 76, 0.25);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy-card);
}

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

.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(201, 168, 76, 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(--navy-light);
    color: var(--text-muted);
}

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

.inline-form {
    display: inline;
}

.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(201, 168, 76, 0.1);
}

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

.rsvp-detail-item.not-attending {
    background: var(--navy-light);
    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(201, 168, 76, 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;
    }
}

@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 {
        opacity: 1;
        transform: none;
    }
}

/* ---- Multi-event RSVP groups ---- */
.rsvp-event-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(15, 30, 53, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px var(--shadow-soft);
}

.rsvp-event-group:last-of-type {
    margin-bottom: 1.5rem;
}

.rsvp-event-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    color: var(--gold);
    margin-bottom: 0.35rem;
    text-align: center;
}

.rsvp-event-meta {
    font-family: var(--font-elegant);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.25rem;
}

.events-stack {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.event-block + .event-block {
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

/* ---- Root side chooser ---- */
.page-chooser {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--navy-deep);
}

.chooser-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--navy-card);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 20px 60px var(--shadow-soft), 0 0 40px var(--gold-glow);
    animation: cardRise 0.8s ease-out;
}

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

.chooser-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.chooser-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.chooser-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chooser-btn {
    display: block;
    padding: 1.1rem 1.5rem;
    text-decoration: none;
    border-radius: var(--radius);
    font-family: var(--font-elegant);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--text-dark);
    background: var(--navy-mid);
}

.chooser-btn:hover,
.chooser-btn:focus {
    background: var(--navy-light);
    border-color: var(--gold);
    box-shadow: 0 0 24px var(--gold-glow);
    transform: translateY(-2px);
}

.chooser-btn strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--gold);
    margin-bottom: 0.2rem;
}

/* ---- Admin side selector ---- */
.side-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.side-option {
    position: relative;
}

.side-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.side-option label {
    display: block;
    padding: 0.9rem 0.75rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--navy-mid);
    color: var(--text-muted);
    font-family: var(--font-elegant);
    font-size: 0.9rem;
}

.side-option input:checked + label {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    box-shadow: 0 0 16px var(--gold-glow);
}

.admin-badge-side {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-left: 0.5rem;
}

/* ---- Enhanced mobile animations ---- */
.particle {
    animation: particleDrift 8s ease-in-out infinite;
}

.particle:nth-child(odd) {
    animation-direction: alternate-reverse;
}

@keyframes particleDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate3d(12px, -20px, 0) scale(1.2); opacity: 0.8; }
    100% { transform: translate3d(-8px, -35px, 0) scale(0.9); opacity: 0.3; }
}

.lantern {
    animation: lanternSway 6s ease-in-out infinite;
}

@keyframes lanternSway {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-8px); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: btnSweep 3s ease-in-out infinite;
}

@keyframes btnSweep {
    0%, 70%, 100% { transform: translateX(-100%); }
    85% { transform: translateX(100%); }
}

input[type="text"],
input[type="tel"],
input[type="password"],
textarea,
select {
    background: var(--navy-mid);
    border-color: rgba(212, 175, 55, 0.25);
    color: var(--text-dark);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.footer-prominent {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--gold);
}

.rsvp-event-summary {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.guest-item {
    background: var(--navy-mid);
    border-color: rgba(212, 175, 55, 0.2);
}

.guest-item:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 4px 20px var(--shadow-gold);
}

/* ---- Side scroll dots (fixed section nav) ---- */
.side-scroll-dots {
    position: fixed;
    left: clamp(0.65rem, 2vw, 1.25rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.35rem;
    pointer-events: none;
}

.side-scroll-dots:not([hidden]) {
    pointer-events: auto;
}

.side-scroll-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    background: transparent;
    opacity: 0.4;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.side-scroll-dot:hover {
    opacity: 0.85;
    transform: scale(1.15);
}

.side-scroll-dot.active {
    background: var(--gold);
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--gold-glow);
}

.side-scroll-dot:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .side-scroll-dots {
        left: 0.4rem;
        gap: 0.55rem;
    }

    .side-scroll-dot {
        width: 7px;
        height: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .side-scroll-dot {
        transition: opacity 0.15s ease, background 0.15s ease;
    }

    .side-scroll-dot:hover,
    .side-scroll-dot.active {
        transform: none;
    }
}

/* ---- Virtual RSVP ---- */
.rsvp-mode-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.rsvp-mode-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: var(--navy-mid);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.rsvp-mode-option:has(input:checked) {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 16px var(--gold-glow);
}

.rsvp-mode-radio {
    accent-color: var(--gold);
    width: 1rem;
    height: 1rem;
}

.rsvp-mode-label {
    font-family: var(--font-elegant);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--text-dark);
}

.rsvp-virtual-note {
    padding: 1rem 1.25rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.badge-virtual {
    background: rgba(100, 149, 237, 0.2);
    color: #8CB4FF;
    border: 1px solid rgba(100, 149, 237, 0.35);
}

.admin-stat-card--virtual .admin-stat-value {
    color: #8CB4FF;
}

.admin-subheading {
    font-family: var(--font-elegant);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 1rem 0 0.75rem;
    text-align: center;
}

.rsvp-detail-item--virtual {
    justify-content: center;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    min-width: 1.15rem;
    margin-top: 0.15rem;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    -webkit-appearance: checkbox;
    appearance: auto;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}
