/**
 * Valentine's Day Website - Premium Styles
 * Beautiful, Romantic, Mobile-First Design
 */

/* ===== CSS Variables ===== */
:root {
    --primary: #ff6b9d;
    --primary-dark: #c9184a;
    --primary-light: #ff8fab;
    --accent: #ffb3c6;
    --accent-light: #ffc2d1;
    --bg-start: #fff0f3;
    --bg-mid: #ffc2d1;
    --bg-end: #ffb3c6;
    --text-dark: #590d22;
    --text-light: #800f2f;
    --white: #ffffff;
    --gold: #ffd700;
    --shadow: 0 20px 60px rgba(201, 24, 74, 0.25);
    --shadow-hover: 0 30px 80px rgba(201, 24, 74, 0.35);
    --glow: 0 0 40px rgba(255, 107, 157, 0.6);
    
    /* Shivaratri Theme Vars */
    --shiv-primary: #ff9933;
    --shiv-dark: #e65100;
    --shiv-bg: #fff3e0;
}

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

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== Animated Background ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 24, 74, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 179, 198, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite;
}

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

/* ===== Floating Hearts ===== */
.hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Shivaratri Theme Body Override */
body.shiv-theme .hearts-bg {
    display: none;
}

.shiv-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    animation: floatUp 10s ease-in-out infinite;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(201, 24, 74, 0.3));
    will-change: transform;
}

.floating-shiv {
    position: absolute;
    animation: floatUp 10s ease-in-out infinite;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.5));
    will-change: transform;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(-100px) rotate(720deg) scale(1);
        opacity: 0;
    }
}

/* ===== Sparkles ===== */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold);
}

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

/* ===== Container ===== */
.container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* ===== Glass Card ===== */
.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 45px 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
    animation: cardFloat 6s ease-in-out infinite, slideUp 0.8s ease-out;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card.clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.clickable:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card.clickable:active {
    transform: scale(0.98);
}

.share-card {
    max-width: 500px;
}

/* ===== Card Decorations ===== */
.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.deco-heart {
    position: absolute;
    font-size: 24px;
    opacity: 0.15;
    animation: decoFloat 4s ease-in-out infinite;
}

.deco-1 { top: 10%; left: 5%; animation-delay: 0s; }
.deco-2 { top: 15%; right: 8%; animation-delay: 1s; }
.deco-3 { bottom: 15%; left: 10%; animation-delay: 2s; }
.deco-4 { bottom: 10%; right: 5%; animation-delay: 1.5s; }

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

/* ===== Logo Section ===== */
.logo-section {
    margin-bottom: 35px;
    position: relative;
}

.heart-icon-container {
    position: relative;
    display: inline-block;
}

.heart-icon {
    font-size: 75px;
    animation: heartbeat 1.2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 10px 25px rgba(255, 107, 157, 0.5));
    position: relative;
    z-index: 2;
}

.heart-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

.title {
    font-family: 'Pacifico', cursive;
    font-size: 2.6rem;
    margin: 20px 0 12px;
    letter-spacing: 1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #a61041 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 400;
    opacity: 0.9;
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

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

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 18px 50px 18px 22px;
    border: 2px solid var(--accent);
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.2), var(--glow);
    background: white;
}

.input-wrapper input::placeholder {
    color: #bbb;
}

.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    pointer-events: none;
    opacity: 0.7;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 12px 35px rgba(201, 24, 74, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(201, 24, 74, 0.5);
}

