/* ===========================================
   СОВРЕМЕННЫЙ КОНВЕРТЕР ИЗОБРАЖЕНИЙ 2024
   Полностью новый дизайн с нуля
   =========================================== */

/* ===========================================
   CSS ПЕРЕМЕННЫЕ И СИСТЕМА ДИЗАЙНА
   =========================================== */
:root {
  /* Основная палитра */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #a5b4fc;
  --primary-dark: #4338ca;
  
  --secondary: #64748b;
  --secondary-hover: #475569;
  
  --success: #10b981;
  --success-hover: #059669;
  
  --warning: #f59e0b;
  --warning-hover: #d97706;
  
  --error: #ef4444;
  --error-hover: #dc2626;
  
  --info: #06b6d4;
  --info-hover: #0891b2;
  
  /* Светлая тема */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.4);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-primary: #e2e8f0;
  --border-secondary: #cbd5e1;
  --border-focus: #6366f1;
  
  /* Тени */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Радиусы */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Шрифты */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  
  /* Размеры */
  --header-height: 72px;
  --footer-height: 120px;
  --container-max: 1280px;
  --sidebar-width: 320px;
  
  /* Переходы */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* Темная тема */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-overlay: rgba(0, 0, 0, 0.6);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  --border-primary: #334155;
  --border-secondary: #475569;
  --border-focus: #6366f1;
  
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

/* ===========================================
   БАЗОВЫЕ СТИЛИ
   =========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================================
   КОНТЕЙНЕРЫ И СЕТКА
   =========================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ===========================================
   ТИПОГРАФИКА
   =========================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* ===========================================
   КНОПКИ
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

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

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

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

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

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

/* ===========================================
   HEADER
   =========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-primary);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: var(--z-dropdown);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--bg-secondary);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--bg-secondary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--info));
  border-radius: var(--radius-full);
}

/* ===========================================
   NAVIGATION DROPDOWNS
   =========================================== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover {
  color: var(--primary);
  background-color: var(--bg-secondary);
  transform: translateY(-1px);
}

.nav-dropdown-toggle.active {
  color: var(--primary);
  background-color: var(--bg-secondary);
  font-weight: 600;
}

.dropdown-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform var(--transition-fast);
  opacity: 0.7;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  margin-bottom: 0.25rem;
}

.dropdown-item:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  transform: translateX(4px);
}

.dropdown-item i {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.dropdown-item:hover i {
  color: var(--primary-hover);
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.dropdown-item-title {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.2;
}

.dropdown-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-primary);
  margin: 0.5rem 0;
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.language-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
}

.language-selector:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.language-option:hover {
  background-color: var(--bg-secondary);
}

.language-option.active {
  background-color: var(--primary);
  color: var(--text-inverse);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

.theme-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: all var(--transition);
}

[data-theme="light"] .theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
    min-width: auto;
  }
  
  .dropdown-item {
    padding: 0.5rem 0;
    border-radius: 0;
    margin-bottom: 0;
  }
  
  .dropdown-item-content {
    gap: 0.125rem;
  }
  
  .dropdown-item-title {
    font-size: 0.8rem;
  }
  
  .dropdown-item-desc {
    font-size: 0.7rem;
  }
}

/* ===========================================
   MOBILE NAVIGATION
   =========================================== */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-primary);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-fixed);
  transform: translateY(-100%);
  transition: transform var(--transition);
  backdrop-filter: blur(10px);
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
  background-color: var(--bg-secondary);
}

.mobile-nav-section {
  margin-top: 1rem;
  border-top: 1px solid var(--border-primary);
  padding-top: 1rem;
}

.mobile-nav-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--bg-secondary);
  margin-bottom: 0.5rem;
  border-radius: var(--radius-md);
}

