/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Color Palette - Soft Blues & Gradients */
    --primary: hsl(212, 96%, 54%);
    --primary-hover: hsl(212, 96%, 48%);
    --primary-light: hsl(212, 96%, 92%);
    --secondary: hsl(210, 11%, 71%);
    --surface: hsl(0, 0%, 100%);
    --background: hsl(210, 20%, 99%);
    --background-soft: hsl(210, 30%, 98%);
    --foreground: hsl(215, 25%, 27%);
    --foreground-light: hsl(215, 15%, 50%);
    --muted: hsl(210, 40%, 96%);
    --border: hsl(214, 32%, 91%);
    --border-soft: hsl(214, 20%, 95%);
    
    /* Glassmorphism Colors */
    --glass-bg: hsla(0, 0%, 100%, 0.25);
    --glass-border: hsla(255, 255%, 255%, 0.18);
    --glass-shadow: hsla(0, 0%, 0%, 0.1);
    
    /* Accent Colors */
    --accent-blue: hsl(212, 100%, 96%);
    --accent-green: hsl(142, 76%, 95%);
    --accent-red: hsl(0, 93%, 95%);
    --accent-purple: hsl(268, 100%, 95%);
    --accent-orange: hsl(25, 95%, 95%);
    
    /* Status Colors */
    --success: hsl(142, 71%, 45%);
    --success-bg: hsl(143, 85%, 96%);
    --success-border: hsl(145, 92%, 91%);
    --error: hsl(0, 84%, 60%);
    --error-bg: hsl(0, 93%, 97%);
    --error-border: hsl(0, 93%, 91%);
    --warning: hsl(38, 92%, 50%);
    --warning-bg: hsl(43, 100%, 97%);
    --warning-border: hsl(43, 96%, 90%);
    
    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(212, 96%, 54%) 0%, hsl(225, 84%, 66%) 100%);
    --gradient-soft: linear-gradient(135deg, hsl(210, 30%, 98%) 0%, hsl(210, 40%, 96%) 100%);
    --gradient-glass: linear-gradient(135deg, hsla(0, 0%, 100%, 0.4) 0%, hsla(0, 0%, 100%, 0.1) 100%);
    
    /* Enhanced Spacing */
    --container-max-width: 1000px;
    --section-spacing: 4rem;
    --card-spacing: 2rem;
    --element-spacing: 1.5rem;
    --micro-spacing: 0.75rem;
    
    /* Premium Shadows */
    --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-hover: 0 8px 25px -8px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--gradient-soft);
    min-height: 100vh;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--element-spacing);
    width: 100%;
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--card-spacing);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--section-spacing);
    }
}

/* Sticky Navigation Bar */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.sticky-nav .nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--card-spacing);
    display: flex;
    align-items: center;
    height: 64px;
    position: relative;
}

.sticky-nav .nav-brand {
    position: absolute;
    left: var(--card-spacing);
    display: flex;
    align-items: center;
}

.sticky-nav .nav-menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-nav-toggle {
    position: absolute;
    right: var(--card-spacing);
    z-index: 1001;
}

.sticky-nav .nav-brand a {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 700;
    font-size: var(--font-size-xl);
    transition: var(--transition-fast);
}

.sticky-nav .nav-brand a:hover {
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    color: var(--foreground);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    text-decoration: none;
}

.nav-dropdown-trigger:hover {
    background: var(--muted);
    color: var(--primary);
}

.nav-dropdown-trigger svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.nav-dropdown.open .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-width: 320px;
    width: max-content;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 
                0 8px 25px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.nav-dropdown.open .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.875rem 1.25rem;
    color: var(--foreground);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
}

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

/* Navigation sections */
.nav-dropdown-section {
    margin-bottom: 1rem;
}

.nav-dropdown-section:last-child {
    margin-bottom: 0;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted-foreground);
    padding: 0.5rem 1.25rem 0.25rem;
    letter-spacing: 0.5px;
}

.nav-dropdown-item.nav-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(147, 51, 234, 0.03));
    border: 1px solid rgba(99, 102, 241, 0.08);
    font-weight: 600;
}

.nav-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.nav-dropdown-item:active {
    transform: translateX(2px);
    transition-duration: 0.1s;
}

.nav-dropdown-item:hover {
    background: var(--accent-blue);
    color: var(--primary);
}

.nav-dropdown-separator {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
}

.mobile-nav-toggle:hover {
    background: var(--muted);
    transform: scale(1.05);
}

.mobile-nav-toggle:active {
    transform: scale(0.95);
    transition: all 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--foreground);
}

/* Body padding to account for fixed navigation */
body {
    padding-top: 64px;
}

/* Responsive */
@media (max-width: 768px) {
    .sticky-nav .nav-menu {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .sticky-nav .nav-container {
        padding: 0 var(--element-spacing);
    }
}

/* Responsive dropdown adjustments */
@media (max-width: 1024px) {
    .nav-dropdown-content {
        min-width: 180px;
        max-width: 240px;
        right: 0;
        left: auto;
    }
}

@media (max-width: 900px) {
    .nav-dropdown-content {
        min-width: 160px;
        max-width: 200px;
        white-space: nowrap;
    }
    
    .nav-dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 13px;
    }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.mobile-nav-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 252, 0.96) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12), 
                -5px 0 20px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-nav-overlay.mobile-nav-open .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-nav-title {
    font-size: 1.375rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, hsl(225, 84%, 66%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.8) 0%, 
        rgba(241, 245, 249, 0.9) 100%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--foreground-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-nav-close:hover {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1) 0%, 
        rgba(220, 38, 38, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.2);
    color: hsl(0, 84%, 60%);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.2);
}

.mobile-nav-close:active {
    transform: scale(0.92);
    transition: all 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.mobile-nav-close svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-sections {
    padding: 1.5rem 0 2rem;
}

/* Staggered entrance animations for mobile nav sections */
.mobile-nav-section {
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
}

.mobile-nav-overlay.mobile-nav-open .mobile-nav-section:nth-child(1) {
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.mobile-nav-overlay.mobile-nav-open .mobile-nav-section:nth-child(2) {
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.mobile-nav-overlay.mobile-nav-open .mobile-nav-section:nth-child(3) {
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-section {
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
}

.mobile-nav-section:last-child {
    margin-bottom: 0;
}

.mobile-nav-section:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(226, 232, 240, 0.7);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.mobile-nav-section-toggle {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.mobile-nav-section-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-section-toggle:hover::before {
    left: 100%;
}

.mobile-nav-section-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.section-toggle-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
}

.mobile-nav-section-toggle:hover .section-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(99, 102, 241, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.mobile-nav-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    flex: 1;
    text-align: left;
    letter-spacing: -0.01em;
}

.section-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--foreground-light);
    flex-shrink: 0;
}

.section-chevron svg {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-items {
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(248, 250, 252, 0.3);
    border-top: 1px solid rgba(226, 232, 240, 0.4);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--foreground);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 0;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(0);
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-item:hover::before {
    left: 100%;
}

.mobile-nav-item:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.12) 0%, 
        rgba(99, 102, 241, 0.08) 100%);
    color: var(--primary);
    padding-left: 2rem;
    box-shadow: inset 4px 0 0 var(--primary);
    transform: translateX(4px);
}

.mobile-nav-item:active {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.16) 0%, 
        rgba(99, 102, 241, 0.12) 100%);
    transform: translateX(2px);
    transition: all 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.item-text {
    flex: 1;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.item-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
}

