@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;600&display=swap');

:root {
    --primary: #d4af37;
    --primary-dark: #b5942e;
    --bg: #0b1220;
    --bg2: #0f1b33;
    --ink: #e9eefc;
    --muted: #b9c4e6;
    --gold: #d4af37;
    --gold2: #b5942e;
    --brown: #8b5a2b;
    --card: rgba(255,255,255,.06);
    --card-border: rgba(255,255,255,.12);
    --shadow: 0 18px 50px rgba(0,0,0,.35);
    --radius: 18px;
    --font-heading: 'Great Vibes', cursive;
    --font-body: 'Montserrat', sans-serif;
    --hero-overlay-opacity: 0.4;
}

/* ===== THEME OVERRIDES ===== */
body.theme-romantic {
    --primary: #c27ba0;
    --primary-dark: #a0527a;
    --bg: #2a0a2a;
    --bg2: #3d1240;
    --ink: #fce4f0;
    --muted: #d4a0c0;
    --gold: #c27ba0;
    --gold2: #a0527a;
    --brown: #8b3a62;
    --card: rgba(255,255,255,.06);
    --card-border: rgba(255,255,255,.12);
}

body.theme-minimal {
    --primary: #888;
    --primary-dark: #666;
    --bg: #0a0a0a;
    --bg2: #1a1a1a;
    --ink: #e0e0e0;
    --muted: #999;
    --gold: #888;
    --gold2: #666;
    --brown: #555;
    --card: rgba(255,255,255,.04);
    --card-border: rgba(255,255,255,.08);
}

body.theme-green {
    --primary: #c9a84c;
    --primary-dark: #a8893a;
    --bg: #1a2e1a;
    --bg2: #2d4a2d;
    --ink: #e8e0d4;
    --muted: #b8c9a8;
    --gold: #c9a84c;
    --gold2: #a8893a;
    --brown: #3d6b3d;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(201,168,76,.2);
    --shadow: 0 18px 50px rgba(0,0,0,.35);
}

body.theme-green .ornament {
    border-color: rgba(201,168,76,0.3);
}

body.theme-royal {
    --primary: #1e3a5f;
    --primary-dark: #152c4a;
    --bg: #0d1b2a;
    --bg2: #1b2838;
    --ink: #e8edf5;
    --muted: #a0b4d0;
    --gold: #d4af37;
    --gold2: #b5942e;
    --brown: #1e3a5f;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(30,58,95,.3);
}

body.theme-rose {
    --primary: #b76e79;
    --primary-dark: #9a5560;
    --bg: #1a0a10;
    --bg2: #2a1520;
    --ink: #fce4ec;
    --muted: #d4a0b0;
    --gold: #d4a574;
    --gold2: #b8895c;
    --brown: #c48b6e;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(183,110,121,.2);
}

body.theme-earthy {
    --primary: #8b6f47;
    --primary-dark: #6e5636;
    --bg: #1a150e;
    --bg2: #2a2015;
    --ink: #f0e6d8;
    --muted: #c4b49a;
    --gold: #c9a84c;
    --gold2: #a8893a;
    --brown: #6b4e2e;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(139,111,71,.2);
}

body.theme-lavender {
    --primary: #9b7ec8;
    --primary-dark: #7d5faa;
    --bg: #15101f;
    --bg2: #1e1530;
    --ink: #f0eaf8;
    --muted: #c0b0e0;
    --gold: #b08ec0;
    --gold2: #906ea0;
    --brown: #7a5a9a;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(155,126,200,.2);
}

body.theme-ocean {
    --primary: #2e86ab;
    --primary-dark: #1f6a8a;
    --bg: #0a1628;
    --bg2: #132238;
    --ink: #e8f4f8;
    --muted: #90c8e0;
    --gold: #48b8d0;
    --gold2: #38a0b8;
    --brown: #207090;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(46,134,171,.2);
}

body.theme-sunset {
    --primary: #e07030;
    --primary-dark: #c05820;
    --bg: #1a1008;
    --bg2: #2a1a10;
    --ink: #f8f0e0;
    --muted: #d4b890;
    --gold: #d4a040;
    --gold2: #b88830;
    --brown: #a05020;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(224,112,48,.2);
}

body.theme-sage {
    --primary: #8fa87a;
    --primary-dark: #6e8860;
    --bg: #121a10;
    --bg2: #1a2818;
    --ink: #eef5ea;
    --muted: #b0c8a0;
    --gold: #c9b87a;
    --gold2: #a8985e;
    --brown: #5a7a4a;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(143,168,122,.2);
}

