/* Love Letter - Complete CSS with Payment Integration */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #f0f8ff 100%);
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #ff6b9d;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: #48bb78;
    color: white;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    color: #718096;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: #ff6b9d;
    font-weight: 600;
}

.progress-line {
    width: 80px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 10px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    color: #ff6b9d;
    margin-bottom: 8px;
    font-weight: 700;
}

.header p {
    color: #718096;
    font-size: 1.1rem;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

.step-title {
    text-align: center;
    margin-bottom: 40px;
}

.step-title h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 8px;
}

.step-title p {
    color: #718096;
}

/* Step 1: Templates */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.template-option {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.template-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.template-option.selected {
    border-color: #ff6b9d;
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
}

.template-preview {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Template Animations */
.envelope-animation {
    position: relative;
    width: 80px;
    height: 60px;
}

.envelope {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ff6b9d;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: #ff8fb3;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transition: all 0.3s ease;
    transform-origin: top;
}

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

.letter-peek {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
}

.envelope.open .letter-peek {
    opacity: 1;
    transform: translate(-50%, -70%);
}

.celebration-animation,
.romantic-animation {
    font-size: 48px;
    transition: all 0.3s ease;
}

.template-option:hover .envelope-animation .envelope {
    transform: scale(1.1);
}

.template-option:hover .celebration-animation,
.template-option:hover .romantic-animation {
    transform: scale(1.1) rotate(5deg);
}

.template-option h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.template-option p {
    color: #718096;
    font-size: 0.9rem;
}

/* Step 2: Form */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.form-left {
    space-y: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #a0aec0;
    font-size: 0.8rem;
}

.form-right {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.preview-container h3 {
    margin-bottom: 16px;
    color: #2d3748;
    font-size: 1.1rem;
}

.live-preview {
    min-height: 200px;
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px dashed #e2e8f0;
}

.preview-placeholder {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    margin-top: 60px;
}

/* Step 3: Payment */
.payment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.payment-summary {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.payment-summary h3 {
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f7fafc;
}

.summary-item.total {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ff6b9d;
    border-top: 2px solid #f7fafc;
    padding-top: 16px;
}

.reference-box {
    background: #f0f8ff;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.reference-code {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #2d3748;
    margin-top: 8px;
    display: inline-block;
}

.qr-payment {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.qr-section h3 {
    margin-bottom: 20px;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-code-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f7fafc;
}

.qr-code-container img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #a0aec0;
}

.qr-loading i {
    font-size: 48px;
    margin-bottom: 12px;
}

.bank-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.bank-info h4 {
    margin-bottom: 16px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-details {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.bank-details p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.bank-details p:last-child {
    border-bottom: none;
}

.amount-highlight {
    background: #fff5f5;
    padding: 8px;
    border-radius: 6px;
    border-left: 4px solid #ff6b9d;
    font-weight: 600;
}

/* Instructions */
.instructions {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3b82f6;
    position: relative;
    overflow: hidden;
}

.instructions::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 30s linear infinite;
    pointer-events: none;
}

.instructions > * {
    position: relative;
    z-index: 1;
}

.instructions h4 {
    margin-bottom: 24px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(30, 64, 175, 0.1);
}

.instructions h4 i {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.instructions ol {
    color: #374151;
    padding-left: 0;
    counter-reset: step-counter;
    list-style: none;
    margin: 0;
}

.instructions li {
    margin-bottom: 20px;
    line-height: 1.7;
    position: relative;
    padding: 16px 20px 16px 60px;
    counter-increment: step-counter;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.instructions li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.instructions li::before {
    content: counter(step-counter);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.instructions li:last-child {
    margin-bottom: 0;
}

.instructions li strong {
    color: #1e40af;
    font-weight: 700;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
}

/* Special styling for important steps */
.instructions li:nth-child(4) {
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border-color: #fbbf24;
}

.instructions li:nth-child(4)::before {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.instructions li:nth-child(4) strong {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .instructions {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .instructions h4 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .instructions h4 i {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .instructions li {
        padding: 12px 16px 12px 50px;
        margin-bottom: 16px;
    }
    
    .instructions li::before {
        left: 12px;
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .instructions {
        padding: 16px;
    }
    
    .instructions li {
        padding: 10px 12px 10px 44px;
        font-size: 0.9rem;
    }
    
    .instructions li::before {
        left: 10px;
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
}

/* Slip Upload Section */
.slip-upload-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.slip-upload-section.drag-over {
    border-color: #ff6b9d;
    background: #fff5f8;
    transform: scale(1.02);
}

.slip-upload-section h4 {
    margin-bottom: 20px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.upload-area:hover,
.slip-upload-section.drag-over .upload-area {
    border-color: #ff6b9d;
    background: #fff5f8;
    transform: translateY(-2px);
}

.upload-area i {
    font-size: 48px;
    color: #a0aec0;
    margin-bottom: 16px;
}

.upload-area p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.upload-area small {
    color: #a0aec0;
    font-size: 0.9rem;
}

#slipFile {
    display: none;
}

.slip-preview {
    display: none;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
}

.slip-preview.animate-slide-up {
    animation: slideUp 0.5s ease;
}

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

.slip-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slip-info h5 {
    margin-bottom: 12px;
    color: #2d3748;
}

.slip-info p {
    margin-bottom: 8px;
    color: #4a5568;
    display: flex;
    justify-content: space-between;
}

.remove-slip {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.remove-slip:hover {
    background: #c53030;
    transform: translateY(-1px);
}

/* Verification Status */
.verification-status {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-left: 4px solid #cbd5e0;
}

.verification-status.status-pending {
    border-left-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.verification-status.status-verifying {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.verification-status.status-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.verification-status.status-failed {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.verification-status h4 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verification-status.status-pending h4 {
    color: #d97706;
}

.verification-status.status-verifying h4 {
    color: #2563eb;
}

.verification-status.status-success h4 {
    color: #059669;
}

.verification-status.status-failed h4 {
    color: #dc2626;
}

/* Step 4: Share */
.share-container {
    max-width: 600px;
    margin: 0 auto;
}

.share-link {
    margin-bottom: 30px;
}

.link-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.link-box input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 16px;
}

.link-box button {
    background: #ff6b9d;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.link-box button:hover {
    background: #ff5a8a;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.share-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.share-btn.facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: white;
}

.share-btn.line {
    color: #00c300;
    border-color: #00c300;
}

.share-btn.line:hover {
    background: #00c300;
    color: white;
}

.share-btn.preview {
    color: #ff6b9d;
    border-color: #ff6b9d;
}

.share-btn.preview:hover {
    background: #ff6b9d;
    color: white;
}

.create-new {
    text-align: center;
}

.btn-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Action Buttons */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.btn-back,
.btn-next,
.btn-confirm {
    background: #ff6b9d;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.btn-back {
    background: #e2e8f0;
    color: #718096;
}

.btn-next:disabled,
.btn-confirm:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
}

.btn-back:hover {
    background: #cbd5e0;
}

.btn-next:hover:not(:disabled),
.btn-confirm:hover:not(:disabled) {
    background: #ff5a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

/* Success Animation */
.success-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

.success-animation.show {
    display: block;
}

.fireworks {
    position: relative;
    width: 100%;
    height: 100%;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff6b9d;
    border-radius: 50%;
    animation: firework 1s ease-out;
}

.firework:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.firework:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 0.3s;
}

.firework:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 0.6s;
}

@keyframes firework {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(3);
        opacity: 0.8;
    }
    100% {
        transform: scale(6);
        opacity: 0;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    min-width: 300px;
    max-width: 400px;
    border-left: 4px solid #10b981;
    animation: slideInRight 0.3s ease;
}

.notification.notification-error {
    border-left-color: #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    color: #10b981;
    font-size: 1.2rem;
    margin-top: 2px;
}

.notification-error .notification-icon {
    color: #ef4444;
}

.notification-text {
    flex: 1;
}

.notification-text h4 {
    margin: 0 0 4px 0;
    color: #2d3748;
    font-size: 0.9rem;
}

.notification-text p {
    margin: 0;
    color: #4a5568;
    font-size: 0.8rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    color: #718096;
    background: #f7fafc;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Template Preview Styles */
.template-preview-1,
.template-preview-2,
.template-preview-3 {
    border-radius: 12px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.template-preview-1:hover,
.template-preview-2:hover,
.template-preview-3:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Template 1: Classic Love Letter */
.template-preview-1 {
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
    border: 2px solid #ffe0ed;
    text-align: center;
    position: relative;
}

.template-preview-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 105, 180, 0.05) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.template-preview-1 > * {
    position: relative;
    z-index: 1;
}

.template-preview-1 h4 {
    color: #ff6b9d;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255, 107, 157, 0.1);
}

.template-preview-1 .message-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ff6b9d;
    margin: 20px 0;
    font-style: italic;
    text-align: left;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.template-preview-1 .message-content::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 10px;
    font-size: 2.5rem;
    color: #ff6b9d;
    font-family: serif;
    opacity: 0.7;
}

.template-preview-1 .message-content::after {
    content: '"';
    position: absolute;
    bottom: -15px;
    right: 10px;
    font-size: 2.5rem;
    color: #ff6b9d;
    font-family: serif;
    opacity: 0.7;
}

/* Template 2: Anniversary Card */
.template-preview-2 {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    border: 2px solid #e0f2ff;
    position: relative;
    overflow: hidden;
}

.template-preview-2::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 107, 157, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px;
    animation: float 20s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(360deg); }
}

.template-preview-2 > * {
    position: relative;
    z-index: 1;
}

.template-preview-2 .celebration-header {
    background: linear-gradient(45deg, #ff6b9d, #667eea);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: -20px -20px 24px -20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.template-preview-2 .celebration-header::before {
    content: '🎉';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.template-preview-2 .celebration-header::after {
    content: '🎊';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    animation: bounce 2s infinite 1s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.template-preview-2 .celebration-header h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Template 3: Romantic Letter */
.template-preview-3 {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
    border: 2px solid #ffb6c1;
    position: relative;
    overflow: hidden;
}

.template-preview-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255, 182, 193, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255, 105, 180, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 20, 147, 0.05) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.template-preview-3 > * {
    position: relative;
    z-index: 1;
}

.template-preview-3 .romantic-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.template-preview-3 .romantic-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ff69b4, transparent);
    z-index: -1;
}

.template-preview-3 .romantic-header h4 {
    color: #8b0000;
    font-family: 'Times New Roman', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #fff0f5, #ffe4e1);
    padding: 0 16px;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.1);
}

.template-preview-3 .romantic-content {
    background: white;
    padding: 24px;
    border-radius: 15px;
    border: 3px double #ff69b4;
    box-shadow: 
        inset 0 0 20px rgba(255, 105, 180, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.template-preview-3 .romantic-content::before {
    content: '💕';
    position: absolute;
    top: -12px;
    left: -12px;
    background: white;
    padding: 6px;
    border-radius: 50%;
    font-size: 1.3rem;
    border: 2px solid #ff69b4;
}

.template-preview-3 .romantic-content::after {
    content: '💖';
    position: absolute;
    bottom: -12px;
    right: -12px;
    background: white;
    padding: 6px;
    border-radius: 50%;
    font-size: 1.3rem;
    border: 2px solid #ff69b4;
}

.template-preview-3 .romantic-message {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #ff1493;
    margin: 20px 0;
    position: relative;
    font-style: italic;
    box-shadow: inset 0 2px 4px rgba(255, 20, 147, 0.1);
}

.template-preview-3 .romantic-message::before {
    content: '💕';
    position: absolute;
    top: -8px;
    left: -8px;
    background: white;
    padding: 4px;
    border-radius: 50%;
    font-size: 1.2rem;
    border: 1px solid #ff1493;
}

/* Animation Classes */
.template-preview-animate {
    animation: templateFadeIn 0.6s ease-out;
}

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

/* Loading State */
.template-preview-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.template-preview-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #ff6b9d;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .progress-bar {
        margin-bottom: 24px;
    }
    
    .progress-line {
        width: 40px;
    }
    
    .step-label {
        display: none;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-container,
    .payment-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .form-right {
        position: static;
    }
    
    .bank-details p {
        flex-direction: column;
        gap: 4px;
    }
    
    .qr-code-container {
        width: 180px;
        height: 180px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .step-actions .btn-back {
        order: 2;
    }
    
    .notification {
        right: 16px;
        left: 16px;
        min-width: auto;
    }
    
    .template-preview-1,
    .template-preview-2,
    .template-preview-3 {
        padding: 16px;
    }
    
    .template-preview-1 h4,
    .template-preview-2 .celebration-header h4,
    .template-preview-3 .romantic-header h4 {
        font-size: 1.1rem;
    }
    
    .template-preview-1 .message-content,
    .template-preview-2 .message-section,
    .template-preview-3 .romantic-message {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .progress-step {
        margin: 0 5px;
    }
    
    .progress-line {
        width: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-back,
    .btn-next,
    .btn-confirm {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-area i {
        font-size: 36px;
    }
}