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

html {
    scroll-behavior: smooth;
}

:root {
    /* Color Palette */
    --primary-blue: #2563eb;
    --primary-green: #10b981;
    --primary-red: #ef4444;
    --dark-blue: #1e40af;
    --light-blue: #dbeafe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    
    /* Typography */
    --font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Inter, Helvetica, Arial, sans-serif;
    --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;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

/* Development Banner - Hidden for production */
.dev-banner {
    display: none !important;
}

/* Prevent any debugging overlays or annotations */
*[style*="border"][style*="yellow"],
*[style*="outline"][style*="yellow"],
*[style*="background"][style*="yellow"] {
    display: none !important;
}

/* Hide any HTML comments or code that might be visible */
.thumbnail-display::before,
.profile-display::before,
.banner-display::before {
    display: none !important;
}

/* Ensure clean interface without debugging elements */
body {
    overflow-x: hidden;
}

/* Remove any potential debugging highlights */
.input-card {
    border: 1px solid var(--gray-200) !important;
    outline: none !important;
    box-shadow: var(--shadow-sm) !important;
}

.input-card:focus,
.input-card:active,
.input-card:hover {
    border: 1px solid var(--gray-200) !important;
    outline: none !important;
    box-shadow: var(--shadow-sm) !important;
}
::selection {
    background: var(--primary-color);
    color: var(--white);
}


/* Ensure thumbnail cards are clean */
.thumbnail-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}




/* Ensure clean thumbnail display */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    background: transparent;
    position: relative;
    z-index: 1;
}

.close-banner {
    position: absolute;
    right: var(--spacing-4);
    background: none;
    border: none;
    color: var(--white);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-1);
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: var(--spacing-4) var(--spacing-6);
    gap: var(--spacing-6);
    max-width: 100%;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.logo:hover {
    color: var(--dark-blue);
    transform: scale(1.05);
    text-decoration: none;
}

.logo:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Smaller logo text on laptop screens for better fit */
@media (min-width: 1025px) and (max-width: 1400px) {
    .logo {
        font-size: 10px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* Even smaller logo for smaller laptop screens (around 1105px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .logo {
        font-size: 10px;
    }
    
    .logo-text {
        font-size: 14x;
    }
    
    .logo-icon {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-4);
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: color 0.2s;
    white-space: nowrap;
}

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

/* Text selection styling for better visibility */
::selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: #1e40af;
}

::-moz-selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: #1e40af;
}

::-webkit-selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: #1e40af;
}

/* Social Media Share Buttons */
.share-buttons {
    display: flex;
    gap: var(--spacing-2);
    flex-wrap: wrap;
    margin-top: var(--spacing-4);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.share-icon {
    font-size: 20px;
}

.share-btn.facebook {
    background-color: #1877F2;
}

.share-btn.facebook:hover {
    background-color: #1565C0;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background-color: #1DA1F2;
}

.share-btn.twitter:hover {
    background-color: #0d8bd9;
    transform: translateY(-2px);
}

.share-btn.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.share-btn.instagram:hover {
    background: linear-gradient(135deg, #6a2c91, #d11b1b, #e9a042);
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background-color: #25D366;
}

.share-btn.whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}

.share-btn.more {
    background-color: var(--gray-600);
}

.share-btn.more:hover {
    background-color: var(--gray-700);
    transform: translateY(-2px);
}



.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    justify-content: flex-end;
}

.language-selector select {
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: var(--white);
    font-size: var(--font-size-sm);
    cursor: pointer;
}

/* Theme Toggle Styles */
.theme-toggle {
    position: relative;
    display: inline-block;
}

.theme-switch {
    display: none;
}

