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

:root {
    --primary: #10B981;
    --secondary: #34D399;
    --accent: #059669;
    --dark: #064E3B;
    --light: #F0FDF4;
    --success: #22C55E;
    --gold: #D4AF37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Remove tap highlight on mobile */
}

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    color: var(--dark);
    position: relative;
    overflow-x: hidden;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Fond dégradé sombre pour tous les profils */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a2e 0%, #1a0a2e 30%, #0d1b2a 60%, #0a0a1a 100%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(212,175,55,0.04) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
    padding: 3rem 0;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.logo-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 10rem;
    font-weight: 700;
    background: linear-gradient(135deg, white 0%, var(--gold) 50%, white 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 0.9;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
    letter-spacing: -0.05em;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.8rem;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(212, 175, 55, 0.15);
    color: rgba(212, 175, 55, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-align: center;
}

/* Login Screen */
.login-screen {
    max-width: 480px;
    margin: 6rem auto;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    padding: 3.5rem;
    border-radius: 28px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: fadeIn 0.6s ease-out;
    position: relative;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.4),
            transparent,
            rgba(212, 175, 55, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.login-screen h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.05em;
}

.login-screen p {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.03em;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    text-align: center;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--gold), #B8860B);
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow:
        0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(212, 175, 55, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.day-card {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    touch-action: manipulation;
}

.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center,
            rgba(16, 185, 129, 0.15),
            transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover effect mainly for desktop */
@media (hover: hover) {
    .day-card:hover:not(.locked) {
        transform: translateY(-12px) scale(1.03);
        border-color: var(--gold);
        background: rgba(255, 255, 255, 0.15);
        box-shadow:
            0 16px 48px rgba(212, 175, 55, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .day-card:hover:not(.locked)::before {
        opacity: 1;
    }

    .day-card.locked:hover {
        filter: blur(1px) grayscale(0.1);
        opacity: 0.85;
        transform: translateY(-4px) scale(1.01);
        border-color: rgba(212, 175, 55, 0.3);
    }
}

/* Active state for touch devices */
.day-card:active:not(.locked) {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}

.day-card.locked {
    cursor: not-allowed;
    filter: blur(2px) grayscale(0.3);
    opacity: 0.7;
    border-color: rgba(212, 175, 55, 0.15);
    transition: all 0.5s ease;
}

/* Lock icon */
.day-card.locked .lock-icon {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.5));
    animation: lockPulse 2.5s ease-in-out infinite;
}

/* Golden shimmer sweep */
.day-card.locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.08) 40%,
            rgba(212, 175, 55, 0.15) 50%,
            rgba(212, 175, 55, 0.08) 60%,
            transparent 100%);
    animation: lockedShimmer 4s ease-in-out infinite;
    border-radius: 24px;
    pointer-events: none;
}

@keyframes lockedShimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes lockPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }

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

/* ============================================
   REVEAL ANIMATIONS (12 unique styles)
   ============================================ */

