* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gold-gradient: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    
    --card-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 50px 100px -20px rgba(50, 50, 93, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.4);
    
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0f0c29;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float-orb 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #667eea, transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f093fb, transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #4facfe, transparent);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

/* Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Container */
.container {
    display: flex;
    width: 95%;
    max-width: 1600px;
    height: 92vh;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Sidebar */
.sidebar {
    width: 400px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(10px);
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.logo-icon i {
    font-size: 28px;
    color: white;
    z-index: 2;
    animation: rotate-gem 4s infinite linear;
}

@keyframes rotate-gem {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.logo-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.logo-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Menu Section */
.menu-section {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInLeft 0.6s ease-out backwards;
}

.menu-section:nth-child(2) { animation-delay: 0.1s; }
.menu-section:nth-child(3) { animation-delay: 0.2s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-title i {
    font-size: 18px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Theme Options */
.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.theme-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
}

.theme-option:hover .theme-glow {
    transform: translate(-50%, -50%) scale(1.5);
}

.theme-option:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.theme-option.active {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    transform: translateY(-3px);
}

.theme-icon {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    animation: bounce-icon 2s infinite ease-in-out;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.theme-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 2;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    font-size: 14px;
    opacity: 0.7;
}

.form-control {
    width: 100%;
    padding: 15px 18px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-focus-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.form-control:focus ~ .input-focus-effect {
    width: 100%;
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.4s ease;
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
}

.upload-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.upload-icon i {
    font-size: 48px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: float-upload 3s infinite ease-in-out;
}

@keyframes float-upload {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

.upload-text {
    font-size: 15px;
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.image-preview {
    margin-top: 15px;
    position: relative;
}

.preview-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-shine {
    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 .btn-shine {
    left: 100%;
}

.btn-icon {
    animation: rotate-icon 2s infinite ease-in-out;
}

@keyframes rotate-icon {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

/* Preview Area */
.preview-area {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: auto;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.preview-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.preview-title {
    font-size: 32px;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-title i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse-eye 2s infinite;
}

@keyframes pulse-eye {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.preview-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 47px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-btn {
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.share-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

.download-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 172, 254, 0.5);
}

/* Card Scene - FIXED LAYOUT */
.card-scene {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
    padding: 20px;
    min-height: 600px;
}

.card-stage {
    width: 100%;
    max-width: 550px;
    height: 750px;
    position: relative;
    transform-style: preserve-3d;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: card-entrance 1s ease-out;
}

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: rotateY(-90deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

.card:hover {
    transform: scale(1.02) rotateY(5deg);
}

.card.flipped {
    transform: rotateY(180deg);
}

.card.flipped:hover {
    transform: rotateY(180deg) scale(1.02) rotateY(185deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
}

.card:hover .card-face {
    box-shadow: var(--card-shadow-hover);
}

.card-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: rotateY(180deg);
}

/* Card Background Effects */
.card-bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.15) 0%, transparent 50%);
    animation: pattern-move 20s infinite ease-in-out;
}

@keyframes pattern-move {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.card-light-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: light-rotate 15s linear infinite;
}

@keyframes light-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.corner-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
    border-radius: 15px 0 0 0;
    animation: corner-glow 3s infinite ease-in-out;
}

.corner-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 15px 0 0;
    animation: corner-glow 3s infinite ease-in-out 0.5s;
}

.corner-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 15px;
    animation: corner-glow 3s infinite ease-in-out 1s;
}

.corner-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 15px 0;
    animation: corner-glow 3s infinite ease-in-out 1.5s;
}

@keyframes corner-glow {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: none;
    }
    50% {
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    text-align: center;
}

/* Image Wrapper - FIXED STATIC IMAGE */
.card-image-wrapper {
    position: relative;
    margin-bottom: 40px;
    animation: image-entrance 1s ease-out 0.3s backwards;
}

@keyframes image-entrance {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4), transparent);
    transform: translate(-50%, -50%);
    animation: glow-pulse 3s infinite ease-in-out;
    border-radius: 50%;
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

.image-border {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    /* Removed rotating animation */
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Removed zoom animation - static image */
}

/* Image Sparkles */
.image-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Text Content */
.card-text-content {
    animation: text-entrance 1s ease-out 0.5s backwards;
}

@keyframes text-entrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: title-float 3s infinite ease-in-out;
}

@keyframes title-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, white, transparent);
    margin: 0 auto 25px;
    border-radius: 2px;
    animation: underline-expand 2s infinite ease-in-out;
}

