/* ═══════════════════════════════════════════════════════════════
   WELCOME — Mepandes Digital Invitation
   Refactored: 2026-08-05
   Extracted from welcome.blade.php inline <style>
   ═══════════════════════════════════════════════════════════════ */

/* ── 0. DESIGN TOKENS ── */
:root {
    /* Gold palette */
    --gold-primary: #D4AF37;
    --gold-secondary: #C5A059;
    --gold-light: #F7EECE;
    --gold-dark: #8C6D23;
    --cream-bg: #FAF6EE;
    --text-dark: #2A1D13;
    --text-muted: #6E5C4E;
    --dark-bg: #14110E;

    /* Cover palette */
    --cover-bg-start: #FFF8ED;
    --cover-bg-mid: #FEF3D7;
    --cover-bg-end: #FDE8B4;
    --cover-accent: #E8A020;
    --cover-text: #3D2B08;
    --cover-sub: #8C6D3F;

    /* Typography — consolidated */
    --font-display: 'Playfair Display', 'Cinzel', serif;
    /* headings + labels */
    --font-sc: 'Cormorant SC', 'Cinzel', serif;
    /* small caps */
    --font-name: 'Alex Brush', cursive, serif;
    /* names + script */
    --font-profile: 'Bodoni Moda', 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    /* profile full names: luxury editorial italic serif */
    --font-body: 'Cormorant Garamond', Georgia, serif;
    /* body */
    --font-balinese: 'Noto Sans Balinese', sans-serif;
    /* Balinese script */
}

/* ── 0b. FONT UTILITY CLASSES ── */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(197, 160, 89, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 245, 220, 0.4) 0%, transparent 80%),
        linear-gradient(180deg, #FFF9EE 0%, #FDF3E0 50%, #F7ECD2 100%);
}

.font-cinzel {
    font-family: var(--font-display);
}

.font-serif {
    font-family: var(--font-name);
}

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

.font-balinese {
    font-family: var(--font-balinese);
}

.font-heading {
    font-family: var(--font-display);
}

.font-sc {
    font-family: var(--font-sc);
}

.font-body {
    font-family: var(--font-body);
}

/* Color utility */
.text-accent {
    color: var(--cover-accent);
}

/* ═══════════════════════════════════════════
   1. SCROLL PROGRESS BAR
   ═══════════════════════════════════════════ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    width: 0%;
    background: linear-gradient(90deg, #B8860B, #D4AF37, #F0C040, #D4AF37, #B8860B);
    background-size: 200% auto;
    animation: shimmerProgress 3s linear infinite;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

@keyframes shimmerProgress {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ═══════════════════════════════════════════
   2. FLOATING LOTUS PETALS
   ═══════════════════════════════════════════ */
.petal {
    position: fixed;
    pointer-events: none;
    z-index: 1049;
    opacity: 0;
    animation: petalFall linear infinite;
    will-change: transform, opacity;
}

.petal svg {
    display: block;
}

@keyframes petalFall {
    0% {
        transform: translateY(-40px) rotate(0deg) translateX(0);
        opacity: 0;
    }

    8% {
        opacity: 0.55;
    }

    85% {
        opacity: 0.35;
    }

    100% {
        transform: translateY(110vh) rotate(420deg) translateX(40px);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════
   3. MAIN CONTAINER
   ═══════════════════════════════════════════ */
.app-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(255, 230, 130, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 100%, rgba(255, 200, 80, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 245, 220, 0.6) 0%, transparent 80%),
        linear-gradient(180deg, #FFFDF7 0%, #FFF9EE 40%, #FFF6E4 100%);
}

/* ═══════════════════════════════════════════
   4. COVER SCREEN
   ═══════════════════════════════════════════ */
.cover-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(255, 220, 100, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 85%, rgba(255, 180, 50, 0.35) 0%, transparent 50%),
        linear-gradient(160deg, var(--cover-bg-start) 0%, var(--cover-bg-mid) 50%, var(--cover-bg-end) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    text-align: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.cover-overlay.hide {
    transform: translateY(-105%);
    opacity: 0;
    pointer-events: none;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

/* --- Decorative rings --- */
.cover-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.18);
    pointer-events: none;
}

.cover-ring-1 {
    width: 520px;
    height: 520px;
    top: -130px;
    left: 50%;
    transform: translateX(-50%);
}

.cover-ring-2 {
    width: 380px;
    height: 380px;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
}

.cover-ring-3 {
    width: 240px;
    height: 240px;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Floating dots --- */
@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-18px) scale(1.15);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
}

@keyframes pulseRing {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateX(-50%) scale(1.08);
        opacity: 0.15;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.4;
    }
}