/* 1. Cinema Reveal — light sweep across card */
.reveal-cinema {
    animation: revealCinema 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes revealCinema {
    0% {
        clip-path: inset(0 100% 0 0);
        filter: brightness(2);
    }

    60% {
        clip-path: inset(0 0 0 0);
        filter: brightness(1.8);
    }

    100% {
        clip-path: inset(0 0 0 0);
        filter: brightness(1);
    }
}

/* 2. Golden Burst — scale from center with golden glow */
.reveal-golden-burst {
    animation: revealGoldenBurst 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes revealGoldenBurst {
    0% {
        opacity: 0;
        transform: scale(0);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 60px 20px rgba(212, 175, 55, 0.4);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* 3. TikTok Glow Flash — quick white flash then fade in */
.reveal-glow-flash {
    animation: revealGlowFlash 0.9s ease-out both;
}

@keyframes revealGlowFlash {
    0% {
        opacity: 0;
        filter: brightness(0);
    }

    30% {
        opacity: 1;
        filter: brightness(3);
    }

    60% {
        filter: brightness(1.5);
    }

    100% {
        opacity: 1;
        filter: brightness(1);
    }
}

/* 4. Polaroid Drop — falls from above with slight rotation */
.reveal-polaroid {
    animation: revealPolaroid 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes revealPolaroid {
    0% {
        opacity: 0;
        transform: translateY(-120px) rotate(-8deg) scale(0.8);
    }

    60% {
        opacity: 1;
        transform: translateY(8px) rotate(2deg) scale(1.02);
    }

    80% {
        transform: translateY(-4px) rotate(-1deg) scale(1);
    }

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

/* 5. 3D Flip Card — rotates in on Y axis */
.reveal-flip-3d {
    animation: revealFlip3D 1s cubic-bezier(0.4, 0, 0.2, 1) both;
    transform-style: preserve-3d;
}

@keyframes revealFlip3D {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateY(-90deg) scale(0.9);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: perspective(800px) rotateY(0deg) scale(1);
    }
}

/* 6. Zoom Cinematic — zoom in from large with blur clearing */
.reveal-zoom-blur {
    animation: revealZoomBlur 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes revealZoomBlur {
    0% {
        opacity: 0;
        transform: scale(2.5);
        filter: blur(20px);
    }

    60% {
        opacity: 1;
        transform: scale(1.05);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* 7. Magic Dust — fades in with sparkle shadow pulses */
.reveal-magic-dust {
    animation: revealMagicDust 1.3s ease-out both;
}

@keyframes revealMagicDust {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
        filter: brightness(0.5);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }

    30% {
        opacity: 0.8;
        box-shadow: 0 0 40px 10px rgba(212, 175, 55, 0.3), 0 0 80px 30px rgba(212, 175, 55, 0.1);
    }

    60% {
        transform: scale(1.05) translateY(-5px);
        filter: brightness(1.3);
        box-shadow: 0 0 60px 15px rgba(212, 175, 55, 0.2), 0 0 100px 40px rgba(245, 230, 163, 0.1);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: brightness(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* 8. Morph Fluid — morphs shape while fading in */
.reveal-morph {
    animation: revealMorph 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes revealMorph {
    0% {
        opacity: 0;
        border-radius: 50%;
        transform: scale(0.3);
    }

    40% {
        opacity: 1;
        border-radius: 40%;
        transform: scale(1.1);
    }

    70% {
        border-radius: 28px;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        border-radius: 24px;
        transform: scale(1);
    }
}

/* 9. Theater Curtain — reveals from center outward */
.reveal-curtain {
    animation: revealCurtain 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes revealCurtain {
    0% {
        clip-path: inset(0 50% 0 50%);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

/* 10. Elegant Glitch — short glitch with color offset */
.reveal-glitch {
    animation: revealGlitch 0.8s steps(1) both;
}

@keyframes revealGlitch {
    0% {
        opacity: 0;
        transform: translate(0);
    }

    10% {
        opacity: 1;
        transform: translate(-3px, 2px);
        filter: hue-rotate(90deg);
    }

    20% {
        transform: translate(3px, -2px);
        filter: hue-rotate(-90deg);
    }

    30% {
        transform: translate(-2px, -1px);
        filter: hue-rotate(45deg) brightness(1.5);
    }

    40% {
        transform: translate(2px, 1px);
        filter: hue-rotate(0deg);
    }

    50% {
        transform: translate(-1px, 2px);
        filter: brightness(1.3);
    }

    60% {
        transform: translate(1px, -1px);
        filter: none;
    }

    70%,
    100% {
        opacity: 1;
        transform: translate(0);
        filter: none;
    }
}

/* 11. Apple Keynote — smooth elegant scale up */
.reveal-keynote {
    animation: revealKeynote 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes revealKeynote {
    0% {
        opacity: 0;
        transform: scale(0.6);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* 12. Constellation — fades in with glowing border trace */
.reveal-constellation {
    animation: revealConstellation 1.4s ease-out both;
}

@keyframes revealConstellation {
    0% {
        opacity: 0;
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), inset 0 0 0 0 rgba(212, 175, 55, 0);
        border-color: transparent;
    }

    30% {
        opacity: 0.6;
        border-color: rgba(212, 175, 55, 0.6);
        box-shadow: 0 0 30px 5px rgba(212, 175, 55, 0.3), inset 0 0 20px 2px rgba(212, 175, 55, 0.1);
    }

    60% {
        opacity: 1;
        transform: scale(1.03);
        box-shadow: 0 0 50px 10px rgba(212, 175, 55, 0.2), inset 0 0 30px 5px rgba(245, 230, 163, 0.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.day-card.opened {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--primary);
}

.day-card.opened::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    font-weight: 700;
}

.day-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, white, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.day-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    margin: 3rem auto;
    padding: 3rem;
    max-width: 800px;
    border-radius: 32px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9);
    }

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

.close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-day-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 6rem;
    font-weight: 700;
    background: linear-gradient(135deg, white, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.modal-day-label {
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-weight: 500;
}

.modal-content-area {
    color: white;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.modal-content-area h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    color: var(--gold);
}

.modal-content-area p {
    margin-bottom: 1rem;
}

/* Badge Nouveau sur les cases du jour */
.nouveau-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #D4AF37, #f0cc55);
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: nouveauPulse 1.8s ease-in-out infinite;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
}

@keyframes nouveauPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 4px 16px rgba(212, 175, 55, 0.8); }
}

/* Expéditeur mis en valeur dans la modale */
.modal-sender {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    font-style: italic;
}

.modal-sender span {
    color: #D4AF37;
    font-style: normal;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

.modal-image {
    width: 100%;
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.admin-controls {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-controls h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.image-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-area:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.image-upload-area input[type="file"] {
    display: none;
}

.current-image-preview {
    max-width: 300px;
    margin: 1rem 0;
    border-radius: 12px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Canvas */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}


/* Responsive & Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .logo {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .logo-number {
        font-size: 5rem;
    }

    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 0.3rem;
    }

    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 1rem;
    }

    .day-number {
        font-size: 3rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        width: auto;
        border-radius: 20px;
    }

    .modal-day-number {
        font-size: 3.5rem;
    }

    .close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    /* Adjust animations for mobile performance */
    .day-card {
        will-change: transform;
    }

    /* Banner optimization */
    .birthday-banner {
        padding: 2rem 1rem;
    }

    .banner-content {
        padding: 1.5rem !important;
    }

    .banner-title {
        font-size: 2.5rem !important;
    }

    .banner-subtitle {
        font-size: 0.7rem !important;
        letter-spacing: 0.1em;
    }

    /* Login screen mobile */
    .login-screen {
        margin: 2rem 1rem;
        padding: 2rem;
    }

    .login-screen h2 {
        font-size: 1.8rem;
    }

    /* Simulation button mobile */
    #simulationBtn {
        top: auto;
        bottom: 2rem;
        right: 50%;
        transform: translateX(50%);
        width: 80%;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .logo-number {
        font-size: 4rem;
    }

    .day-number {
        font-size: 2.5rem;
    }

    .calendar-grid {
        gap: 0.8rem;
    }
}

.hidden {
    display: none !important;
}

/* Logout button */
.logout-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile adjustments for logout button */
@media (max-width: 768px) {
    .logout-btn {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Loading Video Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.loading-screen video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

/* Simulation Button */
.simulation-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 1rem;
}

.simulation-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.simulation-badge {
    position: fixed;
    top: 2rem;
    left: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 100, 100, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 100, 100, 0.5);
    border-radius: 12px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 100;
    animation: pulse 2s infinite;
}

/* Mobile adjustments for simulation badge */
@media (max-width: 768px) {
    .simulation-badge {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ============================================
   BIRTHDAY BANNER (Claire only)
   ============================================ */

.birthday-banner {
    position: relative;
    width: 100%;
    padding: 3rem 2rem;
    margin-bottom: 0;
    overflow: hidden;
    animation: bannerFadeIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    z-index: 10;
}

.birthday-banner .banner-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center,
            rgba(212, 175, 55, 0.15) 0%,
            rgba(212, 175, 55, 0.05) 40%,
            transparent 70%);
    animation: bannerGlowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.birthday-banner .banner-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 3rem 3rem 2.5rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(212, 175, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.birthday-banner .banner-content:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.35),
        0 0 120px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.banner-title {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg,
            #c9a227 0%,
            #f5e6a3 20%,
            #d4af37 40%,
            #f5e6a3 60%,
            #c9a227 80%,
            #f5e6a3 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bannerShimmer 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.4));
    text-shadow: none;
}

.banner-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    animation: bannerSubFadeIn 2s ease-out 0.8s both;
}

/* Sparkles */
.banner-sparkle {
    position: absolute;
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0;
    animation: sparkleFloat 3s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

.banner-sparkle-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    font-size: 1rem;
}

.banner-sparkle-2 {
    top: 20%;
    right: 10%;
    animation-delay: 0.7s;
    font-size: 1.4rem;
}

.banner-sparkle-3 {
    bottom: 25%;
    left: 12%;
    animation-delay: 1.4s;
    font-size: 0.9rem;
}

.banner-sparkle-4 {
    bottom: 20%;
    right: 8%;
    animation-delay: 2.1s;
    font-size: 1.1rem;
}

.banner-sparkle-5 {
    top: 50%;
    left: 4%;
    animation-delay: 0.5s;
    font-size: 0.8rem;
}

.banner-sparkle-6 {
    top: 45%;
    right: 5%;
    animation-delay: 1.8s;
    font-size: 1rem;
}

/* Banner keyframes */
@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes bannerShimmer {
    0% {
        background-position: 200% 50%;
    }

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

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

@keyframes bannerGlowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes bannerSubFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes sparkleFloat {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    20% {
        opacity: 1;
        transform: translateY(-8px) scale(1);
    }

    80% {
        opacity: 0.6;
        transform: translateY(-16px) scale(0.8);
    }
}

/* ============================================
   DYNAMIC COUNTER (Claire only)
   ============================================ */

.dynamic-counter {
    padding: 0 2rem 2rem;
    animation: counterFadeIn 1s ease-out 0.5s both;
    z-index: 10;
    position: relative;
}

.counter-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.5rem 2rem 2rem;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.counter-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.8rem;
}

.counter-stat {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1rem;
}

.counter-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, white 0%, var(--gold) 50%, white 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
    transition: all 0.3s ease;
}

.counter-value-small {
    font-size: 4rem;
}

.counter-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.counter-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg,
            transparent,
            rgba(212, 175, 55, 0.4),
            transparent);
    flex-shrink: 0;
}

.counter-message {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    font-style: italic;
    animation: counterMessageGlow 3s ease-in-out infinite;
}

.counter-progress-wrapper {
    text-align: center;
}

.counter-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.counter-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), #f5e6a3, var(--gold));
    background-size: 200% 100%;
    border-radius: 3px;
    transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: progressShimmer 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.counter-progress-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Counter keyframes */
@keyframes counterFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes counterMessageGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0);
        color: rgba(255, 255, 255, 0.85);
    }

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

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

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

/* Counter responsive */
@media (max-width: 768px) {
    .dynamic-counter {
        padding: 0 1rem 1.5rem;
    }

    .counter-container {
        padding: 2rem 1rem 1.5rem;
        border-radius: 20px;
    }

    .counter-stats {
        gap: 0;
    }

    .counter-value {
        font-size: 3rem;
    }

    .counter-value-small {
        font-size: 2.5rem;
    }

    .counter-label {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }

    .counter-divider {
        height: 50px;
    }

    .counter-message {
        font-size: 0.9rem;
    }
}

/* Canvas for Effects */
canvas#fireworksCanvas,
canvas#heartCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    /* Behind everything */
}

/* ============================================
   ADMIN INLINE EDIT (in modal)
   ============================================ */

.admin-edit-section {
    margin-top: 1.5rem;
}

.admin-edit-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    margin-bottom: 1.5rem;
}

.admin-edit-title {
    color: #D4AF37;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-edit-title i {
    margin-right: 0.5rem;
}

.admin-edit-field {
    margin-bottom: 1.2rem;
}

.admin-edit-field label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.admin-edit-field input[type="text"],
.admin-edit-field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.admin-edit-field input[type="text"]:focus,
.admin-edit-field textarea:focus {
    outline: none;
    border-color: #D4AF37;
}

.admin-upload-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.admin-upload-area i {
    color: #D4AF37;
    font-size: 1.2rem;
}

.admin-upload-area:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
    color: white;
}

.admin-edit-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.admin-btn {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.admin-btn i {
    margin-right: 0.4rem;
}

.admin-btn-save {
    flex: 2;
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #000;
}

.admin-btn-save:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.admin-btn-clear {
    flex: 1;
    background: transparent;
    color: #EF4444;
    border: 1px solid #EF4444;
}

.admin-btn-clear:hover {
    background: #EF4444;
    color: white;
}

.admin-btn-delete-img {
    margin-top: 0.5rem;
    background: transparent;
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.admin-btn-delete-img:hover {
    background: #EF4444;
    color: white;
}

/* ============================================
   STAR SHORTCUT (Floating Button)
   ============================================ */

/* Star Shortcut — Inline between counters */
.star-shortcut-inline {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.star-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6), transparent 70%);
    animation: starPulse 2s ease-in-out infinite;
}

.star-icon {
    font-size: 2.2rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    animation: starBounce 3s ease-in-out infinite;
    transition: transform 0.2s;
}

.star-shortcut-inline:hover .star-icon {
    transform: scale(1.2) rotate(15deg);
}

.star-shortcut-inline:active .star-icon {
    transform: scale(0.95);
}

.star-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    font-family: 'Montserrat', sans-serif;
}

@keyframes starPulse {

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

    50% {
        transform: scale(1.5);
        opacity: 0.2;
    }
}

@keyframes starBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-4px) rotate(5deg);
    }

    75% {
        transform: translateY(2px) rotate(-3deg);
    }
}

/* No glow when no new photos */
.star-shortcut-inline.no-new .star-glow {
    animation: none;
    opacity: 0.2;
}

.star-shortcut-inline.no-new .star-icon {
    animation: none;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3));
    opacity: 0.6;
}

