* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on all elements */
*, *::before, *::after {
    max-width: 100%;
}

html {
    /* Smooth scrolling for all browsers */
    scroll-behavior: smooth;
    /* Better font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Prevent horizontal scroll */
    overflow-x: hidden;
    width: 100%;
}

/* Mobile-specific optimizations */
@supports (-webkit-touch-callout: none) {
    html {
        /* iOS Safari specific fixes */
        height: -webkit-fill-available;
    }
}

:root {
    --primary: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;
    --accent: #ec4899;
    --success: #10b981;
    --error: #ef4444;
    --bg-dark: #0a0a0f;
    --bg-card: #151520;
    --bg-elevated: #1a1a2e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e293b;
    --border-light: #334155;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --glow: 0 0 20px rgba(124, 58, 237, 0.3);
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    z-index: 1000;
    padding: 0;
    width: 100%;
    left: 0;
    right: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    box-sizing: border-box;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-badge {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
    margin-left: -0.25rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Desktop visibility: show desktop-only, hide mobile-only */
.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

.nav-item {
    position: relative;
}

.nav-item a,
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.nav-item a svg,
.dropdown-toggle svg {
    width: 20px;
    height: 20px;
}

/* Ensure text is visible on desktop by default */
.nav-item a span,
.dropdown-toggle span {
    display: inline-block;
}

.dropdown-arrow {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-item a:hover,
.dropdown-toggle:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
}

.nav-item.active a {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    min-width: 550px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.dropdown-header svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.dropdown-item:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown-item:hover svg {
    opacity: 1;
    color: var(--primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
    padding-top: 70px; /* Space for fixed navbar */
    padding-bottom: 2rem;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Mobile padding adjustment for notch/status bar: push content down under fixed nav */
@media (max-width: 768px) {
    .container {
        /* Increased to ensure header and first lines clear the fixed nav/notch */
        padding-top: 4rem;
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.5));
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Converter Card */
.converter-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.converter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.5), transparent);
}

/* Upload Section */
.upload-area {
    border: 2px dashed var(--border-light);
    border-radius: 1rem;
    padding: 3.5rem 2rem;
    text-align: center;
    background: var(--bg-elevated);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
}

.upload-area:hover::before {
    width: 300px;
    height: 300px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: var(--bg-elevated);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.upload-icon {
    width: 5rem;
    height: 5rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.3));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.6));
}

.upload-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.upload-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.btn-select {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-select:hover::before {
    left: 100%;
}

.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.6);
}

/* File Info */
.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.file-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.file-details {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.file-icon {
    font-size: 2.75rem;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.4));
}

.file-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.file-size {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-remove {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-remove svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-remove:hover {
    background: var(--error);
    color: white;
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Convert Button */
.btn-convert {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-convert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-convert:hover::before {
    left: 100%;
}

.btn-convert:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.6), 0 0 30px rgba(236, 72, 153, 0.3);
}

.btn-convert:active {
    transform: translateY(-1px);
}

.btn-convert:disabled {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    width: 1.5rem;
    height: 1.5rem;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-convert:not(:hover) .btn-icon {
    animation: none;
}

/* Crop Action Button - Minimalist style */
.btn-crop-action {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.btn-crop-action:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.btn-crop-action:active {
    transform: translateY(0);
}

.btn-crop-action:disabled {
    background: #64748b;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-crop-action svg {
    width: 18px;
    height: 18px;
}

/* Processing Spinner */
.processing-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Advanced Options */
.advanced-options {
    margin: 2rem 0;
}

.btn-advanced {
    width: 100%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-light);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-advanced:hover {
    border-color: var(--primary);
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
}

.btn-advanced svg {
    width: 20px;
    height: 20px;
}

.btn-advanced .arrow-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.btn-advanced.active .arrow-icon {
    transform: rotate(180deg);
}

.options-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    animation: slideDown 0.3s ease;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 2rem;
    }
    to {
        opacity: 1;
        max-height: 1000px;
        padding: 2rem;
    }
}

.option-group {
    margin-bottom: 2rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.option-group label svg {
    color: var(--primary-light);
}

.option-group select {
    width: 100%;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.option-group select:hover {
    border-color: var(--primary);
}

.option-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.option-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border-light);
}

.volume-control input[type="range"] {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.5);
    transition: all 0.2s ease;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.8);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.5);
}

