/* ================================
   COMPLETE BEAUTIFUL VALENTINE'S CSS
   Main page (Bear) + Gallery page
   ================================ */

/* Import Beautiful Fonts */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ================================
   ROOT VARIABLES & RESET
   ================================ */

:root {
    /* Gradient Colors */
    --bg-gradient-1: #667eea;
    --bg-gradient-2: #764ba2;
    --bg-gradient-3: #f093fb;
    --bg-gradient-4: #f5576c;
    
    /* Bear Colors */
    --bear-fur: #8b9dc3;
    --bear-mid: #6b7fa8;
    --bear-dark: #4a5f8f;
    --bear-highlight: #d4e1f5;
    --bear-shadow: #2d3e5f;
    
    /* Accent Colors */
    --heart-primary: #ff6b9d;
    --heart-glow: #ff8fb3;
    --accent-rose: #ff5e8a;
    --accent-purple: #a855f7;
    
    /* Glass Effects */
    --glass-white: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ================================
   MAIN PAGE - BEAR & LOGIN
   ================================ */

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, 
        var(--bg-gradient-1) 0%, 
        var(--bg-gradient-2) 35%, 
        var(--bg-gradient-3) 70%, 
        var(--bg-gradient-4) 100%);
    position: relative;
}

/* Animated Shimmer Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Floating Sparkles */
.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: sparkleFloat 4s ease-in-out infinite;
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0.8;
    }
    90% {
        opacity: 1;
    }
}

/* ================================
   GLASSMORPHISM CARD
   ================================ */

.card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px) saturate(150%);
    border: 2px solid var(--glass-border);
    border-radius: 45px;
    padding: 40px;
    text-align: center;
    width: 420px;
    max-width: 95%;
    z-index: 10;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.1));
    border-radius: 45px;
    z-index: -1;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

.corner-decoration.top-left {
    top: 15px;
    left: 15px;
}

.corner-decoration.top-right {
    top: 15px;
    right: 15px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* ================================
   THE BEAUTIFUL CSS BEAR
   ================================ */

.bear-canvas {
    position: relative;
    width: 220px;
    height: 240px;
    margin: 0 auto 25px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
}

/* Bear Head */
.bear-head {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 100px;
    background: radial-gradient(ellipse at 35% 35%, 
        var(--bear-highlight) 0%, 
        var(--bear-fur) 40%, 
        var(--bear-mid) 70%, 
        var(--bear-dark) 100%);
    border-radius: 50% 50% 48% 48%;
    z-index: 5;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.25),
        inset 0 2px 8px rgba(255, 255, 255, 0.3),
        inset 0 -5px 15px rgba(0, 0, 0, 0.15);
}

.head-shine {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 40px;
    height: 35px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.4), transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
}

/* Fluffy Ears */
.ear {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, 
        var(--bear-mid), 
        var(--bear-dark));
    border-radius: 50%;
    top: 12px;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.25),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.ear-inner {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--bear-highlight) 30%, transparent);
    border-radius: 50%;
    top: 8px;
    left: 8px;
    opacity: 0.6;
}

.ear.left { 
    left: 42px; 
    box-shadow: 
        inset -6px -3px 8px rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.25);
}

.ear.right { 
    right: 42px; 
    box-shadow: 
        inset 6px -3px 8px rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Cuddly Body */
.bear-body {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 115px;
    background: radial-gradient(ellipse at 50% 30%, 
        var(--bear-highlight) 0%, 
        var(--bear-fur) 35%, 
        var(--bear-mid) 65%, 
        var(--bear-dark) 100%);
    border-radius: 50% 50% 45% 45%;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.25),
        inset 0 3px 10px rgba(255, 255, 255, 0.3),
        inset 0 -8px 20px rgba(0, 0, 0, 0.15);
}