.cover-pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    pointer-events: none;
    left: 50%;
    animation: pulseRing 3.5s ease-in-out infinite;
}

.cover-pulse-ring-1 {
    width: 320px;
    height: 320px;
    top: 18px;
    animation-delay: 0s;
}

.cover-pulse-ring-2 {
    width: 430px;
    height: 430px;
    top: -37px;
    animation-delay: 1.1s;
}

.cover-pulse-ring-3 {
    width: 560px;
    height: 560px;
    top: -102px;
    animation-delay: 2.2s;
}

.cover-dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.55), transparent);
    animation: floatUp var(--dur, 4s) ease-in-out infinite;
    pointer-events: none;
}

.cover-dot-1 {
    width: 12px;
    height: 12px;
    top: 18%;
    left: 10%;
    --dur: 3.8s;
    animation-delay: 0s;
}

.cover-dot-2 {
    width: 8px;
    height: 8px;
    top: 30%;
    right: 12%;
    --dur: 4.5s;
    animation-delay: 0.7s;
}

.cover-dot-3 {
    width: 16px;
    height: 16px;
    top: 70%;
    left: 8%;
    --dur: 5s;
    animation-delay: 1.2s;
}

.cover-dot-4 {
    width: 10px;
    height: 10px;
    top: 60%;
    right: 10%;
    --dur: 3.5s;
    animation-delay: 0.4s;
}

.cover-dot-5 {
    width: 6px;
    height: 6px;
    top: 45%;
    left: 18%;
    --dur: 4.2s;
    animation-delay: 1.8s;
}

/* --- Cover top --- */
.cover-top {
    width: 100%;
    padding: 2.8rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cover-top>* {
    animation: fadeSlideDown 0.8s ease forwards;
}

.cover-top>*:nth-child(1) {
    animation-delay: 0.1s;
    opacity: 0;
}

.cover-top>*:nth-child(2) {
    animation-delay: 0.25s;
    opacity: 0;
}

.cover-top>*:nth-child(3) {
    animation-delay: 0.4s;
    opacity: 0;
}

.cover-top>*:nth-child(4) {
    animation-delay: 0.55s;
    opacity: 0;
}

.cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--cover-accent);
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
}

.cover-badge i {
    font-size: 0.5rem;
}

.cover-title-main {
    font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 9.5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: var(--cover-text);
    background: linear-gradient(135deg, #3D2B08 0%, #8C6D23 40%, #D4AF37 75%, #5A3E05 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin: 0.2rem 0 0.2rem 12px;
    /* Offset left margin by 12px to align center with letter-spacing */
    filter: drop-shadow(0 3px 12px rgba(180, 130, 20, 0.2));
}

/* --- Balinese Carved Corner Ornaments (Ukiran Patra Punggel) --- */
.cover-corner {
    position: absolute;
    width: clamp(60px, 14vw, 95px);
    height: clamp(60px, 14vw, 95px);
    pointer-events: none;
    z-index: 2;
    opacity: 0.85;
    transition: transform 0.6s ease;
}

.cover-corner svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(180, 130, 20, 0.35));
}

.cover-corner-tl {
    top: 6px;
    left: 6px;
}

.cover-corner-tr {
    top: 6px;
    right: 6px;
}

.cover-corner-bl {
    bottom: 6px;
    left: 6px;
}

.cover-corner-br {
    bottom: 6px;
    right: 6px;
}

/* --- Floating Balinese Carved Motifs (Ukiran Patra Melayang) --- */
.cover-carved-float {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 3px 10px rgba(212, 175, 55, 0.35));
    will-change: transform, opacity;
}

