/* ========================================
   Promise Day - Romantic Styles (Light Theme)
   ======================================== */

/* CSS Variables */
:root {
    --primary-pink: #ff6b9d;
    --secondary-pink: #ffc0cb;
    --deep-rose: #e91e63;
    --light-pink: #fff0f5;
    --gold: #ffd700;
    --white: #ffffff;
    --dark: #333333;
    --text-dark: #4a4a4a;
    --gradient-romantic: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 50%, #ffc0cb 100%);
    --gradient-light: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 50%, #ffd6e0 100%);
    --shadow-soft: 0 10px 40px rgba(255, 107, 157, 0.3);
    --shadow-hover: 0 15px 50px rgba(255, 107, 157, 0.5);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================
   Section Styles
   ======================================== */

.section {
    min-height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.section.active {
    display: flex;
}

/* ========================================
   Landing Section
   ======================================== */

#landing {
    background: var(--gradient-light);
    text-align: center;
    overflow: hidden;
}

.landing-content {
    z-index: 10;
}

/* Cute Floating Decorations */
.cute-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.cute-item {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.4;
    animation: floatCute 8s ease-in-out infinite;
}

.cute-1 { top: 10%; left: 5%; animation-delay: 0s; }
.cute-2 { top: 20%; right: 8%; animation-delay: 1s; }
.cute-3 { bottom: 25%; left: 8%; animation-delay: 2s; }
.cute-4 { top: 40%; left: 3%; animation-delay: 3s; font-size: 3rem; }
.cute-5 { bottom: 15%; right: 5%; animation-delay: 4s; }
.cute-6 { top: 8%; left: 50%; animation-delay: 5s; }

@keyframes floatCute {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-25px) rotate(3deg); }
}

.heart-beat {
    font-size: 80px;
    animation: heartBeat 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--deep-rose);
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
    margin-bottom: 10px;
}

.subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-pink);
    margin-bottom: 20px;
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-dark);
    max-width: 500px;
    margin: 0 auto 40px;
}

/* Women Counter - Landing Page (Chat Bubble Style) */
.women-counter {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px 35px;
    border-radius: 25px;
    margin: 30px auto;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.15);
    position: relative;
}

/* Chat bubble tail */
.women-counter::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid rgba(255, 255, 255, 0.25);
}

.counter-label {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 5px 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.counter-number {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--deep-rose);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    padding: 10px 0;
    text-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

.counter-punchline {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 15px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.highlight-you {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--deep-rose);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

/* Women Added - Celebration Page (Chat Bubble Style) */
.women-added-section {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 25px;
    margin: 30px auto;
    max-width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.2);
    position: relative;
}

/* Chat bubble tail */
.women-added-section::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid rgba(255, 255, 255, 0.3);
}

.added-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.added-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.added-counter span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-rose);
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

.added-text {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.added-punchline {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 20px;
    font-weight: 500;
}

.highlight-one {
    font-weight: 700;
    color: var(--deep-rose);
    font-size: 1.3rem;
}

.added-you {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--deep-rose);
    margin-top: 10px;
    animation: pulseText 1.5s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

@keyframes pulseText {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Fade In Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

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

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    background: var(--gradient-romantic);
    color: var(--white);
    border: none;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.btn-secondary:hover {
    background: var(--primary-pink);
    color: var(--white);
    transform: translateY(-3px);
}

/* ========================================
   Quote Section
   ======================================== */

#quotes {
    background: var(--gradient-light);
}

.quotes-container {
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--deep-rose);
    margin-bottom: 40px;
}

.quote-carousel {
    position: relative;
    min-height: 200px;
    margin-bottom: 30px;
}

.quote-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

.quote-card.active {
    opacity: 1;
    transform: translateX(0);
}

.quote-card.exit {
    opacity: 0;
    transform: translateX(-100px);
}

.quote-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--deep-rose);
    font-style: italic;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.15);
}

.quote-footer {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 20px;
}

.quote-footer strong {
    color: var(--deep-rose);
}

/* ========================================
   Questions Section
   ======================================== */

#questions {
    background: var(--gradient-light);
}

.question-container {
    text-align: center;
    max-width: 700px;
    width: 100%;
    padding: 40px 20px;
    position: relative;
}

.question-wrapper {
    background: rgba(255, 255, 255, 0.9);
    padding: 50px 40px;
    border-radius: 30px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.15);
}

.question-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--deep-rose);
    margin-bottom: 40px;
    line-height: 1.4;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-yes {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.btn-yes:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.6);
}

.btn-no {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.1s ease-out;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    position: relative;
}

.btn-no.runaway {
    position: fixed;
    z-index: 1000;
}