.volume-value {
    min-width: 50px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.05rem;
}

.option-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-option:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.checkbox-option input[type="checkbox"]:checked + label {
    color: var(--text-primary);
}

.checkbox-option label svg {
    width: 16px;
    height: 16px;
    color: var(--primary-light);
}

/* Progress Section */

/* Video preview + timeline */
.video-preview-wrapper {
    margin: 1rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline {
    position: relative;
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(124,58,237,0.25), rgba(236,72,153,0.08));
    border-radius: 999px;
    outline: none;
    position: absolute;
    left: 0;
}

.timeline input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.06);
}

.timeline input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    cursor: pointer;
}

/* make the end handle above the start handle so they don't conflict */
#rangeStart { z-index: 1; }
#rangeEnd { z-index: 2; }

.timeline-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.timeline-info span {
    color: var(--text-muted);
    font-weight: 700;
}

.btn-advanced {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* small responsive tweaks */
@media (max-width: 600px) {
    .timeline-info { flex-direction: column; align-items: stretch; gap: 0.5rem; }
}

/* Photo Crop Canvas */
.photo-preview-wrapper {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

#photoCropCanvas {
    display: block;
    max-width: 100%;
    height: auto;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: move;
}

.canvas-instructions {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 0.5rem;
}

.canvas-instructions .desktop-hint {
    display: inline;
}

.canvas-instructions .mobile-hint {
    display: none;
}

/* Mobile-specific hints */
@media (max-width: 768px) {
    .canvas-instructions .desktop-hint {
        display: none;
    }
    
    .canvas-instructions .mobile-hint {
        display: inline;
        font-size: 0.85rem;
    }
}

.progress-section {
    margin-top: 2rem;
    animation: fadeIn 0.4s ease;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-radius: 1rem;
    border: 1px solid var(--border-light);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--border);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(124, 58, 237, 0.3), 
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.3s ease;
    animation: gradient 2s ease infinite, pulse 1.5s ease-in-out infinite;
    border-radius: 1rem;
    position: relative;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Success Section */
.success-section {
    text-align: center;
    padding: 2.5rem 0;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 0.6s ease;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.5));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.success-section h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--success);
    font-weight: 700;
}

.success-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1.125rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
}

.btn-new {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-new:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Error Section */
.error-section {
    text-align: center;
    padding: 2.5rem 0;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
}

.error-section h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--error);
    font-weight: 700;
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.btn-retry {
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 1.125rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-retry:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.6);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1.25rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.info-card:nth-child(1) { animation-delay: 0.4s; }
.info-card:nth-child(2) { animation-delay: 0.5s; }
.info-card:nth-child(3) { animation-delay: 0.6s; }

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-light);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}

.info-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.3));
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Why Choose Us Section */
.why-choose-us {
    margin-top: 3rem;
    padding: 3rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover::after {
    opacity: 1;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-light);
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.25);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.benefit-card:hover .benefit-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.6));
}

.benefit-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Crop Section Styles */
.crop-section {
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease;
}

.crop-controls {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    animation: slideDown 0.4s ease;
}

.crop-controls h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-inputs,
.crop-dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.time-group,
.dimension-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-group label,
.dimension-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.time-group input,
.dimension-group input {
    padding: 0.875rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.time-group input:focus,
.dimension-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    background: var(--bg-dark);
}

.time-group input:hover,
.dimension-group input:hover {
    border-color: var(--border-light);
}

.hint-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(124, 58, 237, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0.5rem;
}

/* Feedback Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.feedback-modal {
    padding: 2.5rem;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.modal-header h2 {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.feedback-input {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.feedback-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.feedback-input::placeholder {
    color: var(--text-muted);
}

textarea.feedback-input {
    resize: vertical;
    min-height: 120px;
}

.btn-feedback-submit {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-feedback-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-feedback-submit:active {
    transform: translateY(0);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

.footer-separator {
    color: var(--border-light);
    font-size: 0.8rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin-bottom: 1rem;
}

/* ============================================
   FLOATING SUPPORT BUTTON
   ============================================ */

.floating-support-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow: hidden;
}

.floating-support-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.floating-support-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.floating-support-btn:hover::before {
    opacity: 1;
}