@keyframes carveFloatRotate {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.65;
    }

    50% {
        transform: translateY(-18px) rotate(180deg) scale(1.12);
        opacity: 0.95;
    }

    100% {
        transform: translateY(0) rotate(360deg) scale(1);
        opacity: 0.65;
    }
}

.carve-fl-1 {
    top: 14%;
    left: 11%;
    animation: carveFloatRotate 8s ease-in-out infinite;
    animation-delay: 0s;
}

.carve-fl-2 {
    top: 28%;
    right: 12%;
    animation: carveFloatRotate 9.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.carve-fl-3 {
    top: 68%;
    left: 9%;
    animation: carveFloatRotate 10s ease-in-out infinite;
    animation-delay: 0.8s;
}

.carve-fl-4 {
    top: 56%;
    right: 10%;
    animation: carveFloatRotate 7.5s ease-in-out infinite;
    animation-delay: 2.3s;
}

/* --- Cover Top Carved Crest & Divider --- */
.cover-carved-crest {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cover-carved-crest svg {
    filter: drop-shadow(0 3px 8px rgba(212, 175, 55, 0.4));
}

.cover-badge-carve {
    color: var(--gold-primary);
    font-size: 0.65rem;
}

.cover-carved-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0.6rem auto;
}

.cover-divider-line {
    width: 40px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.cover-divider-carving {
    flex-shrink: 0;
    animation: carvePulse 3.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.45));
}

@keyframes carvePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* --- Glass Card Carved Crown & Separators --- */
.cover-carved-sep {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.25rem 0;
    opacity: 0.9;
}

.cover-carved-sep svg {
    filter: drop-shadow(0 1px 4px rgba(212, 175, 55, 0.35));
}

/* --- Cover glass card Refactored --- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cover-card {
    width: min(calc(100% - 2.5rem), 480px);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 22px;
    padding: 2rem 1.6rem 1.6rem;
    box-shadow:
        0 8px 32px rgba(180, 130, 20, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 16px rgba(212, 175, 55, 0.08);
    position: relative;
    z-index: 1;
    animation: fadeSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(180, 130, 20, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 20px rgba(212, 175, 55, 0.12);
}

.cover-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 220, 100, 0.06) 100%);
    pointer-events: none;
}

/* Cover Card Subtitle Eyebrow */
/* Cover Names Group */
.cover-names-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cover-name-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cover-name-text {
    font-family: var(--font-name);
    font-size: clamp(1.75rem, 5.5vw, 2.25rem);
    font-weight: 400;
    font-style: normal;
    color: var(--cover-text);
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 1px 4px rgba(212, 175, 55, 0.15);
}

/* Cover Date Chip Wrapper & Chip */
.cover-card-date-wrapper {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

.cover-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #C5A030 0%, #D4AF37 50%, #E8A020 100%);
    color: #fff;
    font-family: var(--font-sc);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    padding: 7px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.38);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cover-date-chip:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.48);
}

/* Cover card shimmer */
@keyframes cardShimmer {
    0% {
        transform: translateX(-130%) skewX(-15deg);
    }

    100% {
        transform: translateX(230%) skewX(-15deg);
    }
}

.cover-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    border-radius: inherit;
    pointer-events: none;
    animation: cardShimmer 3.8s ease-in-out 1.4s infinite;
}

/* --- Cover bottom Refactored --- */
.cover-bottom {
    width: min(calc(100% - 2.5rem), 440px);
    padding: 1.2rem 1.5rem 2.2rem;
    position: relative;
    z-index: 10;
    /* Elevates guest area above background ornament lines */
    animation: fadeSlideUp 0.9s ease 0.75s forwards;
    opacity: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-guest-label {
    font-size: 0.78rem;
    color: var(--cover-sub);
    font-style: italic;
    margin-bottom: 4px;
}

.cover-guest-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cover-text);
    margin-bottom: 1.1rem;
    line-height: 1.4;
}

