/* ═══════════════════════════════════════════
   💕 LOVE STORY — Custom Styles
   ═══════════════════════════════════════════ */

/* Base */
@font-face {
    font-family: 'IBM';
    src: url('ibm.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM', 'Noto Sans Arabic', sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    direction: rtl;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f43f5e, #e11d48);
    border-radius: 3px;
}

/* Hidden content before lock opens */
.hidden-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hidden-content.revealed {
    opacity: 1;
    pointer-events: all;
}

/* ═══════════════════════════════════════════
   🔐 LOCK SCREEN
   ═══════════════════════════════════════════ */
.lock-content {
    animation: lock-float 3s ease-in-out infinite;
}

@keyframes lock-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.lock-heart-ring {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lock-heart-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(244, 63, 94, 0.3);
    animation: spin-ring 6s linear infinite;
}

.lock-heart-ring::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(244, 63, 94, 0.2), transparent);
    animation: spin-ring 4s linear infinite reverse;
    filter: blur(10px);
}

#lock-screen.unlocking {
    opacity: 0;
    transform: scale(1.2);
    pointer-events: none;
}

#lock-input.shake {
    animation: shake 0.5s ease;
    border-color: #ef4444 !important;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(10px);
    }
}

.lock-success {
    animation: lock-success 0.6s ease forwards;
}

@keyframes lock-success {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
        filter: brightness(2);
    }
}

/* ═══════════════════════════════════════════
   🎂 BIRTHDAY BANNER
   ═══════════════════════════════════════════ */
.birthday-banner-inner {
    background: linear-gradient(90deg, #e11d48, #be185d, #e11d48);
    background-size: 200% 100%;
    animation: banner-slide 3s ease-in-out infinite;
}

@keyframes banner-slide {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.banner-sparkle {
    animation: sparkle-pulse 1.5s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes sparkle-pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ═══════════════════════════════════════════
   🎵 MUSIC PLAYER
   ═══════════════════════════════════════════ */
.music-player-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(190, 24, 93, 0.15));
    border: 1px solid rgba(244, 63, 94, 0.3);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.15);
}

.music-btn:hover {
    transform: scale(1.1);
    border-color: rgba(244, 63, 94, 0.6);
    box-shadow: 0 4px 30px rgba(244, 63, 94, 0.3);
}

.music-btn.playing {
    animation: music-pulse 1.5s ease-in-out infinite;
}

@keyframes music-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(244, 63, 94, 0.15);
    }

    50% {
        box-shadow: 0 4px 40px rgba(244, 63, 94, 0.4);
    }
}

.music-expanded {
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(244, 63, 94, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 10px 14px;
    animation: expand-in 0.3s ease;
}

@keyframes expand-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════
   ✨ SIDE NAVIGATION
   ═══════════════════════════════════════════ */
.nav-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
}

.nav-dot-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-dot.active .nav-dot-inner {
    background: #f43f5e;
    border-color: #f43f5e;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
    transform: scale(1.2);
}

.nav-dot:hover .nav-dot-inner {
    border-color: #f43f5e;
    transform: scale(1.1);
}

.nav-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.nav-dot:hover .nav-label,
.nav-dot.active .nav-label {
    color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════
   📸 GALLERY
   ═══════════════════════════════════════════ */
.gallery-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-card {
    border-radius: 1.2rem;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.06), rgba(190, 24, 93, 0.03));
    border: 1px solid rgba(244, 63, 94, 0.1);
    transition: all 0.4s ease;
}

.gallery-card:hover {
    border-color: rgba(244, 63, 94, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -15px rgba(244, 63, 94, 0.2);
}

.gallery-card img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.media-card {
    position: relative;
}

.media-loading-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.14), rgba(190, 24, 93, 0.08));
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
    pointer-events: none;
}

.media-loading.media-card .media-loading-placeholder {
    opacity: 1;
}

.media-loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    animation: spin-loader 0.8s linear infinite;
}

.media-loading-placeholder-video {
    border-radius: 0.8rem;
}


.video-preview-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0.8rem;
}

.video-card video {
    width: 100%;
    background: #000;
}

.video-preview-el {
    pointer-events: none;
    filter: saturate(0.95);
}

.video-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.25s ease;
}

.video-card:hover .video-play-badge {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(244, 63, 94, 0.65);
    border-color: rgba(255, 255, 255, 0.4);
}

.video-card p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════
   ↔ THEN VS NOW SLIDER
   ═══════════════════════════════════════════ */
.compare-card {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.06), rgba(245, 158, 11, 0.04));
    border: 1px solid rgba(244, 63, 94, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 1rem;
}

.then-now-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    touch-action: none;
    user-select: none;
    cursor: ew-resize;
}

.then-now-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.then-now-overlay {
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.16s ease;
}