.theme-switch-label {
    display: flex;
    align-items: center;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-switch-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.theme-icon {
    position: absolute;
    font-size: 14px;
    transition: all 0.3s ease;
    user-select: none;
}

.sun-icon {
    left: 8px;
    opacity: 1;
    transform: scale(1);
}

.moon-icon {
    right: 8px;
    opacity: 0.5;
    transform: scale(0.8);
}

/* Dark mode styles */
.theme-switch:checked + .theme-switch-label {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.theme-switch:checked + .theme-switch-label .sun-icon {
    opacity: 0.5;
    transform: scale(0.8);
}

.theme-switch:checked + .theme-switch-label .moon-icon {
    opacity: 1;
    transform: scale(1);
}

/* Icon system (SVG-based, excludes logo) */
.icon-svg {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    flex-shrink: 0;
}
.theme-icon.icon-svg { width: 18px; height: 18px; }
.upload-icon.icon-svg { width: 48px; height: 48px; }
.no-results-icon.icon-svg { width: 64px; height: 64px; }
.warning-icon.icon-svg { width: 48px; height: 48px; }
.feature-icon.icon-svg { width: 48px; height: 48px; }
.btn-icon.icon-svg { width: 18px; height: 18px; }
.meta-icon.icon-svg { width: 1em; height: 1em; }
.faq-icon.icon-svg { width: 1.25rem; height: 1.25rem; }
/* Icons on primary buttons (green/blue) show as white */
.download-all-btn .icon-svg, .extract-btn .icon-svg, .download-resolution-btn .icon-svg, .action-btn .icon-svg, .download-profile-btn .icon-svg, .download-banner-btn .icon-svg { filter: brightness(0) invert(1); }
.refresh-btn .icon-svg { width: 20px; height: 20px; }
.copy-btn .icon-svg { width: 18px; height: 18px; }
/* SVG data URIs (stroke currentColor for theme) */
.icon-sun { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E"); }
.icon-moon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E"); }
.icon-upload { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E"); }
.icon-download { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); }
.icon-copy { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E"); }
.icon-eye { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.icon-refresh { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpath d='M20.49 15a9 9 0 1 1-2.12-9.36L23 10'/%3E%3C/svg%3E"); }
.icon-video { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2' ry='2'/%3E%3C/svg%3E"); }
.icon-users { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.icon-search { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); }
.icon-paste { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3C/svg%3E"); }
.icon-check { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.icon-user { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.icon-image { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E"); }
.icon-thumbnail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E"); }
.icon-plus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E"); }
.icon-error { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E"); }
[data-theme="dark"] .icon-sun, [data-theme="dark"] .icon-moon, [data-theme="dark"] .icon-upload, [data-theme="dark"] .icon-download, [data-theme="dark"] .icon-copy, [data-theme="dark"] .icon-eye, [data-theme="dark"] .icon-refresh, [data-theme="dark"] .icon-video, [data-theme="dark"] .icon-users, [data-theme="dark"] .icon-search, [data-theme="dark"] .icon-paste, [data-theme="dark"] .icon-user, [data-theme="dark"] .icon-image, [data-theme="dark"] .icon-thumbnail { filter: brightness(0) invert(1); opacity: 0.9; }

.refresh-btn {
    background: none;
    border: none;
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-2);
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

.refresh-btn:hover {
    background-color: var(--gray-100);
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--light-blue) 100%);
    padding: var(--spacing-20) 0;
    text-align: center;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.new-badge {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-6);
}

.hero h1 {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-6);
    line-height: 1.2;
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Functionality */
.main-functionality {
    padding: var(--spacing-20) 0;
}

.functionality-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
    align-items: start;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;

}

/* URL Input Section */
.input-card, .options-card, .results-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-6);
    margin-bottom: var(--spacing-6);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-4);
}

.card-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-800);
}

.card-actions {
    display: flex;
    gap: var(--spacing-2);
}

.copy-btn, .refresh-btn {
    background: none;
    border: none;
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-2);
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
    display: none;
}

.copy-btn:hover, .refresh-btn:hover {
    background-color: var(--gray-100);
}

.drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--spacing-8);
    text-align: center;
    margin-bottom: var(--spacing-4);
    transition: all 0.2s;
    cursor: pointer;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary-blue);
    background-color: var(--gray-50);
}

.drop-content {
    margin-bottom: var(--spacing-4);
}

.upload-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-4);
}

.drop-zone p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-2);
}

.drop-subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.url-type-buttons {
    display: flex;
    gap: var(--spacing-2);
    justify-content: center;
}

.type-btn {
    padding: var(--spacing-2) var(--spacing-4);
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-size: var(--font-size-sm);
}

/* .type-btn.active, .type-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
} */

.input-group {
    display: flex;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
}

.input-group input {
    flex: 1;
    padding: var(--spacing-3) var(--spacing-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.extract-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.extract-btn:hover {
    background-color: var(--dark-blue);
}

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

/* ============================================
   Thumbnail loading overlay & animation (inside results section only)
   ============================================ */
/* Result-section only: animation stays inside this box */
.thumbnail-display-wrapper,
.profile-display-wrapper,
.banner-display-wrapper {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    isolation: isolate;
}

/* Overlay only covers the result section – never full page */
.thumbnail-loading-overlay,
.profile-loading-overlay,
.banner-loading-overlay {
    position: absolute;
    inset: 0;
    min-height: 200px;
    max-width: 100%;
    background: rgba(15, 15, 15, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    border-radius: var(--radius-lg, 12px);
}

.thumbnail-loading-overlay.active,
.profile-loading-overlay.active,
.banner-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.thumbnail-loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--primary-blue, #2563eb);
    border-radius: 50%;
    animation: thumbnail-spin 0.9s linear infinite;
}

.thumbnail-loading-pulse {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.4), transparent 60%);
    animation: thumbnail-pulse 1.4s ease-in-out infinite;
}

.thumbnail-loading-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

.thumbnail-loading-subtext {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
}

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

@keyframes thumbnail-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
}

.bulk-processing {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.bulk-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    cursor: pointer;
    font-weight: 500;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: var(--gray-300);
    border-radius: 12px;
    transition: background-color 0.2s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border-radius: 50%;
    transition: transform 0.2s;
}

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

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

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

.bulk-description {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* Results */
.no-results {
    text-align: center;
    padding: var(--spacing-8);
    color: var(--gray-500);
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.no-results-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-4);
}

/* Results Container */
.results-container {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-8);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--gray-200);
}

.results-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.global-options {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.size-selector,
.format-selector {
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    min-width: 100px;
    transition: all 0.2s;
}

.size-selector:focus,
.format-selector:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.download-all-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 120px;
    justify-content: center;
}

.download-all-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.download-all-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: var(--font-size-sm);
}

/* Thumbnail Display */
.thumbnail-display {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-6);
}

.thumbnail-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: var(--spacing-6);
    align-items: flex-start;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.thumbnail-preview {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: visible;
    position: relative;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    z-index: 1;
}

.thumbnail-preview img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    display: block;
    background-color: transparent;
    border: none;
    outline: none;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: var(--font-size-2xl);
    position: relative;
    z-index: 2;
}

