        :root {
            --primary: #FF6B35;
            --primary-dark: #E85A2B;
            --secondary: #F7931E;
            --accent: #00D9FF;
            --success: #00C896;
            --warning: #FFB800;
            --error: #FF3366;
            --dark: #1A1A2E;
            --dark-light: #2A2A3E;
            --gray-900: #16213E;
            --gray-800: #1F2937;
            --gray-700: #374151;
            --gray-600: #4B5563;
            --gray-500: #6B7280;
            --gray-400: #9CA3AF;
            --gray-300: #D1D5DB;
            --gray-200: #E5E7EB;
            --gray-100: #F3F4F6;
            --gray-50: #F9FAFB;
            --white: #FFFFFF;
            --gradient-main: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
            --gradient-accent: linear-gradient(135deg, #00D9FF 0%, #00C896 100%);
            --gradient-dark: linear-gradient(180deg, #1A1A2E 0%, #16213E 100%);
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
        }

        /* Mobile-First Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: white;
            color: var(--gray-900);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            touch-action: manipulation;
            overscroll-behavior-y: contain;
        }

        /* Performance optimized background */
        .bg-pattern {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: white;
            opacity: 1;
        }

        .bg-pattern::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
        }

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

        .header-content {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0.75rem 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        @media (min-width: 768px) {
            .header-content {
                padding: 1rem 1.5rem;
            }
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            background: var(--gradient-main);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 18px;
            color: white;
            transition: transform 0.2s ease;
        }

        @media (min-width: 768px) {
            .logo-icon {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
        }

        .logo:hover .logo-icon {
            transform: scale(1.05);
        }

        .logo-text {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--gray-900);
            font-family: 'Orbitron', monospace;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        @media (min-width: 768px) {
            .logo-text {
                font-size: 1.25rem;
                font-family: 'Orbitron', monospace;
                letter-spacing: 0.05em;
                text-transform: uppercase;
            }
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .mobile-menu-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border: none;
            background: transparent;
            color: var(--gray-700);
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.5rem;
        }
        
        @media (min-width: 768px) {
            .mobile-menu-btn {
                display: none;
            }
        }

        /* Main Container - Mobile First */
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 1rem;
        }

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

        /* Hero Section - Mobile Optimized */
        .hero {
            text-align: center;
            padding: 1.5rem 0 2rem;
        }

        @media (min-width: 768px) {
            .hero {
                padding: 3rem 0;
            }
        }

        .hero h1 {
            font-size: clamp(1.75rem, 5vw, 3.5rem);
            font-weight: 800;
            line-height: 1.2;
            color: var(--gray-900);
            margin-bottom: 0.75rem;
        }

        @media (min-width: 768px) {
            .hero h1 {
                margin-bottom: 1rem;
            }
        }

        .hero h1 span {
            background: var(--gradient-main);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-subtitle {
            font-size: 1rem;
            color: var(--gray-600);
            margin-bottom: 1.5rem;
            padding: 0 1rem;
        }

        @media (min-width: 768px) {
            .hero-subtitle {
                font-size: 1.25rem;
                margin-bottom: 2rem;
                padding: 0;
            }
        }

        /* Quick Stats - Mobile Grid */
        .quick-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }

        @media (min-width: 768px) {
            .quick-stats {
                display: flex;
                justify-content: center;
                gap: 3rem;
                margin-bottom: 3rem;
            }
        }

        .stat {
            text-align: center;
        }

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

        @media (min-width: 768px) {
            .stat-value {
                font-size: 2rem;
            }
        }

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

        @media (min-width: 768px) {
            .stat-label {
                font-size: 0.875rem;
            }
        }



        /* Navigation Tabs - Mobile Optimized */
        .nav-tabs {
            display: flex;
            gap: 0.5rem;
            overflow-x: auto;
            padding: 0.5rem;
            background: white;
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
            margin-bottom: 1.5rem;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            scroll-snap-type: x mandatory;
            scroll-padding: 0.5rem;
        }

        @media (min-width: 768px) {
            .nav-tabs {
                border-radius: 16px;
                margin-bottom: 2rem;
                justify-content: center;
                flex-wrap: wrap;
            }
        }

        .nav-tabs::-webkit-scrollbar {
            display: none;
        }

        /* Mobile scroll indicator */
        .nav-tabs::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 2rem;
            background: linear-gradient(to right, transparent, white);
            pointer-events: none;
            display: block;
        }

        @media (min-width: 768px) {
            .nav-tabs::after {
                display: none;
            }
        }

        .tab-btn {
            flex: 0 0 auto;
            padding: 0.875rem 1.25rem;
            border: none;
            background: transparent;
            color: var(--gray-600);
            font-weight: 500;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.875rem;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            scroll-snap-align: start;
            min-height: 48px;
            position: relative;
        }

        @media (min-width: 768px) {
            .tab-btn {
                padding: 0.75rem 1.5rem;
                border-radius: 12px;
            }
        }

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

        .tab-btn:active {
            transform: scale(0.98);
        }

        .tab-btn.active {
            background: var(--gradient-main);
            color: white;
            box-shadow: var(--shadow);
        }

        .tab-icon {
            font-size: 1.125rem;
        }

        @media (min-width: 768px) {
            .tab-icon {
                font-size: 1.25rem;
            }
        }

        /* Content Sections */
        .content-section {
            display: none;
        }

        .content-section.active {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }

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

        /* Card - Mobile Optimized */
        .card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--gray-200);
            margin-bottom: 1.5rem;
        }

        @media (min-width: 768px) {
            .card {
                border-radius: 16px;
                padding: 2rem;
                margin-bottom: 2rem;
            }
        }

        .card-header {
            margin-bottom: 1.5rem;
        }

        @media (min-width: 768px) {
            .card-header {
                margin-bottom: 2rem;
            }
        }

        .card-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 0.5rem;
        }

        @media (min-width: 768px) {
            .card-title {
                font-size: 1.5rem;
            }
        }

        .card-subtitle {
            color: var(--gray-600);
            font-size: 0.875rem;
        }

        /* Form Elements - Touch Optimized */
        .form-group {
            margin-bottom: 1.25rem;
        }

        @media (min-width: 768px) {
            .form-group {
                margin-bottom: 1.5rem;
            }
        }

        .form-label {
            display: block;
            font-weight: 500;
            color: var(--gray-700);
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
        }

        .form-input,
        .form-select {
            width: 100%;
            padding: 1rem;
            border: 1.5px solid var(--gray-300);
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.2s ease;
            background: white;
            font-family: inherit;
            min-height: 48px;
            -webkit-appearance: none;
            appearance: none;
        }

        @media (min-width: 768px) {
            .form-input,
            .form-select {
                padding: 0.75rem 1rem;
                border-radius: 8px;
                border-width: 1px;
            }
        }

        /* Custom select arrow */
        .form-select {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23374151' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 12px;
            padding-right: 2.5rem;
        }

        .form-input:hover,
        .form-select:hover {
            border-color: var(--gray-400);
        }

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

        /* Input type number - remove spinners on mobile */
        @media (max-width: 768px) {
            input[type="number"]::-webkit-inner-spin-button,
            input[type="number"]::-webkit-outer-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }
            
            input[type="number"] {
                -moz-appearance: textfield;
            }
        }

        /* Conversion Layout - Mobile First */
        .conversion-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        @media (min-width: 768px) {
            .conversion-grid {
                grid-template-columns: 1fr auto 1fr;
                gap: 1.5rem;
                align-items: start;
                margin-top: 2rem;
            }
        }

        .conversion-arrow {
            color: var(--primary);
            font-size: 2rem;
            text-align: center;
            transform: rotate(90deg);
            margin: 0.5rem 0;
        }

        @media (min-width: 768px) {
            .conversion-arrow {
                padding-top: 2.5rem;
                transform: none;
                margin: 0;
            }
        }

        /* Result Display - Mobile Optimized */
        .result-box {
            background: var(--gradient-main);
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            margin-top: 0.5rem;
            color: white;
            position: relative;
            overflow: hidden;
        }

        @media (min-width: 768px) {
            .result-box {
                padding: 2rem;
                margin-top: 1rem;
            }
        }

        .result-box::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
            transform: rotate(45deg);
            transition: all 0.5s ease;
        }

        .result-label {
            font-size: 0.875rem;
            opacity: 0.9;
            margin-bottom: 0.5rem;
        }

        .result-value {
            font-size: 2rem;
            font-weight: 700;
            line-height: 1.2;
            word-break: break-all;
            position: relative;
            z-index: 1;
        }

        @media (min-width: 768px) {
            .result-value {
                font-size: 2.5rem;
            }
        }

        .result-meta {
            font-size: 0.875rem;
            opacity: 0.9;
            margin-top: 0.5rem;
        }

        /* Cooking Specific Styles */
        .recipe-converter {
            display: grid;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .serving-adjuster {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 1rem;
            align-items: center;
            background: var(--gray-50);
            padding: 1.5rem;
            border-radius: 12px;
        }

        .serving-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
            text-align: center;
        }

        /* Quick Access Grid - Mobile Optimized */
        .quick-access-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }

        @media (min-width: 480px) {
            .quick-access-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 1rem;
            }
        }

        @media (min-width: 768px) {
            .quick-access-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                margin-bottom: 2rem;
            }
        }

        .quick-btn {
            padding: 1rem 0.5rem;
            background: white;
            border: 1.5px solid var(--gray-200);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            font-weight: 500;
            color: var(--gray-700);
            font-size: 0.875rem;
            min-height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @media (min-width: 768px) {
            .quick-btn {
                padding: 1rem;
                border-radius: 8px;
                border-width: 1px;
            }
        }

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

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

        /* Crypto Cards - Mobile Optimized */
        .crypto-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }

        @media (min-width: 480px) {
            .crypto-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1rem;
            }
        }

        @media (min-width: 768px) {
            .crypto-grid {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                margin-bottom: 2rem;
            }
        }

        .crypto-card {
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 10px;
            padding: 1rem;
            text-align: center;
            transition: all 0.2s ease;
        }

        @media (min-width: 768px) {
            .crypto-card {
                border-radius: 12px;
            }
        }

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

        .crypto-card:active {
            transform: translateY(0);
        }

        .crypto-symbol {
            font-weight: 700;
            color: var(--gray-700);
            font-size: 0.8125rem;
            margin-bottom: 0.25rem;
        }

        @media (min-width: 768px) {
            .crypto-symbol {
                font-size: 0.875rem;
            }
        }

        .crypto-price {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--gray-900);
        }

        @media (min-width: 768px) {
            .crypto-price {
                font-size: 1.25rem;
            }
        }

        .crypto-change {
            font-size: 0.75rem;
            margin-top: 0.25rem;
        }

        .crypto-change.positive {
            color: var(--success);
        }

        .crypto-change.negative {
            color: var(--error);
        }

        /* Visual Calculator - Mobile Optimized */
        .visual-calc-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin: 1.5rem 0;
        }

        @media (min-width: 480px) {
            .visual-calc-grid {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            }
        }

        @media (min-width: 768px) {
            .visual-calc-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 1.5rem;
                margin: 2rem 0;
            }
        }

        .calc-input-card {
            background: var(--gray-50);
            border: 1px solid var(--gray-200);
            border-radius: 10px;
            padding: 1.25rem;
        }

        @media (min-width: 768px) {
            .calc-input-card {
                border-radius: 12px;
                padding: 1.5rem;
            }
        }

        .visual-result-card {
            grid-column: 1 / -1;
            background: var(--gradient-main);
            color: white;
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
        }

        @media (min-width: 768px) {
            .visual-result-card {
                padding: 2rem;
            }
        }

        .visual-result-card h3 {
            font-size: 0.875rem;
            font-weight: 500;
            opacity: 0.9;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        @media (min-width: 768px) {
            .visual-result-card h3 {
                font-size: 1rem;
            }
        }

        .visual-result-card .big-number {
            font-size: 2.5rem;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        @media (min-width: 768px) {
            .visual-result-card .big-number {
                font-size: 3rem;
            }
        }

        .visual-result-card .unit {
            font-size: 1.125rem;
            opacity: 0.9;
        }

        @media (min-width: 768px) {
            .visual-result-card .unit {
                font-size: 1.25rem;
            }
        }

        .visual-result-card .meta-info {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 0.875rem;
            opacity: 0.9;
        }

        /* AI Search Styles - Mobile Optimized */
        .ai-search-container {
            max-width: 800px;
            margin: 1.5rem auto;
        }

        @media (min-width: 768px) {
            .ai-search-container {
                margin: 2rem auto;
            }
        }

        .ai-search-wrapper {
            position: relative;
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            padding: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }

        @media (min-width: 768px) {
            .ai-search-wrapper {
                border-radius: 20px;
                flex-direction: row;
                align-items: center;
                gap: 1rem;
            }
        }

        .ai-search-wrapper:focus-within {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 15px 50px rgba(255, 107, 53, 0.2);
        }

        .ai-badge {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--gradient-main);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 10px;
            font-size: 0.875rem;
            font-weight: 600;
            white-space: nowrap;
            align-self: flex-start;
        }

        @media (min-width: 768px) {
            .ai-badge {
                border-radius: 12px;
            }
        }

        .ai-icon {
            font-size: 1.125rem;
            animation: pulse 2s ease-in-out infinite;
        }

        @media (min-width: 768px) {
            .ai-icon {
                font-size: 1.25rem;
            }
        }

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

        .ai-search-input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 1rem;
            color: var(--gray-900);
            padding: 0.75rem 0.5rem;
            background: transparent;
            width: 100%;
        }

        @media (min-width: 768px) {
            .ai-search-input {
                font-size: 1.125rem;
                padding: 0.75rem 0;
            }
        }

        .ai-search-input::placeholder {
            color: var(--gray-400);
            font-size: 0.875rem;
        }

        @media (min-width: 768px) {
            .ai-search-input::placeholder {
                font-size: 1rem;
            }
        }

        .ai-search-actions {
            display: flex;
            gap: 0.5rem;
            width: 100%;
        }

        @media (min-width: 768px) {
            .ai-search-actions {
                width: auto;
            }
        }

        .voice-btn {
            width: 48px;
            height: 48px;
            border: none;
            background: var(--gray-100);
            border-radius: 12px;
            cursor: pointer;
            font-size: 1.25rem;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        @media (min-width: 768px) {
            .voice-btn {
                font-size: 1.5rem;
            }
        }

        .voice-btn:hover {
            background: var(--gray-200);
            transform: scale(1.05);
        }

        .voice-btn:active {
            transform: scale(0.95);
        }

        .voice-btn.recording {
            background: var(--error);
            color: white;
            animation: recording 1s ease-in-out infinite;
        }

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

        .ai-search-btn {
            flex: 1;
            padding: 0.875rem 1.5rem;
            background: var(--gradient-main);
            border: none;
            border-radius: 12px;
            color: white;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 48px;
        }

        @media (min-width: 768px) {
            .ai-search-btn {
                flex: 0 0 auto;
                padding: 0.75rem 2rem;
            }
        }

        .ai-search-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
        }

        .ai-search-btn:active {
            transform: scale(0.98);
        }

        /* AI Suggestions - Mobile Optimized */
        .ai-suggestions {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            scroll-snap-type: x mandatory;
            padding: 0 0.25rem;
        }

        @media (min-width: 768px) {
            .ai-suggestions {
                flex-wrap: wrap;
                justify-content: center;
                overflow-x: visible;
            }
        }

        .ai-suggestions::-webkit-scrollbar {
            display: none;
        }

        .suggestion-chip {
            flex: 0 0 auto;
            padding: 0.625rem 1.125rem;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 20px;
            font-size: 0.8125rem;
            color: var(--gray-600);
            cursor: pointer;
            transition: all 0.2s ease;
            scroll-snap-align: start;
            white-space: nowrap;
        }

        @media (min-width: 768px) {
            .suggestion-chip {
                padding: 0.5rem 1rem;
                font-size: 0.875rem;
            }
        }

        .suggestion-chip:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .suggestion-chip:active {
            transform: translateY(0);
        }

        /* AI Result Display */
        .ai-result-container {
            margin: 2rem auto;
            max-width: 600px;
            animation: slideIn 0.3s ease-out;
        }

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

        .ai-result-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            border: 2px solid var(--gray-200);
        }

        .ai-result-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1.5rem;
            background: var(--gradient-main);
            color: white;
        }

        .ai-avatar {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .ai-name {
            font-weight: 600;
            font-size: 1.125rem;
        }

        .ai-result-content {
            padding: 2rem;
        }

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

        .ai-explanation {
            color: var(--gray-600);
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .ai-steps {
            background: var(--gray-50);
            border-radius: 12px;
            padding: 1rem;
            margin-top: 1rem;
        }

        .ai-step {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
            color: var(--gray-700);
            font-size: 0.875rem;
        }

        .ai-step-icon {
            width: 24px;
            height: 24px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .ai-result-actions {
            display: flex;
            gap: 1rem;
            padding: 1.5rem;
            background: var(--gray-50);
            border-top: 1px solid var(--gray-200);
        }

        .ai-action-btn {
            flex: 1;
            padding: 0.75rem 1rem;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            cursor: pointer;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--gray-700);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.2s ease;
        }

        .ai-action-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        /* AI Learning Notification */
        .ai-learning {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: white;
            border-radius: 12px;
            padding: 1rem 1.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 0.75rem;
            animation: slideUp 0.3s ease-out;
            z-index: 1000;
        }

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

        .ai-learning-icon {
            width: 32px;
            height: 32px;
            background: var(--gradient-main);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: rotate 2s linear infinite;
        }

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

        /* Footer */
        footer {
            margin-top: 4rem;
            padding: 3rem 0;
            background: var(--gray-900);
            color: white;
        }

        .footer-content {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

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

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

        .footer-link {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 0.875rem;
            transition: color 0.2s ease;
        }

        .footer-link:hover {
            color: white;
        }

        .footer-bottom {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.875rem;
        }

        /* Contact Form Styles */
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }

        .contact-input,
        .contact-textarea {
            padding: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            font-size: 0.875rem;
            font-family: inherit;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            transition: all 0.2s ease;
            resize: vertical;
        }

        .contact-input::placeholder,
        .contact-textarea::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .contact-input:focus,
        .contact-textarea:focus {
            outline: none;
            border-color: var(--primary);
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
        }

        .contact-textarea {
            min-height: 80px;
            max-height: 120px;
        }

        .contact-btn {
            background: var(--gradient-main);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s ease;
            align-self: flex-start;
        }

        .contact-btn:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-lg);
        }

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

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

        @media (max-width: 768px) {
            .contact-form {
                gap: 0.5rem;
            }
            
            .contact-input,
            .contact-textarea {
                padding: 0.625rem;
                font-size: 0.8125rem;
            }
            
            .contact-btn {
                padding: 0.625rem 1.25rem;
                font-size: 0.8125rem;
                width: 100%;
            }
        }

        /* Mobile Optimizations */
        @media (max-width: 768px) {
            /* Add padding to prevent content being hidden */
            body {
                padding-bottom: calc(60px + env(safe-area-inset-bottom));
            }

            /* AI Mobile Styles */
            .ai-suggestions {
                gap: 0.5rem;
                padding: 0 0.5rem;
                overflow-x: auto;
                display: flex;
                flex-wrap: nowrap;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }

            .ai-suggestions::-webkit-scrollbar {
                display: none;
            }

            .suggestion-chip {
                font-size: 0.8125rem;
                padding: 0.5rem 1rem;
                flex: 0 0 auto;
            }

            .ai-result-content {
                padding: 1.5rem;
            }

            .ai-answer {
                font-size: 1.5rem;
            }

            .ai-result-actions {
                flex-direction: column;
                gap: 0.75rem;
            }
            
            .ai-action-btn {
                min-height: 48px;
            }

            /* Quick Access Grid */
            .quick-access-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }

            .quick-btn {
                padding: 0.875rem 0.5rem;
                font-size: 0.8125rem;
                min-height: 48px;
            }

            /* Visual Calculator Grid */
            .visual-calc-grid {
                gap: 1rem;
                margin: 1.5rem 0;
            }

            .calc-input-card {
                padding: 1.25rem;
            }

            .visual-result-card {
                padding: 1.5rem;
            }

            .visual-result-card .big-number {
                font-size: 2.5rem;
            }

            /* Crypto Grid */
            .crypto-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }

            .crypto-card {
                padding: 0.875rem;
            }

            /* SEO Content */
            .seo-content {
                margin: 2rem auto;
            }
            
            .seo-content h2 {
                font-size: 1.5rem;
            }
            
            .seo-content h3 {
                font-size: 1.125rem;
            }

            /* Footer */
            footer {
                margin-top: 3rem;
                padding: 2rem 0;
            }

            .footer-content {
                gap: 2rem;
            }


        }

        /* Touch-friendly interactions */
        @media (hover: none) and (pointer: coarse) {
            .tab-btn:active,
            .quick-btn:active,
            .ai-search-btn:active,
            .voice-btn:active {
                background-color: rgba(0, 0, 0, 0.05);
            }
            
            .tab-btn.active:active {
                background: var(--gradient-main);
            }
        }

        /* Landscape mobile optimizations */
        @media (max-width: 768px) and (orientation: landscape) {
            .hero {
                padding: 1rem 0;
            }
            
            .hero h1 {
                font-size: 1.5rem;
            }
            
            .ai-search-container {
                margin: 1rem auto;
            }
            
            .quick-stats {
                display: none;
            }
        }

        /* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Toast notifications - White theme */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white;
    color: var(--gray-900);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* AI Result Container */