.belly-shine {
    position: absolute;
    width: 60px;
    height: 70px;
    background: radial-gradient(ellipse, 
        rgba(255, 255, 255, 0.25), 
        transparent 70%);
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

/* Adorable Arms */
.arm {
    position: absolute;
    width: 42px;
    height: 75px;
    background: radial-gradient(ellipse at 40% 30%, 
        var(--bear-mid), 
        var(--bear-dark));
    border-radius: 50%;
    top: 105px;
    z-index: 6;
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.25),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.paw-pad {
    position: absolute;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, var(--bear-dark), var(--bear-shadow));
    border-radius: 50%;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.arm-l { 
    left: 32px; 
    transform: rotate(25deg);
}

.arm-r { 
    right: 32px; 
    transform: rotate(-25deg);
}

/* The Glowing Heart */
.held-heart {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 50px;
    background: linear-gradient(135deg, 
        var(--heart-primary) 0%, 
        var(--heart-glow) 100%);
    z-index: 7;
    clip-path: path('M27.5 50 C 27.5 50 0 32 0 16 A 13.75 13.75 0 0 1 27.5 16 A 13.75 13.75 0 0 1 55 16 C 55 32 27.5 50 27.5 50');
    box-shadow: 
        0 8px 20px rgba(255, 107, 157, 0.5),
        0 0 30px rgba(255, 107, 157, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.4);
    animation: heartbeat 2s ease-in-out infinite;
}

.heart-glow {
    position: absolute;
    top: 8px;
    left: 12px;
    width: 15px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(3px);
}

@keyframes heartbeat {
    0%, 100% { transform: translateX(-50%) scale(1); }
    15% { transform: translateX(-50%) scale(1.15); }
    30% { transform: translateX(-50%) scale(1); }
    45% { transform: translateX(-50%) scale(1.1); }
    60% { transform: translateX(-50%) scale(1); }
}

/* Sparkling Eyes */
.eye {
    position: absolute;
    width: 20px;
    height: 24px;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    border-radius: 50%;
    top: 35px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.eye.l { left: 28px; }
.eye.r { right: 28px; }

.pupil {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, 
        #1a2e4a, 
        #0d1929);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5);
}

.eye-shine {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    box-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Cute Muzzle */
.muzzle {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 32px;
    background: radial-gradient(ellipse at 50% 30%, 
        var(--bear-highlight), 
        var(--bear-fur));
    border-radius: 50%;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.nose {
    width: 12px;
    height: 8px;
    background: radial-gradient(ellipse, #1a2e4a, #0d1929);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 6px auto 0;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
}

.nose-shine {
    position: absolute;
    top: 1px;
    left: 2px;
    width: 3px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* Sweet Smile */
.mouth {
    position: absolute;
    width: 16px;
    height: 8px;
    border: 2px solid var(--bear-dark);
    border-top: none;
    border-radius: 0 0 50% 50%;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

/* Rosy Cheeks */
.cheek {
    position: absolute;
    width: 18px;
    height: 12px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.6), transparent 70%);
    border-radius: 50%;
    top: 52px;
    filter: blur(3px);
}

.cheek.left { left: 8px; }
.cheek.right { right: 8px; }

/* ================================
   LOGIN VIEW STYLING
   ================================ */

#login-view {
    position: relative;
    z-index: 10;
}

.main-title {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: white;
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
    line-height: 1.4;
}

.title-line {
    display: block;
}

.hearts-divider {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0 20px;
    font-size: 1.5rem;
}

.heart-icon {
    display: inline-block;
    animation: heartPulse 2s ease-in-out infinite;
}

.heart-icon:nth-child(1) { animation-delay: 0s; }
.heart-icon:nth-child(2) { animation-delay: 0.3s; }
.heart-icon:nth-child(3) { animation-delay: 0.6s; }

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.sub-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 18px;
    color: var(--accent-rose);
    font-weight: 600;
    letter-spacing: 6px;
    outline: none;
    box-sizing: border-box;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

input::placeholder {
    color: rgba(255, 94, 138, 0.5);
    letter-spacing: 3px;
}

input:focus {
    border-color: var(--accent-rose);
    box-shadow: 
        0 4px 20px rgba(255, 94, 138, 0.3),
        0 0 0 4px rgba(255, 94, 138, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-rose), var(--heart-glow));
    border-radius: 2px;
    transition: transform 0.3s ease;
}

input:focus + .input-underline {
    transform: translateX(-50%) scaleX(1);
}

/* Beautiful Button */
button,
.unlock-button {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--accent-rose) 0%, #ff8fb3 100%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 20px rgba(255, 94, 138, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover,
.unlock-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(255, 94, 138, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

button:active,
.unlock-button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 15px rgba(255, 94, 138, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.button-text {
    font-weight: 700;
}

.button-icon {
    font-size: 1.2rem;
}

.hint-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-style: italic;
}

/* ================================
   RAIN HEARTS EFFECT
   ================================ */

.rain-heart {
    position: fixed;
    top: -10vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
    animation: rainDown linear forwards;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 157, 0.4));
}

@keyframes rainDown {
    0% {
        transform: translateY(0vh) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(110vh) rotate(360deg) scale(0.8);
        opacity: 0.3;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px) rotate(-2deg); }
    75% { transform: translateX(10px) rotate(2deg); }
}

/* ================================
   INSIDE PAGE - PHOTO GALLERY
   ================================ */

.inside-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, 
        #667eea 0%,
        #764ba2 25%,
        #f093fb 60%,
        #f5576c 100%);
    position: relative;
    overflow: hidden;
}