/* Chat Bubble for Runaway Button */
.chat-bubble {
    position: fixed;
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-bubble.visible {
    opacity: 1;
}

.chat-bubble-content {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    border-bottom-right-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    max-width: 200px;
    position: relative;
}

.chat-bubble-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: white;
    border-bottom-color: white;
}

.chat-bubble-text {
    color: var(--deep-rose);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.chat-bubble-emoji {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
}

/* Hide the old cartoon face dialog */
.cartoon-face {
    display: none !important;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 107, 157, 0.2);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-romantic);
    width: 0%;
    transition: width 0.5s ease;
}

/* ========================================
   Final Section
   ======================================== */

#final {
    background: var(--gradient-light);
}

.final-container {
    text-align: center;
    max-width: 600px;
    padding: 40px 20px;
}

.proposal-text {
    margin-bottom: 50px;
}

.final-line {
    font-family: 'Dancing Script', cursive;
    opacity: 0;
    transform: translateY(30px);
}

.final-line.visible {
    animation: fadeInUp 1s ease forwards;
}

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

.line-1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary-pink);
    margin-bottom: 15px;
}

.line-2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 20px;
}

.line-3 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--deep-rose);
    text-shadow: 0 0 40px rgba(255, 107, 157, 0.4);
}

.final-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-final-yes {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: var(--dark);
    border: none;
    padding: 20px 60px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 10px 60px rgba(255, 215, 0, 0.8); }
}

.btn-final-yes:hover {
    transform: translateY(-5px) scale(1.1);
}

.btn-final-no {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.3);
    padding: 20px 60px;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.1s ease-out;
}

/* ========================================
   Celebration Section
   ======================================== */

#celebration {
    background: var(--gradient-light);
    overflow: hidden;
    position: relative;
}

/* Celebration Decorations */
.celebration-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.celeb-item {
    position: absolute;
    font-size: 3rem;
    opacity: 0.5;
    animation: celebFloat 6s ease-in-out infinite;
}

.celeb-1 { top: 10%; left: 5%; animation-delay: 0s; font-size: 4rem; }
.celeb-2 { top: 15%; right: 10%; animation-delay: 1s; }
.celeb-3 { bottom: 20%; left: 8%; animation-delay: 2s; }
.celeb-4 { top: 50%; right: 5%; animation-delay: 3s; }
.celeb-5 { bottom: 30%; right: 15%; animation-delay: 4s; }
.celeb-6 { bottom: 10%; left: 15%; animation-delay: 5s; }

@keyframes celebFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.celebration-container {
    text-align: center;
    padding: 40px 20px;
    z-index: 10;
    position: relative;
}

.yippi-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(4rem, 12vw, 8rem);
    color: var(--deep-rose);
    text-shadow: 0 0 50px rgba(255, 107, 157, 0.5);
    animation: bounce 0.6s ease infinite;
    margin-bottom: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.celebration-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 30px;
}

.ring-animation {
    font-size: 100px;
    animation: ringFloat 2s ease-in-out infinite;
    margin-bottom: 30px;
}

@keyframes ringFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

.celebration-message {
    font-size: 1.2rem;
    color: var(--primary-pink);
    max-width: 500px;
    margin: 0 auto 20px;
}

.celebration-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--deep-rose);
}

/* Love Meter */
.love-meter {
    max-width: 300px;
    margin: 30px auto;
    text-align: center;
}

.meter-label {
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.meter-bar {
    height: 20px;
    background: rgba(255, 107, 157, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    width: 100%;
    background: var(--gradient-romantic);
    border-radius: 10px;
    animation: fillMeter 2s ease-out forwards, pulseMeter 1.5s ease-in-out infinite 2s;
}

@keyframes fillMeter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes pulseMeter {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.meter-text {
    display: block;
    margin-top: 10px;
    color: var(--deep-rose);
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-restart {
    background: transparent;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 40px;
    transition: all 0.3s;
}

.btn-restart:hover {
    background: var(--primary-pink);
    color: var(--white);
}

/* ========================================
   Floating Hearts Background
   ======================================== */

#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp linear infinite;
    opacity: 0.7;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   Music & Message Buttons
   ======================================== */

.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 107, 157, 0.3);
    color: var(--primary-pink);
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.2);
}

.music-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.music-btn.muted .music-icon::after {
    content: '🔇';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.message-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-romantic);
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 0 5px 25px rgba(255, 107, 157, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.message-float-btn:hover {
    transform: scale(1.15);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 5px 25px rgba(255, 107, 157, 0.5); }
    50% { box-shadow: 0 5px 40px rgba(255, 107, 157, 0.8); }
}

/* Music Overlay for Mobile */
.music-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 240, 245, 0.98);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

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