.mobile-nav-section-title i {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

/* ===========================================
   ADDITIONAL NAVIGATION ENHANCEMENTS
   =========================================== */

/* Smooth scrolling for anchor links */
.nav-link[href^="#"] {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.nav-link:focus,
.nav-dropdown-toggle:focus,
.mobile-nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Improved hover states */
.nav-link i,
.nav-dropdown-toggle i {
  transition: transform var(--transition-fast);
}

.nav-link:hover i,
.nav-dropdown-toggle:hover i {
  transform: scale(1.1);
}

/* Loading state for dropdowns */
.nav-dropdown.loading .dropdown-arrow {
  animation: spin 1s linear infinite;
}

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

/* Enhanced mobile menu animations */
.mobile-nav-link {
  position: relative;
  overflow: hidden;
}

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

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

/* Improved dropdown positioning for right-aligned dropdowns */
.nav-dropdown:last-child .nav-dropdown-menu {
  left: auto;
  right: 0;
}

/* Better spacing for navigation items */
.nav > *:not(:last-child) {
  margin-right: 0.25rem;
}

/* Enhanced visual feedback */
.nav-link.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--info));
  opacity: 0.1;
  border-radius: var(--radius-md);
  z-index: -1;
}

/* ===========================================
   FLASH MESSAGES
   =========================================== */
.flash-messages {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1rem;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
  pointer-events: none;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
}

.flash::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.flash-success {
  background: linear-gradient(135deg, 
    rgba(34, 197, 94, 0.95) 0%, 
    rgba(22, 163, 74, 0.95) 100%);
  color: white;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.flash-success::before {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.flash-error {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.95) 0%, 
    rgba(220, 38, 38, 0.95) 100%);
  color: white;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.flash-error::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.flash-warning {
  background: linear-gradient(135deg, 
    rgba(245, 158, 11, 0.95) 0%, 
    rgba(217, 119, 6, 0.95) 100%);
  color: white;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.flash-warning::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.flash-info {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.95) 0%, 
    rgba(37, 99, 235, 0.95) 100%);
  color: white;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.flash-info::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.flash-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.flash-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-icon i {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.flash-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.flash-close {
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.flash-close:active {
  transform: scale(0.95);
}

.flash-close i {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

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

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

.flash.slide-out {
  animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Hover effects */
.flash:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .flash-messages {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
  
  .flash {
    min-width: auto;
    max-width: none;
    padding: 1rem 1.25rem;
  }
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
  padding: 4rem 0 6rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, var(--primary-light) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, var(--info) 0%, transparent 50%);
  opacity: 0.1;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-accent {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

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

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  top: 10%;
  right: 20%;
  animation-delay: 1.5s;
}

.floating-card:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 3s;
}

.floating-card:nth-child(4) {
  bottom: 10%;
  right: 10%;
  animation-delay: 4.5s;
}

.floating-card:nth-child(5) {
  top: 50%;
  left: 5%;
  animation-delay: 6s;
}

.floating-card:nth-child(6) {
  top: 30%;
  right: 5%;
  animation-delay: 7.5s;
}

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

.card-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

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

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-visual {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 0 4rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
}

/* ===========================================
   SECTIONS
   =========================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================================
   FEATURES SECTION
   =========================================== */
.features {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

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

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--info));
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

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

.feature-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: auto;
}

.tag {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: auto;
  justify-content: center;
}

/* ===========================================
   HOW IT WORKS SECTION
   =========================================== */
.how-it-works {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--info));
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-lg);
}

.step-content {
  text-align: center;
}

.step-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--primary);
}

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

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===========================================
   SUPPORTED FORMATS SECTION
   =========================================== */
.supported-formats {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.format-category {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 1rem;
}

.format-category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.format-category-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

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

.format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.format-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

.format-icon {
  font-size: 1rem;
}

.format-name {
  font-weight: 500;
  font-size: 0.75rem;
}

/* ===========================================
   UPLOAD PROGRESS
   =========================================== */
.upload-progress {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
}

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

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

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

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  transition: width 0.3s ease;
  width: 0%;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.progress-speed {
  font-weight: 500;
  color: var(--success);
}

.progress-time {
  color: var(--text-secondary);
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--info) 100%);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta .btn-primary {
  background-color: white;
  color: var(--primary);
  font-weight: 600;
}

.cta .btn-primary:hover {
  background-color: var(--bg-secondary);
  color: var(--primary);
  transform: translateY(-2px);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta .btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.cta .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.cta-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
}

.cta-feature i {
  width: 1.25rem;
  height: 1.25rem;
}

/* ===========================================
   CONVERTER PAGE
   =========================================== */
.converter-header {
  padding: 2rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
}