.btn-glow {
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 12px 35px rgba(201, 24, 74, 0.4); }
    50% { box-shadow: 0 12px 50px rgba(201, 24, 74, 0.6), 0 0 30px rgba(255, 107, 157, 0.3); }
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.btn-full {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-white {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

/* ===== Link Container ===== */
.link-container {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.link-container input {
    flex: 1;
    min-width: 200px;
    padding: 16px 18px;
    border: 2px solid var(--accent);
    border-radius: 14px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.link-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
}

.btn-copy {
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 1rem;
    min-width: 110px;
}

.btn-copy:hover {
    transform: scale(1.05);
}

.btn-copy.copied {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

/* ===== Preview Card ===== */
.preview-card {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-emoji {
    font-size: 2.5rem;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.preview-text {
    font-size: 1rem;
    color: var(--text-dark);
}

/* ===== Share Section ===== */
.share-section {
    margin: 25px 0;
}

.share-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-share {
    flex: 1;
    min-width: 100px;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 14px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.btn-twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
    color: white;
}

.btn-facebook {
    background: linear-gradient(135deg, #4267B2 0%, #2d4a8a 100%);
    color: white;
}

.btn-share:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ===== Timer ===== */
.timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(201, 24, 74, 0.1) 100%);
    border-radius: 14px;
    color: var(--primary-dark);
    font-size: 1rem;
    margin: 20px 0;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.timer-icon {
    font-size: 1.3rem;
    animation: pulse 1s ease-in-out infinite;
}

/* ===== Success Animation ===== */
.success-animation {
    position: relative;
    margin-bottom: 20px;
}

.success-icon {
    font-size: 80px;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 2;
}

.success-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: ringPulse 2s ease-out infinite;
}

.ring-1 { width: 80px; height: 80px; animation-delay: 0s; }
.ring-2 { width: 120px; height: 120px; animation-delay: 0.4s; }
.ring-3 { width: 160px; height: 160px; animation-delay: 0.8s; }

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

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #a61041 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 12px 45px rgba(201, 24, 74, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1rem;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Error Icon ===== */
.error-icon {
    font-size: 85px;
    margin-bottom: 20px;
    animation: wobble 1.5s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
}

/* ===== Footer ===== */
.footer-text {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--accent);
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-hearts {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 240, 243, 0.98) 0%, rgba(255, 194, 209, 0.98) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    position: relative;
}

.loading-heart {
    font-size: 80px;
    animation: loadingBounce 0.8s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

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

.loading-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-overlay p {
    margin-top: 30px;
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 500;
}

.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ===== Screen System ===== */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    z-index: 10;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

.screen.hide {
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
}

/* ===== Intro Screen ===== */
.envelope-container {
    position: relative;
    margin-bottom: 25px;
}

.envelope {
    font-size: 90px;
    animation: envelopeWiggle 2.5s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 10px 25px rgba(201, 24, 74, 0.3));
}

@keyframes envelopeWiggle {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(-5deg) scale(1); }
    75% { transform: rotate(8deg) scale(1.02); }
}

.envelope-hearts {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.envelope-hearts span {
    font-size: 1.2rem;
    animation: heartPop 1s ease-in-out infinite;
    opacity: 0.8;
}

.envelope-hearts span:nth-child(1) { animation-delay: 0s; }
.envelope-hearts span:nth-child(2) { animation-delay: 0.2s; }
.envelope-hearts span:nth-child(3) { animation-delay: 0.4s; }

@keyframes heartPop {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.2); }
}

.intro-greeting {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.highlight-name {
    color: var(--primary-dark);
    font-weight: 700;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.creator-name {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 8px;
}

.hint-text {
    margin-top: 30px;
    color: var(--primary);
    animation: hintPulse 2s ease-in-out infinite;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tap-icon {
    animation: tapBounce 1s ease-in-out infinite;
}

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

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

/* ===== Question Screen ===== */
#questionScreen {
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
}

.question-content {
    text-align: center;
    max-width: 600px;
    padding: 25px;
}

.question-header {
    margin-bottom: 20px;
}

.small-text {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.9;
}

.big-question {
    font-family: 'Pacifico', cursive;
    font-size: 2.8rem;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 3px 3px 8px rgba(201, 24, 74, 0.15);
}

.big-question .highlight {
    font-size: 3.8rem;
    display: block;
    margin-top: 8px;
}

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

.hearts-deco {
    font-size: 2.2rem;
    margin-bottom: 25px;
    animation: heartsFloat 3s ease-in-out infinite;
}

.hearts-deco span {
    display: inline-block;
    animation: heartBob 1.5s ease-in-out infinite;
}

.hearts-deco span:nth-child(1) { animation-delay: 0s; }
.hearts-deco span:nth-child(2) { animation-delay: 0.3s; }
.hearts-deco span:nth-child(3) { animation-delay: 0.6s; }

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

.from-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 35px;
    opacity: 0.9;
}

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

.btn-yes {
    padding: 24px 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 1.6rem;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(201, 24, 74, 0.5);
    animation: yesGlow 2.5s ease-in-out infinite;
}

@keyframes yesGlow {
    0%, 100% { box-shadow: 0 15px 40px rgba(201, 24, 74, 0.5); }
    50% { box-shadow: 0 15px 60px rgba(201, 24, 74, 0.7), 0 0 40px rgba(255, 107, 157, 0.4); }
}

.btn-yes:hover {
    transform: scale(1.12) translateY(-5px);
    box-shadow: 0 20px 55px rgba(201, 24, 74, 0.6);
}

.btn-no {
    padding: 24px 60px;
    background: linear-gradient(135deg, #8e9aaf 0%, #6c757d 100%);
    color: white;
    font-size: 1.6rem;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-emoji {
    font-size: 1.5rem;
}

/* ===== Tease Message ===== */
.tease-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px 50px;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2000;
    text-align: center;
    border: 2px solid var(--accent);
    max-width: 90%;
}

.tease-message.show {
    opacity: 1;
    visibility: visible;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); }
    60% { transform: translate(-50%, -50%) scale(1.1) rotate(5deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

/* ===== Success Screen ===== */
#successScreen {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #a61041 100%);
    overflow: hidden;
}

.success-content {
    text-align: center;
    color: white;
    z-index: 10;
    position: relative;
    padding: 25px;
}

.success-emoji-burst {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: emojiBurst 1s ease-out;
}

.success-emoji-burst span {
    display: inline-block;
    animation: emojiFloat 2s ease-in-out infinite;
}

.success-emoji-burst span:nth-child(1) { animation-delay: 0s; }
.success-emoji-burst span:nth-child(2) { animation-delay: 0.2s; }
.success-emoji-burst span:nth-child(3) { animation-delay: 0.4s; }

@keyframes emojiBurst {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); opacity: 1; }
}

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

.success-title {
    font-family: 'Pacifico', cursive;
    font-size: 3.8rem;
    margin-bottom: 20px;
    animation: bounceIn 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25);
}

.couple-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.4rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.name-1, .name-2 {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.heart-between {
    font-size: 2.5rem;
    animation: heartbeat 1.2s ease-in-out infinite;
}

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

.muah-text {
    font-size: 2.4rem;
    margin-bottom: 20px;
    animation: shake 0.6s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-8px) rotate(-3deg); }
    75% { transform: translateX(8px) rotate(3deg); }
}