/* --- Cover CTA button --- */
.btn-cover-open {
    width: min(100%, 320px);
    /* Prevents button from expanding into corner ornaments */
    padding: 0.88rem 1.8rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #C5A030 0%, #D4AF37 40%, #E8A020 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow:
        0 8px 28px rgba(212, 175, 55, 0.45),
        0 2px 6px rgba(180, 130, 20, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 10;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cover-open::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.btn-cover-open:hover,
.btn-cover-open:focus {
    transform: translateY(-2px);
    box-shadow:
        0 10px 32px rgba(212, 175, 55, 0.55),
        0 3px 8px rgba(180, 130, 20, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    outline: none;
}

.btn-cover-open:active {
    transform: translateY(1px);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

    100% {
        background-position: 200% center;
    }
}

.btn-cover-open:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    background-size: 200% auto;
    animation: shimmer 1.2s linear infinite;
    border-radius: inherit;
}

/* ═══════════════════════════════════════════
   5. INTERIOR DESIGN SYSTEM
   ═══════════════════════════════════════════ */

/* --- Luxury Card --- */
.luxury-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow:
        0 2px 20px rgba(180, 130, 20, 0.07),
        0 8px 40px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.luxury-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 230, 120, 0.04) 100%);
    pointer-events: none;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--cover-accent);
    margin-bottom: 0.5rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--cover-accent);
    opacity: 0.5;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 1.85rem);
    font-weight: 600;
    color: var(--cover-text);
    margin: 0 0 0.5rem;
    letter-spacing: 2px;
}

.gold-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 0.6rem auto 0;
    width: 60px;
    border-radius: 2px;
    position: relative;
    overflow: visible;
}

.gold-divider::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.5rem;
    color: var(--gold-primary);
    background: transparent;
}

.gold-divider-sm {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 0 auto;
}

/* ═══════════════════════════════════════════
   6. AVATAR
   ═══════════════════════════════════════════ */
@keyframes rotateBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes avatarGlow {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
    }

    50% {
        box-shadow: 0 6px 28px rgba(212, 175, 55, 0.55), 0 0 0 4px rgba(212, 175, 55, 0.1);
    }
}

.avatar-gold-rim {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(270deg, #B8860B, #D4AF37, #F7EECE, #E8A020, #B8860B);
    background-size: 300% 300%;
    animation: rotateBorder 5s ease infinite, avatarGlow 3s ease-in-out infinite;
    margin: 0 auto;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-gold-rim:hover {
    transform: scale(1.08);
}

.avatar-gold-rim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #FFF;
}

/* ═══════════════════════════════════════════
   7. TIMELINE
   ═══════════════════════════════════════════ */
.timeline-container {
    position: relative;
    margin: 0 auto;
    max-width: 580px;
    padding: 0.5rem 0;
}

.timeline-track {
    position: absolute;
    left: 21px;
    top: 15px;
    bottom: 25px;
    width: 3px;
    background: linear-gradient(180deg, #D4AF37 0%, #E8A020 50%, #C5A059 100%);
    border-radius: 3px;
    opacity: 0.75;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.35rem;
    gap: 1rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #E8A020);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    box-shadow:
        0 4px 14px rgba(212, 175, 55, 0.4),
        0 0 0 3px rgba(255, 253, 245, 0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.18) rotate(10deg);
    box-shadow:
        0 6px 22px rgba(212, 175, 55, 0.55),
        0 0 0 4px rgba(212, 175, 55, 0.25);
}

.timeline-content {
    flex: 1;
    min-width: 0;
    background: linear-gradient(145deg, rgba(255, 253, 247, 0.94), rgba(255, 248, 228, 0.88));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 1.1rem;
    padding: 0.95rem 1.1rem;
    box-shadow:
        0 4px 20px rgba(180, 130, 20, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 16px;
    width: 11px;
    height: 11px;
    background: #FFFDF5;
    border-left: 1px solid rgba(212, 175, 55, 0.28);
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    transform: rotate(45deg);
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.55);
}

.timeline-content.highlight-content {
    background: linear-gradient(145deg, #FFF8E7, #FFEFC7);
    border: 1.5px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.timeline-item.highlight-item .timeline-icon {
    background: linear-gradient(135deg, #E8A020, #C5A030);
    box-shadow:
        0 4px 18px rgba(212, 175, 55, 0.55),
        0 0 0 4px rgba(232, 160, 32, 0.25);
    animation: iconPulse 2.5s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.35rem;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cover-text);
    margin: 0;
    letter-spacing: 0.5px;
}

.timeline-time {
    font-family: var(--font-sc);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--cover-accent);
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.highlight-item .timeline-time {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-primary), var(--cover-accent));
    border: none;
    padding: 5px 14px;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35);
}

.timeline-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--cover-sub);
    margin: 0;
    line-height: 1.55;
}