.item-badge.popular {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.15) 0%, 
        rgba(22, 163, 74, 0.1) 100%);
    color: hsl(142, 71%, 35%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.item-badge.new {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(37, 99, 235, 0.1) 100%);
    color: hsl(217, 91%, 35%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.mobile-nav-item:hover .item-badge {
    transform: scale(1.05);
}

/* Add subtle pulse animation to mobile toggle */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

.mobile-nav-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    transform: translate(-50%, -50%);
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        position: absolute;
        right: var(--element-spacing);
    }
}

.section-expanded .mobile-nav-items {
    max-height: 1000px;
    padding: 0;
}

/* Hamburger menu animation */
.mobile-nav-toggle svg {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-toggle-active svg {
    transform: rotate(90deg);
}

.mobile-nav-toggle:hover svg {
    transform: scale(1.1);
}

.mobile-nav-toggle:active svg {
    transform: scale(0.95);
    transition: all 0.1s cubic-bezier(0.4, 0, 1, 1);
}

/* Prevent background scrolling when mobile nav is open */
body.mobile-nav-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Enhanced touch targets for mobile */
@media (max-width: 768px) {
    .mobile-nav-item {
        min-height: 52px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .mobile-nav-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    .mobile-nav-section-toggle {
        min-height: 56px;
    }
    
    .section-icon {
        width: 36px;
        height: 36px;
    }
    
    .mobile-nav-sections {
        padding: 1rem 1rem 2rem;
    }
}

/* Smaller screens adjustments */
@media (max-width: 480px) {
    .mobile-nav-content {
        width: 100vw;
        max-width: none;
        border-left: none;
    }
    
    .mobile-nav-header {
        padding: 1.5rem 1.25rem;
    }
    
    .mobile-nav-section {
        margin: 0 0 1rem 0;
        border-radius: 12px;
    }
    
    .mobile-nav-section-toggle {
        padding: 1rem 1.25rem;
    }
    
    .section-toggle-content {
        gap: 0.75rem;
    }
    
    .section-icon {
        width: 32px;
        height: 32px;
    }
    
    .mobile-nav-section-title {
        font-size: 1rem;
    }
    
    .mobile-nav-sections {
        padding: 1rem 0.75rem 2rem;
    }
    
    .mobile-nav-item {
        padding: 1rem 1.25rem;
        font-size: 15px;
    }
    
    .mobile-nav-item:hover {
        padding-left: 1.75rem;
    }
    
    .item-badge {
        padding: 0.2rem 0.6rem;
        font-size: 10px;
    }
}

/* Improved accessibility and animation performance */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav-overlay,
    .mobile-nav-content,
    .mobile-nav-item,
    .section-chevron svg,
    .mobile-nav-items {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-nav-content {
        background: white;
        border-left: 2px solid black;
    }
    
    .mobile-nav-section {
        border: 2px solid #666;
    }
    
    .mobile-nav-item:hover {
        background: #f0f0f0;
        box-shadow: inset 4px 0 0 black;
    }
}

/* Mobile navigation specific adjustments */
@media (max-width: 768px) {
    .nav-dropdown-content {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        max-width: none;
        min-width: auto;
        width: 100%;
        border-radius: 0;
        backdrop-filter: blur(10px);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    
    .nav-dropdown-item {
        padding: 1rem 1.5rem;
        font-size: 14px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-dropdown-item:last-child {
        border-bottom: none;
    }
}

/* Reset text alignment for specific elements that need left alignment */
.section-header {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Main Content - Fully Centered */
.main-content-centered {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: block;
}



/* Responsive utilities */
.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
}

/* Premium Upload Area with Glassmorphism */
.upload-area {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px dashed var(--border-soft);
    border-radius: var(--radius-xl);
    padding: var(--section-spacing);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--card-spacing);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.upload-area:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    background: hsla(0, 0%, 100%, 0.35);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.02);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--element-spacing);
    color: var(--primary);
    opacity: 0.8;
}

.upload-area h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--micro-spacing);
}

.upload-area p {
    color: var(--foreground-light);
    font-size: var(--font-size-base);
    margin-bottom: var(--micro-spacing);
}

.supported-formats {
    font-size: var(--font-size-sm);
    color: var(--foreground-light);
    background: var(--surface);
    padding: var(--micro-spacing) var(--element-spacing);
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: var(--element-spacing);
    box-shadow: var(--shadow-soft);
}

/* Premium Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--card-spacing);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    transition: all var(--transition-base);
    margin-bottom: var(--element-spacing);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card-header {
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: var(--element-spacing);
    margin-bottom: var(--element-spacing);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.card-description {
    color: var(--foreground-light);
    font-size: var(--font-size-sm);
    margin: var(--micro-spacing) 0 0;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--micro-spacing);
    padding: var(--element-spacing) var(--card-spacing);
    font-size: var(--font-size-base);
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--surface);
    color: var(--foreground);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--muted);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-large {
    padding: var(--card-spacing) var(--section-spacing);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
}

/* Status Messages with Glassmorphism */
.status-message {
    padding: var(--element-spacing);
    border-radius: var(--radius-lg);
    margin: var(--element-spacing) 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.status-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.status-success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success);
}

.status-error {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error);
}

.status-warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning);
}

/* Progress Indicators */
.progress-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--card-spacing);
    margin: var(--element-spacing) 0;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--muted);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--element-spacing) 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.progress-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--foreground);
    text-align: center;
}

.progress-stage {
    font-size: var(--font-size-sm);
    color: var(--foreground-light);
    text-align: center;
    margin-top: var(--micro-spacing);
}

/* Enhanced Typography */
.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--element-spacing);
    line-height: 1.2;
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--foreground-light);
    margin-bottom: var(--card-spacing);
    line-height: 1.5;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--element-spacing);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--foreground-light);
    margin-bottom: var(--card-spacing);
}

/* Advanced Options - Simple Clean Style */
.advanced-options {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin: 1.5rem 0;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.options-header {
    padding: 1.25rem 1.5rem;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.options-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.options-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.options-icon {
    color: var(--primary);
}

.chevron {
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
}

.options-header.active .chevron {
    transform: rotate(180deg);
}

.options-content {
    padding: 1.5rem;
    background: transparent;
    display: none;
}

.options-content.active {
    display: block;
}

.option-group {
    margin-bottom: 1.25rem;
}

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

.option-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.option-group input[type="text"],
.option-group input[type="number"],
.option-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.option-group input[type="text"]:focus,
.option-group input[type="number"]:focus,
.option-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Force proper checkbox layout and alignment */
.option-group:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.option-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    order: 1;
}

.option-group input[type="checkbox"] + label {
    cursor: pointer;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    order: 2;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--element-spacing);
}

.form-group {
    margin-bottom: var(--element-spacing);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: var(--micro-spacing);
}

.form-input, .form-select {
    width: 100%;
    padding: var(--element-spacing);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--foreground);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* File Preview */
.file-preview {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--element-spacing);
    margin: var(--element-spacing) 0;
    display: flex;
    align-items: center;
    gap: var(--element-spacing);
    box-shadow: var(--shadow-soft);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: var(--micro-spacing);
}

.file-details {
    font-size: var(--font-size-sm);
    color: var(--foreground-light);
}

/* Results Section */
.results-container {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--card-spacing);
    margin: var(--element-spacing) 0;
    box-shadow: var(--shadow-soft);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--element-spacing);
    margin-bottom: var(--card-spacing);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--element-spacing);
    background: var(--muted);
    border-radius: var(--radius-md);
}

