/* === V3 "PRO" STYLESHEET === */

/* 1. VARIABLES & GLOBAL RESETS */
:root {
    --color-primary: #4f46e5;      /* Indigo 600 */
    --color-dark: #111827;         /* Gray 900 */
    --color-text: #374151;         /* Gray 700 */
    --color-text-light: #6b7280;    /* Gray 500 */
    --color-light-bg: #f9fafb;     /* Gray 50 */
    --color-white: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', var(--font-sans);
}

* {
    /* Removed margin reset to avoid overriding Tailwind spacing utilities */
    /* Removed padding reset to avoid overriding Tailwind spacing utilities */
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--color-dark);
    font-weight: 700;
}

/* 2. HEADER */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.login-btn {
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.logo h1 {
    display: flex;
    align-items: baseline;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.75rem;
    font-weight: 800;
}

/* Finer control for logo parts */
.logo-auto {
    font-size: 0.4em; /* make "Auto" less dominant */
    margin-right: 0.16em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-main {
    font-size: 1em;
    font-weight: 800;
}

.logo-remodel {
    margin-left: 0.1em; /* subtle spacing between Home and Remodel */
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lang-globe {
    font-size: 1rem;
    margin-left: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 32px;
}

.lang-btn:hover {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.1);
}

.lang-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.lang-btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 3. HERO */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% -20%,rgba(79,70,229,0.1),transparent),
                radial-gradient(ellipse 80% 70% at 50% 110%,rgba(79,70,229,0.05),transparent);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.1;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.hero h2 {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 550px;
    margin: 0 auto 2rem;
    color: var(--color-text-light);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero .hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-light);
}

.upload-section {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    margin: 1.5rem auto 0;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropzone {
    background: var(--color-light-bg);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    width: 100%;
}

.dropzone:hover {
    border-color: var(--color-primary);
    background-color: #f0f2ff;
}

.upload-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.upload-subtext {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

.upload-content,
.processing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.preview-container {
    margin-top: 1rem;
}

.style-selector {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.style-selector h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.style-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.style-option {
    background-color: var(--color-white);
    border: 1px solid #d1d5db;
    color: var(--color-text);
}

.style-option.selected {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.generate-btn {
    margin-top: 1.5rem;
    width: 100%;
}

.hero .beta-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* 4. BUTTONS */
.cta-button, .submit-btn, .btn {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-out;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.cta-button:hover, .submit-btn:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid #d1d5db; /* Gray 300 */
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--color-light-bg);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* PRICING SECTION */
#pricing {
    padding: 80px 0;
    background: var(--color-white);
}

#pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

#pricing .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--color-white);
    border: 1px solid #e5e7eb; /* Gray 200 */
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.pricing-card.popular {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    font-size: 1.3rem;
    color: var(--color-text-light);
}

.discount-price {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--color-dark);
}

.pricing-card .credits {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    color: var(--color-text-light);
}

.pricing-card .features li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 25px;
}

.pricing-card .features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.pricing-card .btn,
.pricing-card .cta-button {
    width: 100%;
}


/* 5. DEMO & BEFORE/AFTER SLIDER */
.demo {
    padding: 80px 0;
    background: var(--color-light-bg);
}

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

.demo .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

.before-after-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    aspect-ratio: 16 / 9;
}

.before-after-container .before-image,
.before-after-container .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.before-after-container .before-image {
    z-index: 1;
}

.before-after-container .after-image {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--color-white);
    cursor: ew-resize;
    z-index: 3;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.ba-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--color-white);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.image-showcase { display: none; }

/* 6. BENEFITS SECTION */
.benefits {
    padding: 80px 0;
}
.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.benefit-card {
    text-align: left;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background-color: var(--color-white);
    transition: all 0.2s ease-out;
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}
.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.benefit-card p {
    color: var(--color-text-light);
}

/* 7. FAQ SECTION */
.faq {
    padding: 80px 0;
    background: var(--color-light-bg);
}
.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}
.faq details {
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease-out;
}
.faq details[open] {
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}
.faq summary {
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s ease;
}
.faq details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
.faq p {
    margin-top: 0.75rem;
    color: var(--color-text-light);
}

/* 8. FINAL CTA & FOOTER */
.cta-section-final {
    padding: 100px 0;
    text-align: center;
}
.cta-section-final h2 {
    font-size: 2.5rem;
}
.cta-section-final p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin: 1rem 0 2rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto 1.5rem;
    max-width: 450px;
}
.form-group input {
    padding: 16px 20px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}