.converter-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.converter-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.converter-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.converter-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.converter-description {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin: 0;
}

.converter-main {
  padding: 3rem 0;
  background-color: var(--bg-primary);
}

.converter-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Upload Section */
.upload-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.upload-area {
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background-color: var(--bg-secondary);
}

.upload-content {
  max-width: 400px;
  margin: 0 auto;
}

.upload-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.upload-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.upload-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.upload-or {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.upload-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upload-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* File List */
.file-list {
  margin-top: 2rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.file-list.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-primary);
}

.file-list-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.file-list-content {
  max-height: 300px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-primary);
  transition: background-color var(--transition-fast);
}

.file-item:hover {
  background-color: var(--bg-primary);
}

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

.file-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

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

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

.file-size {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.file-actions {
  display: flex;
  gap: 0.5rem;
}

.file-action {
  width: 2rem;
  height: 2rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-action:hover {
  background-color: var(--error);
  color: white;
  border-color: var(--error);
}

/* Settings Panel */
.settings-panel {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.settings-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

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

.settings-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

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

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setting-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Format Selector */
.format-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.format-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: var(--text-primary);
}

.format-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

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

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

/* Quality Control */
.quality-control {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quality-slider {
  position: relative;
}

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

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}

.quality-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

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

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

.quality-presets {
  display: flex;
  gap: 0.5rem;
}

.quality-preset {
  flex: 1;
  padding: 0.5rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
}

.quality-preset:hover {
  background-color: var(--bg-tertiary);
}

.quality-preset.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Advanced Options */
.advanced-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text-primary);
}

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

.checkbox-custom {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  font-size: 0.75rem;
  font-weight: 600;
}

.checkbox-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Convert Section */
.convert-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.convert-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.convert-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Progress Section */
.progress-section {
  padding: 2rem 0;
  background-color: var(--bg-secondary);
}

.progress-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--info));
  border-radius: var(--radius-full);
  transition: width var(--transition);
  width: 0%;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Results Section */
.results-section {
  padding: 2rem 0;
  background-color: var(--bg-primary);
}

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

.results-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.results-content {
  width: 100%;
}

/* Results Table */
.results-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
  background-color: var(--bg-card);
}

.results-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  table-layout: auto;
}

.results-table thead {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
}

.results-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-right: 1px solid var(--border-primary);
  white-space: nowrap;
}

.results-table th:last-child {
  border-right: none;
}

.results-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-primary);
  border-right: 1px solid var(--border-primary);
  vertical-align: middle;
}

.results-table td:last-child {
  border-right: none;
}

.results-table tbody tr:hover {
  background-color: var(--bg-secondary);
}

.result-row {
  transition: background-color var(--transition);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 50%;
  min-width: 250px;
}

.file-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

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

.file-name {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 35ch;
}

.file-format {
  text-align: center;
  width: 15%;
  min-width: 100px;
}

.format-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.file-size {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.875rem;
  width: 15%;
  min-width: 100px;
}

.file-actions {
  text-align: center;
  width: 20%;
  min-width: 140px;
  padding: 0.5rem;
}

.action-buttons {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.action-btn {
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

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

.action-btn.primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

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

.action-btn.secondary:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-1px);
}

/* Share Modal */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.share-modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.share-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.share-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.share-modal-close:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.share-modal-body {
  padding: 1.5rem;
}

.share-modal-body p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
}

.share-url-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.share-url-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: monospace;
}

.share-url-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.share-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.share-copy-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.share-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-primary);
  display: flex;
  justify-content: flex-end;
}

/* Page Content Styles */
.page-header {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, var(--primary), var(--info));
  color: white;
}

.page-header-content {
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin: 0;
}

.page-content {
  padding: 3rem 0;
  background-color: var(--bg-primary);
}

