        
        /* CSS Variables for theme support */
        :root {
            --background-primary: #FFFFFF;
            --background-secondary: #F8F9FA;
            --text-primary: #000000;
            --text-secondary: #666666;
            --border-color: #E5E5E7;
            --card-background: #FFFFFF;
            --primary-blue: #007AFF;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
            background: var(--background-primary);
            color: var(--text-primary);
            line-height: 1.5;
            min-height: 100vh;
            margin: 0;
            padding-bottom: 0;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* Dark Mode Styles */
        body.dark-mode {
            --background-primary: #000000;
            --background-secondary: #1C1C1E;
            --text-primary: #FFFFFF;
            --text-secondary: #8E8E93;
            --border-color: rgba(84, 84, 88, 0.6);
            --card-background: #1C1C1E;
        }

        /* iOS App Store Smart Banner */
        .ios-app-banner {
            display: flex;
            align-items: center;
            background: linear-gradient(to bottom, #F8F8F8, #E8E8E8);
            border-bottom: 1px solid #B2B2B2;
            padding: 10px 12px;
            gap: 10px;
            position: relative;
            z-index: 1001;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }

        body.dark-mode .ios-app-banner {
            background: linear-gradient(to bottom, #2C2C2E, #1C1C1E);
            border-bottom: 1px solid #3A3A3C;
        }

        .ios-banner-close {
            width: 28px;
            height: 28px;
            border: none;
            background: transparent;
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border-radius: 50%;
            transition: background 0.2s ease;
        }

        .ios-banner-close:hover {
            background: rgba(0, 0, 0, 0.08);
        }

        body.dark-mode .ios-banner-close:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .ios-banner-close svg {
            width: 16px;
            height: 16px;
            stroke: #8E8E93;
        }

        .ios-banner-icon {
            width: 52px;
            height: 52px;
            border-radius: 12px;
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.1);
            overflow: hidden;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        body.dark-mode .ios-banner-icon {
            background: #2C2C2E;
            border-color: rgba(255, 255, 255, 0.1);
        }

        .ios-banner-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .ios-banner-icon-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
        }

        body.dark-mode .ios-banner-icon-fallback {
            background: linear-gradient(135deg, #3a2020 0%, #2C2C2E 100%);
        }

        .ios-banner-content {
            flex: 1;
            min-width: 0;
            line-height: 1.3;
        }

        .ios-banner-title {
            font-size: 15px;
            font-weight: 600;
            color: #000;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        body.dark-mode .ios-banner-title {
            color: #fff;
        }

        .ios-banner-subtitle {
            font-size: 12px;
            color: #666;
            margin-top: 1px;
        }

        body.dark-mode .ios-banner-subtitle {
            color: #8E8E93;
        }

        .ios-banner-rating {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 2px;
        }

        .ios-banner-stars {
            font-size: 10px;
            color: #FF9500;
            letter-spacing: -1px;
        }

        .ios-banner-reviews {
            font-size: 11px;
            color: #8E8E93;
        }

        .ios-banner-button {
            background: #007AFF;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 18px;
            text-decoration: none;
            white-space: nowrap;
            flex-shrink: 0;
            transition: background 0.2s ease;
            letter-spacing: 0.3px;
        }

        .ios-banner-button:hover {
            background: #0066D6;
        }

        body.dark-mode .ios-banner-button {
            background: #0A84FF;
        }

        body.dark-mode .ios-banner-button:hover {
            background: #0077ED;
        }

        /* Banner slide-down animation */
        .ios-app-banner.show {
            display: flex;
            animation: slideDown 0.3s ease-out;
        }

        .ios-app-banner.hide {
            animation: slideUp 0.25s ease-in forwards;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @keyframes slideUp {
            from {
                transform: translateY(0);
                opacity: 1;
            }
            to {
                transform: translateY(-100%);
                opacity: 0;
            }
        }

        /* Adjust header position when banner is shown */
        body.ios-banner-visible .tejwal-header {
            top: 0;
        }

        /* Hide on desktop - only show on mobile */
        @media (min-width: 769px) {
            .ios-app-banner {
                display: none !important;
            }
        }

        /* Tejwal Header Styles - CRITICAL: Load early to prevent FOUC */
        @font-face {
            font-family: 'Asgrike';
            src: url('/static/fonts/Asgrike.otf') format('opentype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }
        
        .tejwal-header {
            background: var(--background-primary, #FFFFFF);
            padding: 16px 0;
            border-bottom: 1px solid var(--border-color, #E5E5E7);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .tejwal-header-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 40px;
        }

        .tejwal-logo {
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .logo-text-main {
            font-family: 'Asgrike', sans-serif;
            font-size: 42px;
            font-weight: normal;
            letter-spacing: 0px;
            line-height: 1;
            color: #e63946;
        }

        .logo-text-sub {
            font-family: 'Asgrike', sans-serif;
            font-size: 16px;
            font-weight: normal;
            letter-spacing: 0px;
            line-height: 1;
            color: #000000;
            text-transform: uppercase;
        }

        body.dark-mode .logo-text-sub {
            color: #ffffff;
        }

        .header-nav {
            display: flex;
            gap: 32px;
            align-items: center;
            margin-left: auto;
            margin-right: 32px;
        }

        .header-nav a {
            color: var(--text-primary, #000000);
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            transition: color 0.2s;
        }

        .header-nav a:hover {
            color: #e63946;
        }

        .header-actions {
            display: flex;
            gap: 16px;
            align-items: center;
        }

        .btn-primary-header {
            background: #e63946;
            color: white;
            padding: 10px 20px;
            border-radius: 8px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-block;
            font-size: 14px;
        }

        .btn-primary-header:hover {
            background: #d62839;
            transform: translateY(-1px);
        }

        .btn-secondary-header {
            background: transparent;
            color: var(--text-primary, #000000);
            padding: 10px 20px;
            border-radius: 8px;
            border: 1px solid var(--border-color, #E5E5E7);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-block;
            font-size: 14px;
        }

        .btn-secondary-header:hover {
            background: var(--background-secondary, #F8F9FA);
        }

        /* iOS 18 Mobile Menu Toggle Button */
        .mobile-menu-toggle {
            display: none; /* Hidden on desktop */
            background: none;
            border: none;
            padding: 8px;
            cursor: pointer;
            width: 44px; /* iOS touch target */
            height: 44px; /* iOS touch target */
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 5px;
            border-radius: 8px;
            transition: background 0.2s;
        }
        
        .mobile-menu-toggle:hover {
            background: var(--background-secondary);
        }
        
        .hamburger-line {
            width: 20px;
            height: 2px;
            background: var(--text-primary);
            border-radius: 2px;
            transition: all 0.3s ease;
        }
        
        /* Hamburger to X animation */
        .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }
        
        .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
            opacity: 0;
        }
        
        .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }
        
        /* iOS 18 Mobile Menu Overlay */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        
        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        /* Mobile Menu Container - iOS 18 Glass Design */
        .mobile-menu-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 280px;
            height: 100%;
            background: var(--background-primary);
            box-shadow: 2px 0 24px rgba(0, 0, 0, 0.15);
            transform: translateX(-100%);
            transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }
        
        .mobile-menu-overlay.active .mobile-menu-container {
            transform: translateX(0);
        }
        
        /* Mobile Menu Header */
        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .mobile-menu-logo {
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        
        .mobile-menu-close {
            background: none;
            border: none;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 50%;
            transition: background 0.2s;
        }
        
        .mobile-menu-close:hover {
            background: var(--background-secondary);
        }
        
        .mobile-menu-close svg {
            width: 24px;
            height: 24px;
            color: var(--text-primary);
        }
        
        /* Mobile Menu User Profile */
        .mobile-menu-user-profile {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .mobile-user-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .mobile-user-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .mobile-user-name {
            font-weight: 600;
            font-size: 16px;
            color: var(--text-primary);
        }
        
        .mobile-user-email {
            font-size: 13px;
            color: var(--text-secondary);
        }
        
        /* Mobile Menu Navigation */
        .mobile-menu-nav {
            flex: 1;
            padding: 8px 0;
        }
        
        .mobile-menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 20px;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            min-height: 50px; /* iOS touch target */
            transition: background 0.2s;
        }
        
        .mobile-menu-item:hover,
        .mobile-menu-item:active {
            background: var(--background-secondary);
        }
        
        .mobile-menu-icon {
            width: 24px;
            height: 24px;
            color: #e63946;
        }
        
        /* Mobile Menu Actions */
        .mobile-menu-actions {
            padding: 16px 20px;
            border-top: 1px solid var(--border-color);
        }
        
        .mobile-menu-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 14px 20px;
            background: #e63946;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            min-height: 50px; /* iOS touch target */
            transition: all 0.2s;
            text-decoration: none;
        }
        
        .mobile-menu-btn:hover {
            background: #d62839;
            transform: translateY(-1px);
        }
        
        .mobile-btn-signout {
            background: var(--background-secondary);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }
        
        .mobile-btn-signout:hover {
            background: var(--border-color);
        }

        /* Responsive Header */
        @media (max-width: 768px) {
            .mobile-menu-toggle {
                display: flex; /* Show on mobile */
            }
            
            .header-nav {
                display: none;
            }
            
            .header-actions {
                gap: 8px;
            }
            
            .logo-text-main {
                font-size: 32px;
            }
            
            .logo-text-sub {
                font-size: 14px;
            }
            
            .btn-primary-header,
            .btn-secondary-header {
                padding: 8px 16px;
                font-size: 13px;
            }
        }

        .container {
            margin: 0 auto;
            padding: 0 20px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        
        /* Mobile-first responsive container */
        @media (max-width: 480px) {
            .container {
                padding: 0 16px;
            }
        }
        
        @media (min-width: 768px) {
            .container {
                padding: 0 32px;
                max-width: 768px;
            }
        }
        
        @media (min-width: 1024px) {
            .container {
                padding: 0 40px;
                max-width: 1200px;
            }
        }
        
        @media (min-width: 1440px) {
            .container {
                max-width: 1400px;
            }
        }


        /* Marketplace Header (Search & Tabs) */
        .marketplace-header {
            background: var(--card-background);
            border-bottom: 1px solid var(--border-color);
            padding: 16px 0;
        }


        /* Sign In Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        .sign-in-modal {
            background: var(--background-primary);
            border-radius: 12px;
            width: 90%;
            max-width: 400px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            border: 1px solid var(--border-color);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .modal-header {
            display: flex;
            justify-content: flex-end;
            padding: 16px 20px 0;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 10px;
            border-radius: 50%;
            min-width: 44px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

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

        .sign-in-content {
            padding: 0 32px 32px;
        }

        .sign-in-header {
            text-align: center;
            margin-bottom: 24px;
        }

        .sign-in-header h2 {
            font-size: 28px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .sign-in-header p {
            font-size: 16px;
            color: var(--text-secondary);
        }

        /* Auth Toggle */
        .auth-toggle {
            display: flex;
            background: var(--background-secondary);
            border-radius: 10px;
            padding: 4px;
            margin-bottom: 24px;
        }

        .auth-toggle-btn {
            flex: 1;
            background: none;
            border: none;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .auth-toggle-btn.active {
            background: var(--background-primary);
            color: var(--text-primary);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        /* Auth Forms */
        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .form-group input[type="email"],
        .form-group input[type="password"],
        .form-group input[type="text"] {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            font-size: 16px;
            background: var(--background-primary);
            color: var(--text-primary);
            transition: all 0.2s ease;
            -webkit-appearance: none;
            appearance: none;
        }

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

        .form-group input::placeholder {
            color: var(--text-secondary);
        }

        /* Checkbox Group */
        .checkbox-group {
            margin-bottom: 24px;
        }

        .checkbox-label {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            font-size: 14px;
            color: var(--text-secondary);
            cursor: pointer;
            line-height: 1.4;
        }

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

        .checkmark {
            width: 20px;
            height: 20px;
            border: 2px solid var(--border-color);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
            margin-top: 1px;
        }

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

        .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
            content: '✓';
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

        .terms-link {
            color: var(--primary-blue);
            text-decoration: none;
        }

        .terms-link:hover {
            text-decoration: underline;
        }

        /* Submit Buttons */
        .auth-submit-btn {
            width: 100%;
            background: var(--primary-blue);
            color: white;
            border: none;
            padding: 16px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            margin-bottom: 20px;
            transition: all 0.2s ease;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .auth-submit-btn:hover {
            background: #0056d6;
        }

        .auth-submit-btn:disabled {
            background: var(--text-secondary);
            cursor: not-allowed;
        }


        /* Auth Divider */
        .auth-divider {
            position: relative;
            text-align: center;
            margin: 24px 0;
        }

        .auth-divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--border-color);
        }

        .auth-divider span {
            background: var(--background-primary);
            padding: 0 16px;
            color: var(--text-secondary);
            font-size: 14px;
        }

        /* Google Sign In Button */
        .google-sign-in-btn {
            width: 100%;
            background: var(--background-primary);
            border: 1px solid var(--border-color);
            padding: 14px 16px;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            transition: all 0.2s ease;
            margin-bottom: 16px;
        }

        .google-sign-in-btn:hover {
            background: var(--background-secondary);
            border-color: var(--text-secondary);
        }

        .google-icon {
            flex-shrink: 0;
        }


        /* Error Messages */
        .form-error {
            color: #FF3B30;
            font-size: 13px;
            margin-top: 6px;
            display: none;
        }

        .form-error.show {
            display: block;
        }

        .terms-notice {
            margin-top: 24px;
            padding: 16px;
            text-align: center;
        }

        .terms-notice p {
            font-size: 13px;
            color: var(--text-secondary);
            margin: 0;
            line-height: 1.4;
        }

        .general-error {
            background: #FFF2F2;
            border: 1px solid #FFD6D6;
            padding: 12px 16px;
            border-radius: 8px;
            margin-top: 16px;
        }

        /* Dark Mode Support */
        body.dark-mode .sign-in-modal {
            border-color: rgba(84, 84, 88, 0.6);
        }

        body.dark-mode .modal-close:hover {
            background: #2C2C2E;
        }

        body.dark-mode .form-group input {
            border-color: rgba(84, 84, 88, 0.6);
            background: var(--background-secondary);
        }

        body.dark-mode .google-sign-in-btn {
            border-color: rgba(84, 84, 88, 0.6);
        }

        body.dark-mode .google-sign-in-btn:hover {
            background: #2C2C2E;
            border-color: #8E8E93;
        }


        body.dark-mode .general-error {
            background: rgba(255, 59, 48, 0.1);
            border-color: rgba(255, 59, 48, 0.3);
        }

        /* ===================================
           HERO SECTION STYLES
           =================================== */
        
        .hero-section {
            background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
            padding: 60px 20px;
            position: relative;
            overflow: hidden;
        }

        body.dark-mode .hero-section {
            background: linear-gradient(135deg, #000000 0%, #1C1C1E 100%);
        }

        .hero-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .hero-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
            align-items: center;
        }

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

        .hero-headline {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
        }

        .hero-title {
            font-size: 36px;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.2;
            letter-spacing: -0.5px;
        }

        .hero-subtitle {
            font-size: 32px;
            font-weight: 700;
            color: #DC3545;
            line-height: 1.2;
        }

        .hero-description {
            font-size: 18px;
            color: var(--text-secondary);
            margin-bottom: 32px;
            line-height: 1.6;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero-trust-indicators {
            display: flex;
            justify-content: center;
            gap: 32px;
            flex-wrap: wrap;
            margin-bottom: 40px;
        }

        .trust-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .trust-icon {
            width: 24px;
            height: 24px;
            color: #DC3545;
            flex-shrink: 0;
        }

        .hero-cta-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .hero-cta-primary,
        .hero-cta-secondary {
            padding: 16px 32px;
            border-radius: 12px;
            font-size: 17px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-block;
            white-space: nowrap;
        }

        .hero-cta-primary {
            background: #DC3545;
            color: white;
            box-shadow: 0 4px 16px rgba(220, 53, 69, 0.25);
        }

        .hero-cta-primary:hover {
            background: #C82333;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(220, 53, 69, 0.35);
        }

        .hero-cta-secondary {
            background: var(--card-background);
            color: var(--text-primary);
            border: 2px solid var(--border-color);
        }

        .hero-cta-secondary:hover {
            background: var(--background-secondary);
            border-color: var(--text-secondary);
            transform: translateY(-2px);
        }

        .hero-visual {
            position: relative;
            padding: 40px 0;
        }

        .world-map-container {
            position: relative;
            max-width: 500px;
            margin: 0 auto;
        }

        .world-map {
            width: 100%;
            height: auto;
        }

        .pulse-dot {
            fill: #DC3545;
            animation: pulse 2s ease-in-out infinite;
        }

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

        .connection-line {
            stroke-dasharray: 100;
            stroke-dashoffset: 100;
            animation: drawLine 2s ease-in-out forwards;
        }

        @keyframes drawLine {
            to {
                stroke-dashoffset: 0;
            }
        }

        .floating-stat {
            position: absolute;
            background: #FFFFFF;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 20px 28px;
            border-radius: 16px;
            border: 1px solid rgba(220, 53, 69, 0.2);
            box-shadow: 0 8px 32px rgba(220, 53, 69, 0.15), 
                        0 2px 8px rgba(0, 0, 0, 0.08),
                        inset 0 1px 1px rgba(255, 255, 255, 0.8);
            animation: float 3s ease-in-out infinite;
            transition: all 0.3s ease;
        }
        
        body.dark-mode .floating-stat {
            background: #1C1C1E;
            border: 1px solid rgba(220, 53, 69, 0.3);
            box-shadow: 0 8px 32px rgba(220, 53, 69, 0.2), 
                        0 2px 8px rgba(0, 0, 0, 0.3),
                        inset 0 1px 1px rgba(255, 255, 255, 0.1);
        }
        
        .floating-stat:hover {
            transform: translateY(-12px) scale(1.05);
            box-shadow: 0 12px 40px rgba(220, 53, 69, 0.25), 
                        0 4px 12px rgba(0, 0, 0, 0.1),
                        inset 0 1px 1px rgba(255, 255, 255, 0.9);
        }

        .stat-1 {
            top: 8%;
            left: 5%;
        }

        .stat-2 {
            top: 8%;
            right: 8%;
            animation-delay: 0.4s;
        }

        .stat-3 {
            bottom: 12%;
            left: 8%;
            animation-delay: 0.8s;
        }
        
        .stat-4 {
            bottom: 12%;
            right: 5%;
            animation-delay: 1.2s;
        }

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

        .floating-stat .stat-number {
            font-size: 36px;
            font-weight: 800;
            color: #000000;
            text-align: center;
            letter-spacing: -0.5px;
            line-height: 1;
            margin-bottom: 6px;
        }
        
        body.dark-mode .floating-stat .stat-number {
            color: #FFFFFF;
        }

        .floating-stat .stat-label {
            font-size: 13px;
            font-weight: 600;
            color: #000000;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        body.dark-mode .floating-stat .stat-label {
            color: #FFFFFF;
        }

        /* Hero Responsive Design */
        @media (min-width: 768px) {
            .hero-section {
                padding: 80px 32px;
            }

            .hero-content {
                grid-template-columns: 1fr 1fr;
                gap: 60px;
            }

            .hero-text {
                text-align: left;
            }

            .hero-title {
                font-size: 48px;
            }

            .hero-subtitle {
                font-size: 42px;
            }

            .hero-description {
                font-size: 20px;
                margin-left: 0;
                margin-right: 0;
            }

            .hero-trust-indicators {
                justify-content: flex-start;
            }

            .hero-cta-buttons {
                justify-content: flex-start;
            }
        }

        @media (min-width: 1024px) {
            .hero-section {
                padding: 100px 40px;
            }

            .hero-title {
                font-size: 56px;
            }

            .hero-subtitle {
                font-size: 48px;
            }
        }

        @media (max-width: 480px) {
            .hero-section {
                padding: 40px 16px;
            }

            .hero-title {
                font-size: 28px;
            }

            .hero-subtitle {
                font-size: 26px;
            }

            .hero-description {
                font-size: 16px;
            }

            .trust-item {
                font-size: 13px;
            }

            .trust-icon {
                width: 20px;
                height: 20px;
            }

            .hero-cta-primary,
            .hero-cta-secondary {
                width: 100%;
                text-align: center;
                padding: 14px 24px;
                font-size: 16px;
            }

            .floating-stat {
                padding: 14px 18px;
            }

            .stat-number {
                font-size: 26px;
                margin-bottom: 4px;
            }

            .stat-label {
                font-size: 11px;
                letter-spacing: 0.5px;
            }
        }
        
        /* WebKit/iOS Safari specific overrides */
        @supports (-webkit-touch-callout: none) {
            header {
                border-bottom: none !important;
                border: none !important;
                -webkit-box-shadow: none !important;
            }
        }
        
        /* iPhone and mobile browser overrides */
        @media screen and (max-width: 430px) {
            header {
                border-bottom: none !important;
                border: none !important;
                box-shadow: none !important;
            }
        }

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

        .welcome-section {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .welcome-text {
            font-size: 18px;
            font-weight: 500;
            color: var(--text-secondary);
            margin: 0;
            line-height: 1.2;
        }

        .user-name-display {
            font-size: 22px;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }
        
        /* Responsive header adjustments */
        @media (max-width: 480px) {
            .welcome-text {
                font-size: 16px;
            }
            
            .user-name-display {
                font-size: 20px;
            }
            
            .header-actions {
                gap: 8px;
            }
        }
        
        @media (min-width: 768px) {
            .welcome-text {
                font-size: 20px;
            }
            
            .user-name-display {
                font-size: 26px;
            }
        }
        
        @media (min-width: 1024px) {
            .welcome-text {
                font-size: 22px;
            }
            
            .user-name-display {
                font-size: 30px;
            }
        }



        /* Tejwal Search Bar */
        .search-container {
            position: relative;
            margin-bottom: 20px;
        }

        .search-bar {
            width: 100%;
            padding: 12px 16px;
            font-size: 16px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: var(--background-secondary);
            color: var(--text-primary);
            outline: none;
            transition: all 0.2s ease;
        }

        .search-bar:focus {
            background: var(--card-background);
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
        }

        .search-bar::placeholder {
            color: var(--text-secondary);
        }
        
        /* Responsive search bar */
        @media (max-width: 480px) {
            .search-bar {
                padding: 10px 14px;
                font-size: 15px;
            }
        }
        
        @media (min-width: 768px) {
            .search-bar {
                padding: 14px 18px;
                font-size: 17px;
            }
        }
        
        @media (min-width: 1024px) {
            .search-bar {
                padding: 16px 20px;
                font-size: 18px;
            }
        }

        /* Search Suggestions */
        .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--card-background);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            margin-top: 4px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            max-height: 300px;
            overflow-y: auto;
        }

        .suggestions-list {
            padding: 8px 0;
        }

        .suggestion-item {
            padding: 12px 16px;
            cursor: pointer;
            transition: background 0.2s ease;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .suggestion-item:hover {
            background: var(--background-secondary);
        }

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

        .suggestion-text {
            flex: 1;
        }

        .suggestion-name {
            font-weight: 500;
            color: var(--text-primary);
        }

        .suggestion-meta {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        /* Marketplace Filters */
        .marketplace-filters {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 20px;
            padding: 12px 0;
        }

        .filter-group {
            position: relative;
        }

        .filter-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            background: var(--card-background);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .filter-btn:hover {
            background: var(--background-secondary);
            border-color: var(--text-secondary);
        }

        .filter-btn.active {
            background: #DC3545;
            color: white;
            border-color: #DC3545;
        }

        .filter-btn.active .filter-icon {
            color: white;
        }

        .filter-icon {
            width: 18px;
            height: 18px;
            color: var(--text-secondary);
            flex-shrink: 0;
        }

        .filter-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            background: var(--card-background);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            padding: 8px;
            min-width: 200px;
            z-index: 1000;
        }

        .filter-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .filter-option:hover {
            background: var(--background-secondary);
        }

        .filter-option input[type="radio"] {
            width: 18px;
            height: 18px;
            accent-color: #DC3545;
            cursor: pointer;
        }

        .filter-option span {
            font-size: 15px;
            color: var(--text-primary);
            cursor: pointer;
        }

        /* Active Filters */
        .active-filters {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .active-filters-label {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .active-filters-list {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .active-filter-tag {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(220, 53, 69, 0.1);
            color: #DC3545;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
        }

        .active-filter-tag button {
            background: none;
            border: none;
            color: #DC3545;
            cursor: pointer;
            padding: 0;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            line-height: 1;
        }

        .clear-filters-btn {
            padding: 6px 14px;
            background: none;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .clear-filters-btn:hover {
            background: var(--background-secondary);
            border-color: var(--text-secondary);
        }

        /* Responsive Filters */
        @media (max-width: 768px) {
            .marketplace-filters {
                gap: 8px;
            }

            .filter-btn {
                padding: 8px 12px;
                font-size: 14px;
            }

            .filter-icon {
                width: 16px;
                height: 16px;
            }

            .filter-dropdown {
                min-width: 180px;
            }
        }

        @media (max-width: 480px) {
            .marketplace-filters {
                flex-direction: column;
                align-items: stretch;
            }

            .filter-btn {
                width: 100%;
                justify-content: center;
            }

            .filter-dropdown {
                left: 0;
                right: 0;
                min-width: auto;
            }

            .active-filters {
                flex-direction: column;
                align-items: stretch;
                width: 100%;
            }

            .active-filters-list {
                width: 100%;
            }
        }

        /* Tejwal Navigation Tabs */
        .nav-tabs {
            display: flex;
            background: var(--card-background);
            margin-bottom: 16px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            gap: 0;
        }

        .nav-tab {
            flex: 1;
            padding: 12px 20px;
            text-align: center;
            background: var(--background-secondary);
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .nav-tab.active {
            background: #DC3545;
            color: #FFFFFF;
        }

        .nav-tab:not(.active):hover {
            background: var(--background-secondary);
        }
        
        /* Responsive navigation tabs */
        @media (max-width: 480px) {
            .nav-tabs {
                margin-bottom: 12px;
            }
            
            .nav-tab {
                padding: 15px 12px;
                font-size: 13px;
                min-height: 44px;
            }
        }
        
        @media (min-width: 768px) {
            .nav-tab {
                padding: 14px 24px;
                font-size: 15px;
            }
        }
        
        @media (min-width: 1024px) {
            .nav-tab {
                padding: 16px 32px;
                font-size: 16px;
            }
        }

        /* Back Link Container */
        .back-link-container {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 0;
            width: 100%;
        }

        .back-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .back-link:hover {
            color: #DC3545;
        }

        /* Clean Bundle Cards - France Style */
        .plans-section {
            background: var(--card-background);
        }

        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 20px;
        }

        .bundle-card {
            display: flex;
            align-items: center;
            padding: 16px 20px;
            background: var(--card-background);
            border-radius: 12px;
            margin-bottom: 8px;
            border: 1px solid #F0F0F0;
            transition: all 0.2s ease;
            cursor: pointer;
            flex-wrap: wrap;
            gap: 12px;
        }

        .bundle-card:first-child {
            margin-top: 0;
        }

        .plans-list {
            margin-top: 0;
            padding-top: 0;
        }

        .plans-section .container {
            padding-top: 0;
        }

        .bundle-card:hover {
            background: #FAFAFA;
            border-color: #E0E0E0;
            transform: translateY(-1px);
        }

        .bundle-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

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

        .bundle-name {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 2px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bundle-plans-count {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 400;
        }

        .bundle-price-section {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            margin-right: 12px;
            flex-shrink: 0;
        }

        .bundle-price-label {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 2px;
        }

        .bundle-price {
            font-size: 18px;
            font-weight: 600;
            color: #DC3545;
        }

        .bundle-chevron {
            color: #CCCCCC;
            font-size: 16px;
            font-weight: 500;
            flex-shrink: 0;
        }
        
        /* Responsive bundle cards */
        @media (max-width: 480px) {
            .bundle-card {
                padding: 12px 16px;
                gap: 8px;
            }
            
            .bundle-icon {
                width: 36px;
                height: 36px;
                margin-right: 12px;
                font-size: 18px;
            }
            
            .bundle-name {
                font-size: 16px;
            }
            
            .bundle-plans-count {
                font-size: 13px;
            }
            
            .bundle-price {
                font-size: 16px;
            }
            
            .bundle-price-label {
                font-size: 12px;
            }
        }
        
        @media (min-width: 768px) {
            .bundle-card {
                padding: 18px 24px;
            }
            
            .bundle-icon {
                width: 48px;
                height: 48px;
                margin-right: 20px;
                font-size: 24px;
            }
            
            .bundle-name {
                font-size: 20px;
            }
            
            .bundle-plans-count {
                font-size: 15px;
            }
            
            .bundle-price {
                font-size: 20px;
            }
        }
        
        @media (min-width: 1024px) {
            .bundle-card {
                padding: 20px 28px;
            }
            
            .bundle-name {
                font-size: 22px;
            }
            
            .bundle-price {
                font-size: 22px;
            }
        }

        /* Individual Plan Cards (for expanded view) - Redesigned */
        .plan-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 0;
            border-bottom: 1px solid #F0F0F0;
            transition: background-color 0.2s ease;
            background: white;
            flex-wrap: wrap;
            gap: 12px;
        }

        .plan-card:hover {
            background: #FAFAFA;
        }

        .plan-card:last-child {
            border-bottom: none;
        }

        .plan-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 0;
        }

        .plan-data {
            font-size: 18px;
            font-weight: 600;
            color: #DC3545;
            margin-bottom: 2px;
        }

        .plan-duration {
            font-size: 16px;
            color: var(--text-primary);
            font-weight: 400;
            margin-bottom: 4px;
        }

        .plan-coverage {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 400;
            word-wrap: break-word;
        }

        .plan-description {
            font-size: 13px;
            color: #999999;
            margin-top: 2px;
            line-height: 1.3;
        }

        .plan-price {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 12px;
            flex-shrink: 0;
        }

        .price-amount {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .buy-btn {
            background: #DC3545;
            color: #FFFFFF;
            border: none;
            border-radius: 6px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            min-height: 44px;
            min-width: 80px;
        }

        .buy-btn:hover {
            background: #C82333;
            transform: translateY(-1px);
        }
        
        /* Responsive plan cards */
        @media (max-width: 480px) {
            .plan-card {
                padding: 16px 0;
                gap: 10px;
            }
            
            .plan-info {
                gap: 4px;
            }
            
            .plan-data {
                font-size: 16px;
            }
            
            .plan-duration {
                font-size: 14px;
            }
            
            .plan-coverage {
                font-size: 13px;
            }
            
            .plan-description {
                font-size: 12px;
            }
            
            .price-amount {
                font-size: 18px;
            }
            
            .buy-btn {
                padding: 12px 16px;
                font-size: 13px;
                min-height: 44px;
            }
        }
        
        @media (min-width: 768px) {
            .plan-card {
                padding: 24px 0;
            }
            
            .plan-data {
                font-size: 20px;
            }
            
            .plan-duration {
                font-size: 18px;
            }
            
            .plan-coverage {
                font-size: 15px;
            }
            
            .price-amount {
                font-size: 22px;
            }
            
            .buy-btn {
                padding: 12px 24px;
                font-size: 15px;
                min-height: 48px;
            }
        }
        
        @media (min-width: 1024px) {
            .plan-card {
                padding: 28px 0;
            }
            
            .plan-data {
                font-size: 22px;
            }
            
            .plan-duration {
                font-size: 20px;
            }
            
            .price-amount {
                font-size: 24px;
            }
            
            .buy-btn {
                padding: 14px 28px;
                font-size: 16px;
                min-height: 52px;
            }
        }

        /* ===================================
           ENHANCED PLAN CARD FEATURES
           =================================== */

        /* Plan Badges */
        .plan-badges {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }

        .plan-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .badge-popular {
            background: rgba(220, 53, 69, 0.1);
            color: #DC3545;
        }

        .badge-value {
            background: rgba(40, 167, 69, 0.1);
            color: #28A745;
        }

        .badge-5g {
            background: rgba(0, 123, 255, 0.1);
            color: #007BFF;
        }

        .badge-new {
            background: rgba(255, 193, 7, 0.1);
            color: #FFC107;
        }

        /* Price per GB */
        .price-per-gb {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        /* Network and Coverage Indicators */
        .network-info {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
            margin-top: 8px;
        }

        .network-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 8px;
            background: var(--background-secondary);
            border-radius: 6px;
            font-size: 11px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .network-badge-4g {
            background: rgba(108, 117, 125, 0.1);
            color: #6C757D;
        }

        .network-badge-5g {
            background: rgba(0, 123, 255, 0.1);
            color: #007BFF;
        }

        .coverage-quality {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            color: var(--text-secondary);
        }

        .quality-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
        }

        .quality-excellent .quality-dot {
            background: #28A745;
        }

        .quality-good .quality-dot {
            background: #FFC107;
        }

        .quality-fair .quality-dot {
            background: #FD7E14;
        }

        .speed-estimate {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            color: var(--text-secondary);
        }

        .speed-estimate svg {
            width: 12px;
            height: 12px;
        }

        /* Carrier Information */
        .carrier-info {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        .carrier-name {
            font-weight: 500;
            color: var(--text-primary);
        }

        /* Enhanced Bundle Cards */
        .bundle-stats {
            display: flex;
            gap: 16px;
            margin-top: 8px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .bundle-stat {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .bundle-stat svg {
            width: 14px;
            height: 14px;
        }

        /* Compare Feature (future enhancement) */
        .compare-checkbox {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 20px;
            height: 20px;
            accent-color: #DC3545;
            cursor: pointer;
        }

        /* Mobile Responsive for Enhanced Features */
        @media (max-width: 480px) {
            .plan-badge {
                font-size: 10px;
                padding: 3px 8px;
            }

            .network-info {
                gap: 8px;
            }

            .network-badge,
            .coverage-quality,
            .speed-estimate {
                font-size: 10px;
            }
        }
        
        /* Firebase Authentication Styles - iOS Style */
        .auth-container {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            gap: 8px;
            background: transparent;
            padding: 0;
            border-radius: 20px;
            transition: opacity 0.2s ease;
        }

        .user-profile:hover {
            opacity: 0.7;
        }
        
        .user-photo {
            width: 40px;
            height: 40px;
            border-radius: 20px;
            border: 2px solid #E5E5E7;
        }
        
        .user-name {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: none;
        }
        
        .login-btn {
            background: white;
            color: #1d1d1f;
            border: 2px solid #E5E5E7;
            border-radius: 12px;
            padding: 12px 16px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 44px;
            white-space: nowrap;
        }
        
        .login-btn:hover {
            background: var(--background-secondary);
            border-color: #D0D0D0;
            transform: translateY(-1px);
        }
        
        .my-esim-btn {
            background: #F2F2F7;
            color: #007AFF;
            border: none;
            border-radius: 20px;
            padding: 8px 14px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 36px;
            white-space: nowrap;
        }
        
        .my-esim-btn:hover {
            background: #E5E5E7;
        }
        
        /* Responsive auth buttons */
        @media (max-width: 480px) {
            .login-btn {
                padding: 12px 12px;
                font-size: 13px;
                min-height: 44px;
            }
            
            .my-esim-btn {
                padding: 12px 12px;
                font-size: 13px;
                min-height: 44px;
            }
            
            .user-photo {
                width: 36px;
                height: 36px;
            }
        }
        
        @media (min-width: 768px) {
            .login-btn {
                padding: 14px 20px;
                font-size: 15px;
                min-height: 48px;
            }
            
            .my-esim-btn {
                padding: 10px 16px;
                font-size: 15px;
            }
            
            .user-photo {
                width: 44px;
                height: 44px;
            }
        }
        
        @media (min-width: 1024px) {
            .login-btn {
                padding: 16px 24px;
                font-size: 16px;
                min-height: 52px;
            }
        }
        
        
        /* My eSIMs Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
        }
        
        .modal-content {
            background: white;
            margin: 10% auto;
            padding: 20px;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            max-height: 70vh;
            overflow-y: auto;
        }
        
        /* Responsive modal sizing */
        @media (min-width: 769px) {
            .modal-content {
                max-width: 600px;
                padding: 32px;
                margin: 8% auto;
            }
        }
        
        @media (min-width: 1025px) {
            .modal-content {
                max-width: 700px;
                padding: 40px;
                margin: 5% auto;
                max-height: 80vh;
            }
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid #E5E5E7;
        }
        
        .modal-title {
            font-size: 20px;
            font-weight: 600;
            color: #1d1d1f;
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #8E8E93;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .esim-card {
            background: #F2F2F7;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            border: 1px solid #E5E5E7;
        }
        
        .esim-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }
        
        .esim-info {
            flex: 1;
        }
        
        .esim-country {
            font-size: 16px;
            font-weight: 600;
            color: #1d1d1f;
            margin-bottom: 4px;
        }
        
        .esim-plan {
            font-size: 14px;
            color: #8E8E93;
            margin-bottom: 8px;
        }
        
        .esim-status {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
        }
        
        .status-completed {
            background: #D4EDDA;
            color: #155724;
        }
        
        .status-pending {
            background: #FFF3CD;
            color: #856404;
        }
        
        .qr-code-btn {
            background: #007AFF;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            margin-top: 8px;
        }
        
        .qr-code-container {
            text-align: center;
            margin-top: 16px;
            padding: 16px;
            background: white;
            border-radius: 8px;
        }
        
        .qr-code {
            margin: 16px auto;
            max-width: 200px;
        }

        .search-container {
            margin: 40px 0;
            position: relative;
        }

        .search-box {
            width: 100%;
            padding: 16px 20px 16px 48px;
            border: none;
            border-radius: 12px;
            background: #F8F8F8;
            font-size: 17px;
            outline: none;
            transition: all 0.2s ease;
        }

        .search-box:focus {
            background: #F2F2F7;
        }

        .search-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #999999;
            font-size: 18px;
        }


        /* Categories - Minimal */
        .categories {
            background: var(--card-background);
            padding: 0;
            min-height: calc(100vh - 160px);
        }

        .category-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 40px;
        }

        .category-tab {
            flex: 1;
            padding: 16px 20px;
            border: none;
            border-radius: 16px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-align: center;
        }

        .category-tab:not(.active) {
            background: #F8F8F8;
            color: var(--text-secondary);
        }

        .category-tab.active {
            background: #007AFF;
            color: white;
        }

        .category-tab svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

        .tab-icon {
            font-size: 18px;
        }

        /* Plans List - Minimal */
        .plans-grid {
            display: flex;
            flex-direction: column;
            gap: 1px;
            margin-top: 24px;
            border-radius: 12px;
            overflow: hidden;
            background: #F2F2F7;
        }

        .plan-card {
            background: white;
            border-radius: 0;
            padding: 20px;
            border: none;
            transition: background-color 0.2s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .plan-card:hover {
            background: #F8F8F8;
        }

        .plan-card:first-child {
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
        }

        .plan-card:last-child {
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        .plan-icon {
            width: 32px;
            height: 32px;
            border-radius: 0;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }

        .plan-content {
            flex: 1;
            min-width: 0;
        }

        .plan-title {
            font-size: 17px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .plan-subtitle {
            font-size: 15px;
            color: var(--text-secondary);
        }


        /* Main Page Navigation Container */
        .main-page {
            transform: translateX(0);
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            width: 100%;
        }

        .main-page.slide-left {
            transform: translateX(-100%);
        }

        /* Detail Page - Minimal */
        .detail-page {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: var(--card-background);
            z-index: 900;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            padding: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .detail-page.slide-in {
            transform: translateX(0);
        }

        /* Navigation Header for Detail Page */
        .detail-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0;
            padding: 20px 24px;
            background: var(--card-background);
            border-bottom: 1px solid #F2F2F7;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .detail-header-left {
            display: flex;
            align-items: center;
        }

        .detail-header-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .detail-info-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            font-size: 11px;
            color: #8E8E93;
            padding: 4px 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 40px;
            text-align: center;
        }

        .detail-info-icon:hover {
            color: #007AFF;
        }

        .detail-info-icon svg {
            width: 16px;
            height: 16px;
            stroke-width: 2;
        }

        .detail-info-icon .icon-count {
            font-weight: 600;
            font-size: 12px;
            line-height: 1;
        }

        .detail-info-icon .icon-label {
            font-size: 9px;
            font-weight: 500;
            opacity: 0.7;
            line-height: 1;
        }

        .back-button {
            background: none;
            border: none;
            font-size: 17px;
            color: #007AFF;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px;
            border-radius: 12px;
            transition: opacity 0.2s ease;
        }

        .back-button:hover {
            opacity: 0.7;
        }

        .detail-title {
            font-size: 22px;
            font-weight: 600;
            color: var(--text-primary);
            margin-left: 16px;
        }

        /* Group Cards - Minimal */
        .group-card {
            background: white;
            border-radius: 0;
            padding: 24px 20px;
            border: none;
            transition: background-color 0.2s ease;
            cursor: pointer;
            margin-bottom: 1px;
            min-height: 80px;
        }

        .group-card:hover {
            background: #F8F8F8;
        }

        .group-card:first-child {
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
        }

        .group-card:last-child {
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        .group-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .group-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .group-count {
            font-size: 15px;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        .group-price-range {
            text-align: right;
        }

        .price-range {
            font-size: 18px;
            font-weight: 600;
            color: #007AFF;
        }

        .price-from {
            font-size: 12px;
            color: #8E8E93;
            margin-top: 2px;
        }

        .navigate-icon {
            font-size: 20px;
            color: #8E8E93;
            margin-left: 12px;
        }

        /* Detail Plans List */
        .detail-plans-grid {
            display: flex;
            flex-direction: column;
            gap: 0;
            padding: 0;
            margin: 0;
            background: white;
            flex: 1;
            width: 100%;
            overflow-y: auto;
            overflow-x: hidden;
        }

        /* Networks Popup Styles */
        .tech-value-clickable {
            color: #007AFF !important;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: background-color 0.2s ease;
            padding: 4px 8px;
            border-radius: 6px;
            margin: -4px -8px;
        }

        .tech-value-clickable:hover {
            background-color: rgba(0, 122, 255, 0.1);
        }

        .chevron-right {
            font-size: 16px;
            color: #C7C7CC;
            margin-left: 8px;
        }

        .networks-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 1000;
            display: flex;
            align-items: flex-end;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .networks-popup-overlay.show {
            opacity: 1;
            pointer-events: all;
        }

        .networks-popup {
            background: white;
            width: 100%;
            max-height: 70vh;
            border-radius: 12px 12px 0 0;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            overflow: hidden;
        }

        .networks-popup-overlay.show .networks-popup {
            transform: translateY(0);
        }

        .networks-popup-header {
            padding: 16px 20px;
            border-bottom: 1px solid #E5E5E7;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #F8F8F8;
        }

        .networks-popup-title {
            font-size: 18px;
            font-weight: 600;
            color: #1d1d1f;
        }

        .networks-popup-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #007AFF;
            cursor: pointer;
            padding: 4px;
            border-radius: 6px;
            transition: background-color 0.2s ease;
        }

        .networks-popup-close:hover {
            background: rgba(0, 122, 255, 0.1);
        }

        .networks-popup-content {
            padding: 0;
            max-height: calc(70vh - 120px);
            overflow-y: auto;
        }

        .popup-search-container {
            padding: 12px 20px;
            border-bottom: 1px solid #E5E5E7;
            background: white;
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .popup-search-input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #D1D1D6;
            border-radius: 8px;
            font-size: 16px;
            font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
            outline: none;
            transition: border-color 0.2s ease;
        }

        .popup-search-input:focus {
            border-color: #007AFF;
        }

        .network-item {
            padding: 12px 20px;
            border-bottom: 1px solid #E5E5E7;
            font-size: 16px;
            color: #1d1d1f;
            font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
            display: block;
        }

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

        .network-item.hidden {
            display: none;
        }

        .country-item {
            padding: 12px 20px;
            border-bottom: 1px solid #E5E5E7;
            font-size: 16px;
            color: #1d1d1f;
            display: block;
        }

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

        .country-item.hidden {
            display: none;
        }

        /* Country Flag Styling */
        .country-flag {
            width: 24px;
            height: 18px;
            border-radius: 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            object-fit: cover;
            display: inline-block;
            vertical-align: middle;
            border: 1px solid rgba(0,0,0,0.1);
        }
        
        .country-flag-img {
            width: 32px;
            height: 24px;
            border-radius: 2px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.15);
            object-fit: cover;
            display: inline-block;
            vertical-align: middle;
            border: 1px solid rgba(0,0,0,0.1);
        }
        
        .country-flag-emoji {
            font-size: 24px;
            display: inline-block;
            vertical-align: middle;
        }

        .country-flag-container {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        /* Chevron right indicator */
        .chevron-indicator {
            color: #C7C7CC;
            font-size: 18px;
            font-weight: 300;
            margin-left: auto;
            flex-shrink: 0;
        }

        .detail-plan-card {
            background: white;
            border-bottom: 1px solid #E5E5E7;
            padding: 16px 20px;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            transition: background-color 0.2s ease, transform 0.2s ease;
            min-height: 120px;
            box-sizing: border-box;
            -webkit-tap-highlight-color: rgba(0,0,0,0.05);
        }

        .detail-plan-card:hover,
        .detail-plan-card:active {
            background: #F8F8F8;
        }
        
        /* Desktop hover effects for detail cards */
        @media (min-width: 1025px) {
            .detail-plan-card {
                border-radius: 0;
                margin-bottom: 0;
            }
            
            .detail-plan-card:hover {
                transform: translateX(8px);
                background: #F8F8F8;
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            }
        }
        
        @media (hover: none) and (pointer: coarse) {
            .detail-plan-card:hover {
                background: white;
                transform: none;
                box-shadow: none;
            }
            .detail-plan-card:active {
                background: #F8F8F8;
            }
        }

        .detail-plan-card:last-child {
            border-bottom: none;
        }

        .detail-plan-left {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .detail-plan-data {
            font-size: 17px;
            font-weight: 600;
            color: #1d1d1f;
            line-height: 1.2;
        }

        .detail-plan-bundle-id {
            font-size: 11px;
            color: #A0A0A0;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
            margin-top: 2px;
            letter-spacing: -0.2px;
        }

        .detail-plan-duration {
            font-size: 14px;
            color: #8E8E93;
        }

        .detail-plan-carrier {
            font-size: 14px;
            color: #007AFF;
            font-weight: 500;
        }

        .detail-plan-tech-info {
            margin-top: 8px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .tech-item {
            display: flex;
            align-items: center;
            font-size: 12px;
            line-height: 1.3;
        }

        .tech-label {
            color: #8E8E93;
            font-weight: 500;
            min-width: 70px;
            flex-shrink: 0;
        }

        .tech-value {
            color: #1D1D1F;
            font-weight: 400;
            word-break: break-word;
        }

        .detail-plan-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
            flex-shrink: 0;
            min-width: 100px;
        }

        .detail-plan-price-section {
            text-align: right;
        }

        .detail-plan-price {
            font-size: 18px;
            font-weight: 600;
            color: #1d1d1f;
        }

        .detail-plan-price-per-day {
            font-size: 12px;
            color: #8E8E93;
        }

        .detail-plan-actions {
            display: flex;
            gap: 8px;
        }

        .detail-btn {
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            border: none;
            white-space: nowrap;
            -webkit-tap-highlight-color: transparent;
        }

        .detail-btn-outline {
            background: white;
            color: #8E8E93;
            border: 1px solid #E5E5E7;
        }

        .detail-btn-outline:hover {
            background: #F8F8F8;
        }

        .detail-btn-primary {
            background: #FF3B30;
            color: white;
        }

        .detail-btn-primary:hover,
        .detail-btn-primary:active {
            background: #E8332A;
            transform: scale(0.98);
        }

        .detail-btn-primary:hover {
            background: #E8342A;
        }


        /* Welcome Splash Screen */
        .welcome-splash {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #FFFFFF;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 1;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }
        
        .welcome-splash.hidden {
            opacity: 0;
            visibility: hidden;
        }
        
        
        .welcome-title {
            font-size: 32px;
            font-weight: 700;
            color: #DC3545;
            margin-bottom: 12px;
            text-align: center;
            font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
        }
        
        .welcome-subtitle {
            font-size: 18px;
            font-weight: 400;
            color: #666666;
            text-align: center;
            font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
        }

        /* Unified iOS Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(248, 248, 248, 0.95);
            border-top: 0.5px solid rgba(60, 60, 67, 0.13);
            padding: 8px 0 calc(20px + env(safe-area-inset-bottom));
            z-index: 1000;
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            backdrop-filter: saturate(180%) blur(20px);
            font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
        }

        /* Hide bottom nav in detail page */
        .detail-page .bottom-nav,
        .detail-page ~ .bottom-nav {
            display: none;
        }

        .bottom-nav-container {
            display: flex;
            justify-content: space-around;
            align-items: center;
            max-width: 428px;
            margin: 0 auto;
            padding: 0 16px;
            height: 44px;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            color: rgba(60, 60, 67, 0.6);
            text-decoration: none;
            transition: all 0.15s ease-out;
            padding: 6px 8px;
            border-radius: 12px;
            min-height: 44px;
            min-width: 44px;
            -webkit-tap-highlight-color: transparent;
            position: relative;
        }

        .nav-item.active {
            color: #007AFF;
        }
        
        .nav-item.active .nav-icon {
            transform: scale(1.05);
        }
        
        .nav-item:active {
            transform: scale(0.95);
            background: rgba(0, 0, 0, 0.05);
        }

        .nav-icon {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.15s ease-out;
        }

        .nav-icon svg {
            width: 24px;
            height: 24px;
            stroke-width: 1.8;
        }

        .nav-label {
            font-size: 10px;
            font-weight: 600;
            line-height: 1;
            letter-spacing: -0.01em;
            text-align: center;
        }

        /* Error State */
        .error {
            text-align: center;
            padding: 60px 0;
            color: #FF3B30;
        }

        .error-icon {
            font-size: 48px;
            margin-bottom: 16px;
        }

        /* Tablet Layout (768px - 1024px) */
        @media (min-width: 769px) and (max-width: 1024px) {
            .container {
                padding: 0 32px;
                max-width: 800px;
            }
            
            .plans-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            
            .group-card {
                padding: 24px;
                border-radius: 16px;
                margin-bottom: 0;
            }
            
            .category-tabs {
                justify-content: center;
                gap: 16px;
                margin-bottom: 32px;
            }
            
            .category-tab {
                min-width: 140px;
                padding: 16px 24px;
                font-size: 16px;
            }
            
            .search-box {
                padding: 16px 20px 16px 50px;
                font-size: 18px;
                max-width: 500px;
                margin: 0 auto;
            }
            
            .search-container {
                text-align: center;
                margin: 32px 0 40px;
            }
            
            .detail-plans-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 1px;
            }
            
            /* Remove list-style separators in tablet grid */
            .detail-plan-card {
                border-bottom: none;
            }
        }

        /* Desktop Layout (>1024px) */
        @media (min-width: 1025px) {
            .container {
                padding: 0 40px;
            }
            
            .plans-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
                background: transparent;
            }
            
            .group-card {
                padding: 32px 24px;
                border-radius: 20px;
                margin-bottom: 0;
                transition: transform 0.2s ease, box-shadow 0.2s ease;
                background: white;
                border: 1px solid #E5E5E7;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            }
            
            .group-card:hover {
                transform: translateY(-6px);
                box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
                border-color: #D1D1D6;
            }
            
            .category-tabs {
                justify-content: center;
                gap: 20px;
                margin-bottom: 40px;
            }
            
            .category-tab {
                min-width: 160px;
                padding: 18px 32px;
                font-size: 17px;
            }
            
            .search-box {
                padding: 18px 24px 18px 56px;
                font-size: 18px;
                max-width: 600px;
                margin: 0 auto;
                border-radius: 16px;
            }
            
            .search-container {
                text-align: center;
                margin: 40px 0 48px;
            }
            
            .detail-plans-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 0;
                padding: 0;
                background: white;
                border-radius: 16px;
                overflow: hidden;
                box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
            }
            
            .detail-plan-card {
                border-bottom: none;
                border-right: 1px solid #E5E5E7;
            }
            
            .detail-plan-card:nth-child(odd) {
                border-right: 1px solid #E5E5E7;
            }
            
            .detail-plan-card:nth-child(even) {
                border-right: none;
            }
            
            .detail-plan-card:nth-last-child(-n+2) {
                border-bottom: none;
            }
            
            /* Desktop header optimizations */
            .header-right {
                gap: 16px;
            }
            
            .welcome-text {
                font-size: 32px;
            }
            
            .location-text {
                font-size: 16px;
            }
            
            .user-name {
                display: block;
            }
            
            /* Hide bottom nav on desktop and adjust body padding */
            .bottom-nav {
                display: none;
            }
            
            body {
                padding-bottom: 0;
            }
            
            /* Desktop detail page improvements */
            .detail-header {
                padding: 24px 40px;
            }
            
            .detail-title {
                font-size: 28px;
            }
        }

        /* Ultra-wide desktop screens (>1440px) */
        @media (min-width: 1441px) {
            .plans-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 24px;
            }
            
            .detail-plans-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* Enhanced Mobile Responsive Design */
        @media (max-width: 768px) {
            .container {
                padding: 0 16px;
            }

            .group-card {
                margin-bottom: 6px;
                padding: 12px 16px;
                border-radius: 10px;
            }

            .category-tabs {
                gap: 8px;
                margin-bottom: 16px;
                flex-direction: row;
                width: 100%;
            }

            .category-tab {
                padding: 10px 12px;
                font-size: 14px;
            }

            .search-container {
                margin: 12px 0;
            }

            .search-box {
                padding: 10px 16px 10px 40px;
                font-size: 15px;
            }

            .plans-grid {
                grid-template-columns: 1fr;
            }

            .detail-plans-grid {
                grid-template-columns: 1fr;
                padding: 0 10px;
            }

            .detail-header {
                padding: 0 10px;
            }

            .detail-title {
                font-size: 20px;
            }

            .back-button {
                font-size: 16px;
            }
        }

        /* Mobile-specific optimizations */
        @media (max-width: 414px) {
            .container {
                padding: 0 12px;
            }

            .group-card {
                margin-bottom: 4px;
                padding: 10px 14px;
                min-height: 56px;
            }

            .detail-plan-card {
                padding: 14px 16px;
                min-height: 100px;
                align-items: flex-start;
            }
        }

        /* Mobile-specific header and layout fixes */
        @media (max-width: 768px) {
            header {
                box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            }
            
            nav {
                height: 56px;
                padding: 8px 0;
            }
            
            .welcome-text {
                font-size: 24px;
                letter-spacing: -0.6px;
            }
            
            .location-text {
                font-size: 13px;
            }
            
            .header-right {
                gap: 8px;
            }
            
            /* Hide "My eSIMs" button from header on mobile - it's in the mobile menu instead */
            .header-my-esims-btn,
            .my-esim-btn, 
            a.my-esim-btn,
            #myEsimBtn {
                display: none !important;
            }

            .detail-plan-data {
                font-size: 16px;
            }

            .tech-item {
                font-size: 11px;
            }

            .tech-label {
                min-width: 60px;
            }

            .detail-plans-grid {
                flex: 1;
                min-height: 0;
            }

            .bottom-nav {
                padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
            }
        }

        /* Extra small devices */
        @media (max-width: 360px) {
            .container {
                padding: 0 8px;
            }

            .group-card {
                padding: 8px 12px;
                margin-bottom: 3px;
            }

            .detail-plan-card {
                padding: 12px 10px;
                min-height: 90px;
            }

            .detail-plan-data {
                font-size: 15px;
            }

            .tech-item {
                font-size: 10px;
            }

            .tech-label {
                min-width: 50px;
                font-size: 10px;
            }

            .tech-value {
                font-size: 10px;
            }

            .detail-plan-right {
                min-width: 80px;
            }

            .search-box {
                padding: 8px 14px 8px 36px;
                font-size: 14px;
            }
        }

        /* Profile Page Styles - iOS Minimal Design */
        .profile-page {
            display: none;
            min-height: calc(100vh - 120px);
        }

        .profile-content {
            padding: 0;
        }

        /* Auth Required State */
        .auth-required-state {
            text-align: center;
            padding: 80px 20px;
            max-width: 400px;
            margin: 0 auto;
        }

        .auth-required-icon {
            margin-bottom: 24px;
        }

        .auth-required-state h3 {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 12px;
            letter-spacing: -0.5px;
        }

        .auth-required-state p {
            font-size: 17px;
            color: #8E8E93;
            line-height: 1.4;
            margin-bottom: 32px;
        }

        .profile-sign-in-btn {
            background: #007AFF;
            color: white;
            border: none;
            border-radius: 12px;
            padding: 16px 32px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 200px;
        }

        .profile-sign-in-btn:hover {
            background: #0056CC;
            transform: translateY(-1px);
        }

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

        /* Profile Signed In Content */
        .profile-signed-in {
            padding-bottom: 40px;
        }

        .profile-section {
            background: var(--card-background);
            border-radius: 16px;
            margin-bottom: 16px;
            overflow: hidden;
            border: 1px solid #F2F2F7;
        }

        .section-title {
            font-size: 13px;
            font-weight: 600;
            color: #8E8E93;
            text-transform: uppercase;
            letter-spacing: -0.08px;
            margin: 24px 20px 16px;
            padding: 0;
        }

        /* User Info Section */
        .profile-user-info {
            display: flex;
            align-items: center;
            padding: 20px;
            gap: 16px;
        }

        .profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 40px;
            object-fit: cover;
            border: 3px solid #F2F2F7;
        }

        .profile-user-details {
            flex: 1;
        }

        .profile-name {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 4px 0;
            letter-spacing: -0.5px;
        }

        .profile-email {
            font-size: 17px;
            color: #8E8E93;
            margin: 0;
        }

        .edit-profile-btn {
            background: #F2F2F7;
            color: #007AFF;
            border: none;
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .edit-profile-btn:hover {
            background: #E5E5E7;
        }

        /* Quick Actions */
        .quick-actions {
            padding: 0;
        }

        .action-item {
            display: flex;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #F2F2F7;
            text-decoration: none;
            color: inherit;
            transition: background-color 0.2s ease;
            cursor: pointer;
        }

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

        .action-item:hover,
        .action-item:active {
            background: #F9F9F9;
        }

        .action-icon {
            width: 40px;
            height: 40px;
            background: #F2F2F7;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            color: #007AFF;
        }

        .action-details {
            flex: 1;
        }

        .action-title {
            display: block;
            font-size: 17px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 2px;
        }

        .action-subtitle {
            display: block;
            font-size: 15px;
            color: #8E8E93;
        }

        .action-arrow {
            font-size: 20px;
            color: #C7C7CC;
            font-weight: 300;
        }

        /* Settings List */
        .settings-list,
        .support-list {
            padding: 0;
        }

        .setting-item,
        .support-item {
            display: flex;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #F2F2F7;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .setting-item:last-child,
        .support-item:last-child {
            border-bottom: none;
        }

        .setting-item:hover,
        .support-item:hover {
            background: #F9F9F9;
        }

        .setting-icon,
        .support-icon {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            color: #8E8E93;
        }

        .setting-details {
            flex: 1;
        }

        .setting-title,
        .support-title {
            display: block;
            font-size: 17px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 2px;
        }

        .setting-subtitle {
            display: block;
            font-size: 15px;
            color: #8E8E93;
        }

        .setting-arrow,
        .support-arrow {
            font-size: 20px;
            color: #C7C7CC;
            font-weight: 300;
        }

        /* iOS Toggle Switch */
        .toggle-switch {
            position: relative;
        }

        .toggle-switch input[type="checkbox"] {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-label {
            position: relative;
            display: inline-block;
            width: 51px;
            height: 31px;
            background-color: #E5E5E7;
            border-radius: 15.5px;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .toggle-label:before {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 27px;
            height: 27px;
            background-color: white;
            border-radius: 50%;
            transition: transform 0.2s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .toggle-switch input[type="checkbox"]:checked + .toggle-label {
            background-color: #34C759;
        }

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

        /* Logout Button */
        .logout-button {
            width: 100%;
            background: #FF3B30;
            color: white;
            border: none;
            border-radius: 12px;
            padding: 16px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 16px 20px 20px;
            width: calc(100% - 40px);
        }

        .logout-button:hover {
            background: #D70015;
            transform: translateY(-1px);
        }

        .logout-button:active {
            transform: translateY(0);
        }

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

        /* Profile Category Tabs Styling */
        .profile-section .category-tabs {
            padding: 0;
            margin-bottom: 0;
            gap: 12px;
        }

        .profile-section .category-tab {
            flex: 1;
            padding: 12px 16px;
            background: #F2F2F7;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            color: #8E8E93;
            font-size: 14px;
            font-weight: 500;
        }

        .profile-section .category-tab:hover {
            background: #E5E5E7;
        }

        .profile-section .category-tab.active {
            background: #007AFF;
            color: white;
        }

        .profile-section .category-tab svg {
            width: 20px;
            height: 20px;
        }


        /* Hide profile page header */
        .profile-page .detail-header {
            display: none;
        }

        /* Profile Page Responsive Design */
        @media (max-width: 768px) {
            .profile-user-info {
                padding: 16px;
            }

            .profile-avatar {
                width: 64px;
                height: 64px;
                border-radius: 32px;
            }

            .profile-name {
                font-size: 20px;
            }

            .section-title {
                margin: 20px 16px 12px;
            }

            .action-item,
            .setting-item,
            .support-item {
                padding: 14px 16px;
            }

            .logout-button {
                margin: 12px 16px 16px;
                width: calc(100% - 32px);
            }
        }

        /* Hide profile page in detail view */
        .detail-page .profile-page,
        .detail-page ~ .profile-page {
            display: none;
        }

        /* Coverage Link Styling */
        .coverage-link {
            color: var(--primary-blue);
            text-decoration: none;
            font-weight: 500;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .coverage-link:hover {
            color: #0056D6;
            text-decoration: underline;
        }
        
        /* Coverage Modal Styling */
        .coverage-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
        }
        
        .coverage-modal-content {
            background: var(--card-background);
            border-radius: 12px;
            max-width: 500px;
            width: 100%;
            max-height: 80vh;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        
        .coverage-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            border-bottom: 1px solid var(--border-color);
            background: var(--background-secondary);
        }
        
        .coverage-modal-header h2 {
            margin: 0;
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
        }
        
        .coverage-modal-close {
            background: none;
            border: none;
            font-size: 28px;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.2s ease;
        }
        
        .coverage-modal-close:hover {
            background: rgba(0, 0, 0, 0.1);
        }
        
        .coverage-modal-body {
            padding: 24px;
            max-height: 60vh;
            overflow-y: auto;
        }
        
        .country-network-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
        }
        
        .country-network-item:last-child {
            border-bottom: none;
        }
        
        .country-name {
            font-weight: 500;
            color: var(--text-primary);
            flex: 1;
            min-width: 0;
        }
        
        .network-code {
            font-family: 'Monaco', 'Courier New', monospace;
            font-size: 12px;
            color: var(--text-secondary);
            background: var(--background-secondary);
            padding: 4px 8px;
            border-radius: 4px;
            margin-left: 12px;
            white-space: nowrap;
        }
        
        /* Coverage Search Input */
        .coverage-search-container {
            margin-bottom: 20px;
        }
        
        .coverage-search-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 16px;
            font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
            background: var(--card-background);
            color: var(--text-primary);
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            box-sizing: border-box;
        }
        
        .coverage-search-input:focus {
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
        }
        
        .coverage-search-input::placeholder {
            color: var(--text-secondary);
        }
        
        /* Dark mode modal styles */
        body.dark-mode .coverage-modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
        }

/* ==================== COMPREHENSIVE RESPONSIVE DESIGN ENHANCEMENTS ==================== */

/* Mobile-First Additional Responsive Styles */
@media (max-width: 480px) {
    /* Detail Page Responsive */
    .detail-header {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .detail-title {
        font-size: 18px;
        margin-left: 8px;
    }
    
    .back-button {
        padding: 12px;
        font-size: 15px;
        gap: 4px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .detail-info-icon {
        padding: 12px 8px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Modal Responsive */
    .sign-in-modal {
        width: 95%;
        max-width: 95%;
    }
    
    .sign-in-content {
        padding: 0 20px 20px;
    }
    
    .sign-in-header h2 {
        font-size: 24px;
    }
    
    .sign-in-header p {
        font-size: 14px;
    }
    
    .auth-submit-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .google-sign-in-btn {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Detail Page for Tablets */
    .detail-header {
        padding: 18px 28px;
    }
    
    .detail-title {
        font-size: 24px;
        margin-left: 20px;
    }
    
    .back-button {
        font-size: 18px;
        padding: 14px;
    }
    
    /* Modal for Tablets */
    .sign-in-modal {
        max-width: 480px;
    }
    
    .sign-in-header h2 {
        font-size: 30px;
    }
    
    /* Bundle and Plan Cards Grid for Tablets */
    .plans-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .bundle-card {
        margin-bottom: 0;
    }
}

/* Desktop Responsive Styles */
@media (min-width: 1024px) {
    /* Detail Page for Desktop */
    .detail-header {
        padding: 24px 40px;
    }
    
    .detail-title {
        font-size: 28px;
        margin-left: 24px;
    }
    
    .back-button {
        font-size: 19px;
        padding: 16px;
    }
    
    /* Plans Grid for Desktop */
    .plans-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .bundle-card {
        margin-bottom: 0;
    }
    
    /* Modal for Desktop */
    .sign-in-modal {
        max-width: 500px;
    }
    
    .sign-in-header h2 {
        font-size: 32px;
    }
}

/* Large Desktop Responsive Styles */
@media (min-width: 1440px) {
    /* Plans Grid for Large Desktops */
    .plans-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    
    .container {
        max-width: 1600px;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 12px 0;
    }
    
    .header-content {
        margin-bottom: 12px;
    }
    
    .search-container {
        margin-bottom: 12px;
    }
    
    .nav-tabs {
        margin-bottom: 12px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets for mobile */
    .nav-tab {
        min-height: 44px;
    }
    
    .bundle-card {
        min-height: 72px;
    }
    
    .plan-card {
        min-height: 88px;
    }
    
    .buy-btn,
    .login-btn,
    .my-esim-btn,
    .back-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .bundle-card:hover {
        transform: none;
        background: var(--card-background);
        border-color: #F0F0F0;
    }
    
    .plan-card:hover {
        background: white;
    }
    
    .nav-tab:not(.active):hover {
        background: var(--background-secondary);
    }
    
    .buy-btn:hover {
        transform: none;
        background: #DC3545;
    }
    
    .login-btn:hover {
        transform: none;
        background: white;
    }
    
    .my-esim-btn:hover {
        background: #F2F2F7;
    }
    
    .modal-close:hover {
        background: transparent;
    }
    
    .google-sign-in-btn:hover {
        background: var(--background-primary);
        border-color: var(--border-color);
    }
    
    .back-button:hover {
        opacity: 1;
    }
    
    /* Add active states for touch feedback */
    .bundle-card:active {
        background: #F5F5F5;
        transform: scale(0.99);
        border-color: #E0E0E0;
    }
    
    .plan-card:active {
        background: #F8F8F8;
    }
    
    .nav-tab:not(.active):active {
        background: #E8E8E8;
    }
    
    .nav-tab.active:active {
        background: #C82333;
    }
    
    .buy-btn:active {
        background: #C82333;
        transform: scale(0.97);
    }
    
    .login-btn:active {
        background: var(--background-secondary);
        transform: scale(0.97);
    }
    
    .my-esim-btn:active {
        background: #E5E5E7;
        transform: scale(0.97);
    }
    
    .modal-close:active {
        background: var(--background-secondary);
        transform: scale(0.95);
    }
    
    .google-sign-in-btn:active {
        background: var(--background-secondary);
        border-color: var(--text-secondary);
        transform: scale(0.98);
    }
    
    .back-button:active {
        opacity: 0.6;
        transform: scale(0.97);
    }
    
    .detail-info-icon:active {
        color: #007AFF;
        background: rgba(0, 122, 255, 0.1);
    }
}

/* High DPI Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
    
    .bundle-icon,
    .user-photo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    .header-actions,
    .search-container,
    .nav-tabs,
    .bottom-nav,
    .buy-btn {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .bundle-card,
    .plan-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .detail-page,
    .main-page {
        transition: none;
    }
}

/* Dark Mode Responsive Adjustments */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        --background-primary: #000000;
        --background-secondary: #1C1C1E;
        --text-primary: #FFFFFF;
        --text-secondary: #8E8E93;
        --border-color: rgba(84, 84, 88, 0.6);
        --card-background: #1C1C1E;
    }
}

/* ==================== END RESPONSIVE ENHANCEMENTS ==================== */

/* ==================== WEBSITE FOOTER ==================== */
.site-footer {
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-heading-secondary {
    margin-top: 24px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #DC3545;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social svg {
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 20px;
}

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

.footer-copyright {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #DC3545;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-heading-secondary {
        margin-top: 16px;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .footer-social a {
        font-size: 13px;
    }
}

/* Dark Mode Support for Footer */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) .site-footer {
        background: #1C1C1E;
        border-top-color: rgba(84, 84, 88, 0.6);
    }
}

/* ==================== WEBSITE FOOTER (Alternative Class Names) ==================== */
.website-footer {
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 40px 0 20px;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
}

.footer-link:hover {
    color: #DC3545;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .website-footer {
        padding: 32px 0 16px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 20px;
    }

    .footer-title {
        font-size: 16px;
    }

    .footer-link {
        font-size: 13px;
    }
}

/* Dark Mode Support for Website Footer */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) .website-footer {
        background: #1C1C1E;
        border-top-color: rgba(84, 84, 88, 0.6);
    }
}

/* ==================== END WEBSITE FOOTER ==================== */

/* ==================== ACCESSIBILITY: REDUCED MOTION ==================== */
/* Disable animations for users who prefer reduced motion */
@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;
    }
    
    /* Disable hero map animations */
    .pulse-dot,
    .connection-line,
    .floating-stat,
    .world-map path,
    .world-map circle,
    .hero-map svg path,
    .hero-map svg circle,
    .hero-map .pulse-dot,
    .hero-map .connection-line,
    .hero-map .floating-stat {
        animation-name: none !important;
        animation: none !important;
    }
    
    /* Disable dropdown transitions */
    .filter-dropdown,
    .search-suggestions,
    .suggestion-item {
        transition: none !important;
    }
    
    /* Disable card hover effects */
    .bundle-card,
    .detail-plan-card,
    .plan-badge {
        transition: none !important;
        transform: none !important;
    }
}

/* ==================== END REDUCED MOTION ==================== */

/* ===================================
   NEW SECTIONS STYLES
   =================================== */

/* Common Section Styles */
.section-heading {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 20px;
    background: var(--background-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.step-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* Why Tejwal Section */
.why-tejwal-section {
    padding: 80px 20px;
    background: var(--background-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.benefit-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.benefit-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.benefit-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 20px;
    background: var(--background-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #FFB800;
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e63946;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-location {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Stats Section */
.stats-section {
    padding: 80px 20px;
    background: #e63946;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 500;
}

/* App Download Section */
.app-download-section {
    padding: 80px 20px;
    background: var(--background-primary);
    text-align: center;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #000000;
    color: white;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 32px;
}

.app-store-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.dark-mode .app-store-btn {
    background: #ffffff;
    color: #000000;
}

body.dark-mode .app-store-btn:hover {
    background: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-heading {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .how-it-works-section,
    .why-tejwal-section,
    .testimonials-section,
    .stats-section,
    .app-download-section {
        padding: 60px 20px;
    }
    
    .steps-grid,
    .benefits-grid,
    .testimonials-grid {
        gap: 24px;
        margin-top: 32px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .stats-grid {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .section-heading {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .steps-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .app-store-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}