.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.submit-btn {
    width: 100%;
    max-width: 450px;
}

/* Footer */
footer {
    background: var(--color-dark);
    color: var(--color-text-light);
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer .language-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

footer .lang-globe {
    color: var(--color-text-light);
}

footer .lang-btn {
    color: var(--color-text-light);
}

footer .lang-btn:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.2);
}

footer .lang-btn.active {
    background: var(--color-white);
    color: var(--color-dark);
}

/* 9. RESPONSIVE DESIGN */
@media (max-width: 768px) {
    body {
        line-height: 1.6;
    }
    .hero {
        padding: 120px 0 80px;
    }
    .hero h1 {
        line-height: 1.2;
    }
    .upload-section {
        padding: 1rem;
        margin: 1rem auto 0;
    }
    .dropzone {
        padding: 1rem;
    }
    .benefits h2, .demo h2, .faq h2, .cta-section-final h2 {
        font-size: 2rem;
    }
    
    /* Mobile pricing section */
    #pricing h2 {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-card.popular {
        transform: none;
        order: -1; /* Show popular option first on mobile */
    }
    
    .pricing-card .price {
        font-size: 3rem;
    }
    
    /* Mobile header adjustments */
    .logo h1 {
        font-size: 1.5rem;
    }
    
    /* Mobile footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

.logo-icon {
    width: 38px;
    height: 38px;
    vertical-align: middle;
    margin-right: 8px;
}

/* 10. UTILITY CLASSES */
.hidden {
    display: none;
}

/* 11. DASHBOARD STYLES */
.dashboard-page {
    background-color: var(--color-light-bg);
}

.dashboard-page .container {
    max-width: 580px;
    padding: 8rem 20px 4rem;
    transition: max-width 0.4s ease-in-out;
}

.dashboard-page .container.wide {
    max-width: 960px;
}

.dashboard-page .container.wide #app-section h2,
.dashboard-page .container.wide #app-section form {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Prompt display styles for admin users */
.prompt-container {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #f8fafc;
    overflow: hidden;
}

.prompt-details {
    margin: 0;
}

.prompt-summary {
    padding: 1rem 1.5rem;
    background-color: #f1f5f9;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.9rem;
    user-select: none;
}

.prompt-summary:hover {
    background-color: #e2e8f0;
}

.prompt-content {
    padding: 1.5rem;
    margin: 0;
    background-color: #ffffff;
    border: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #374151;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.dashboard-page h1 {
    font-family: var(--font-display);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-dark);
}

.dashboard-page h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--color-dark);
    font-weight: 600;
}

.dashboard-page .card {
    background: var(--color-white);
    padding: 2.5rem 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

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

.dashboard-page .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.dashboard-page .form-group input,
.dashboard-page .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    background-color: var(--color-white);
}

.dashboard-page .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    background-color: var(--color-white);
    resize: vertical;
}

.dashboard-page .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.dashboard-page .form-group input:focus,
.dashboard-page .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.dashboard-page .file-input {
    padding: 8px;
}

.dashboard-page .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 500;
    border-radius: 12px;
}

.dashboard-page .separator {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--color-text-light);
}
.dashboard-page .separator p {
    position: relative;
    display: inline-block;
}
.dashboard-page .separator p::before,
.dashboard-page .separator p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: #e5e7eb;
}
.dashboard-page .separator p::before {
    right: 100%;
    margin-right: 15px;
}
.dashboard-page .separator p::after {
    left: 100%;
    margin-left: 15px;
}

.dashboard-page .form-error {
    color: #b91c1c;
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.dashboard-page #loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 500;
}

.dashboard-page .images-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.dashboard-page .images-grid img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: all 0.2s ease-out;
    border: 1px solid #e5e7eb;
}

.dashboard-page .images-grid img:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.dashboard-page .image-container {
    position: relative;
}

.dashboard-page .download-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(17, 24, 39, 0.6);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-page .download-btn svg {
    width: 20px;
    height: 20px;
}

.dashboard-page .image-container:hover .download-btn {
    opacity: 1;
    transform: translateY(-2px);
}

.dashboard-page .download-btn:hover {
    background: rgba(17, 24, 39, 0.8);
    transform: translateY(-2px) scale(1.05);
}

.logout-btn {
    margin-left: auto;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    font-weight: 500;
}