.timeline-desc-highlight {
    font-weight: 500;
    color: var(--cover-text);
}

/* ═══════════════════════════════════════════
   8. COUNTDOWN
   ═══════════════════════════════════════════ */
.countdown-box {
    background: linear-gradient(145deg, #FFFDF5, #FFF8E1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 1rem;
    padding: 0.9rem 0.4rem 0.6rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    perspective: 400px;
    overflow: hidden;
}

@keyframes flipIn {
    0% {
        transform: rotateX(-90deg);
        opacity: 0;
    }

    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

@keyframes digitPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.countdown-number {
    font-family: var(--font-sc);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--cover-text);
    line-height: 1;
    display: block;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.countdown-number.flip {
    animation: flipIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.countdown-label {
    font-family: var(--font-display);
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cover-sub);
    margin-top: 5px;
    display: block;
}

/* ═══════════════════════════════════════════
   9. FORM INPUTS
   ═══════════════════════════════════════════ */
.form-control,
.form-select {
    border: 1.5px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 0.75rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    font-family: var(--font-body);
    font-size: 0.87rem;
    color: var(--cover-text) !important;
    padding: 0.65rem 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18),
        0 4px 14px rgba(212, 175, 55, 0.12) !important;
    outline: none;
    transform: translateY(-1px);
}

.form-label {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--cover-sub);
    margin-bottom: 0.4rem;
}

/* ═══════════════════════════════════════════
   10. WISHES STREAM
   ═══════════════════════════════════════════ */
.wish-card {
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    padding: 0.85rem 0;
    transition: background 0.25s ease, transform 0.25s ease, padding-left 0.25s ease;
    border-radius: 0.5rem;
}

.wish-card:hover {
    background: rgba(212, 175, 55, 0.05);
    padding-left: 0.5rem;
}

.wish-card:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════════
   11. FLOATING AUDIO BUTTON
   ═══════════════════════════════════════════ */
