/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark theme colors */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --border-color: #404040;
    --border-light: #262626;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.05);
    --accent-color: #ffffff;
    --accent-hover: #e5e5e5;
    --button-bg: #ffffff;
    --button-text: #000000;
    --button-hover: #f5f5f5;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

[data-theme="light"] {
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-hover: rgba(0, 0, 0, 0.04);
    --accent-color: #0f172a;
    --accent-hover: #1e293b;
    --button-bg: #0f172a;
    --button-text: #ffffff;
    --button-hover: #1e293b;
    --success-color: #059669;
    --error-color: #dc2626;
    --warning-color: #d97706;
    --info-color: #2563eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Mobile-first responsive container */
@media (max-width: 768px) {
    .container {
        width: 98%;
        max-width: 98%;
        padding: 0 1%;
        margin: 0 auto;
    }
}

/* Header */
.header {
    padding: 20px 0;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.currency-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    color: var(--text-secondary);
}

.rate-status:hover {
    background: var(--glass-hover);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.rate-status.loading {
    animation: spin 1s linear infinite;
    color: var(--info-color);
}

.rate-status.success {
    color: var(--success-color);
}

.rate-status.error {
    color: var(--error-color);
}

.currency-dropdown {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    min-width: 80px;
}

.currency-dropdown:hover {
    background: var(--glass-hover);
    border-color: var(--text-secondary);
}

.currency-dropdown:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: var(--logo-filter, none);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-color), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-primary), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 8px;
}

.version {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Footer version styling */
.footer .version {
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 8px;
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.theme-toggle:hover {
    background: var(--glass-hover);
    transform: translateY(-1px);
}

.theme-toggle .light-icon,
.theme-toggle .dark-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .light-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .dark-icon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .theme-toggle .light-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="light"] .theme-toggle .dark-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-height: 100vh;
    padding: 24px 0;
    margin: 0 20px;
    border-radius: 16px;
   
}

/* Upload Header */
.upload-header {
    padding: 32px 32px 24px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.upload-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.upload-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Navigation Section */
.nav-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px 20px;
}

.tab-navigation {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    gap: 8px;
}

.tab-btn:hover:not(:disabled) {
    color: var(--text-primary);
    background: var(--glass-hover);
}

.tab-btn.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.tab-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Coming soon styles removed for mobile optimization */

/* Modern Card */
.modern-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Glass Card (Legacy) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: var(--glass-border);
    transform: translateY(-2px);
}