body.theme-burgundy {
    --primary: #8b1a32;
    --primary-dark: #6e1028;
    --bg: #12080a;
    --bg2: #201015;
    --ink: #f8eaec;
    --muted: #d0a0aa;
    --gold: #d4af37;
    --gold2: #b5942e;
    --brown: #6a1828;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(139,26,50,.2);
}

body.theme-dusty {
    --primary: #c4a0a8;
    --primary-dark: #a88088;
    --bg: #181215;
    --bg2: #241a20;
    --ink: #f5eaee;
    --muted: #c8b0b8;
    --gold: #d4b0b8;
    --gold2: #b89098;
    --brown: #a08088;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(196,160,168,.2);
}

body.theme-midnight {
    --primary: #6a3d8a;
    --primary-dark: #502a6a;
    --bg: #0e0818;
    --bg2: #181028;
    --ink: #ede8f5;
    --muted: #b0a0c8;
    --gold: #a080c0;
    --gold2: #8060a0;
    --brown: #502870;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(106,61,138,.2);
}

body.theme-floral {
    --primary: #5a7a3a;
    --primary-dark: #4a6830;
    --bg: #1a2810;
    --bg2: #243a18;
    --ink: #f0f5e8;
    --muted: #c0d0a8;
    --gold: #c9a84c;
    --gold2: #a8893a;
    --brown: #8b6f47;
    --card: rgba(255,255,255,.05);
    --card-border: rgba(90,122,58,.2);
}