.then-now-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 18px rgba(244, 63, 94, 0.55);
    transition: left 0.16s ease;
}

.then-now-handle::before {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: rgba(10, 10, 15, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.then-now-slider.dragging .then-now-overlay,
.then-now-slider.dragging .then-now-handle {
    transition: none;
}

.then-now-footer {
    margin-top: 1rem;
}

.then-now-range {
    width: 100%;
    cursor: pointer;
    accent-color: #f43f5e;
}

.then-now-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
}

.then-now-hint {
    margin-top: 0.5rem;
    text-align: center;
    color: rgba(244, 63, 94, 0.7);
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════════
   GRADIENT ORBS
   ═══════════════════════════════════════════ */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #e11d48, transparent);
    top: -10%;
    right: -10%;
    animation: float-orb 15s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #be185d, transparent);
    bottom: 10%;
    left: -5%;
    animation: float-orb 20s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f59e0b, transparent);
    top: 40%;
    right: 30%;
    opacity: 0.15;
    animation: float-orb 18s ease-in-out infinite 3s;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero-content {
    animation: hero-entrance 2s ease-out forwards;
}

.hero-title {
    animation: hero-title-in 1.5s ease-out 0.3s both;
}

.hero-subtitle {
    animation: hero-title-in 1.5s ease-out 0.6s both;
}

.hero-desc {
    animation: hero-title-in 1.5s ease-out 0.9s both;
}

@keyframes hero-entrance {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-title-in {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Sparkle Ring */
.sparkle-ring {
    width: 180px;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-ring 3s ease-in-out infinite;
}

.sparkle-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(45deg, #f43f5e, #f59e0b, #f43f5e) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: spin-ring 8s linear infinite;
}

.sparkle-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, #f43f5e44, transparent, #f59e0b44, transparent);
    animation: spin-ring 6s linear infinite reverse;
    filter: blur(8px);
}

.sparkle-ring-inner {
    position: relative;
    z-index: 2;
    animation: heart-beat 1.5s ease-in-out infinite;
}

@keyframes spin-ring {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes heart-beat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }
}

/* Glow Text */
.glow-text {
    text-shadow: 0 0 40px rgba(244, 63, 94, 0.4), 0 0 80px rgba(244, 63, 94, 0.2);
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #f43f5e;
    margin-right: 4px;
    animation: blink-cursor 0.8s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    animation: fade-in 2s ease-out 2s both;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════
   TIMELINE SECTION
   ═══════════════════════════════════════════ */
.section-header {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-line {
    animation: grow-line 2s ease-out forwards;
    transform-origin: top;
}

@keyframes grow-line {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.timeline-event {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-event.from-left {
    transform: translateX(-60px);
}

.timeline-event.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-card {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(190, 24, 93, 0.04));
    border: 1px solid rgba(244, 63, 94, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.timeline-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.1), transparent 50%);
    pointer-events: none;
}

.timeline-card:hover {
    border-color: rgba(244, 63, 94, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px rgba(244, 63, 94, 0.2);
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-radius: 50%;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    top: 2rem;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.5), 0 0 40px rgba(244, 63, 94, 0.2);
    z-index: 2;
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(244, 63, 94, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(244, 63, 94, 0.8), 0 0 60px rgba(244, 63, 94, 0.3);
    }
}

.timeline-date {
    font-size: 0.85rem;
    color: rgba(244, 63, 94, 0.7);
    font-weight: 600;
}

.timeline-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fecdd3;
    margin-top: 0.5rem;
}

.timeline-desc {
    font-size: 1rem;
    color: rgba(254, 205, 211, 0.6);
    margin-top: 0.5rem;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════
   STORY SECTION
   ═══════════════════════════════════════════ */
.story-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-card-inner {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.06), rgba(245, 158, 11, 0.04));
    border: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(20px);
    position: relative;
}

.story-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.1), transparent 70%);
    pointer-events: none;
}

.story-card-inner.story-card-his {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(244, 63, 94, 0.04));
    border: 1px solid rgba(245, 158, 11, 0.12);
}

.story-card-inner.story-card-his::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 70%);
}

.story-text {
    line-height: 2.4;
    white-space: pre-line;
}

/* ═══════════════════════════════════════════
   BIRTHDAY SECTION
   ═══════════════════════════════════════════ */
.birthday-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.birthday-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cake-container {
    position: relative;
    display: inline-block;
}

.cake-emoji {
    animation: cake-bounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes cake-bounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(-3deg);
    }

    75% {
        transform: translateY(-5px) rotate(3deg);
    }
}

.cake-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.3), transparent 70%);
    filter: blur(30px);
    animation: glow-pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.birthday-message {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(190, 24, 93, 0.05));
    border: 1px solid rgba(244, 63, 94, 0.15);
    backdrop-filter: blur(20px);
}

