:root {
    /* Base Colors */
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --secondary: #0EA5E9;
    --accent: #EC4899;
    --success: #10B981;
    --success-dark: #059669;
    --warning: #F59E0B;
    --warning-dark: #D97706;
    --error: #EF4444;
    --error-dark: #DC2626;
    --info: #3B82F6;
    
    /* Color Opacity Variants */
    --primary-10: rgba(37, 99, 235, 0.1);
    --primary-20: rgba(37, 99, 235, 0.2);
    --primary-30: rgba(37, 99, 235, 0.3);
    --primary-50: rgba(37, 99, 235, 0.5);
    --secondary-10: rgba(14, 165, 233, 0.1);
    --secondary-20: rgba(14, 165, 233, 0.2);
    --accent-10: rgba(236, 72, 153, 0.1);
    --accent-20: rgba(236, 72, 153, 0.2);
    --success-10: rgba(16, 185, 129, 0.1);
    --success-20: rgba(16, 185, 129, 0.2);
    --warning-10: rgba(245, 158, 11, 0.1);
    --warning-20: rgba(245, 158, 11, 0.2);
    --error-10: rgba(239, 68, 68, 0.1);
    --error-20: rgba(239, 68, 68, 0.2);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    --gradient-success: linear-gradient(135deg, var(--success) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 165, 233, 0.05) 50%, rgba(236, 72, 153, 0.05) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-card: #F8FAFC;
    --bg-overlay: rgba(15, 23, 42, 0.5);
    
    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #1F2937;
    --text-muted: #475569;
    --text-disabled: #94A3B8;
    --text-on-primary: #FFFFFF;
    
    /* Border Colors */
    --border: #E2E8F0;
    --border-light: #CBD5E1;
    --border-dark: #94A3B8;
    --border-primary: rgba(37, 99, 235, 0.3);
    
    /* Shadows - Enhanced System */
    --shadow-xs: 0 1px 1px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.14), 0 10px 10px -5px rgba(15, 23, 42, 0.06);
    --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    --shadow-primary: 0 4px 14px 0 rgba(37, 99, 235, 0.2);
    --shadow-primary-lg: 0 10px 25px 0 rgba(37, 99, 235, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(15, 23, 42, 0.06);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-strong: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-backdrop: blur(10px) saturate(180%);
    --glass-backdrop-strong: blur(20px) saturate(180%);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --radius-button: var(--radius-sm);
    --radius-card: var(--radius-lg);
    --radius-input: var(--radius-sm);
    
    /* Typography Scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Spacing System */
    --section-padding-y: 4rem;
    --section-padding-x: 2rem;
    --container-padding: 2rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

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

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: var(--leading-normal);
    font-size: var(--text-base);
    margin: 0;
    padding: 0;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: var(--leading-snug);
    letter-spacing: -0.02em;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: var(--leading-snug);
    letter-spacing: -0.015em;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: var(--leading-normal);
}

h5 {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: var(--leading-normal);
}

h6 {
    font-size: var(--text-base);
    font-weight: 600;
    line-height: var(--leading-normal);
}

p {
    margin-bottom: 1em;
    line-height: var(--leading-relaxed);
}

strong {
    font-weight: 600;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 0;
}

.container > footer {
    margin-bottom: 0;
}

/* Ensure no extra space after footer */
footer {
    margin-bottom: 0 !important;
}

footer + * {
    margin-top: 0 !important;
}

/* Header */


.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-label-text {
    display: flex;
    align-items: center;
}