.star-shortcut-inline.no-new .star-badge {
    display: none;
}

/* ============================================
   SLIDESHOW OVERLAY
   ============================================ */

.slideshow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

.slideshow-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slideshow-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.slideshow-counter {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.slideshow-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    overflow: hidden;
}

.slideshow-card {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2.5rem;
    text-align: center;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideshowCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slideshow-card.slide-left {
    animation: slideOutLeft 0.3s ease-in forwards;
}

.slideshow-card.slide-right {
    animation: slideOutRight 0.3s ease-in forwards;
}

.slideshow-card.slide-in-left {
    animation: slideInFromRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slideshow-card.slide-in-right {
    animation: slideInFromLeft 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slideshow-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #D4AF37, #F5E6A3, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.slideshow-image {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.slideshow-title {
    color: #D4AF37;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-family: 'Playfair Display', serif;
}

.slideshow-message {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    font-family: 'Montserrat', sans-serif;
}

/* Controls */
.slideshow-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem 2rem;
}

.slideshow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: #D4AF37;
    transform: scale(1.1);
}

.slideshow-btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

.slideshow-dots {
    display: flex;
    gap: 0.5rem;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.slideshow-dot.active {
    background: #D4AF37;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.slideshow-dot:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* Slideshow animations */
@keyframes slideshowCardIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }

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

@keyframes slideOutLeft {
    to {
        opacity: 0;
        transform: translateX(-100%) scale(0.9) rotate(-5deg);
    }
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9) rotate(5deg);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(80%) scale(0.9);
    }

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-80%) scale(0.9);
    }

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