.float-emoji {
    display: inline-block;
    animation: emoji-float 2s ease-in-out infinite;
}

@keyframes emoji-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.love-counter {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.06), rgba(190, 24, 93, 0.03));
    border: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(20px);
}

.counter-box {
    text-align: center;
    min-width: 70px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.footer-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   FLOATING HEARTS
   ═══════════════════════════════════════════ */
.floating-heart {
    position: fixed;
    color: rgba(244, 63, 94, 0.15);
    pointer-events: none;
    z-index: 0;
    animation: rise-heart linear forwards;
}

@keyframes rise-heart {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg) scale(1);
        opacity: 0;
    }
}

#confetti-canvas {
    z-index: 100;
}

/* ═══════════════════════════════════════════
   STARS
   ═══════════════════════════════════════════ */
.star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: twinkle linear infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.8;
    }
}

/* ═══════════════════════════════════════════
   🔊 VOLUME SLIDER
   ═══════════════════════════════════════════ */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #f43f5e, #f43f5e);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #f43f5e;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

/* ═══════════════════════════════════════════
   🌙 AUDIO VISUALIZER
   ═══════════════════════════════════════════ */
.audio-visualizer {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 20px;
    justify-content: center;
}

.viz-bar {
    width: 3px;
    height: 4px;
    background: linear-gradient(to top, #f43f5e, #ec4899);
    border-radius: 1px;
    transition: height 0.15s ease;
}

.viz-bar.active {
    animation: viz-dance 0.5s ease infinite alternate;
}

@keyframes viz-dance {
    0% {
        height: 4px;
    }

    100% {
        height: 18px;
    }
}

/* ═══════════════════════════════════════════
   🖼️ PHOTO LIGHTBOX
   ═══════════════════════════════════════════ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.3s ease;
}

.lightbox-overlay.hidden {
    display: none;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    animation: lightbox-zoom 0.4s ease;
}

.lightbox-video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    animation: lightbox-zoom 0.4s ease;
    background: #000;
    outline: none;
}

.lightbox-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 302;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 60%);
}

.lightbox-loader.hidden {
    display: none;
}

.lightbox-loader-spinner {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    animation: spin-loader 0.8s linear infinite;
}

.lightbox-media-hidden {
    opacity: 0;
}

@keyframes spin-loader {
    to {
        transform: rotate(360deg);
    }
}

@keyframes lightbox-zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 301;
}

.lightbox-close:hover {
    background: rgba(244, 63, 94, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 301;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    background: rgba(244, 63, 94, 0.3);
}

.lightbox-title {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   🎞️ MIXED MEMORY REELS
   ═══════════════════════════════════════════ */
.reels-overlay {
    position: fixed;
    inset: 0;
    z-index: 350;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reels-overlay.hidden {
    display: none;
}

.reels-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
    transition: transform 0.38s ease, opacity 0.38s ease;
}

.reels-stage.reels-stage-switching {
    opacity: 0.45;
    transform: scale(0.985);
}

.reels-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.reels-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 360;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
}

.reels-loader.hidden {
    display: none;
}