.music-overlay-content {
    text-align: center;
    padding: 40px 30px;
    max-width: 350px;
    position: relative;
}

.music-overlay-emoji {
    font-size: 4rem;
    animation: bounce 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.music-overlay-content h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--deep-rose);
    margin-bottom: 15px;
}

.music-overlay-content p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.volume-hint {
    background: linear-gradient(135deg, #fff0f5, #ffe4ec);
    padding: 15px 20px;
    border-radius: 15px;
    font-weight: 600;
    color: var(--deep-rose) !important;
    margin: 20px 0 !important;
    border: 2px dashed var(--primary-pink);
}

.tap-hint {
    font-size: 0.95rem !important;
    color: var(--primary-pink) !important;
}

.arrow-pointer {
    position: fixed;
    top: 80px;
    right: 90px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pointToMusic 1s ease-in-out infinite;
}

.hand-icon {
    font-size: 2.5rem;
    transform: rotate(-45deg);
}

.arrow-line {
    width: 40px;
    height: 3px;
    background: var(--primary-pink);
    border-radius: 2px;
    position: relative;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -4px;
    border: 6px solid transparent;
    border-left-color: var(--primary-pink);
}

@keyframes pointToMusic {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.btn-got-it {
    background: var(--gradient-romantic);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s;
    box-shadow: 0 5px 25px rgba(255, 107, 157, 0.4);
}

.btn-got-it:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.6);
}

/* Highlight music button when overlay is shown */
.music-btn.highlight {
    animation: pulseHighlight 0.8s ease-in-out infinite;
    transform: scale(1.2);
}

@keyframes pulseHighlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(255, 107, 157, 0); }
}

/* Message Popup Notification */
.message-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: white;
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.4);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    border: 2px solid var(--secondary-pink);
}

.message-popup.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.popup-emoji {
    font-size: 1.5rem;
    animation: bounce 1s ease-in-out infinite;
}

.popup-content p {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.popup-arrow {
    font-size: 1.2rem;
    color: var(--primary-pink);
    animation: pointRight 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pointRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Decorative Teddies */
.teddy-decoration {
    position: fixed;
    font-size: 4rem;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    animation: teddyFloat 6s ease-in-out infinite;
}

.teddy-left {
    bottom: 10%;
    left: 3%;
    animation-delay: 0s;
}

.teddy-right {
    top: 15%;
    right: 3%;
    animation-delay: 3s;
    transform: scaleX(-1);
}

@keyframes teddyFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* Sparkle Container */
.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: sparkleAnim 3s ease-in-out infinite;
}

@keyframes sparkleAnim {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
    100% { opacity: 0; transform: scale(0) rotate(360deg); }
}

/* Cute decorative borders on cards */
.quote-card::before {
    content: '✨';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
}

.question-wrapper::before,
.question-wrapper::after {
    content: '💕';
    position: absolute;
    font-size: 2rem;
    opacity: 0.5;
}

.question-wrapper::before {
    top: -40px;
    left: 10%;
    animation: float 3s ease-in-out infinite;
}

.question-wrapper::after {
    top: -40px;
    right: 10%;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Cute ribbon effect on buttons */
.btn-primary::before {
    content: '🎀';
    position: absolute;
    top: -12px;
    right: -8px;
    font-size: 1.2rem;
}

.btn-primary {
    position: relative;
}

/* ========================================
   Modal Styles
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 2px solid rgba(255, 107, 157, 0.2);
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 28px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

/* Message Modal */
.message-modal-content {
    text-align: center;
}

.message-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.message-header h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--deep-rose);
}

.stars {
    font-size: 1.5rem;
    animation: twinkle 1.5s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.message-subtitle {
    color: var(--text-dark);
    margin-bottom: 25px;
}

#secret-message {
    width: 100%;
    height: 150px;
    background: var(--light-pink);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 15px;
    padding: 15px;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

#secret-message:focus {
    border-color: var(--primary-pink);
}

#secret-message::placeholder {
    color: rgba(100, 100, 100, 0.5);
}

.char-count {
    text-align: right;
    color: var(--text-dark);
    opacity: 0.5;
    font-size: 0.85rem;
    margin-top: 5px;
    margin-bottom: 20px;
}

.btn-send {
    background: var(--gradient-romantic);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-send:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.message-success {
    margin-top: 20px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    color: #4CAF50;
    animation: fadeIn 0.5s ease;
}

.message-success.hidden {
    display: none;
}

/* ========================================
   Confetti Canvas
   ======================================== */

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1500;
}