.glass-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.glass-card h2 i {
    color: var(--text-primary);
    opacity: 0.8;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Image Preview Section */
.image-preview-section {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.preview-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-title i {
    color: var(--accent-color);
}

/* Modern Upload Area */
.modern-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 32px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.modern-upload-area:hover {
    border-color: var(--text-secondary);
    background: var(--glass-hover);
}

.modern-upload-area.dragover {
    border-color: var(--info-color);
    background: var(--glass-bg);
}

.upload-icon-large {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid var(--border-color);
}

.upload-icon-large i {
    font-size: 40px;
    color: var(--text-secondary);
}

.modern-upload-btn {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modern-upload-btn:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Legacy Upload Section */
.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
}



.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: var(--glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.upload-area.dragover {
    border-color: var(--accent-color);
    background: var(--glass-hover);
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.upload-area.clicking {
    border-color: var(--accent-color);
    background: var(--glass-hover);
    transform: scale(0.98);
    transition: all 0.1s ease;
}

.upload-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.upload-icon i {
    font-size: 2rem;
    color: white;
}

.upload-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Paste indicator */
.upload-area.paste-active {
    border-color: var(--accent-color);
    background: var(--glass-hover);
    transform: scale(1.02);
}

.upload-area.paste-active::before {
    content: '📋 Paste your image here';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass-bg);
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    color: var(--text-primary);
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
}

.upload-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.upload-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.upload-btn i {
    font-size: 0.9rem;
}

/* Image Preview */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 2px;
}

.preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Generate Button */
.generate-btn {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.generate-btn:hover:not(:disabled) {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

/* Loading Modal */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.loading-modal-content {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.15);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    animation: spin 1.2s ease-in-out infinite;
    margin: 0 auto 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.loading-modal-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-modal-content p {
    color: #f8f9fa;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.loading-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #f8f9fa);
    border-radius: 4px;
    animation: progressPulse 2s ease-in-out infinite;
    width: 30%;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

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

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

@keyframes progressPulse {
    0%, 100% {
        width: 30%;
        opacity: 0.7;
    }
    50% {
        width: 70%;
        opacity: 1;
    }
}

/* Dark theme loading adjustments */
[data-theme="dark"] .loading-spinner {
    border-color: rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .loading-overlay {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .progress-bar {
    background: rgba(255, 255, 255, 0.05);
}

/* Error State */
.error-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 60px 20px;
}

.error-content {
    text-align: center;
    max-width: 450px;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.error-icon i {
    font-size: 2rem;
    color: #d97706;
}

.error-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.error-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.8;
}

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

.retry-btn, .help-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.retry-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.help-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.help-btn:hover {
    background: var(--glass-hover);
    transform: translateY(-1px);
}

/* Dark theme error adjustments */
[data-theme="dark"] .error-icon {
    background: linear-gradient(135deg, #451a03, #78350f);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .error-icon i {
    color: #fbbf24;
}

/* Modern Results Card */
.modern-results-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.modern-results-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.results-header {
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.results-title-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.results-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.sku-info, .draft-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.results-image-preview {
    width: 64px;
    height: 64px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.results-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modern Pricing Section */
.modern-pricing-section {
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
}

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

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modern-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.modern-price-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
    text-align: center;
}

.modern-price-card:hover {
    background: var(--glass-hover);
    transform: translateY(-1px);
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-align: center;
}

.price-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-align: center;
}

.price-description {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* Results Footer */
.results-footer {
    padding: 32px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 16px 16px;
    margin-top: 20px;
}

.footer-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.footer-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.download-btn:hover {
    background: var(--glass-hover);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Results Content */
.results-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 40px 30px;
}

.result-group h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
}

.result-group h3 i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.result-group h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.copy-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Description container should be block layout */
.description-container {
    display: block;
}

/* Description Preview */
.description-preview {
    width: 100%;
    min-height: 200px;
    max-height: 600px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.description-preview strong {
    font-weight: 600;
    color: var(--text-primary);
}

.description-preview ul {
    margin: 16px 0;
    padding-left: 20px;
}

.description-preview li {
    margin: 8px 0;
    line-height: 1.5;
}

.description-preview br {
    line-height: 1.8;
}

/* Description Textarea */
.description-textarea {
    width: 100%;
    min-height: 200px;
    max-height: 600px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.description-textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.description-textarea:read-only {
    cursor: default;
    background: var(--glass-bg);
}

.description-textarea:not(:read-only) {
    cursor: text;
    background: var(--bg-secondary);
}

.description-textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.content-box {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 60px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-box:hover::before {
    opacity: 1;
}

.content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.content-box.description-box {
    min-height: 120px;
    max-height: none;
    white-space: pre-wrap;
    overflow: visible;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
    display: block !important;
    align-items: stretch !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 32px;
    padding-bottom: 40px;
}

.content-box.description-box::-webkit-scrollbar {
    width: 6px;
}

.content-box.description-box::-webkit-scrollbar-track {
    background: transparent;
}

.content-box.description-box::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.content-box.description-box::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}


/* Description header with tabs */
.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.description-tabs {
    display: flex;
    gap: 0.5rem;
}

.description-tabs .tab-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-tabs .tab-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.description-tabs .tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Source code view */
.description-box.code-view {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    background: var(--code-bg, #f8f9fa);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Preview view */
.description-box.preview-view {
    font-family: inherit;
    line-height: 1.6;
}

/* Style headers within description box */
.content-box.description-box h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.content-box.description-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 12px 0 6px 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.content-box.description-box h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 14px 0 7px 0;
    color: var(--text-primary);
    line-height: 1.4;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3px;
}

.content-box.description-box br {
    line-height: 1.6;
}

/* Historic Data Box */
.content-box.historic-data-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-color);
    padding: 32px;
    padding-left: 48px;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 80px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

.content-box.historic-data-box::before {
    content: '📊';
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: 50%;
    font-size: 14px;
}

.content-box.historic-data-box strong {
    color: var(--accent-color);
    font-weight: 600;
}

.content-box.historic-data-box em {
    color: var(--text-secondary);
    font-style: italic;
}

/* Removed gradient overlay that was blocking content */

/* Removed scroll indicator to prevent content interference */

.description-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}


.content-box.tags-box {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 32px;
}

.tag {
    background: var(--glass-bg);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tag:hover::before {
    left: 100%;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
    background: var(--glass-hover);
}

.copy-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    position: relative;
    overflow: hidden;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-btn:hover::before {
    opacity: 1;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.copy-btn i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.copy-btn:hover i {
    color: white;
}

.copy-btn.small {
    padding: 8px;
    min-width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

/* New listing section styles */
.new-listing-section {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.new-listing-btn {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.new-listing-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.new-listing-btn:active {
    transform: translateY(0);
}

/* Pricing Section */
.pricing-section {
    margin-bottom: 20px;
    margin-top: 30px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.price-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 12px 10px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.price-card:hover::before {
    opacity: 1;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.price-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-card .copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.price-card:hover .copy-btn {
    opacity: 1;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .modern-card {
        margin: 0;
        width: 100%;
    }
    
    .modern-results-card {
        margin: 0;
        width: 100%;
    }
    
    .nav-section {
        padding: 0 16px;
    }
    
    .tab-navigation {
        width: 100%;
        justify-content: center;
    }
    
    .tab-btn {
        flex: 1;
        justify-content: center;
    }
    
    .header-content {
        flex-direction: row;
        gap: 16px;
        text-align: left;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-controls {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }
    
    .currency-dropdown {
        min-width: 70px;
        font-size: 11px;
        padding: 4px 20px 4px 6px;
        background-position: right 4px center;
        background-size: 10px;
    }
    
    .logo {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        display: flex;
        align-items: center;
    }
    
    .logo-img {
        height: 24px;
        width: auto;
    }
    
    .modern-upload-area {
        margin: 16px;
        padding: 32px 16px;
    }
    
    .modern-pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .results-image-preview {
        align-self: flex-end;
    }
    
    .footer-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .download-btn, .new-listing-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .results-footer {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        text-align: center;
    }
    
    .copy-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn {
        align-self: flex-end;
    }
    
    .content-box.description-box {
        max-height: 150px;
    }
    
    .content-box.description-box.expanded {
        max-height: 300px;
    }
    
    .description-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .description-tabs {
        max-width: 100%;
        flex: none;
    }
    
    .description-controls {
        max-width: 100%;
        flex: none;
        justify-content: center;
        flex-direction: row;
        gap: 8px;
    }
    
}

@media (max-width: 480px) {
    .glass-card {
        padding: 20px;
    }
    
    .description-header {
        gap: 8px;
    }
    
    .description-controls {
        flex-direction: column;
        gap: 6px;
    }
    
    .edit-btn, .copy-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .upload-area {
        padding: 30px 12px;
    }
    
    .upload-content h3 {
        font-size: 1.2rem;
    }
    
    .generate-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Collapsible Historic Sales Data */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.collapsible-header:hover {
    opacity: 0.8;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    opacity: 0.7;
}

.collapsible-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.collapsible-content[style*="display: none"] {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.collapsible-content[style*="display: block"] {
    max-height: 1000px;
    opacity: 1;
    margin-top: 16px;
}

/* Description Header Layout */
.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

/* Description Tabs - Left Half */
.description-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--border-color);
    flex: 1;
    max-width: 50%;
}

/* Description Controls - Right Half */
.description-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    max-width: 50%;
}

/* Description Content Area */
.description-content-area {
    width: 100%;
}

.desc-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    position: relative;
}

.desc-tab-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.desc-tab-btn.active {
    background: var(--accent-color);
    color: var(--button-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.desc-tab-btn i {
    font-size: 14px;
}

.desc-tab-btn.active i {
    color: var(--button-text);
}

.desc-tab-content {
    display: none;
}

.desc-tab-content.active {
    display: block;
}

.code-container {
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin: 0;
    overflow-x: auto;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.code-container::before {
    content: '</>';
    position: absolute;
    top: 12px;
    right: 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    opacity: 0.6;
}

.code-container pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e6e6e6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
}

.code-container code {
    background: transparent;
    padding: 0;
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Syntax highlighting for HTML */
.code-container code {
    color: #e6e6e6;
}

.code-container code strong {
    color: #ffd700;
    font-weight: 600;
}

.code-container code ul {
    color: #87ceeb;
}

.code-container code li {
    color: #98fb98;
}

/* Edit Button */
.edit-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.edit-btn:hover {
    background: var(--glass-hover);
    transform: translateY(-1px);
    border-color: var(--accent-color);
}

/* Additional Notes Section */
.additional-notes-section {
    margin: 24px 0;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.notes-header {
    margin-bottom: 20px;
}

.notes-header h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-header h3 i {
    color: var(--accent-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.notes-content {
    position: relative;
}

.notes-textarea {
    width: 100%;
    min-height: 100px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    outline: none;
}

.notes-textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.notes-textarea::placeholder {
    color: var(--text-muted);
}

.notes-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
}

.char-count {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

/* Responsive design for notes section */
@media (max-width: 768px) {
    .additional-notes-section {
        margin: 16px 0;
        padding: 16px;
    }
    
    .notes-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .notes-tips {
        font-size: 11px;
    }
}

/* Model Selector Section */
.model-selector-section {
    margin: 24px 0;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.model-header {
    margin-bottom: 20px;
}

.model-header h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-header h3 i {
    color: var(--accent-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.model-content {
    position: relative;
}

.model-dropdown {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 44px;
}

.model-dropdown:hover {
    border-color: var(--accent-color);
    background-color: var(--glass-hover);
}

.model-dropdown:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.model-dropdown option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Main container adjustments */
    .container {
        width: 98% !important;
        max-width: 98% !important;
        margin: 0 auto;
        padding: 0 1%;
    }
    
    /* Header adjustments for mobile - single row like desktop */
    .header {
        flex-direction: row;
        gap: 16px;
        padding: 16px;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        flex: 1;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    
    /* Logo adjustments for mobile */
    .logo {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
    }
    
    /* Currency selector mobile - optimized for single row */
    .currency-selector {
        min-height: 32px;
        padding: 4px 6px;
        font-size: 11px;
        border-radius: 6px;
        touch-action: manipulation;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .currency-dropdown {
        min-width: 60px;
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Theme toggle mobile - smaller size */
    .theme-toggle {
        width: 32px;
        height: 32px;
        padding: 6px;
        border-radius: 8px;
    }
    
    
    /* Status indicator mobile - compact for single row */
    .status-indicator {
        width: 28px;
        height: 28px;
        min-height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    /* Dark mode toggle mobile - compact for single row */
    .theme-toggle {
        width: 36px;
        height: 36px;
        min-height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        font-size: 14px;
        transition: all 0.2s ease;
    }
    
    .theme-toggle:hover {
        transform: scale(1.05);
        background: var(--glass-hover);
    }
    
    .theme-toggle:active {
        transform: scale(0.95);
    }
    
    /* Mobile header visual improvements */
    .header {
        background: var(--glass-bg);
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    /* Mobile header spacing */
    .header-left .logo {
        flex: 1;
        text-align: left;
    }
    
    /* Mobile header animations */
    .header {
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* Mobile header touch feedback */
    .currency-selector:active,
    .status-indicator:active,
    .theme-toggle:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Mobile header focus states */
    .currency-selector:focus,
    .theme-toggle:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
    
    /* Navigation tabs - horizontal scroll on mobile */
    .tabs-container {
        width: 100%;
        overflow-x: auto;
        padding: 0 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tabs-container::-webkit-scrollbar {
        display: none;
    }
    
    .tabs {
        min-width: max-content;
        gap: 8px;
        padding: 8px 0;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Coming soon mobile styles removed */
    
    /* Upload section mobile optimization */
    .upload-section {
        margin: 16px 0;
    }
    
    .modern-card {
        padding: 16px;
        margin: 0;
    }
    
    .upload-header h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .upload-subtitle {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Upload area mobile */
    .upload-area {
        padding: 20px 16px;
        margin: 16px 0;
    }
    
    .upload-content h3 {
        font-size: 16px;
    }
    
    .upload-content p {
        font-size: 14px;
    }
    
    /* Model selector mobile */
    .model-selector-section {
        margin: 16px 0;
        padding: 16px;
    }
    
    .model-dropdown {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Additional notes mobile */
    .additional-notes-section {
        margin: 16px 0;
        padding: 16px;
    }
    
    .notes-textarea {
        min-height: 60px;
        padding: 12px;
        font-size: 14px;
    }
    
    /* Generate button mobile */
    .generate-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        margin: 20px 0;
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* Touch-friendly buttons */
    .upload-btn, .tab-btn, .model-dropdown {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Better touch targets */
    .image-item .remove-btn {
        width: 24px;
        height: 24px;
        min-height: 24px;
        font-size: 12px;
    }
    
    /* Image preview mobile */
    .image-preview {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .image-item {
        aspect-ratio: 1;
    }
    
    .image-item img {
        border-radius: 8px;
    }
    
    /* Results section mobile */
    .results-section {
        margin: 16px 0;
        padding: 0px;
    }
    
    .result-card {
        margin: 12px 0;
        padding: 16px;
    }
    
    .result-header h3 {
        font-size: 16px;
    }
    
    .result-content {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Footer mobile */
    .footer {
        padding: 16px;
        text-align: center;
        font-size: 12px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container {
        width: 98% !important;
        padding: 0 1%;
    }
    
    .header {
        padding: 12px;
        gap: 12px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .currency-selector {
        min-height: 32px;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .status-indicator {
        width: 24px;
        height: 24px;
        min-height: 24px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        min-height: 32px;
        font-size: 12px;
    }
    
    .modern-card {
        padding: 12px;
    }
    
    .upload-area {
        padding: 16px 12px;
    }
    
    .upload-content h3 {
        font-size: 14px;
    }
    
    .upload-content p {
        font-size: 12px;
    }
    
    .tab-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .generate-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

.edit-btn.editing {
    background: var(--accent-color);
    color: var(--button-text);
    border-color: var(--accent-color);
}

/* Smart Copy Button */
#copyDescriptionBtn {
    transition: all 0.2s ease;
}

#copyDescriptionBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile styles for results section */
@media (max-width: 768px) {
    .results-content {
        width: 98%;
        max-width: 98%;
        margin: 0 auto;
        padding: 20px 16px;
        gap: 30px;
    }
    
    .result-group h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        margin-top: 20px;
        gap: 8px;
    }
    
    .result-group h3 i {
        font-size: 1rem;
        width: 16px;
    }
    
    .copy-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .copy-btn {
        align-self: flex-end;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .content-box {
        padding: 16px;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .description-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .description-tabs {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .desc-tab-btn {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .description-controls {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .edit-btn, .copy-btn {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .footer-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .download-btn, .new-listing-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .results-footer {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        text-align: center;
    }
}