.result-label {
    font-size: var(--font-size-sm);
    color: var(--foreground-light);
}

.result-value {
    font-weight: 500;
    color: var(--foreground);
}

.result-value.success {
    color: var(--success);
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-area {
        padding: var(--card-spacing);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        padding: var(--element-spacing) var(--card-spacing);
        font-size: var(--font-size-base);
    }
}

@media (min-width: 1280px) {
    .desktop-only {
        display: block;
    }
    
    .mobile-only {
        display: none;
    }
    

}





/* Navigation */
.navbar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: hsl(210, 11%, 71%);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: hsl(210, 11%, 71%);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Hero section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: var(--section-spacing) 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-primary {
    color: var(--primary);
}

.hero-description {
    font-size: 1.25rem;
    color: hsl(210, 11%, 71%);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tools sections - Premium Apple-style Headers */
.tools-section {
    margin-bottom: 5rem;
    margin-top: 4rem;
}

.tools-section:first-of-type {
    margin-top: 4.5rem; /* Reduced spacing to hug navigation */
}

.section-header {
    text-align: left;
    margin-bottom: 2.5rem;
    padding: 0 var(--card-spacing);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: hsl(210, 11%, 71%);
}

.section-content {
    flex: 1;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.section-description {
    font-size: 1rem;
    font-weight: 400;
    color: hsl(210, 11%, 65%);
    line-height: 1.5;
    margin: 0;
}

.section-title.centered {
    text-align: center;
}

.tools-grid {
    display: grid;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
    text-align: left;
}

.tools-grid:not(.single-column) {
    grid-template-columns: 1fr;
    max-width: 400px;
}

@media (min-width: 768px) {
    .tools-grid:not(.single-column) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .tools-grid:not(.single-column) {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        gap: 2rem;
    }
}

/* Image Tools Responsive Grid - Matches PDF Tools behavior */
#image-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    grid-auto-rows: 1fr; /* cards fill equal height */
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
    text-align: left;
    max-width: 400px;
}

@media (min-width: 640px) { /* sm */
    #image-tools-grid { 
        grid-template-columns: repeat(2, 1fr); 
        max-width: 700px;
    }
}

@media (min-width: 1024px) { /* lg */
    #image-tools-grid { 
        grid-template-columns: repeat(3, 1fr); 
        max-width: 1000px;
        gap: 2rem;
    }
}

/* Remove fixed widths on Image Tool cards only */
#image-tools-grid .tool-card {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    height: 100%;
}

/* Tool cards - Enhanced Consistency with Unified Layout */
.tool-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 240px;
    padding: 20px;
    background-color: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(210, 20%, 92%);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    transform: translateY(0);
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

/* Card Icon - Unified positioning across all sections */
.image-tools .tool-card .card-icon,
.pdf-tools .tool-card .card-icon,
.media-tools .tool-card .card-icon {
    height: 56px;
}

.card-icon {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.card-icon img, .card-icon svg {
    width: 40px;
    height: 40px;
}

/* Legacy tool-icon styles - kept for compatibility */
.tool-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.tool-icon.bg-blue {
    background-color: var(--accent-blue);
    color: var(--primary);
}

.tool-icon.bg-green {
    background-color: var(--accent-green);
    color: hsl(142, 71%, 45%);
}

.tool-icon.bg-red {
    background-color: var(--accent-red);
    color: hsl(0, 84%, 60%);
}

.tool-icon.bg-purple {
    background-color: hsl(268, 70%, 65%);
    color: hsl(268, 40%, 95%);
}

.tool-icon.bg-orange {
    background-color: var(--accent-orange);
    color: hsl(25, 85%, 53%);
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.card-title {
    min-height: 48px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
}

.card-meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Legacy tool-title styles - kept for compatibility */
.tool-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-badge {
    background: linear-gradient(135deg, hsl(25, 85%, 53%), hsl(35, 85%, 53%));
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tool-description {
    color: hsl(210, 11%, 71%);
    font-size: 0.875rem;
}

.tool-features {
    font-size: 0.875rem;
    color: hsl(210, 11%, 71%);
    line-height: 1.4;
}

/* Coming Soon Tool Cards */
.tool-card.coming-soon {
    opacity: 0.65;
    cursor: default;
    pointer-events: none;
    position: relative;
}

.tool-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* Image Tools Section - Match "More Image Tools" Box Width */
.image-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-tools .full-width-tool-container {
    grid-column: span 3;
}

.image-tools .tool-card,
.image-tools .tool-card.wide-card {
    width: 100%;
}

/* Full Width Tool Container */
.full-width-tool-container {
    width: 100%;
    max-width: 1000px;
    margin: 1rem auto 0;
    padding: 0;
}

/* Wide Card for More Image Tools */
.tool-card.wide-card {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(147, 51, 234, 0.15);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(147, 51, 234, 0.12), 
                0 4px 16px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
    padding: 2rem 2.5rem;
    animation: wideCardFloat 6s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    max-width: none;
}

.tool-card.wide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(147, 51, 234, 0.16), 
                0 6px 20px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(147, 51, 234, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65));
}

.tool-card.wide-card .tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card.wide-card:hover .tool-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}

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

.tool-card.wide-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(147, 51, 234, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    border-radius: 20px;
}

.tool-card.wide-card:hover::after {
    opacity: 1;
}

.tool-card.wide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.tool-card.wide-card:hover::before {
    left: 100%;
    opacity: 1;
}

.tool-card.wide-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 48px rgba(147, 51, 234, 0.15), 
                0 8px 24px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(147, 51, 234, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
}

.tool-card.wide-card .tool-header {
    align-items: center;
    gap: 1.5rem;
}

.tool-card.wide-card .tool-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(147, 51, 234, 0.2);
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    animation: wideIconPulse 3s ease-in-out infinite;
}

@keyframes wideIconPulse {
    0%, 100% {
        box-shadow: 0 6px 16px rgba(147, 51, 234, 0.15);
    }
    50% {
        box-shadow: 0 8px 20px rgba(147, 51, 234, 0.25);
    }
}

.tool-card.wide-card:hover .tool-icon {
    transform: scale(1.2) rotateY(15deg);
    box-shadow: 0 10px 24px rgba(147, 51, 234, 0.3);
}