.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-icon {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.btn:hover .btn-icon {
    transform: translateX(2px);
}


/* Success Notification */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.success-notification {
    animation: slideIn 0.3s ease;
}

/* Modern Header */
.header {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    transition: box-shadow var(--transition-base), background var(--transition-base);
}

.header.scrolled {
    background: var(--glass-bg-strong);
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Language Dropdown Styles */
.header-language-dropdown,
.footer-language-dropdown {
    position: relative;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown-button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

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

.language-dropdown-button:hover::before {
    left: 100%;
}

.language-dropdown-button:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.language-dropdown-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.language-dropdown.open .language-dropdown-button {
    border-color: var(--primary);
    background: var(--primary-10);
    box-shadow: var(--shadow-md);
}

.language-dropdown-button:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10), var(--shadow-md);
}

.language-button-flag {
    font-size: 1.25rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.language-button-text {
    font-size: 0.875rem;
    font-weight: 600;
}

.language-dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    margin-left: 0.25rem;
}

.language-dropdown.open .language-dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    min-width: 200px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem;
}

.language-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown-menu::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 3px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.language-dropdown.open .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    position: relative;
    margin-bottom: 0.25rem;
}

.language-option:last-child {
    margin-bottom: 0;
}

.language-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
    transition: all 0.2s ease;
}

.language-option:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
    padding-left: 1.25rem;
}

.language-option:hover::before {
    transform: translateY(-50%) scaleY(1);
    height: 60%;
}

.language-option.active {
    background: linear-gradient(90deg, var(--primary-10) 0%, transparent 100%);
    color: var(--primary);
    font-weight: 600;
    padding-left: 1.25rem;
}

.language-option.active::before {
    transform: translateY(-50%) scaleY(1);
    height: 60%;
}

.language-option-flag {
    font-size: 1.375rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease;
}

.language-option:hover .language-option-flag {
    transform: scale(1.1);
}

.language-option-text {
    flex: 1;
    font-weight: 500;
}

.language-option.active .language-option-text {
    font-weight: 600;
}

.language-option-check {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.language-option.active .language-option-check {
    opacity: 1;
    transform: scale(1);
}

/* Header Language Dropdown */
.header-language-dropdown {
    margin-left: auto;
}

/* Footer Language Dropdown */
.footer-language-dropdown {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.footer-language-dropdown .language-dropdown-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-8px) scale(0.95);
}

.footer-language-dropdown .language-dropdown.open .language-dropdown-menu {
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Legacy logo styles for other sections */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo h1,
.logo span {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0 3rem;
    padding: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step:last-child::after {
    display: none;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--success);
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 1.2rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

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

/* Batch Mode Toggle */
.batch-mode-toggle {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.batch-toggle-wrapper {
    width: 100%;
    max-width: 600px;
}


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

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Batch File List */
.batch-file-list {
    margin-top: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.batch-file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.batch-file-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.batch-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.batch-file-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.batch-file-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.batch-file-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-primary);
}

.batch-file-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.batch-file-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.batch-file-card:hover .batch-file-overlay {
    opacity: 1;
}

.batch-file-remove {
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.batch-file-remove:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.batch-file-info {
    padding: 0.75rem;
}

.batch-file-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.batch-file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
}

.batch-file-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.batch-file-status[data-status="pending"] .status-indicator {
    background: var(--text-muted);
}

.batch-file-status[data-status="processing"] .status-indicator {
    background: var(--primary);
    animation: pulse 1.5s infinite;
}

.batch-file-status[data-status="complete"] .status-indicator {
    background: var(--success);
}

.batch-file-status[data-status="error"] .status-indicator {
    background: var(--error);
}

.status-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.batch-file-progress {
    margin-top: 0.5rem;
}

.progress-bar-mini {
    width: 100%;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.upload-area {
    border: 3px dashed var(--border-light);
    border-radius: var(--radius-xl);
    padding: 5rem 2rem;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: left var(--transition-slower);
    z-index: 0;
}

.upload-area::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-xl);
    padding: 3px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

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

.upload-area:hover::after {
    opacity: 0.3;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--glass-bg-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-10);
    transform: scale(1.02);
    box-shadow: var(--shadow-primary-lg), 0 0 0 4px var(--primary-20);
}

.upload-area.dragover::after {
    opacity: 1;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.upload-icon {
    color: var(--primary);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.upload-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--primary-10);
    border-radius: var(--radius-full);
    z-index: 1;
    transition: all var(--transition-base);
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px) scale(1.05);
}