/* Mobile responsive */
@media (max-width: 600px) {
    .star-shortcut-inline {
        width: 48px;
        height: 48px;
        margin: 0 0.3rem;
    }

    .star-icon {
        font-size: 2rem;
    }

    .slideshow-card {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .slideshow-number {
        font-size: 2.2rem;
    }

    .slideshow-btn {
        width: 42px;
        height: 42px;
    }
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    animation: countdownPulse 3s ease-in-out infinite;
}

.countdown-icon {
    font-size: 1.2rem;
}

.countdown-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.countdown-complete {
    color: #34D399 !important;
}

@keyframes countdownPulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   UNBOX ANIMATION
   ============================================ */

.unbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.unbox-overlay.hidden {
    display: none;
}

.unbox-gift {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unbox-lid {
    font-size: 8rem;
    animation: giftShake 0.5s ease-in-out 3, giftLift 0.6s ease-out 1.5s forwards;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
}

.unbox-number {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0;
    animation: numberReveal 0.8s ease-out 1.8s forwards;
}

@keyframes giftShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-12deg);
    }

    75% {
        transform: rotate(12deg);
    }
}

@keyframes giftLift {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-120px) scale(1.3);
        opacity: 0;
    }
}

@keyframes numberReveal {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

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

.unbox-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confettiFall 2s ease-out forwards;
}

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

    100% {
        opacity: 0;
        transform: translateY(400px) rotate(720deg) scale(0.3);
    }
}

/* ============================================
   MODAL AUDIO & VIDEO
   ============================================ */

.modal-video {
    width: 100%;
    max-height: 400px;
    border-radius: 12px;
    margin-top: 1rem;
    background: #000;
}

.modal-audio-container {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    text-align: center;
}

.audio-label {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal-audio-container audio {
    width: 100%;
    max-width: 400px;
    height: 40px;
}

/* ============================================
   GALLERY BUTTON
   ============================================ */

.gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}