/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

:root {
    /* Color Palette - Clean & Professional */
    --primary: #000000;
    --primary-light: #333333;
    --secondary: #ffffff;
    --accent: #0066FF;
    --accent-hover: #0052CC;

    /* Neutrals */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: var(--gray-900);
    background: #FFFFFF;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left;
}

p {
    font-size: var(--font-size-lg);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
    position: relative;
}

/* Navigation - Unique Design */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 250, 250, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: visible;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 4px);
    animation: subtleShift 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes subtleShift {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50px);
    }
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0; /* reduce desktop navbar height */
    position: relative;
    z-index: 1;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--primary);
    text-decoration: none;
    margin-right: var(--spacing-xl);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-menu a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
    position: relative;
    padding: var(--spacing-xs) 0;
    line-height: 1.5;
    display: inline-block;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-dropdown .dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-dropdown .dropdown-trigger:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    margin-left: var(--spacing-md);
}

.theme-dropdown {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10001;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: var(--spacing-xs);
    margin-left: 0;
}

.theme-icon {
    color: var(--gray-700);
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.theme-dropdown:hover .theme-icon,
.theme-dropdown.active .theme-icon {
    color: var(--primary);
}

.dropdown-arrow {
    color: var(--gray-700);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.theme-dropdown:hover .dropdown-arrow,
.theme-dropdown.active .dropdown-arrow {
    color: var(--primary);
}

.theme-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + var(--spacing-xs));
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}

.theme-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--gray-700);
    font-size: var(--font-size-base);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.dropdown-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: currentColor;
}

.dropdown-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.dropdown-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-weight: 500;
}

/* Navigation Dropdown for Tools */
.nav-menu li.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-trigger {
    display: inline-block;
    cursor: pointer;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
    position: relative;
    padding: var(--spacing-xs) 0;
    line-height: 1.5;
}

.nav-dropdown .dropdown-trigger svg {
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

.nav-dropdown.active .dropdown-trigger,
.nav-dropdown:hover .dropdown-trigger {
    color: var(--primary);
}

.nav-dropdown.active .dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown .tools-dropdown {
    position: absolute;
    top: calc(100% + var(--spacing-sm));
    left: 50%;
    transform: translateX(-50%) translateY(-8px) scale(0.98);
    padding: 0;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    pointer-events: none;
    margin-top: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.nav-dropdown.active .tools-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

/* Single column dropdown (Audio, Video) */
.nav-dropdown .tools-dropdown.single-column {
    min-width: 280px;
    max-width: 320px;
    padding: 12px 8px;
}

/* Multi-column dropdown (Image) */
.nav-dropdown .tools-dropdown.multi-column {
    min-width: 460px;
    max-width: 640px;
    padding: 24px 28px;
}

.dropdown-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    align-items: start;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
}

.dropdown-category-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 14px 0;
    padding: 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: block;
    line-height: 1.5;
}

.dropdown-category-title::after {
    display: none;
}

.tools-dropdown .dropdown-item {
    padding: 10px 14px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1.5;
    border-radius: 8px;
    margin: 2px 0;
    position: relative;
    background: transparent;
    min-height: 40px;
    padding-left: 14px;
}

.tools-dropdown .dropdown-item,
.tools-dropdown .dropdown-item a {
    text-decoration: none !important;
}

.tools-dropdown .dropdown-item::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

.tools-dropdown .dropdown-item:hover {
    color: #2563eb;
    background-color: #eff6ff;
    text-decoration: none !important;
}

.tools-dropdown .dropdown-item:hover::after {
    display: none !important;
    content: none !important;
}

.tools-dropdown .dropdown-item:focus,
.tools-dropdown .dropdown-item:active,
.tools-dropdown .dropdown-item:visited {
    text-decoration: none !important;
}

.tools-dropdown .dropdown-item:focus::after,
.tools-dropdown .dropdown-item:active::after,
.tools-dropdown .dropdown-item:visited::after {
    display: none !important;
    content: none !important;
}

/* Modern scrollbar for dropdown */
.tools-dropdown::-webkit-scrollbar {
    width: 6px;
}

.tools-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.tools-dropdown::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}

.tools-dropdown::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

/* Buttons - Clean Style */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 0.6rem var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
}

/* Hero Section - Clean & Focused */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: var(--spacing-3xl);
    background: #FFFFFF;
}

.hero-background {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--primary);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--gray-100);
    padding: 0.4rem var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-700);
}

.badge-icon {
    font-size: var(--font-size-sm);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
    color: var(--primary);
}

.gradient-text {
    color: var(--primary);
}

/* Hero Search - Clean Input */
.hero-search {
    margin: var(--spacing-lg) auto;
    max-width: 600px;
    width: 100%;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    color: var(--gray-400);
    pointer-events: none;
    z-index: 1;
    width: 18px;
    height: 18px;
}

.search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    background: #FFFFFF;
    transition: var(--transition-base);
    font-family: var(--font-family);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

/* ============================================
   MODERN BLACK EDITION UI - HERO SECTION
   ============================================ */

/* Modern Hero - Black Edition */
.modern-hero {
    background: #000000;
    background-image:
        linear-gradient(135deg, #0a0a0a 0%, #000000 50%, #0f0f0f 100%);
    position: relative;
    overflow: visible;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    opacity: 0.6;
    animation: subtleShift 20s ease infinite;
}

@keyframes subtleShift {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }
}

/* Modern Background Orbs */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block !important;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: modernFloat 15s ease-in-out infinite;
    will-change: transform;
}

.gradient-orb.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.6) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.gradient-orb.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.gradient-orb.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.5) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes modernFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    33% {
        transform: translate(40px, -40px) scale(1.1);
        opacity: 0.4;
    }

    66% {
        transform: translate(-30px, 30px) scale(0.95);
        opacity: 0.25;
    }
}