.content-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: 2.5rem;
}

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

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem 0;
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.content-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.content-section li {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

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

/* Cookies Table */
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cookies-table th {
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
}

.cookies-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.cookies-table tr:last-child td {
  border-bottom: none;
}

.cookies-table tr:nth-child(even) {
  background-color: var(--bg-tertiary);
}

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

.upload-area.drag-over .upload-icon-large {
    color: var(--primary);
}

.upload-area.drag-over .upload-text {
    color: var(--primary);
}

/* Responsive page content */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .content-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .content-section h2 {
    font-size: 1.25rem;
  }
  
  .cookies-table {
    font-size: 0.75rem;
  }
  
  .cookies-table th,
  .cookies-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Responsive table */
@media (max-width: 768px) {
  .results-table-container {
    font-size: 0.75rem;
  }
  
  .results-table th,
  .results-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .file-name {
    max-width: 100px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .action-btn {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .share-modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .share-url-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .share-copy-btn {
    justify-content: center;
  }
}

.result-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.result-preview {
  width: 100%;
  height: 150px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.result-info {
  margin-bottom: 1rem;
}

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

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

.result-actions {
  display: flex;
  gap: 0.5rem;
}

.result-action {
  flex: 1;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
}

.result-action:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.result-action.secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.result-action.secondary:hover {
  background-color: var(--bg-tertiary);
}

/* Statistics Section */
.stats-section {
  padding: 3rem 0;
  background-color: var(--bg-secondary);
}

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

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

.stat-content {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Footer Contact Styles */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-link:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.contact-link i {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

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

/* Mobile Footer Styles */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-contact {
    align-items: center;
  }
  
  .contact-link {
    justify-content: center;
    min-width: 200px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    gap: 1rem;
  }
  
  .contact-link {
    min-width: auto;
    width: 100%;
    max-width: 280px;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

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

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 1024px) {
  .converter-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .settings-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-features {
    gap: 1rem;
  }
  
  .steps::before {
    display: none;
  }
  
  .formats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .format-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .results-actions {
    flex-direction: column;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  /* Converter Mobile Styles */
  .converter-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .converter-actions {
    align-self: flex-end;
    margin-top: 0.5rem;
  }
  
  .converter-title {
    font-size: 1.5rem;
  }
  
  .converter-description {
    font-size: 1rem;
  }
  
  .converter-main {
    padding: 2rem 0;
  }
  
  .upload-area {
    padding: 2rem 1rem;
  }
  
  .upload-content {
    gap: 1rem;
  }
  
  .upload-title {
    font-size: 1.25rem;
  }
  
  .upload-description {
    font-size: 0.875rem;
  }
  
  .upload-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .upload-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  /* Converter Small Mobile Styles */
  .converter-header {
    padding: 1.5rem 0;
  }
  
  .converter-title {
    font-size: 1.25rem;
  }
  
  .converter-description {
    font-size: 0.875rem;
  }
  
  .converter-actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .upload-area {
    padding: 1.5rem 1rem;
  }
  
  .upload-title {
    font-size: 1.125rem;
  }
  
  .upload-description {
    font-size: 0.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .format-selector {
    grid-template-columns: 1fr;
  }
  
  .quality-presets {
    flex-direction: column;
  }
}

/* ===========================================
   WARNING MODAL
   =========================================== */
.warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  animation: fadeIn 0.3s ease-out;
}

.warning-modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-2xl);
  animation: slideIn 0.3s ease-out;
  text-align: center;
}

.warning-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--warning), var(--warning-hover));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.warning-modal-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.warning-modal-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
  white-space: pre-line;
}

.warning-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.warning-actions .btn {
  min-width: 140px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ===========================================
   RESULTS TABLE
   =========================================== */
.results-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.results-table thead {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
}

.results-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-primary);
}

.results-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-primary);
  vertical-align: middle;
}

.results-table tbody tr:hover {
  background-color: var(--bg-secondary);
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.file-icon i {
  width: 1.25rem;
  height: 1.25rem;
}

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

.file-name {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-format {
  text-align: center;
}

.format-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zip-badge {
  background-color: var(--warning);
  color: white;
}

.file-size {
  color: var(--text-secondary);
  font-weight: 500;
  text-align: right;
}

.file-actions {
  text-align: center;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.action-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

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

.action-btn.primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

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

.action-btn.secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-1px);
}

.action-btn i {
  width: 1rem;
  height: 1rem;
}

/* ===========================================
   SHARE MODAL
   =========================================== */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  animation: fadeIn 0.3s ease-out;
}

.share-modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-2xl);
  animation: slideIn 0.3s ease-out;
}

.share-modal-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-align: center;
}