.upload-area:hover .upload-icon-bg {
    background: var(--primary-20);
    transform: translate(-50%, -50%) scale(1.1);
}

.upload-area.dragover .upload-icon {
    transform: translateY(-8px) scale(1.1);
    animation: iconBounce 1s ease-in-out infinite;
}

.upload-area.dragover .upload-icon-bg {
    background: var(--primary-30);
    transform: translate(-50%, -50%) scale(1.15);
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(-8px) scale(1.1);
    }
    50% {
        transform: translateY(-12px) scale(1.15);
    }
}

.upload-area h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

.browse-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.upload-formats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.format-badge {
    padding: 0.4rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.file-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Preview Section */
.preview-section {
    margin-top: 2rem;
    animation: slideUp 0.4s ease;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.preview-header h3 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    font-weight: 600;
    line-height: var(--leading-tight);
}

.btn-change-image {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-button);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-base);
}

.btn-change-image:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-10);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.preview-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.preview-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.preview-box:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

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

.preview-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.preview-icon {
    font-size: 1.5rem;
}

.preview-label h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.preview-arrow {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--primary-10);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    animation: arrowPulse 2s ease-in-out infinite;
}

.preview-arrow:hover {
    background: var(--primary-20);
    transform: scale(1.1);
    animation: none;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(8px) scale(1.05);
    }
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid var(--border);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-inner);
}

.preview-box:hover .image-wrapper {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm), var(--shadow-inner);
}

.image-wrapper img,
.image-wrapper svg {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#svgOutput {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}

.image-format {
    padding: 0.375rem 0.875rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.image-wrapper:hover .image-format {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.placeholder-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    padding: 2rem;
}

.placeholder-state svg {
    opacity: 0.5;
}

.placeholder-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.success-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
    z-index: 10;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Loading Spinner */
.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.8);
    border-radius: var(--radius-sm);
    z-index: 5;
    backdrop-filter: blur(4px);
}

.spinner-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.spinner-ring {
    width: 64px;
    height: 64px;
    border: 4px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.6;
}

.loading-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.loading-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* Settings Panel */
.settings-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    animation: slideUp 0.4s ease;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.settings-title-group h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.settings-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.toggle-settings {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-settings:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.toggle-settings svg {
    transition: transform 0.3s ease;
}

.settings-panel.collapsed .toggle-settings svg {
    transform: rotate(180deg);
}

.settings-content-inner {
    display: grid;
    gap: 2rem;
}

.settings-divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

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

.label-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.25rem;
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.setting-label-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.setting-subtext {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.setting-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.setting-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mode-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.mode-btn:hover {
    border-color: var(--primary-light);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.mode-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Advanced Settings */
.advanced-settings-group {
    margin-top: 1.5rem;
}

.advanced-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.advanced-settings-title-group {
    flex: 1;
}

.setting-subtext {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.settings-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.settings-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.settings-tab:hover {
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.1);
}

.settings-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

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

.advanced-settings {
    display: block;
}

.slider-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-primary);
}

.slider-group .value {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.slider-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.slider-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.slider-title-group {
    flex: 1;
}

.slider-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.slider-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.slider-value {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

.slider-input {
    width: 100%;
    margin: 0.75rem 0;
}

.slider-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    gap: 0.5rem;
}

.slider-range {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.slider-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.slider-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E2E8F0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
    border: 2px solid white;
}

.slider-input::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.15);
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.4);
}

.slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
}

.slider-input::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.15);
}

/* Larger slider thumbs for touch devices */
@media (hover: none) and (pointer: coarse) {
    .slider-input::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .slider-input::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
    
    .slider-input {
        height: 8px;
    }
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.2;
}