/* Modern Badge - Black Edition */
.modern-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.65rem 1.4rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modern-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.badge-icon {
    font-size: 1.1rem;
}

.modern-badge>span:not(.badge-icon) {
    font-size: 1em;
}

/* Modern Title - Black Edition */
.modern-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    animation: titleReveal 0.8s ease-out;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

/* Modern Search - Black Edition */
.modern-hero .hero-search {
    position: relative;
    max-width: 650px;
    margin: 2.5rem auto;
}

.modern-hero .search-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.modern-hero .search-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.modern-hero .search-container:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 16px 48px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.modern-hero .search-icon {
    color: rgba(255, 255, 255, 0.7);
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    display: block;
    position: static !important;
    left: auto !important;
    pointer-events: none;
}

.modern-hero .search-container:hover .search-icon {
    color: rgba(255, 255, 255, 0.9);
}

.modern-hero .search-container:focus-within .search-icon {
    color: #6366f1;
    transform: scale(1.1);
}

.modern-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    min-width: 0;
    width: 100%;
    line-height: 2.2 !important;
    caret-color: rgba(255, 255, 255, 0.95) !important;
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.modern-input:focus {
    color: rgba(255, 255, 255, 1) !important;
}

/* Modern Description - Black Edition */
.modern-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    margin: 2.5rem auto 0;
    max-width: 650px;
    line-height: 1.8;
    font-weight: 400;
    animation: descFadeIn 1s ease-out 0.3s both;
}

@keyframes descFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Buttons - Modern Black Edition */
.modern-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    animation: buttonsFadeIn 1s ease-out 0.6s both;
}