@keyframes underline-expand {
    0%, 100% { width: 100px; opacity: 0.6; }
    50% { width: 150px; opacity: 1; }
}

.card-message {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

.card-sender {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 600;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-sender i {
    animation: heartbeat 1.5s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.2); }
    20%, 40% { transform: scale(1); }
}

/* Back Icon */
.back-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: back-icon-spin 4s infinite ease-in-out;
}

@keyframes back-icon-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.1); }
}

/* Enhanced Flip Notice */
.flip-notice {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 14px;
    color: white;
    font-weight: 600;
    z-index: 10;
    animation: flip-notice-bounce 2s infinite ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes flip-notice-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.flip-notice i {
    animation: flip-icon-pulse 1.5s infinite ease-in-out;
}

@keyframes flip-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Decorations Container */
.decorations-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.decoration {
    position: absolute;
    pointer-events: none;
}

/* Confetti */
.confetti {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confetti-fall 4s linear infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(800px) rotate(720deg);
        opacity: 0;
    }
}

/* Balloons */
.balloon {
    width: 50px;
    height: 60px;
    border-radius: 50%;
    animation: balloon-float 6s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: rgba(255, 255, 255, 0.5);
}

@keyframes balloon-float {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Sparkles */
.sparkle {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    animation: sparkle-twinkle 1.5s infinite ease-in-out;
}

@keyframes sparkle-twinkle {
    0%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Hearts */
.heart {
    font-size: 24px;
    color: #ff69b4;
    filter: drop-shadow(0 0 8px #ff69b4);
    animation: heart-rise 8s ease-in-out infinite;
}

@keyframes heart-rise {
    0% {
        transform: translateY(0) scale(0.8) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-800px) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* Theme-Specific Styles */
.birthday-theme {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffdde1 100%);
}

.diwali-theme {
    background: linear-gradient(135deg, #ffd89b 0%, #ff6b6b 50%, #feca57 100%);
}

.christmas-theme {
    background: linear-gradient(135deg, #c94b4b 0%, #4b134f 50%, #ee5a6f 100%);
}

.anniversary-theme {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #ffd89b 100%);
}

.wedding-theme {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ffecd2 100%);
}

.valentine-theme {
    background: linear-gradient(135deg, #ff6b9d 0%, #c06c84 50%, #f67280 100%);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 40px;
    width: 90%;
    max-width: 550px;
    position: relative;
    transform: scale(0.9) translateY(50px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: modal-icon-bounce 2s infinite ease-in-out;
}

@keyframes modal-icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Download Options */
.download-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-option:hover::before {
    opacity: 0.1;
}

.download-option:hover {
    transform: translateX(5px);
    border-color: rgba(102, 126, 234, 0.5);
}

.download-option.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.option-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    position: relative;
    z-index: 2;
}

.download-option.active .option-icon {
    background: var(--primary-gradient);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.option-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.option-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 3px;
}

.option-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.option-check {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.download-option.active .option-check {
    background: white;
    border-color: white;
    color: #667eea;
}

/* Quality Select */
.download-quality {
    margin-bottom: 25px;
}

.download-quality label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quality-select {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quality-select:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.quality-select option {
    background: #1a1a2e;
    color: white;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 22px;
    animation: toast-icon-pop 0.5s ease-out;
}

@keyframes toast-icon-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.toast.error {
    background: linear-gradient(135deg, #f5576c, #f093fb);
}

.toast.warning {
    background: linear-gradient(135deg, #ffd89b, #ff6b6b);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .card-stage {
        max-width: 480px;
        height: 650px;
    }
}

@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        height: auto;
        max-height: none;
    }
    
    .sidebar {
        width: 100%;
        max-height: 400px;
        overflow-y: auto;
    }
    
    .theme-options {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .preview-area {
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 20px;
    }
    
    .sidebar {
        padding: 20px;
    }
    
    .theme-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .preview-area {
        padding: 20px;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .action-buttons {
        width: 100%;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
    
    .card-stage {
        max-width: 400px;
        height: 550px;
    }
    
    .card-title {
        font-size: 36px;
    }
    
    .card-message {
        font-size: 16px;
    }
    
    .modal-content {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .theme-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .preview-title {
        font-size: 24px;
    }
    
    .card-stage {
        height: 500px;
    }
    
    .image-border {
        width: 180px;
        height: 180px;
    }
    
    .card-title {
        font-size: 28px;
    }
    
    .card-message {
        font-size: 14px;
    }
}