.audio-btn {
    position: fixed;
    bottom: 5.2rem;
    right: 1%;
    z-index: 1040;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 252, 240, 0.9);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    color: var(--cover-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(180, 130, 20, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(180, 130, 20, 0.3);
}

.audio-btn i {
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════
   12. BOTTOM NAVIGATION
   ═══════════════════════════════════════════ */
.bottom-nav {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 400px;
    background: rgba(255, 252, 240, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 0.55rem 1rem;
    z-index: 1040;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 8px 32px rgba(180, 130, 20, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.bottom-nav a {
    color: var(--cover-sub);
    text-decoration: none;
    font-size: 0.5rem;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        background-color 0.35s ease;
    gap: 2px;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    position: relative;
}

.bottom-nav a i {
    font-size: 0.95rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav a:hover {
    color: var(--cover-accent);
    transform: translateY(-3px);
}

.bottom-nav a.active {
    color: var(--cover-accent);
    background-color: rgba(212, 175, 55, 0.13);
    transform: translateY(-2px);
}

.bottom-nav a.active i {
    transform: scale(1.18);
}

.bottom-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cover-accent);
    box-shadow: 0 0 6px rgba(232, 160, 32, 0.7);
}

/* ═══════════════════════════════════════════
   13. SECTION SPACING
   ═══════════════════════════════════════════ */
section {
    padding: 2rem 1.25rem;
}

@media (min-width: 540px) {
    section {
        padding: 2.5rem 2rem;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ═══════════════════════════════════════════
   14. PEMBUKAAN (HERO)
   ═══════════════════════════════════════════ */
.pembukaan-badge {
    display: inline-block;
    font-family: var(--font-name);
    font-size: 2.0rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    padding: 0.6rem 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.pembukaan-badge::before,
.pembukaan-badge::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--gold-secondary);
    opacity: 0.6;
}

.pembukaan-badge::before {
    left: 0;
}

.pembukaan-badge::after {
    right: 0;
}

/* ═══════════════════════════════════════════
   15. SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealScale {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal {
    opacity: 0;
}

.reveal.visible {
    animation: revealUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-left.visible {
    animation: revealLeft 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-right.visible {
    animation: revealRight 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-scale.visible {
    animation: revealScale 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stagger-children>* {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.05s;
    opacity: 1;
    transform: none;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.13s;
    opacity: 1;
    transform: none;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.21s;
    opacity: 1;
    transform: none;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.29s;
    opacity: 1;
    transform: none;
}

.stagger-children.visible>*:nth-child(n+5) {
    transition-delay: 0.37s;
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════════
   16. FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    background: linear-gradient(160deg, #2E1F06 0%, #1E1208 100%);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

@keyframes omGlow {

    0%,
    100% {
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    }

    50% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.7), 0 0 40px rgba(212, 175, 55, 0.3);
    }
}

.footer-om {
    animation: omGlow 3.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   17. PROFILE SECTION
   ═══════════════════════════════════════════ */
.profile-section {
    margin: 0 auto;
    padding: 0;
}

.profile-family {
    padding: 1.5rem 0;
    width: 420px;
    max-width: 100%;
    margin: 0 auto;
}

.profile-family .d-flex {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem !important;
    justify-items: center;
}

.profile-family .profile-parent,
.profile-family .profile-parent-name {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 540px) {
    .profile-family .avatar-gold-rim {
        width: 110px;
        height: 110px;
    }

    .profile-family .d-flex {
        gap: 2.5rem !important;
    }
}

.profile-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 0 auto;
}

.profile-name {
    font-family: var(--font-profile);
    font-style: italic;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cover-text);
    letter-spacing: 0.3px;
    line-height: 1.35;
    text-transform: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.profile-name:hover {
    color: var(--gold-dark);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.profile-parent {
    font-family: 'Lora', serif;
    font-size: 0.65rem;
    color: var(--cover-sub);
    line-height: 1.6;
}

.profile-parent-name {
    font-family: 'Lora', serif;
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--cover-text);
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   18. BACK TO TOP
   ═══════════════════════════════════════════ */
#back-to-top {
    position: fixed;
    bottom: 5.2rem;
    left: 1%;
    z-index: 1040;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 252, 240, 0.9);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    color: var(--cover-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(180, 130, 20, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 24px rgba(180, 130, 20, 0.35);
}

#back-to-top i {
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════
   19. LOKASI
   ═══════════════════════════════════════════ */
.location-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin: 0 auto 1rem;
}

.location-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #D4AF37 0%, #FCEEAC 50%, #D4AF37 100%);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.location-icon i {
    font-size: 1.1rem;
    color: #5C3A00;
}

.location-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary, #D4AF37);
    line-height: 1.35;
    letter-spacing: 0.3px;
}

.location-address {
    color: #5C3A00;
    font-size: 0.98rem;
    line-height: 1.6;
    display: block;
    margin-top: 4px;
}

.map-wrapper {
    border-radius: 1rem;
    border: 1.5px solid rgba(212, 175, 55, 0.25);
}

/* ═══════════════════════════════════════════
   20. WISHES / UCAPAN
   ═══════════════════════════════════════════ */
.wishes-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cover-text);
    letter-spacing: 0.5px;
}

.wishes-stream {
    max-height: 260px;
}

.countdown-header {
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cover-sub);
}

/* ═══════════════════════════════════════════
   21. FOOTER TEXT
   ═══════════════════════════════════════════ */