.inside-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
    animation: shimmer 12s ease-in-out infinite;
    pointer-events: none;
}

.inside-container::after {
    content: '💕';
    position: fixed;
    font-size: 40px;
    opacity: 0.15;
    animation: floatHeart 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatHeart {
    0%, 100% {
        top: 10%;
        left: 10%;
        transform: scale(1) rotate(0deg);
    }
    25% {
        top: 80%;
        left: 20%;
        transform: scale(1.3) rotate(90deg);
    }
    50% {
        top: 20%;
        left: 80%;
        transform: scale(0.8) rotate(180deg);
    }
    75% {
        top: 70%;
        left: 70%;
        transform: scale(1.1) rotate(270deg);
    }
}

/* Gallery Header */
.inside-container header {
    text-align: center;
    margin-bottom: 50px;
    z-index: 2;
    animation: fadeInDown 0.8s ease;
}

.inside-container header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 4rem;
    color: white;
    text-shadow: 
        0 4px 25px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 255, 255, 0.3),
        0 2px 10px rgba(255, 107, 157, 0.5);
    margin: 0 0 20px 0;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #ffe4f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.inside-container header p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 400;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    margin: 0;
    letter-spacing: 1.5px;
}

/* Carousel Container */
.carousel-box {
    position: relative;
    width: 90%;
    max-width: 950px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(40px) saturate(180%);
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 35px;
    padding: 40px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.carousel-box::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 182, 193, 0.3) 100%);
    border-radius: 35px;
    z-index: -1;
    opacity: 0.6;
}

.carousel-box::after {
    content: '✨';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    opacity: 0.4;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Image Slide */
.carousel-slide {
    width: 100%;
    height: 550px;
    border-radius: 25px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15), 
        rgba(255, 182, 193, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        inset 0 3px 15px rgba(0, 0, 0, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 30%,
        transparent 70%, 
        rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 23px;
}

#currentImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

#currentImg.loaded {
    opacity: 1;
    transform: scale(1);
}

#currentImg.fade-out {
    opacity: 0;
    transform: scale(0.92);
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 240, 245, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    font-size: 26px;
    color: var(--accent-rose);
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 2px 5px rgba(255, 255, 255, 0.9),
        0 0 0 0 rgba(255, 94, 138, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.nav-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 230, 240, 1) 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 
        0 12px 35px rgba(255, 94, 138, 0.45),
        inset 0 2px 5px rgba(255, 255, 255, 1),
        0 0 0 8px rgba(255, 94, 138, 0.15);
    border-color: rgba(255, 94, 138, 0.5);
}

.nav-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.nav-btn.prev {
    left: -28px;
}