.thumbnail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.video-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.video-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.video-meta {
    display: flex;
    gap: var(--spacing-3);
    color: var(--gray-600);
    font-size: var(--font-size-xs);
    flex-wrap: nowrap;
    overflow: hidden;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 0;
}

.meta-item span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.resolution-options {
    display: flex;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
}

.resolution-tag {
    padding: var(--spacing-1) var(--spacing-2);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: var(--white);
    color: var(--gray-600);
    font-size: var(--font-size-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-width: 50px;
    white-space: nowrap;
}

.resolution-tag:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.resolution-tag.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.download-actions {
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
    width: 100%;
}

.download-resolution-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: var(--spacing-2) var(--spacing-2);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    min-width: 50px;
    justify-content: center;
    white-space: nowrap;
    flex: 1;
}

.download-resolution-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-1px);
}

.download-resolution-btn:active {
    transform: translateY(0);
}

/* Thumbnail Downloader page - Full size layout: larger image, options at bottom */
.results-thumbnail-page .thumbnail-card-fullsize {
    flex-direction: column;
    align-items: stretch;
}

.results-thumbnail-page .thumbnail-card-fullsize .thumbnail-preview-large {
    width: 100%;
    min-height: 400px;
    height: auto;
    max-height: 600px;
    order: 1;
}

.results-thumbnail-page .thumbnail-card-fullsize .thumbnail-preview-large img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.results-thumbnail-page .thumbnail-card-fullsize .thumbnail-content-bottom {
    order: 2;
    border-top: 1px solid var(--gray-200);
    padding-top: var(--spacing-4);
    margin-top: var(--spacing-4);
}

.results-thumbnail-page .thumbnail-card-fullsize .resolution-options {
    margin-bottom: var(--spacing-4);
}

.results-thumbnail-page .thumbnail-card-fullsize .download-actions-fullsize {
    margin-top: var(--spacing-2);
    justify-content: flex-start;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.results-thumbnail-page .thumbnail-card-fullsize .download-actions-fullsize .download-resolution-btn {
    flex: 0 1 auto;
    min-width: 100px;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-sm);
}

.action-buttons {
    display: flex;
    gap: var(--spacing-2);
}

.action-btn {
    background-color: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    font-size: var(--font-size-sm);
    font-weight: 500;
    min-width: 70px;
    justify-content: center;
}

.action-btn:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

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

/* Results Summary */
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--gray-200);
}

.summary-stats {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.summary-actions {
    display: flex;
    gap: var(--spacing-3);
}

.download-zip-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    min-width: 120px;
    justify-content: center;
}

.download-zip-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.download-zip-btn:active {
    transform: translateY(0);
}

.compare-view-btn {
    background-color: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    font-weight: 500;
    font-size: var(--font-size-sm);
    min-width: 120px;
    justify-content: center;
}

.compare-view-btn:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.compare-view-btn:active {
    transform: translateY(0);
}

/* Security Warning */
.security-warning {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid #10b981;
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
    margin: var(--spacing-4) 0;
    box-shadow: var(--shadow-md);
}

.warning-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-4);
    position: relative;
}

.warning-icon {
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
}

.warning-text h4 {
    color: #065f46;
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0 0 var(--spacing-2) 0;
}

.warning-text p {
    color: #065f46;
    font-size: var(--font-size-sm);
    margin: 0 0 var(--spacing-2) 0;
    line-height: 1.5;
}

.warning-text ul {
    color: #065f46;
    font-size: var(--font-size-sm);
    margin: var(--spacing-2) 0;
    padding-left: var(--spacing-4);
}

.warning-text li {
    margin-bottom: var(--spacing-1);
}

.close-warning {
    position: absolute;
    top: -var(--spacing-2);
    right: -var(--spacing-2);
    background: #10b981;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: var(--font-size-sm);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-warning:hover {
    background: #059669;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.banner-image {
    max-width: 52%;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-image:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Responsive banner styling */
@media (max-width: 768px) {
    .banner-image {
        border-radius: var(--radius-md);
        max-width: 85%;
    }
}

/* Profile Picture Section */
.profile-picture-section {
    background-color: var(--gray-50);
    padding: var(--spacing-16) 0;
}

.profile-display {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-6);
}

.profile-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: var(--spacing-6);
    align-items: flex-start;
}

.profile-preview {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gray-200);
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.channel-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.channel-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.channel-meta {
    display: flex;
    gap: var(--spacing-4);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
}

.meta-icon {
    font-size: var(--font-size-base);
}

.size-options {
    display: flex;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
}

.size-tag {
    padding: var(--spacing-1) var(--spacing-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: var(--white);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-width: 80px;
}

.size-tag:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.size-tag.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.download-profile-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    min-width: 120px;
    justify-content: center;
}

.download-profile-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-1px);
}

.download-profile-btn:active {
    transform: translateY(0);
}

/* Profile Picture page - Full size layout: larger image, options at bottom */
.results-profile-page .profile-card-fullsize {
    flex-direction: column;
    align-items: stretch;
}

.results-profile-page .profile-card-fullsize .profile-preview-large {
    width: 100%;
    max-width: 400px;
    min-height: 300px;
    height: 400px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    order: 1;
}