/* ========================================
   Balloon Container
   ======================================== */

#balloon-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1400;
    overflow: hidden;
}

.balloon {
    position: absolute;
    bottom: -150px;
    animation: floatBalloon 4s ease-out forwards;
}

.balloon-body {
    width: 60px;
    height: 75px;
    background: var(--primary-pink);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
}

.balloon-body::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--primary-pink);
}

.balloon-string {
    width: 2px;
    height: 100px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

@keyframes floatBalloon {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) rotate(15deg);
        opacity: 0;
    }
}

/* ========================================
   Admin Panel Styles (Keep Dark for Admin)
   ======================================== */

.admin-body {
    background: #1a1a2e;
    min-height: 100vh;
    color: white;
}

.admin-section {
    min-height: 100vh;
    padding: 20px;
}

.admin-section.hidden {
    display: none;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 25px;
    border: 1px solid rgba(255, 107, 157, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-title {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.admin-body .input-group input,
.admin-body .input-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.admin-body .input-group input:focus,
.admin-body .input-group textarea:focus {
    border-color: var(--primary-pink);
}

.admin-body .input-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-login {
    background: var(--gradient-romantic);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.error-text {
    color: #ff6b6b;
    margin-top: 15px;
    font-size: 0.9rem;
}

.error-text.hidden {
    display: none;
}

/* Dashboard */
.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.dashboard-header h1 {
    color: var(--primary-pink);
    font-size: 1.8rem;
}

.btn-logout {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.stat-card.completion-card {
    background: rgba(255, 107, 157, 0.1);
    border-color: var(--primary-pink);
}

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

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-pink);
}

.stat-value.stat-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.btn-reset-stat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    font-size: 1rem;
    transition: opacity 0.3s, transform 0.3s;
}

.btn-reset-stat:hover {
    opacity: 1;
    transform: rotate(180deg);
}

/* Tabs */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: var(--gradient-romantic);
    color: white;
    border-color: transparent;
}

.badge {
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.badge.hidden {
    display: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.tab-header h2 {
    color: white;
    font-size: 1.4rem;
}

.btn-add, .btn-refresh {
    background: var(--gradient-romantic);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-add:hover, .btn-refresh:hover {
    transform: translateY(-2px);
}

/* Questions List */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 157, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.question-item-content {
    flex: 1;
}

.question-item-order {
    color: var(--primary-pink);
    font-weight: 600;
    margin-right: 15px;
}

.question-item-text {
    color: rgba(255, 255, 255, 0.9);
}

.question-item-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete-small {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-edit:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-delete-small:hover {
    background: rgba(255, 107, 107, 0.2);
}

/* Messages List */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Quotes List */
.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quote-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 157, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.quote-item-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.quote-item-order {
    background: var(--gradient-romantic);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.quote-item-text {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.5;
}

.quote-item-actions {
    display: flex;
    gap: 10px;
}

.tab-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 5px;
}

.messages-section-title {
    color: var(--primary-pink);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.message-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 157, 0.2);
    margin-bottom: 15px;
}

.message-item.user-message {
    background: rgba(255, 107, 157, 0.1);
    border-color: var(--primary-pink);
}

.message-item.completion-message {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
}

.message-item.unread {
    border-left: 3px solid var(--primary-pink);
}

.message-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-item-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.message-item-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.no-messages {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-messages.hidden {
    display: none;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-save {
    background: var(--gradient-romantic);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    transform: translateY(-2px);
}

.btn-delete {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
}

.modal-small {
    max-width: 400px;
    text-align: center;
}

.modal-small h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.modal-small p {
    color: var(--text-dark);
    opacity: 0.7;
}

/* Admin modal overrides */
.admin-body .modal-content {
    background: linear-gradient(135deg, #2c1e2e 0%, #1a1a2e 100%);
    border: 1px solid rgba(255, 107, 157, 0.3);
}

.admin-body .modal-close {
    color: white;
}

.admin-body .modal-small h3,
.admin-body .modal-small p {
    color: white;
}

.admin-body .btn-cancel {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

.admin-body .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .buttons-container {
        flex-direction: column;
        gap: 20px;
    }

    .btn-yes, .btn-no {
        width: 100%;
        max-width: 300px;
    }

    .final-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .btn-final-yes, .btn-final-no {
        width: 100%;
        max-width: 300px;
    }

    .question-wrapper {
        padding: 30px 20px;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 10px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .tab-nav {
        flex-direction: column;
    }

    .tab-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .question-item {
        flex-direction: column;
        text-align: center;
    }

    .question-item-actions {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .message-float-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .music-btn {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}