.emoji-party {
    font-size: 3rem;
    margin: 25px 0;
    animation: partyFloat 2.5s ease-in-out infinite;
}

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

.love-msg {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.happy-text {
    font-family: 'Pacifico', cursive;
    font-size: 2.6rem;
    margin-bottom: 30px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2); }
    50% { text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.3); }
}

/* ===== Confetti ===== */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 14px;
    height: 28px;
    top: -35px;
    border-radius: 3px;
    animation: confettiFall 4s linear forwards;
}

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

/* ===== Hearts Rain ===== */
.hearts-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

.rain-heart {
    position: absolute;
    top: -70px;
    animation: heartFall 6s linear forwards;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
}

@keyframes heartFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.7);
        opacity: 0;
    }
}

/* ===== Cursor Trail ===== */
.trail-heart {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 20px;
    animation: trailFade 1s ease-out forwards;
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translateY(-40px);
    }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .card {
        padding: 35px 28px;
        border-radius: 28px;
        margin: 10px;
    }
    
    .title {
        font-size: 2.1rem;
    }
    
    .heart-icon {
        font-size: 60px;
    }
    
    .big-question {
        font-size: 2.2rem;
    }
    
    .big-question .highlight {
        font-size: 2.8rem;
    }
    
    .btn-yes, .btn-no {
        padding: 20px 45px;
        font-size: 1.4rem;
    }
    
    .success-title {
        font-size: 2.8rem;
    }
    
    .happy-text {
        font-size: 1.9rem;
    }
    
    .muah-text {
        font-size: 1.8rem;
    }
    
    .couple-names {
        flex-direction: column;
        gap: 10px;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .link-container input {
        min-width: 100%;
    }
    
    .btn-copy {
        width: 100%;
    }
    
    .buttons-container {
        flex-direction: column;
        gap: 18px;
    }
    
    .btn-yes, .btn-no {
        width: 100%;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .btn-share {
        width: 100%;
    }
    
    .envelope {
        font-size: 70px;
    }
    
    .creator-name {
        font-size: 1.7rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    .intro-greeting {
        font-size: 1.4rem;
    }
    
    .tease-message {
        padding: 20px 30px;
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .card {
        padding: 28px 22px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .big-question {
        font-size: 1.9rem;
    }
    
    .big-question .highlight {
        font-size: 2.4rem;
    }
    
    .success-title {
        font-size: 2.4rem;
    }
    
    .emoji-party {
        font-size: 2.2rem;
    }
    
    .btn-yes, .btn-no {
        padding: 18px 30px;
        font-size: 1.2rem;
    }
}

@media (max-width: 350px) {
    .card {
        padding: 20px 15px;
    }
    .title {
        font-size: 1.5rem;
    }
}

/* ===== Animation Utilities ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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