.footer-om-text {
    font-family: var(--font-sc);
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.footer-body-text {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.85;
}

.footer-label {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-family-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 3px;
}

.footer-small {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.68rem;
    display: block;
    margin-top: 2rem;
}

/* ═══════════════════════════════════════════
   22. PENGANTAR EXTRAS
   ═══════════════════════════════════════════ */
.pengantar-wrapper {
    margin: 0 auto;
}

.pengantar-text {
    font-size: 0.88rem;
    color: var(--cover-text);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════
   23. RSVP ALERTS
   ═══════════════════════════════════════════ */
.rsvp-alert {
    font-size: 0.85rem;
}

.rsvp-submit {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    display: block;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════
   24. TIMELINE DATE — Decorative Subtitle
   ═══════════════════════════════════════════ */
.timeline-date-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 0.35rem !important;
    margin-bottom: 0.75rem !important;
    color: var(--cover-accent);
}

/* ═══════════════════════════════════════════
   25. ACARA SECTION SUBTITLE
   ═══════════════════════════════════════════ */
.acara-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.acara-icon i {
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════════
   26. RESPONSIVE COVER FOR SHORT / SMALL SCREENS (iPhone SE 2/3, iPhone 8, etc.)
   ═══════════════════════════════════════════ */
@media (max-height: 740px) {
    .cover-top {
        padding: 1.2rem 1.2rem 0.4rem;
    }

    .cover-carved-crest {
        transform: scale(0.78);
        margin-bottom: 0.25rem !important;
    }

    .cover-badge {
        font-size: 0.55rem;
        padding: 3px 10px;
        margin-bottom: 0.4rem !important;
    }

    .cover-title-main {
        font-size: clamp(2rem, 7.5vw, 2.6rem);
        letter-spacing: 8px;
        margin: 0.1rem 0 0.1rem 8px;
    }

    .cover-carved-divider {
        margin: 0.3rem auto;
    }

    .cover-divider-line {
        width: 28px;
    }

    .cover-card {
        width: min(calc(100% - 2rem), 440px);
        padding: 1.2rem 1rem 0.9rem;
        border-radius: 18px;
    }

    .cover-card-carved-crown {
        top: -12px;
        transform: translateX(-50%) scale(0.82);
    }

    .cover-card-eyebrow {
        margin-bottom: 0.4rem;
    }

    .cover-eyebrow-text {
        font-size: 0.58rem;
        letter-spacing: 2px;
    }

    .cover-name-text {
        font-size: clamp(1.4rem, 4.8vw, 1.75rem);
        line-height: 1.1;
    }

    .cover-carved-sep {
        margin: 0.1rem 0;
        transform: scale(0.85);
    }

    .cover-card-date-wrapper {
        margin-top: 0.75rem;
    }

    .cover-date-chip {
        font-size: 0.68rem;
        padding: 5px 14px;
        letter-spacing: 1.2px;
    }

    .cover-bottom {
        padding: 0.5rem 1.2rem 1.2rem;
    }

    .cover-guest-label {
        font-size: 0.72rem;
        margin-bottom: 2px;
    }

    .cover-guest-name {
        font-size: 0.92rem;
        margin-bottom: 0.6rem;
    }

    .btn-cover-open {
        padding: 0.72rem 1.4rem;
        font-size: 0.78rem;
        letter-spacing: 2px;
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    }

    .cover-corner {
        width: 52px;
        height: 52px;
        opacity: 0.75;
    }
}

@media (max-height: 640px) {
    .cover-top {
        padding: 0.8rem 1rem 0.2rem;
    }

    .cover-carved-crest {
        display: none;
        /* Hide top crest on ultra short viewports to preserve layout space */
    }

    .cover-card {
        padding: 1rem 0.8rem 0.8rem;
    }

    .cover-name-text {
        font-size: 1.3rem;
    }

    .cover-bottom {
        padding: 0.4rem 1rem 0.9rem;
    }

    .btn-cover-open {
        padding: 0.65rem 1.2rem;
        font-size: 0.74rem;
    }
}

@media (max-width: 380px) {
    .cover-title-main {
        font-size: 2.1rem;
        letter-spacing: 6px;
        margin-left: 6px;
    }

    .cover-card {
        width: calc(100% - 1.5rem);
        padding: 1.2rem 0.8rem 0.9rem;
    }

    .btn-cover-open {
        width: 100%;
        font-size: 0.76rem;
        letter-spacing: 1.5px;
    }
}

/* ══════════════════════════════════════════════
   SECTION 32 — NEW WISH CARD ENTRANCE ANIMATION
   ══════════════════════════════════════════════ */

.wish-card-new {
    animation: wishSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wishSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
}