.tool-card.wide-card .tool-features {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), rgba(147, 51, 234, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    background-color: rgba(147, 51, 234, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(147, 51, 234, 0.1);
    backdrop-filter: blur(8px);
}

/* Responsive behavior for wide card */
@media (max-width: 767px) {
    .tool-card.wide-card {
        grid-column: 1;
        padding: 2rem 1.5rem;
    }
    
    .tool-card.wide-card .tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }
    
    .tool-card.wide-card .tool-icon {
        transform: scale(1);
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .tool-card.wide-card {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .tool-card.wide-card .tool-title {
        font-size: 1.25rem;
    }
    
    .tool-card.wide-card .tool-description {
        font-size: 0.95rem;
    }
}

.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Additional icon colors for new tools */
.tool-icon.bg-teal {
    background-color: #e6fffa;
    color: #319795;
}

/* Progress Bar Styles */
.progress-container {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.progress-bar {
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    height: 8px;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary), #3b82f6);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-value.success {
    color: var(--success);
}

/* Video Preview */
.video-preview {
    margin: 1rem 0;
    text-align: center;
}

.video-preview video {
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Custom Settings */
.custom-settings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Result Item */
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

/* Download All Button */
.download-all-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

/* Timeline Styles for Video Trim */
.timeline-container {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.timeline {
    position: relative;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    margin: 1rem 0;
    cursor: pointer;
}

.timeline-track {
    width: 100%;
    height: 100%;
    background: var(--border);
    border-radius: 4px;
}

.start-handle, .end-handle {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: ew-resize;
    transform: translateX(-50%);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trim-region {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    opacity: 0.7;
}

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

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-group input[type="text"],
.input-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* GIF Preview Styles */
.gif-preview {
    text-align: center;
    margin: 1rem 0;
}

.gif-placeholder {
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.gif-details, .conversion-details, .pdf-details, .audio-details {
    display: grid;
    gap: 0.75rem;
}

.detail-row, .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child, .detail-item:last-child {
    border-bottom: none;
}

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

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value.success {
    color: var(--success);
}

/* Progress Stage */
.progress-stage {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Compression Stats */
.compression-stats {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Error Message */
.error-message {
    padding: 1rem;
    background: #fee;
    color: #c53030;
    border-radius: 8px;
    border: 1px solid #fed7d7;
    margin: 1rem 0;
    text-align: center;
}

/* Hero Section Styles */
.hero-section {
    text-align: center;
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 24px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-subtitle {
    margin-bottom: 1.5rem;
}

.hero-subtitle p {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.feature-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

/* Premium Tool Page Styles */
.converter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.upload-area {
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(168, 85, 247, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    opacity: 1;
    transform: scale(1.05);
}

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

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.supported-formats {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* File Preview Styles */
.file-preview, .video-preview, .page-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: slideIn 0.3s ease;
}

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

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

.preview-header h3 {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Premium Advanced Options */
.premium-advanced-section {
    background: linear-gradient(145deg, var(--bg-secondary), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-advanced-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.advanced-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.advanced-toggle:hover {
    background: rgba(99, 102, 241, 0.05);
}

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

.advanced-toggle-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.advanced-chevron {
    transition: transform 0.3s ease;
    color: var(--text-tertiary);
}

.premium-content {
    padding: 0 2rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.01);
}

.settings-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.settings-category:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

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

@media (max-width: 768px) {
    .settings-row {
        grid-template-columns: 1fr;
    }
    
    .premium-toggle {
        padding: 1.25rem 1.5rem;
    }
    
    .premium-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setting-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.premium-select {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.premium-select:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.premium-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.select-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: all 0.2s ease;
}

.premium-select:focus + .select-icon {
    color: var(--primary);
    transform: rotate(180deg);
}

.setting-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.4;
}

.premium-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.premium-input:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.premium-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Premium Checkbox Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.premium-checkbox-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.premium-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    position: relative;
}

.premium-checkbox:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.premium-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.premium-checkbox:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1.4;
}

/* ===== SORTABLE DRAG AND DROP STYLING ===== */
.sortable-ghost {
    opacity: 0.4;
    transform: scale(0.98);
}

.sortable-chosen {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.sortable-drag {
    transform: rotate(2deg);
    z-index: 1001;
}

.file-card {
    cursor: move;
    transition: all 0.2s ease;
    user-select: none;
}

.file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Advanced Options Specific Styling */
.advanced-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    min-height: 80px;
    resize: vertical;
}

.advanced-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.advanced-input:focus,
.advanced-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.metadata-fields {
    display: grid;
    gap: 1rem;
}

.metadata-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.custom-metadata {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.options-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.options-header:hover {
    background: var(--bg-secondary);
}

.options-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.options-icon {
    color: var(--primary);
}

.chevron {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.advanced-options.expanded .chevron {
    transform: rotate(180deg);
}

.options-content {
    padding: 1.5rem;
    display: none;
    gap: 1.5rem;
    flex-direction: column;
}

.advanced-options.expanded .options-content {
    display: flex;
}

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

.option-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.option-group select,
.option-group input[type="text"],
.option-group input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.option-group select:focus,
.option-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.option-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Convert Button Enhanced */
.convert-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

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

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

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

/* Progress Container Enhanced */
.progress-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #4f46e5);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Results Section Enhanced */
.results {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.results h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

/* Video List Styles */
.video-list {
    margin: 1rem 0;
}

.video-list h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.video-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.video-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
}

.video-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-preview video {
    border-radius: 6px;
    object-fit: cover;
}

.video-info {
    flex: 1;
}

.video-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.video-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.video-controls {
    display: flex;
    gap: 0.5rem;
}

.move-up-btn, .move-down-btn, .remove-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.move-up-btn:hover, .move-down-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.remove-btn:hover {
    background: #fee;
    border-color: #e53e3e;
    color: #e53e3e;
}

.move-up-btn:disabled, .move-down-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.add-more-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.merge-details {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* PDF Rotate & Watermark Specific Styles */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.page-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.page-preview-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-thumbnail {
    width: 80px;
    height: 100px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.page-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rotate-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rotate-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.rotation-angle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 35px;
}

.rotation-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.rotate-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.rotate-all-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Watermark Specific Styles */
.watermark-setup {
    margin-bottom: 2rem;
}

.watermark-type-selection {
    margin-bottom: 2rem;
}

.watermark-type-selection h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.type-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.type-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--text-primary);
}

.type-btn:hover {
    border-color: var(--primary);
}

.type-btn.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}

.watermark-config {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.config-group:last-child {
    margin-bottom: 0;
}

.config-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.config-group input[type="range"] {
    width: 100%;
    margin-right: 0.5rem;
}

.position-controls {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.position-controls h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.position-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.position-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.position-btn.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.appearance-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 60px;
}

.image-preview {
    margin-top: 0.5rem;
    text-align: center;
}

/* Video Controls & Trim Styles */
.video-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.video-player {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.video-info, .trim-info, .gif-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.trim-controls, .gif-settings {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

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

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

.time-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.time-input-group input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.trim-slider {
    width: 100%;
    margin: 1rem 0;
}

.duration-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.duration-item {
    text-align: center;
}

.duration-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

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

/* GIF Specific Styles */
.gif-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.control-section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
}

.control-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

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

.range-control label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 80px;
}

.range-control input[type="range"] {
    flex: 1;
}

.range-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 60px;
    text-align: right;
}

.duration-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.duration-btn {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.duration-btn:hover {
    border-color: var(--primary);
}

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

.gif-stats {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

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

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

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Detail Display Styles */
.detail-row, .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child, .detail-item:last-child {
    border-bottom: none;
}

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

.detail-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-value.success {
    color: var(--success);
}

/* Error Message Styles */
.error-message {
    background: #fee;
    border: 1px solid #e53e3e;
    color: #e53e3e;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Enhanced Loading States */
.progress-stage {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
    }
    
    .video-item-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .video-preview {
        align-self: center;
    }
    
    .video-controls {
        align-self: flex-end;
    }
    
    .converter-container {
        padding: 0 0.75rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .type-buttons {
        grid-template-columns: 1fr;
    }
    
    .position-grid {
        max-width: 150px;
    }
    
    .position-btn {
        width: 35px;
        height: 35px;
    }
    
    .appearance-controls {
        grid-template-columns: 1fr;
    }
    
    .pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Features section */
.features-section {
    margin-bottom: var(--section-spacing);
    background-color: #F9FAFB;
    padding: 2rem 0;
}

.features-container {
    background-color: transparent;
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: none;
    border: none;
}

.features-header {
    text-align: center;
    margin-bottom: 2rem;
}

.features-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.features-subtitle {
    color: hsl(210, 11%, 71%);
    max-width: 42rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.feature-description {
    color: hsl(210, 11%, 71%);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Tool pages */
.tool-header-section {
    text-align: center;
    margin-bottom: var(--section-spacing);
    padding: var(--section-spacing) 0 0;
}

.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-hover);
}

.tool-page-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.tool-page-description {
    font-size: 1.25rem;
    color: hsl(210, 11%, 71%);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tool container */
.tool-container {
    background-color: var(--surface);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(210, 20%, 92%);
    margin-bottom: 2rem;
}

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

.file-drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--muted);
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: var(--primary);
    background-color: var(--accent-blue);
}

.upload-icon {
    width: 4rem;
    height: 4rem;
    color: hsl(210, 11%, 71%);
    margin: 0 auto 1rem;
}

.upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(215, 25%, 35%);
    margin-bottom: 0.5rem;
}

.upload-instructions {
    color: hsl(210, 11%, 71%);
    font-size: 0.875rem;
}

.file-input {
    display: none;
}

/* Quality settings */
.quality-settings {
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.quality-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.quality-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--muted);
    transition: all 0.2s ease;
}

.quality-option:has(input:checked) {
    background-color: var(--accent-blue);
    border-color: var(--primary);
}

.quality-option input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: var(--primary);
}

.quality-label {
    font-weight: 500;
    color: var(--foreground);
}

/* File list */
.file-list {
    margin-bottom: 2rem;
}

.file-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--muted);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.file-card:hover {
    background-color: hsl(210, 40%, 94%);
}

.file-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.file-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--accent-blue);
    color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.file-details {
    min-width: 0;
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.125rem;
    word-break: break-word;
}

.file-size {
    font-size: 0.875rem;
    color: hsl(210, 11%, 71%);
}

.file-error {
    font-size: 0.875rem;
    color: hsl(0, 84%, 60%);
    margin-top: 0.25rem;
}

.file-remove {
    background: none;
    border: none;
    color: hsl(0, 84%, 60%);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.file-remove:hover {
    color: hsl(0, 84%, 50%);
    background-color: var(--accent-red);
}

.drag-handle {
    background: none;
    border: none;
    color: hsl(210, 11%, 71%);
    cursor: grab;
    padding: 0.5rem;
    margin-right: 0.5rem;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Progress section */
.progress-section {
    margin-bottom: 2rem;
}

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

.progress-label {
    font-weight: 500;
    color: hsl(215, 25%, 35%);
}

.progress-text {
    font-size: 0.875rem;
    color: hsl(210, 11%, 71%);
}

.progress-bar-container {
    width: 100%;
    background-color: hsl(210, 40%, 92%);
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.ffmpeg-status {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: hsl(210, 11%, 71%);
    font-style: italic;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

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

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

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

.btn-secondary {
    background-color: hsl(210, 40%, 92%);
    color: hsl(215, 25%, 35%);
}

.btn-secondary:hover:not(:disabled) {
    background-color: hsl(210, 40%, 88%);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: hsl(142, 71%, 40%);
}

/* Download section */
.download-section {
    margin-bottom: 2rem;
}

.success-message {
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.success-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.success-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--success);
    margin-right: 0.5rem;
}

.success-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(142, 71%, 25%);
}

.success-text {
    color: hsl(142, 71%, 35%);
    margin-bottom: 1rem;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--surface);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
}

.download-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.download-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--success);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.download-filename {
    font-weight: 500;
    color: var(--foreground);
    word-break: break-word;
}

/* Tool info section */
.tool-info-section {
    background-color: var(--accent-blue);
    border: 1px solid hsl(207, 100%, 88%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.info-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(215, 84%, 25%);
    margin-bottom: 0.5rem;
}

.info-content {
    color: hsl(215, 84%, 30%);
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.25rem;
}

.info-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Footer - Responsive Design */
.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 1.5rem;
    margin: 0 auto;
}

/* Mobile Footer - Show only on mobile */
.footer-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0 1.5rem;
}

.footer-desktop {
    display: none;
}

/* Mobile Footer Components */
.footer-brand {
    text-align: center;
}

.footer-title {
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.footer-tagline {
    color: hsl(210, 11%, 65%);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.footer-links-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-popular {
    text-align: center;
}

.footer-category {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(210, 11%, 55%);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.footer-tools {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-quick-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.footer-quick-link:hover {
    background: rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.footer-support {
    text-align: center;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: hsl(210, 11%, 65%);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0 1rem;
    text-align: center;
}

.footer-bottom p {
    color: hsl(210, 11%, 55%);
    font-size: 0.75rem;
    margin: 0;
    font-weight: 500;
}

/* Desktop Footer - Show only on desktop (768px+) */
@media (min-width: 768px) {
    .footer .container {
        padding: 0 2rem;
    }
    
    .footer-mobile {
        display: none;
    }
    
    .footer-desktop {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(3, 1fr);
        padding: 3rem 0;
    }
    
    .footer-section {
        min-width: 0;
    }
    
    .footer-title {
        font-weight: 700;
        color: var(--foreground);
        margin-bottom: 1rem;
        font-size: 1.125rem;
    }
    
    .footer-subtitle {
        font-weight: 600;
        color: var(--foreground);
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .footer-description {
        color: hsl(210, 11%, 71%);
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .footer-links {
        list-style: none;
        padding: 0;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-desktop .footer-link {
        color: hsl(210, 11%, 71%);
        text-decoration: none;
        font-size: 0.875rem;
        transition: color 0.2s ease;
        font-weight: 400;
    }
    
    .footer-desktop .footer-link:hover {
        color: var(--primary);
    }
    
    .footer-bottom {
        padding: 2rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.875rem;
        color: hsl(210, 11%, 71%);
    }
}

@media (min-width: 1024px) {
    .footer-desktop {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Legal Pages Styles */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.page-header {
    text-align: center;
    padding: 4rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.page-subtitle {
    color: hsl(210, 11%, 71%);
    font-size: 1rem;
    font-weight: 500;
}

.content-section {
    padding: 0 0 4rem;
    max-width: 48rem;
    margin: 0 auto;
}

.placeholder-content {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    color: hsl(210, 11%, 71%);
    font-size: 1rem;
    line-height: 1.6;
}

.placeholder-content p {
    margin: 0;
}

/* Utility classes */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Mobile responsiveness */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .tool-container {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        min-width: unset;
        width: 100%;
    }
    
    .quality-options {
        flex-direction: column;
    }
    
    .quality-option {
        width: 100%;
    }
    
    .file-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .file-info {
        width: 100%;
    }
    
    .download-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .download-info {
        width: 100%;
    }
}

/* Preview container */
.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.preview-image {
    text-align: center;
    background-color: var(--muted);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--border);
}

.preview-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.preview-filename {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--foreground);
    font-weight: 500;
    word-break: break-word;
}

/* Universal Converter Hero Section */
.universal-hero-section {
    text-align: center;
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

.universal-hero-title {
    font-size: clamp(2.75rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.universal-hero-description {
    font-size: 1.375rem;
    color: hsl(210, 11%, 71%);
    max-width: 48rem;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-weight: 400;
}

.universal-converter-interface {
    max-width: 740px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--surface);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid hsl(210, 20%, 90%);
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed hsl(210, 11%, 85%);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    background-color: hsl(210, 20%, 99%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary);
    background-color: hsl(215, 84%, 98%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

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

.upload-icon {
    color: hsl(210, 11%, 71%);
    opacity: 0.8;
}

.drop-zone-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--foreground);
    margin: 0;
}

.drop-zone-subtext {
    font-size: 1rem;
    color: hsl(210, 11%, 71%);
    margin: 0;
}

/* Converter Controls */
.converter-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.choose-file-btn {
    background-color: var(--surface);
    border: 2px solid var(--border);
    color: var(--foreground);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.choose-file-btn:hover {
    border-color: var(--primary);
    background-color: hsl(215, 84%, 98%);
    transform: translateY(-1px);
}

.convert-options {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.select-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.format-select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--surface);
    color: var(--foreground);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.format-select:hover,
.format-select:focus {
    border-color: var(--primary);
    outline: none;
}

.convert-now-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.convert-now-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

/* File Preview Styles */
.file-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.file-preview-image {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
}

.file-preview-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
}

.file-preview-icon.pdf-icon {
    background-color: var(--accent-red);
    color: hsl(0, 84%, 50%);
}

.file-preview-icon.video-icon {
    background-color: var(--accent-purple);
    color: hsl(268, 85%, 50%);
}

.file-preview-icon.generic-icon {
    background-color: var(--muted);
    color: hsl(210, 11%, 71%);
}

.file-preview-info {
    text-align: center;
    margin-top: 0.75rem;
}

.file-preview-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0 0 0.25rem 0;
    word-break: break-word;
}

.file-preview-size {
    font-size: 0.875rem;
    color: hsl(210, 11%, 71%);
    margin: 0;
}

/* Why FileFlow Exists Section */
.why-section {
    background-color: var(--surface);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.why-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.why-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.why-description {
    font-size: 1.25rem;
    color: hsl(210, 11%, 71%);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.why-points {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.why-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: hsl(210, 20%, 99%);
    border-radius: var(--radius-lg);
    border: 1px solid hsl(210, 20%, 92%);
}

.why-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.why-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--foreground);
}

/* Responsive adjustments for universal converter */
@media (max-width: 640px) {
    .universal-converter-interface {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    .convert-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .format-select,
    .convert-now-btn,
    .choose-file-btn {
        width: 100%;
    }
    
    .why-title {
        font-size: 2rem;
    }
    
    .why-description {
        font-size: 1.125rem;
    }
    
    .why-point {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .why-icon {
        align-self: center;
    }
}

/* Advanced Options Styles */
.advanced-options-section {
    margin: 2rem 0;
}

.advanced-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.advanced-toggle:hover {
    border-color: var(--primary);
    background-color: hsl(215, 84%, 98%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.advanced-toggle-text {
    flex: 1;
    text-align: left;
}

.advanced-toggle-icon {
    margin-left: 0.5rem;
    font-size: 1.125rem;
}

.advanced-chevron {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.advanced-toggle.expanded .advanced-chevron {
    transform: rotate(180deg);
}

.advanced-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--surface);
    border: 2px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.advanced-content.expanded {
    max-height: 800px;
    padding: 1.5rem;
    border-color: var(--primary);
}

.advanced-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .advanced-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .advanced-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.advanced-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.advanced-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

.advanced-input,
.advanced-select {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.advanced-input:focus,
.advanced-select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--surface);
}

.resize-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resize-inputs .advanced-input {
    flex: 1;
}

.resize-separator {
    color: hsl(210, 11%, 71%);
    font-weight: 500;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.advanced-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
}

.advanced-hint {
    font-size: 0.75rem;
    color: hsl(210, 11%, 71%);
    margin: 0;
    font-style: italic;
}

/* Range slider styles */
.range-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
}

.range-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: hsl(210, 11%, 71%);
}

.range-value {
    font-weight: 600;
    color: var(--primary);
}

/* === UNIVERSAL CONVERTER === */
.universal-converter-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.universal-drop-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--card);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.universal-drop-zone:hover,
.universal-drop-zone.drag-over {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, var(--card));
    transform: translateY(-2px);
}

.universal-upload-icon {
    width: 48px;
    height: 48px;
    color: var(--muted-foreground);
    margin: 0 auto 1rem;
}

.universal-upload-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.universal-upload-instructions {
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* File Preview Cards */
.file-preview-section {
    margin: 2rem 0;
}

.file-preview-container {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .file-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

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

.file-preview-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.file-preview-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    position: relative;
}

.file-preview-thumbnail {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.file-type-icon {
    font-size: 24px;
}

.file-preview-info {
    flex-grow: 1;
    min-width: 0;
}

.file-preview-name {
    font-weight: 500;
    color: var(--foreground);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.file-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--destructive);
    color: var(--destructive-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.file-preview-card:hover .file-remove-btn {
    opacity: 1;
}

.file-remove-btn:hover {
    background: color-mix(in srgb, var(--destructive) 80%, black);
}

/* Conversion Section */
.conversion-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.conversion-options {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .conversion-options {
        grid-template-columns: 1fr 1fr;
    }
}

.conversion-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.conversion-label {
    font-weight: 500;
    color: var(--foreground);
    font-size: 0.9rem;
}

.format-select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--foreground);
    font-size: 0.9rem;
}

.format-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* Universal Progress */
.universal-progress-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

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

.universal-progress-message {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.universal-progress-text {
    font-weight: 600;
    color: var(--primary);
}

/* Universal Download Section */
.universal-download-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.universal-download-container {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .universal-download-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .action-buttons,
    .universal-converter-interface,
    .advanced-options-section {
        display: none;
    }
}

/* Tool Information Section Styles */
.tool-info-section {
    margin: 3rem 0 2rem;
    padding: 2rem;
    background: var(--gradient-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.info-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

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

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.info-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
    line-height: 1.4;
}

.info-card p {
    font-size: var(--font-size-sm);
    color: var(--foreground-light);
    line-height: 1.6;
    margin: 0;
}

.tool-benefits {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.tool-benefits h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--foreground);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.tool-benefits p {
    font-size: var(--font-size-base);
    color: var(--foreground-light);
    line-height: 1.7;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for tool info section */
@media (max-width: 768px) {
    .tool-info-section {
        margin: 2rem 0 1.5rem;
        padding: 1.5rem;
    }
    
    .info-grid {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .info-card {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .info-card h3 {
        font-size: var(--font-size-base);
    }
    
    .tool-benefits {
        padding: 1.5rem;
    }
    
    .tool-benefits h3 {
        font-size: var(--font-size-lg);
    }
    
    .tool-benefits p {
        font-size: var(--font-size-sm);
    }
}

/* Homepage Revamp Styles */

/* Hero CTA Button */
.hero-cta {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Featured Tool Card */
.tool-card.featured-tool {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.03));
    border: 2px solid var(--primary);
    position: relative;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.featured-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 0 12px 0 12px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}



/* Benefits Section */
.benefits-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(168, 85, 247, 0.02));
    border-radius: 24px;
    border: 1px solid var(--border);
}

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

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

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.benefit-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1.8rem auto;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

/* Conversion Loading Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Premium Extended Tools Page Styles */
.premium-page {
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.015) 0%, 
        rgba(99, 102, 241, 0.01) 50%, 
        rgba(59, 130, 246, 0.015) 100%);
    min-height: 100vh;
    padding: 0 1rem;
    position: relative;
    overflow-x: hidden;
}

.premium-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(147, 51, 234, 0.02) 0%, transparent 60%),
        radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.02) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.015) 0%, transparent 70%);
    animation: backgroundShift 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1) rotate(0deg); 
    }
    33% { 
        opacity: 0.8; 
        transform: scale(1.02) rotate(0.5deg); 
    }
    66% { 
        opacity: 0.4; 
        transform: scale(1.01) rotate(-0.5deg); 
    }
}

/* Premium container */
.premium-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
    .premium-hero,
    .premium-tool-card,
    .premium-benefit-card {
        animation-duration: 0.8s;
        animation-fill-mode: both;
        animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .premium-hero {
        animation-name: fadeInUp;
    }
    
    .premium-benefit-card {
        animation-name: fadeInUp;
        animation-delay: 0.2s;
    }
}

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


@media (min-width: 1200px) {
    .premium-container {
        max-width: 1000px;
        padding: 0 1.5rem;
    }
}









.premium-hero {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    margin: 2rem 0 3rem 0;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03), 
                0 2px 8px rgba(0, 0, 0, 0.02),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-align: center;
}

.premium-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(147, 51, 234, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
    border-radius: 24px;
}

@keyframes heroGlow {
    from { 
        opacity: 0.3;
        transform: scale(1);
    }
    to { 
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.premium-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle at center, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

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

.premium-tools-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin: 3rem 0;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .premium-tools-grid {
        gap: 2.5rem;
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .premium-tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Staggered card animations */
.premium-tool-card:nth-child(1) { animation-delay: 0.1s; }
.premium-tool-card:nth-child(2) { animation-delay: 0.2s; }
.premium-tool-card:nth-child(3) { animation-delay: 0.3s; }
.premium-tool-card:nth-child(4) { animation-delay: 0.4s; }
.premium-tool-card:nth-child(5) { animation-delay: 0.5s; }
.premium-tool-card:nth-child(6) { animation-delay: 0.6s; }
.premium-tool-card:nth-child(7) { animation-delay: 0.7s; }
.premium-tool-card:nth-child(8) { animation-delay: 0.8s; }

/* Alternating card elevations for visual interest */
.premium-tool-card:nth-child(even) {
    transform: translateY(10px);
}

.premium-tool-card:nth-child(3n) {
    transform: translateY(5px);
}

.premium-tool-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 
                0 2px 8px rgba(0, 0, 0, 0.02),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
    opacity: 0;
    animation: cardSlideUp 0.8s ease-out forwards;
}

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

/* Enhanced 3D icon containers with gradients */
.premium-tool-card .tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.premium-tool-card .tool-icon.bg-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.premium-tool-card .tool-icon.bg-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.premium-tool-card .tool-icon.bg-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.premium-tool-card .tool-icon.bg-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.premium-tool-card .tool-icon.bg-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.premium-tool-card .tool-icon.bg-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.premium-tool-card .tool-icon.bg-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.premium-tool-card .tool-icon.bg-pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.premium-tool-card:hover .tool-icon {
    transform: scale(1.15) rotateY(10deg);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.premium-tool-card .tool-icon svg {
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.premium-tool-card:hover .tool-icon svg {
    transform: scale(1.1);
}

.premium-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    opacity: 0;
}

.premium-tool-card:hover::before {
    transform: translateX(100%);
    opacity: 1;
}

.premium-tool-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 
                0 8px 16px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(147, 51, 234, 0.2);
}

.premium-tool-card:nth-child(even):hover {
    transform: translateY(-2px) scale(1.02);
}

.premium-tool-card:nth-child(3n):hover {
    transform: translateY(-7px) scale(1.02);
}

.premium-section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.12), transparent);
    margin: 4rem 0 3rem 0;
    position: relative;
}

@media (max-width: 768px) {
    .premium-section-divider {
        margin: 3rem 0 2rem 0;
    }
}

.premium-section-divider::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: rgba(147, 51, 234, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(147, 51, 234, 0.15);
}

.premium-benefits-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin: 5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03), 
                0 2px 8px rgba(0, 0, 0, 0.02),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.premium-benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(147, 51, 234, 0.02) 0%, transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.015) 0%, transparent 60%);
    animation: benefitsGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
    border-radius: 24px;
}

@keyframes benefitsGlow {
    from { 
        opacity: 0.4;
    }
    to { 
        opacity: 0.7;
    }
}



.premium-benefit-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.premium-benefit-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.premium-benefit-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.premium-title {
    background: linear-gradient(135deg, var(--primary), rgba(147, 51, 234, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: brightness(1) saturate(1);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    to {
        filter: brightness(1.02) saturate(1.05);
        text-shadow: 0 4px 8px rgba(147, 51, 234, 0.15);
    }
}

@media (max-width: 768px) {
    .premium-title {
        font-size: 2.5rem;
        letter-spacing: -0.02em;
    }
}

@media (max-width: 480px) {
    .premium-title {
        font-size: 2rem;
    }
}

.premium-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.premium-subtitle {
    color: var(--foreground);
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.75;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .premium-subtitle {
        font-size: 1.125rem;
    }
}

/* Premium section headers */
.premium-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.premium-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.premium-section-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--foreground-light);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced tool card content */
.premium-tool-card .tool-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.premium-tool-card .tool-info {
    flex: 1;
}

.premium-tool-card .tool-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    color: var(--foreground);
}

.premium-tool-card .tool-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--foreground-light);
    margin-bottom: 1.25rem;
}

.premium-tool-card .tool-features {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary);
    padding: 0.75rem 1rem;
    background: rgba(147, 51, 234, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(147, 51, 234, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.premium-tool-card:hover .tool-features {
    background: rgba(147, 51, 234, 0.06);
    border-color: rgba(147, 51, 234, 0.12);
}

/* Coming soon enhancements */
.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    animation: comingSoonPulse 2s ease-in-out infinite;
}

@keyframes comingSoonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
    }
}

.coming-soon-badge svg {
    animation: spin 2s linear infinite;
}

/* Premium benefit card styling */
.premium-benefit-title {
    color: var(--foreground);
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.premium-benefit-description {
    color: rgba(75, 85, 99, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.premium-benefit-description {
    color: var(--foreground-light);
    line-height: 1.6;
    font-size: 1rem;
}

.premium-benefit-icon-green {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.premium-benefit-icon-blue {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.premium-benefit-icon-purple {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.premium-benefit-icon-orange {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.premium-benefit-card:hover .benefit-icon {
    transform: scale(1.05) translateY(-2px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

/* Add premium benefits section styling back */
.premium-benefits-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin: 5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03), 
                0 2px 8px rgba(0, 0, 0, 0.02),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.premium-benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(147, 51, 234, 0.02) 0%, transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.015) 0%, transparent 60%);
    animation: benefitsGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
    border-radius: 24px;
}

@keyframes benefitsGlow {
    from { 
        opacity: 0.4;
    }
    to { 
        opacity: 0.7;
    }
}

/* Responsive typography improvements */
@media (max-width: 768px) {
    .premium-section-title {
        font-size: 1.75rem;
    }
    
    .premium-section-subtitle {
        font-size: 1rem;
    }
    
    .premium-tool-card .tool-title {
        font-size: 1.25rem;
    }
    
    .premium-tool-card .tool-description {
        font-size: 0.95rem;
    }
    
    .premium-tool-card .tool-icon {
        width: 48px;
        height: 48px;
    }
    
    .premium-hero {
        padding: 3rem 2rem;
    }
    
    .premium-benefits-section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .premium-tools-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
        padding: 0;
        margin: 2rem 0;
    }
    
    .premium-tool-card {
        padding: 1.5rem;
        margin: 0 0.25rem;
    }
    
    .premium-hero {
        padding: 2.5rem 1.5rem;
        margin: 1rem 0 2rem 0;
        border-radius: 20px;
    }
    
    .premium-benefits-section {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
        margin: 3rem 0;
    }
    
    .premium-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .premium-section-title {
        font-size: 1.5rem;
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 1366px) {
    .premium-page {
        padding: 0 1rem;
    }
}

@media (max-width: 1024px) {
    .premium-page {
        padding: 0 1.5rem;
    }
    
    .premium-container {
        padding: 0 1rem;
    }
}

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

/* Micro-interactions and advanced animations */
.premium-tool-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.premium-tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 20px;
}

.premium-tool-card:hover::after {
    opacity: 1;
}

/* Trust and conversion elements */
.trust-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--foreground-light);
    margin-top: 2rem;
    opacity: 0.8;
}

.trust-indicator svg {
    width: 16px;
    height: 16px;
    color: var(--success);
}

/* New UI Components for Rebuilt Tools */

/* PDF Merge - Files List Styles */
.files-list {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--element-spacing);
    margin: var(--element-spacing) 0;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: var(--element-spacing);
    padding: var(--element-spacing);
    background: var(--muted);
    border-radius: var(--radius-md);
    margin-bottom: var(--micro-spacing);
    cursor: grab;
    transition: all var(--transition-base);
}

.file-item:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.file-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.file-item .drag-handle {
    color: var(--foreground-light);
    cursor: grab;
}

.file-item .file-info {
    flex: 1;
}

.file-item .file-name {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 2px;
}

.file-item .file-size {
    font-size: var(--font-size-sm);
    color: var(--foreground-light);
}

.file-item .remove-btn {
    padding: 0.5rem;
    background: var(--error-bg);
    color: var(--error);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.file-item .remove-btn:hover {
    background: var(--error);
    color: white;
}

/* PDF Rotate - Angle Selection Styles */
.angle-selection {
    display: flex;
    gap: var(--element-spacing);
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--element-spacing) 0;
}

.angle-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--micro-spacing);
    padding: var(--element-spacing);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 120px;
    flex: 1;
}

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