body.theme-custom {
    --primary: var(--custom-primary, #d4af37);
    --primary-dark: var(--custom-primary-dark, #b5942e);
    --bg: var(--custom-bg, #0b1220);
    --bg2: var(--custom-bg2, #0f1b33);
    --ink: var(--custom-text, #e9eefc);
    --muted: var(--custom-muted, #b9c4e6);
    --gold: var(--custom-primary, #d4af37);
    --gold2: var(--custom-primary-dark, #b5942e);
    --brown: var(--custom-accent, #8b5a2b);
    --card: rgba(255,255,255,.06);
    --card-border: rgba(255,255,255,.12);
}

/* ===== DESIGN VARIATIONS ===== */

/* --- ROMANTIC: Soft hearts, gradient borders --- */
body.theme-romantic .ornament {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border-color: rgba(194,123,160,0.3);
}
body.theme-romantic .event-card {
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg2), var(--bg2)), linear-gradient(135deg, #c27ba0, #a0527a);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
body.theme-romantic .btn-open {
    border-radius: 30px;
}
body.theme-romantic .avatar-ring {
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
}
body.theme-romantic .section-tag {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
}

/* --- MINIMAL: Clean lines, no ornaments --- */
body.theme-minimal .ornament {
    display: none;
}
body.theme-minimal .hero-title {
    text-shadow: none;
    font-weight: 300;
    letter-spacing: 4px;
}
body.theme-minimal .event-card {
    border-radius: 0;
    border: 1px solid var(--card-border);
}
body.theme-minimal .btn-open {
    border-radius: 0;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-size: 0.75rem;
}
body.theme-minimal .avatar-ring {
    border-radius: 0;
    border-width: 1px;
}
body.theme-minimal .couple-amp {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 2rem;
}
body.theme-minimal .footer {
    border-top: 1px solid var(--card-border);
}

/* --- GREEN: Floral leaves, rustic border --- */
body.theme-green .ornament {
    border-radius: 0;
    border: 2px solid rgba(201,168,76,0.2);
    width: 80px;
    height: 80px;
}
body.theme-green .ornament-top-left::before,
body.theme-green .ornament-top-right::before,
body.theme-green .ornament-bottom-left::before,
body.theme-green .ornament-bottom-right::before {
    content: '\f06c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.5;
}
body.theme-green .event-card {
    border: 2px dashed var(--card-border);
}
body.theme-green .couple-amp span {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 3px;
}
body.theme-green .section-divider {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* --- ROYAL: Double border, crown ornament --- */
body.theme-royal .ornament {
    border: 3px double rgba(212,175,55,0.4);
    border-radius: 50%;
    width: 100px;
    height: 100px;
}
body.theme-royal .hero-title {
    font-size: 4.5rem;
    letter-spacing: 2px;
}
body.theme-royal .event-card {
    border: 2px solid var(--gold);
    position: relative;
}
body.theme-royal .event-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: calc(var(--radius) + 2px);
    pointer-events: none;
}
body.theme-royal .btn-open {
    background: var(--gold);
    color: var(--bg);
    border: none;
    font-weight: 600;
}
body.theme-royal .btn-open:hover {
    background: var(--gold2);
}
body.theme-royal .avatar-ring {
    border-width: 4px;
    border-style: double;
}
body.theme-royal .footer-couple {
    font-size: 2.5rem;
}

/* --- ROSE GOLD: Soft rounded, blush tones --- */
body.theme-rose .ornament {
    border-radius: 50%;
    border-color: rgba(183,110,121,0.2);
    width: 150px;
    height: 150px;
    opacity: 0.15;
}
body.theme-rose .hero-title {
    font-size: 3.5rem;
    text-shadow: 0 0 20px rgba(183,110,121,0.3);
}
body.theme-rose .event-card {
    border-radius: 24px;
    border: 1px solid rgba(183,110,121,0.15);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(183,110,121,0.05));
}
body.theme-rose .avatar-ring {
    border-radius: 50%;
    border-color: rgba(212,165,116,0.4);
}
body.theme-rose .couple-card {
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
}
body.theme-rose .btn-open {
    border-radius: 30px;
    background: linear-gradient(135deg, #b76e79, #d4a574);
    border: none;
}
body.theme-rose .section-header h2 {
    font-size: 2.5rem;
}

/* --- EARTHY: Rustic frame, warm tones --- */
body.theme-earthy .ornament {
    border-radius: 0;
    border: 1px solid rgba(139,111,71,0.3);
    width: 100px;
    height: 100px;
    transform: rotate(45deg);
}
body.theme-earthy .ornament-top-left { transform: rotate(0deg); }
body.theme-earthy .ornament-top-right { transform: rotate(90deg); }
body.theme-earthy .ornament-bottom-left { transform: rotate(270deg); }
body.theme-earthy .ornament-bottom-right { transform: rotate(180deg); }
body.theme-earthy .event-card {
    border: 1px dotted var(--card-border);
    border-radius: 4px;
}
body.theme-earthy .hero-title {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 3rem;
    letter-spacing: 8px;
    text-transform: uppercase;
}
body.theme-earthy .section-title {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-size: 1.5rem;
}
body.theme-earthy .couple-amp {
    font-family: var(--font-body);
    font-weight: 200;
}
body.theme-earthy .footer-verse {
    font-style: normal;
    letter-spacing: 1px;
}

/* --- LAVENDER: Floating stars, dreamy glow --- */
body.theme-lavender .ornament {
    border-radius: 50%;
    border: 1px solid rgba(155,126,200,0.2);
    box-shadow: 0 0 30px rgba(155,126,200,0.1);
}
body.theme-lavender .hero-title {
    text-shadow: 0 0 30px rgba(155,126,200,0.4);
}
body.theme-lavender .event-card {
    border: 1px solid rgba(155,126,200,0.15);
    box-shadow: 0 8px 32px rgba(155,126,200,0.1);
    border-radius: 20px;
}
body.theme-lavender .countdown-number {
    text-shadow: 0 0 15px rgba(155,126,200,0.4);
}
body.theme-lavender .avatar-ring {
    box-shadow: 0 0 20px rgba(155,126,200,0.2);
}
body.theme-lavender .btn-open {
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(155,126,200,0.2);
}
body.theme-lavender .footer {
    border-top: 1px solid rgba(155,126,200,0.15);
}

/* --- OCEAN: Wave overlay, fluid shapes --- */
body.theme-ocean .ornament {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    border-color: rgba(46,134,171,0.2);
}
body.theme-ocean .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%230a1628' fill-opacity='0.5' d='M0,64L48,58.7C96,53,192,43,288,48C384,53,480,75,576,80C672,85,768,75,864,64C960,53,1056,43,1152,48C1248,53,1344,75,1392,85.3L1440,96L1440,120L0,120Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    z-index: 1;
}
body.theme-ocean .event-card {
    border-radius: 20px;
    border: 1px solid rgba(46,134,171,0.15);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(46,134,171,0.05));
}
body.theme-ocean .btn-open {
    border-radius: 30px;
    background: linear-gradient(135deg, #2e86ab, #48b8d0);
    border: none;
}
body.theme-ocean .countdown-item {
    border-radius: 16px;
    border: 1px solid rgba(46,134,171,0.15);
}

/* --- SUNSET: Warm overlay, sun rays --- */
body.theme-sunset .ornament {
    border: 2px solid rgba(224,112,48,0.2);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(224,112,48,0.1);
}
body.theme-sunset .hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(224,112,48,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
body.theme-sunset .event-card {
    border: 1px solid rgba(224,112,48,0.15);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(224,112,48,0.03), rgba(212,160,64,0.03));
}
body.theme-sunset .hero-title {
    text-shadow: 0 0 20px rgba(224,112,48,0.3);
}
body.theme-sunset .btn-open {
    background: linear-gradient(135deg, #e07030, #d4a040);
    border: none;
    border-radius: 12px;
}
body.theme-sunset .countdown-number {
    color: var(--primary);
}

/* --- SAGE: Clean natural, minimal lines --- */
body.theme-sage .ornament {
    border-radius: 0;
    border: 1px solid rgba(143,168,122,0.2);
    width: 60px;
    height: 60px;
}
body.theme-sage .hero-title {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 10px;
    text-transform: uppercase;
}
body.theme-sage .section-title {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 1.2rem;
}
body.theme-sage .event-card {
    border: 1px solid rgba(143,168,122,0.15);
    border-radius: 4px;
}
body.theme-sage .couple-amp {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 1.5rem;
}
body.theme-sage .btn-open {
    border-radius: 4px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.75rem;
}
body.theme-sage .footer {
    border-top: 1px solid rgba(143,168,122,0.15);
}

/* --- BURGUNDY: Classic frame, gold accents --- */
body.theme-burgundy .ornament {
    border: 3px double rgba(212,175,55,0.3);
    border-radius: 50%;
}
body.theme-burgundy .hero-title {
    font-size: 4.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 30px rgba(212,175,55,0.2);
}
body.theme-burgundy .event-card {
    border: 2px solid rgba(139,26,50,0.3);
    border-radius: 8px;
    position: relative;
}
body.theme-burgundy .event-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 4px;
    pointer-events: none;
}
body.theme-burgundy .avatar-ring {
    border-color: var(--gold);
    border-width: 3px;
}
body.theme-burgundy .btn-open {
    background: var(--gold);
    color: var(--bg);
    border: none;
    font-weight: 600;
    letter-spacing: 4px;
}
body.theme-burgundy .footer-couple {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(212,175,55,0.2);
}

/* --- DUSTY PINK: Soft blur, dreamy --- */
body.theme-dusty .ornament {
    border-radius: 50%;
    border: 1px solid rgba(196,160,168,0.15);
    filter: blur(1px);
    width: 140px;
    height: 140px;
}
body.theme-dusty .hero-title {
    font-size: 3.5rem;
    text-shadow: 0 0 25px rgba(196,160,168,0.3);
}
body.theme-dusty .event-card {
    border: 1px solid rgba(196,160,168,0.1);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(196,160,168,0.03));
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
body.theme-dusty .couple-card {
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
}
body.theme-dusty .avatar-ring {
    box-shadow: 0 0 20px rgba(196,160,168,0.15);
}
body.theme-dusty .btn-open {
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(196,160,168,0.15);
}
body.theme-dusty .section-header h2 {
    font-size: 2.5rem;
}

/* --- MIDNIGHT: Starry night, neon glow --- */
body.theme-midnight .ornament {
    border-radius: 50%;
    border: 1px solid rgba(106,61,138,0.3);
    box-shadow: 0 0 15px rgba(106,61,138,0.2);
}
body.theme-midnight .hero-title {
    text-shadow: 0 0 30px rgba(106,61,138,0.5), 0 0 60px rgba(106,61,138,0.2);
}
body.theme-midnight .event-card {
    border: 1px solid rgba(106,61,138,0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(106,61,138,0.1);
}
body.theme-midnight .countdown-number {
    text-shadow: 0 0 15px rgba(106,61,138,0.4);
}
body.theme-midnight .avatar-ring {
    box-shadow: 0 0 20px rgba(106,61,138,0.3);
}
body.theme-midnight .btn-open {
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(106,61,138,0.2);
    background: transparent;
    border: 1px solid var(--gold);
}
body.theme-midnight .btn-open:hover {
    background: var(--gold);
    color: var(--bg);
    box-shadow: 0 0 30px rgba(106,61,138,0.3);
}
body.theme-midnight .footer {
    border-top: 1px solid rgba(106,61,138,0.2);
}

/* --- FLORAL BALI: Botanical, earthy, elegant --- */
body.theme-floral .ornament {
    border: none;
    width: 120px;
    height: 120px;
    background: none;
    opacity: 0.4;
}
body.theme-floral .ornament::before {
    content: '\f06c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 4rem;
    color: var(--gold);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
body.theme-floral .ornament-top-left { transform: rotate(-30deg); }
body.theme-floral .ornament-top-right { transform: rotate(30deg) scaleX(-1); }
body.theme-floral .ornament-bottom-left { transform: rotate(30deg); }
body.theme-floral .ornament-bottom-right { transform: rotate(-30deg) scaleX(-1); }

body.theme-floral .hero-title {
    font-size: 4.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.theme-floral .hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 8px;
    text-transform: uppercase;
}

body.theme-floral .section-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
}

body.theme-floral .event-card {
    border: 1px solid rgba(90,122,58,0.2);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(90,122,58,0.05));
    position: relative;
    overflow: hidden;
}
body.theme-floral .event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

body.theme-floral .avatar-ring {
    border-color: var(--gold);
    border-width: 2px;
    border-style: solid;
}
body.theme-floral .avatar-ring::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 50%;
}

body.theme-floral .couple-amp {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
    position: relative;
}
body.theme-floral .couple-amp::before,
body.theme-floral .couple-amp::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}
body.theme-floral .couple-amp::before { right: 100%; margin-right: 10px; }
body.theme-floral .couple-amp::after { left: 100%; margin-left: 10px; }

body.theme-floral .btn-open {
    border-radius: 30px;
    border: 2px solid var(--gold);
    background: transparent;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
}
body.theme-floral .btn-open:hover {
    background: var(--gold);
    color: var(--bg);
}

body.theme-floral .countdown-item {
    border: 1px solid rgba(90,122,58,0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}

body.theme-floral .section-header {
    position: relative;
}
body.theme-floral .section-header::before {
    content: '\f004';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: var(--gold);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

body.theme-floral .gallery-item {
    border-radius: 12px;
    border: 1px solid rgba(90,122,58,0.15);
}

body.theme-floral .rsvp-form {
    border-radius: 20px;
    border: 1px solid rgba(90,122,58,0.15);
}

body.theme-floral .gift-card {
    border-radius: 16px;
    border: 1px solid rgba(90,122,58,0.15);
}

body.theme-floral .footer {
    border-top: 1px solid rgba(90,122,58,0.15);
    position: relative;
}
body.theme-floral .footer::before {
    content: '\f06c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--gold);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    padding: 0 20px;
    opacity: 0.5;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    overflow-x: hidden;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(212,175,55,.20), transparent 55%),
                radial-gradient(900px 500px at 90% 10%, rgba(139,90,43,.18), transparent 45%),
                linear-gradient(180deg, var(--bg), var(--bg2));
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

h1 { font-size: 4rem; color: var(--primary); }
h2 { font-size: 3rem; color: var(--brown); }

a { color: var(--primary); text-decoration: none; }

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background: url('assets/images/bg-hero.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    color: white;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform-origin: center center;
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(0,0,0,var(--hero-overlay-opacity)), rgba(0,0,0,var(--hero-overlay-opacity)));
    pointer-events: none;
}

.ornament {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(212,175,55,0.3);
    border-radius: 50%;
    opacity: 0.3;
}
.ornament-top-left { top: 40px; left: 40px; }
.ornament-top-right { top: 40px; right: 40px; }
.ornament-bottom-left { bottom: 40px; left: 40px; }
.ornament-bottom-right { bottom: 40px; right: 40px; }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem;
}

.hero-align-top .hero-content { justify-content: flex-start; padding-top: 5rem; }
.hero-align-bottom .hero-content { justify-content: flex-end; padding-bottom: 5rem; }

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: zoomIn 1.2s ease forwards 1s;
}

.hero-title span { color: var(--gold); font-size: 2rem; }

.hero-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}
.hero-divider span { width: 60px; height: 1px; background: var(--gold); }
.hero-divider i { color: var(--gold); font-size: 0.8rem; }

.hero-date {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
}

.btn-open {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 2s;
}
.btn-open:hover {
    background: var(--gold);
    color: var(--bg);
}
.btn-open i { margin-right: 8px; }

/* ===== PREVIEW MODE ===== */
body.preview-mode .hero-bg-img {
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18);
}
body.preview-mode .hero-bg-img:active { cursor: grabbing; }
body.preview-mode .hero-content {
    cursor: grab;
    touch-action: none;
    user-select: none;
    outline: 1px dashed rgba(255,255,255,0.35);
    outline-offset: 10px;
    transition: opacity 0.6s ease;
}
body.preview-mode .hero-content:active { cursor: grabbing; }
body.preview-mode .hero-content * { pointer-events: none; }

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 2.5s;
}
.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ===== MUSIC BUTTON ===== */
.music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--bg);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0px 4px 15px rgba(212,175,55,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.music-btn.playing { animation: pulse-music 1s ease infinite; }
@keyframes pulse-music { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}
.navbar.scrolled {
    background: rgba(11,18,32,0.95);
    backdrop-filter: blur(10px);
    padding: 10px 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-links a {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: 0.3s;
}

/* ===== MAIN CONTENT ===== */
.main-content { transition: opacity 0.6s ease, transform 0.6s ease; }
.main-content.hidden { display: none; }

/* ===== SECTION COMMON ===== */
.section {
    padding: 6rem 2rem;
    position: relative;
}
.container {
    max-width: 900px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.section-tag.light { color: var(--gold); }
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--brown);
    margin-bottom: 0.5rem;
}
.section-title.light { color: white; }
.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.title-divider span { width: 50px; height: 1px; background: var(--brown); }
.title-divider i { color: var(--gold); font-size: 0.7rem; }
.title-divider.light span { background: rgba(255,255,255,0.3); }
.section-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}
.section-desc.light { color: rgba(255,255,255,0.7); }

/* ===== COUPLE SECTION ===== */
.section-couple { background: transparent; }
.couple-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.couple-card {
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}
.couple-avatar { margin-bottom: 1.5rem; }
.avatar-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    padding: 6px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gold);
    overflow: hidden;
}
.avatar-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 50%;
}
.couple-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.couple-parent {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.couple-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    color: var(--gold);
    transition: all 0.3s;
}
.couple-social a:hover {
    background: var(--gold);
    color: var(--bg);
}
.couple-amp {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
    align-self: center;
}

