        /* ========== CSS VARIABLES FOR THEME SYSTEM ========== */
        :root, html.light {
            /* Premium Palette - Vivid & Modern */
            --color-primary: #8B5CF6;
            --color-primary-rgb: 139, 92, 246;
            --color-secondary: #06B6D4;
            --color-secondary-rgb: 6, 182, 212;
            --color-accent: #F43F5E;
            
            /* Glassmorphism Bases */
            --bg-glass: rgba(255, 255, 255, 0.7);
            --bg-glass-heavy: rgba(255, 255, 255, 0.9);
            --border-glass: rgba(255, 255, 255, 0.4);
            
            /* Backgrounds */
            --bg-primary: #F8FAFC;
            --mesh-gradient: radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.05) 0, transparent 50%), 
                             radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.05) 0, transparent 50%);
            
            --text-primary: #0F172A;
            --text-secondary: #475569;
            --text-muted: #94A3B8;
            
            --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
            --radius-premium: 20px;
        }
        
        html.dark {
            --color-primary: #A78BFA;
            --color-primary-rgb: 167, 139, 250;
            --color-secondary: #2DD4BF;
            --color-secondary-rgb: 45, 212, 191;
            
            /* Dark Glassmorphism */
            --bg-glass: rgba(15, 23, 42, 0.7);
            --bg-glass-heavy: rgba(15, 23, 42, 0.9);
            --border-glass: rgba(255, 255, 255, 0.05);
            
            /* Futuristic Dark Background */
            --bg-primary: #020617;
            --mesh-gradient: radial-gradient(at 0% 0%, rgba(167, 139, 250, 0.15) 0, transparent 50%), 
                             radial-gradient(at 100% 0%, rgba(45, 212, 191, 0.15) 0, transparent 50%);
            
            --text-primary: #F8FAFC;
            --text-secondary: #CBD5E1;
            --text-muted: #64748B;
            
            --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
            --border-glass: rgba(255, 255, 255, 0.1);
        }

        /* ========== Premium Global Utilities ========== */
        body {
            background-color: var(--bg-primary);
            background-image: var(--mesh-gradient);
            background-attachment: fixed;
            min-height: 100vh;
            padding-top: 75px !important; /* Safe base padding for fixed header */
        }

        .glass-card {
            background: var(--bg-glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-premium);
            box-shadow: var(--shadow-glass);
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .glass-card:hover {
            border-color: rgba(var(--color-primary-rgb), 0.4);
        }

        /* Fix header border - remove distracting white borders */
        .main-header.glass-card {
            border: none;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 0;
        }

        html.dark .main-header.glass-card {
            border-bottom-color: rgba(255, 255, 255, 0.08);
        }

        .text-vivid {
            background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 800;
        }

        .btn-premium {
            background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
            color: white !important;
            padding: 12px 28px;
            border-radius: 50px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: transform 0.3s ease, opacity 0.3s ease;
            box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .btn-premium:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.4);
        }
        
        /* Optimized transitions for theme switching - Smoother & Faster */
        body {
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        
        /* Apply transitions only to specific interactive elements */
        .tool-card,
        .collection-card,
        .sidebar,
        .filter-chip,
        .category-card,
        .subcategory-bar,
        button,
        a,
        input,
        textarea {
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        
        /* Global Styles */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        /* Smooth scrolling for the entire page */
        html {
            scroll-behavior: smooth;
        }
        
        /* Page transition effect */
        body {
            opacity: 1;
            transition: opacity 0.15s ease-out;
        }
        
        body.page-loading {
            opacity: 0;
        }

        body {
            font-family: 'Inter', Arial, Helvetica, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        img {
            max-width: 100%;
            display: block;
        }

        /* ========== PERFORMANCE OPTIMIZATIONS ========== */
        /* GPU-accelerated animations - only use transform and opacity */
        .animated,
        .tool-card,
        .btn-gradient,
        .cta-primary,
        .slider-btn {
            will-change: transform, opacity;
            transform: translateZ(0);
            backface-visibility: hidden;
        }
        


        
        /* Ad containers - no containment (breaks AdSense iframes) */
        .ad-container,
        .ad-space,
        .sidebar-ad {
            min-height: 0;
        }
        
        .ad-container[data-size="728x90"] {
            min-height: 0;
        }
        
        .ad-container[data-size="300x250"] {
            min-height: 0;
        }
        
        .ad-container[data-size="320x50"] {
            min-height: 0;
        }

        /* Reduce paint area for performance */
        .hero-slider,
        .modal-content {
            contain: layout style paint;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        button {
            border: none;
            cursor: pointer;
            font-family: inherit;
        }

        /* ========== TOOL CARD V2 - UNIFIED COMPONENT ========== */
        .tool-card-v2 {
            position: relative;
            background: var(--bg-secondary);
            border-radius: 16px;
            border: 1px solid var(--border-color);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 420px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            content-visibility: auto;
            contain-intrinsic-size: 420px;
        }
        
        .tool-card-v2:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-card-hover);
        }
        
        /* Badge Line */
        .tool-card-v2 .card-badges {
            position: absolute;
            top: 12px;
            left: 12px;
            right: 12px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            z-index: 5;
        }
        
        .tool-card-v2 .badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }
        
        .tool-card-v2 .badge-featured {
            background: var(--badge-featured);
            color: #000;
        }
        
        .tool-card-v2 .badge-new {
            background: var(--badge-new);
            color: #fff;
        }
        
        .tool-card-v2 .badge-trending {
            background: var(--badge-trending);
            color: #fff;
        }
        
        .tool-card-v2 .badge-pricing {
            background: rgba(0,0,0,0.6);
            color: #fff;
            backdrop-filter: blur(4px);
        }
        
        .tool-card-v2 .badge-free { background: var(--badge-free); color: #000; }
        .tool-card-v2 .badge-paid { background: var(--badge-paid); color: #fff; }
        
        /* Card Image */
        .tool-card-v2 .card-image {
            position: relative;
            width: 100%;
            height: 160px;
            overflow: hidden;
            background: var(--bg-tertiary);
        }
        
        .tool-card-v2 .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .tool-card-v2:hover .card-image img {
            transform: scale(1.05);
        }
        
        .tool-card-v2 .card-image-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: var(--text-muted);
        }
        
        .tool-card-v2 .quick-view-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.85) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            opacity: 0;
            transition: opacity 0.3s ease;
            padding: 16px;
        }
        
        .tool-card-v2:hover .quick-view-overlay {
            opacity: 1;
        }
        
        .tool-card-v2 .quick-view-btn,
        .tool-card-v2 .compare-btn {
            background: rgba(255,255,255,0.95);
            color: #111;
            padding: 10px 18px;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 6px;
            border: none;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }
        
        .tool-card-v2 .quick-view-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        }
        
        .tool-card-v2 .compare-btn {
            background: linear-gradient(135deg, #7C3AED, #6D28D9);
            color: white;
        }
        
        .tool-card-v2 .compare-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
        }
        
        .tool-card-v2 .compare-btn i {
            font-size: 14px;
        }
        
        /* When tool is selected for comparison */
        .tool-card-v2.is-comparing .compare-btn {
            background: linear-gradient(135deg, #14B8A6, #0D9488);
        }
        
        .tool-card-v2.is-comparing .compare-btn i.fa-plus {
            display: none;
        }
        
        .tool-card-v2.is-comparing .compare-btn i.fa-check {
            display: inline-block;
        }
        
        .tool-card-v2 .compare-btn i.fa-check {
            display: none;
        }
        
        /* Card Content */
        .tool-card-v2 .card-content {
            padding: 16px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }
        
        .tool-card-v2 .card-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 6px;
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .tool-card-v2 .verified-badge {
            flex-shrink: 0;
            display: inline-flex;
        }
        
        .tool-card-v2 .card-category {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin: 0 0 8px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .tool-card-v2 .category-emoji {
            font-size: 1rem;
        }
        
        .tool-card-v2 .card-description {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin: 0 0 12px;
            line-height: 1.4;
            flex: 1;
        }
        
        .tool-card-v2 .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 12px;
        }
        
        .tool-card-v2 .card-tags .tag {
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 500;
        }
        
        /* Card Footer */
        .tool-card-v2 .card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 12px;
            border-top: 1px solid var(--border-color);
        }
        
        .tool-card-v2 .card-rating {
            display: flex;
            align-items: center;
            gap: 4px;
            color: #FBBF24;
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .tool-card-v2 .card-rating.muted {
            color: var(--text-muted);
        }
        
        .tool-card-v2 .card-actions {
            display: flex;
            gap: 8px;
        }
        
        .tool-card-v2 .btn-details,
        .tool-card-v2 .btn-try {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            transition: transform 0.2s ease, opacity 0.2s ease;
            text-decoration: none;
        }
        
        .tool-card-v2 .btn-details {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }
        
        .tool-card-v2 .btn-details:hover {
            background: var(--color-primary);
            color: #fff;
            border-color: var(--color-primary);
        }
        
        .tool-card-v2 .btn-try {
            background: var(--color-secondary);
            color: #fff;
        }
        
        .tool-card-v2 .btn-try:hover {
            background: var(--color-secondary-hover);
        }
        
        /* ========== DARK MODE ENHANCEMENTS ========== */
        html.dark .tool-card-v2 {
            background: var(--bg-card, #161b26);
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-card);
        }
        
        html.dark .tool-card-v2:hover {
            background: var(--bg-card-hover, #1c2230);
            border-color: var(--border-accent);
            box-shadow: var(--shadow-card-hover), var(--shadow-glow);
        }
        
        /* Dark mode badges - unified with border style */
        html.dark .tool-card-v2 .badge-featured {
            background: transparent;
            border: 1.5px solid var(--color-primary);
            color: var(--color-primary);
        }
        
        html.dark .tool-card-v2 .badge-new {
            background: transparent;
            border: 1.5px solid var(--color-secondary);
            color: var(--color-secondary);
        }
        
        html.dark .tool-card-v2 .badge-trending {
            background: transparent;
            border: 1.5px solid var(--color-primary);
            color: var(--color-primary);
        }
        
        html.dark .tool-card-v2 .badge-pricing {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.15);
        }
        
        /* Dark mode text hierarchy */
        html.dark .tool-card-v2 .card-title {
            color: var(--text-primary);
        }
        
        html.dark .tool-card-v2 .card-description {
            color: var(--text-description, #A8B3C4);
        }
        
        html.dark .tool-card-v2 .card-category {
            color: var(--text-secondary);
        }

        /* ========== GLOBAL MOBILE OPTIMIZATIONS ========== */
        @media (max-width: 768px) {
            /* 1. Improved Container Spacing */
            .main-container {
                padding: 1rem 1rem !important;
                gap: 1.5rem !important;
                width: 100% !important;
                max-width: 100% !important;
            }

            /* 2. Typography & Readability */
            body {
                font-size: 15px; /* Slightly larger text for mobile readability */
                line-height: 1.6;
            }
            
            h1 { font-size: 1.8rem !important; }
            h2 { font-size: 1.5rem !important; }
            h3 { font-size: 1.25rem !important; }
            
            /* 3. Tool Cards Mobile - Compact & Clean */
            .tool-card-v2 {
                min-height: auto;
                height: auto;
                border-radius: 12px;
            }
            
            .tool-card-v2 .card-image {
                height: 140px; /* Slightly smaller image */
            }
            
            .tool-card-v2 .card-content {
                padding: 12px;
            }
            
            .tool-card-v2 .card-title {
                font-size: 1rem;
                margin-bottom: 4px;
            }
            
            .tool-card-v2 .card-description {
                font-size: 0.85rem;
                line-height: 1.4;
                display: -webkit-box;
                -webkit-line-clamp: 2; /* Limit text lines */
                -webkit-box-orient: vertical;
                overflow: hidden;
                margin-bottom: 10px;
            }
            
            /* 4. Badges Mobile Sizing */
            .tool-card-v2 .badge {
                padding: 3px 8px;
                font-size: 0.65rem;
            }
            
            /* 5. Icons & Buttons */
            .btn-details, .btn-try {
                padding: 6px 12px !important;
                font-size: 0.8rem !important;
            }
            
            /* 6. Footer Stacking */
            footer .container {
                padding-left: 1rem;
                padding-right: 1rem;
            }
            
            /* 7. Input Fields - Better Touch Targets */
            input, select, button {
                min-height: 44px; /* Touch-friendly size */
            }
            
            /* 8. Fix Search Border on Mobile */
            .hero-search {
                border-width: 1px !important;
            }
            
            html.dark .hero-search:focus-within {
                box-shadow: none !important; /* Reduce glow on mobile for cleaner look */
                border-color: var(--color-primary) !important;
            }
        }
        
        /* Dark mode search box enhancement */
        html.dark input[type="search"],
        html.dark input[type="text"],
        html.dark .search-box,
        html.dark .search-input {
            background: var(--bg-card, #161b26);
            border: 1.5px solid var(--border-color);
            color: var(--text-primary);
        }
        
        html.dark input[type="search"]:focus,
        html.dark input[type="text"]:focus,
        html.dark .search-box:focus,
        html.dark .search-input:focus {
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
        }
        
        html.dark input::placeholder {
            color: var(--text-muted);
        }
        
        /* Dark mode theme toggle button */
        html.dark .theme-toggle,
        html.dark #theme-toggle {
            border: 1.5px solid var(--border-color);
            background: var(--bg-card);
        }
        
        html.dark .theme-toggle:hover,
        html.dark #theme-toggle:hover {
            border-color: var(--color-primary);
            background: rgba(167, 139, 250, 0.1);
        }
        
        /* Dark mode sidebar panels */
        html.dark .sidebar-panel,
        html.dark .tool-of-day,
        html.dark .trending-sidebar {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
        }
        
        /* Dark mode footer */
        html.dark footer,
        html.dark .site-footer {
            border-top: 1px solid var(--border-color);
            background: var(--bg-secondary);
        }
        
        html.dark footer h4,
        html.dark footer h5,
        html.dark .footer-title {
            color: var(--text-primary);
            font-weight: 600;
        }
        
        html.dark footer a {
            color: var(--text-secondary);
        }
        
        html.dark footer a:hover {
            color: var(--color-primary);
        }
        
        /* ========== TOOLS GRID LAYOUT ========== */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            padding: 0 0.5rem;
        }
        
        .tools-grid > * {
            min-width: 0; /* Prevent overflow */
        }
        
        @media (max-width: 1200px) {
            .tools-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1.25rem;
            }
        }
        
        @media (max-width: 992px) {
            .tools-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
        }
        
        @media (max-width: 576px) {
            .tools-grid {
                grid-template-columns: 1fr;
                gap: 1.25rem;
                padding: 0 1rem;
            }
            
            .tool-card-v2 {
                height: auto !important;
                min-height: auto !important;
                max-height: none;
                margin-bottom: 1.25rem !important;
                border-radius: 12px;
            }
            
            .tool-card-v2:last-child {
                margin-bottom: 0;
            }
            
            /* Card content - compact on mobile */
            .tool-card-v2 .card-content {
                padding: 12px;
                flex: none;
            }
            
            /* Title - prevent overflow */
            .tool-card-v2 .card-title {
                font-size: 0.95rem;
                white-space: normal;
                overflow: visible;
                text-overflow: unset;
            }
            
            /* Category smaller */
            .tool-card-v2 .card-category {
                font-size: 0.75rem;
                margin-bottom: 6px;
            }
            
            /* Description - limit lines */
            .tool-card-v2 .card-description {
                font-size: 0.8rem;
                margin-bottom: 8px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            
            /* Tags - compact */
            .tool-card-v2 .card-tags {
                gap: 4px;
                margin-bottom: 8px;
            }
            
            .tool-card-v2 .card-tags .tag {
                padding: 2px 6px;
                font-size: 0.6rem;
            }
            
            /* Footer - compact spacing */
            .tool-card-v2 .card-footer {
                padding: 10px 12px;
                margin-top: 0;
            }
            
            /* Buttons - smaller on mobile */
            .tool-card-v2 .card-actions {
                gap: 6px;
            }
            
            .tool-card-v2 .btn-details,
            .tool-card-v2 .btn-try {
                padding: 6px 10px;
                font-size: 0.7rem;
            }
            
            /* Image - fixed height */
            .tool-card-v2 .card-image {
                height: 160px;
                flex-shrink: 0;
            }
            
            /* Badges - smaller */
            .tool-card-v2 .card-badges {
                top: 8px;
                left: 8px;
                right: 8px;
                gap: 4px;
            }
            
            .tool-card-v2 .badge {
                padding: 2px 6px;
                font-size: 0.6rem;
            }
        }
        
        /* Extra small devices */
        @media (max-width: 400px) {
            .tools-grid {
                padding: 0 0.75rem;
                gap: 1rem;
            }
            
            .tool-card-v2 .card-image {
                height: 140px;
            }
            
            .tool-card-v2 .card-title {
                font-size: 0.85rem;
            }
            
            .tool-card-v2 .card-description {
                font-size: 0.75rem;
                -webkit-line-clamp: 2;
            }
        }
        
        /* ========== MOBILE OPTIMIZATIONS ========== */
        @media (min-width: 577px) {
            /* Hide the separate Quick View button on desktop (we use overlay) */
            .btn-quick-view {
                display: none !important;
            }
        }

        @media (max-width: 576px) {
            html {
                scroll-behavior: smooth;
            }
            
            /* Hide Quick View overlay on mobile */
            .tool-card-v2 .quick-view-overlay {
                display: none !important;
            }

            /* Hide Details button on mobile to save space */
            .tool-card-v2 .btn-details {
                display: none !important;
            }

            /* Show Quick View button on mobile */
            .tool-card-v2 .btn-quick-view {
                display: inline-flex !important;
                padding: 6px 10px !important;
                font-size: 0.7rem !important;
                height: 28px;
                border: 1px solid rgba(0,0,0,0.08);
            }
            
             /* Larger bookmark button for touch */
            .tool-card-v2 .bookmark-btn {
                width: 32px !important;
                height: 32px !important;
                font-size: 14px !important;
                top: 6px !important;
                right: 6px !important;
                background: rgba(0,0,0,0.4) !important;
                backdrop-filter: blur(4px);
            }
            
            /* Fixed height horizontal card - apply to both v2 and standard */
            .tool-card-v2, .tool-card {
                display: flex;
                flex-direction: row;
                height: 125px !important; /* Fixed sturdy height */
                margin-bottom: 12px !important;
                overflow: hidden;
                box-shadow: 0 2px 8px rgba(0,0,0,0.05);
                transform: translateZ(0); /* Hardware acceleration */
                will-change: transform;
                border-radius: 12px;
                background: white;
                position: relative;
            }
            
            html.dark .tool-card-v2, html.dark .tool-card {
                background: #1e293b;
            }
            
            /* Image - fixed square */
            .tool-card-v2 .card-image, .tool-card .card-image, .tool-card .tool-image-wrapper {
                width: 110px;
                height: 125px !important;
                flex-shrink: 0;
            }
            
            .tool-card-v2 .card-image img, .tool-card .card-image img, .tool-card .tool-image-wrapper img {
                height: 100%;
                object-fit: cover;
            }
            
            /* Force badges to absolute to not break flex row, and compact width */
            .card-badges, .tool-badges {
                position: absolute;
                top: 6px;
                left: 6px;
                z-index: 20;
                display: flex;
                flex-direction: column;
                gap: 4px;
                pointer-events: none;
                align-items: flex-start !important; /* Prevent stretching */
                width: auto !important;
                max-width: 90px;
            }

            /* Content area - flex column - INCLUDE .tool-content */
            .tool-card-v2 .card-content, .tool-card .card-content, .tool-card .tool-content {
                flex: 1;
                padding: 10px 12px 10px 16px !important; /* Extra left padding */
                display: flex;
                flex-direction: column;
                justify-content: space-between; /* Push footer to bottom */
                min-width: 0; /* Fix flex text overflow */
                z-index: 5;
                position: relative;
                background: inherit; /* Ensure background matches card */
            }
            
            /* Force content visibility and color - STRICT override */
            .tool-card-v2 .card-content *, .tool-card .card-content *, .tool-card .tool-content * {
                visibility: visible !important;
                opacity: 1 !important;
                z-index: 10;
            }
            
            /* Force Title Styles */
            .tool-card-v2 .card-title, .tool-card .card-title, .tool-card .tool-name, .tool-name {
                display: block !important; 
                font-size: 0.95rem !important;
                font-weight: 700 !important;
                color: #334155 !important; /* Dark Slate Gray */
                margin-bottom: 4px !important;
                line-height: 1.3 !important;
                text-align: left !important;
            }
            
            html.dark .tool-card-v2 .card-title, html.dark .tool-card .card-title, html.dark .tool-name {
                color: #f1f5f9 !important; /* Light text in dark mode */
            }
            
            /* Force Description Styles */
            .tool-card-v2 .card-description, .tool-card .card-description, .tool-description {
                display: -webkit-box !important;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                font-size: 0.75rem !important;
                color: #64748b !important; /* Slate 500 */
                margin: 4px 0 !important;
                line-height: 1.4 !important;
                opacity: 1 !important;
                white-space: normal !important;
                visibility: visible !important;
            }
            
            html.dark .tool-card-v2 .card-description, html.dark .tool-card .card-description, html.dark .tool-description {
                color: #94a3b8 !important; /* Slate 400 */
            }

             /* Rating Visibility */
             .tool-card-v2 .card-rating, .tool-card .card-rating, .tool-card .tool-content .flex {
                 display: flex !important;
                 opacity: 1 !important;
             }
            
            /* Hide tags to keep it clean */
            .tool-card-v2 .card-tags, .tool-card .card-tags {
                display: none;
            }
            
            /* Title - Consistent size & Visible */
            .tool-card-v2 .card-title, .tool-card .card-title, .tool-name {
                font-size: 0.95rem !important;
                line-height: 1.3;
                margin-bottom: 4px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                font-weight: 700;
                display: block !important; /* Ensure visible */
                color: var(--text-primary);
            }
            
            /* Category - Consistent small size */
            .tool-card-v2 .card-category, .tool-card .card-category {
                font-size: 0.7rem !important;
                margin-bottom: 0;
                opacity: 0.8;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            /* Rating - Positioned consistently */
            .tool-card-v2 .card-rating, .tool-card .card-rating {
                font-size: 0.7rem !important;
                margin-top: 4px;
                display: flex !important; /* Ensure visible */
            }
            
            /* Footer - Compact and aligned */
            .tool-card-v2 .card-footer, .tool-card .tool-footer {
                padding: 0 !important;
                margin-top: auto; /* Push to bottom */
                border-top: none !important;
                background: none !important;
                justify-content: flex-start !important; /* Align left */
            }
            
            /* Buttons - Fixed stability */
            .tool-card-v2 .card-actions, .tool-card .tool-footer > div {
                width: 100%;
                justify-content: flex-start;
                gap: 8px;
            }
            
            .tool-card-v2 .btn-try, .tool-card .btn-try {
                padding: 6px 10px;
                font-size: 0.7rem;
                height: 28px; /* Fixed height for buttons */
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }
            
            /* Smaller badges */
            .tool-card-v2 .badge, .tool-card .badge {
                padding: 2px 6px;
                font-size: 0.6rem;
                top: 6px;
                left: 6px;
            }
            
            /* Smooth horizontal scrolling areas */
            .category-chips, .sub-category-bar, .collections-grid {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                flex-wrap: nowrap !important;
                padding-bottom: 8px;
                scrollbar-width: none;
                overscroll-behavior-x: contain;
                scroll-snap-type: x proximity;
            }
            
            /* Section headers compact - including All Tools header */
            .section-header, .section-title-row, .results-header {
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 8px;
            }
            
            .card-title, .section-title {
                 transform: translateZ(0); /* Text rendering fix */
            }
            
            /* Section Title - Smaller on mobile */
            .section-title {
                font-size: 1.1rem !important;
                margin-bottom: 4px;
            }
            
            .section-header {
                margin-bottom: 12px !important;
            }
            
            /* Smaller 'Browse All' button on mobile - slightly larger for touch */
            .view-all-btn, .section-header a {
                font-size: 0.8rem !important;
                padding: 6px 14px !important;
                height: 28px;
                display: inline-flex;
                align-items: center;
                gap: 6px;
                border-radius: 14px;
                background: rgba(0,0,0,0.05); /* Subtle background */
            }
            
            .view-all-btn i, .section-header a i {
                font-size: 0.7rem !important;
            }
            
            .collection-card {
                scroll-snap-align: start;
                width: 140px;
                flex-shrink: 0;
            }
        }
        
        /* ========== SKELETON LOADING ========== */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
            border-radius: 4px;
        }

        html.dark .skeleton {
            background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
        }

        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .tool-card-skeleton {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(0,0,0,0.08);
            height: 100%;
        }

        html.dark .tool-card-skeleton {
            background: #1e293b;
            border-color: rgba(255,255,255,0.05);
        }

        .skeleton-image {
            height: 160px;
            width: 100%;
        }

        .skeleton-content {
            padding: 16px;
        }

        .skeleton-title {
            height: 20px;
            width: 70%;
            margin-bottom: 12px;
        }

        .skeleton-text {
            height: 14px;
            width: 100%;
            margin-bottom: 8px;
        }

        .skeleton-tags {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }

        .skeleton-tag {
            height: 24px;
            width: 60px;
            border-radius: 12px;
        }

        @media (max-width: 576px) {
            .tool-card-skeleton {
                display: flex;
                height: 100px;
            }
            .skeleton-image {
                width: 100px;
                height: 100%;
                flex-shrink: 0;
            }
            .skeleton-content {
                flex: 1;
                padding: 10px;
            }
            .skeleton-text, .skeleton-tags {
                display: none;
            }
        }

        /* =========================================
           MOBILE CARD OVERHAUL - PRO REFINED
           ========================================= */
        @media (max-width: 576px) {
            
            /* 0. Max Width Handling */
            .tools-grid {
                padding: 0 !important; /* Full width */
                gap: 12px !important;
            }

            /* 1. Reset Container */
            .tool-card-v2, .tool-card {
                display: flex !important;
                flex-direction: row !important;
                height: 140px !important; 
                min-height: 140px !important;
                max-height: 140px !important;
                background: #fff !important;
                border: 1px solid rgba(0,0,0,0.04) !important;
                border-radius: 12px !important;
                overflow: hidden !important;
                position: relative !important;
                margin-bottom: 12px !important;
                box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
                opacity: 1 !important;
                transform: none !important;
                animation: none !important;
            }

            html.dark .tool-card-v2, html.dark .tool-card {
                background: #1e293b !important;
                border: 1px solid #334155 !important;
            }

            /* 2. Image Section (Left) */
            .tool-card-v2 .card-image, .tool-card .card-image, .tool-card .tool-image-wrapper {
                width: 110px !important; /* Reduced slightly to give text more room */
                height: 100% !important;
                flex-shrink: 0 !important;
                position: relative !important;
                z-index: 1 !important;
            }

            .tool-card-v2 .card-image img, .tool-card .card-image img, .tool-card .tool-image-wrapper img {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
            }

            /* Badges - Transparent Overlay */
            .card-badges, .tool-badges {
                position: absolute !important;
                top: 4px !important;
                left: 4px !important;
                display: flex !important;
                flex-direction: column !important;
                gap: 4px !important;
                z-index: 20 !important;
                align-items: flex-start !important;
                width: auto !important;
                max-width: 100px !important;
            }
            
            .badge, .tool-badges span {
                font-size: 0.55rem !important;
                padding: 2px 6px !important;
                border-radius: 4px !important;
                backdrop-filter: blur(2px); /* Blur effect */
                opacity: 0.9 !important; /* Slight transparency */
                box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
                /* Background colors will be inherited but opacity applies */
            }

            /* 3. Content Section (Right) */
            .tool-card-v2 .card-content, .tool-card .card-content, .tool-card .tool-content {
                flex: 1 !important;
                padding: 10px 10px 10px 12px !important;
                display: flex !important;
                flex-direction: column !important;
                justify-content: space-between !important;
                overflow: hidden !important;
                z-index: 5 !important;
                background: transparent !important;
            }
            
            /* Strict Visibility */
            .tool-card-v2 .card-content *, .tool-card .card-content *, .tool-card .tool-content * {
                visibility: visible !important;
                opacity: 1 !important;
                z-index: 10 !important;
            }

            /* 4. Title & Verified Badge - STRICT ALIGNMENT */
            .tool-card-v2 .card-title, .tool-card .card-title, .tool-name {
                display: flex !important; /* Allow side-by-side */
                align-items: center !important;
                gap: 2px !important; /* Tight Gap */
                font-size: 0.95rem !important;
                font-weight: 700 !important;
                color: #0f172a !important;
                margin-bottom: 2px !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                text-align: left !important;
                line-height: 1.3 !important;
            }

            html.dark .tool-card-v2 .card-title, html.dark .tool-name {
                color: #f1f5f9 !important;
            }
            
            /* Verified Badge - TIGHT FIT */
            .verified-badge {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                margin-left: 2px !important;
                flex-shrink: 0 !important;
                height: 14px !important;
                width: 14px !important;
            }
            
            .verified-badge svg {
                width: 100% !important;
                height: 100% !important;
                display: block !important;
            }

            /* Rating - Compact */
            .tool-card-v2 .card-rating, .tool-card .card-rating, 
            .tool-card .tool-content > div > div {
                 display: flex !important;
                 align-items: center !important;
                 font-size: 0.7rem !important;
                 color: #f59e0b !important;
                 margin-bottom: 6px !important;
            }

            /* 5. Description - Clean fit */
            .tool-card-v2 .card-description, .tool-card .card-description, .tool-description {
                display: -webkit-box !important;
                -webkit-line-clamp: 2 !important;
                /* Or set to 'none' if user wants strictly categories only, but user said 'Middle leave only main category' which implies cleaning up metadata area, description is usually separate. I'll keep description for 'filled' look but clean it up */
                -webkit-box-orient: vertical !important;
                overflow: hidden !important;
                font-size: 0.7rem !important;
                color: #64748b !important;
                margin-top: 0 !important;
                margin-bottom: auto !important; /* Push toward top */
                white-space: normal !important;
                text-align: left !important;
                line-height: 1.3 !important;
            }

            html.dark .card-description, html.dark .tool-description {
                color: #94a3b8 !important;
            }
            
            /* Show ONLY Main Category (Assuming first span in categories or similar) */
            /* This is tricky with pure CSS if structure varies. I'll make sure extra metadata is hidden */
            .card-additional-info, .extra-meta {
                display: none !important;
            }

            /* 6. Footer (Buttons) - REDESIGNED PER REFERENCE */
            .tool-card-v2 .card-footer, .tool-card .tool-footer {
                margin-top: 8px !important; 
                padding: 0 !important;
                background: transparent !important;
                border: none !important;
                display: flex !important;
                width: 100% !important;
                min-height: 32px !important;
            }

            .tool-card-v2 .card-actions, .tool-card .tool-footer > div {
                display: flex !important;
                width: 100% !important;
                gap: 8px !important;
                align-items: center !important;
                justify-content: space-between !important;
            }

            /* Generic button base */
            .btn-quick-view, .btn-try {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                height: 34px !important; /* Slightly taller like reference */
                border-radius: 8px !important;
                cursor: pointer !important;
                font-family: inherit !important;
                transition: transform 0.1s !important;
                box-shadow: none !important;
            }
            
            .btn-quick-view:active, .btn-try:active {
                transform: scale(0.96) !important;
            }

            /* Quick View - Styled like 'Details' (Gray) */
            .btn-quick-view {
                background: #f3f4f6 !important; /* Light Gray */
                color: #4b5563 !important; /* Gray 600 */
                border: 1px solid #e5e7eb !important;
                font-size: 0.68rem !important; /* Slightly smaller for fit */
                font-weight: 600 !important;
                padding: 0 4px !important; /* Tight padding */
                flex: 1 !important; /* Take remaining space */
                max-width: none !important;
                white-space: nowrap !important; /* Force Single Line */
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }
            
            .btn-quick-view i {
                margin-right: 4px !important;
                font-size: 0.8rem !important;
            }
            
            html.dark .btn-quick-view {
                background: #334155 !important;
                color: #e2e8f0 !important;
                border: 1px solid #475569 !important;
            }

            /* Try Now - Styled like 'Try Now' (Purple) but Icon Only */
            .btn-try {
                background: #8b5cf6 !important; /* Violet 500 */
                background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
                color: #fff !important;
                font-size: 0 !important; /* Hide Text */
                padding: 0 !important;
                width: 34px !important; /* Square match height */
                flex: 0 0 34px !important; /* Fixed width */
                border: none !important;
            }
            
            .btn-try i, .btn-try svg {
                font-size: 14px !important; /* Visible Icon */
                margin: 0 !important;
                display: block !important;
            }
            
            /* Hide extras */
            .card-tags, .btn-details, .tool-hover-overlay { display: none !important; }
        }

        /* ========== QUICK VIEW MODAL V2 ========== */
        
        /* ============================================================
           VERTICAL STACK OVERRIDE FOR SPECIFIC SECTIONS (Mobile)
           Removes section styling and stacks cards vertically (Full Width)
           Matches 'All Tools' appearance as requested.
           ============================================================ */
        @media (max-width: 576px) {
            /* 1. Remove Section Containers Styling */
            .featured-section,
            .trending-section,
            .new-section,
            .toprated-section {
                background: transparent !important;
                box-shadow: none !important;
                border: none !important;
                padding: 0 4px !important; /* Minimal padding */
                margin-bottom: 20px !important;
            }

            /* 2. Force Vertical Grid */
            .featured-section .tools-grid,
            .trending-section .tools-grid,
            .new-section .tools-grid,
            .toprated-section .tools-grid {
                display: grid !important;
                grid-template-columns: 1fr !important; /* Single Column */
                gap: 16px !important;
                overflow: visible !important;
                padding: 0 !important;
                margin: 0 !important;
            }
            
            /* 3. Full Width Cards */
            .featured-section .tools-grid .tool-card-v2,
            .trending-section .tools-grid .tool-card-v2,
            .new-section .tools-grid .tool-card-v2,
            .toprated-section .tools-grid .tool-card-v2,
            .featured-section .tools-grid .tool-card,
            .trending-section .tools-grid .tool-card,
            .new-section .tools-grid .tool-card,
            .toprated-section .tools-grid .tool-card {
                width: 100% !important;
                min-width: 0 !important;
                max-width: none !important;
                margin-bottom: 0 !important;
                flex: none !important;
            }
        }

        /* ========== QUICK VIEW MODAL V2 ========== */
        .quick-view-modal {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            z-index: 99999 !important;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        
        .quick-view-modal.active {
            display: flex !important;
        }
        
        .modal-backdrop {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            background: rgba(15, 23, 42, 0.75) !important;
            backdrop-filter: blur(8px) !important;
            -webkit-backdrop-filter: blur(8px) !important;
            z-index: 99998 !important;
        }
        
        .qv-card {
            position: relative;
            background: var(--bg-secondary);
            border-radius: 20px;
            width: 90%;
            max-width: 480px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 24px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
            animation: qvSlideUp 0.3s ease;
        }
        
        @keyframes qvSlideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .qv-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 40px; /* Larger touch target */
            height: 40px;
            border-radius: 50%;
            background: #ffffff !important;
            border: 1px solid #e5e7eb !important;
            font-size: 1.25rem;
            color: #374151 !important; /* Clearly dark icon */
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 50; /* Make sure it's above everything */
            box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        }

        .qv-close:hover {
            background: #ef4444 !important; /* Standard Red for Close */
            color: #ffffff !important;
            border-color: #ef4444 !important;
            transform: rotate(90deg); /* Playful interaction */
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3) !important;
        }
        
        .qv-header {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;
        }
        
        .qv-logo {
            width: 64px;
            height: 64px;
            border-radius: 12px;
            overflow: hidden;
            flex-shrink: 0;
            background: var(--bg-tertiary);
        }
        
        .qv-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .qv-logo-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--text-muted);
        }
        
        .qv-info {
            flex: 1;
            min-width: 0;
        }
        
        .qv-title {
            font-size: 1.25rem;
            font-weight: 800;
            color: #111827; /* Darker Black */
            margin: 0 0 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        /* Badge Colors */
        .qv-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 8px;
        }
        
        .qv-badge {
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
        }
        
        .qv-badge-featured {
            background: linear-gradient(135deg, #FCD34D, #F59E0B);
            color: #78350F;
        }
        
        .qv-badge-new {
            background: linear-gradient(135deg, #A78BFA, #7C3AED);
            color: #fff;
        }
        
        .qv-badge-free {
            background: linear-gradient(135deg, #34D399, #10B981);
            color: #fff;
        }
        
        .qv-badge-freemium {
            background: linear-gradient(135deg, #60A5FA, #3B82F6);
            color: #fff;
        }
        
        .qv-badge-paid {
            background: linear-gradient(135deg, #F87171, #EF4444);
            color: #fff;
        }
        
        .qv-badge-verified {
            background: var(--bg-tertiary);
            color: var(--color-primary);
            border: 1px solid var(--border-color);
        }
        
        .qv-category {
            font-size: 0.85rem;
            color: #4b5563; /* Darker Grey */
            margin: 0;
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 600;
        }
        
        .qv-category i {
            color: var(--color-primary);
        }
        
        .qv-description {
            margin-bottom: 16px;
        }
        
        .qv-description p {
            font-size: 0.95rem; /* Larger font */
            color: #374151; /* Darker Text */
            line-height: 1.6;
            margin: 0;
            display: -webkit-box;
            -webkit-line-clamp: 3; /* Allow 3 lines */
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-weight: 500;
        }
        
        .qv-rating-section {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .qv-stars {
            display: flex;
            gap: 2px;
            color: #FBBF24;
            font-size: 0.9rem;
        }
        
        .qv-stars .far {
            color: #9ca3af;
        }
        
        .qv-rating-number {
            font-weight: 700;
            color: #111827;
            font-size: 0.95rem;
        }
        
        .qv-reviews {
            color: #6b7280;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        .qv-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 16px;
        }
        
        .qv-tag {
            background: #f3f4f6;
            color: #4b5563;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .qv-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 16px;
            border-top: 1px solid #e5e7eb;
        }
        
        .qv-views {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #6b7280;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        .qv-details-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 24px;
            background: linear-gradient(135deg, #6366f1, #8b5cf6) !important; /* Premium Purple Gradient */
            color: #ffffff !important; /* Force White Text */
            border-radius: 50px;
            font-weight: 700;
            font-size: 0.9rem;
            text-decoration: none;
            transition: transform 0.2s, opacity 0.2s;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .qv-details-btn:hover {
            background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
            color: #fff !important;
        }

        /* ========== DARK MODE QUICK VIEW FIXES ========== */
        html.dark .qv-card {
            background: #1f2937 !important; /* Dark grey background */
            border: 1px solid #374151;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
        }
        
        html.dark .qv-title {
            color: #f3f4f6 !important; /* Light text */
        }
        
        html.dark .qv-category,
        html.dark .qv-description p,
        html.dark .qv-views,
        html.dark .qv-reviews {
            color: #d1d5db !important; /* Light grey text */
        }
        
        html.dark .qv-rating-number {
            color: #f3f4f6 !important;
        }
        
        html.dark .qv-tag {
            background: #374151;
            color: #e5e7eb;
        }
        
        html.dark .qv-footer {
            border-top-color: #374151;
        }
        
        html.dark .qv-close {
            background: #374151 !important; /* Lighter grey than modal bg */
            color: #e5e7eb !important;
            border: 1px solid #4b5563 !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
        }
        
        html.dark .qv-close:hover {
            background: #ef4444 !important;
            color: #ffffff !important;
            border-color: #ef4444 !important;
        }
        
        /* ========== GRADIENT BUTTONS WITH GLINT EFFECT ========== */
        .btn-gradient {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            padding: 0.6rem 1.4rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.9rem;
            color: white;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            overflow: hidden;
            transition: transform 0.2s ease, opacity 0.2s ease;
            text-decoration: none;
            border: none;
            cursor: pointer;
        }
        .btn-gradient::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.5s ease;
        }
        .btn-gradient:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        }
        .btn-gradient:hover::before {
            left: 100%;
        }
        
        /* Gradient Variations */
        .btn-gradient-green {
            background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
            box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
        }
        .btn-gradient-green:hover {
            box-shadow: 0 6px 20px rgba(17, 153, 142, 0.5);
        }
        
        .btn-gradient-orange {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
        }
        .btn-gradient-orange:hover {
            box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
        }
        
        .btn-gradient-blue {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
        }
        .btn-gradient-blue:hover {
            box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
        }
        
        .btn-gradient-rainbow {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 25%, #ffd200 50%, #22c55e 75%, #667eea 100%);
            background-size: 200% 200%;
            animation: gradientShift 3s ease infinite;
        }
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        .btn-gradient-sm {
            padding: 0.4rem 1rem;
            font-size: 0.8rem;
        }
        
        .btn-gradient-lg {
            padding: 0.8rem 2rem;
            font-size: 1rem;
        }

        /* Hero Slider - Light Mode */
        .hero-slider {
            position: relative;
            height: 380px;
            overflow: hidden;
            background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%); /* Light gradient */
            color: #111827;
            /* Reduce paint area for mobile */
            contain: layout style paint;
        }

        .hero-slide {
            position: absolute;
            inset: 0;
            opacity: 0;
            transform: translateX(10%);
            transition: opacity 0.8s ease, transform 0.8s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-slide.active {
            opacity: 1;
            transform: translateX(0);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            max-width: 640px;
            padding: 2rem 1.5rem;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.25rem 0.75rem;
            border-radius: 999px;
            background: rgba(14, 165, 233, 0.1);
            color: #0284c7;
            font-size: 0.85rem;
            margin-bottom: 1rem;
            border: 1px solid rgba(14, 165, 233, 0.2);
        }

        .hero-content h1 {
            font-size: 2.4rem;
            font-weight: 800;
            letter-spacing: -0.04em;
            margin-bottom: 0.75rem;
            color: #111827;
        }

        .hero-content p {
            font-size: 1rem;
            color: #4b5563; /* Darker gray for readability */
            margin-bottom: 1.5rem;
        }

        .cta-primary {
            position: relative;
            padding: 0.8rem 1.6rem;
            border-radius: 999px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #ffffff;
            font-weight: 600;
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
            transition: transform 0.2s ease, opacity 0.2s ease;
            overflow: hidden;
            display: inline-block;
        }
        .cta-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.5s ease;
        }
        .cta-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
        }
        .cta-primary:hover::before {
            left: 100%;
        }

        .hero-overlay {
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 55%),
                        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.1), transparent 55%);
            opacity: 0.8;
        }

        .slider-controls {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 1.5rem;
            pointer-events: none;
        }

        .slider-btn {
            pointer-events: auto;
            width: 38px;
            height: 38px;
            border-radius: 999px;
            border: 1px solid #d1d5db;
            background: rgba(255, 255, 255, 0.9);
            color: #374151;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease, opacity 0.2s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .slider-btn:hover {
            background: #ffffff;
            border-color: #3b82f6;
            color: #3b82f6;
            transform: translateY(-1px);
        }

        .slider-dots {
            position: absolute;
            left: 50%;
            bottom: 10px;
            transform: translateX(-50%);
            display: flex;
            gap: 0.4rem;
        }

        .slider-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: #d1d5db;
            transition: width 0.2s ease, background 0.2s ease;
        }

        .slider-dot.active {
            width: 18px;
            background: #2563eb;
        }

        /* Header - Light Mode */
        .main-header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--bg-header);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid #e5e7eb;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .main-header.is-sticky {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            padding: 0.85rem 0;
        }

        .logo-section {
            display: flex;
            flex-direction: column;
        }

        .logo {
            font-size: 1.4rem;
            font-weight: 800;
            letter-spacing: -0.08em;
            color: #111827;
        }

        .logo-dot {
            color: #2563eb;
        }

        .tagline {
            font-size: 0.8rem;
            color: #6b7280;
        }

        .search-container {
            position: relative;
            flex: 1;
            max-width: 440px;
            display: flex;
            align-items: center;
            background: #f9fafb;
            border-radius: 999px;
            border: 1px solid #d1d5db;
            padding: 0.35rem 0.75rem;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .search-container:focus-within {
            border-color: #3b82f6;
            background: #ffffff;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
        }

        .search-icon {
            color: #9ca3af;
            margin-right: 0.5rem;
        }

        #globalSearch {
            flex: 1;
            border: none;
            outline: none;
            background: transparent;
            color: #111827;
            font-size: 0.9rem;
        }

        #globalSearch::placeholder {
            color: #9ca3af;
        }

        .random-tool-btn {
            width: 32px;
            height: 32px;
            border-radius: 999px;
            background: #e5e7eb;
            color: #4b5563;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 0.4rem;
            transition: background 0.15s ease, transform 0.12s ease;
        }

        .random-tool-btn:hover {
            background: #dbeafe;
            color: #2563eb;
            transform: translateY(-1px);
        }

        .search-results {
            position: absolute;
            top: 110%;
            left: 0;
            right: 0;
            background: #ffffff;
            border-radius: 0.9rem;
            border: 1px solid #e5e7eb;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            padding: 0.25rem 0;
            max-height: 360px;
            overflow-y: auto;
            display: none;
            z-index: 30;
        }

        .search-result-item {
            padding: 0.55rem 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            cursor: pointer;
            transition: background 0.15s;
        }

        .search-result-item:hover {
            background: #f3f4f6;
        }

        .search-result-thumb {
            width: 34px;
            height: 34px;
            border-radius: 0.5rem;
            overflow: hidden;
            border: 1px solid #e5e7eb;
        }
        
        .search-result-thumb-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .search-result-meta {
            display: flex;
            flex-direction: column;
        }

        .search-result-meta span:first-child {
            font-size: 0.86rem;
            color: #1f2937;
            font-weight: 500;
        }

        .search-result-meta span:last-child {
            font-size: 0.75rem;
            color: #6b7280;
        }

        .main-nav {
            display: flex;
            align-items: center;
            gap: 0.5rem; /* Reduced for better balance */
        }

        .nav-link {
            font-size: 0.86rem;
            color: var(--text-secondary);
            padding: 0.35rem 0.75rem; /* Increased horizontal padding */
            border-radius: 999px;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .nav-link:hover {
            background: rgba(124, 58, 237, 0.08);
            color: var(--color-primary);
        }

        .deal-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.28rem;
            padding: 0.18rem 0.5rem;
            border-radius: 999px;
            background: #dcfce7;
            color: #15803d;
            font-size: 0.8rem;
            border: 1px solid #bbf7d0;
        }

        .auth-section {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-login {
            background: transparent;
            color: #4b5563;
            padding: 0.35rem 0.6rem;
            border-radius: 999px;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .btn-login:hover {
            color: #111827;
        }

        .btn-signup {
            position: relative;
            background: linear-gradient(135deg, var(--color-primary, #7C3AED) 0%, #5B21B6 100%);
            color: #ffffff;
            padding: 0.4rem 1rem;
            border-radius: 999px;
            font-size: 0.86rem;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
            overflow: hidden;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        .btn-signup::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.5s ease;
        }
        .btn-signup:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        }
        .btn-signup:hover::before {
            left: 100%;
        }

        .btn-submit-tool {
            position: relative;
            background: linear-gradient(135deg, var(--color-secondary, #14B8A6) 0%, #0D9488 100%);
            color: #ffffff;
            padding: 0.4rem 1rem;
            border-radius: 999px;
            font-size: 0.84rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
            overflow: hidden;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        .btn-submit-tool::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.5s ease;
        }
        .btn-submit-tool:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(17, 153, 142, 0.5);
        }
        .btn-submit-tool:hover::before {
            left: 100%;
        }

        /* Theme Toggle Button */
        .theme-toggle {
            position: relative;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        .theme-toggle:hover {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
        }
        .theme-toggle:hover i {
            color: #ffffff;
        }
        .theme-toggle i {
            font-size: 1rem;
            color: var(--text-secondary);
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        /* Show/hide icons based on theme */
        html.light .theme-icon-dark { display: block; }
        html.light .theme-icon-light { display: none; }
        html.dark .theme-icon-dark { display: none; }
        html.dark .theme-icon-light { display: block; }
        
        /* Logo light/dark mode switching */
        html.light .logo-light { display: block; }
        html.light .logo-dark { display: none !important; }
        html.dark .logo-light { display: none !important; }
        html.dark .logo-dark { display: block !important; }
        
        .logo-text {
            font-size: 1.4rem;
            font-weight: 800;
            letter-spacing: -0.08em;
            color: var(--text-primary);
        }

        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            gap: 4px;
            width: 26px;
        }

        .mobile-menu-toggle span {
            height: 2px;
            border-radius: 999px;
            background: var(--text-primary);
            transition: transform 0.3s ease;
        }
        
        .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);
        }
        
        /* Mobile Menu */
        .mobile-menu {
            display: none;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-color);
            padding: 1rem;
        }
        
        .mobile-menu.active {
            display: block;
        }
        
        .mobile-nav {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .mobile-nav-link {
            display: block;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            font-weight: 500;
            color: var(--text-primary);
            border-radius: 0.5rem;
            transition: background 0.2s;
        }
        
        .mobile-nav-link:hover {
            background: var(--bg-tertiary);
            color: var(--accent-primary);
        }
        
        .mobile-auth {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }
        
        .mobile-btn-login,
        .mobile-btn-signup,
        .mobile-btn-submit {
            display: block;
            text-align: center;
            padding: 0.75rem;
            border-radius: 0.5rem;
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        .mobile-btn-login {
            color: var(--text-primary);
            background: var(--bg-tertiary);
        }
        
        .mobile-btn-signup {
            color: white;
            background: #2563eb;
        }
        
        .mobile-btn-submit {
            color: white;
            background: #22c55e;
        }
        
        /* Search trigger is visible in header - opens modal */
        
        /* Hide header search bar on mobile */
        @media (max-width: 768px) {
            .header-content .search-container,
            .header-content .search-trigger {
                display: none !important;
            }
        }
        
        /* ========== DARK MODE OVERRIDES ========== */
        html.dark .main-header {
            background: var(--bg-header);
            border-bottom-color: var(--border-color);
        }
        
        html.dark .logo {
            color: var(--text-primary);
        }
        
        html.dark .tagline {
            color: var(--text-secondary);
        }
        
        html.dark .search-container {
            background: var(--bg-secondary);
            border-color: var(--border-color);
        }
        
        html.dark .search-container:focus-within {
            background: var(--bg-tertiary);
            border-color: var(--accent-primary);
        }
        
        html.dark #globalSearch {
            color: var(--text-primary);
        }
        
        html.dark .search-icon {
            color: var(--text-muted);
        }
        
        html.dark .random-tool-btn {
            background: var(--bg-tertiary);
            color: var(--text-secondary);
        }
        
        html.dark .random-tool-btn:hover {
            background: var(--accent-primary);
            color: #ffffff;
        }
        
        html.dark .search-results {
            background: var(--bg-secondary);
            border-color: var(--border-color);
        }
        
        html.dark .search-result-item:hover {
            background: var(--bg-tertiary);
        }
        
        html.dark .search-result-meta span:first-child {
            color: var(--text-primary);
        }
        
        html.dark .search-result-meta span:last-child {
            color: var(--text-secondary);
        }
        
        html.dark .nav-link {
            color: var(--text-secondary);
        }
        
        html.dark .nav-link:hover {
            background: var(--bg-tertiary);
            color: var(--accent-primary);
        }
        
        html.dark .deal-badge {
            background: rgba(34, 197, 94, 0.15);
            color: var(--accent-success);
            border-color: rgba(34, 197, 94, 0.3);
        }
        
        html.dark .btn-login {
            color: var(--text-secondary);
        }
        
        html.dark .btn-login:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }
        
        html.dark .mobile-menu-toggle span {
            background: var(--text-primary);
        }
        
        html.dark .mobile-menu {
            background: var(--bg-secondary);
            border-top-color: var(--border-color);
        }
        
        html.dark .mobile-nav-link {
            color: var(--text-secondary);
        }
        
        html.dark .mobile-nav-link:hover {
            background: var(--bg-tertiary);
            color: var(--accent-primary);
        }
        
        html.dark .mobile-auth {
            border-top-color: var(--border-color);
        }
        
        html.dark .mobile-btn-login {
            color: var(--text-secondary);
            background: var(--bg-tertiary);
        }
        
        /* Dark mode for cards and content */
        html.dark .tool-card,
        html.dark .card {
            background: var(--bg-secondary);
            border-color: var(--border-color);
        }
        
        html.dark .main-footer {
            background: var(--bg-secondary);
            border-top-color: var(--border-color);
        }
        
        html.dark .footer-heading {
            color: var(--text-primary);
        }
        
        html.dark .footer-link {
            color: var(--text-secondary);
        }
        
        html.dark .footer-link:hover {
            color: var(--accent-primary);
        }
        
        @media (max-width: 768px) {
            .main-nav,
            .auth-section {
                display: none;
            }
            
            .mobile-menu-toggle {
                display: flex;
            }
            
            .header-content {
                padding: 0.75rem 0;
            }
        }

        /* News Ticker */
        .news-ticker {
            height: 32px;
            border-top: 1px solid #1f2937;
            border-bottom: 1px solid #1f2937;
            background: #111827; /* Keeping dark for contrast */
            overflow: hidden;
            font-size: 0.8rem;
        }

        .ticker-content {
            display: flex;
            align-items: center;
            gap: 2.5rem;
            padding: 0 1.5rem;
            white-space: nowrap;
            animation: ticker 26s linear infinite;
        }

        .ticker-item {
            color: #d1d5db;
        }

        @keyframes ticker {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* Layout */
        .main-container {
            display: grid;
            grid-template-columns: 260px minmax(0, 1fr) 260px;
            gap: 1.5rem;
            padding: 1.5rem 0.5rem;
        }

        .sticky-sidebar {
            position: sticky;
            top: 100px;
            align-self: flex-start;
        }

        /* Sidebar - Light Mode */
        .sidebar {
            background: #ffffff;
            border-radius: 1.1rem;
            border: 1px solid #e5e7eb;
            padding: 1.15rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .filter-title {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.95rem;
            margin-bottom: 0.75rem;
            color: #111827;
            font-weight: 600;
        }

        .filter-group {
            margin-bottom: 1rem;
        }

        .filter-label {
            font-size: 0.78rem;
            text-transform: uppercase;
            color: #6b7280;
            letter-spacing: 0.08em;
            margin-bottom: 0.45rem;
            font-weight: 600;
        }

        .category-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
        }

        .pill {
            padding: 0.3rem 0.6rem;
            border-radius: 999px;
            border: 1px solid #e5e7eb;
            font-size: 0.78rem;
            background: #f9fafb;
            color: #4b5563;
            transition: transform 0.2s, opacity 0.2s;
        }

        .pill.active,
        .pill:hover {
            border-color: #3b82f6;
            background: #eff6ff;
            color: #1d4ed8;
        }

        .checkbox-group {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .checkbox-label {
            font-size: 0.82rem;
            color: #4b5563;
        }

        .checkbox-label input {
            margin-right: 0.45rem;
            accent-color: #2563eb;
        }

        .btn-reset-filters {
            width: 100%;
            margin-top: 0.35rem;
            padding: 0.5rem;
            border-radius: 999px;
            background: #ffffff;
            border: 1px dashed #9ca3af;
            color: #6b7280;
            font-size: 0.8rem;
            transition: transform 0.2s, opacity 0.2s;
        }

        .btn-reset-filters:hover {
            border-color: #4b5563;
            color: #374151;
            background: #f9fafb;
        }

        /* Ad Spaces - Light Mode */
        .ad-space {
            margin-top: 1rem;
            background: #f8fafc;
            border-radius: 1.1rem;
            border: 1px dashed #cbd5e1;
            padding: 0.9rem;
            text-align: center;
        }

        .sidebar-ad {
            margin-top: 1.3rem;
        }

        .ad-label {
            font-size: 0.72rem;
            text-transform: uppercase;
            color: #94a3b8;
        }

        .ad-content {
            margin-top: 0.35rem;
            padding: 0.7rem;
            border-radius: 0.9rem;
            border: 1px solid #e2e8f0;
            background: #ffffff;
        }

        .ad-size {
            font-size: 0.78rem;
            color: #94a3b8;
        }

        /* Content Area */
        .toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1.2rem;
        }

        .section-title {
            font-size: 1.15rem;
            color: #111827;
            font-weight: 700;
        }

        .tool-count {
            font-size: 0.8rem;
            color: #6b7280;
        }

        .sort-dropdown {
            background: #ffffff;
            border-radius: 999px;
            border: 1px solid #d1d5db;
            color: #374151;
            padding: 0.35rem 0.7rem;
            font-size: 0.8rem;
        }

        .view-toggle {
            display: flex;
            border-radius: 999px;
            background: #ffffff;
            border: 1px solid #d1d5db;
        }

        .view-btn {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
        }

        .view-btn.active {
            background: #f3f4f6;
            color: #111827;
        }

        /* Curated Lists - Light Mode */
        .curated-lists {
            background: #ffffff;
            border-radius: 1.1rem;
            border: 1px solid #e5e7eb;
            padding: 0.9rem 1rem 1rem;
            margin-bottom: 1rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }

        .section-subtitle {
            font-size: 0.9rem;
            margin-bottom: 0.7rem;
            color: #374151;
            font-weight: 600;
        }

        .curated-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 0.6rem;
        }

        .curated-card {
            background: linear-gradient(to bottom, #eff6ff, #ffffff);
            border-radius: 0.9rem;
            padding: 0.7rem;
            border: 1px solid #bfdbfe;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            font-size: 0.8rem;
            transition: transform 0.2s;
        }
        
        .curated-card:hover {
            transform: translateY(-2px);
            border-color: #60a5fa;
        }

        .curated-card h4 {
            color: #1e40af;
        }

        .curated-card p {
            color: #6b7280;
        }

        .curated-icon {
            font-size: 1.1rem;
        }

        /* Tools Grid - Light Mode */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 1rem;
        }

        /* ========== MOBILE STABILITY FIX ========== */
        /* Prevents any movement, resizing, or layout shifts on mobile scroll */
        @media (max-width: 768px) {
            .tools-grid {
                display: block !important; /* Force block layout to stack cards */
                width: 100% !important;
                padding: 0 4px !important;
            }
            
            .tool-card {
                /* Force full width and auto height to fit content */
                width: 100% !important;
                height: auto !important;
                min-height: auto !important;
                display: flex !important;
                flex-direction: column !important;
                
                /* Keep card stable */
                transform: none !important;
                transition: none !important;
                box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
                border: 1px solid #e5e7eb !important;
                margin-bottom: 20px !important;
                overflow: hidden !important; /* Clipped corners */
                border-radius: 12px !important; /* Ensure rounded corners */
            }
            
            .tool-card:hover, .tool-card:active, .tool-card:focus {
                transform: none !important;
                box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
            }
            
            .tool-image-wrapper {
                /* Fix image container height */
                min-height: 180px !important;
                height: 180px !important;
                max-height: 180px !important;
                width: 100% !important;
                overflow: hidden !important;
            }
            
            .tool-image, .tool-image-wrapper img {
                /* Fix image display */
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
                max-width: 100% !important;
                transform: none !important;
                transition: none !important;
            }
            
            .tool-content {
                /* Ensure content area expands as needed */
                height: auto !important;
                min-height: auto !important;
                padding: 15px !important;
            }
            
            .visit-btn-styled:hover {
                transform: none !important;
            }
        }

        /* ========== NEW HORIZONTAL TOOL CARDS ========== */
        .tool-card-new {
            background: #fff;
            border-radius: 16px;
            padding: 1.25rem;
            border: 1px solid #e5e7eb;
            display: flex;
            gap: 1rem;
            transition: transform 0.25s ease, opacity 0.25s ease;
            position: relative;
        }
        .tool-card-new:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(0,0,0,0.1);
            border-color: #cbd5e1;
        }
        
        .tool-card-left {
            flex-shrink: 0;
        }
        
        .tool-logo {
            width: 60px;
            height: 60px;
            border-radius: 14px;
            overflow: hidden;
            background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .tool-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .logo-placeholder-new {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6366f1;
            font-size: 1.5rem;
        }
        
        .tool-card-center {
            flex: 1;
            min-width: 0;
        }
        
        .tool-name-row {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            margin-bottom: 0.35rem;
        }
        .tool-name-new {
            font-size: 1rem;
            font-weight: 700;
            color: #1f2937;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .verified-badge-new {
            color: #FD9236;
            font-size: 0.9rem;
            flex-shrink: 0;
        }
        
        .tool-rating-row {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            margin-bottom: 0.4rem;
        }
        .stars-new {
            display: flex;
            gap: 0.1rem;
            color: #fbbf24;
            font-size: 0.75rem;
        }
        .stars-new .far { color: #d1d5db; }
        .reviews-count {
            color: #6b7280;
            font-size: 0.8rem;
        }
        .reviews-count a {
            color: #3b82f6;
            text-decoration: underline;
        }
        
        .pricing-bookmark-row {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 0.6rem;
        }
        .pricing-label {
            font-size: 0.8rem;
            font-weight: 600;
            color: #374151;
        }
        .pricing-label.free { color: #059669; }
        .pricing-label.freemium { color: #7c3aed; }
        
        .bookmark-count {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            color: #6b7280;
            font-size: 0.8rem;
        }
        .bookmark-count i { font-size: 0.75rem; }
        
        .tool-desc-new {
            font-size: 0.85rem;
            color: #4b5563;
            line-height: 1.5;
            margin: 0 0 0.6rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .tool-hashtags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
        }
        .hashtag {
            color: #3b82f6;
            font-size: 0.78rem;
            font-weight: 500;
        }
        
        .tool-card-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: space-between;
            flex-shrink: 0;
            min-width: 90px;
        }
        
        .editors-pick {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            color: #6b7280;
            font-size: 0.78rem;
            font-weight: 500;
            padding: 0.3rem 0;
        }
        .editors-pick i { font-size: 0.7rem; }
        
        .visit-btn-new {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.55rem 1.1rem;
            background: #fff;
            color: #3b82f6;
            border: 2px solid #3b82f6;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            transition: transform 0.2s, opacity 0.2s;
        }
        .visit-btn-new:hover {
            background: #3b82f6;
            color: #fff;
        }
        .visit-btn-new i { font-size: 0.7rem; }

        /* OLD TOOL CARDS (keeping for compatibility) */
        .tool-card {
            background: #ffffff;
            border-radius: 1.1rem;
            border: 1px solid #e5e7eb;
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            transition: transform 0.2s ease, opacity 0.2s ease;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .tool-card:hover {
            transform: translateY(-4px);
            border-color: #3b82f6;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
        }

        .tool-badges {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            z-index: 2;
        }

        .badge {
            font-size: 0.7rem;
            padding: 0.15rem 0.4rem;
            border-radius: 999px;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            font-weight: 500;
        }

        .badge.verified {
            background: rgba(219, 234, 254, 0.9);
            color: #1e40af;
        }

        .badge.trending {
            background: rgba(254, 226, 226, 0.9);
            color: #991b1b;
        }

        .badge.top-rated {
            background: rgba(254, 243, 199, 0.9);
            color: #92400e;
        }

        .badge.deal {
            background: rgba(220, 252, 231, 0.9);
            color: #166534;
        }

        .badge.beginner {
            background: rgba(224, 242, 254, 0.9);
            color: #075985;
        }

        .badge.opensource {
            background: rgba(220, 252, 231, 0.9);
            color: #166534;
        }

        /* Fire Badge - Top Right Corner */
        .fire-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            font-size: 1.3rem;
            z-index: 3;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
            animation: fireGlow 1.5s ease-in-out infinite alternate;
        }
        /* Featured Crown Badge - Top Right Corner */
        .featured-crown-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            z-index: 3;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
            animation: crownGlow 1.5s ease-in-out infinite alternate;
        }
        .featured-crown-badge img {
            width: 32px;
            height: 32px;
            object-fit: contain;
        }
        @keyframes crownGlow {
            from { transform: scale(1); }
            to { transform: scale(1.1); }
        }
        @keyframes fireGlow {
            from { transform: scale(1); }
            to { transform: scale(1.1); }
        }
        
        /* Golden Verified Check - Next to Name */
        .verified-check {
            display: inline-flex;
            align-items: center;
            margin-left: 6px;
            vertical-align: middle;
        }
        .verified-check svg {
            filter: drop-shadow(0 1px 3px rgba(253, 147, 84, 0.5));
        }
        .verified-check svg path:first-child {
            fill: #FD9236 !important;
        }
        .verified-check i {
            color: #FD9236;
            font-size: 0.95rem;
            filter: drop-shadow(0 1px 2px rgba(253, 147, 84, 0.4));
        }
        
        /* New Visit Button Styled - Try Now Style */
        .visit-btn-styled {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            padding: 0.4rem 1rem;
            background: #f5f5f5;
            color: #616161;
            border: 1px solid #e0e0e0;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 500;
            text-decoration: none;
            white-space: nowrap;
            overflow: hidden;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        .visit-btn-styled::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
            transition: left 0.5s ease;
        }
        .visit-btn-styled:hover {
            background: linear-gradient(135deg, #f5a623 0%, #f7b731 100%);
            color: #ffffff;
            border-color: #f5a623;
            box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
            transform: translateY(-1px);
        }
        .visit-btn-styled:hover::before {
            left: 100%;
        }
        .visit-btn-styled i {
            font-size: 0.7rem;
            transition: transform 0.2s ease;
        }
        .visit-btn-styled:hover i {
            transform: translateX(2px);
        }

        .bookmark-btn {
            position: absolute;
            top: 0.7rem;
            right: 0.7rem;
            z-index: 25; /* Above quick-view-overlay (z-index: 20) */
            width: 28px;
            height: 28px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.9);
            color: #4b5563;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.78rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            border: none;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        
        /* Fix click issue by ignoring pointer events on icon */
        .bookmark-btn * {
            pointer-events: none;
        }
        
        .bookmark-btn:hover {
            color: #ef4444;
            background: #ffffff;
            transform: scale(1.1);
        }
        
        .bookmark-btn.active {
            color: #ef4444;
            background: #ffffff;
        }
        
        .bookmark-btn.active i {
            font-weight: 900;
        }
        
        .bookmark-btn.animating {
            animation: heartPop 0.6s ease;
        }
        
        @keyframes heartPop {
            0% { transform: scale(1); }
            25% { transform: scale(1.3); }
            50% { transform: scale(0.9); }
            100% { transform: scale(1); }
        }

        .tool-image-wrapper {
            position: relative;
            overflow: hidden;
            background: #f3f4f6;
        }

        .tool-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .tool-card:hover .tool-image {
            transform: scale(1.05);
        }

        .hover-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
            opacity: 0;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding-bottom: 0.7rem;
            transition: opacity 0.2s ease;
        }

        .tool-card:hover .hover-overlay {
            opacity: 1;
        }

        .play-overlay,
        .audio-preview {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .play-overlay i {
            font-size: 2.4rem;
            color: #ffffff;
            text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .play-audio-btn {
            padding: 0.4rem 0.8rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.95);
            color: #1f2937;
            font-size: 0.8rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .quick-view-btn {
            padding: 0.35rem 0.8rem;
            border-radius: 999px;
            background: #2563eb;
            color: #ffffff;
            font-size: 0.8rem;
            border: none;
            box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
        }

        .tool-content {
            padding: 0.85rem 0.9rem 0.85rem;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .tool-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .tool-name {
            font-size: 0.98rem;
            color: #111827;
            font-weight: 600;
        }

        .tool-stats {
            font-size: 0.78rem;
            color: #6b7280;
        }

        .tool-description {
            font-size: 0.8rem;
            color: #4b5563;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .tool-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            font-size: 0.75rem;
        }

        .tag {
            padding: 0.12rem 0.45rem;
            border-radius: 999px;
            background: #f3f4f6;
            border: 1px solid #e5e7eb;
            color: #4b5563;
        }

        .tool-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            font-size: 0.78rem;
            color: #6b7280;
        }

        .meta-item {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }

        .pricing-badge.free {
            color: #16a34a;
            font-weight: 600;
        }

        .pricing-badge.paid {
            color: #ea580c;
            font-weight: 600;
        }

        .pricing-badge.freemium {
            color: #9333ea;
            font-weight: 600;
        }

        .tool-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.4rem;
            margin-top: 0.35rem;
        }

        .btn-primary {
            background: #2563eb;
            color: #ffffff;
            border-radius: 999px;
            padding: 0.4rem 0.8rem;
            font-size: 0.78rem;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
        }

        .btn-primary:hover {
            background: #1d4ed8;
        }

        .btn-sm {
            padding: 0.3rem 0.7rem;
            font-size: 0.76rem;
        }

        .btn-upvote,
        .btn-share {
            background: #f9fafb;
            color: #4b5563;
            border-radius: 999px;
            padding: 0.35rem 0.6rem;
            font-size: 0.78rem;
            border: 1px solid #e5e7eb;
        }

        .btn-upvote:hover,
        .btn-share:hover {
            background: #f3f4f6;
            color: #111827;
        }

        /* ========== NEW UNIFIED TOOL CARD V2 ========== */
        .tool-card-v2 {
            background: var(--bg-secondary);
            border-radius: 0.625rem; /* rounded-md */
            border: 1px solid var(--border-color);
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            transition: transform 0.2s ease, opacity 0.2s ease;
            box-shadow: var(--shadow-sm);
            padding: 0;
        }
        .tool-card-v2:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-card-hover);
        }
        
        /* Badge Line */
        .tool-card-v2 .card-badges {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            z-index: 5;
        }
        .tool-card-v2 .badge {
            font-size: 0.68rem;
            padding: 0.2rem 0.55rem;
            border-radius: 999px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            backdrop-filter: blur(8px);
            border: none;
        }
        .tool-card-v2 .badge-featured {
            background: var(--badge-featured);
            color: white;
        }
        .tool-card-v2 .badge-new {
            background: var(--badge-new);
            color: white;
        }
        .tool-card-v2 .badge-trending {
            background: var(--badge-trending);
            color: white;
        }
        .tool-card-v2 .badge-pricing {
            background: rgba(255,255,255,0.9);
            color: var(--text-primary);
        }
        html.dark .tool-card-v2 .badge-pricing {
            background: rgba(30,41,59,0.9);
        }
        .tool-card-v2 .badge-free {
            background: var(--badge-free);
            color: white;
        }
        .tool-card-v2 .badge-freemium {
            background: var(--badge-freemium);
            color: white;
        }
        .tool-card-v2 .badge-paid {
            background: var(--badge-paid);
            color: white;
        }
        
        /* Card Image */
        .tool-card-v2 .card-image {
            position: relative;
            overflow: hidden;
            background: var(--bg-tertiary);
            height: 160px;
        }
        .tool-card-v2 .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        .tool-card-v2:hover .card-image img {
            transform: scale(1.05);
        }
        .tool-card-v2 .card-image-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: var(--text-muted);
        }
        .tool-card-v2 .quick-view-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.2);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding-top: 40px; /* Move buttons down slightly */
            opacity: 0;
            transition: opacity 0.2s ease;
            z-index: 20; /* Ensure on top */
        }
        .tool-card-v2:hover .quick-view-overlay {
            opacity: 1;
        }
        .tool-card-v2 .quick-view-overlay .quick-view-btn,
        .tool-card-v2 .quick-view-overlay .compare-btn {
            position: relative;
            z-index: 21; /* Above overlay */
            padding: 4px 12px;
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            font-size: 0.75rem;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: transform 0.2s ease, opacity 0.2s ease;
            backdrop-filter: blur(4px);
            width: auto;
            min-width: 100px;
            justify-content: center;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        /* Fix click issue by ignoring pointer events on children */
        .tool-card-v2 .quick-view-overlay .quick-view-btn *,
        .tool-card-v2 .quick-view-overlay .compare-btn * {
            pointer-events: none;
        }
        
        .tool-card-v2 .quick-view-overlay .quick-view-btn:hover,
        .tool-card-v2 .quick-view-overlay .compare-btn:hover {
            background: rgba(0, 0, 0, 0.8);
            border-color: rgba(255, 255, 255, 0.4);
            transform: translateY(-2px);
        }

        
        /* Card Content */
        .tool-card-v2 .card-content {
            padding: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            flex: 1;
        }
        .tool-card-v2 .card-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .tool-card-v2 .verified-badge {
            flex-shrink: 0;
        }
        .tool-card-v2 .card-category {
            font-size: 0.8rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        .tool-card-v2 .category-emoji {
            font-size: 0.9rem;
        }
        .tool-card-v2 .card-description {
            font-size: 0.85rem;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.4;
        }
        
        /* Feature Tags */
        .tool-card-v2 .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin-top: 0.25rem;
        }
        .tool-card-v2 .card-tags .tag {
            font-size: 0.68rem;
            padding: 0.15rem 0.5rem;
            border-radius: 999px;
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }
        
        /* Card Footer */
        .tool-card-v2 .card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: auto;
            padding-top: 0.75rem;
            border-top: 1px solid var(--border-light);
        }
        .tool-card-v2 .card-rating {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.85rem;
            color: var(--accent-warning);
            font-weight: 500;
        }
        .tool-card-v2 .card-rating.muted {
            opacity: 0.4;
        }
        .tool-card-v2 .card-actions {
            display: flex;
            gap: 0.5rem;
        }
        .tool-card-v2 .btn-details {
            padding: 0.4rem 0.75rem;
            border-radius: 999px;
            font-size: 0.78rem;
            font-weight: 500;
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
            text-decoration: none;
            transition: transform 0.15s ease, opacity 0.15s ease;
        }
        .tool-card-v2 .btn-details:hover {
            background: var(--color-secondary);
            color: white;
            border-color: var(--color-secondary);
        }
        .tool-card-v2 .btn-try {
            padding: 0.4rem 0.75rem;
            border-radius: 999px;
            font-size: 0.78rem;
            font-weight: 500;
            background: var(--color-primary);
            color: white;
            text-decoration: none;
            transition: transform 0.15s ease, opacity 0.15s ease;
        }
        .tool-card-v2 .btn-try:hover {
            background: var(--color-primary-hover);
            transform: translateY(-1px);
        }
        
        /* Collection Cards V2 */
        .collection-card-v2 {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1.25rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 0.75rem;
            text-decoration: none;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        .collection-card-v2:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
            border-color: var(--color-primary);
        }
        .collection-card-v2 .collection-icon {
            font-size: 2rem;
            flex-shrink: 0;
        }
        .collection-card-v2 .collection-info h4 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.25rem;
        }
        .collection-card-v2 .collection-info .collection-desc {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        /* Load More */
        .load-more-section {
            margin-top: 1rem;
            text-align: center;
        }

        .btn-load-more {
            padding: 0.5rem 1rem;
            border-radius: 999px;
            background: #ffffff;
            border: 1px solid #d1d5db;
            color: #4b5563;
            font-size: 0.82rem;
            transition: transform 0.2s, opacity 0.2s;
        }

        .btn-load-more:hover {
            background: #f9fafb;
            color: #111827;
            border-color: #9ca3af;
        }

        .loading-spinner {
            margin-top: 0.6rem;
            font-size: 0.82rem;
            color: #6b7280;
        }

        /* Right Sidebar - Light Mode */
        .right-sidebar .widget {
            background: #ffffff;
            border-radius: 1.1rem;
            border: 1px solid #e5e7eb;
            padding: 0.85rem;
            margin-bottom: 0.9rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }

        .widget-title {
            font-size: 0.92rem;
            margin-bottom: 0.55rem;
            color: #111827;
            font-weight: 600;
        }

        .featured-tool img {
            border-radius: 0.8rem;
            margin-bottom: 0.5rem;
        }

        .featured-tool h4 {
            font-size: 0.9rem;
            color: #111827;
        }

        .featured-tool p {
            font-size: 0.8rem;
            color: #6b7280;
            margin-bottom: 0.4rem;
        }

        .trending-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .trending-list li {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.3rem 0;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .trending-list li:last-child {
            border-bottom: none;
        }

        .rank {
            width: 22px;
            height: 22px;
            border-radius: 999px;
            border: 1px solid #e5e7eb;
            background: #f9fafb;
            color: #6b7280;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.78rem;
        }

        .trending-info h5 {
            font-size: 0.86rem;
            color: #374151;
        }

        .trend-stats {
            font-size: 0.76rem;
            color: #16a34a;
        }

        .newsletter-widget p {
            font-size: 0.8rem;
            color: #6b7280;
        }

        .newsletter-form {
            margin-top: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .newsletter-form input {
            border-radius: 999px;
            border: 1px solid #d1d5db;
            background: #f9fafb;
            color: #111827;
            font-size: 0.8rem;
            padding: 0.35rem 0.7rem;
        }

        .newsletter-note {
            font-size: 0.76rem;
            color: #9ca3af;
            margin-top: 0.3rem;
        }

        /* Modal - Light Mode */
        .modal {
            position: fixed;
            inset: 0;
            background: rgba(17, 24, 39, 0.7); /* Darker overlay for contrast */
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 50;
        }

        .modal-content {
            background: #ffffff;
            border-radius: 1.2rem;
            border: 1px solid #e5e7eb;
            padding: 1.1rem;
            max-width: 840px;
            width: 100%;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            color: #111827;
        }

        .modal-large {
            max-width: 900px;
        }

        .modal-close {
            position: absolute;
            top: 0.75rem;
            right: 0.9rem;
            background: none;
            color: #9ca3af;
            font-size: 1.35rem;
        }

        .modal-close:hover {
            color: #111827;
        }
        
        .modal h2 {
            color: #111827;
        }
        
        .comparison-tool h3 {
            color: #1f2937;
        }

        .comparison-container {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 1.2rem;
            margin-top: 0.9rem;
        }

        .comparison-tool img {
            border-radius: 0.9rem;
            margin-bottom: 0.5rem;
            border: 1px solid #e5e7eb;
        }

        .comparison-details .detail-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: #4b5563;
            border-bottom: 1px dashed #e5e7eb;
            padding: 0.4rem 0;
        }

        .comparison-vs {
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: #9ca3af;
        }

        /* Premium Footer - Non-white Light Theme */
        .main-footer {
            margin-top: 5rem;
            border-top: 1px solid #dee5ed;
            background: linear-gradient(to bottom, #f1f5f9 0%, #e2e8f0 100%);
            color: #334155;
            padding: 5rem 0 0;
            position: relative;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2.2fr repeat(4, 1fr);
            gap: 2rem;
            padding-bottom: 3rem;
        }

        .footer-title {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            color: #0f172a;
            font-weight: 700;
        }

        .footer-desc {
            font-size: 0.9rem;
            color: #475569;
            max-width: 300px;
            line-height: 1.7;
        }

        .social-links {
            display: flex;
            gap: 0.6rem;
            margin-top: 1rem;
        }

        .social-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1px solid #cbd5e1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            color: #64748b;
            background: rgba(255, 255, 255, 0.5);
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .social-btn:hover {
            background: var(--color-primary);
            color: #ffffff;
            border-color: var(--color-primary);
            transform: translateY(-2px);
        }

        .footer-col h4 {
            font-size: 0.9rem;
            margin-bottom: 0.8rem;
            color: #0f172a;
            font-weight: 600;
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .footer-links a {
            font-size: 0.85rem;
            color: #475569;
            text-decoration: none;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .footer-links a:hover {
            color: var(--color-primary);
            padding-left: 2px;
        }

        .footer-bottom {
            border-top: 1px solid #cbd5e1;
            padding: 1.5rem 0;
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: #64748b;
        }

        /* Newsletter Popup - Light Mode */
        .newsletter-popup {
            position: fixed;
            inset: 0;
            background: rgba(17, 24, 39, 0.75);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 60;
        }

        .popup-content {
            background: #ffffff;
            border-radius: 1.2rem;
            border: none;
            padding: 1.3rem;
            max-width: 360px;
            width: 90%;
            text-align: center;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            color: #111827;
        }

        .popup-close {
            position: absolute;
            top: 0.8rem;
            right: 0.9rem;
            background: none;
            color: #9ca3af;
            font-size: 1.2rem;
        }

        .popup-icon {
            font-size: 1.8rem;
            margin-bottom: 0.4rem;
        }
        
        .popup-content h3 {
            color: #111827;
        }
        
        .popup-content p {
            color: #4b5563;
        }

        .popup-form input {
            width: 100%;
            margin: 0.6rem 0;
            padding: 0.45rem 0.7rem;
            border-radius: 999px;
            border: 1px solid #d1d5db;
            background: #f9fafb;
            color: #111827;
        }

        .popup-note {
            font-size: 0.76rem;
            color: #9ca3af;
        }

        /* Focus Mode */
        .focus-mode {
            position: fixed;
            inset: 0;
            background: rgba(17, 24, 39, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 55;
            backdrop-filter: blur(5px);
        }

        .focus-content {
            max-width: 960px;
            width: 92%;
        }

        .focus-content img {
            border-radius: 1rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .focus-close {
            position: absolute;
            top: 1.5rem;
            right: 1.8rem;
            background: none;
            color: #e5e7eb;
            font-size: 1.6rem;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .main-container {
                grid-template-columns: 220px minmax(0, 1fr);
            }

            .right-sidebar {
                display: none;
            }

            .footer-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            .hero-slider {
                height: 320px;
            }

            .header-content {
                flex-wrap: wrap;
            }

            .search-container {
                order: 3;
                width: 100%;
                max-width: 100%;
            }

            .main-nav,
            .auth-section {
                display: none;
            }

            .mobile-menu-toggle {
                display: flex;
            }

            .main-container {
                grid-template-columns: minmax(0, 1fr);
            }

            .sidebar {
                order: -1;
            }

            .sticky-sidebar {
                position: static;
            }

            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .footer-bottom {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.3rem;
            }
        }

        @media (max-width: 480px) {
            .main-container {
                padding: 0 1rem;
            }

            .hero-content h1 {
                font-size: 1.8rem;
            }

            .tools-grid {
                grid-template-columns: minmax(0, 1fr);
                gap: 1rem;
            }

            .toolbar {
                flex-direction: column;
                align-items: flex-start;
            }

            .footer-grid {
                grid-template-columns: 1fr;
            }
        }
        /* Utility classes for responsive display (Tailwind-like) */
        .hidden { display: none !important; }
        .block { display: block !important; }
        
        @media (min-width: 768px) {
            .md\:block { display: block !important; }
            .md\:hidden { display: none !important; }
        }
        
        /* ========== SEARCH MODAL STYLES ========== */
        .search-trigger {
            cursor: pointer;
            user-select: none;
        }
        
        .search-trigger:hover {
            border-color: var(--color-primary);
        }
        
        .search-placeholder {
            flex: 1;
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        .search-shortcut {
            background: var(--bg-tertiary);
            color: var(--text-muted);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.7rem;
            font-family: inherit;
            border: 1px solid var(--border-color);
        }
        
        /* Search Modal */
        .search-modal {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: none;
            align-items: flex-start;
            justify-content: center;
            padding-top: 10vh;
        }
        
        .search-modal.active {
            display: flex;
        }
        
        .search-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }
        
        .search-modal-container {
            position: relative;
            width: 100%;
            max-width: 640px;
            max-height: 70vh;
            background: var(--bg-secondary);
            border-radius: 16px;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            margin: 0 1rem;
            animation: searchModalIn 0.2s ease-out;
        }
        
        @keyframes searchModalIn {
            from {
                opacity: 0;
                transform: scale(0.95) translateY(-10px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
        
        .search-modal-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .search-modal-input-wrapper {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background: var(--bg-tertiary);
            border: 2px solid var(--border-color);
            border-radius: 50px;
            padding: 0.75rem 1.25rem;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        
        .search-modal-input-wrapper:focus-within {
            border-color: var(--color-primary);
            box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
        }
        
        .search-modal-icon {
            color: var(--text-muted);
            font-size: 1rem;
        }
        
        .search-modal-input {
            flex: 1;
            border: none;
            background: transparent;
            font-size: 1rem;
            color: var(--text-primary);
            outline: none;
        }
        
        .search-modal-input::placeholder {
            color: var(--text-muted);
        }
        
        .search-modal-clear {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 0.25rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        
        .search-modal-clear:hover {
            background: var(--border-color);
            color: var(--text-primary);
        }
        
        .search-modal-close {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s, opacity 0.2s;
            flex-shrink: 0;
        }
        
        .search-modal-close:hover {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: white;
        }
        
        .search-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 2rem;
            -ms-overflow-style: none; /* IE and Edge */
            scrollbar-width: none; /* Firefox */
        }
        
        .search-modal-body::-webkit-scrollbar {
            display: none;
        }
        
        /* Initial State */
        .search-modal-initial {
            text-align: center;
            padding: 1rem 0;
        }
        
        .search-modal-icon-large {
            width: 80px;
            height: 80px;
            margin: 0 auto 1.5rem;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .search-modal-icon-large i {
            font-size: 2rem;
            color: var(--color-primary);
        }
        
        .search-modal-icon-large.muted {
            background: var(--bg-tertiary);
        }
        
        .search-modal-icon-large.muted i {
            color: var(--text-muted);
        }
        
        .search-modal-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 0.5rem;
        }
        
        .search-modal-subtitle {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin: 0 0 1.5rem;
        }
        
        .search-modal-examples {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.75rem;
        }
        
        .search-example-btn {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            color: var(--color-primary);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: transform 0.2s, opacity 0.2s;
        }
        
        .search-example-btn:hover {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: white;
        }
        
        /* Loading State */
        .search-modal-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            padding: 3rem 0;
            color: var(--text-secondary);
            font-size: 0.95rem;
        }
        
        .search-spinner {
            width: 24px;
            height: 24px;
            border: 3px solid var(--border-color);
            border-top-color: var(--color-primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Results State */
        .search-results-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .search-result-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.875rem 1rem;
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.15s;
            text-decoration: none;
            color: inherit;
        }
        
        .search-result-item:hover {
            background: var(--bg-tertiary);
        }
        
        .search-result-thumb {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            overflow: hidden;
            background: var(--bg-tertiary);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .search-result-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .search-result-thumb i {
            font-size: 1.25rem;
            color: var(--text-muted);
        }
        
        .search-result-info {
            flex: 1;
            min-width: 0;
        }
        
        .search-result-name {
            font-weight: 600;
            color: var(--text-primary);
            margin: 0 0 0.25rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .search-result-category {
            font-size: 0.8rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .search-result-arrow {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        /* Dark mode adjustments */
        html.dark .search-modal-backdrop {
            background: rgba(0, 0, 0, 0.7);
        }
        
        html.dark .search-modal-container {
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-color);
        }
        
        html.dark .search-modal-input-wrapper:focus-within {
            box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
        }
        
        /* Mobile adjustments */
        @media (max-width: 640px) {
            .search-modal {
                padding-top: 5vh;
            }
            
            .search-modal-container {
                max-height: 80vh;
                border-radius: 12px;
            }
            
            .search-shortcut {
                display: none;
            }
            
            .search-modal-body {
                padding: 1.5rem;
            }
            
            .search-modal-icon-large {
                width: 60px;
                height: 60px;
            }
            
            .search-modal-icon-large i {
                font-size: 1.5rem;
            }
            
            .search-modal-title {
                font-size: 1.1rem;
            }
        }
                        /* Professional Typography Logo */
                        .logo-text {
                            font-family: 'Inter', system-ui, -apple-system, sans-serif;
                            font-size: 28px;
                            font-weight: 800;
                            color: #0f172a;
                            text-decoration: none;
                            letter-spacing: -1px;
                            display: flex;
                            align-items: center;
                        }

                        /* Colored dot */
                        .logo-text .dot {
                            color: #2563eb;
                        }
                        
                        /* Dark Mode Support for Logo */
                        html.dark .logo-text {
                            color: #f8fafc;
                        }
                        
                        /* Navbar Styling */
                        #stickyHeader {
                            background: #ffffff !important; /* Solid White in Light Mode */
                            border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle split */
                        }
                        html.dark #stickyHeader {
                            background: rgba(15, 23, 42, 0.8) !important; /* Semi-transparent in Dark Mode */
                            backdrop-filter: blur(20px);
                        }
        .success-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .success-modal {
            background: white;
            border-radius: 1.5rem;
            padding: 3rem 2.5rem;
            text-align: center;
            max-width: 420px;
            width: 90%;
            position: relative;
            overflow: hidden;
            animation: slideUp 0.4s ease;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }
        
        @keyframes slideUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .success-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #22c55e, #16a34a);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
            color: white;
            animation: pulse 0.5s ease;
            box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }
        
        .success-title {
            font-size: 1.75rem;
            font-weight: 800;
            color: #111827;
            margin-bottom: 0.75rem;
            letter-spacing: -0.02em;
        }
        
        .success-message {
            font-size: 1rem;
            color: #6b7280;
            line-height: 1.6;
            margin-bottom: 2rem;
        }
        
        .success-btn {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            border: none;
            padding: 0.9rem 2rem;
            border-radius: 999px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: transform 0.2s ease, opacity 0.2s ease;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
        }
        
        .success-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
        }
        
        .confetti-container {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            overflow: hidden;
        }
        
        .confetti-piece {
            position: absolute;
            width: 10px;
            height: 10px;
            animation: confetti-fall 3s ease-out forwards;
        }
        
        @keyframes confetti-fall {
            0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
            100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
        }
                    @keyframes fadeInModal {
                        from { opacity: 0; }
                        to { opacity: 1; }
                    }
                    @keyframes slideUpModal {
                        from { 
                            opacity: 0;
                            transform: translateY(30px) scale(0.95);
                        }
                        to { 
                            opacity: 1;
                            transform: translateY(0) scale(1);
                        }
                    }
        /* Mobile Bottom Navigation */
        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(0,0,0,0.08);
            z-index: 9999;
            justify-content: space-around;
            align-items: center;
            padding: 0 10px;
            padding-bottom: env(safe-area-inset-bottom, 0);
            box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
        }
        
        html.dark .mobile-bottom-nav {
            background: rgba(30, 41, 59, 0.98);
            border-top-color: rgba(255,255,255,0.1);
        }
        
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            padding: 8px 16px;
            border: none;
            background: none;
            color: #6b7280;
            text-decoration: none;
            font-size: 10px;
            font-weight: 500;
            transition: transform 0.2s ease, opacity 0.2s ease;
            position: relative;
            cursor: pointer;
        }
        
        .bottom-nav-item i {
            font-size: 20px;
            transition: transform 0.2s ease;
        }
        
        .bottom-nav-item.active,
        .bottom-nav-item:hover {
            color: #8b5cf6;
        }
        
        .bottom-nav-item.active i {
            transform: scale(1.1);
        }
        
        html.dark .bottom-nav-item {
            color: #9ca3af;
        }
        
        html.dark .bottom-nav-item.active,
        html.dark .bottom-nav-item:hover {
            color: #a78bfa;
        }
        
        .bottom-nav-badge {
            position: absolute;
            top: 2px;
            right: 8px;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
            font-size: 9px;
            font-weight: 700;
            min-width: 16px;
            height: 16px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
        }
        
        @media (max-width: 576px) {
            .mobile-bottom-nav {
                display: flex;
            }
            
            /* Add padding to body to prevent content from hiding behind nav */
            body {
                padding-bottom: 70px !important;
            }
            
            /* Hide comparison bar on mobile when bottom nav is present */
            .comparison-bar {
                bottom: 70px !important;
            }
        }

        /* Performance Optimization: Content Visibility */
        .content-lazy {
            content-visibility: auto;
            contain-intrinsic-size: 1000px;
        }
    /* ============ QUICK REVIEW MODAL V2 PROFESSIONAL ============ */
    .qv-card {
        padding: 2rem;
        max-width: 550px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
        overflow-x: hidden;
    }

    /* Dark Mode Card Background override */
    html.dark .qv-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        color: #1f2937; /* Ensure text is dark on white background */
    }

    .qv-header {
        display: flex;
        gap: 1.25rem;
        align-items: flex-start;
        margin-bottom: 1.5rem;
        position: relative;
    }

    /* Close Button Styling */
    .qv-close {
        position: absolute;
        top: -10px;
        right: -10px;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: var(--text-muted);
        cursor: pointer;
        transition: transform 0.2s ease, opacity 0.2s ease;
        padding: 5px;
        line-height: 1;
        z-index: 10;
    }
    
    .qv-close:hover { color: var(--text-primary); }

    .qv-logo img {
        border-radius: 16px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--border-light);
    }

    .qv-info { flex: 1; min-width: 0; }
    
    .qv-title-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .qv-title {
        font-size: 1.5rem;
        font-weight: 800;
        margin: 0;
        line-height: 1.1;
        color: var(--text-primary);
        letter-spacing: -0.02em;
    }
    
    .verified-icon-pro {
        color: #3b82f6;
        font-size: 1.2rem;
        display: inline-flex;
        filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
    }

    .qv-meta-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
    }
    
    .qv-cat-badge {
        font-size: 0.75rem;
        color: var(--text-secondary);
        background: var(--bg-tertiary);
        padding: 4px 10px;
        border-radius: 8px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid var(--border-color);
        transition: transform 0.2s, opacity 0.2s;
    }

    html.dark .qv-cat-badge {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }
    
    .qv-rating-mini {
        display: flex;
        align-items: center;
        gap: 6px;
        background: rgba(251, 191, 36, 0.1);
        border: 1px solid rgba(251, 191, 36, 0.2);
        padding: 4px 10px;
        border-radius: 8px;
    }

    .stars-row {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #f59e0b;
        font-size: 0.85rem;
        font-weight: 700;
    }
    
    .review-count {
        font-size: 0.75rem;
        color: var(--text-muted);
        font-weight: 500;
    }

    html.dark .qv-rating-mini {
        background: rgba(251, 191, 36, 0.05);
        border-color: rgba(251, 191, 36, 0.15);
    }

    .qv-badges {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .qv-badge {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        padding: 3px 8px;
        border-radius: 6px;
        letter-spacing: 0.02em;
    }

    .qv-badge-free { background: #dcfce7; color: #166534; }
    .qv-badge-freemium { background: #dbeafe; color: #1e40af; }
    .qv-badge-paid { background: #f3e8ff; color: #6b21a8; }
    .qv-badge-sub { background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border-color); }

    html.dark .qv-badge-free { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
    html.dark .qv-badge-freemium { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
    html.dark .qv-badge-paid { background: rgba(147, 51, 234, 0.2); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.3); }
    html.dark .qv-badge-sub { background: rgba(255,255,255,0.05); color: #94a3b8; border-color: rgba(255,255,255,0.1); }

    .qv-description {
        font-size: 1rem;
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 1.5rem;
        background: var(--bg-tertiary);
        padding: 1.25rem;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }
    
    html.dark .qv-description {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.05);
        color: #cbd5e1;
    }
    
    .qv-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .qv-tag {
        font-size: 0.75rem;
        color: var(--text-secondary);
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: 500;
        transition: transform 0.2s, opacity 0.2s;
    }
    
    html.dark .qv-tag {
        background: rgba(255, 255, 255, 0.05);
        color: #94a3b8;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .qv-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 1.25rem;
        border-top: 1px solid var(--border-color);
        margin-top: auto;
    }
    
    .qv-views {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        color: var(--text-muted);
        font-weight: 500;
    }
    
    .qv-details-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--accent-primary);
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        transition: transform 0.2s, opacity 0.2s;
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    }
    
    .qv-details-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
        background: var(--accent-primary-hover);
    }
    
    /* ============ SIDEBAR WIDGETS PRO DESIGN ============ */
    
    /* Sticky Sidebar Fix for Overflow */
    /* Sticky Sidebar Fix for Overflow & Header Clearance */
    .sticky-sidebar {
        position: sticky;
        top: 90px; /* Increased from 20px to clear fixed header */
        align-self: start;
        /* Adjust max-height to account for the top offset */
        max-height: calc(100vh - 100px); 
        overflow-y: auto;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,0.1) transparent;
        padding-bottom: 20px; /* buffer at bottom */
    }

    /* 1. Tool of the Day - Compact & Centered */
    .widget.tool-of-day {
        background: white;
        border-radius: 20px;
        padding: 0;
        overflow: hidden;
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
        margin-bottom: 1rem; /* Reduced margin */
    }
    
    .widget.tool-of-day .widget-title {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
        color: white;
        margin: 0;
        padding: 0.8rem 1rem; /* Compact Header */
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    
    .featured-tool-card {
        padding: 1.2rem; /* Compact padding */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center; /* Flex center */
    }
    
    .featured-image img {
        width: 72px; /* Slightly smaller image */
        height: 72px;
        border-radius: 16px;
        margin-bottom: 0.8rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        border: 3px solid white;
        outline: 1px solid #f1f5f9;
        transition: transform 0.3s ease;
        display: block;
        margin-left: auto; 
        margin-right: auto;
    }
    
    .featured-tool-card:hover .featured-image img {
        transform: scale(1.05) rotate(2deg);
    }
    
    .featured-tool-card h4 {
        margin: 0 0 0.4rem;
        font-size: 1.1rem;
        font-weight: 700;
        color: #1e293b;
    }
    
    .featured-tool-card p {
        font-size: 0.85rem;
        color: #64748b;
        margin-bottom: 0.8rem;
        line-height: 1.4;
        max-width: 90%; /* Prevent too wide text */
    }
    
    .check-btn {
        display: block;
        width: 100%;
        max-width: 200px; /* Limit button width */
        padding: 0.7rem;
        background: #10b981;
        color: white;
        border-radius: 50px; /* Pill shape */
        font-weight: 600;
        text-decoration: none;
        transition: transform 0.2s, opacity 0.2s;
        box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
        font-size: 0.9rem;
    }

    /* 2. Trending This Week - Compact */
    .widget.trending-widget {
        background: white;
        border-radius: 20px;
        padding: 1.2rem;
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    }
    
    .widget.trending-widget .widget-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #1e293b;
    }
    
    .trending-list {
        display: flex;
        flex-direction: column;
        gap: 0.8rem; /* Tighter list */
    }
    
    .trending-item {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }
    
    .trending-item .rank {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .trending-info h5 {
        margin: 0;
        font-size: 0.9rem;
        font-weight: 600;
        color: #334155;
    }
    
    .trending-info a { text-decoration: none; }
    
    .trend-stat {
        font-size: 0.75rem;
        color: #94a3b8;
        display: flex;
        align-items: center;
        gap: 4px;
        margin-top: 2px;
    }
    
    /* Dark Mode Support for Sidebar */
    html.dark .widget.tool-of-day,
    html.dark .widget.trending-widget {
        background: #1e293b;
        border-color: #334155;
    }
    
    html.dark .featured-tool-card h4,
    html.dark .widget.trending-widget .widget-title,
    html.dark .trending-info h5 {
        color: #f1f5f9;
    }
    
    html.dark .trending-item .rank {
        background: #334155; /* Neutral */
        color: #94a3b8;
    }
        /* ========== MOBILE NAVIGATION PREMIUM OVERHAUL ========== */
        
        /* Desktop Default: Hidden */
        .mobile-menu, #mobileMenuBackdrop {
            display: none !important;
        }

        /* Mobile Styles Only */
        @media (max-width: 768px) {
            /* 1. CRITICAL: Prevent Horizontal Scroll */
            html, body {
                overflow-x: hidden !important;
                width: 100% !important;
                position: relative;
            }

            /* 2. Container Logic */
            .container {
                width: 100% !important;
                padding-left: 16px !important;
                padding-right: 16px !important;
                max-width: 100% !important;
                box-sizing: border-box;
            }

            /* 3. STRICT HEADER CLEANUP & LAYOUT */
            .main-nav,
            .auth-section,
            .mobile-menu-toggle {
                display: none !important;
            }
            
            .header-content {
                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
                padding: 12px 0 !important;
                width: 100% !important;
            }

            /* Hide Widgets on Mobile */
            .tool-of-day,
            .trending-widget {
                display: none !important;
            }
            
            /* Fix Logo Section Padding Override */
            .logo-section {
                padding-left: 0 !important;
                padding-right: 0 !important;
            }
            
            /* Compact Search on Mobile */
            .search-container {
                max-width: 44px; 
                flex: 0 0 44px; /* Rigid width */
                height: 44px;
                overflow: hidden;
                background: transparent;
                border: none;
                box-shadow: none;
                padding: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                margin: 0 !important; /* Reset margins */
                cursor: pointer !important;
                pointer-events: auto !important;
                z-index: 50;
                -webkit-tap-highlight-color: transparent;
            }
            
            .search-placeholder, .search-shortcut {
                display: none;
            }
            
            .search-icon {
                font-size: 1.3rem;
                color: var(--text-primary);
                width: 44px;
                height: 44px;
                display: flex !important;
                align-items: center;
                justify-content: center;
                background: var(--bg-tertiary);
                border-radius: 50%;
                pointer-events: none; /* Let clicks pass to container */
            }

            /* Backdrop */
            #mobileMenuBackdrop {
                display: block !important; /* Allow toggle to control opacity/vis, but base display block */
                position: fixed;
                inset: 0;
                background: rgba(0, 0, 0, 0.6);
                z-index: 9998;
                opacity: 0;
                visibility: hidden;
                transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
                backdrop-filter: blur(6px);
                -webkit-backdrop-filter: blur(6px);
            }
            
            #mobileMenuBackdrop.active {
                opacity: 1;
                visibility: visible;
            }
            
            /* Mobile Menu Drawer - Premium Glassmorphism */
            .mobile-menu {
                display: flex !important;
                position: fixed !important;
                top: 0;
                right: -280px; /* Hidden state */
                width: 280px; /* Narrower fixed width */
                max-width: 80%;
                height: 100vh;
                height: 100dvh; /* Dynamic viewport height support */
                
                /* Glassmorphism Base */
                background: rgba(255, 255, 255, 0.85);
                backdrop-filter: blur(24px);
                -webkit-backdrop-filter: blur(24px);
                
                z-index: 10000; /* Highest priority */
                transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s;
                box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
                flex-direction: column;
                transform: translateX(0);
                opacity: 0;
                border-left: 1px solid rgba(255, 255, 255, 0.3);
                overflow: hidden; /* Prevent outer scroll */
            }
            
            /* Dark Mode Glass */
            html.dark .mobile-menu {
                background: rgba(15, 23, 42, 0.85); /* Dark slate base glass */
                border-left: 1px solid rgba(255, 255, 255, 0.08);
                box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
            }
            
            .mobile-menu.active {
                transform: translateX(-100%) !important;
                right: -320px !important; 
                opacity: 1;
            }

            /* Header Section */
            .mobile-menu-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 1.5rem 1.75rem; /* More breathing room */
                border-bottom: 1px solid rgba(0,0,0,0.05);
            }
            
            html.dark .mobile-menu-header {
                border-bottom: 1px solid rgba(255,255,255,0.05);
            }
            
            .mobile-logo-text {
                font-size: 1.6rem;
                font-weight: 800;
                background: linear-gradient(135deg, var(--color-primary), #3b82f6);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                letter-spacing: -0.04em;
            }
            
            .mobile-close-btn {
                width: 40px;
                height: 40px;
                border-radius: 12px;
                background: rgba(0,0,0,0.04);
                border: none;
                color: var(--text-secondary);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.2rem;
                cursor: pointer;
                transition: transform 0.2s, opacity 0.2s;
            }
            
            html.dark .mobile-close-btn {
                background: rgba(255,255,255,0.05);
            }

            /* Content Section */
            .mobile-menu-content {
                flex: 1;
                overflow-y: auto;
                padding: 1.5rem 1rem;
            }
            
            .mobile-nav-list {
                display: flex;
                flex-direction: column;
                gap: 0.5rem;
            }
            
            .mobile-nav-item {
                display: flex;
                align-items: center;
                gap: 0; /* No gap needed if icon is gone */
                padding: 0.75rem 1rem; /* More compact */
                color: var(--text-secondary);
                text-decoration: none;
                font-size: 0.9rem; /* Smaller Font */
                font-weight: 500;
                transition: transform 0.2s ease, opacity 0.2s ease;
                border: none;
                background: transparent;
                width: 100%;
                text-align: left;
                border-radius: 8px; /* Smaller radius */
            }
            
            .mobile-nav-item i {
                display: none; /* Hide all icons as requested */
            }
            
            /* Active/Hover States */
            .mobile-nav-item.active,
            .mobile-nav-item:active {
                background: rgba(59, 130, 246, 0.1); /* Subtle blue tint */
                color: #2563eb;
            }
            
            html.dark .mobile-nav-item.active,
            html.dark .mobile-nav-item:active {
                background: rgba(59, 130, 246, 0.15);
                color: #60a5fa;
            }
            
            .mobile-nav-item.active i,
            .mobile-nav-item:active i {
                color: inherit;
                transform: scale(1.1);
            }
            
            .menu-badge {
                margin-left: auto;
                background: linear-gradient(135deg, #FFD700, #F59E0B);
                color: #78350F;
                font-size: 0.7rem;
                font-weight: 800;
                padding: 3px 10px;
                border-radius: 20px;
                text-transform: uppercase;
                letter-spacing: 0.05em;
                box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
            }
            
            .mobile-divider {
                height: 1px;
                background: rgba(0,0,0,0.05);
                margin: 1rem 1.25rem;
            }
            
            html.dark .mobile-divider {
                background: rgba(255,255,255,0.05);
            }
            
            /* Theme Toggle Special */
            .theme-item {
                justify-content: space-between;
                background: rgba(0,0,0,0.03); /* Slight background distinction */
            }
            
            .theme-label {
                display: flex;
                align-items: center;
                gap: 0;
            }

            .theme-status {
                font-size: 0.8rem;
                font-weight: 600;
                background: transparent;
                padding: 0;
                border-radius: 0;
                display: flex;
                align-items: center;
                gap: 6px;
            }
            
            /* Add custom icons for theme status via CSS since we hid main icons */
            html.light .theme-status::before {
                content: '\f185'; /* Sun icon */
                font-family: 'Font Awesome 6 Free';
                font-weight: 900;
                color: #f59e0b;
            }
            
            html.dark .theme-status::before {
                content: '\f186'; /* Moon icon */
                font-family: 'Font Awesome 6 Free';
                font-weight: 900;
                color: #6366f1;
            }
            
            html.light .theme-text-dark { display: none; }
            html.dark .theme-text-light { display: none; }

            /* Footer Section */
            .mobile-menu-footer {
                padding: 1.5rem;
                border-top: 1px solid var(--border-color);
                background: var(--bg-tertiary);
            }
            
            .mobile-wallet-btn {
                width: 100%;
                padding: 12px;
                background: linear-gradient(135deg, #7C3AED, #6D28D9);
                color: white;
                border: none;
                border-radius: 12px;
                font-weight: 600;
                font-size: 1rem;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
                cursor: pointer;
            }
            
            .mobile-wallet-btn:active {
                transform: scale(0.98);
            }
            
            .mobile-auth-note {
                font-size: 0.75rem;
                color: var(--text-muted);
                text-align: center;
                margin-top: 0.75rem;
            }
            
            /* User Profile State */
            .mobile-user-profile {
                background: var(--bg-secondary);
                padding: 12px;
                border-radius: 12px;
                display: flex;
                align-items: center;
                gap: 12px;
                border: 1px solid var(--border-color);
            }
            
            .mobile-avatar {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background: linear-gradient(135deg, #14B8A6, #0D9488);
                display: flex;
                align-items: center;
                justify-content: center;
                color: white;
            }
            
            .mobile-user-info {
                flex: 1;
                display: flex;
                flex-direction: column;
            }
            
            .wallet-addr {
                font-weight: 600;
                font-size: 0.9rem;
                color: var(--text-primary);
            }
            
            .mobile-user-info small {
                color: var(--text-secondary);
            }
            
            .mobile-dashboard-btn {
                width: 32px;
                height: 32px;
                border-radius: 50%;
                background: var(--bg-tertiary);
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--text-secondary);
                text-decoration: none;
            }
        }
        
        /* Ensure bottom nav is above everything else if needed, but menu usually goes on top */
        .mobile-bottom-nav {
            z-index: 10000; /* Higher than menu? No, menu should be higher or same. Let's make menu higher to cover it or match */
        }
        
        /* ============ CLEAN MINIMALIST MOBILE MENU (Futurepedia Style) ============ */
        @media (max-width: 768px) {
            /* Clean White Background */
            .mobile-menu {
                background: #ffffff !important;
                backdrop-filter: none !important;
            }
            
            html.dark .mobile-menu {
                background: #0f172a !important;
            }
            
            /* Header Brand */
            .mobile-header-brand {
                display: flex;
                align-items: center;
                gap: 10px;
            }
            
            .mobile-logo-img {
                height: 32px;
                width: auto;
            }
            
            .mobile-logo-text {
                font-size: 1.5rem;
                font-weight: 700;
                color: #1e293b;
            }
            
            html.dark .mobile-logo-text {
                color: #f1f5f9;
            }
            
            .mobile-close-btn {
                width: 36px;
                height: 36px;
                border-radius: 8px;
                background: transparent;
                border: none;
                color: #64748b;
                font-size: 1.3rem;
                cursor: pointer;
            }
            
            /* Simple Navigation Links */
            .mobile-nav-simple {
                display: flex;
                flex-direction: column;
            }
            
            .mobile-link {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 18px 24px;
                color: #1e293b;
                text-decoration: none;
                font-size: 1.05rem;
                font-weight: 500;
                border-bottom: 1px solid #f1f5f9;
                transition: background 0.15s;
            }
            
            html.dark .mobile-link {
                color: #f1f5f9;
                border-bottom-color: #1e293b;
            }
            
            .mobile-link:active,
            .mobile-link.active {
                background: #f8fafc;
            }
            
            html.dark .mobile-link:active,
            html.dark .mobile-link.active {
                background: #1e293b;
            }
            
            /* Badges */
            .mobile-badge-new {
                background: #3b82f6;
                color: white;
                font-size: 0.65rem;
                font-weight: 700;
                padding: 4px 10px;
                border-radius: 20px;
                text-transform: uppercase;
                letter-spacing: 0.03em;
            }
            
            .mobile-badge-hot {
                background: linear-gradient(135deg, #f97316, #ef4444);
                color: white;
                font-size: 0.65rem;
                font-weight: 700;
                padding: 4px 10px;
                border-radius: 20px;
                text-transform: uppercase;
                letter-spacing: 0.03em;
            }
            
            /* Footer with CTAs */
            .mobile-menu-footer {
                display: flex;
                gap: 12px;
                padding: 20px 24px;
                background: #ffffff;
                border-top: 1px solid #f1f5f9;
            }
            
            html.dark .mobile-menu-footer {
                background: #0f172a;
                border-top-color: #1e293b;
            }
            
            .mobile-cta-btn {
                flex: 1;
                padding: 14px 20px;
                font-size: 0.95rem;
                font-weight: 600;
                border-radius: 50px;
                cursor: pointer;
                transition: transform 0.2s, opacity 0.2s;
                text-align: center;
                text-decoration: none;
                display: inline-block;
            }
            
            .mobile-cta-btn.outline {
                background: transparent;
                color: #3b82f6;
                border: 2px solid #e2e8f0;
            }
            
            html.dark .mobile-cta-btn.outline {
                color: #60a5fa;
                border-color: #334155;
            }
            
            .mobile-cta-btn.solid {
                background: #3b82f6;
                color: white;
                border: 2px solid #3b82f6;
            }
            
            .mobile-cta-btn.solid:active {
                transform: scale(0.98);
            }
            
            /* Content padding adjustment */
            .mobile-menu-content {
                padding: 0;
            }
            
            .mobile-menu-header {
                padding: 20px 24px;
                border-bottom: 1px solid #f1f5f9;
            }
            
            html.dark .mobile-menu-header {
                border-bottom-color: #1e293b;
            }
        }