.logout-btn:hover {
    background: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.dashboard-page header .container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.dashboard-page .logo h1 {
    font-size: 1.5rem;
}

.dashboard-page .logout-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credits-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.credits-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.credits-badge.low-credits {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.credits-badge.no-credits {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* 12. ADMIN STYLES */
.admin-page {
    background-color: var(--color-light-bg);
}

.admin-page .container {
    max-width: 1200px;
    padding: 6rem 20px 4rem;
}

.admin-page header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-page h1 {
    font-family: var(--font-display);
    color: var(--color-dark);
    font-size: 2rem;
}

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

.stat-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.stat-card i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: var(--color-dark);
}

.stat-card p {
    color: var(--color-text-light);
    font-weight: 500;
}

.admin-controls {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.admin-controls h2 {
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: var(--color-light-bg);
    font-weight: 600;
    color: var(--color-dark);
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-badge.agent {
    background: #dbeafe;
    color: #1e40af;
}

.role-badge.admin {
    background: #fef3c7;
    color: #92400e;
}

.credits-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

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

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

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

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-dark);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.close {
    color: #6b7280;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close:hover {
    color: var(--color-dark);
}

.secondary-btn {
    padding: 0.75rem 1.5rem;
    background: var(--color-white);
    border: 1px solid #d1d5db;
    color: var(--color-text);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Customize Modal Specific Styles */
.customize-modal-content {
    max-width: 600px;
}

.customize-preview {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.customize-preview img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.customize-image-info {
    flex: 1;
}

.customize-name {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.customize-size {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.customize-form .form-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.customize-form h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--color-dark);
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.customize-form select,
.customize-form textarea,
.customize-form input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.customize-form select:disabled,
.customize-form textarea:disabled,
.customize-form input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.customize-form select:focus,
.customize-form textarea:focus,
.customize-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.cost-preview {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.cost-comparison {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.cost-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.cost-item .cost-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.cost-item .cost-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-primary);
}

/* Bulk Download Modal Styles */
.download-options {
    margin-bottom: 1.5rem;
}

.download-option {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.download-option:hover {
    border-color: var(--color-primary);
    background: rgba(79, 70, 229, 0.02);
}

.download-option input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.download-option label {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.download-option label strong {
    color: var(--color-dark);
    margin-bottom: 0.25rem;
    display: block;
}

.download-option label p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin: 0;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.selection-item {
    position: relative;
    background: var(--color-white);
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.selection-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.selection-item.selected {
    border-color: var(--color-primary);
    background: rgba(79, 70, 229, 0.05);
}

.selection-item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.selection-item .selection-checkbox {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--color-white);
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-item.selected .selection-checkbox {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.selection-item .selection-name {
    font-size: 0.75rem;
    color: var(--color-text);
    text-align: center;
    word-break: break-all;
}

.download-format {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.download-format label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.download-format select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

/* Enhanced Results Display */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.results-actions {
    display: flex;
    gap: 1rem;
}

.results-stats {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.bulk-download-btn {
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bulk-download-btn:hover {
    background: #3730a3;
    transform: translateY(-1px);
}

.bulk-download-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* --- Create User Section --- */
.create-user-section {
  margin-top: 2rem;
}
.create-user-form label {
  display: block;
  margin-top: 0.5rem;
}
.create-user-form input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
}
.create-user-form button {
  margin-top: 1rem;
}

/* === MULTI-IMAGE UPLOAD STYLES === */

/* Upload Section */
.upload-section {
  margin-bottom: 2rem;
}

.drop-zone {
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  background: #fafbfc;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 1rem;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--color-primary);
  background: rgba(79, 70, 229, 0.05);
  transform: translateY(-2px);
}

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

.upload-icon {
  width: 48px;
  height: 48px;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.drop-zone:hover .upload-icon {
  color: var(--color-primary);
}

.drop-zone h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

.drop-zone p {
  color: var(--color-text-light);
  font-size: 1rem;
  margin: 0;
}

.upload-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.separator {
  text-align: center;
  position: relative;
  margin: 1rem 0;
}

.separator span {
  background: var(--color-white);
  padding: 0 1rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
  z-index: -1;
}

.url-input-section {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.url-input-section input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.url-input-section input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.add-url-btn {
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.add-url-btn:hover {
  background: #3730a3;
  transform: translateY(-1px);
}

/* Image Queue */
.image-queue {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.image-queue h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.image-queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.image-queue-item {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  position: relative;
  transition: all 0.2s ease;
}

.image-queue-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.image-info {
  font-size: 0.875rem;
  color: var(--color-text);
}

.image-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
  word-break: break-all;
}

.image-size {
  color: var(--color-text-light);
}

.remove-image {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ef4444;
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.remove-image:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.customize-btn {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.customize-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Global Settings */
.global-settings {
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.global-settings h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.cost-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.cost-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cost-label {
  font-weight: 500;
  color: var(--color-text);
}

.cost-value {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

#process-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

#process-btn:disabled:hover {
  background: #9ca3af;
  transform: none;
  box-shadow: none;
}

/* Enhanced Loading */
.loading-content {
  text-align: center;
  padding: 3rem 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.loading-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.progress-text {
  color: var(--color-text-light);
  font-size: 1rem;
}

/* Results Container */
.results-container {
  margin-top: 2rem;
}

.result-group {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.original-preview {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.result-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  color: var(--color-dark);
}

.result-meta {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.generated-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Prompt Display (Admin Debug) */
.prompt-container {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.prompt-details {
  cursor: pointer;
}

.prompt-summary {
  font-weight: 600;
  color: var(--color-primary);
  padding: 0.5rem 0;
  list-style: none;
  outline: none;
}

.prompt-summary::-webkit-details-marker {
  display: none;
}

.prompt-summary::before {
  content: '▶ ';
  font-size: 0.8em;
  transition: transform 0.2s ease;
}

.prompt-details[open] .prompt-summary::before {
  transform: rotate(90deg);
}

.prompt-content {
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text);
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
}

/* File validation and error states */
.drop-zone.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.drop-zone.error .upload-icon {
  color: #ef4444;
}

.image-queue-item.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.02);
}

.image-queue-item .error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 4px;
}

/* Enhanced loading states */
.image-preview.loading {
  position: relative;
  overflow: hidden;
}

.image-preview.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Download enhancements */
.download-btn {
  transition: all 0.2s ease;
}

.download-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .cost-summary {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .url-input-section {
    flex-direction: column;
  }
  
  .image-queue-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .drop-zone {
    padding: 2rem 1rem;
  }
  
  .drop-zone h3 {
    font-size: 1.25rem;
  }
  
  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .generated-results {
    grid-template-columns: 1fr;
  }
}

/* === INSTANT TEST SECTION === */
.instant-test {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.instant-test h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.instant-test p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.instant-test p strong {
    color: #181028;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.dropzone {
    background: rgba(255,255,255,0.18);
    border: 2px dashed #b6a6e2;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(80, 60, 180, 0.10);
    padding: 2.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.dropzone:hover {
    box-shadow: 0 12px 36px 0 rgba(80, 60, 180, 0.18);
    border-color: #7c3aed;
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #181028;
    margin-bottom: 0.25rem;
}

.upload-subtext {
    font-size: 1rem;
    color: #4f46e5;
}

.preview-container {
    display: none;
    margin-top: 2rem;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: filter 0.3s ease;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 15;
    color: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-overlay h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.loading-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.style-selector {
    display: none;
    margin-top: 2rem;
    text-align: center;
}

.style-selector h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: white;
}

.style-options {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.style-option {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
}

.style-option:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.style-option.selected {
    border-color: #10b981;
    background: #10b981;
    color: white;
}

.generate-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    margin-top: 1rem;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

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

.conversion-ui {
    text-align: center;
    margin-top: 2rem;
    animation: slideIn 0.5s ease-out;
}

.conversion-inline-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.05rem;
    color: #10b981;
    font-weight: 500;
    background: none;
    box-shadow: none;
    padding: 0;
}

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

.get-hd-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.get-hd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: none;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: none;
}

.hidden {
    display: none !important;
}

/* Email Popup Modal */
.email-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.email-modal {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.email-modal h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.email-modal p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.email-form input {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.email-form input:focus {
    outline: none;
    border-color: #667eea;
}

.magic-link-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.magic-link-btn:hover {
    transform: translateY(-2px);
}

.magic-link-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.privacy-text {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .instant-test {
        padding: 3rem 0;
    }
    
    .instant-test h1 {
        font-size: 2rem;
    }
    
    .dropzone {
        padding: 1.5rem 0.5rem;
    }
    
    .style-options {
        gap: 0.5rem;
    }
    
    .style-option {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