.ai-result-container {
    margin-top: 1rem;
}

.ai-result-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.ai-result-content.success {
    border-left: 4px solid var(--success);
}

.ai-result-content.error {
    border-left: 4px solid var(--error);
}

.ai-answer {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-result-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ai-action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

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

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

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

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
}

.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background: var(--gray-50);
}

.menu-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray-600);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--primary);
    background: var(--gray-50);
}

.bottom-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.bottom-nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.2s ease;
}

.fab:hover {
    transform: scale(1.1);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* AI Result Card */
.ai-result-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    margin-top: 1rem;
}

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

.ai-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.ai-info {
    flex: 1;
}

.ai-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.ai-status {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
}

/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-main);
    color: white;
    padding: 1rem;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.install-banner.show {
    transform: translateY(0);
}

.install-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.install-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.install-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.ripple-effect:active::after {
    width: 200px;
    height: 200px;
}

/* History and Favorites */
.history-list, .favorites-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item, .favorite-item {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover, .favorite-item:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.history-query, .favorite-query {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.history-result, .favorite-result {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.history-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorite-content {
    flex: 1;
}

.remove-favorite {
    background: var(--error);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Keyboard Active State */
.keyboard-active .bottom-nav {
    display: none;
}

.keyboard-active .fab {
    bottom: 20px;
}

/* Suggestions Container */
.ai-suggestions-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.suggestion-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

        /* Reduce motion for accessibility */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* Mobile Bottom Navigation */
        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid var(--gray-200);
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 998;
            padding-bottom: env(safe-area-inset-bottom);
        }

        @media (max-width: 768px) {
            .mobile-bottom-nav {
                display: flex;
                justify-content: space-around;
                align-items: center;
            }
            
            /* Add extra padding to body for bottom nav */
            body {
                padding-bottom: calc(120px + env(safe-area-inset-bottom));
            }
        }

        .bottom-nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 0.5rem;
            border: none;
            background: transparent;
            color: var(--gray-500);
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            min-height: 60px;
        }

        .bottom-nav-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3px;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .bottom-nav-item.active {
            color: var(--primary);
        }

        .bottom-nav-item.active::before {
            width: 60%;
        }

        .bottom-nav-icon {
            font-size: 1.25rem;
            margin-bottom: 0.25rem;
        }

        .bottom-nav-label {
            font-size: 0.75rem;
            font-weight: 500;
        }

        /* Mobile Sticky Ad Update */






        /* Safe Area Support for Modern Devices */
        @supports (padding: max(0px)) {
            .header {
                padding-top: max(0px, env(safe-area-inset-top));
            }
            
            .container {
                padding-left: max(1rem, env(safe-area-inset-left));
                padding-right: max(1rem, env(safe-area-inset-right));
            }
            
            @media (min-width: 768px) {
                .container {
                    padding-left: max(1.5rem, env(safe-area-inset-left));
                    padding-right: max(1.5rem, env(safe-area-inset-right));
                }
            }
        }

        /* Loading State for Better UX */
        .loading-skeleton {
            background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: 8px;
            height: 48px;
            margin-bottom: 1rem;
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Improved Touch Targets */
        @media (hover: none) and (pointer: coarse) {
            /* Ensure all interactive elements are at least 44x44px */
            button, 
            .tab-btn, 
            .quick-btn,
            .form-input,
            .form-select,
            .suggestion-chip,
            .ai-action-btn,
            .footer-link {
                min-height: 44px;
                min-width: 44px;
            }
            
            /* Add more padding to links for easier tapping */
            a {
                padding: 0.25rem;
                margin: -0.25rem;
            }
        }

        /* Mobile Menu Overlay */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-menu {
            position: absolute;
            top: 0;
            right: 0;
            width: 80%;
            max-width: 320px;
            height: 100%;
            background: white;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            overflow-y: auto;
            box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        }

        .mobile-menu-overlay.active .mobile-menu {
            transform: translateX(0);
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--gray-200);
            background: var(--gray-50);
        }

        .mobile-menu-header h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--gray-900);
        }

        .mobile-menu-close {
            width: 40px;
            height: 40px;
            border: none;
            background: transparent;
            font-size: 1.5rem;
            color: var(--gray-600);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .mobile-menu-close:hover {
            background: var(--gray-100);
        }

        .mobile-menu-content {
            padding: 1rem 0;
        }

        .mobile-menu-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.5rem;
            color: var(--gray-700);
            text-decoration: none;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }

        .mobile-menu-item:hover,
        .mobile-menu-item:active {
            background: var(--gray-50);
            color: var(--primary);
            border-left-color: var(--primary);
        }

        .menu-icon {
            font-size: 1.25rem;
            width: 32px;
            text-align: center;
        }

        /* Touch feedback for better mobile UX */
        button:active,
        .tab-btn:active,
        .quick-btn:active,
        .suggestion-chip:active,
        .crypto-card:active {
            transform: scale(0.95);
        }
        
        .ai-search-btn:active {
            transform: scale(0.98);
        }
        
        /* Prevent text selection on interactive elements */
        button,
        .tab-btn,
        .quick-btn,
        .suggestion-chip,
        .bottom-nav-item,
        .mobile-menu-item {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        /* Section-specific styles */
        .conversion-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--gray-200);
            margin-bottom: 1.5rem;
        }

        .conversion-card h3 {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 1rem;
        }

        .convert-btn {
            width: 100%;
            padding: 0.75rem;
            background: var(--gradient-main);
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 1rem;
        }

        .convert-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

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

        /* Portfolio and multi-input styles */
        .portfolio-row {
            display: grid;
            grid-template-columns: 1fr 1fr auto;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            align-items: center;
        }

        /* Physics calculator specific styles */
        #physics-inputs {
            margin: 1rem 0;
        }

        /* EV and advanced calculator styles */
        .visual-calc-grid .conversion-card {
            min-height: auto;
        }

        /* Carbon footprint result styling */
        .carbon-result {
            background: var(--gradient-accent);
            color: white;
            border-radius: 12px;
            padding: 1rem;
            text-align: center;
            margin-top: 1rem;
        }

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

        /* Home improvement material list */
        .material-list {
            background: var(--gray-50);
            border-radius: 8px;
            padding: 1rem;
            margin-top: 1rem;
            font-size: 0.875rem;
            line-height: 1.6;
        }

        /* Enhanced Mobile UX Improvements */
        
        /* Bottom navigation for mobile */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid var(--gray-200);
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            display: flex;
            padding: env(safe-area-inset-bottom, 0) 0 0 0;
        }
        
        @media (min-width: 768px) {
            .bottom-nav {
                display: none;
            }
        }
        
        .bottom-nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 0.25rem;
            text-decoration: none;
            color: var(--gray-500);
            transition: all 0.2s ease;
            min-height: 60px;
            position: relative;
        }
        
        .bottom-nav-item.active {
            color: var(--primary);
        }
        
        .bottom-nav-item:active {
            background: var(--gray-50);
        }
        
        .bottom-nav-icon {
            font-size: 1.25rem;
            margin-bottom: 0.25rem;
        }
        
        .bottom-nav-label {
            font-size: 0.6875rem;
            font-weight: 500;
            line-height: 1;
        }
        
        /* Floating Action Button for AI */
        .fab {
            position: fixed;
            bottom: 80px;
            right: 1rem;
            width: 56px;
            height: 56px;
            background: var(--gradient-main);
            border: none;
            border-radius: 50%;
            box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 999;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        @media (min-width: 768px) {
            .fab {
                display: none;
            }
        }
        
        .fab:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 30px rgba(255, 107, 53, 0.5);
        }
        
        .fab:active {
            transform: scale(0.95);
        }
        
        /* Swipe gestures and haptic feedback */
        .swipeable {
            touch-action: pan-x;
        }
        
        /* Pull to refresh styles */
        .pull-to-refresh {
            position: absolute;
            top: -60px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            opacity: 0;
            transition: all 0.3s ease;
        }
        
        .pull-to-refresh.visible {
            opacity: 1;
            top: 10px;
        }
        
        /* Enhanced touch feedback */
        .ripple-effect {
            position: relative;
            overflow: hidden;
        }
        
        .ripple-effect::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.3s ease, height 0.3s ease;
        }
        
        .ripple-effect:active::after {
            width: 100px;
            height: 100px;
        }
        
        /* Improved form inputs for mobile */
        .form-input:focus,
        .form-select:focus {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
        }
        
        /* Keyboard avoidance for mobile */
        @media (max-height: 600px) {
            .ai-search-container {
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: calc(100% - 2rem);
                z-index: 1001;
            }
            
            .keyboard-active .ai-search-container {
                top: 30%;
            }
        }
        
        /* Sticky scroll behavior */
        .scroll-sticky {
            position: sticky;
            top: 70px;
            z-index: 100;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 0.5rem 0;
            margin: 0 -1rem;
            padding-left: 1rem;
            padding-right: 1rem;
        }
        
        /* Enhanced loading states */
        .skeleton-loader {
            background: linear-gradient(90deg, 
                var(--gray-200) 25%, 
                var(--gray-300) 50%, 
                var(--gray-200) 75%
            );
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
            border-radius: 8px;
        }
        
        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        .skeleton-text {
            height: 1rem;
            margin-bottom: 0.5rem;
        }
        
        .skeleton-button {
            height: 44px;
            border-radius: 8px;
        }
        
        /* Progress indicators */
        .progress-bar {
            width: 100%;
            height: 4px;
            background: var(--gray-200);
            border-radius: 2px;
            overflow: hidden;
            margin: 1rem 0;
        }
        
        .progress-fill {
            height: 100%;
            background: var(--gradient-main);
            border-radius: 2px;
            transition: width 0.3s ease;
            width: 0%;
        }
        
        /* Ensure consistent white theme - site should always use white backgrounds */
        body {
            background: white !important; /* Pure white background */
        }
        
        .modal-content,
        .ai-result-card,
        .conversion-card,
        .card,
        .header {
            background: white !important; /* Pure white for cards and components */
        }
        
        /* Accessibility improvements */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }
        
        /* Focus management for keyboard navigation */
        .focus-trap {
            position: relative;
        }
        
        .focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }
        
        /* Toast notifications enhancement - White theme friendly */
        .toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: white;
            color: var(--gray-900);
            padding: 1rem 1.5rem;
            border-radius: 12px;
            font-size: 0.875rem;
            font-weight: 500;
            z-index: 9999;
            max-width: calc(100vw - 2rem);
            text-align: center;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            border: 1px solid var(--gray-200);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .toast.show {
            transform: translateX(-50%) translateY(0);
        }
        
        @media (min-width: 768px) {
            .toast {
                bottom: 2rem;
                max-width: 400px;
            }
        }
        
        /* Quick conversion button improvements */
        .quick-btn {
            transition: all 0.2s ease;
        }

        .quick-btn:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        /* Performance optimizations */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }
        
        /* Modal and overlay styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        
        .modal-content {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            max-width: 90vw;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease-out;
        }
        
        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
        
        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 32px;
            height: 32px;
            border: none;
            background: var(--gray-100);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: all 0.2s ease;
        }
        
        .modal-close:hover {
            background: var(--gray-200);
            transform: scale(1.1);
        }
        
        /* History and favorites panels */
        .history-list,
        .favorites-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-top: 1rem;
        }
        
        .history-item,
        .favorite-item {
            background: var(--gray-50);
            border-radius: 8px;
            padding: 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid var(--gray-200);
        }
        
        .history-item:hover,
        .favorite-item:hover {
            background: var(--gray-100);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }
        
        .favorite-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .favorite-content {
            flex: 1;
        }
        
        .history-query,
        .favorite-query {
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 0.25rem;
        }
        
        .history-result,
        .favorite-result {
            color: var(--gray-600);
            font-size: 0.875rem;
        }
        
        .history-time {
            color: var(--gray-500);
            font-size: 0.75rem;
            margin-top: 0.25rem;
        }
        
        .remove-favorite {
            width: 32px;
            height: 32px;
            border: none;
            background: var(--error);
            color: white;
            border-radius: 50%;
            cursor: pointer;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            margin-left: 0.5rem;
        }
        
        .remove-favorite:hover {
            background: #cc2a41;
            transform: scale(1.1);
        }
        
        /* Install banner styles */
        .install-banner {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: var(--gradient-main);
            color: white;
            z-index: 1000;
            padding: 0.75rem 1rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .install-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1280px;
            margin: 0 auto;
            gap: 1rem;
        }
        
        .install-btn {
            background: white;
            color: var(--primary);
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .install-btn:hover {
            background: var(--gray-100);
            transform: scale(1.05);
        }
        
        .install-close {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.25rem;
            cursor: pointer;
            padding: 0.25rem;
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        
        .install-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        /* Loading spinner */
        .loading-spinner {
            width: 16px;
            height: 16px;
            border: 2px solid transparent;
            border-top: 2px solid currentColor;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            display: inline-block;
            margin-right: 0.5rem;
        }
        
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
        
        /* Enhanced AI result styles */
        .ai-result-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            border: 2px solid var(--gray-200);
            margin: 2rem 0;
        }
        
        .ai-result-card.success {
            border-color: var(--success);
        }
        
        .ai-result-card.error {
            border-color: var(--error);
        }
        
        .ai-result-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1.5rem;
            background: var(--gradient-main);
            color: white;
        }
        
        .ai-result-card.error .ai-result-header {
            background: var(--error);
        }
        
        .ai-avatar {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }
        
        .ai-info {
            flex: 1;
        }
        
        .ai-name {
            font-weight: 600;
            font-size: 1.125rem;
            margin-bottom: 0.25rem;
        }
        
        .ai-status {
            font-size: 0.875rem;
            opacity: 0.9;
        }
        
        .ai-result-content {
            padding: 2rem;
        }
        
        .ai-answer {
            font-size: 1.125rem;
            font-weight: 500;
            color: var(--gray-900);
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }
        
        .ai-result-actions {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }
        
        .ai-action-btn {
            padding: 0.5rem 1rem;
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: 8px;
            color: var(--gray-700);
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .ai-action-btn:hover {
            background: var(--gray-200);
            color: var(--gray-900);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }
        
        .ai-suggestions-container {
            border-top: 1px solid var(--gray-200);
            padding-top: 1rem;
        }
        
        .suggestion-label {
            font-size: 0.875rem;
            color: var(--gray-600);
            margin-bottom: 0.75rem;
        }
        
        /* Enhanced ripple effect */
        .ripple-effect {
            position: relative;
            overflow: hidden;
        }
        
        .ripple-effect::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            transform: translate(-50%, -50%);
            transition: width 0.6s ease, height 0.6s ease;
            pointer-events: none;
        }
        
        .ripple-effect:active::after {
            width: 300px;
            height: 300px;
        }
        
        /* Print styles */
        @media print {
            .mobile-bottom-nav, .header-actions, 
            #cookie-notice, .fab, .bottom-nav, .install-banner {
                display: none !important;
            }
            
            body {
                padding-bottom: 0 !important;
            }
            
            .modal-overlay {
                display: none !important;
            }
        }

        @media print {
            .mobile-bottom-nav, .header-actions, 
            .fab, .ai-search-actions {
                display: none !important;
            }
            
            body {
                background: white !important;
            }
            
            .modal-overlay {
                display: none !important;
            }
        }

        /* Enhanced Language Switcher Styles - Direct CSS Implementation */
        .language-switcher {
            position: relative;
            display: inline-block;
            z-index: 1000;
            margin-right: 12px;
        }

        .language-button {
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
            padding: 0.625rem 1rem !important;
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%) !important;
            border: 2px solid rgba(255, 107, 53, 0.2) !important;
            border-radius: 12px !important;
            cursor: pointer !important;
            font-size: 0.875rem !important;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            color: var(--gray-900) !important;
            min-width: 110px !important;
            min-height: 48px !important;
            font-weight: 600 !important;
            position: relative !important;
            overflow: hidden !important;
        }

        .language-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: 10px;
        }

        .language-button:hover {
            border-color: var(--primary) !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15) !important;
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%) !important;
        }

        .language-button:hover::before {
            opacity: 1;
        }

        .language-button:focus {
            outline: none !important;
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15) !important;
            transform: translateY(-1px) !important;
        }

        .language-button:active {
            transform: translateY(0) !important;
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2) !important;
        }

        .current-language {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            position: relative;
            z-index: 1;
        }

        .language-flag {
            font-size: 18px;
            line-height: 1;
            display: inline-block;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        }

        .language-button:hover .language-flag {
            transform: scale(1.1) rotate(5deg);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
        }

        .language-name {
            font-weight: 600;
            white-space: nowrap;
            font-size: 0.875rem;
            color: var(--gray-900);
            transition: color 0.3s ease;
        }

        .language-button:hover .language-name {
            color: var(--primary);
        }

        .dropdown-arrow {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            opacity: 0.7;
            color: var(--gray-600);
            position: relative;
            z-index: 1;
        }

        .language-button[aria-expanded="true"] .dropdown-arrow {
            transform: rotate(180deg) scale(1.1);
            opacity: 1;
            color: var(--primary);
        }

        .language-dropdown {
            position: absolute !important;
            top: calc(100% + 8px) !important;
            right: 0 !important;
            min-width: 260px !important;
            background: white !important;
            border: 1px solid rgba(255, 107, 53, 0.15) !important;
            border-radius: 16px !important;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 25px rgba(255, 107, 53, 0.1) !important;
            opacity: 0 !important;
            visibility: hidden !important;
            transform: translateY(-15px) scale(0.95) !important;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
            z-index: 1001 !important;
            overflow: hidden !important;
            max-height: 450px !important;
            backdrop-filter: blur(10px) !important;
        }

        .language-dropdown::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
            opacity: 0.3;
        }

        .language-dropdown.open {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) scale(1) !important;
        }

        .language-options {
            padding: 0.75rem 0;
            max-height: 380px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--primary) transparent;
        }

        .language-options::-webkit-scrollbar {
            width: 6px;
        }

        .language-options::-webkit-scrollbar-track {
            background: rgba(255, 107, 53, 0.05);
            border-radius: 3px;
            margin: 4px;
        }

        .language-options::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
            border-radius: 3px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .language-options::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
        }

        .language-option {
            display: flex;
            align-items: center;
            gap: 14px;
            width: 100%;
            padding: 0.875rem 1.25rem;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 0.875rem;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: left;
            position: relative;
            border-radius: 12px;
            margin: 3px 12px;
            opacity: 0;
            transform: translateY(8px);
            overflow: hidden;
        }

        .language-option::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: 10px;
        }

        .language-option.animate-in {
            opacity: 1;
            transform: translateY(0);
            animation: slideInUpEnhanced 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

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

        .language-option:hover,
        .language-option.hover {
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(247, 147, 30, 0.08) 100%);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
        }

        .language-option:hover::before,
        .language-option.hover::before {
            opacity: 1;
        }

        .language-option:focus,
        .language-option.keyboard-focused {
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
            outline: 2px solid var(--primary);
            outline-offset: -2px;
            transform: translateY(-1px);
        }

        .language-option.active {
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(247, 147, 30, 0.15) 100%);
            color: var(--primary);
            font-weight: 700;
            box-shadow: 0 2px 10px rgba(255, 107, 53, 0.15);
        }

        .language-option.active::before {
            opacity: 1;
        }

        .language-option.active:after {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
            border-radius: 0 3px 3px 0;
        }

        .language-option .language-flag {
            font-size: 20px;
            line-height: 1;
            flex-shrink: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
            position: relative;
            z-index: 1;
        }

        .language-option:hover .language-flag,
        .language-option.hover .language-flag {
            transform: scale(1.15) rotate(3deg);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
        }

        .language-option.active .language-flag {
            transform: scale(1.1);
            filter: drop-shadow(0 3px 6px rgba(255, 107, 53, 0.3));
        }

        .language-names {
            display: flex;
            flex-direction: column;
            gap: 3px;
            flex: 1;
            min-width: 0;
            position: relative;
            z-index: 1;
        }

        .language-native {
            font-weight: 600;
            line-height: 1.2;
            font-size: 0.875rem;
            color: var(--gray-900);
            transition: all 0.3s ease;
        }

        .language-english {
            font-size: 0.75rem;
            color: var(--gray-500);
            line-height: 1.2;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .language-option:hover .language-native,
        .language-option.hover .language-native {
            color: var(--primary);
            transform: translateX(2px);
        }

        .language-option:hover .language-english,
        .language-option.hover .language-english {
            color: var(--gray-600);
        }

        .language-option.active .language-native {
            color: var(--primary);
            font-weight: 700;
        }

        .language-option.active .language-english {
            color: rgba(255, 107, 53, 0.8);
            font-weight: 600;
        }

        .language-check {
            opacity: 0;
            transform: scale(0.8) rotate(-10deg);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: var(--primary);
            flex-shrink: 0;
            position: relative;
            z-index: 1;
        }

        .language-check.visible {
            opacity: 1;
            transform: scale(1) rotate(0deg);
        }

        .language-check svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
            filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
        }

        /* Enhanced animations for better UX */
        @keyframes pulseGlow {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
            }
            50% {
                box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
            }
        }

        .language-button:focus {
            animation: pulseGlow 2s infinite;
        }

        /* Mobile responsive styles */
        @media (max-width: 768px) {
            .language-switcher {
                margin-right: 8px;
            }

            .language-button {
                min-width: 52px;
                padding: 0.5rem 0.75rem;
                border-width: 1.5px;
                border-radius: 10px;
            }

            .language-name {
                display: none;
            }

            .language-dropdown {
                min-width: 240px;
                right: -15px;
            }

            .language-flag {
                font-size: 18px;
            }

            .language-option {
                padding: 0.75rem 1rem;
                gap: 12px;
            }

            .language-option .language-flag {
                font-size: 18px;
            }

            .language-native {
                font-size: 0.8125rem;
            }

            .language-english {
                font-size: 0.6875rem;
            }
        }

        @media (max-width: 480px) {
            .language-button {
                min-width: 44px;
                padding: 0.375rem 0.5rem;
                gap: 4px;
            }

            .dropdown-arrow {
                display: none;
            }

            .language-dropdown {
                right: -30px;
                min-width: 220px;
            }

            .language-option {
                padding: 0.625rem 0.875rem;
                gap: 10px;
            }

            .language-option .language-flag {
                font-size: 18px;
            }

            .language-native {
                font-size: 0.75rem;
            }

            .language-english {
                font-size: 0.625rem;
            }
        }

        /* Dark mode support */
        @media (prefers-color-scheme: dark) {
            .language-button {
                background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
                border-color: rgba(255, 107, 53, 0.3);
                color: var(--gray-100);
            }

            .language-button:hover {
                background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(247, 147, 30, 0.15) 100%);
                border-color: var(--primary);
                box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25);
            }

            .language-button:focus {
                border-color: var(--primary);
                box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.25);
            }

            .language-name {
                color: var(--gray-100);
            }

            .language-dropdown {
                background: var(--gray-800);
                border-color: rgba(255, 107, 53, 0.2);
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 25px rgba(255, 107, 53, 0.15);
            }

            .language-option:hover,
            .language-option.hover {
                background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
            }

            .language-option:focus,
            .language-option.keyboard-focused {
                background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(247, 147, 30, 0.15) 100%);
                outline-color: var(--primary);
            }

            .language-option.active {
                background: linear-gradient(135deg, rgba(255, 107, 53, 0.25) 0%, rgba(247, 147, 30, 0.25) 100%);
                color: var(--primary);
            }

            .language-native {
                color: var(--gray-100);
            }

            .language-option:hover .language-native,
            .language-option.hover .language-native {
                color: var(--primary);
            }

            .language-option.active .language-native {
                color: var(--primary);
            }

            .language-english {
                color: var(--gray-400);
            }

            .language-option:hover .language-english,
            .language-option.hover .language-english {
                color: var(--gray-300);
            }

            .language-option.active .language-english {
                color: rgba(255, 107, 53, 0.9);
            }

            .language-check {
                color: var(--primary);
            }

            .language-options::-webkit-scrollbar-track {
                background: rgba(255, 107, 53, 0.1);
            }

            .language-options::-webkit-scrollbar-thumb {
                background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
            }

            .language-options::-webkit-scrollbar-thumb:hover {
                background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
            }
        }