.angle-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.angle-btn .angle-icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--micro-spacing);
}

.angle-btn .angle-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* PDF Watermark - Additional Form Styles */
.watermark-options {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--card-spacing);
    margin: var(--element-spacing) 0;
    box-shadow: var(--shadow-soft);
}

.watermark-controls {
    display: grid;
    gap: var(--element-spacing);
}

.watermark-type {
    margin-bottom: var(--element-spacing);
}

.text-watermark-settings,
.image-watermark-settings {
    display: grid;
    gap: var(--element-spacing);
    padding: var(--element-spacing) 0;
    border-top: 1px solid var(--border-soft);
}

.common-settings {
    display: grid;
    gap: var(--element-spacing);
    padding: var(--element-spacing) 0;
    border-top: 1px solid var(--border-soft);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--micro-spacing);
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--foreground);
}

.form-group input,
.form-group select {
    padding: var(--element-spacing);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--foreground);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input[type="range"] {
    padding: 0;
}

.form-group input[type="color"] {
    padding: 0.25rem;
    height: 2.5rem;
    cursor: pointer;
}

/* Enhanced Button Styles */
.convert-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--micro-spacing);
    width: 100%;
    padding: var(--element-spacing) var(--card-spacing);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    margin: var(--card-spacing) 0;
    box-shadow: var(--shadow-md);
}

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

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

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

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