.chip.soft {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.25);
}

.chip.subtle {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-secondary);
    border-color: rgba(148, 163, 184, 0.2);
}

.slider-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.spline-option {
    display: none;
}

.spline-option.active {
    display: flex;
}

/* Presets */
.preset-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.preset-btn {
    padding: 1.25rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.preset-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preset-icon {
    font-size: 2rem;
    line-height: 1;
}

.preset-name {
    font-size: 1rem;
    font-weight: 600;
}

.preset-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Action Buttons */
.action-section {
    margin-bottom: 2rem;
    text-align: center;
}

.action-buttons-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--radius-button);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    line-height: var(--leading-normal);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: var(--text-lg);
    font-weight: 600;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    min-width: 200px;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
    filter: brightness(1.05);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-primary);
}

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

.btn-success {
    background: var(--gradient-success);
    color: var(--text-on-primary);
    min-width: 200px;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.2);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px 0 rgba(16, 185, 129, 0.3);
    filter: brightness(1.05);
}

.btn-success:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.2);
}

.btn-text {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
    box-shadow: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-text:hover:not(:disabled) {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

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

/* Progress Bar */
.progress-container {
    margin: 2rem 0;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    animation: slideUp 0.4s ease;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.progress-percent {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    border-radius: 8px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    overflow: hidden;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.progress-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Hero Section */
.hero-section {
    margin: 2rem 0 2rem;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-hero);
    opacity: 0.5;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10%, -10%) rotate(180deg); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

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

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: var(--primary-10);
    transform: translateY(-2px);
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: var(--leading-tight);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
    line-height: var(--leading-normal);
}

/* Features Section */
.features-section {
    margin: 4rem 0;
    padding: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Converter Section */
.converter-section {
    margin: 2rem 0 4rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.converter-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Use Cases Section */
.use-cases-section {
    margin: 4rem 0;
    padding: 3rem 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.use-case-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.use-case-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.use-case-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.use-case-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    margin-top: 6rem;
    padding: 4rem 0 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-brand .logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.footer-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-stats .stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.footer-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 12px;
}

.footer-links a:hover::before {
    width: 8px;
}

.footer-bottom {
    background: var(--bg-primary);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    margin-bottom: 0;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-meta span {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-weight: 500;
}

/* SEO Content Section */
.seo-content-section {
    margin: 4rem 0;
    padding: 3rem 0;
}

.seo-article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.seo-article h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.seo-article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.seo-article p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.seo-article ul,
.seo-article ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.seo-article li {
    margin-bottom: 0.75rem;
}

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

.seo-article a {
    color: var(--primary-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.seo-article a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

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

.comparison-item {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.comparison-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.comparison-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.comparison-item:first-child h4 {
    border-bottom-color: var(--primary);
}

.comparison-item:last-child h4 {
    border-bottom-color: var(--secondary);
}

.comparison-item ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.comparison-item li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.comparison-item li:last-child {
    border-bottom: none;
}

.comparison-item li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 0.75rem;
    vertical-align: middle;
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
    padding: 3rem 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .preview-container {
        grid-template-columns: 1fr;
    }
    
    .preview-arrow {
        display: none;
    }
    
    .step-indicator {
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .step::after {
        display: none;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .action-buttons-wrapper {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }

    .batch-files-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .batch-file-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .upload-area {
        padding: 3rem 1.5rem;
    }
    
    .upload-icon {
        width: 56px;
        height: 56px;
    }
    
    .upload-icon-bg {
        width: 80px;
        height: 80px;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .settings-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .preset-icon {
        font-size: 1.5rem;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .settings-panel {
        padding: 1.5rem;
    }

    .action-section {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-content {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .header-logo h1 {
        font-size: 1.25rem;
    }
    
    .header-logo img {
        width: 32px;
        height: 32px;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .credit-display {
        display: none; /* Hide credits on mobile to save space */
    }
    
    .credit-text {
        font-size: 0.8125rem;
    }
    
    .user-menu-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .user-name {
        display: none; /* Hide name on mobile */
    }
    
    .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .setting-label-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .advanced-settings-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .settings-tabs {
        width: 100%;
        justify-content: stretch;
    }
    
    .settings-tab {
        flex: 1;
        text-align: center;
    }
    
    .slider-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .slider-card {
        padding: 1.25rem;
    }
    
    /* Larger slider thumbs on mobile for better touch interaction */
    .slider-input::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    .slider-input::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
    
    .slider-input {
        height: 7px;
    }
    
    .slider-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comparison-item {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .footer-links {
        align-items: flex-start;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1.5rem;
    }
    
    .footer-meta {
        justify-content: center;
    }
    
    .converter-section {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .seo-article {
        padding: 2rem 1.5rem;
    }
    
    .seo-article h2 {
        font-size: 1.75rem;
    }
    
    .seo-article h3 {
        font-size: 1.25rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
    }
    
    /* Authentication Modal Responsive */
    .auth-modal {
        max-width: 100%;
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .auth-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .auth-logo img {
        width: 40px;
        height: 40px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.875rem;
    }
    
    .auth-tabs {
        padding: 0 1rem;
    }
    
    .auth-tab {
        padding: 0.875rem 1rem;
        font-size: 0.75rem;
    }
    
    .auth-content {
        padding: 1.5rem 1rem;
    }
    
    .form-group input {
        padding: 0.75rem 0.875rem 0.75rem 2.75rem;
        font-size: 0.9375rem;
    }
    
    .input-icon {
        width: 18px;
        height: 18px;
        left: 0.875rem;
    }
    
    .form-help {
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .form-help svg {
        width: 14px;
        height: 14px;
    }
    
    .form-options {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .checkbox-label {
        font-size: 0.8125rem;
    }
    
    .auth-links {
        margin-top: 1.25rem;
    }
    
    .auth-link {
        font-size: 0.8125rem;
        margin-left: auto;
    }
    
    .auth-link svg {
        width: 14px;
        height: 14px;
    }
    
    .auth-divider {
        margin: 1.5rem 0 1.25rem;
    }
    
    .auth-divider span {
        font-size: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .btn-oauth {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .btn-oauth svg {
        width: 18px;
        height: 18px;
    }
    
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .btn-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Batch Lock Message Responsive */
    .batch-lock-message {
        padding: 0.875rem;
        margin-top: 0.75rem;
    }
    
    .lock-message-content {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .lock-message-icon {
        width: 18px;
        height: 18px;
    }
    
    .lock-message-text strong {
        font-size: 0.875rem;
    }
    
    .lock-message-text span {
        font-size: 0.8125rem;
    }
    
    .batch-lock-message .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Credit Modal Responsive */
    .credit-modal {
        max-width: 95%;
        margin: 0.5rem;
    }
    
    .credit-modal-content {
        padding: 1.5rem 1rem;
    }
    
    .credit-modal-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    
    .credit-modal-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .credit-modal-title {
        font-size: 1.25rem;
    }
    
    .credit-modal-message {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
    
    .credit-modal-info {
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
    }
    
    .credit-info-item {
        padding: 0.625rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .credit-label {
        font-size: 0.8125rem;
    }
    
    .credit-value {
        font-size: 1rem;
    }
    
    .credit-modal-actions {
        gap: 0.625rem;
    }
    
    /* Toggle Switch Responsive */
    .toggle-switch {
        gap: 0.625rem;
    }
    
    .toggle-slider {
        width: 44px;
        height: 22px;
    }
    
    .toggle-slider::before {
        width: 16px;
        height: 16px;
        left: 2px;
        top: 2px;
    }
    
    .toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
        transform: translateX(22px);
    }
    
    .toggle-label {
        font-size: 0.875rem;
        gap: 0.375rem;
    }
    
    .lock-icon {
        width: 14px;
        height: 14px;
        margin-left: 0.375rem;
    }
    
    /* User Menu Responsive */
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .user-dropdown {
        min-width: 180px;
        right: 0;
    }
    
    /* Format Badges Responsive */
    .format-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }
    
    /* Step Indicator Responsive */
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    /* Progress Bar Responsive */
    .progress-label {
        font-size: 0.875rem;
    }
    
    .progress-percent {
        font-size: 0.875rem;
    }
    
    .progress-text {
        font-size: 0.8125rem;
    }
    
    /* Modal Close Button Responsive */
    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.375rem;
    }
    
    .modal-close svg {
        width: 20px;
        height: 20px;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .auth-tab {
        min-height: 44px;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    .batch-file-remove {
        min-width: 32px;
        min-height: 32px;
    }
    
    .checkbox-label {
        min-height: 44px;
        padding: 0.5rem 0;
    }
    
    .auth-link {
        min-height: 44px;
        padding: 0.5rem;
        display: inline-flex;
        align-items: center;
    }
}

/* Extra Small Devices (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .header-content {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .header-logo h1 {
        font-size: 1.125rem;
    }
    
    .header-logo img {
        width: 28px;
        height: 28px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .auth-modal {
        margin: 0.25rem;
        border-radius: var(--radius);
    }
    
    .auth-header {
        padding: 1.25rem 0.875rem 0.875rem;
    }
    
    .auth-logo img {
        width: 36px;
        height: 36px;
    }
    
    .auth-title {
        font-size: 1.375rem;
    }
    
    .auth-content {
        padding: 1.25rem 0.875rem;
    }
    
    .auth-tabs {
        padding: 0 0.875rem;
    }
    
    .auth-tab {
        padding: 0.75rem 0.875rem;
        font-size: 0.6875rem;
    }
    
    .form-group input {
        padding: 0.625rem 0.75rem 0.625rem 2.5rem;
        font-size: 0.875rem;
    }
    
    .input-icon {
        width: 16px;
        height: 16px;
        left: 0.75rem;
    }
    
    .btn-large {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-oauth {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        width: 48px;
        height: 48px;
    }
    
    .upload-icon-bg {
        width: 64px;
        height: 64px;
    }
    
    .upload-area h2 {
        font-size: 1.25rem;
    }
    
    .upload-subtitle {
        font-size: 0.875rem;
    }
    
    .batch-mode-toggle {
        margin-bottom: 1rem;
    }
    
    .batch-lock-message {
        padding: 0.75rem;
    }
    
    .lock-message-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
    }
    
    .lock-message-text {
        text-align: center;
    }
    
    .credit-modal-content {
        padding: 1.25rem 0.875rem;
    }
    
    .credit-modal-icon {
        width: 40px;
        height: 40px;
    }
    
    .credit-modal-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .credit-modal-title {
        font-size: 1.125rem;
    }
    
    .credit-modal-info {
        padding: 1rem 0.875rem;
    }
    
    .slider-card {
        padding: 1rem;
    }
    
    .slider-title {
        font-size: 0.9375rem;
    }
    
    .slider-meta {
        font-size: 0.75rem;
    }
    
    .preset-btn {
        padding: 1rem 0.875rem;
    }
    
    .preset-icon {
        font-size: 1.25rem;
    }
    
    .preset-name {
        font-size: 0.9375rem;
    }
    
    .preset-desc {
        font-size: 0.75rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h4 {
        font-size: 1.125rem;
    }
    
    .use-case-item {
        padding: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9375rem;
    }
    
    .seo-article {
        padding: 1.5rem 1rem;
    }
    
    .seo-article h2 {
        font-size: 1.5rem;
    }
    
    .seo-article h3 {
        font-size: 1.125rem;
    }
    
    .comparison-item {
        padding: 1.5rem;
    }
    
    .comparison-item h4 {
        font-size: 1.125rem;
    }
    
    .credit-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .credit-icon {
        width: 16px;
        height: 16px;
    }
    
    .toggle-label-text {
        font-size: 0.8125rem;
    }
    
    .batch-toggle-wrapper {
        max-width: 100%;
    }
    
    /* Ensure touch targets are large enough */
    .btn {
        min-height: 44px;
    }
    
    .auth-tab {
        min-height: 44px;
    }
    
    .form-group input {
        min-height: 44px;
    }
    
    .checkbox-label {
        min-height: 44px;
    }
    
    .auth-link {
        min-height: 44px;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    .batch-file-remove {
        min-width: 36px;
        min-height: 36px;
    }
    
    .user-menu-button {
        min-height: 40px;
    }
    
    .btn-oauth {
        min-height: 44px;
    }
    
    /* Hero Section Extra Small */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Converter Section Extra Small */
    .converter-section {
        padding: 1.5rem 0.75rem;
        margin: 1.5rem 0;
    }
    
    .converter-header {
        margin-bottom: 2rem;
    }
    
    /* Settings Panel Extra Small */
    .settings-panel {
        padding: 1.25rem 0.875rem;
    }
    
    .setting-group {
        margin-bottom: 1.25rem;
    }
    
    .setting-label {
        font-size: 0.875rem;
    }
    
    .button-group {
        gap: 0.5rem;
    }
    
    .mode-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    /* Preview Section Extra Small */
    .preview-section {
        padding: 1.25rem 0.875rem;
    }
    
    .preview-header h4 {
        font-size: 1rem;
    }
    
    /* Action Section Extra Small */
    .action-section {
        padding: 1.25rem 0.875rem;
    }
    
    .action-buttons-wrapper {
        gap: 0.75rem;
    }
}

/* Landscape Mobile (< 768px landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .auth-modal {
        max-height: 90vh;
    }
    
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .converter-section {
        padding: 1.5rem 1rem;
    }
}

/* Tablet Specific (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-content {
        padding: 1rem 1.75rem;
    }
    
    .auth-modal {
        max-width: 450px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .batch-files-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .credit-display {
        display: flex;
    }
    
    .credit-badge {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        min-width: 100px;
        gap: 0.625rem;
    }
    
    .credit-icon-wrapper {
        width: 28px;
        height: 28px;
    }
    
    .credit-icon {
        width: 18px;
        height: 18px;
    }
    
    .credit-text {
        font-size: 0.8125rem;
    }
    
    .credit-subtext {
        font-size: 0.6875rem;
    }
    
    .credit-tooltip {
        min-width: 180px;
    }
    
    .tooltip-content {
        font-size: 0.75rem;
        padding: 0.625rem 0.875rem;
    }
}


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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.preview-section,
.settings-panel,
.action-section {
    animation: fadeIn 0.3s ease;
}

.hero-section {
    animation: slideUp 0.6s ease;
}

.features-section,
.use-cases-section {
    animation: fadeIn 0.8s ease;
}

.feature-card,
.use-case-item {
    animation: fadeIn 0.5s ease;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Print Styles */
@media print {
    .header,
    .user-menu-container,
    .credit-display,
    .action-section,
    .batch-mode-toggle,
    .auth-modal,
    .credit-modal,
    .modal-overlay {
        display: none !important;
    }
    
    .converter-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility: Ensure minimum touch target sizes on mobile */
@media (max-width: 768px) {
    button:not(.modal-close):not(.batch-file-remove),
    .btn:not(.btn-text),
    .auth-tab,
    .auth-link,
    .checkbox-label,
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="text"] {
        min-height: 44px;
    }
    
    .modal-close,
    .batch-file-remove {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Prevent iOS text size adjustment */
    input[type="email"],
    input[type="password"],
    input[type="text"] {
        font-size: 16px !important;
    }
}