@keyframes buttonsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-hero-primary {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:active {
    transform: translateY(0);
}

.btn-hero-secondary {
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.btn-hero-secondary:active {
    transform: translateY(0);
}

/* Responsive Modern Black Edition */
@media (max-width: 768px) {
    .modern-hero {
        min-height: 85vh;
        padding-top: 100px;
    }

    .modern-title {
        font-size: 2.25rem;
    }

    .modern-description {
        font-size: 1rem;
    }

    .modern-badge {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }

    .modern-hero .search-container {
        padding: 1rem 1.5rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .gradient-orb {
        filter: blur(80px);
    }
}

/* FAQ Section - White Template Design */
.faq {
    padding: var(--spacing-lg) 0;
    margin-top: 0;
    background: #fafafa;
    color: #1a1a1a;
}

.faq .section-header {
    margin-bottom: var(--spacing-sm);
}

.faq .section-title {
    color: #1a1a1a;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq .section-description {
    color: #64748b;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    font-weight: 400;
    line-height: 1.85;
    max-width: 800px;
    margin: var(--spacing-xs) auto 0;
    padding-top: var(--spacing-xs);
    padding-left: 0;
    padding-right: 0;
    position: relative;
    display: block;
}

.faq .section-description::before {
    display: none;
}

.faq .section-description::after {
    display: none;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: border-color 0.2s ease;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.faq-item:hover {
    border-color: #d1d5db;
}

.faq-item.active {
    border-color: #6366f1;
}

.faq-item.active .faq-question h3 {
    color: #6366f1;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: 0;
    cursor: pointer;
    pointer-events: auto;
}

.faq-question h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #6366f1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 9999px;
    padding-top: var(--spacing-md);
    opacity: 1;
    overflow: visible;
}

.faq-answer-content {
    padding: 0 0 var(--spacing-sm);
}

.faq-answer p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: 400;
}

@media (max-width: 768px) {
    .faq {
        padding: var(--spacing-xl) 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .faq-item {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .faq-question h3 {
        font-size: var(--font-size-sm);
    }

    .faq-icon {
        width: 14px;
        height: 14px;
    }

    .faq-answer p {
        font-size: var(--font-size-sm);
    }
}

.hero-stats {
    display: flex;
    gap: var(--spacing-2xl);
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 500;
}

/* Features Section - Modern Design */
.features {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.features::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 100px,
            rgba(99, 102, 241, 0.02) 100px,
            rgba(99, 102, 241, 0.02) 102px);
    animation: geometricMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes geometricMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(100px, 100px) rotate(360deg);
    }
}

.features .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}


.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.section-description {
    font-size: clamp(1.15rem, 2.4vw, 1.35rem);
    color: #64748b;
    max-width: 800px;
    margin: var(--spacing-xs) auto 0;
    line-height: 1.85;
    font-weight: 400;
    letter-spacing: 0.015em;
    position: relative;
    padding-top: var(--spacing-xs);
    padding-left: 0;
    padding-right: 0;
    display: block;
}

.section-description::before {
    display: none;
}

.section-description::after {
    display: none;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--spacing-lg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(99, 102, 241, 0.15),
        0 8px 16px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:nth-child(1)::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.feature-card:nth-child(2)::before {
    background: linear-gradient(90deg, #ec4899, #f43f5e);
}

.feature-card:nth-child(3)::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.feature-card:nth-child(4)::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.feature-card:nth-child(5)::before {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.feature-card:nth-child(6)::before {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.feature-icon {
    margin-bottom: var(--spacing-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.feature-card:hover .feature-icon::before {
    width: 120px;
    height: 120px;
}

.feature-title {
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-title {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-description {
    color: #64748b;
    line-height: 1.7;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 400;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-description {
    color: #475569;
}

/* Tools Section - Modern Design */
.tools {
    padding: var(--spacing-3xl) 0 var(--spacing-lg) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.tools .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: var(--spacing-2xl);
}

.tool-category {
    margin-bottom: var(--spacing-3xl);
}

.tool-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
    position: relative;
    letter-spacing: -0.015em;
    -webkit-background-clip: text;
    background-clip: text;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #9333ea);
    border-radius: 2px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.tool-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
    cursor: pointer;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #9333ea, #ec4899);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.tool-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(147, 51, 234, 0.1));
    position: relative;
}

.tool-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
    pointer-events: none;
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover .tool-image img {
    transform: scale(1.1);
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.tool-icon-wrapper {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tool-icon-wrapper svg {
    width: 18px;
    height: 18px;
}

.tool-card:hover .tool-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: #6366f1;
    color: white;
}

.tool-badge {
    background: linear-gradient(135deg, #6366f1, #9333ea);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.tool-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-xs);
    transition: color 0.3s ease;
    line-height: 1.3;
}

.tool-card:hover .tool-title {
    color: #6366f1;
}

.tool-description {
    display: block;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    font-size: var(--font-size-sm);
    padding: 0 var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-actions {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    margin-top: auto;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.tool-button {
    background: #000000;
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 50px;
    width: 100%;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tool-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.tool-button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tool-button:hover::before {
    left: 100%;
}

.tool-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.tool-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.tool-download {
    display: none;
}

.no-results {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--gray-600);
    font-size: var(--font-size-lg);
}

/* CTA Section */
.cta {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-50);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
    color: var(--primary);
}

.cta-description {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer - Black Compact Design */
.footer {
    background: #0a0a0a;
    color: #ffffff;
    padding: var(--spacing-xl) 0 var(--spacing-xs);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.footer-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-weight: 700;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-1px);
}

.footer-logo svg {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(99, 102, 241, 0.3));
}

.footer-logo:hover svg {
    transform: scale(1.05);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: var(--font-size-base);
    margin: 0 auto;
    max-width: 600px;
}

.footer-links-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    margin: 0 auto;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    align-items: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: var(--font-size-base);
    font-weight: 400;
    padding: 4px 0;
    white-space: nowrap;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-social {
    text-align: center;
    margin-top: var(--spacing-md);
}

.footer-social-title {
    font-weight: 500;
    margin-top: var(--spacing-sm);
    margin-bottom: 0.25rem;
    font-size: var(--font-size-base);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-xs);
    font-weight: 400;
}

.footer-bottom p {
    margin: 0;
}

/* Page Styles - About, Contact, Terms, Privacy */
.page-hero {
    padding: calc(30px + var(--spacing-md)) 0 var(--spacing-md);
    background:
        radial-gradient(circle at 20% 30%, rgba(30, 30, 30, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(20, 20, 20, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(15, 15, 15, 0.4) 0%, transparent 70%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #151515 50%, #1f1f1f 75%, #0f0f0f 100%);
    text-align: center;
    position: relative;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    color: #b0b0b0;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-content {
    padding: var(--spacing-3xl) 0;
    background: #ffffff;
}

.content-section {
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.content-section p {
    font-size: var(--font-size-lg);
    color: #475569;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
    margin: var(--spacing-md) 0;
}

.content-section li {
    font-size: var(--font-size-lg);
    color: #475569;
    line-height: 1.8;
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.content-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.values-list li::before,
.terms-list li::before {
    content: '▸';
    font-size: 1rem;
}

.content-section a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.content-section a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.last-updated {
    font-size: var(--font-size-sm) !important;
    color: #94a3b8 !important;
    font-style: italic;
    margin-bottom: var(--spacing-xl) !important;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: var(--spacing-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-md);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    padding: 17px 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    box-shadow: none;
}

.btn-primary:hover {
    background: #1a1a1a;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.info-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: var(--spacing-sm);
}

.info-item p {
    font-size: var(--font-size-base);
    color: #64748b;
    line-height: 1.7;
    margin: var(--spacing-xs) 0;
}

.contact-note {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border-left: 3px solid #6366f1;
}

.contact-note p {
    font-size: var(--font-size-sm);
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Simple Contact card */
.contact-email-card {
    background: #f7f9fc;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    font-size: var(--font-size-lg);
    color: #1a1a1a;
    margin-top: var(--spacing-md);
}

.contact-email-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* Image Upscaler Page Styles */
.upscaler-section {
    padding: var(--spacing-2xl) 0 0 0;
    background: #ffffff;
    width: 100%;
    margin: 0;
}

.upscaler-container {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    padding: var(--spacing-xl);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}


@media (max-width: 768px) {
    .upscaler-container {
        padding: var(--spacing-lg);
        border-radius: 8px;
    }
}

/* Filter Layout: Side-by-Side */
.filter-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Clothes Changer specific layout - smaller left panel */
.clothes-changer-layout {
    grid-template-columns: 0.55fr 1.45fr;
}

.filter-input-panel {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    background: #ffffff;
    border-radius: 20px;
    padding: var(--spacing-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 0.1px solid #e2e8f0;
    margin-bottom: var(--spacing-2xl);
    min-width: 0;
    width: 100%;
}

.filter-input-panel .upload-container-modern {
    margin-bottom: 0;
}

.filter-input-panel .prompt-section {
    margin-bottom: 0;
}

.filter-output-panel {
    position: sticky;
    top: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 0.1px solid #e2e8f0;
    overflow: hidden;
    min-width: 0;
    width: 100%;
}

.output-title-wrapper {
    background: #ffffff;
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-md);
    border-bottom: 2px solid #e2e8f0;
}

.output-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.output-content-wrapper {
    padding: var(--spacing-xl);
    text-align: center;
}

.upload-container {
    margin-bottom: var(--spacing-lg);
}

.upload-box {
    border: 2px dashed #e5e7eb;
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-box:hover {
    border-color: #6366f1;
    background: #f8f9ff;
}

.upload-box.drag-over {
    border-color: #6366f1;
    background: #f0f4ff;
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.upload-icon {
    color: #94a3b8;
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-xs);
}

.upload-box:hover .upload-icon {
    color: #6366f1;
}

.upload-title {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.upload-description {
    font-size: var(--font-size-sm);
    color: #64748b;
    margin: 0;
}

.upload-hint {
    font-size: var(--font-size-xs);
    color: #94a3b8;
    margin: 0;
}

.upload-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.upload-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.scale-selection {
    margin-bottom: var(--spacing-sm);
}

.scale-title {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    text-align: left;
    font-size: 16px;
}

.scale-selection .scale-title {
    text-align: center;
}

.scale-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.scale-btn {
    padding: var(--spacing-md);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.scale-btn:hover {
    border-color: #6366f1;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.scale-btn.active {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.scale-label {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #6366f1;
    line-height: 1;
}

.scale-btn.active .scale-label {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scale-desc {
    font-size: var(--font-size-xs);
    color: #64748b;
    font-weight: 500;
}

.scale-btn.active .scale-desc {
    color: #6366f1;
    font-weight: 600;
}

/* Modern Upload Design */
.upload-container-modern {
    margin-bottom: var(--spacing-md);
}

.upload-box-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px dashed rgba(99, 102, 241, 0.2);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-box-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.upload-box-modern:hover::before {
    opacity: 1;
}

.upload-box-modern:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.upload-box-modern.drag-over {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    transform: scale(1.02);
}

.upload-content-modern {
    text-align: center;
    padding: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.upload-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.upload-icon-modern {
    color: #6366f1;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
    position: relative;
    z-index: 2;
}

.upload-icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.upload-title-modern {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 var(--spacing-xs) 0;
}

.upload-description-modern {
    font-size: var(--font-size-sm);
    color: #64748b;
    margin: 0;
}

.upload-preview-modern {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: var(--spacing-sm);
}

.preview-image-wrapper {
    position: relative;
    width: 100%;
}

.download-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.download-button-wrapper center {
    margin: 0;
    display: flex;
    justify-content: center;
}

.upload-preview-modern img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.remove-image-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #ef4444;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.remove-image-modern:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.remove-image-modern svg {
    width: 16px;
    height: 16px;
}

.scale-buttons-new {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.scale-btn-new {
    padding: 8px 20px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 auto;
    min-width: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.scale-btn-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.scale-btn-new:hover::before {
    left: 100%;
}

.scale-btn-new:hover {
    border-color: #6366f1;
    background: #f8f9ff;
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.scale-btn-new.active {
    border: 1.5px solid #6366f1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.process-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.btn-upscale {
    padding: 17px 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.btn-upscale:hover:not(:disabled) {
    background: #1a1a1a;
}

.btn-upscale:hover:not(:disabled) svg {
    transform: translate(2px, -2px);
    transition: transform 0.2s ease;
}

.btn-upscale:active:not(:disabled) {
    background: #000000;
}

.btn-upscale:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #333333;
}

.btn-upscale svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .page-hero {
        padding: calc(70px + var(--spacing-xl)) 0 var(--spacing-xl);
    }

    .page-content {
        padding: var(--spacing-2xl) 0;
    }

    .content-section {
        margin-bottom: var(--spacing-xl);
    }

    .upload-box {
        min-height: 180px;
        padding: var(--spacing-md);
    }

    .upload-box-modern {
        min-height: 200px;
        border-radius: 16px;
    }

    .upload-content-modern {
        padding: var(--spacing-lg);
    }

    .upload-icon-modern {
        width: 40px;
        height: 40px;
    }

    .upload-icon-pulse {
        width: 60px;
        height: 60px;
    }

    .upload-title-modern {
        font-size: var(--font-size-base);
    }

    .remove-image-modern {
        width: 32px;
        height: 32px;
    }

    .upload-preview-modern {
        padding: var(--spacing-sm);
    }

    .upload-preview-modern img {
        border-radius: 12px;
    }

    .scale-buttons {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .upscaler-section {
        padding: var(--spacing-lg) 0 0 0;
        width: 100%;
    }

    .upscaler-container {
        padding: 0 var(--spacing-md);
    }

    .filter-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .filter-output-panel {
        position: static;
    }

    .scale-btn {
        padding: var(--spacing-sm);
    }

    .scale-buttons-new {
        gap: var(--spacing-xs);
    }

    .scale-btn-new {
        padding: 6px 16px;
        min-width: 55px;
        font-size: 0.8125rem;
    }

    .btn-upscale {
        padding: 17px 20px;
        font-size: 15px;
    }
}

/* Image Upscaler Page Specific Styles */
.turnstile-wrapper {
    margin: 0;
}

.turnstile-label {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xs) 0;
    min-height: 50px;
    width: 100%;
}

.turnstile-container iframe {
    margin: 0 auto;
}

.output-container {
    margin-top: 0;
    min-height: 40px;
    text-align: center;
}

.output-container center {
    margin: 0;
    display: block;
    width: 100%;
}

/* Output Placeholder */
.output-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border: 0.1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    text-align: center;
    min-height: 400px;
}

/* Result Card Styling */
.result-card {
    position: relative;
    display: inline-block;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 12px 16px 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
}

.result-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.result-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 0 auto 12px auto;
    transition: transform 0.3s ease;
}

.result-card:hover img {
    transform: scale(1.02);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #682dff 0%, #a855f7 50%, #ec4899 100%);
    border-radius: 16px 16px 0 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Message Design */
.error-message-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px auto;
    max-width: 600px;
}

.error-message-wrapper svg {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: block;
    margin: 0 auto;
}

.error-message {
    width: 100%;
    padding: 20px;
    background: #fff5f5;
    border: 2px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    animation: fadeInUp 0.3s ease-out;
    text-align: center;
}

.error-message span {
    text-align: center;
    display: block;
    width: 100%;
}

.error-message.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.error-message.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.btnx {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 17px 20px;
    background: #682dff;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(104, 45, 255, 0.3);
}

.btnx:hover {
    background: #5a1fe6;
    box-shadow: 0 6px 20px rgba(104, 45, 255, 0.4);
    transform: translateY(-2px);
}

.btnx:active {
    background: #4a1db3;
    transform: translateY(0);
}

.btnx svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btnx:hover svg {
    transform: translate(2px, -2px);
}

.btn-loading-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Ad Generator Page Styles */
.ad-generator-section {
    padding: var(--spacing-xl) 0;
    background: #ffffff;
    width: 100%;
    margin: 0;
}

.ad-generator-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--spacing-lg);
}

.upload-section {
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.upload-heading {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: var(--spacing-md);
}

.ad-generator-section .upload-box {
    width: 100%;
    min-height: 220px;
}

.upload-box {
    border: 2px dashed #e5e7eb;
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-box:hover {
    border-color: #6366f1;
    background: #f8f9ff;
}

.upload-box.drag-over {
    border-color: #6366f1;
    background: #f0f4ff;
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.upload-icon {
    color: #94a3b8;
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-xs);
}

.upload-box:hover .upload-icon {
    color: #6366f1;
}

.upload-title {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.upload-description {
    font-size: var(--font-size-sm);
    color: #64748b;
    margin: 0;
}

.upload-hint {
    font-size: var(--font-size-xs);
    color: #94a3b8;
    margin: 0;
}

.upload-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.upload-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.prompt-section {
    margin-bottom: var(--spacing-md);
    width: 100%;
}

.generate-prompt-container {
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.btn-generate-ad-prompt {
    padding: 14px 28px;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: none;
}

.btn-generate-ad-prompt:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.btn-generate-ad-prompt:active:not(:disabled) {
    transform: translateY(0);
}

.btn-generate-ad-prompt:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.section-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: var(--spacing-sm);
}

.prompt-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
    max-width: 100%;
}

.prompt-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.prompt-textarea::placeholder {
    color: #94a3b8;
}


.hairstyle-select-label {
    display: block;
    margin-bottom: 8px;
}

.hairstyle-select-wrapper .filter-select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: #1a1a1a;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L6 6L10 2' stroke='%236366F1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-sm) center;
    padding-right: 2rem;
}

.hairstyle-select-wrapper .filter-select:hover {
    border-color: #d1d5db;
}

.hairstyle-select-wrapper .filter-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.hairstyle-select-wrapper .select2-container--default .select2-selection--single {
    height: auto;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.3s ease;
}

.hairstyle-select-wrapper .select2-container--default .select2-selection--single:hover {
    border-color: #d1d5db;
}

.hairstyle-select-wrapper .select2-container--default.select2-container--focus .select2-selection--single,
.hairstyle-select-wrapper .select2-container--default .select2-selection--single:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.hairstyle-select-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding: 0;
    color: #1a1a1a;
    font-weight: 500;
}

.hairstyle-select-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: var(--spacing-sm);
}

.hairstyle-select-wrapper .select2-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-family: 'Poppins', sans-serif;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.select2-results__option {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.select2-results__option--highlighted {
    background-color: #f8f9ff;
    color: #6366f1;
}

.select2-results__option[aria-selected='true'] {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-weight: 500;
}

/* Modern Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-trigger {
    width: 100%;
    padding: 17px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.custom-dropdown-trigger:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.custom-dropdown.active .custom-dropdown-trigger {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.dropdown-selected {
    flex: 1;
}

.dropdown-arrow {
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s ease;
    color: #1a1a1a;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.dropdown-search-wrapper {
    position: relative;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.dropdown-search {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.dropdown-search:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.dropdown-search-wrapper .search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.dropdown-options-container {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.custom-dropdown.active .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #f8f9fa;
    color: #000000;
}

.dropdown-option.selected {
    background: #000000;
    color: #ffffff;
}

/* Legacy support for native select */
.filter-select {
    width: 100%;
    padding: 17px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-select:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.filter-select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Form Input Styling */
.form-input {
    width: 100%;
    padding: 17px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-input:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.form-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.gender-section {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gender-buttons {
    display: inline-flex;
    gap: 12px;
    justify-content: center;
}

.gender-btn {
    padding: 10px 26px;
    border: 2px solid #dbeafe;
    border-radius: 999px;
    background: #ffffff;
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.18);
}

.gender-btn.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
}

.gender-btn:hover {
    transform: translateY(-2px);
}

.parent-upload-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
    align-items: stretch;
}

.parent-upload-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parent-upload-col .upload-container-modern,
.parent-upload-col .upload-box-modern {
    height: 100%;
}

.parent-upload-col .upload-box-modern {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.parent-upload-col .upload-content-modern {
    width: 100%;
}

@media (max-width: 992px) {
    .parent-upload-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .gender-buttons {
        flex-direction: column;
        width: 100%;
    }

    .gender-btn {
        width: 100%;
        text-align: center;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.generate-container {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.submit-container {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.btn-generate {
    padding: 17px 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.btn-generate:hover:not(:disabled) {
    background: #1a1a1a;
}

.btn-generate:hover:not(:disabled) svg {
    transform: translate(2px, -2px);
    transition: transform 0.2s ease;
}

.btn-generate:active:not(:disabled) {
    background: #000000;
}

.btn-generate:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #333333;
}

.btn-generate svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.btn-submit {
    padding: 17px 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.btn-submit:hover:not(:disabled) {
    background: #1a1a1a;
}

.btn-submit:hover:not(:disabled) svg {
    transform: translate(2px, -2px);
    transition: transform 0.2s ease;
}

.btn-submit:active:not(:disabled) {
    background: #000000;
}

.btn-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #333333;
}

.btn-generate svg,
.btn-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}


.selection-section {
    margin-top: 20px;
}

.aspect-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
}

.aspect-btn {
    padding: var(--spacing-sm);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.aspect-btn:hover {
    border-color: #6366f1;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.aspect-btn.active {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.aspect-icon {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 800;
    color: #6366f1;
    line-height: 1;
}

.aspect-btn.active .aspect-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aspect-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: #1a1a1a;
}

.aspect-btn.active .aspect-label {
    color: #6366f1;
}

.aspect-desc {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 500;
}

.aspect-btn.active .aspect-desc {
    color: #6366f1;
    font-weight: 600;
}

.selection-buttons {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.selection-btn {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: #ffffff;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 1 auto;
    min-width: auto;
    width: auto;
    font-family: 'Poppins', sans-serif;
}

.selection-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.selection-btn.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edit-type-buttons {
    max-width: 400px;
    gap: var(--spacing-sm);
}

.edit-type-buttons .selection-btn {
    flex: 0 1 auto;
    min-width: auto;
    width: auto;
}

.success-message {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: #d1fae5;
    color: #065f46;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
}

.success-message svg {
    width: 20px;
    height: 20px;
    stroke: #059669;
}

@media (max-width: 768px) {
    .ad-generator-section {
        padding: var(--spacing-lg) 0;
        width: 100%;
    }

    .ad-generator-container {
        padding: 0 var(--spacing-md);
    }

    .upload-box {
        min-height: 180px;
        padding: var(--spacing-md);
    }

    .aspect-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .aspect-btn {
        padding: var(--spacing-sm);
    }

    .selection-buttons {
        flex-direction: column;
    }

    .selection-btn {
        width: 100%;
        min-width: auto;
    }

    .edit-type-buttons {
        max-width: 100%;
    }

    .btn-generate,
    .btn-submit {
        width: 100%;
        padding: 17px 20px;
        font-size: 15px;
        min-width: auto;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .category-title {
        font-size: var(--font-size-xl);
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .footer-links-row {
        gap: var(--spacing-md);
    }

    .footer-social-icons {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: #FFFFFF;
        flex-direction: column;
        padding: 8px var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: var(--transition-base);
        gap: 2px; /* tighter vertical spacing between items */
        border-top: 1px solid var(--gray-200);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 9999;
        box-sizing: box-sizing;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nav-menu a {
        padding: var(--spacing-sm) 0;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
        display: block;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .nav-wrapper {
        padding: 0;
        gap: var(--spacing-md);
    }

    .navbar {
        /*padding: var(--spacing-md) 0;*/
    }

    .logo span {
        font-size: 18px;
    }

    .nav-controls {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .theme-dropdown {
        padding: var(--spacing-xs) var(--spacing-sm);
        margin-left: 0;
        margin-right: 0;
    }

    /* Mobile dropdown styles - Clean Design */
    .nav-dropdown {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        border-bottom: none !important; /* remove underline separator on mobile */
    }

    .nav-dropdown:last-child {
        border-bottom: none;
    }

    .nav-dropdown .dropdown-trigger {
        width: 100%;
        max-width: 100%;
        padding: 8px 0 !important; /* tighter vertical padding */
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 16px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #1f2937;
        background: transparent;
        border: none;
    }

    .nav-dropdown .dropdown-trigger svg {
        flex-shrink: 0;
        margin-left: 8px;
        transition: transform 0.3s ease;
        width: 16px;
        height: 16px;
    }

    .nav-dropdown.active .dropdown-trigger svg {
        transform: rotate(180deg);
    }

    .nav-dropdown .tools-dropdown {
        position: relative !important;
        transform: translateY(-10px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: auto !important;
        right: auto !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        overflow-x: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-sizing: border-box;
        background: transparent !important;
        pointer-events: none !important;
    }

    .nav-dropdown.active .tools-dropdown {
        max-height: 600px !important;
        padding: 8px 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        margin-bottom: 0;
        margin-left: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        z-index: 1 !important;
        pointer-events: auto !important;
        background: transparent !important;
    }

    .nav-dropdown .tools-dropdown.single-column,
    .nav-dropdown .tools-dropdown.multi-column {
        min-width: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .nav-dropdown.active .tools-dropdown .dropdown-columns,
    .nav-dropdown.active .tools-dropdown .dropdown-column {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dropdown-columns {
        grid-template-columns: 1fr !important;
        gap: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        display: block !important;
    }

    .dropdown-column {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: visible !important;
        margin-bottom: 0;
        display: block !important;
    }

    .dropdown-column:not(:last-child) {
        margin-bottom: 0;
    }

    .dropdown-category-title {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .tools-dropdown .dropdown-item {
        padding: 12px 0 !important;
        font-size: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #4b5563 !important;
        text-decoration: none !important;
        border-radius: 12px !important;
        margin-bottom: 8px;
        transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease, margin 0.2s ease, width 0.2s ease;
        background-color: transparent !important;
        font-weight: 500;
        text-align: left;
        position: relative;
    }

    .tools-dropdown .dropdown-item:hover,
    .tools-dropdown .dropdown-item:active,
    .tools-dropdown .dropdown-item:focus,
    .tools-dropdown .dropdown-item.touched {
        background-color: #eff6ff !important;
        color: #2563eb !important;
        padding: 12px 16px !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        width: calc(100% + 32px) !important;
    }

    /* Touch-friendly hover for mobile */
    @media (hover: none) and (pointer: coarse) {

        .tools-dropdown .dropdown-item:active,
        .tools-dropdown .dropdown-item.touched {
            background-color: #eff6ff !important;
            color: #2563eb !important;
            padding: 12px 16px !important;
            margin-left: -16px !important;
            margin-right: -16px !important;
            width: calc(100% + 32px) !important;
        }
    }

    .features {
        padding: var(--spacing-xl) 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .feature-card {
        padding: var(--spacing-md);
    }

    .feature-icon {
        width: 44px;
        height: 44px;
    }

    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-links-row {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-link {
        font-size: var(--font-size-sm);
    }

    .footer-description {
        font-size: var(--font-size-sm);
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .hero-search {
        max-width: 100%;
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tool-category {
        margin-bottom: var(--spacing-2xl);
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .category-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-md);
    }

    .tool-card {
        border-radius: 14px;
    }

    .tool-image {
        height: 180px;
    }

    .tool-title {
        font-size: var(--font-size-lg);
    }

    .tool-description {
        font-size: var(--font-size-sm);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px; /* a bit more side padding for better spacing */
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .tool-actions {
        flex-direction: column;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Simple Animations */
.feature-card,
.tool-card {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-helper {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.input-group {
    margin-bottom: 8px;
}

.text-input,
.text-area {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.text-input:focus,
.text-area:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    outline: none;
}

.text-area {
    resize: vertical;
    min-height: 120px;
}

/* Prompt Type Buttons */
.prompt-type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.prompt-type-buttons .selection-btn {
    border-radius: 999px;
    padding: 10px 22px;
    background: #f5f7ff;
    border: 1px solid #dbe4ff;
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    box-shadow: none;
}

.prompt-type-buttons .selection-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1d4ed8;
}

.prompt-type-buttons .selection-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.prompt-type-buttons .selection-btn.active:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

/* AI Clothes Changer Styles */
.canvas-section {
    display: none;
    text-align: center;
    margin-top: 24px;
}

.canvas-container {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.canvas {
    display: block;
    border-radius: 12px;
}

.base-canvas {
    position: relative;
    z-index: 0;
}

.draw-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    cursor: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.draw-canvas.hidden {
    opacity: 0;
    pointer-events: none;
}

.tools-section {
    display: block;
    margin-top: 24px;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.tool-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #374151;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    border-color: #6366f1;
    background: #f1f5f9;
}

.tool-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.size-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
}

.size-control span {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.size-slider {
    width: 80px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
}

.size-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.size-display {
    font-weight: 600;
    color: #6366f1;
    min-width: 30px;
    font-size: 14px;
}

.brush-cursor {
    position: fixed;
    pointer-events: none;
    border: 2px solid white;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
    box-sizing: border-box;
}

#masked_Image {
    display: none !important;
}

/* AI Clothes Changer - Process Container Centering */
#processContainer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#processContainer .btn-upscale {
    display: inline-flex;
}

@media (max-width: 768px) {
    .tools-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tool-btn {
        width: auto;
        min-width: 40px;
        padding: 8px;
        justify-content: center;
    }

    .size-control {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* Feature Showcase Sections */
.feature-showcase-section {
    padding: var(--spacing-3xl) 0;
    background: #ffffff;
}

.feature-showcase-section.feature-showcase-alt {
    background: #fafafa;
}

.feature-showcase-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    /* make image side larger overall */
    gap: var(--spacing-3xl);
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

@media (min-width: 969px) {
    .feature-showcase-row.feature-showcase-left {
        grid-template-columns: 0.9fr 0.9fr;
    }
}

.feature-showcase-row.feature-showcase-right {
    grid-template-columns: 0.9fr 0.9fr;
    /* when images are on the left, keep them larger */
}

.feature-showcase-row.feature-showcase-right .feature-showcase-images {
    order: 1;
}

.feature-showcase-row.feature-showcase-right .feature-showcase-content {
    order: 2;
}

.feature-showcase-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature-showcase-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}

.feature-showcase-description {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.feature-showcase-btn {
    padding: 14px 28px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-family: var(--font-family);
}

.feature-showcase-btn:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-showcase-images {
    position: relative;
}

.comparison-images {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.comparison-image-wrapper {
    position: relative;
    flex: 1.2;
    /* enlarge both images equally */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


.comparison-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.image-label {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-label.before-label {
    left: 12px;
}

.image-label.after-label {
    right: 12px;
}

.sparkle-icon {
    position: absolute;
    font-size: 1.5rem;
    animation: sparkleFloat 2s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

.sparkle-icon.sparkle-1 {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.sparkle-icon.sparkle-2 {
    top: 50%;
    right: 10%;
    animation-delay: 0.5s;
}

.sparkle-icon.sparkle-3 {
    top: 75%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes sparkleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 1;
    }
}

.prompt-box {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    background: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    z-index: 1;
    min-width: 200px;
    justify-content: center;
    margin-top: var(--spacing-md);
    width: 100%;
}

.prompt-icon {
    font-size: 1rem;
}

.prompt-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
}

@media (max-width: 968px) {
    .feature-showcase-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .feature-showcase-row.feature-showcase-right .feature-showcase-images {
        order: 1;
    }

    .feature-showcase-row.feature-showcase-right .feature-showcase-content {
        order: 2;
    }

    .feature-showcase-content {
        text-align: center;
    }

    .feature-showcase-btn {
        align-self: center;
    }

    .comparison-images {
        justify-content: center;
    }

    .comparison-image-wrapper {
        max-width: 250px;
    }
}

@media (max-width: 1024px) {
    .feature-showcase-section .feature-showcase-row {
        display: flex;
        flex-direction: column;
    }

    .feature-showcase-section .feature-showcase-row.feature-showcase-right {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .feature-showcase-section .feature-showcase-images {
        width: 100% !important;
        max-width: 100% !important;
    }

    .feature-showcase-section .comparison-images {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .feature-showcase-section .comparison-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }

    .feature-showcase-section .comparison-image-wrapper img.comparison-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
    }

    .upload-preview-modern .preview-image-wrapper img {
        width: 100%;
        height: auto;
        max-height: 70vh;
        object-fit: contain;
    }

    /* Selection buttons - two per line on mobile */
    .selection-section .selection-buttons.prompt-type-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .selection-section .prompt-type-buttons .selection-btn {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
    }
}

@media (max-width: 640px) {
    .feature-showcase-section {
        padding: var(--spacing-xl) 0;
    }

    .comparison-images {
        flex-direction: column;
        align-items: center;
    }

    .comparison-image-wrapper {
        max-width: 100%;
    }

    .prompt-box {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: var(--spacing-md);
        width: 100%;
    }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Image to Prompt Styles */
.prompt-type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.prompt-type-buttons .selection-btn {
    border-radius: 999px;
    padding: 10px 22px;
    background: #f5f7ff;
    border: 1px solid #dbe4ff;
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    box-shadow: none;
}

.prompt-type-buttons .selection-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1d4ed8;
}

.prompt-type-buttons .selection-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.prompt-type-buttons .selection-btn.active:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.prompt-result-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    text-align: left;
}

.prompt-result-header {
    font-weight: 700;
    font-size: 1rem;
    color: #312e81;
    margin-bottom: 12px;
}

.prompt-result-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prompt-result-text {
    width: 100%;
    min-height: 160px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1e293b;
    white-space: pre-wrap;
    overflow-y: auto;
}

.prompt-copy-btn {
    align-self: flex-end;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.prompt-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
}

.prompt-copy-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* SEO Content Section */
.seo-content-section {
    padding: var(--spacing-3xl) 0;
    background: #ffffff;
}

.seo-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.seo-content-wrapper h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.seo-content-wrapper h3 {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 600;
    color: #312e81;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.seo-content-wrapper p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    color: #475569;
    margin-bottom: var(--spacing-md);
}

.seo-content-wrapper strong {
    color: #1e293b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .seo-content-section {
        padding: var(--spacing-xl) 0;
    }

    .seo-content-wrapper {
        padding: 0 var(--spacing-sm);
    }

    .seo-content-wrapper h2 {
        margin-bottom: var(--spacing-sm);
    }

    .seo-content-wrapper h3 {
        margin-top: var(--spacing-lg);
        margin-bottom: var(--spacing-sm);
    }

    .seo-content-wrapper p {
        margin-bottom: var(--spacing-sm);
    }
}

/* Compact Prompt Type Selection - Firefly Friendly */
.prompt-type-selection-compact {
    margin-top: 12px;
    margin-bottom: 12px;
}

.prompt-type-title-small {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-align: left;
}

.prompt-type-buttons-compact {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.selection-btn-compact {
    padding: 6px 12px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.2s ease-in-out;
    box-shadow: none;
    cursor: pointer;
    flex: 1 1 auto;
    min-width: 0;
    font-family: 'Poppins';
}

.selection-btn-compact:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
    font-family: 'Poppins';
}

.selection-btn-compact.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    font-family: 'Poppins';
}

.selection-btn-compact.active:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    font-family: 'Poppins';
}

@media (max-width: 640px) {
    .prompt-type-buttons-compact {
        gap: 4px;
    }

    .selection-btn-compact {
        padding: 5px 10px;
        font-size: 0.75rem;
        flex: 1 1 calc(50% - 2px);
    }
}

/* ============================================
   CELEBRITY VOICE PAGE STYLES
   ============================================ */

.voice-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.char-counter {
    text-align: center;
    font-size: var(--font-size-xs);
    color: #64748b;
    margin-bottom: var(--spacing-sm);
}

.voice-select-wrapper {
    position: relative;
}

.voice-search {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    cursor: pointer;
}

.voice-search:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.voice-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
}

.voice-dropdown.active {
    display: block;
}

.voice-option {
    padding: var(--spacing-xs) var(--spacing-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    font-size: var(--font-size-sm);
}

.voice-option:last-child {
    border-bottom: none;
}

.voice-option:hover {
    background: #f8f9ff;
    color: #6366f1;
}

.filter-select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L6 6L10 2' stroke='%236366F1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-sm) center;
    padding-right: 2rem;
}

.filter-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-select:hover {
    border-color: #d1d5db;
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    height: auto;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.3s ease;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.select2-container--default .select2-selection--single:hover {
    border-color: #d1d5db;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding: 0;
    color: #1a1a1a;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: var(--spacing-sm);
}

.select2-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-family: 'Poppins', sans-serif;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.select2-results__option {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.select2-results__option--highlighted {
    background-color: #f8f9ff;
    color: #6366f1;
}

.select2-results__option[aria-selected=true] {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-weight: 500;
}

.btn-loading-icon {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.turnstile-wrapper {
    margin-bottom: var(--spacing-md);
    width: 100%;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

#downloadBtnContainer .download-button-container .btnx {
    margin: 0;
}

#downloadBtnContainer .download-button-container {
    display: inline-block;
}

/* Search Dropdown Styles */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: #f8f9fa;
}

.search-item-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.search-item-category {
    font-size: 0.75rem;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Scrollbar for dropdown */
.search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

#output {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

#output .btnx,
#downloadButtonWrapper .btnx {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 28px;
    }

    .logo {
        margin-right: 28px;
    }

    .theme-dropdown {
        margin-left: 14px;
    }
}

/* Extra-small phones */
@media (max-width: 480px) {
    .container { padding: 16px; }
    .nav-menu { gap: 0; }
    .nav-dropdown .dropdown-trigger { padding: 5px 0 !important; }
    .nav-menu a::after,
    .nav-dropdown .dropdown-trigger::after { display: none !important; }
}

/* Tablet & all mobile views (ensure compact spacing across ≤1024px) */
@media (max-width: 1024px) {
    /* Compact nav spacing on tablet and larger mobiles */
    .nav-menu {
        gap: 0 !important;
        padding: 8px 16px !important;
    }

    .nav-menu li {
        margin: 10px !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .nav-menu a {
        padding: 6px 0 !important;
        margin: 0 !important;
    }

    .nav-dropdown {
        border-bottom: 0 !important;
    }

    .nav-dropdown .dropdown-trigger {
        padding: 6px 0 !important;
    }

    .nav-menu a::after,
    .nav-dropdown .dropdown-trigger::after {
        display: none !important;
        content: none !important;
    }

    /* Multi-column (Image) dropdown: reduce size on mobile/tablet */
    .nav-dropdown .tools-dropdown.multi-column {
        min-width: auto !important;
        max-width: 100% !important;
        padding: 0px 8px !important;
    }

    .nav-dropdown .tools-dropdown.single-column
    {

        padding: 0px 8px !important;
    }
}