/* Results and Stats Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--element-spacing);
    margin: var(--element-spacing) 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--element-spacing);
    background: var(--muted);
    border-radius: var(--radius-md);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--foreground-light);
}

.stat-value {
    font-weight: 600;
    color: var(--foreground);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--micro-spacing);
    padding: var(--element-spacing) var(--card-spacing);
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-soft);
}

.download-btn:hover {
    background: var(--success);
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.result-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--element-spacing);
}

.upload-area.busy {
    pointer-events: none;
    opacity: 0.6;
}

/* Processing Overlay Styles */
.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    z-index: 10;
}

.processing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--element-spacing);
    text-align: center;
}

.processing-content p {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
}

/* Spinner Animation */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Audio Preview Styles */
.audio-preview-container {
    background: var(--muted);
    padding: var(--card-spacing);
    border-radius: var(--radius-md);
    margin: var(--element-spacing) 0;
}

.audio-preview-container h4 {
    margin: 0 0 var(--element-spacing) 0;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.audio-preview-container audio {
    border-radius: var(--radius-sm);
    outline: none;
}

.audio-preview-container audio:focus {
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* Audio/Video Stats Styles */
.audio-stats, .video-stats, .gif-stats, .merge-stats {
    background: var(--muted);
    padding: var(--card-spacing);
    border-radius: var(--radius-md);
    margin: var(--element-spacing) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--element-spacing);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--element-spacing);
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--micro-spacing);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
}

