/* ===== ROOT & RESET ===== */
:root {
    --bg-dark: #0a0e0b;
    --bg-darker: #060807;
    --gold: #d4af37;
    --gold-light: #fdf5e6;
    --gold-dark: #997a00;
    --text-main: #f8f1e3;
    --text-muted: #a3aba5;
    
    /* Glassmorphism Variables */
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Outfit', sans-serif;
    --font-script: 'Great Vibes', cursive;
    
    --radius: 28px;
    --radius-sm: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    position: relative;
}

body.locked section:not(.hero), body.locked footer, body.locked .audio-control {
    display: none;
}

img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }
.section-padding { padding: 120px 0; }
.text-center { text-align: center; }

/* ===== AMBIENT BACKGROUND ===== */
.ambient-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    z-index: 0; pointer-events: none; overflow: hidden;
    background: var(--bg-dark);
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4;
    animation: floatOrb 20s infinite alternate ease-in-out;
}
.orb-1 { width: 40vw; height: 40vw; background: rgba(212, 175, 55, 0.15); top: -10%; left: -10%; }
.orb-2 { width: 50vw; height: 50vw; background: rgba(16, 46, 26, 0.3); bottom: -20%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 30vw; height: 30vw; background: rgba(212, 175, 55, 0.1); top: 40%; left: 60%; animation-delay: -10s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 10vh) scale(1.2); }
}

/* ===== PETALS ===== */
.petals-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; overflow: hidden; }
.petal {
    position: absolute; top: -20px;
    width: 12px; height: 12px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.6), rgba(212, 175, 55, 0.15));
    border-radius: 50% 10%;
    animation: petalFall linear infinite;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
@keyframes petalFall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0.8; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ===== AUDIO CONTROL ===== */
.audio-control { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
#audio-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(10, 14, 11, 0.6);
    backdrop-filter: blur(12px); border: 1px solid var(--gold);
    color: var(--gold); cursor: pointer; font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; align-items: center; justify-content: center;
}
#audio-btn:hover { transform: scale(1.15); box-shadow: 0 0 30px rgba(212, 175, 55, 0.4); background: rgba(212, 175, 55, 0.1); }
#audio-btn.playing { animation: pulseGlow 3s infinite; }
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.5); }
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh; min-height: 100dvh; position: relative;
    display: flex; flex-direction: column; align-items: center;
    padding: 100px 0; /* Fallback padding */
    text-align: center; overflow: hidden; z-index: 1;
}
.hero-bg-photo { position: absolute; inset: 0; z-index: -2; }
.hero-bg-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    animation: slowZoom 30s infinite alternate linear;
}
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.15); } }

.hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(circle at center, rgba(10, 14, 11, 0.45) 0%, rgba(10, 14, 11, 0.85) 100%),
                linear-gradient(to bottom, rgba(10,14,11,0.4) 0%, rgba(10,14,11,1) 100%);
}
.hero-content {
    margin: auto 0; /* Safely centers content without top cutoff on overflow */
    position: relative; z-index: 30;
    padding: 60px 40px; width: 92%; max-width: 700px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: var(--glass-shadow);
}
.hero-ornament { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 30px; }
.orn-line { flex: 1; max-width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.orn-star { color: var(--gold); font-size: 0.7rem; letter-spacing: 8px; text-shadow: 0 0 10px var(--gold); }

.hero-label {
    font-family: var(--font-serif); font-size: 1.2rem;
    color: var(--gold-light); letter-spacing: 4px; margin-bottom: 12px;
}
.hero-subtitle {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 8px;
    color: var(--text-muted); margin-bottom: 16px; font-weight: 300;
}
.hero-names {
    font-family: var(--font-script); font-size: 7.5rem; color: var(--text-main);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    line-height: 0.9; margin-bottom: 30px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 60px rgba(212,175,55,0.2);
}
.hero-names em.ampersand {
    font-family: var(--font-script); font-style: normal; font-size: 4.5rem; color: var(--gold);
    line-height: 0.5; margin: 15px 0; text-shadow: 0 0 20px rgba(212,175,55,0.4);
}
.hero-date {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    color: var(--text-main); font-size: 0.9rem; font-weight: 300;
    letter-spacing: 6px; text-transform: uppercase; margin-bottom: 40px;
}
.dot-sep { color: var(--gold); font-size: 0.6rem; }

/* Countdown */
.countdown { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.time-box {
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-sm); padding: 16px 20px; min-width: 80px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02), 0 10px 20px rgba(0,0,0,0.3);
}
.time-box span { display: block; font-size: 2.5rem; font-weight: 300; color: var(--gold); line-height: 1; font-family: var(--font-serif); }
.time-box p { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-muted); margin-top: 8px; }
.time-sep { color: var(--glass-border-light); font-size: 2rem; font-weight: 200; margin-bottom: 20px; }