.nav-btn.next {
    right: -28px;
}

/* Caption */
.caption {
    margin-top: 30px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 500;
    line-height: 1.7;
    padding: 18px 25px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 182, 193, 0.2) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.6);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
    padding: 16px 40px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 240, 245, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    color: var(--accent-rose);
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 2px 5px rgba(255, 255, 255, 0.9);
    z-index: 2;
    animation: fadeIn 0.8s ease 0.4s both;
    letter-spacing: 0.5px;
}

.back-link:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 230, 240, 1) 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(255, 94, 138, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 1),
        0 0 0 4px rgba(255, 94, 138, 0.2);
    border-color: rgba(255, 94, 138, 0.5);
}

.back-link:active {
    transform: translateY(-2px) scale(1.02);
}

/* Loading State */
.carousel-slide.loading::after {
    content: '💕';
    position: absolute;
    font-size: 70px;
    animation: pulse 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.6));
}

/* Image Counter */
.image-counter {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 240, 245, 0.95) 100%);
    backdrop-filter: blur(15px);
    padding: 10px 24px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-rose);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.8);
    z-index: 10;
    letter-spacing: 1px;
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet */
@media (max-width: 768px) {
    .card {
        width: 380px;
        padding: 35px;
    }
    
    .main-title {
        font-size: 1.7rem;
    }
    
    .bear-canvas {
        width: 200px;
        height: 220px;
    }
    
    .inside-container {
        padding: 40px 15px;
    }
    
    .inside-container header h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
    
    .inside-container header p {
        font-size: 1.15rem;
    }
    
    .carousel-box {
        width: 95%;
        padding: 25px;
        border-radius: 28px;
    }
    
    .carousel-slide {
        height: 400px;
    }
    
    .nav-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .nav-btn.prev {
        left: -22px;
    }
    
    .nav-btn.next {
        right: -22px;
    }
    
    .caption {
        font-size: 1.05rem;
        padding: 15px 18px;
        margin-top: 25px;
    }
    
    .back-link {
        font-size: 1.05rem;
        padding: 14px 32px;
        margin-top: 40px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .card {
        width: 95%;
        padding: 30px 25px;
        border-radius: 35px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .title-line {
        font-size: 1.5rem;
    }
    
    .hearts-divider {
        gap: 10px;
        font-size: 1.3rem;
    }
    
    .sub-text {
        font-size: 0.9rem;
    }
    
    input {
        font-size: 16px;
        padding: 14px 18px;
        letter-spacing: 4px;
    }
    
    button,
    .unlock-button {
        font-size: 14px;
        padding: 14px;
    }
    
    .hint-text {
        font-size: 0.8rem;
    }
    
    .bear-canvas {
        width: 180px;
        height: 200px;
    }
    
    .inside-container {
        padding: 30px 12px;
    }
    
    .inside-container header h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .inside-container header p {
        font-size: 1rem;
    }
    
    .carousel-box {
        padding: 20px;
        border-radius: 25px;
    }
    
    .carousel-slide {
        height: 320px;
        border-radius: 20px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-width: 2px;
    }
    
    .nav-btn.prev {
        left: -18px;
    }
    
    .nav-btn.next {
        right: -18px;
    }
    
    .caption {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
    
    .back-link {
        font-size: 1rem;
        padding: 12px 28px;
    }
    
    .image-counter {
        font-size: 0.9rem;
        padding: 8px 18px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .card {
        padding: 25px 20px;
    }
    
    .main-title {
        font-size: 1.3rem;
    }
    
    .bear-canvas {
        width: 160px;
        height: 180px;
        margin-bottom: 20px;
    }
    
    .carousel-slide {
        height: 280px;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-out {
    animation: fadeOut 0.5s ease;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ================================
   PRINT STYLES
   ================================ */

@media print {
    body::before,
    .sparkles-container,
    .rain-heart,
    .corner-decoration {
        display: none;
    }
    
    .card,
    .carousel-box {
        box-shadow: none;
        border: 2px solid #ccc;
    }
}