.share-url-container {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.share-url-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: monospace;
}

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

.share-modal-content .btn {
  min-width: 100px;
}

.share-modal-content .btn-secondary {
  width: 100%;
}


/* ===========================================
   AUDIO CONVERSION PROGRESS
   =========================================== */
.audio-progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.audio-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-2xl);
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.audio-progress-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

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

.audio-progress-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.audio-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  animation: progressShimmer 2s ease-in-out infinite;
}

.audio-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.audio-progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.audio-progress-stat {
  text-align: center;
}

.audio-progress-stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.audio-progress-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

@keyframes progressShimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* SEO Section Styles */
.seo-section {
  background: var(--bg-secondary);
  padding: 3rem 0;
  margin-top: 2rem;
}

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

.seo-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.seo-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.seo-text p {
  margin: 0;
  text-align: left;
}

/* Responsive SEO Section */
@media (max-width: 768px) {
  .seo-section {
    padding: 2rem 0;
  }
  
  .seo-title {
    font-size: 1.5rem;
  }
  
  .seo-text {
    font-size: 0.95rem;
  }
}

/* Компактные стили для видео конвертера */
.setting-group.compact {
  margin-bottom: 1rem;
}

.format-selector.compact,
.quality-selector.compact,
.resolution-selector.compact,
.framerate-selector.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.5rem;
}

.format-btn.compact,
.quality-btn.compact,
.resolution-btn.compact,
.framerate-btn.compact {
  padding: 0.5rem 0.25rem;
  font-size: 0.8rem;
  min-height: auto;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

/* Активное состояние для всех кнопок */
.format-btn.compact.active,
.quality-btn.compact.active,
.resolution-btn.compact.active,
.framerate-btn.compact.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
  transform: translateY(-1px);
}

/* Индикатор выбора */
.format-btn.compact.active::after,
.quality-btn.compact.active::after,
.resolution-btn.compact.active::after,
.framerate-btn.compact.active::after {
  content: '✓';
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

/* Hover эффект */
.format-btn.compact:hover:not(.active),
.quality-btn.compact:hover:not(.active),
.resolution-btn.compact:hover:not(.active),
.framerate-btn.compact:hover:not(.active) {
  background-color: var(--bg-tertiary);
  border-color: var(--border-secondary);
  transform: translateY(-1px);
}

.format-btn.compact .format-icon,
.quality-btn.compact .quality-icon,
.resolution-btn.compact .resolution-icon,
.framerate-btn.compact .framerate-icon {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.format-btn.compact span,
.quality-btn.compact span,
.resolution-btn.compact span,
.framerate-btn.compact span {
  font-size: 0.75rem;
  font-weight: 500;
}

.resolution-btn.compact small {
  font-size: 0.65rem;
  opacity: 0.8;
  margin-top: 0.1rem;
}

/* Дополнительные стили для активного состояния */
.format-btn.compact.active .format-icon,
.quality-btn.compact.active .quality-icon,
.resolution-btn.compact.active .resolution-icon,
.framerate-btn.compact.active .framerate-icon {
  filter: brightness(1.2);
}

.format-btn.compact.active span,
.quality-btn.compact.active span,
.resolution-btn.compact.active span,
.framerate-btn.compact.active span {
  font-weight: 600;
}

.resolution-btn.compact.active small {
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
}

/* Анимация при выборе */
.format-btn.compact,
.quality-btn.compact,
.resolution-btn.compact,
.framerate-btn.compact {
  position: relative;
  overflow: hidden;
}

.format-btn.compact::before,
.quality-btn.compact::before,
.resolution-btn.compact::before,
.framerate-btn.compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.format-btn.compact.active::before,
.quality-btn.compact.active::before,
.resolution-btn.compact.active::before,
.framerate-btn.compact.active::before {
  left: 100%;
}

/* Мобильная адаптация для компактного вида */
@media (max-width: 768px) {
  .format-selector.compact,
  .quality-selector.compact,
  .resolution-selector.compact,
  .framerate-selector.compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  
  .format-btn.compact,
  .quality-btn.compact,
  .resolution-btn.compact,
  .framerate-btn.compact {
    padding: 0.4rem 0.2rem;
    font-size: 0.75rem;
  }
}