.floating-support-btn:active {
    transform: translateY(-3px) scale(1.02);
}

.floating-support-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.floating-support-btn span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: -2px;
}

/* Support Button - Mobile */
@media (max-width: 768px) {
    .floating-support-btn {
        width: 56px;
        height: 56px;
        bottom: 80px;
        right: 20px;
        box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    }
    
    .floating-support-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .floating-support-btn span {
        font-size: 9px;
    }
}

/* ============================================
   SUPPORT MODAL
   ============================================ */

.support-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.support-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.support-modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.support-modal-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.support-modal-close:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.support-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-right: 30px;
}

.support-modal-header svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.support-modal-header h2 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.support-modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Support Form */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.support-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-form label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-form .required {
    color: var(--error);
    font-size: 0.85rem;
}

.support-form .optional {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
}

.support-form input,
.support-form textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
}

.support-form input:focus,
.support-form textarea:focus {
    border-color: var(--primary);
    background: var(--bg-dark);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.support-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.support-form input::placeholder,
.support-form textarea::placeholder {
    color: var(--text-muted);
}

.btn-support-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    margin-top: 0.25rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-support-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-support-submit:active {
    transform: translateY(0);
}

.btn-support-submit svg {
    width: 20px;
    height: 20px;
}

/* Form Status Messages */
.form-status {
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Support Modal - Mobile */
@media (max-width: 768px) {
    .support-modal {
        padding: 10px;
    }
    
    .support-modal-content {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        max-height: 85vh;
    }
    
    .support-modal-header {
        margin-bottom: 1.25rem;
    }
    
    .support-modal-header h2 {
        font-size: 1.35rem;
    }
    
    .support-modal-header svg {
        width: 36px;
        height: 36px;
    }
    
    .support-modal-close {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
    }
    
    .support-form input,
    .support-form textarea {
        padding: 0.7rem;
        font-size: 0.875rem;
    }
    
    .support-form textarea {
        min-height: 90px;
    }
}

/* Loading Spinner Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .converter-card {
        padding: 2rem 1.5rem;
    }
    
    .upload-area {
        padding: 2.5rem 1.5rem;
    }
    
    .upload-icon {
        width: 4rem;
        height: 4rem;
    }
    
    /* Why Choose Us Section - Mobile */
    .why-choose-us {
        margin-top: 2rem;
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 2rem 1.5rem;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
    }
    
    .benefit-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .benefit-card h3 {
        font-size: 1.15rem;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-convert,
    .btn-download,
    .btn-retry {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0.75rem;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    .converter-card {
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
    
    .file-info {
        padding: 1.25rem;
    }
    
    /* Navbar Responsive */
    .navbar {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 60px;
        width: 100%;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 26px;
        height: 26px;
    }
    
    .nav-item a,
    .dropdown-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        min-width: 90vw;
        left: 5vw;
        transform: none;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-item a span,
    .dropdown-toggle span {
        display: none;
    }
    
    .nav-item a,
    .dropdown-toggle {
        padding: 0.6rem;
    }
    
    .dropdown-menu {
        min-width: 85vw;
        left: 7.5vw;
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }
    
    .feedback-modal {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .brand-badge {
        font-size: 1rem;
    }
}

/* Tabs for Compression Page */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.tab-btn svg {
    width: 20px;
    height: 20px;
}

.tab-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--primary-light);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--glow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Upload Box - More Visible */
.upload-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 3px dashed var(--primary-light);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.upload-box:hover::before {
    opacity: 0.05;
}

.upload-box:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.upload-box > * {
    position: relative;
    z-index: 1;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-light);
    stroke-width: 1.5;
}

.upload-box h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.upload-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-box .file-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* File Preview Section */
.file-preview-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.file-preview-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-preview-section h3 svg {
    width: 24px;
    height: 24px;
    color: var(--success);
}

.preview-container {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-video,
.preview-audio,
.preview-image {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    background: #000;
}

.preview-image {
    object-fit: contain;
}

.file-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.file-detail-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.file-detail-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.file-detail-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Compression Settings */
.compression-settings {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.compression-settings h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.setting-group select,
.setting-group input[type="range"] {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.setting-group select:focus,
.setting-group input[type="range"]:focus {
    outline: none;
    border-color: var(--primary-light);
}

.setting-group input[type="range"] {
    padding: 0;
    height: 40px;
    cursor: pointer;
}

/* Result Stats */
.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-value.success {
    color: var(--success);
}

.result-icon.error {
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
}

.result-icon.error svg {
    color: white;
}

/* Mobile Responsive for Tabs */
@media (max-width: 640px) {
    .tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .tab-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .compression-settings {
        padding: 1.5rem;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   Mobile & Tablet Optimization
   ============================================ */

/* Tablet (Portrait) - 768px to 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    body {
        padding: 1.5rem 1rem;
    }
    
    .nav-container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .converter-card,
    .crop-card {
        padding: 2.25rem 2rem;
    }
    
    .upload-area {
        padding: 2.75rem 2rem;
    }
    
    .tabs {
        gap: 0.75rem;
    }
    
    .tab-btn {
        padding: 0.875rem 1.5rem;
    }
    
    .compression-settings {
        padding: 1.75rem;
    }
}

/* Mobile (Large) - 480px to 768px */
@media (max-width: 768px) and (min-width: 481px) {
    body {
        padding: 1.25rem 1rem;
        padding-bottom: 100px; /* Space for floating support button */
        font-size: 15px;
    }
    
    /* Mobile visibility: hide desktop-only, show mobile-only */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Navbar Mobile - No Horizontal Scroll */
    .navbar {
        width: 100%;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }
    
    .nav-container {
        padding: 0 0.75rem;
        height: 60px;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-brand {
        font-size: 1.2rem;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .logo-icon {
        width: 26px;
        height: 26px;
    }
    
    .brand-badge {
        font-size: 1rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
        flex-wrap: nowrap;
        overflow: visible;
    }
    
    .nav-item a,
    .dropdown-toggle {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Hide text labels on mobile (< 768px), show only icons */
    .nav-item a span,
    .dropdown-toggle span {
        display: none !important;
    }
    
    .nav-item a svg,
    .dropdown-toggle svg {
        width: 20px;
        height: 20px;
        margin: 0;
    }
    
    .dropdown-arrow {
        width: 14px !important;
        height: 14px !important;
    }
    
    .dropdown-menu {
        min-width: 92vw;
        left: 4vw;
        right: 4vw;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .dropdown-item {
        padding: 0.875rem;
    }
    
    .dropdown-item-icon {
        width: 36px;
        height: 36px;
    }
    
    .dropdown-item-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .dropdown-item h4 {
        font-size: 0.95rem;
    }
    
    .dropdown-item p {
        font-size: 0.8rem;
    }
    
    /* Header Mobile */
    header {
        margin-bottom: 2rem;
    }
    
    header h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1.05rem;
    }
    
    /* Cards Mobile */
    .converter-card,
    .crop-card {
        padding: 2rem 1.75rem;
        border-radius: 1.25rem;
    }
    
    /* Upload Area Mobile */
    .upload-area,
    .upload-box {
        padding: 2.5rem 1.75rem;
    }
    
    .upload-icon {
        width: 4.5rem;
        height: 4.5rem;
    }
    
    .upload-area h3,
    .upload-box h3 {
        font-size: 1.15rem;
    }
    
    .upload-area p,
    .upload-box p {
        font-size: 0.95rem;
    }
    
    /* File Info Mobile */
    .file-info {
        padding: 1.5rem;
        gap: 0.75rem;
    }
    
    .file-details {
        gap: 0.5rem;
    }
    
    .file-name {
        font-size: 1rem;
    }
    
    .file-size {
        font-size: 0.9rem;
    }
    
    /* Buttons Mobile */
    .btn-convert,
    .btn-download,
    .btn-retry,
    .btn-crop {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .btn-new-conversion {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    /* Tabs Mobile */
    .tabs {
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    /* Compression Settings Mobile */
    .compression-settings {
        padding: 1.75rem 1.5rem;
    }
    
    .settings-group label {
        font-size: 0.95rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Crop Controls Mobile */
    .crop-controls {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .control-group {
        gap: 0.5rem;
    }
    
    /* File Preview Mobile */
    .file-preview-section {
        padding: 1.5rem;
    }
    
    .file-details {
        grid-template-columns: 1fr;
    }
    
    /* Advanced Options Mobile */
    .options-panel {
        padding: 1.5rem;
        gap: 1.25rem;
    }
    
    .option-group {
        gap: 0.75rem;
    }
    
    /* Info Grid Mobile */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Why Choose Us - Large Mobile */
    .why-choose-us {
        margin-top: 1.75rem;
        padding: 1.75rem 0;
        padding-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.65rem;
        margin-bottom: 1.75rem;
    }
    
    .benefits-grid {
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.75rem 1.5rem;
    }
    
    .benefit-icon {
        width: 48px;
        height: 48px;
    }
    
    .benefit-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    footer {
        padding: 2rem 1rem;
        padding-bottom: 100px; /* Space for support button */
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile (Small) - 320px to 480px */
@media (max-width: 480px) {
    body {
        padding: 1rem 0.75rem;
        padding-bottom: 100px; /* Space for floating support button */
        font-size: 14px;
        overflow-x: hidden;
    }
    
    /* Mobile visibility: hide desktop-only, show mobile-only */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Navbar Small Mobile - No Horizontal Scroll */
    .navbar {
        width: 100%;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }
    
    .nav-container {
        padding: 0 0.75rem;
        height: 58px;
        gap: 0.375rem;
        width: 100%;
    }
    
    .nav-brand {
        font-size: 1.15rem;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    .brand-badge {
        font-size: 1rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
        flex-wrap: nowrap;
        overflow: visible;
    }
    
    .nav-item a,
    .dropdown-toggle {
        padding: 0.55rem 0.65rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* Hide text labels on mobile (< 480px), show only icons */
    .nav-item a span,
    .dropdown-toggle span {
        display: none !important;
    }
    
    .nav-item a svg,
    .dropdown-toggle svg {
        width: 19px;
        height: 19px;
        margin: 0;
    }
    
    .dropdown-arrow {
        width: 14px !important;
        height: 14px !important;
    }
    
    .dropdown-menu {
        min-width: 92vw;
        left: 4vw;
        right: 4vw;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .dropdown-item {
        padding: 0.875rem;
    }
    
    .dropdown-item-icon {
        width: 36px;
        height: 36px;
    }
    
    .dropdown-item-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .dropdown-item h4 {
        font-size: 0.95rem;
    }
    
    .dropdown-item p {
        font-size: 0.8rem;
    }
    
    /* Header Small Mobile */
    header {
        margin-bottom: 1.5rem;
    }
    
    header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    /* Cards Small Mobile */
    .converter-card,
    .crop-card {
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
    
    /* Upload Area Small Mobile */
    .upload-area,
    .upload-box {
        padding: 2rem 1.25rem;
    }
    
    .upload-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .upload-area h3,
    .upload-box h3 {
        font-size: 1rem;
    }
    
    .upload-area p,
    .upload-box p {
        font-size: 0.875rem;
    }
    
    /* File Info Small Mobile */
    .file-info {
        padding: 1.25rem 1rem;
        gap: 0.75rem;
    }
    
    .file-icon {
        width: 40px;
        height: 40px;
    }
    
    .file-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .file-name {
        font-size: 0.95rem;
    }
    
    .file-size {
        font-size: 0.85rem;
    }
    
    .btn-remove {
        width: 32px;
        height: 32px;
    }
    
    .btn-remove svg {
        width: 16px;
        height: 16px;
    }
    
    /* Buttons Small Mobile */
    .btn-convert,
    .btn-download,
    .btn-retry,
    .btn-crop {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-new-conversion {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-select {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Tabs Small Mobile */
    .tabs {
        gap: 0.375rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-width: auto;
    }
    
    .tab-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Compression Settings Small Mobile */
    .compression-settings {
        padding: 1.5rem 1rem;
    }
    
    .settings-group {
        gap: 0.75rem;
    }
    
    .settings-group label {
        font-size: 0.9rem;
    }
    
    .settings-grid {
        gap: 1rem;
    }
    
    select,
    input[type="number"],
    input[type="range"] {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Crop Controls Small Mobile */
    .crop-controls {
        gap: 1rem;
    }
    
    .control-group label {
        font-size: 0.9rem;
    }
    
    .time-inputs {
        gap: 0.5rem;
    }
    
    .time-input input {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* File Preview Small Mobile */
    .file-preview-section {
        padding: 1.25rem 1rem;
    }
    
    #video-preview-player,
    #audio-preview-player {
        border-radius: 8px;
    }
    
    .file-details {
        gap: 0.75rem;
    }
    
    .detail-card {
        padding: 0.875rem;
    }
    
    .detail-card h4 {
        font-size: 0.8rem;
    }
    
    .detail-card p {
        font-size: 1rem;
    }
    
    /* Advanced Options Small Mobile */
    .toggle-advanced {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .options-panel {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    
    .option-group {
        gap: 0.5rem;
    }
    
    .option-group label {
        font-size: 0.9rem;
    }
    
    .checkbox-label {
        font-size: 0.875rem;
    }
    
    /* Progress Section Small Mobile */
    .progress-section {
        padding: 2rem 1rem;
    }
    
    .progress-icon {
        width: 60px;
        height: 60px;
    }
    
    .progress-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .progress-section h3 {
        font-size: 1.15rem;
    }
    
    .progress-bar {
        height: 10px;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
    
    /* Result Section Small Mobile */
    .result-section {
        padding: 2rem 1rem;
    }
    
    .result-icon {
        width: 64px;
        height: 64px;
    }
    
    .result-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .result-section h3 {
        font-size: 1.15rem;
    }
    
    .result-section p {
        font-size: 0.9rem;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    /* Error Section Small Mobile */
    .error-section {
        padding: 2rem 1rem;
    }
    
    .error-section h3 {
        font-size: 1.15rem;
    }
    
    .error-message {
        font-size: 0.875rem;
    }
    
    /* Info Grid Small Mobile */
    .info-grid {
        gap: 0.875rem;
    }
    
    .info-card {
        padding: 1.25rem 1rem;
    }
    
    .info-icon {
        width: 36px;
        height: 36px;
    }
    
    .info-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .info-card h3 {
        font-size: 1rem;
    }
    
    .info-card p {
        font-size: 0.85rem;
    }
    
    /* Why Choose Us - Small Mobile */
    .why-choose-us {
        margin-top: 1.5rem;
        padding: 1.5rem 0;
        padding-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .benefits-grid {
        gap: 1.25rem;
    }
    
    .benefit-card {
        padding: 1.5rem 1.25rem;
    }
    
    .benefit-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 1rem;
    }
    
    .benefit-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .benefit-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    
    .benefit-card p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    /* Footer Small Mobile */
    footer {
        padding: 1.5rem 0.75rem;
        padding-bottom: 100px; /* Space for support button */
        font-size: 0.85rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Mobile (Extra Small) - Below 375px */
@media (max-width: 374px) {
    body {
        padding: 0.75rem 0.5rem;
        padding-bottom: 100px; /* Space for floating support button */
        font-size: 13px;
        overflow-x: hidden;
    }
    
    .navbar {
        width: 100%;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }
    
    .nav-container {
        padding: 0 0.5rem;
        height: 56px;
        gap: 0.25rem;
        width: 100%;
    }
    
    .nav-brand {
        font-size: 1rem;
        gap: 0.375rem;
    }
    
    .logo-icon {
        width: 22px;
        height: 22px;
    }
    
    .brand-badge {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        gap: 0.125rem;
    }
    
    .nav-item a,
    .dropdown-toggle {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Hide text labels on extra small screens */
    .nav-item a span,
    .dropdown-toggle span {
        display: none !important;
    }
    
    .nav-item a svg,
    .dropdown-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .dropdown-arrow {
        width: 12px !important;
        height: 12px !important;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
    }
    
    .converter-card,
    .crop-card {
        padding: 1.25rem 0.875rem;
    }
    
    .upload-area,
    .upload-box {
        padding: 1.75rem 1rem;
    }
    
    .upload-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .btn-convert,
    .btn-download,
    .btn-retry,
    .btn-crop {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .tab-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
    
    /* Why Choose Us - Extra Small Mobile */
    .why-choose-us {
        margin-top: 1.25rem;
        padding: 1.25rem 0;
        padding-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }
    
    .benefits-grid {
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1.25rem 1rem;
    }
    
    .benefit-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 0.875rem;
    }
    
    .benefit-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .benefit-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .benefit-card p {
        font-size: 0.825rem;
        line-height: 1.5;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        margin-bottom: 1rem;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .converter-card,
    .crop-card {
        padding: 1.5rem;
    }
    
    .upload-area,
    .upload-box {
        padding: 2rem 1.5rem;
    }
    
    .tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    button,
    .btn,
    .tab-btn,
    .nav-item a,
    .dropdown-toggle,
    .dropdown-item {
        min-height: 44px;
    }
    
    /* Disable hover effects on touch devices */
    .upload-area:hover,
    .upload-box:hover {
        transform: none;
        border-color: var(--border-light);
    }
    
    /* Better tap highlights */
    button,
    a,
    input,
    select,
    textarea {
        -webkit-tap-highlight-color: rgba(124, 58, 237, 0.1);
    }
}

/* Coming Soon Message Styles */
.coming-soon-message {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(168, 85, 247, 0.05));
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    margin: 2rem 0;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.coming-soon-message h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-message p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-back svg {
    width: 18px;
    height: 18px;
}

/* Google Drive Integration Styles */
.drive-upload-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.drive-upload-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drive-upload-divider::before,
.drive-upload-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.drive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #1a1a2e;
    color: #ffffff;
    border: 2px solid #2a2a3e;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.drive-btn:hover {
    background: #242438;
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    transform: translateY(-2px);
}

.drive-btn:active {
    transform: translateY(0);
}

.drive-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.drive-btn-text {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.drive-upload-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.drive-upload-loader .modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 400px;
}

.drive-icon {
    display: inline-block;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .drive-btn {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
    
    .drive-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .drive-upload-divider {
        font-size: 0.75rem;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 2px solid var(--primary);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-link {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.cookie-btn.reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cookie-btn.reject:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-content p {
        font-size: 0.85rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.875rem;
    }
}


/* ===================================
   NEWS SECTION STYLES
   =================================== */

.news-section {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 3rem 0;
    border: 1px solid var(--border);
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.news-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.news-icon {
    width: 28px;
    height: 28px;
}

.news-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 32px;
}

.news-item {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-item.featured {
    border: 2px solid #667eea;
    background: linear-gradient(to bottom, var(--card-bg) 0%, rgba(102, 126, 234, 0.03) 100%);
}

.news-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.news-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #e6f2ff;
    color: #2563eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-tag.important {
    background: #fef3c7;
    color: #d97706;
}

.news-date {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.news-item-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    line-height: 1.3;
}

.news-item-body {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.news-intro {
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-primary);
}

.maintenance-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 18px;
    border-radius: 10px;
    margin: 24px 0;
}

.notice-icon {
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
}

.notice-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
}

.notice-content strong {
    color: #1a202c;
    font-weight: 600;
}

.updates-section {
    margin: 28px 0;
    padding: 24px;
    background: rgba(102, 126, 234, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.updates-subtitle {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}

.update-category {
    margin-bottom: 24px;
}

.update-category:last-child {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.category-icon {
    color: #667eea;
    width: 18px;
    height: 18px;
}

.feature-list {
    list-style: none;
    padding-left: 28px;
}

.feature-list li {
    position: relative;
    padding: 10px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: -28px;
    color: #10b981;
    font-weight: bold;
    font-size: 17px;
}

.feature-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.news-footer-text {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 14px;
}

.news-item-footer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-author {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

/* Dark mode support for news */
@media (prefers-color-scheme: dark) {
    .news-item.featured {
        background: linear-gradient(to bottom, var(--card-bg) 0%, rgba(102, 126, 234, 0.08) 100%);
    }
    
    .maintenance-notice {
        background: rgba(245, 158, 11, 0.1);
    }
    
    .notice-content strong {
        color: var(--text-primary);
    }
    
    .updates-section {
        background: rgba(102, 126, 234, 0.05);
    }
}

/* Responsive News Section */
@media (max-width: 768px) {
    .news-header {
        padding: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .news-title {
        font-size: 22px;
    }

    .news-content {
        padding: 24px;
    }

    .news-item {
        padding: 20px;
    }

    .news-item-title {
        font-size: 20px;
    }

    .maintenance-notice {
        flex-direction: column;
    }

    .feature-list {
        padding-left: 24px;
    }
}