/* ===== COUNTDOWN SECTION ===== */
.section-countdown {
    background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
    text-align: center;
    overflow: hidden;
    position: relative;
}
.countdown-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}
.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.countdown-item {
    padding: 1.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    min-width: 90px;
}
.countdown-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
}
.countdown-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.countdown-separator {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
}

/* ===== EVENT SECTION ===== */
.section-event { background: transparent; }
.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.event-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.event-card:hover { transform: translateY(-5px); }
.event-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.event-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.event-detail {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: left;
}
.event-detail i { color: var(--gold); width: 20px; text-align: center; }
.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
    padding: 8px 20px;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-map:hover {
    background: var(--gold);
    color: var(--bg);
}

/* ===== GALLERY SECTION ===== */
.section-gallery { background: transparent; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.gallery-item {
    aspect-ratio: 1;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-placeholder {
    text-align: center;
    color: var(--muted);
}
.gallery-placeholder i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== RSVP SECTION ===== */
.section-rsvp {
    background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
}
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}
.form-group select option { background: var(--bg); color: var(--ink); }
.btn-submit {
    width: 100%;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}
.btn-submit:hover {
    background: var(--gold2);
    transform: translateY(-2px);
}
.btn-submit i { margin-right: 6px; }

/* ===== GIFT / AMPLOP DIGITAL ===== */
.section-gift {
    background: transparent;
}
.gift-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}
.gift-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.gift-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.gift-number {
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    word-break: break-all;
}
.gift-name {
    font-size: 0.85rem;
    color: var(--muted);
}
.copy-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}
.copy-btn:hover {
    background: var(--gold);
    color: var(--bg);
}