.results-profile-page .profile-card-fullsize .profile-preview-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.results-profile-page .profile-card-fullsize .profile-content-bottom {
    order: 2;
    border-top: 1px solid var(--gray-200);
    padding-top: var(--spacing-4);
    margin-top: var(--spacing-4);
}

.results-profile-page .profile-card-fullsize .size-options-profile {
    margin-bottom: var(--spacing-4);
}

.results-profile-page .profile-card-fullsize .download-actions-profile {
    margin-top: var(--spacing-2);
    justify-content: flex-start;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.results-profile-page .profile-card-fullsize .download-actions-profile .download-resolution-btn {
    flex: 0 1 auto;
    min-width: 120px;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-sm);
}

/* Responsive adjustments for profile pictures */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-preview {
        width: 100px;
        height: 100px;
    }
    
    .channel-meta {
        justify-content: center;
    }
    
    .size-options {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .download-actions {
        flex-direction: column;
        gap: var(--spacing-3);
    }
}

/* Banner Downloader Section */
.banner-downloader-section {
    background-color: var(--gray-50);
    padding: var(--spacing-16) 0;
}

.banner-display {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-6);
}

.banner-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: var(--spacing-6);
    align-items: flex-start;
}

.banner-preview {
    flex-shrink: 0;
    width: 300px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: visible;
    position: relative;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-200);
}

.banner-preview img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.download-banner-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    min-width: 120px;
    justify-content: center;
}

.download-banner-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-1px);
}

.download-banner-btn:active {
    transform: translateY(0);
}

.download-all-banners-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    min-width: 140px;
    justify-content: center;
}

.download-all-banners-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.download-all-banners-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments for banner downloader */
@media (max-width: 768px) {
    .banner-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .banner-preview {
        width: 100%;
        height: 200px;
    }
    
    .results-banner-page .banner-card-fullsize .channel-meta {
        justify-content: center;
    }
    
    .results-banner-page .banner-card-fullsize .size-options-banner {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .results-banner-page .banner-card-fullsize .download-actions-banner {
        flex-direction: column;
        gap: var(--spacing-3);
    }
}

/* Banner Downloader page - Full size layout: larger image, options at bottom */
.results-banner-page .banner-card-fullsize {
    flex-direction: column;
    align-items: stretch;
}

.results-banner-page .banner-card-fullsize .banner-preview-large {
    width: 100%;
    min-height: 300px;
    height: auto;
    max-height: 500px;
    order: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.results-banner-page .banner-card-fullsize .banner-preview-large img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.results-banner-page .banner-card-fullsize .banner-content-bottom {
    order: 2;
    border-top: 1px solid var(--gray-200);
    padding-top: var(--spacing-4);
    margin-top: var(--spacing-4);
}

.results-banner-page .banner-card-fullsize .size-options-banner {
    margin-bottom: var(--spacing-4);
}

.results-banner-page .banner-card-fullsize .download-actions-banner {
    margin-top: var(--spacing-2);
    justify-content: flex-start;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.results-banner-page .banner-card-fullsize .download-actions-banner .download-resolution-btn {
    flex: 0 1 auto;
    min-width: 120px;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-sm);
}

/* Responsive adjustments for thumbnail display */
@media (max-width: 768px) {
    .thumbnail-card {
        flex-direction: column;
    }
    
    .thumbnail-preview {
        width: 100%;
        height: 200px;
    }
    
    .global-options {
        flex-wrap: wrap;
        gap: var(--spacing-2);
    }
    
    .results-summary {
        flex-direction: column;
        gap: var(--spacing-3);
        align-items: flex-start;
    }
    
    .resolution-options {
        flex-wrap: wrap;
        gap: var(--spacing-1);
    }
    
    .resolution-tag {
        font-size: var(--font-size-xs);
        min-width: 45px;
        padding: var(--spacing-1) var(--spacing-1);
    }
    
    .download-actions {
        flex-wrap: wrap;
        gap: var(--spacing-1);
    }
    
    .download-resolution-btn {
        font-size: var(--font-size-xs);
        min-width: 45px;
        padding: var(--spacing-1) var(--spacing-1);
        flex: 1;
        min-width: 0;
    }
    
    .summary-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .warning-content {
        flex-direction: column;
        gap: var(--spacing-2);
    }
    
    .close-warning {
        position: static;
        align-self: flex-end;
    }
}

/* Options Section */


.format-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.option-group label {
    font-weight: 500;
    color: var(--gray-700);
}

.option-group select {
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: var(--white);
    cursor: pointer;
}

.quality-slider {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.quality-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.quality-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
}

.quality-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
}

.stat-item span:first-child {
    color: var(--gray-600);
}

.stat-item span:last-child {
    font-weight: 600;
    color: var(--gray-800);
}

/* Features Section */
/* About Us Section */
.about-us {
    padding: var(--spacing-20) 0;
    background-color: var(--white);
}

.about-us h2 {
    text-align: center;
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-6);
}

.about-link {
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.domain-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.domain-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-20) 0;
    background-color: var(--white);
}

.faq-section h2 {
    text-align: center;
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-6);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: var(--spacing-6);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.faq-item {
    margin-bottom: var(--spacing-4);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-question {
    padding: var(--spacing-4);
    background-color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--gray-800);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--gray-50);
}

.faq-icon {
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--gray-50);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: var(--spacing-4);
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: var(--spacing-8);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.about-description {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--spacing-8);
    text-align: center;
}

.about-section {
    margin-bottom: var(--spacing-8);
}