.reels-gradient {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 34%;
    z-index: 355;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.reels-meta {
    position: absolute;
    right: 16px;
    left: 16px;
    bottom: 22px;
    z-index: 356;
    text-align: right;
}

.reels-type {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.reels-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
    margin-bottom: 6px;
    max-width: 95%;
}

.reels-counter,
.reels-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

.reels-hint {
    margin-top: 4px;
    letter-spacing: 0.04em;
}

.reels-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 360;
    width: 46px;
    height: 46px;
    border-radius: 9999px;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.reels-close:hover {
    background: rgba(244, 63, 94, 0.7);
}

.reels-nav {
    position: absolute;
    right: 16px;
    z-index: 360;
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.reels-nav:hover {
    background: rgba(244, 63, 94, 0.65);
}

.reels-nav-up {
    top: 74px;
}

.reels-nav-down {
    top: 122px;
}

@media (max-width: 768px) {
    .reels-title {
        font-size: 1rem;
    }

    .reels-counter,
    .reels-hint,
    .reels-type {
        font-size: 0.75rem;
    }

    .reels-nav {
        width: 38px;
        height: 38px;
    }

    .reels-nav-up {
        top: 66px;
    }

    .reels-nav-down {
        top: 108px;
    }
}

/* ═══════════════════════════════════════════
   💌 LOVE LETTER / ENVELOPE
   ═══════════════════════════════════════════ */
.envelope-wrapper {
    display: inline-block;
}

.envelope {
    position: relative;
    width: 200px;
    height: 140px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.envelope:hover {
    transform: scale(1.05);
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #f48fb1;
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.2);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #f8bbd0, #f48fb1);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transition: transform 0.6s ease;
    transform-origin: top center;
    z-index: 2;
}

.envelope-wrapper.opened .envelope-flap {
    transform: rotateX(180deg);
}

.letter-paper {
    background: linear-gradient(to bottom, #fffde7, #fff8e1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    position: relative;
    animation: letter-slide-up 0.8s ease;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    border: 1px dashed rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    pointer-events: none;
}

.letter-text {
    font-style: italic;
}

@keyframes letter-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════
   🎁 GIFT BOX
   ═══════════════════════════════════════════ */
.gift-box-wrapper {
    display: inline-block;
}

.gift-box {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    animation: gift-wobble 2s ease-in-out infinite;
}

@keyframes gift-wobble {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-3deg);
    }

    75% {
        transform: rotate(3deg);
    }
}

.gift-base {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(244, 63, 94, 0.3);
}

.gift-lid {
    position: absolute;
    top: -20px;
    left: -10px;
    right: -10px;
    height: 40px;
    background: linear-gradient(135deg, #be185d, #9d174d);
    border-radius: 8px;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gift-lid.opened {
    transform: translateY(-60px) rotate(-15deg);
    opacity: 0;
}

.gift-bow {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
}

.gift-reveal-card {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(168, 85, 247, 0.06));
    border: 1px solid rgba(244, 63, 94, 0.2);
    backdrop-filter: blur(20px);
    animation: gift-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gift-reveal {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ═══════════════════════════════════════════
   📅 COUNTDOWN TIMER
   ═══════════════════════════════════════════ */
.countdown-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(190, 24, 93, 0.04));
    border: 1px solid rgba(244, 63, 94, 0.15);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
    min-width: 100px;
    transition: all 0.3s;
}

.countdown-item:hover {
    border-color: rgba(244, 63, 94, 0.35);
    transform: translateY(-4px);
}

/* ═══════════════════════════════════════════
   💬 WISHES BOARD
   ═══════════════════════════════════════════ */
.wish-form-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(244, 63, 94, 0.04));
    border: 1px solid rgba(168, 85, 247, 0.15);
    backdrop-filter: blur(20px);
}

.wish-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(244, 63, 94, 0.04));
    border: 1px solid rgba(168, 85, 247, 0.12);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 1rem;
    animation: wish-in 0.5s ease;
}

@keyframes wish-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════
   📱 SHARE BUTTONS
   ═══════════════════════════════════════════ */
.share-btn {
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.share-btn:hover {
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   🌹 ROSE PETALS
   ═══════════════════════════════════════════ */
.rose-petal {
    position: fixed;
    top: -30px;
    pointer-events: none;
    z-index: 1;
    animation: fall-petal linear forwards;
}

@keyframes fall-petal {
    0% {
        transform: translateY(-30px) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(80px);
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(110vh) rotate(360deg) translateX(-40px);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile Polish
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .sparkle-ring {
        width: 130px;
        height: 130px;
    }

    .sparkle-ring-inner span {
        font-size: 4rem;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-card {
        padding: 1.5rem;
    }

    .timeline-icon {
        font-size: 2rem;
    }

    .counter-box {
        min-width: 50px;
    }

    #side-nav {
        display: none !important;
    }

    .lock-heart-ring {
        width: 110px;
        height: 110px;
    }

    #lock-icon {
        font-size: 3rem;
    }

    /* Mobile music player */
    .music-player-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .music-btn {
        width: 44px;
        height: 44px;
    }

    .music-expanded {
        position: fixed;
        bottom: 60px;
        left: 6px;
    }

    /* Story card padding */
    .story-card-inner {
        padding: 1.5rem !important;
    }

    .story-text {
        font-size: 0.95rem !important;
        line-height: 2 !important;
    }

    /* Gallery mobile: 2 columns */
    .gallery-card img {
        aspect-ratio: 1;
    }

    .compare-card {
        padding: 0.7rem;
    }

    .then-now-slider {
        aspect-ratio: 4 / 5;
    }

    .then-now-handle::before {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    /* Birthday message mobile */
    .birthday-message {
        padding: 1.5rem !important;
    }

    /* Hero section mobile */
    .hero-content {
        padding: 0 1rem;
    }

    .hero-title span {
        font-size: 2rem;
    }

    /* Orbs smaller on mobile */
    .orb-1 {
        width: 250px;
        height: 250px;
    }

    .orb-2 {
        width: 200px;
        height: 200px;
    }

    .orb-3 {
        width: 150px;
        height: 150px;
    }
}

/* Extra small phones */
@media (max-width: 380px) {
    .cake-emoji {
        font-size: 5rem !important;
    }

    .counter-box span:first-child {
        font-size: 1.5rem !important;
    }

    .lock-heart-ring {
        width: 90px;
        height: 90px;
    }

    #lock-icon {
        font-size: 2.5rem;
    }
}