/* ===== WISHES / UCAPAN ===== */
.section-wishes {
    background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
}
.wishes-container {
    max-width: 600px;
    margin: 0 auto;
}
.wishes-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 2rem;
}
.wishes-list::-webkit-scrollbar { width: 6px; }
.wishes-list::-webkit-scrollbar-track { background: var(--card); }
.wishes-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.wish-item {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.wish-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 0.3rem;
}
.wish-message {
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.5;
}
.wish-time {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* ===== GUEST INVITATION ===== */
.guest-invitation {
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 2.2s;
}
.guest-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 1.5rem 2.5rem;
    backdrop-filter: blur(10px);
}
.guest-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.guest-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .guest-card { padding: 1.2rem 1.5rem; }
    .guest-name { font-size: 1.5rem; }
    .guest-label { font-size: 0.7rem; letter-spacing: 2px; }
}
@media (max-width: 480px) {
    .guest-card { padding: 1rem 1.2rem; }
    .guest-name { font-size: 1.3rem; }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
}
.footer-couple {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.footer-date {
    font-size: 1rem;
    letter-spacing: 5px;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto;
}
.footer-thank {
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 1rem;
}
.footer-verse {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

/* ===== SECTION HIDDEN (for toggle) ===== */
.section-hidden { display: none !important; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}
[data-animate="fade-right"].animated { transform: translateX(0); }
[data-animate="fade-left"].animated { transform: translateX(0); }

/* ===== RESPONSIVE ===== */

/* --- Tablet (768px - 1024px) --- */
@media (max-width: 1024px) {
    .ornament { width: 80px; height: 80px; opacity: 0.2; }
    .ornament-top-left { top: 20px; left: 20px; }
    .ornament-top-right { top: 20px; right: 20px; }
    .ornament-bottom-left { bottom: 20px; left: 20px; }
    .ornament-bottom-right { bottom: 20px; right: 20px; }
    .event-grid { gap: 1.5rem; }
    .event-card { padding: 2rem; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
}

/* --- Mobile (< 768px) --- */
@media (max-width: 768px) {
    /* Typography */
    .hero-title { font-size: 2.5rem; }
    .hero-title span { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.8rem; letter-spacing: 4px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .couple-name { font-size: 1.5rem; }
    .couple-parent { font-size: 0.85rem; }
    .footer-couple { font-size: 1.5rem; }
    .footer-date { font-size: 0.85rem; letter-spacing: 3px; }
    .footer-verse { font-size: 0.8rem; }

    /* Navbar */
    .navbar { padding: 12px 20px; }
    .navbar.scrolled { padding: 8px 20px; }
    .nav-brand { font-size: 1.2rem; }
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11,18,32,0.98);
        backdrop-filter: blur(10px);
        padding: 16px 20px;
        gap: 12px;
        border-top: 1px solid var(--card-border);
    }
    .nav-links a { font-size: 0.8rem; padding: 8px 0; }
    .nav-toggle { display: flex; }

    /* Hero */
    .hero-content { padding: 1rem; }
    .hero-subtitle { font-size: 0.75rem; letter-spacing: 3px; }
    .btn-open { padding: 12px 24px; font-size: 0.8rem; letter-spacing: 2px; }

    /* Ornaments */
    .ornament { width: 60px; height: 60px; }
    .ornament-top-left { top: 15px; left: 15px; }
    .ornament-top-right { top: 15px; right: 15px; }
    .ornament-bottom-left { bottom: 15px; left: 15px; }
    .ornament-bottom-right { bottom: 15px; right: 15px; }

    /* Sections */
    .section { padding: 3rem 1rem; }
    .section-header { margin-bottom: 2rem; }
    .section-tag { font-size: 0.75rem; letter-spacing: 3px; }
    .section-title { font-size: 1.8rem; }
    .section-desc { font-size: 0.85rem; line-height: 1.6; }

    /* Couple */
    .couple-wrapper { flex-direction: column; gap: 1.5rem; }
    .couple-amp { font-size: 2rem; margin: 0.5rem 0; }
    .couple-card { min-width: auto; width: 100%; padding: 0 0.5rem; }
    .avatar-ring { width: 140px; height: 140px; }
    .avatar-placeholder { font-size: 2.5rem; }

    /* Event */
    .event-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .event-card { padding: 1.5rem; }
    .event-icon { font-size: 2rem; margin-bottom: 0.8rem; }
    .event-title { font-size: 1.3rem; }
    .event-detail { font-size: 0.85rem; }
    .btn-map { font-size: 0.8rem; padding: 6px 16px; }

    /* Countdown */
    .countdown-wrapper { gap: 0.4rem; }
    .countdown-item { min-width: 65px; padding: 0.8rem 0.4rem; }
    .countdown-number { font-size: 1.6rem; }
    .countdown-separator { font-size: 1.2rem; }
    .countdown-label { font-size: 0.65rem; }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

    /* RSVP */
    .rsvp-form { padding: 1.5rem; }
    .form-group { margin-bottom: 1rem; }
    .form-group label { font-size: 0.8rem; }
    .form-group input, .form-group select, .form-group textarea { font-size: 0.85rem; padding: 8px 12px; }
    .btn-submit { font-size: 0.85rem; padding: 10px; }

    /* Gift */
    .gift-container { padding: 0 0.5rem; }
    .gift-card { padding: 1.5rem; }
    .gift-number { font-size: 0.9rem; }

    /* Wishes */
    .wishes-list { max-height: 300px; }
    .wish-item { padding: 1rem; }

    /* Footer */
    .footer { padding: 2.5rem 1rem; }
    .footer-couple { font-size: 1.5rem; }
    .footer-divider { margin: 1rem auto; }
    .footer-thank { font-size: 0.8rem; }
    .footer-verse { font-size: 0.75rem; line-height: 1.6; }

    /* Music Button */
    .music-btn { width: 42px; height: 42px; font-size: 1rem; bottom: 15px; right: 15px; }

    /* Theme-specific overrides for mobile */
    body.theme-royal .hero-title,
    body.theme-burgundy .hero-title,
    body.theme-floral .hero-title { font-size: 2.5rem; }
    body.theme-rose .hero-title,
    body.theme-dusty .hero-title { font-size: 2.2rem; }
    body.theme-earthy .hero-title { font-size: 1.8rem; letter-spacing: 4px; }
    body.theme-sage .hero-title { font-size: 1.5rem; letter-spacing: 5px; }
    body.theme-royal .footer-couple,
    body.theme-burgundy .footer-couple { font-size: 1.5rem; }
    body.theme-rose .section-header h2,
    body.theme-dusty .section-header h2 { font-size: 1.8rem; }
    body.theme-rose .couple-card,
    body.theme-dusty .couple-card { padding: 0; }
    body.theme-green .ornament,
    body.theme-earthy .ornament,
    body.theme-sage .ornament { width: 50px; height: 50px; }
    body.theme-rose .ornament,
    body.theme-dusty .ornament { width: 80px; height: 80px; }
    body.theme-floral .ornament { width: 70px; height: 70px; }
    body.theme-floral .ornament::before { font-size: 2.5rem; }
}

/* --- Small Phone (< 480px) --- */
@media (max-width: 480px) {
    /* Typography */
    .hero-title { font-size: 2rem; }
    .hero-title span { font-size: 1.2rem; }
    .hero-subtitle { font-size: 0.7rem; letter-spacing: 2px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section-title { font-size: 1.5rem; }
    .couple-name { font-size: 1.3rem; }
    .couple-amp { font-size: 1.5rem; }
    .countdown-number { font-size: 1.4rem; }
    .countdown-item { min-width: 58px; padding: 0.6rem 0.3rem; }
    .countdown-separator { font-size: 1rem; }
    .event-card { padding: 1.2rem; }
    .event-icon { font-size: 1.8rem; }
    .event-title { font-size: 1.2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .rsvp-form { padding: 1.2rem; }
    .gift-card { padding: 1.2rem; }
    .footer { padding: 2rem 1rem; }
    .footer-couple { font-size: 1.3rem; }
    .btn-open { padding: 10px 20px; font-size: 0.75rem; }

    /* Avatar */
    .avatar-ring { width: 120px; height: 120px; }
    .avatar-placeholder { font-size: 2rem; }

    /* Theme-specific small phone */
    body.theme-royal .hero-title,
    body.theme-burgundy .hero-title,
    body.theme-floral .hero-title { font-size: 2rem; }
    body.theme-rose .hero-title,
    body.theme-dusty .hero-title { font-size: 1.8rem; }
    body.theme-earthy .hero-title { font-size: 1.5rem; }
    body.theme-sage .hero-title { font-size: 1.2rem; letter-spacing: 3px; }
}

/* --- Landscape Mobile --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: 100vh; height: auto; }
    .hero-content { padding: 2rem 1rem; }
    .hero-title { font-size: 2rem; }
    .section { padding: 2rem 1rem; }
    .scroll-indicator { display: none; }
}

/* --- Safe Area (iPhone X+) --- */
@supports (padding: env(safe-area-inset-top)) {
    .navbar { padding-top: calc(12px + env(safe-area-inset-top)); }
    .footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
    .music-btn { bottom: calc(15px + env(safe-area-inset-bottom)); }
}