/* Error Message Styles */
.error-message {
    padding: var(--element-spacing);
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error-border);
    border-radius: var(--radius-md);
    margin: var(--element-spacing) 0;
    font-weight: 500;
    display: none;
}

.error-content {
    display: flex;
    align-items: center;
    gap: var(--element-spacing);
}

.error-content svg {
    flex-shrink: 0;
    color: var(--error);
}

/* Video Details Styles */
.video-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--element-spacing);
    margin-top: var(--element-spacing);
}

.detail-item {
    display: inline-flex;
    align-items: center;
    gap: var(--micro-spacing);
    padding: calc(var(--micro-spacing) * 0.5) var(--element-spacing);
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Upload area processing state */
.upload-area {
    position: relative;
    overflow: hidden;
}

/* Improved button loading state */
.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Video Merger Styles */
.video-list {
    background: var(--muted);
    padding: var(--card-spacing);
    border-radius: var(--radius-md);
    margin: var(--element-spacing) 0;
}

.video-list h3 {
    margin: 0 0 var(--element-spacing) 0;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.video-items {
    display: flex;
    flex-direction: column;
    gap: var(--element-spacing);
    margin-bottom: var(--element-spacing);
}

.video-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--element-spacing);
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}

.video-item-info {
    flex: 1;
}

