/* ========================================
   AwakenMoments - Global Styles
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
  Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

/* ========================================
   INDEX PAGE STYLES
   ======================================== */

/* Index Page Body */
body.index-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Index Page Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Index Page Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

.cta-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Index Page Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Index Page Features Section */
.features {
    background: white;
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8f9ff;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Index Page How it Works */
.how-it-works {
    background: #f8f9ff;
    padding: 80px 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* Index Page Testimonials */
.testimonials {
    background: white;
    padding: 80px 0;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: #f8f9ff;
    padding: 2rem;
    border-radius: 15px;
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: #667eea;
    position: absolute;
    top: -10px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-info h4 {
    color: #333;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Index Page Stats Section */
.stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
}

.stats h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Index Page FAQ Section */
.faq {
    background: #f8f9ff;
    padding: 80px 0;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9ff;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.6;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Index Page Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #667eea;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

/* Index Page Placeholders */
.placeholder {
    background: #e0e0e0;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    margin: 1rem 0;
}

.placeholder-large {
    height: 300px;
    font-size: 1.2rem;
}

.placeholder-medium {
    height: 200px;
    font-size: 1rem;
}

.placeholder-small {
    height: 100px;
    font-size: 0.9rem;
}

/* ========================================
   UPLOAD PAGE STYLES
   ======================================== */

/* Upload Page Body */
body.upload-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f8f9fa;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Mobile App Container */
.mobile-app {
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Desktop responsive */
@media (min-width: 768px) {
    .mobile-app {
        max-width: 800px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    }
}

@media (min-width: 1024px) {
    .mobile-app {
        max-width: 1600px;
    }
}

/* Upload Page Logo Header */
.logo-header {
    background: white;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.logo-header .logo {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 5px;
}

.header-slogan {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: italic;
    font-weight: 400;
}

@media (min-width: 768px) {
    .logo-header {
        padding: 30px 40px;
    }
    
    .logo-header .logo {
        font-size: 28px;
    }
}

/* Upload Page Main Content */
.main-content {
    padding: 0;
    min-height: calc(100vh - 160px);
}

.upload-container {
    background: white;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

/* Upload Page Header */
.upload-header {
    text-align: center;
    padding: 30px 20px;
    background: white;
}

.upload-header h1 {
    font-size: clamp(20px, 5vw, 28px);
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.upload-header p {
    font-size: clamp(12px, 3.5vw, 16px);
    color: #666;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .upload-header {
        padding: 40px 60px;
    }
    
    .upload-header h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .upload-header p {
        font-size: 18px;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Upload Area */
.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin: 0 16px;
}

@media (min-width: 768px) {
    .upload-area {
        margin: 0 40px;
        padding: 60px 40px;
    }
}

/* Mobile: remove side margins to use full width */
@media (max-width: 767px) {
    .upload-area,
    .preview-container,
    .animation-styles {
        margin-left: 0;
        margin-right: 0;
    }
}

.upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #f0f2ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: clamp(28px, 8vw, 48px);
    color: #667eea;
    margin-bottom: 16px;
}

.upload-text {
    font-size: clamp(14px, 4.5vw, 18px);
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
}

.upload-subtext {
    color: #666;
    margin-bottom: 24px;
    font-size: clamp(11px, 3.5vw, 14px);
}

.file-input {
    display: none;
}

.upload-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 25px;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

/* File Info */
.file-info {
    margin: 20px;
    padding: 16px;
    background: #e8f5e8;
    border-radius: 12px;
    display: none;
}

@media (min-width: 768px) {
    .file-info {
        margin: 20px 60px;
    }
}

.file-info.show {
    display: block;
}

.file-name {
    font-weight: 600;
    color: #2d5a2d;
    margin-bottom: 4px;
    font-size: 14px;
}

.file-size {
    color: #666;
    font-size: 12px;
}

/* Image Preview */
.preview-container {
    margin: 16px;
    text-align: center;
    display: none;
}

@media (min-width: 768px) {
    .preview-container {
        margin: 20px 40px;
    }
}

@media (min-width: 1024px) {
    .preview-container {
        margin-left: 0;
        margin-right: 0;
        padding-left: 40px;
        padding-right: 40px;
    }
}

.preview-container.show {
    display: block;
}

.preview-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 5px;
    object-fit: contain;
}

/* Ensure upload preview is large on desktop and not capped by other rules */
.mobile-app .preview-container .preview-image {
    max-height: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
}

@media (min-width: 1024px) {
    .mobile-app .preview-container .preview-image {
        max-width: 500px;
        width: 100%;
    }
}

.remove-row {
    margin-top: -8px;
    margin-bottom: 8px;
    text-align: center;
    padding: 0;
}

.preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-actions .btn-secondary {
    background: #f8f9ff;
    color: #667eea;
    padding: 12px 20px;
    border: 2px solid #667eea;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.preview-actions .btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Remove link (instead of button) */
.remove-link {
    color: #ff0000;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.remove-link:hover {
    color: #d63031;
    text-decoration: underline;
}

/* Animation Styles */
.animation-styles {
    margin: 20px;
    display: none;
}

@media (min-width: 768px) {
    .animation-styles {
        margin: 20px 60px;
    }
}

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

.animation-styles h3 {
    text-align: center;
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 24px;
    font-weight: 700;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .styles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

.style-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 6px 8px; /* reduced padding */
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: grid; /* icon left, text right */
    grid-template-columns: 20% 80%;
    grid-auto-rows: auto;
}

.style-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.style-card.selected {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.style-icon {
    font-size: 26px; /* slightly bigger icon */
    margin: 0; /* inline with grid */
    grid-column: 1;
    grid-row: 1 / span 2; /* center across both rows */
    align-self: center;
    justify-self: center;
}

.style-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
    font-size: 13px;
    grid-column: 2;
    text-align: left;
}

.style-description {
    font-size: 11px;
    color: #666;
    line-height: 1.35;
    grid-column: 2;
    text-align: left;
}

/* Processing Section */
.processing-section {
    margin: 20px;
    text-align: center;
    display: none;
    background: white;
    border-radius: 16px;
    padding: 40px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .processing-section {
        margin: 20px 60px;
        padding: 60px 40px;
    }
}

.processing-section.show {
    display: block;
}

.processing-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

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

.processing-text {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 24px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #666;
    font-size: 14px;
}

/* Error Messages */
.error-message {
    background: #ffe6e6;
    color: #d63031;
    padding: 16px;
    border-radius: 12px;
    margin: 20px;
    display: none;
    font-size: 14px;
    border-left: 4px solid #d63031;
}

@media (min-width: 768px) {
    .error-message {
        margin: 20px 60px;
    }
}

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

/* Success Message */
.success-message {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 16px;
    border-radius: 12px;
    margin: 20px;
    display: none;
    font-size: 14px;
    border-left: 4px solid #2d5a2d;
}

@media (min-width: 768px) {
    .success-message {
        margin: 20px 60px;
    }
}

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

/* Upload Page Footer */
.mobile-footer {
    background: #f8f9fa;
    padding: 20px 15px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .mobile-footer {
        padding: 25px 30px;
    }
}

.footer-content {
    max-width: 300px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-content {
        max-width: 600px;
    }
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 0px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .footer-links {
        gap: 25px;
    }
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #764ba2;
}

.footer-copyright {
    color: #999;
    font-size: 11px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Mobile responsive */
@media (max-width: 414px) {
    .mobile-app {
        max-width: 100%;
    }
    
    .styles-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .styles-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Index page responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .steps,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   GENERATE PAGE STYLES
   ======================================== */

/* Generate Page Body */
.generate-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.generate-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .generate-container {
        max-width: 1000px;
    }
}

/* Generate Header */
.generate-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.generate-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.generate-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* Progress Container */
.progress-container {
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Progress Steps */
.progress-steps {
    position: relative;
    margin-bottom: 40px;
    min-height: 260px;
    padding-top: 60px; /* space for loader */
}

.progress-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    z-index: 1;
}

.progress-line-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) scale(0.9);
    z-index: 2;
    opacity: 0;
    transition: all 0.4s ease;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
}

.step.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step.completed {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
    max-height: 0;
}

.step-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: transparent;
    color: #666;
    transition: all 0.3s ease;
}

.step.active .step-icon {
    width: 100px;
    height: 100px;
    font-size: 40px;
    margin-bottom: 30px;
}

.step-icon.active {
    background: transparent;
}

.step-icon.completed {
    background: transparent;
}

.step-icon { position: static; overflow: visible; }
.step-icon.processing { background: transparent; color: inherit; }

/* Mini loader with 3 dots */
.step-loader {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    gap: 4px;
}

.step.active .step-loader {
    display: flex;
}

.step-loader span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #667eea;
    animation: dotPulse 1.4s infinite ease-in-out both;
}

.step-loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.step-loader span:nth-child(2) {
    animation-delay: -0.16s;
}

.step-loader span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

.step-content {
    flex: 1;
    width: auto;
    text-align: center;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-align: center;
}

.step.active .step-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.step-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: center;
}

.step.active .step-description {
    font-size: 18px;
    margin-bottom: 20px;
}

.step-time {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
    font-weight: 500;
}

.step.active .step-time {
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
}

/* Preview Section */
.preview-section {
    background: #f8f9ff;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 5px;
}

.preview-info {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.preview-info h3 {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 18px;
}

.preview-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preview-detail {
    text-align: center;
    padding: 10px;
    background: #f0f2ff;
    border-radius: 8px;
}

.preview-detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.preview-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.action-buttons .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-buttons .btn-secondary {
    background: #f8f9ff;
    color: #667eea;
    padding: 15px 30px;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-buttons .btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Completion Section */
.completion-section {
    text-align: center;
    display: none;
}

.completion-section.show {
    display: block;
}

.completion-icon {
    font-size: 80px;
    margin-bottom: 0px;
    animation: bounce 1s ease-in-out;
}

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

.completion-title {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.completion-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Download Section */
.download-section {
    background: #f8f9ff;
    border-radius: 16px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
}

.download-preview {
    width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

/* Video Preview Container */
.video-preview-container {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.video-preview-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    filter: blur(3px);
    transition: filter 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.4);
}

.video-overlay:hover .video-preview-image {
    filter: blur(3px);
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    text-decoration: none;
}

.play-icon {
    font-size: 24px;
    color: #667eea;
    margin-left: 4px; /* Slight offset to center the triangle visually */
}

.download-info {
    background: white;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 20px;
}

.download-info h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 18px;
}

.download-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: stretch;
}

.download-stat {
    text-align: center;
    padding: 8px;
    background: #f0f2ff;
    border-radius: 8px;
}

.download-stat-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.download-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Error Section */
.error-section {
    background: #ffe6e6;
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    display: none;
}

.error-section.show {
    display: block;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.error-title {
    font-size: 20px;
    color: #d63031;
    margin-bottom: 10px;
    font-weight: 600;
}

.error-description {
    font-size: 14px;
    color: #d63031;
    margin-bottom: 20px;
}

/* Generate Page Responsive */
@media (max-width: 768px) {
    .generate-container {
        max-width: 100%;
    }
    
    .progress-container {
        padding: 20px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-details {
        grid-template-columns: 1fr;
    }
    /* Keep download stats in a row on small screens too */
    .download-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ========================================
   EMAIL PAGE STYLES
   ======================================== */

/* Email Page Body */
.email-page {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.email-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

/* Email Header */
.email-header {
    background: #f8f9ff;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.email-header .logo a {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Email Main Content */
.email-main {
    padding: 40px 30px;
}

.email-content {
    text-align: center;
}

/* Offer Banner */
.offer-banner {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    padding: 30px 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.offer-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(180deg); }
}

.offer-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

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

.offer-banner h1 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.offer-description {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 1;
}

.offer-description strong {
    font-size: 20px;
    font-weight: 800;
}

/* Email Form Section */
.email-form-section {
    margin-bottom: 30px;
}

.email-form-section h2 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 600;
}

.email-form {
    max-width: 400px;
    margin: 0 auto;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.checkmark {
    color: #4caf50;
    font-size: 16px;
}

.email-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.email-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
}

.email-input.error {
    border-color: #d63031;
    background: #ffe6e6;
}

.input-error {
    color: #d63031;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.continue-button {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.continue-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    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); }
}

/* Privacy Notice */
.privacy-notice {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
    border: 1px solid #e9ecef;
}

.privacy-notice p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 30px;
}

.benefits-section h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

.benefit-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #e8f5e8;
    border-radius: 20px;
    font-size: 12px;
    color: #2d5a2d;
    font-weight: 500;
}

.trust-icon {
    font-size: 16px;
}

.trust-text {
    white-space: nowrap;
}

/* Email Footer */
.email-footer {
    background: #f8f9ff;
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-copyright {
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* Email Page Responsive */
@media (max-width: 768px) {
    .email-page {
        padding: 15px;
    }
    
    .email-container {
        max-width: 100%;
    }
    
    .email-main {
        padding: 30px 20px;
    }
    
    .offer-banner h1 {
        font-size: 20px;
    }
    
    .offer-description {
        font-size: 14px;
    }
    
    .email-form-section h2 {
        font-size: 18px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-indicators {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .email-header {
        padding: 20px;
    }
    
    .email-main {
        padding: 20px 15px;
    }
    
    .offer-banner {
        padding: 20px 15px;
    }
    
    .offer-banner h1 {
        font-size: 18px;
    }
    
    .offer-description {
        font-size: 13px;
    }
    
    .email-form-section h2 {
        font-size: 16px;
    }
    
    .email-input {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .continue-button {
        padding: 14px 25px;
        font-size: 14px;
    }
}

/* ========================================
   PACKAGE SELECTION PAGE STYLES
   ======================================== */

/* Package Page Body */
.package-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.package-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Package Header */
.package-header {
    background: #f8f9ff;
    padding: 20px 30px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.package-header .logo a {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Package Main Content */
.package-main {
    padding: 40px 30px;
}

.package-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Video Showcase Section */
.video-showcase {
    margin-bottom: 20px;
}

.showcase-header {
    text-align: center;
    margin-bottom: 10px;
}

.showcase-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    max-width: 600px;
    margin: 0 auto;
}

.video-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide play overlay inside the carousel section */
.video-showcase .video-overlay {
    display: none !important;
}

/* Drag-to-scroll affordance */
.video-carousel {
    cursor: grab;
}

.video-carousel.dragging {
    cursor: grabbing;
    user-select: none;
}

.video-carousel::-webkit-scrollbar {
    display: none;
}

.video-card {
    flex: 0 0 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 16px;
}

.original-photo-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    border: 2px solid white;
}

.original-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3) sepia(0.3);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-indicator {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .showcase-title {
        font-size: 24px;
    }
    
    .video-carousel {
        gap: 15px;
    }
    
    .video-card {
        flex: 0 0 250px;
    }
    
    .video-container {
        height: 180px;
    }
    
    .original-photo-overlay {
        top: 12px;
        left: 12px;
        width: 50px;
        height: 65px;
    }
}

@media (max-width: 480px) {
    .showcase-title {
        font-size: 20px;
    }
    
    .video-card {
        flex: 0 0 200px;
    }
    
    .video-container {
        height: 150px;
    }
    
    .play-indicator {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .original-photo-overlay {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 55px;
    }
}


/* Package Selection */
.package-selection {
    text-align: center;
}

.package-selection h1 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.package-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

/* Package Cards */
.package-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.package-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.package-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.package-card.active {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.package-card.recommended {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
}

.package-card.recommended:hover {
    border-color: #4caf50;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.package-header-card {
    text-align: center;
    margin-bottom: 25px;
}

.package-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.package-header-card h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.package-price {
    margin-bottom: 10px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
}

.price-unit {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

/* Match crossed-out price style like Pro card */
.package-header-card .price-amount.original {
    color: #888;
    text-decoration: line-through;
    font-size: 18px;
    margin-right: 10px;
    display: inline-block;
    font-weight: 400;
}

.savings-badge {
    background: #4caf50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}

.package-features {
    margin-bottom: 0px;
    text-align: left; /* ensure text is left-aligned inside the card */
}

.feature-item {
    display: flex;
    align-items: flex-start; /* align icon and first line top */
    justify-content: flex-start; /* keep content starting from the left */
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

.feature-item span:last-child {
    flex: 1; /* allow text to take remaining space next to icon */
}

.feature-icon {
    color: #4caf50;
    font-size: 16px;
    font-weight: 600;
    flex: 0 0 20px; /* fixed width for alignment */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.select-package-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-package-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}



.select-package-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.package-choose {
    max-width: 800px;
    margin: 0 auto;
}

/* Package Info */
.package-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.info-icon {
    font-size: 16px;
    color: #4caf50;
}

/* Compact Package Info */
.package-info-compact {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.package-info-compact .info-text {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Product Card */
.product-card {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    border: 1px solid #e0e0e0;
}

.product-image {
    flex-shrink: 0;
}

.image-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 24px;
    color: white;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature {
    font-size: 12px;
    color: #4caf50;
    font-weight: 500;
}

/* Pricing */
.pricing {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.discount {
    color: #4caf50;
    font-weight: 600;
}

.price-row.total {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    border-top: 2px solid #e0e0e0;
    margin-top: 8px;
    padding-top: 12px;
}

.price-label {
    font-size: 14px;
}

.price-value {
    font-weight: 600;
}

.original {
    text-decoration: line-through;
    color: #999;
}

.discount-amount {
    color: #4caf50;
}

.total {
    color: #667eea;
    font-size: 18px;
}

/* Payment Form */
.payment-form {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group label {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.checkbox-group a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Pay Button */
.pay-button {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

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

.pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4caf50;
    font-size: 12px;
    font-weight: 500;
}

.security-icon {
    font-size: 14px;
}

/* Enhanced Package Page Styles */
.package-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.package-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.package-main {
    padding: 60px 40px 20px;
}

.package-content {
    max-width: 900px;
    margin: 0 auto;
}


/* Enhanced Package Selection - Left Aligned */
.package-selection {
    text-align: left;
    margin-bottom: 50px;
}

.promo-section {
    margin-bottom: 15px;
}

.promo-banner {
    background: linear-gradient(135deg, #f8f9fb 0%, #f1f3f5 100%);
    color: #1a1a1a;
    border-radius: 16px;
    padding: 24px 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e6e8eb;
}

.promo-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.promo-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 16px;
}

.promo-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 16px;
    padding: 0;
}

.promo-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
    white-space: normal; /* allow wrapping to next line */
}

.promo-benefits .benefit-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.3;
}

.promo-benefits .benefit-title {
    font-weight: 700;
    color: #1a1a1a;
}

.promo-benefits .benefit-desc {
    color: #666;
    font-weight: 500;
}

.promo-small-text {
    font-size: 12px;
    color: #777;
}

@media (max-width: 768px) {
    .promo-banner {
        padding: 18px 16px;
        border-radius: 12px;
    }
    .promo-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .promo-description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .promo-benefits {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.package-header-left {
    max-width: 800px;
    margin: 0 auto;
}

.package-selection h1 {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
}

.package-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: left;
}

/* Discount Banner */
.discount-banner {
    background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 18px rgba(252, 182, 159, 0.15);
    border: 1px solid rgba(252, 182, 159, 0.2);
    transition: all 0.3s ease;
}

.discount-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(252, 182, 159, 0.2);
}

.discount-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.discount-content {
    flex: 1;
}

.discount-title {
    font-size: 20px;
    font-weight: 700;
    color: #d35400;
    margin-bottom: 4px;
}

.discount-code {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.code-highlight {
    background: #fff3e0;
    color: #d35400;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

/* Enhanced Package Cards - Left Aligned */
.package-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
    justify-items: start;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.package-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

/* Corner star for Pro card */
.corner-star {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 22px;
    line-height: 1;
}

.corner-rocket {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 22px;
    line-height: 1;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.package-card:hover::before {
    transform: scaleX(1);
}

.package-card:hover {
    border-color: #667eea;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    transform: translateY(-8px);
}

.package-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    transform: translateY(-8px);
}

.package-card.active::before {
    transform: scaleX(1);
}

.package-card.recommended {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
    transform: scale(1.05);
}

.package-card.recommended::before {
    background: linear-gradient(45deg, #4caf50, #45a049);
}

.package-card.recommended:hover {
    border-color: #4caf50;
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.15);
    transform: translateY(-8px) scale(1.05);
}

/* Enhanced Badges */
.recommended-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

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

.badge-icon {
    font-size: 14px;
}

.badge-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-badge {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.savings-icon {
    font-size: 12px;
}

.savings-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Enhanced Package Header */
.package-header-card {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.package-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

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

.package-header-card h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 800;
}

.package-price {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: center;
}

/* Choose plan header */
.choose-plan-label {
    text-align: center;
    margin: 16px 0 8px 0;
    font-weight: 700;
    color: #111827;
    font-size: 18px;
}

/* Package name under price */
.package-header-card .package-name {
    margin-top: 6px;
    font-weight: 700;
    color: #111827;
    font-size: 18px;
    text-align: center;
    display: block;
    width: 100%;
}

.price-amount {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    display: inline-block;
}

.price-unit {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Package Features */
.package-features {
    margin-bottom: 0px;
    text-align: left; /* force left align in enhanced section too */
}

.feature-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-item span:last-child {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Enhanced Buttons */
.select-package-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.select-package-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;
}

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

.select-package-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

.package-card.recommended .select-package-btn {
    background: linear-gradient(45deg, #4caf50, #45a049);
}

.package-card.recommended .select-package-btn:hover {
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.select-package-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.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;
}

/* Enhanced Package Info - Left Aligned */
.package-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 15px;
    border: 1px solid #e0e4ff;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-text {
    flex: 1;
}

.info-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.info-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Enhanced Package Page Responsive */
@media (max-width: 1024px) {
    .package-container {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .package-main {
        padding: 40px 30px 20px;
    }
    
    .package-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .package-container {
        max-width: 100%;
        margin: 10px;
        border-radius: 15px;
    }
    
    .package-main {
        padding: 30px 20px 15px;
    }
    
    .package-content {
        max-width: 100%;
    }
    
    .package-header-left {
        max-width: 100%;
    }
    
    .package-selection h1 {
        font-size: 28px;
        text-align: left;
    }
    
    .package-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .discount-banner {
        padding: 15px 20px;
        margin-bottom: 30px;
        gap: 15px;
    }
    
    .discount-icon {
        font-size: 28px;
    }
    
    .discount-title {
        font-size: 18px;
    }
    
    .discount-code {
        font-size: 14px;
    }
    
    .package-cards {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 20px;
        max-width: 100%;
        justify-items: stretch;
    }
    
    .package-card {
        padding: 30px 25px;
    }
    
    .package-card.recommended {
        transform: none;
    }
    
    .package-card.recommended:hover {
        transform: translateY(-5px);
    }
    
    .package-icon {
        font-size: 50px;
    }
    
    .package-header-card h3 {
        font-size: 24px;
    }
    
    .price-amount {
        font-size: 32px;
    }
    
    .package-info {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
        max-width: 100%;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .recommended-badge {
        top: -8px;
        right: 15px;
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .package-container {
        margin: 5px;
        border-radius: 10px;
    }
    
    .package-main {
        padding: 20px 15px 10px;
    }
    
    .package-header-left {
        max-width: 100%;
    }
    
    .package-selection h1 {
        font-size: 24px;
        text-align: left;
    }
    
    .package-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
        text-align: left;
    }
    
    .discount-banner {
        padding: 12px 16px;
        margin-bottom: 25px;
        gap: 12px;
    }
    
    .discount-icon {
        font-size: 24px;
    }
    
    .discount-title {
        font-size: 16px;
    }
    
    .discount-code {
        font-size: 13px;
    }
    
    .code-highlight {
        padding: 1px 8px;
        font-size: 12px;
    }
    
    .package-cards {
        gap: 20px;
        margin-bottom: 20px;
        max-width: 100%;
        justify-items: stretch;
    }
    
    .package-card {
        padding: 25px 20px;
    }
    
    .package-icon {
        font-size: 45px;
    }
    
    .package-header-card h3 {
        font-size: 22px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .price-unit {
        font-size: 12px;
    }
    
    .feature-item {
        margin-bottom: 0px;;
    }
    
    .feature-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-right: 12px;
    }
    
    .feature-item span:last-child {
        font-size: 14px;
    }
    
    .select-package-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .package-info {
        gap: 15px;
        margin-top: 30px;
        max-width: 100%;
    }
    
    .info-item {
        padding: 12px;
        gap: 12px;
    }
    
    .info-icon {
        font-size: 20px;
    }
    
    .info-title {
        font-size: 14px;
    }
    
    .info-description {
        font-size: 13px;
    }
    
    .recommended-badge {
        top: -6px;
        right: 10px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .savings-badge {
        padding: 4px 8px;
        font-size: 10px;
        margin-top: 8px;
    }
}

@media (max-width: 360px) {
    .package-main {
        padding: 15px 10px;
    }
    
    .package-header-left {
        max-width: 100%;
    }
    
    .package-selection h1 {
        font-size: 22px;
        text-align: left;
    }
    
    .package-subtitle {
        font-size: 13px;
        text-align: left;
    }
    
    .discount-banner {
        padding: 10px 14px;
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .discount-icon {
        font-size: 20px;
    }
    
    .discount-title {
        font-size: 14px;
    }
    
    .discount-code {
        font-size: 12px;
    }
    
    .code-highlight {
        padding: 1px 6px;
        font-size: 11px;
    }
    
    .package-card {
        padding: 15px 20px 10px 40px
    }
    
    .package-icon {
        font-size: 40px;
    }
    
    .package-header-card h3 {
        font-size: 20px;
    }
    
    .price-amount {
        font-size: 26px;
    }
    
    .package-cards {
        max-width: 100%;
        justify-items: stretch;
    }
    
    .package-info {
        max-width: 100%;
    }
}

/* ========================================
   PRIVACY POLICY PAGE STYLES
   ======================================== */

/* Privacy Policy Page Body */
.privacy-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Privacy Content */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.privacy-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.privacy-section h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid rgba(76, 175, 80, 0.3);
    padding-bottom: 0.5rem;
}

.privacy-section h3 {
    color: #333;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.privacy-section p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-section ul {
    color: #555;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.privacy-email {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.privacy-email:hover {
    color: #66BB6A;
    text-decoration: underline;
}

.contact-details {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.contact-details p {
    margin: 0.5rem 0;
    color: #333;
}

.back-to-home {
    text-align: center;
    margin-top: 3rem;
}

.generator-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.generator-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: white;
    text-decoration: none;
}

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

/* Privacy Policy Responsive */
@media (max-width: 768px) {
    .privacy-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .privacy-section h2 {
        font-size: 1.2rem;
    }
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* Contact Page Body */
.contact-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Container and Layout */
.contact-container .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.info-section {
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
}

.info-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Typography */
.page-title {
    color: #4CAF50;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(76, 175, 80, 0.3);
    padding-bottom: 0.5rem;
}

.page-description {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Contact Info Section */
.contact-info {
    margin: 2rem 0;
}

.contact-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.contact-item h3 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-email {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #66BB6A;
    text-decoration: underline;
}

/* Response Info Section */
.response-info {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid #4CAF50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.response-info h3 {
    color: #2d5a2d;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.response-info p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .info-content {
        margin: 10px;
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
    }
    
    .generator-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .info-content {
        margin: 5px;
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
}

/* ========================================
   SUCCESS PAGE STYLES
   ======================================== */

.success-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.success-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.success-container {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 0;
    animation: successPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

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

.success-title {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 10px;
}

.success-description {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
    text-align: center;
    padding: 20px 0;
}

.success-description p {
    margin: 0;
    position: relative;
}

.success-description p::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 1px;
}

.success-actions {
    margin-top: 20px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 16px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .success-container {
        max-width: 100%;
        padding: 40px 20px;
        margin: 0;
    }
    
    .success-icon {
        font-size: 60px;
    }
    
    .success-title {
        font-size: 28px;
    }
    
    .success-description {
        font-size: 16px;
        padding: 15px 0;
    }
    
    .btn-primary {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .success-container {
        padding: 30px 15px;
    }
    
    .success-icon {
        font-size: 50px;
    }
    
    .success-title {
        font-size: 24px;
    }
    
    .success-description {
        font-size: 15px;
        padding: 10px 0;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Ensure the play overlay in the generate preview is visible above other generic .video-overlay rules */
.video-preview-container .video-overlay {
    opacity: 1 !important; /* override later generic .video-overlay { opacity: 0 } */
    z-index: 2;
    display: flex;
}

.video-preview-container .play-button,
.video-preview-container .play-icon {
    opacity: 1;
}

/* ========================================
   CHECKOUT PAGE INLINE STYLES
   ======================================== */

/* CTA Section Styles */
.cta-section {
    text-align: center;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #0e2013;
    font-weight: 600;
}

/* FOMO Section Styles */
.fomo-section {
    text-align: center;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.fomo-people-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.fomo-timer {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.countdown-timer {
    color: #ff6b35;
    font-weight: 700;
}

/* Reviews Section Styles */
.reviews-compact {
    margin: 10px 0 20px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

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

.review-name {
    font-weight: 600;
    color: #111827;
}

.review-location {
    font-size: 12px;
    color: #6b7280;
}

.review-stars {
    color: #f59e0b;
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

/* Package Info Styles */
.package-info-text {
    font-size: 12px;
}

/* Stripe Modal Hidden */
.stripe-modal-hidden {
    display: none;
}

/* ========================================
   STRIPE MODAL STYLES
   ======================================== */

.stripe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.stripe-modal.open { display: flex; }

.stripe-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stripe-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.stripe-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.stripe-modal-body {
    padding: 24px;
}

.order-summary {
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px;
}

.order-summary h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-name {
    font-weight: 500;
    color: #374151;
}

.item-price {
    color: #6b7280;
    font-size: 14px;
}

.order-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.discount-label {
    color: #dc2626;
    font-size: 14px;
}

.discount-amount {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.billing-frequency {
    font-size: 12px;
    color: #6b7280;
    text-align: left;
}

.stripe-checkout-container {
    margin-top: 2px;
}

/* ========================================
   PACKAGE CARD SELECTOR (radio-like)
   ======================================== */
.package-card {
    position: relative;
}

.package-card .plan-select {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #9ca3af;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Modifier to lower the selector a bit */
.package-card .plan-select.lowered {
    top: 22px;
}

.package-card .plan-select .radio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease;
}

.package-card.active .plan-select {
    border-color: #635bff;
    background: #f5f5ff;
}

.package-card.active .plan-select .radio {
    background: #635bff;
}

/* Premium (green) accent for active selection */
.package-card[data-package="pro"].active .plan-select {
    border-color: #10b981; /* emerald-500 */
    background: #ecfdf5;   /* emerald-50 */
}
.package-card[data-package="pro"].active .plan-select .radio {
    background: #10b981;   /* emerald-500 */
}

#payment-element {
    margin-bottom: 2px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
}

/* Apple Pay and Google Pay button styling */
#payment-element .p-Button--applePay,
#payment-element .p-Button--googlePay {
    margin-bottom: 12px;
    border-radius: 8px;
    min-height: 48px;
}

/* Link payment method styling */
#payment-element .p-Button--link {
    background: #635bff;
    color: white;
    border-radius: 8px;
    min-height: 48px;
}

.payment-errors {
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 5px;
    min-height: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease, margin 0.3s ease;
}

.payment-errors:not(:empty) {
    height: auto;
    min-height: 20px;
    margin-bottom: 5px;
}

.stripe-pay-button {
    width: 100%;
    background: #635bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stripe-pay-button:hover:not(:disabled) {
    background: #5a52e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

.stripe-pay-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner.hidden {
    display: none;
}

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

/* Responsive styles for modal */
@media (max-width: 640px) {
    .stripe-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .stripe-modal-header,
    .stripe-modal-body {
        padding: 10px;
    }
    
    .stripe-pay-button {
        padding: 14px 20px;
        font-size: 15px;
    }
}