/* Guest Invite */
.guest-invite { margin-bottom: 30px; background: rgba(0,0,0,0.25); padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border-light); backdrop-filter: blur(10px); box-shadow: inset 0 0 20px rgba(255,255,255,0.02), 0 10px 20px rgba(0,0,0,0.2); }
.guest-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-muted); margin-bottom: 8px; font-weight: 300; }
.guest-name { font-family: var(--font-serif); font-size: 2.2rem; color: var(--gold); font-weight: 400; line-height: 1.2; text-shadow: 0 0 15px rgba(212,175,55,0.3); }

.scroll-btn {
    display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--text-main); text-decoration: none;
    font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase;
    transition: all 0.4s; border: 1px solid var(--glass-border);
    padding: 16px 36px; border-radius: 40px; background: rgba(255,255,255,0.03);
}
.scroll-btn:hover { background: var(--gold); color: var(--bg-dark); border-color: var(--gold); box-shadow: 0 0 30px rgba(212,175,55,0.4); }
.scroll-btn i { animation: bounce 2s infinite; font-size: 1rem; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; animation: fadeIn 1.2s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(60px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== SECTION HEADERS ===== */
.section-header { margin-bottom: 70px; position: relative; z-index: 10; }
.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 6px; color: var(--gold); margin-bottom: 12px; display: block; font-weight: 500; }
.section-title { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 300; color: var(--text-main); line-height: 1.1; margin-bottom: 24px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.title-divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 28px; }
.title-divider span { flex: 1; max-width: 100px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.title-divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.title-divider i { color: var(--gold); font-size: 0.9rem; }
.intro-text { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); font-size: 1.25rem; max-width: 680px; margin: 0 auto; line-height: 1.8; }

/* ===== QUOTE SECTION ===== */
.quote-section {
    position: relative; padding: 120px 0; text-align: center; z-index: 10;
}
.quote-card {
    background: var(--glass-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 40px;
    padding: 60px 40px; box-shadow: var(--glass-shadow);
    max-width: 800px; margin: 0 auto;
    position: relative; overflow: hidden;
}
.quote-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.quote-arabic { font-size: 3.5rem; color: var(--gold); margin-bottom: 30px; text-shadow: 0 0 30px rgba(212,175,55,0.3); font-family: 'Amiri', serif; }
blockquote {
    font-family: var(--font-serif); font-style: italic;
    font-size: 1.4rem; color: var(--text-main);
    line-height: 1.9; margin-bottom: 30px;
}
cite {
    display: inline-block; color: var(--gold-light); font-size: 0.9rem;
    letter-spacing: 3px; font-weight: 300; text-transform: uppercase;
}

/* ===== COUPLE SECTION ===== */
.couple { position: relative; z-index: 10; }
.couple-layout { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; margin-top: 40px; }

.person-card {
    background: var(--glass-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    overflow: hidden; padding: 24px;
    box-shadow: var(--glass-shadow); transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.person-card:hover { transform: translateY(-15px); border-color: rgba(212,175,55,0.3); }
.person-photo-frame { width: 100%; height: 380px; overflow: hidden; border-radius: var(--radius-sm); position: relative; }
.person-photo-frame::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 30px rgba(0,0,0,0.5); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.1); pointer-events: none; }
.person-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.person-card:hover .person-photo { transform: scale(1.08); }

.person-info { padding: 30px 10px 10px; text-align: center; }
.person-role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 5px; color: var(--gold); margin-bottom: 12px; display: block; font-weight: 500; }
.person-name { font-family: var(--font-serif); font-size: 2rem; font-weight: 400; color: var(--text-main); margin-bottom: 16px; letter-spacing: 1px; }
.person-divider { width: 40px; height: 1px; background: var(--glass-border-light); margin: 0 auto 16px; }
.person-parents { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; font-weight: 300; }
.person-parents strong { color: var(--text-main); font-weight: 500; }

.couple-center { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.ampersand-ring {
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(212,175,55,0.2), inset 0 0 20px rgba(212,175,55,0.1);
}
.ampersand-ring em { font-family: var(--font-script); font-style: normal; font-size: 3.5rem; color: var(--gold); line-height: 1; }

.couple-photo-frame {
    width: 180px; height: 240px; border-radius: 120px;
    overflow: hidden; border: 4px solid var(--gold);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(212,175,55,0.3);
}
.couple-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* ===== EVENTS ===== */
.events { position: relative; z-index: 10; }
.events-wrapper { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.event-card {
    flex: 1; min-width: 300px; max-width: 420px;
    background: var(--glass-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 50px 40px; text-align: center;
    box-shadow: var(--glass-shadow); transition: all 0.5s;
    position: relative; overflow: hidden;
}
.event-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity 0.5s; }
.event-card:hover { transform: translateY(-10px); border-color: rgba(212,175,55,0.2); }
.event-card:hover::before { opacity: 1; }

.event-icon-wrap {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 30px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--gold);
    box-shadow: inset 0 0 20px rgba(212,175,55,0.1), 0 10px 30px rgba(0,0,0,0.4);
}
.event-card h3 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 400; color: var(--text-main); margin-bottom: 16px; }
.event-divider { width: 40px; height: 1px; background: var(--glass-border-light); margin: 0 auto 20px; }
.event-day { font-size: 1.1rem; font-weight: 400; color: var(--gold-light); margin-bottom: 16px; letter-spacing: 1px; }
.event-meta { color: var(--text-muted); font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; font-weight: 300; }
.event-meta i { color: var(--gold); width: 16px; }

.location-card {
    background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, rgba(212,175,55,0.02) 100%);
    backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 40px 50px;
    display: flex; align-items: center; gap: 30px;
    box-shadow: var(--glass-shadow);
}
.location-icon { font-size: 3.5rem; color: var(--gold); min-width: 60px; text-shadow: 0 0 20px rgba(212,175,55,0.4); }
.location-info { flex: 1; }
.location-info h3 { font-family: var(--font-serif); font-size: 1.8rem; color: var(--text-main); margin-bottom: 8px; }
.location-info p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; font-weight: 300; }
.btn-maps {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--gold); color: var(--bg-dark);
    padding: 16px 32px; border-radius: 40px;
    text-decoration: none; font-size: 0.95rem; font-weight: 600; white-space: nowrap;
    transition: all 0.3s; box-shadow: 0 10px 30px rgba(212,175,55,0.3);
}
.btn-maps:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(212,175,55,0.5); background: var(--text-main); }

