/* AI Baby Generator Specific Styles */

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.tool-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.tool-header p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 3rem;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.auth-modal-close:hover {
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #ffffff;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.active {
    display: block;
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: rgba(255, 255, 255, 0.5);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Gender Selection */
.gender-selection {
    text-align: center;
    margin: 2rem auto 3rem;
    max-width: 600px;
}

.gender-selection h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.gender-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.gender-option:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.gender-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.gender-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.gender-option.selected .radio-custom {
    border-color: #667eea;
    background: #667eea;
}

.gender-option.selected .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.gender-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

/* Upload Section */
.upload-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.upload-group h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.upload-box {
    position: relative;
    border: 3px dashed #555;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-box:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
}

.upload-box.has-file {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-content svg {
    color: #667eea;
}

.upload-content p {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0;
}

.upload-content span {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Generate Button */
.generate-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 3rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Section - Redesigned */
.result-section {
    margin: 2rem auto;
    padding: 0;
    text-align: center;
    scroll-margin-top: 100px;
    max-width: 600px;
}

/* Loading Container */
.loading-container,
.video-loading-container {
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-message {
    font-size: 1.1rem;
    color: #cccccc;
    font-weight: 500;
    min-height: 30px;
    animation: fadeIn 0.5s ease-in;
    line-height: 1.6;
}

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

/* Result Output */
.result-output {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.result-output h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

.result-media-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.result-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.result-media img,
.result-media video {
    width: 100%;
    height: auto;
    display: block;
}

/* Lock Overlay Styles */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.result-media.is-locked .lock-overlay {
    opacity: 1;
    pointer-events: auto;
}

.lock-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.lock-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.lock-subtext {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.result-media.is-locked img {
    filter: blur(10px);
    transform: scale(1.05); /* Prevent blur edge artifacts */
}

/* Preview Locked Overlay (for Free Users) */
.result-media.is-preview-locked img {
    filter: blur(5px);
    transform: scale(1.05);
}

.preview-locked-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 11;
}

.result-media.is-preview-locked .preview-locked-overlay {
    opacity: 0.65;
    pointer-events: auto;
}

.lock-icon-small {
    width: 32px;
    height: 32px;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.preview-locked-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Unlock CTA Section (for Free Users) */
.unlock-cta-section {
    margin-top: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.unlock-cta-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.unlock-cta-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.unlock-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unlock-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.unlock-cta-microcopy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
}

/* Result Actions Container */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 24px;
}

/* Download Button State */
.download-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666;
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Social Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.share-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 500;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.1);
}

.facebook-share {
    background: #1877F2;
    color: white;
}

.facebook-share:hover {
    background: #0d65d9;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.whatsapp-share {
    background: #25D366;
    color: white;
}

.whatsapp-share:hover {
    background: #1ebe57;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.instagram-share {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.instagram-share:hover {
    background: linear-gradient(45deg, #d17e2d 0%, #c85a32 25%, #bd1f38 50%, #ad1d5a 75%, #9b1076 100%);
    box-shadow: 0 4px 12px rgba(193, 53, 132, 0.4);
}

.status-text {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-top: 1rem;
}

/* Gallery Section */
.gallery-section {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-section > p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    font-size: 0.9rem;
    color: #ffffff;
}

.cta-text {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-top: 1rem;
}

.cta-text strong {
    color: #667eea;
}

/* Info Section */
.info-section {
    margin-bottom: 4rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.info-icon {
    color: #667eea;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-container {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    background: rgba(255, 255, 255, 0.03);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: #b0b0b0;
    margin: 0;
    line-height: 1.6;
}

/* Footer Styles */
.main-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2rem;
    }
    
    .gender-options {
        flex-direction: column;
        align-items: center;
    }
    
    .upload-section {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .result-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .auth-modal-content {
        padding: 1.5rem 1.25rem;
        max-height: 95vh;
    }

    .auth-modal-close {
        right: 1rem;
        top: 1rem;
        font-size: 1.5rem;
    }

    .auth-form h2 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .form-group input {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }

    .auth-submit-btn {
        padding: 0.85rem;
        font-size: 0.95rem;
        margin-top: 0.75rem;
    }

    .auth-divider {
        margin: 1rem 0;
        font-size: 0.85rem;
    }

    .social-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .auth-switch {
        margin-top: 1rem;
        font-size: 0.85rem;
    }
}

/* Video Generation Module Styles - Compact Version */
.video-generation-module {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 12px;
    animation: slideIn 0.4s ease-out;
}

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

.video-module-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-module-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.video-module-text {
    flex: 1;
    min-width: 0;
}

.video-module-text h4 {
    font-size: 1rem;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.video-module-text p {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin: 0;
}

.generate-video-btn-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.generate-video-btn-compact:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.generate-video-btn-compact:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.generate-video-btn-compact .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Video Result Section - Simplified */
.video-result-section {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
}

.video-result-section h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.25rem;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Promo Modal Styles */
.video-promo-content {
    max-width: 550px;
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    max-height: 85vh;
    overflow-y: auto;
}

.video-promo-container {
    padding: 2.5rem;
    text-align: center;
}

.promo-icon-wrapper {
    margin-bottom: 1.5rem;
}

.promo-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
    }
}

.promo-icon-circle svg {
    color: white;
}

.promo-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.promo-subtitle {
    font-size: 1.1rem;
    color: #b8b8b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.promo-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
}

.promo-feature {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.promo-feature:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.promo-feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.promo-feature-text h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.promo-feature-text p {
    font-size: 0.9rem;
    color: #b8b8b8;
    line-height: 1.5;
}

.promo-social-proof {
    background: rgba(102, 126, 234, 0.1);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.promo-avatars {
    display: flex;
    justify-content: center;
    gap: -10px;
    margin-bottom: 0.75rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid #1a1a2e;
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

.promo-social-proof p {
    color: #cccccc;
    font-size: 0.95rem;
}

.promo-pricing-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.promo-price-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-label {
    font-size: 1rem;
    color: #b8b8b8;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-value-props {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.promo-value-props span {
    color: #cccccc;
    font-size: 0.9rem;
}

.promo-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.promo-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.promo-btn-secondary {
    padding: 0.875rem 2rem;
    background: transparent;
    color: #b8b8b8;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.promo-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.promo-urgency svg {
    color: #ffc107;
    flex-shrink: 0;
}

.promo-urgency span {
    color: #ffc107;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Mobile Responsive for Video Module */
@media (max-width: 768px) {
    .result-section {
        margin: 1.5rem auto;
        padding: 0;
    }

    .result-output {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .result-output h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .loading-container {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    .video-generation-module {
        margin-top: 1rem;
        padding: 0.875rem 1rem;
    }

    .video-module-content {
        gap: 0.75rem;
    }

    .video-module-icon {
        font-size: 1.75rem;
    }

    .video-module-text h4 {
        font-size: 0.95rem;
    }

    .video-module-text p {
        font-size: 0.8rem;
    }

    .generate-video-btn-compact {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .video-promo-content {
        max-height: 90vh;
        margin: 1rem;
    }

    .video-promo-container {
        padding: 1.5rem 1.25rem;
    }

    .promo-icon-wrapper {
        margin-bottom: 1rem;
    }

    .promo-icon-circle {
        width: 60px;
        height: 60px;
    }

    .promo-icon-circle svg {
        width: 32px;
        height: 32px;
    }

    .promo-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .promo-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .promo-features-grid {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .promo-feature {
        padding: 0.75rem;
    }

    .promo-feature-icon {
        font-size: 1.5rem;
    }

    .promo-feature-text h4 {
        font-size: 0.95rem;
    }

    .promo-feature-text p {
        font-size: 0.85rem;
    }

    .promo-social-proof {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .promo-social-proof p {
        font-size: 0.9rem;
    }

    .avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .promo-pricing-highlight {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .price-value {
        font-size: 1.75rem;
    }

    .promo-value-props {
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .promo-value-props span {
        font-size: 0.85rem;
    }

    .promo-cta-buttons {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .promo-btn-primary {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .promo-btn-secondary {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }

    .promo-urgency {
        padding: 0.625rem;
    }

    .promo-urgency span {
        font-size: 0.75rem;
    }

    .video-result-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 1rem;
    }

    .video-result-section h3 {
        font-size: 1.5rem;
    }
}

/* Image Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

/* Blur for free users only */
.lightbox-content.lightbox-free-user {
    filter: blur(8px);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 25px;
        font-size: 40px;
    }

    .lightbox-caption {
        bottom: 15px;
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

/* ========== VIDEO UPSELL MODAL ========== */
.video-upsell-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.video-upsell-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.video-upsell-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.video-upsell-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-upsell-container {
    padding: 40px 35px;
    text-align: center;
}

.video-upsell-gif {
    margin-bottom: 25px;
}

.upsell-gif {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 16px;
    transition: opacity 0.5s ease;
}

.video-upsell-headline {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.video-upsell-subheadline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    line-height: 1.6;
}

.video-upsell-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
    text-align: left;
}

.upsell-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.feature-icon {
    color: #667eea;
    flex-shrink: 0;
}

.upsell-feature span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.video-upsell-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.video-upsell-primary,
.video-upsell-secondary {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-upsell-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.video-upsell-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.video-upsell-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.video-upsell-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.video-upsell-microcopy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ========== UNLOCK RESULT MODAL (SUBSCRIPTION) ========== */
.unlock-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.unlock-result-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 0;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.insufficient-credits-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.insufficient-credits-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.unlock-result-container {
    padding: 45px 35px;
    text-align: center;
}

/* Header */
.unlock-result-header {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.unlock-result-subheader {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Value Bullets */
.unlock-value-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.unlock-value-bullets li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 2.2;
    padding-left: 8px;
}

/* Plan Selection Area */
.unlock-plans {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

/* Unlock Plan (clickable/selectable) */
.unlock-plan {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 20px 24px;
    text-align: left;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unlock-plan:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

/* Selected state */
.unlock-plan:has(input:checked) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

/* Lifetime Plan Badge */
.unlock-plan-lifetime .unlock-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Plan Title */
.unlock-plan-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 8px 0 8px 0;
    line-height: 1.3;
}

/* Plan Description */
.unlock-plan-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 4px 0;
    line-height: 1.5;
}

/* Plan Subdescription */
.unlock-plan-subdesc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

/* OR Divider */
.unlock-divider {
    position: relative;
    text-align: center;
    margin: 12px 0;
}

.unlock-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.unlock-divider span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Primary CTA Button */
.unlock-primary-cta {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    margin-bottom: 20px;
}

.unlock-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.unlock-primary-cta:active {
    transform: translateY(0);
}

/* Trust / Friction Reducers */
.unlock-trust {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.unlock-trust p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .video-upsell-content {
        max-width: 95%;
        border-radius: 20px;
    }

    .video-upsell-container {
        padding: 35px 25px;
    }

    .video-upsell-headline {
        font-size: 1.5rem;
    }

    .video-upsell-subheadline {
        font-size: 0.9rem;
    }

    .upsell-feature {
        padding: 10px 14px;
    }

    .upsell-feature span {
        font-size: 0.85rem;
    }

    .video-upsell-primary,
    .video-upsell-secondary {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Unlock Result Modal - Mobile */
    .unlock-result-content {
        max-width: 95%;
        border-radius: 20px;
    }

    .unlock-result-container {
        padding: 35px 25px;
    }

    .unlock-result-header {
        font-size: 1.4rem;
    }

    .unlock-result-subheader {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .unlock-value-bullets {
        margin-bottom: 25px;
    }

    .unlock-value-bullets li {
        font-size: 0.85rem;
        line-height: 2;
    }

    .unlock-plans {
        gap: 12px;
        margin-bottom: 25px;
    }

    .unlock-plan {
        padding: 18px 20px;
    }

    .unlock-plan-badge {
        font-size: 0.65rem;
        padding: 3px 12px;
    }

    .unlock-plan-title {
        font-size: 1rem;
    }

    .unlock-plan-desc {
        font-size: 0.8rem;
    }

    .unlock-plan-subdesc {
        font-size: 0.75rem;
    }

    .unlock-primary-cta {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .unlock-trust p {
        font-size: 0.7rem;
    }
}

/* Disable body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}