.video-item-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--micro-spacing);
}

.video-item-size {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.video-item-actions {
    display: flex;
    gap: var(--micro-spacing);
}

.video-item-actions button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.video-item-actions button:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.video-item-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.move-up-btn, .move-down-btn {
    color: var(--text-secondary);
}

.remove-btn {
    color: var(--error);
}

.remove-btn:hover:not(:disabled) {
    border-color: var(--error);
    background: var(--error-bg);
}

.add-more-btn {
    display: flex;
    align-items: center;
    gap: var(--element-spacing);
    padding: var(--element-spacing) var(--card-spacing);
    background: var(--muted);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
    justify-content: center;
}

.add-more-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* GIF Preview Styles */
.gif-preview-container {
    background: var(--muted);
    padding: var(--card-spacing);
    border-radius: var(--radius-md);
    margin: var(--element-spacing) 0;
    text-align: center;
}

.gif-preview-container h4 {
    margin: 0 0 var(--element-spacing) 0;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.gif-preview-container img {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

/* Video Preview Styles - Ensure clickability */
.video-preview-slot { 
    position: relative; 
}

.video-preview-slot, 
.video-preview-slot * { 
    pointer-events: auto; 
}

.video-preview-slot video {
    max-width: 100%;
    border-radius: 12px;
}

#uploadArea { 
    position: relative; 
    z-index: 1; 
}