/* ===== GALLERY SECTION ===== */
.gallery { position: relative; z-index: 10; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.gallery-item {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    height: 480px; position: relative;
}
.gallery-item::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 30px rgba(0,0,0,0.5); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); pointer-events: none; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* ===== GIFT SECTION ===== */
.gift { position: relative; z-index: 10; }
.gift-wrapper { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.gift-card {
    flex: 1; min-width: 300px; max-width: 400px;
    background: var(--glass-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 40px; box-shadow: var(--glass-shadow);
    transition: transform 0.4s; display: flex; flex-direction: column; gap: 20px;
}
.gift-card:hover { transform: translateY(-10px); border-color: rgba(212,175,55,0.3); }
.gift-card-top { display: flex; align-items: center; gap: 20px; }
.gift-logo { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--white); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.bca { background: linear-gradient(135deg, #005baa, #0070cc); }
.gopay { background: linear-gradient(135deg, #00aa5b, #00cc6e); }
.gift-card-top h3 { font-family: var(--font-sans); font-size: 1.3rem; color: var(--text-main); font-weight: 500; }
.gift-sub { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.account-number { font-size: 1.8rem; font-weight: 300; color: var(--gold); letter-spacing: 5px; font-family: var(--font-sans); text-shadow: 0 0 10px rgba(212,175,55,0.2); }
.account-name { font-size: 0.95rem; color: var(--text-muted); font-weight: 300; }
.btn-copy {
    display: inline-flex; align-items: center; gap: 10px; justify-content: center;
    background: rgba(255,255,255,0.05); color: var(--text-main);
    border: 1px solid var(--glass-border); padding: 14px 24px; border-radius: 40px;
    cursor: pointer; font-size: 0.95rem; font-family: var(--font-sans); font-weight: 400;
    transition: all 0.3s; width: 100%;
}
.btn-copy:hover { background: var(--gold); color: var(--bg-dark); border-color: var(--gold); }
.thank-you-text { text-align: center; font-family: var(--font-serif); font-style: italic; color: var(--text-main); font-size: 1.3rem; margin-top: 20px; }

/* ===== RSVP SECTION ===== */
.rsvp { position: relative; z-index: 10; padding-bottom: 150px; }
.rsvp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-wrapper, .messages-panel {
    background: var(--glass-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 50px; box-shadow: var(--glass-shadow);
}
.input-group { margin-bottom: 24px; }
.input-group label { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; color: var(--gold-light); margin-bottom: 12px; font-weight: 500; }
.input-group label i { color: var(--gold); }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 16px 20px;
    border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
    font-family: var(--font-sans); font-size: 1rem; font-weight: 300;
    background: rgba(0,0,0,0.4); color: var(--text-main);
    transition: all 0.3s;
}
.input-group select option { background: var(--bg-dark); color: var(--text-main); }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.15); background: rgba(0,0,0,0.6);
}
.btn-submit {
    width: 100%; padding: 18px; border: none; border-radius: var(--radius-sm);
    background: var(--gold); color: var(--bg-dark); font-size: 1.05rem; font-family: var(--font-sans);
    font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
    transition: all 0.3s; box-shadow: 0 10px 30px rgba(212,175,55,0.3);
    letter-spacing: 1px; margin-top: 10px;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(212,175,55,0.5); background: var(--text-main); }

/* Messages Panel */
.messages-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; color: var(--text-main); margin-bottom: 30px; }
.msg-badge {
    background: var(--gold); color: var(--bg-dark); font-size: 0.8rem; font-family: var(--font-sans);
    font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-left: auto;
}
.messages-list { max-height: 500px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding-right: 8px; }
.messages-list::-webkit-scrollbar { width: 6px; }
.messages-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
.message-item { display: flex; gap: 16px; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 20px; }
.msg-avatar {
    width: 48px; height: 48px; min-width: 48px; border-radius: 50%;
    background: var(--gold); color: var(--bg-dark); display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 1.2rem;
}
.msg-content { flex: 1; }
.msg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.msg-top h4 { font-size: 1.05rem; font-weight: 500; color: var(--text-main); }
.badge { font-size: 0.75rem; padding: 4px 10px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; }
.badge.hadir { background: rgba(46,125,50,0.2); color: #81c784; border: 1px solid rgba(129,199,132,0.3); }
.badge.tidak { background: rgba(198,40,40,0.2); color: #e57373; border: 1px solid rgba(229,115,115,0.3); }
.msg-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; font-weight: 300; }
.msg-time { font-size: 0.8rem; color: rgba(255,255,255,0.3); display: inline-flex; align-items: center; gap: 6px; }

/* ===== FOOTER ===== */
footer {
    background: var(--bg-darker); border-top: 1px solid var(--glass-border);
    color: var(--text-main); padding: 100px 0 60px; text-align: center; position: relative; z-index: 10;
}
footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-stars { color: var(--gold); letter-spacing: 20px; font-size: 0.85rem; margin-bottom: 40px; opacity: 0.8; }
.footer-names { font-family: var(--font-script); font-size: 5.5rem; color: var(--text-main); margin-bottom: 10px; text-shadow: 0 0 40px rgba(212,175,55,0.2); }
.footer-date { font-size: 0.9rem; letter-spacing: 6px; color: var(--gold-light); margin-bottom: 40px; text-transform: uppercase; font-weight: 300; }
.footer-line { width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto 40px; }
.footer-doa { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); max-width: 500px; margin: 0 auto 40px; font-size: 1.15rem; line-height: 1.9; }
.footer-credit { font-size: 0.85rem; color: rgba(255,255,255,0.2); letter-spacing: 2px; font-weight: 300; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .couple-layout { gap: 20px; }
    .form-wrapper, .messages-panel { padding: 30px; }
}
@media (max-width: 900px) {
    .couple-layout { grid-template-columns: 1fr; }
    .couple-center { flex-direction: row; padding-top: 20px; }
    .rsvp-layout { grid-template-columns: 1fr; }
    .location-card { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .hero { padding: 40px 0; }
    .hero-names { font-size: 4rem; flex-direction: column; flex-wrap: nowrap; gap: 0; margin-bottom: 16px; white-space: normal; }
    .hero-names em.ampersand { font-size: 2.5rem; margin: 5px 0; }
    .section-title { font-size: 2.5rem; }
    .hero-content { padding: 30px 20px; border-radius: 24px; width: 95%; }
    .hero-date { margin-bottom: 20px; }
    .countdown { margin-bottom: 24px; gap: 4px; }
    .time-box { padding: 10px 12px; min-width: 65px; }
    .time-box span { font-size: 1.8rem; }
    .time-sep { margin-bottom: 15px; font-size: 1.5rem; }
    .guest-name { font-size: 1.8rem; }
    .guest-invite { padding: 16px; margin-bottom: 24px; }
    .events-wrapper { flex-direction: column; align-items: center; }
    .event-card { min-width: unset; width: 100%; padding: 40px 24px; }
    .couple-layout { grid-template-columns: 1fr; }
    .person-card { padding: 16px; }
    .person-photo-frame { height: 320px; }
    .location-card { padding: 30px 20px; }
}