.about-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-4);
    margin-top: var(--spacing-6);
}

.about-section h2:first-child {
    margin-top: 0;
}

.about-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-2);
}

.about-section p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--spacing-4);
}

.about-section ul,
.about-section ol {
    margin-left: var(--spacing-6);
    margin-bottom: var(--spacing-4);
    padding-left: var(--spacing-4);
}

.about-section ul {
    list-style-type: disc;
}

.about-section ol {
    list-style-type: decimal;
}

.about-section li {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--spacing-2);
}

.section-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: var(--spacing-8) 0;
    width: 100%;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: var(--spacing-3);
    padding-left: 0;
    position: relative;
}

.features-list li strong {
    color: var(--gray-900);
    font-weight: var(--font-weight-semibold);
}

.features {
    background-color: var(--gray-50);
    padding: var(--spacing-20) 0;
}

.features h2 {
    text-align: center;
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-4);
}

.features-subtitle {
    text-align: center;
    font-size: var(--font-size-xl);
    color: var(--gray-600);
    margin-bottom: var(--spacing-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-4);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--spacing-3);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}


/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: var(--spacing-12) 0 var(--spacing-6);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-12);
    margin-bottom: var(--spacing-8);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
    text-decoration: none;
    color: var(--white);
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-logo:hover {
    color: var(--white);
    transform: scale(1.05);
    text-decoration: none;
}

.footer-logo:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.footer-logo .logo-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.footer-logo .logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.footer-left p {
    color: var(--gray-300);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: var(--spacing-3);
    margin-top: var(--spacing-4);
}

.footer-social .social-link {
    color: var(--gray-300);
    transition: color 0.2s, transform 0.2s;
}

.footer-social .social-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.footer-column {
    padding: var(--spacing-4);
}

.footer-column h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-4);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-2);
}

.footer-column a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--spacing-6);
    text-align: center;
    color: var(--gray-300);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .functionality-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
        max-width: 100%;
        margin: 0;
        padding: 0 var(--spacing-4);
    }
    
    .hero h1 {
        font-size: var(--font-size-4xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-3);
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-3);
        padding: var(--spacing-3) var(--spacing-4);
    }
    
    .nav {
        order: 3;
        width: 100%;
    }
    
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-2);
    }
    
    .nav-links a {
        font-size: var(--font-size-xs);
    }
    
    .header-actions {
        order: 2;
    }
    
    .hero {
        padding: var(--spacing-12) 0;
    }
    
    .hero h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
    }
    
    .main-functionality {
        padding: var(--spacing-12) 0;
    }
    
    .features {
        padding: var(--spacing-12) 0;
    }
    
    .features h2 {
        font-size: var(--font-size-3xl);
    }
    
    .about-us h2 {
        font-size: var(--font-size-3xl);
    }
    
    .features-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
        text-align: center;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .url-type-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--font-size-2xl);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-3);
    }
    
    .card-actions {
        align-self: flex-end;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mb-4 {
    margin-bottom: var(--spacing-4);
}

.mt-4 {
    margin-top: var(--spacing-4);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gray-300: #000000;
        --gray-500: #000000;
        --gray-600: #000000;
    }
}

/* Watermark Remover Styles */
.watermark-remover {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.watermark-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.upload-section {
    margin-bottom: 3rem;
}

.upload-area {
    border: 3px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.upload-area.dragover {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: var(--white);
}

.upload-icon {
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.upload-area:hover .upload-icon {
    color: var(--primary-blue);
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 1.5rem;
}

.upload-area p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.file-types {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.file-type-tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.watermark-controls {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.preview-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 2px dashed var(--gray-200);
}

.file-info h4 {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.file-info p {
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.watermark-settings {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.watermark-settings h4 {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.setting-group label {
    min-width: 150px;
    color: var(--gray-600);
    font-weight: 500;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.setting-group span {
    min-width: 30px;
    text-align: center;
    color: var(--primary-blue);
    font-weight: 600;
}

.process-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.process-btn, .reset-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.process-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.reset-btn {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.reset-btn:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

.results-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.results-header h3 {
    color: var(--gray-700);
    margin: 0;
}

.download-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.format-selector {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.875rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

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

.comparison-item h4 {
    margin-bottom: 1rem;
    color: var(--gray-700);
    font-size: 1.125rem;
}

.media-container {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 2px dashed var(--gray-200);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-container video,
.media-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-sm);
}

/* Mobile Responsive for Watermark Remover */
@media (max-width: 768px) {
    .watermark-container {
        padding: 0 0.5rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .file-preview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .setting-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .setting-group label {
        min-width: auto;
    }
    
    .process-controls {
        flex-direction: column;
    }
}

/* Coming Soon Page Styles */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 0;
}

.coming-soon-content {
    text-align: center;
    max-width: 600px;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--light-blue) 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.coming-soon-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.coming-soon-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.coming-soon-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.progress-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progressPulse 2s infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.progress-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
    margin: 0;
}

.notify-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--primary-blue);
    border-radius: var(--radius-md);
    color: white;
}

.notify-section p {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.notify-btn {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.notify-btn:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-home {
    margin-top: 2rem;
}

.back-btn {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-btn:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    transform: translateY(-1px);
}

/* Responsive Design for Coming Soon */
@media (max-width: 768px) {
    .coming-soon-content {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .coming-soon-content h2 {
        font-size: 2rem;
    }
    
    .coming-soon-content h3 {
        font-size: 1.25rem;
    }
    
    .coming-soon-icon {
        font-size: 3rem;
    }
    
    .feature-list li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
}

/* Dark Theme Styles */
[data-theme="dark"] {
    --white: #1a1a1a;
    --gray-50: #2d2d2d;
    --gray-100: #3a3a3a;
    --gray-200: #4a4a4a;
    --gray-300: #5a5a5a;
    --gray-400: #6a6a6a;
    --gray-500: #7a7a7a;
    --gray-600: #8a8a8a;
    --gray-700: #9a9a9a;
    --gray-800: #aaaaaa;
    --gray-900: #bababa;
    --black: #ffffff;
}

/* Ensure all text is white in dark mode */
[data-theme="dark"] * {
    color: #ffffff !important;
}

/* Override specific elements that should have different colors */
[data-theme="dark"] .nav-links a:hover {
    color: var(--primary-blue) !important;
}

[data-theme="dark"] .about-link {
    color: var(--primary-blue) !important;
}

[data-theme="dark"] .about-link:hover {
    color: #60a5fa !important;
}

[data-theme="dark"] .domain-link {
    color: var(--primary-blue) !important;
}

[data-theme="dark"] .domain-link:hover {
    color: #60a5fa !important;
}

[data-theme="dark"] body {
    background-color: var(--gray-50);
}

[data-theme="dark"] .header {
    background-color: var(--gray-100);
    border-bottom-color: var(--gray-300);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--primary-blue) !important;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
}

[data-theme="dark"] .input-card,
[data-theme="dark"] .options-card,
[data-theme="dark"] .results-card {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

[data-theme="dark"] .drop-zone {
    background-color: var(--gray-50);
    border-color: var(--gray-300);
}

[data-theme="dark"] .drop-zone:hover {
    border-color: var(--primary-blue);
    background-color: var(--gray-100);
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1d4ed8 100%);
}

[data-theme="dark"] .btn-secondary {
    background-color: var(--gray-200);
    color: var(--gray-800);
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: var(--gray-300);
}

[data-theme="dark"] .footer {
    background-color: var(--gray-100);
    border-top-color: var(--gray-300);
}

[data-theme="dark"] .language-selector select {
    background-color: #000000;
    border-color: #374151;
    color: #ffffff;
}

[data-theme="dark"] .language-selector select option {
    background-color: #000000;
    color: #ffffff;
}

[data-theme="dark"] .features {
    background-color: var(--gray-50);
}

[data-theme="dark"] .feature-card {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

[data-theme="dark"] .about {
    background-color: var(--gray-50);
}

[data-theme="dark"] .about-content {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

[data-theme="dark"] .about-us {
    background-color: var(--gray-50);
}

[data-theme="dark"] .about-link {
    color: var(--primary-blue);
}

[data-theme="dark"] .about-link:hover {
    color: #60a5fa;
}

[data-theme="dark"] .domain-link {
    color: var(--primary-blue);
}

[data-theme="dark"] .domain-link:hover {
    color: #60a5fa;
}

[data-theme="dark"] .about-description {
    color: var(--gray-800);
}

[data-theme="dark"] .about-section h3 {
    color: var(--primary-blue);
}

[data-theme="dark"] .about-section p {
    color: var(--gray-800);
}

/* Coming Soon Pages */
.coming-soon-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    padding: var(--spacing-6);
}

.coming-soon-content {
    text-align: center;
    background-color: var(--white);
    padding: var(--spacing-12);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
}

.coming-soon-content h1 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-4);
}

.coming-soon-content p {
    font-size: var(--font-size-lg);
    color: var(--gray-700);
    margin-bottom: var(--spacing-4);
    line-height: 1.6;
}

.back-btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: var(--spacing-4);
}

.back-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Dark theme for coming soon pages */
[data-theme="dark"] .coming-soon-container {
    background-color: var(--gray-50);
}

[data-theme="dark"] .coming-soon-content {
    background-color: var(--gray-100);
}

[data-theme="dark"] .coming-soon-content h1 {
    color: var(--primary-blue);
}

[data-theme="dark"] .coming-soon-content p {
    color: var(--gray-800);
}

/* Footer link styles */
.footer-column ul li a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-blue);
}

[data-theme="dark"] .footer-column ul li a {
    color: var(--gray-400);
}

[data-theme="dark"] .footer-column ul li a:hover {
    color: var(--primary-blue);
}

[data-theme="dark"] .faq-section {
    background-color: var(--gray-50);
}

[data-theme="dark"] .faq-content {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

[data-theme="dark"] .faq-item {
    border-color: var(--gray-300);
}

[data-theme="dark"] .faq-question {
    background-color: var(--gray-100);
    color: var(--gray-800);
}

[data-theme="dark"] .faq-question:hover {
    background-color: var(--gray-200);
}

[data-theme="dark"] .faq-answer {
    background-color: var(--gray-200);
}

[data-theme="dark"] .faq-answer p {
    color: var(--gray-800);
}

[data-theme="dark"] .features-list li {
    color: var(--gray-800);
}

[data-theme="dark"] .features-list li strong {
    color: var(--gray-900);
}

/* Text selection styling for dark mode */
[data-theme="dark"] ::selection {
    background-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

[data-theme="dark"] ::-moz-selection {
    background-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

[data-theme="dark"] ::-webkit-selection {
    background-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

/* Dark theme for YouTube red logo */
[data-theme="dark"] .logo-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

[data-theme="dark"] .footer-logo .logo-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

[data-theme="dark"] .footer-social .social-link {
    color: var(--gray-500);
}

[data-theme="dark"] .footer-social .social-link:hover {
    color: var(--primary-blue);
}

/* Profile Picture Section - Perfect Flexbox Layout */
.profile-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card {
    max-width: 800px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 32px;
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.profile-card .profile-card {
    margin-top: 0;
    box-shadow: none;
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.channel-description {
    margin-top: 8px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}

.channel-description br {
    line-height: 1.6;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.profile-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.profile-actions {
    display: flex;
    gap: 6px;
}

.action-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    color: #6c757d;
}

.action-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.drop-zone:hover {
    border-color: #6f42c1;
    background-color: #f8f9fa;
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-icon {
    font-size: 3rem;
    color: #6f42c1;
    margin-bottom: 4px;
}

.drop-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.drop-subtext {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.input-section {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.input-section .url-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    background-color: #ffffff;
    color: #212529;
}

.input-section .url-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.input-section .url-input::placeholder {
    color: #6c757d;
}

.input-section .btn-primary {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.input-section .btn-primary:hover {
    background-color: #0b5ed7;
}

/* Profile Results Display */
#profileResultsCard {
    margin-top: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

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

.results-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.results-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.results-controls select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #ffffff;
    color: #212529;
}

.results-controls select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.btn-success {
    background-color: #198754;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

.btn-success:hover {
    background-color: #157347;
}

.results-summary {
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.results-summary span {
    color: #6c757d;
    font-size: 0.9rem;
}

.profile-results-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-card-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
    flex-shrink: 0;
}

.profile-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.profile-card-stats {
    display: flex;
    gap: 20px;
    margin: 0;
}

.profile-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.9rem;
}

.profile-stat-icon {
    width: 16px;
    height: 16px;
    color: #6f42c1;
}

.profile-quality-buttons {
    display: flex;
    gap: 8px;
    margin: 0;
}

.quality-btn {
    padding: 6px 12px;
    border: 1px solid #0d6efd;
    background-color: #ffffff;
    color: #0d6efd;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.quality-btn:hover,
.quality-btn.active {
    background-color: #0d6efd;
    color: #ffffff;
}

.profile-action-buttons {
    display: flex;
    gap: 8px;
    margin: 0;
}

.action-btn-primary {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.action-btn-primary:hover {
    background-color: #0b5ed7;
}

.action-btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.action-btn-secondary:hover {
    background-color: #5a6268;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Mobile and Tablet Styles (up to 1024px) */
@media (max-width: 1024px) {
    /* Typography adjustments for mobile */
    body {
        font-size: 14px;
        line-height: 1.4;
    }
    
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    /* Header responsive */
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        display: flex;
    }
    
    .logo {
        justify-content: flex-start;
        margin-bottom: 0;
        flex: 1;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Mobile Navigation */
    .nav {
        order: 2;
        width: auto;
        position: relative;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        display: none;
        position: fixed;
        top: 60px;
        right: 1rem;
        left: auto;
        width: min(280px, calc(100vw - 2rem));
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }
    
    /* Dark mode styling for burger menu dropdown */
    [data-theme="dark"] .nav-links {
        background: #000000;
        border: 1px solid #374151;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        text-align: left;
        border-radius: 6px;
        transition: background-color 0.2s;
        color: var(--gray-700);
    }
    
    .nav-links a:hover {
        background-color: #f3f4f6;
    }
    
    /* Dark mode text colors for burger menu */
    [data-theme="dark"] .nav-links a {
        color: #ffffff;
    }
    
    [data-theme="dark"] .nav-links a:hover {
        background-color: #374151;
        color: #ffffff;
    }
    
    /* Mobile menu controls (language selector and theme toggle) */
    .nav-links .mobile-menu-controls {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0 0;
        border-top: 1px solid #e5e7eb;
        margin-top: 0.5rem;
    }
    
    /* Dark mode for mobile menu controls */
    [data-theme="dark"] .nav-links .mobile-menu-controls {
        border-top: 1px solid #374151;
    }
    
    .nav-links .mobile-menu-controls .language-selector {
        width: 100%;
    }
    
    .nav-links .mobile-menu-controls .language-selector select {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.5rem;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        background: #ffffff;
        color: #374151;
    }
    
    /* Dark mode for mobile menu language selector */
    [data-theme="dark"] .nav-links .mobile-menu-controls .language-selector select {
        background: #000000;
        border: 1px solid #374151;
        color: #ffffff;
    }
    
    [data-theme="dark"] .nav-links .mobile-menu-controls .language-selector select option {
        background: #000000;
        color: #ffffff;
    }
    
    .nav-links .mobile-menu-controls .theme-toggle {
        width: 100%;
        height: 40px;
        border: none;
        border-radius: 20px;
        background: #e5e7eb;
        color: #374151;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links .mobile-menu-controls .theme-toggle:hover {
        background: #d1d5db;
    }
    
    .nav-links .mobile-menu-controls .theme-toggle .theme-icon {
        font-size: 1.1rem;
        transition: all 0.3s ease;
        display: block;
    }
    
    /* Active state for dark mode */
    [data-theme="dark"] .nav-links .mobile-menu-controls .theme-toggle {
        background: #4b5563;
    }
    
    [data-theme="dark"] .nav-links .mobile-menu-controls .theme-toggle:hover {
        background: #374151;
    }
    
    /* Menu backdrop overlay - tap outside to close */
    .menu-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 99;
        opacity: 0;
        transition: opacity 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .menu-backdrop.active {
        display: block;
        opacity: 1;
    }
    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }
    
    /* Burger Menu */
    .burger-menu {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        order: 3;
        align-self: center;
        z-index: 1001;
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .burger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #2563eb; /* Blue color matching website heading */
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .burger-menu:hover span {
        background-color: #1d4ed8; /* Darker blue on hover */
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: #dc2626; /* Red color for close icon */
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: #dc2626; /* Red color for close icon */
    }
    
    /* Header actions - hidden on mobile/tablet */
    .header-actions {
        display: none;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 1rem;
    }
    
    /* Main content */
    .main {
        padding: 1rem 0;
    }
    
    /* Cards and sections */
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .input-card {
        padding: 1rem;
    }
    
    .card-header h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    /* Input groups */
    .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .input-group input {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .input-group button {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Drop zones */
    .drop-zone {
        padding: 2rem 1rem;
        min-height: 120px;
        display: flex;
        flex-direction: column;
    }
    
    .drop-content p {
        font-size: 0.9rem;
    }
    
    .drop-subtitle {
        font-size: 0.8rem;
    }
    
    /* Results sections */
    .results-container {
        padding: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .results-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .results-controls select {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .results-controls button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    /* Grid layouts */
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Thumbnail cards */
    .thumbnail-card {
        padding: 1rem;
    }
    
    .thumbnail-preview {
        height: 200px;
    }
    
    .thumbnail-preview img {
        object-fit: cover;
    }
    
    .thumbnail-info h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .thumbnail-meta {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .thumbnail-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .thumbnail-actions button {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Profile cards */
    .profile-card {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .profile-card-info {
        text-align: center;
    }
    
    .profile-picture {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
    }
    
    .profile-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .profile-actions button {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-column ul {
        gap: 0.5rem;
    }
    
    .footer-column a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Contact Page Styles */
.contact-section {
    max-width: 700px;
    margin: 50px auto;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-section .section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.contact-intro {
    margin-bottom: 30px;
}

.contact-intro p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-intro strong {
    color: var(--primary-blue);
}

.contact-form-container {
    margin-top: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-800);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-alternative {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.contact-alternative a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-alternative a:hover {
    text-decoration: underline;
}

/* Submit button styling for contact form */
.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1d4ed8 100%);
    color: var(--white);
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.contact-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Dark theme for contact section */
[data-theme="dark"] .contact-section {
    background: var(--gray-100);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

[data-theme="dark"] .contact-intro p {
    color: var(--gray-800);
}

[data-theme="dark"] .form-group label {
    color: var(--gray-800);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--primary-blue);
}

[data-theme="dark"] .contact-alternative {
    color: var(--gray-700);
}

/* Policy Pages Styles (Privacy, Terms, Disclaimer) */
.policy-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.policy-section .section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 2rem;
}

.policy-content {
    color: var(--gray-700);
    line-height: 1.8;
}

.policy-content h2 {
    color: var(--dark-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.policy-content p {
    margin-bottom: 20px;
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.policy-content li {
    margin-bottom: 10px;
}

.policy-content strong {
    color: var(--primary-blue);
}

.policy-content a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-content a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Dark mode styles for policy pages */
[data-theme="dark"] .policy-section {
    background: var(--gray-100);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

[data-theme="dark"] .policy-content {
    color: var(--gray-800);
}

[data-theme="dark"] .policy-content h2 {
    color: var(--light-blue);
}

/* Notifications */
.notification {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem;
}

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

.mobile-full-width {
    width: 100%;
}

.mobile-center {
    text-align: center;
}

/* Tablet Styles (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .header-content {
        gap: 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .profile-results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-card {
        flex-direction: row;
        padding: 1.5rem;
    }
    
    .profile-card-info {
        text-align: left;
    }
    
    .profile-picture {
        width: 100px;
        height: 100px;
        margin: 0 1.5rem 0 0;
    }
    
    .profile-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .input-group {
        flex-direction: row;
    }
    
    .results-controls {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Desktop Styles (1025px and up) */
@media (min-width: 1025px) {
    .burger-menu {
        display: none;
    }
    
    .nav-links {
        display: flex;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
    }
    
    .nav-links .mobile-menu-controls {
        display: none;
    }
    
    .header-actions {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .profile-results-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-card {
        flex-direction: row;
        padding: 2rem;
    }
    
    .profile-picture {
        width: 120px;
        height: 120px;
        margin: 0 2rem 0 0;
    }
    
    .profile-actions {
        flex-direction: row;
    }
}

/* Large Desktop Styles (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .profile-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra Large Screens (1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .results-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .profile-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .header-content {
        flex-direction: row;
        align-items: center;
    }
    
    .nav {
        order: 2;
    }
    
    .header-actions {
        order: 3;
    }
    
    .burger-menu {
        order: 1;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        width: auto;
    }
    
    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon {
        font-size: 1.2rem;
    }
    
    .thumbnail-preview img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .burger-menu,
    .theme-toggle,
    .language-selector,
    .notification {
        display: none;
    }
    
    .main {
        padding: 0;
    }
    
    .card {
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .thumbnail-card {
        break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4 {
        color: #000;
    }
}