
        /* ===== CSS VARIABLES ===== */
        :root {
            /* Primary Colors */
            --td-primary: #3b82f6;
            --td-primary-dark: #2563eb;
            --td-primary-light: #60a5fa;
            
            /* Secondary Colors */
            --td-secondary: #1e293b;
            --td-secondary-light: #334155;
            --td-secondary-dark: #0f172a;
            
            /* Accent Colors */
            --td-accent: #10b981;
            --td-warning: #f59e0b;
            --td-danger: #ef4444;
            --td-success: #22c55e;
            --td-info: #06b6d4;
            
            /* Text Colors */
            --td-text-primary: #ffffff;
            --td-text-secondary: #94a3b8;
            --td-text-muted: #64748b;
            
            /* Background Colors */
            --td-bg-primary: #0f172a;
            --td-bg-secondary: #1e293b;
            --td-bg-tertiary: #334155;
            
            /* Borders */
            --td-border: #334155;
            --td-border-light: #475569;
            
            /* Shadows */
            --td-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --td-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --td-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --td-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            
            /* Gradients */
            --td-gradient-primary: linear-gradient(135deg, var(--td-primary) 0%, var(--td-primary-dark) 100%);
            --td-gradient-secondary: linear-gradient(135deg, var(--td-secondary) 0%, var(--td-secondary-dark) 100%);
            --td-gradient-hero: linear-gradient(135deg, var(--td-bg-primary) 0%, var(--td-bg-secondary) 100%);
            
            /* Transitions */
            --td-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --td-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Language Switcher Button - Professional Style */
        .lang-buttons-group {
            display: inline-flex;
            gap: 0.25rem;
            background: transparent;
            padding: 0;
            border-radius: 0;
            border: none;
            text-decoration: none;
        }
        
        .lang-btn-professional {
            background: transparent;
            color: var(--td-text-secondary);
            border: none;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: var(--td-transition);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 400;
            font-size: 1rem;
            position: relative;
            overflow: hidden;
            line-height: 1.5;
        }
        
        .lang-btn-professional::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--td-primary);
            transform: translateY(100%);
            transition: transform 0.3s ease;
            z-index: -1;
        }
        
        .lang-btn-professional:hover {
            color: var(--td-text-primary);
            transform: translateY(-1px);
        }
        
        .lang-btn-professional:hover::before {
            transform: translateY(0);
        }
        
        .lang-btn-professional i {
            font-size: 1rem;
            transition: var(--td-transition);
        }
        
        .lang-btn-professional:hover i {
            transform: scale(1.1);
        }
        
        .lang-btn-professional span {
            transition: var(--td-transition);
            text-decoration: none;
        }
        
        .lang-btn-professional:hover span {
            font-weight: 600;
        }

        /* ===== GLOBAL STYLES ===== */
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--td-bg-primary);
            color: var(--td-text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            min-height: 100vh;
            padding-top: 80px;
        }

        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--td-secondary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--td-primary);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--td-primary-dark);
        }

        /* ===== NAVIGATION ===== */
        .navbar {
            backdrop-filter: blur(10px);
            background-color: rgba(15, 23, 42, 0.95) !important;
            border-bottom: 1px solid var(--td-border);
            transition: var(--td-transition);
        }

        .navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--td-primary) !important;
            text-decoration: none;
        }

        .navbar-brand:hover {
            color: var(--td-primary-light) !important;
        }

        .navbar-logo {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            object-fit: cover;
        }

        .nav-link {
            color: var(--td-text-secondary) !important;
            transition: var(--td-transition);
            border-radius: 0.5rem;
            padding: 0.5rem 0.75rem !important;
            white-space: nowrap;
        }

        .nav-link:hover, .nav-link.active {
            color: var(--td-primary) !important;
            background-color: rgba(59, 130, 246, 0.1);
        }

        /* ===== HERO SECTION ===== */
        .hero-section {
            background: var(--td-gradient-hero);
            border: 1px solid var(--td-border);
            border-radius: 1rem;
            padding: 2rem 2rem;
            margin-bottom: 3rem;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
            pointer-events: none;
        }

        /* ===== CARDS ===== */
        .card {
            background-color: var(--td-bg-secondary) !important;
            border: 1px solid var(--td-border) !important;
            border-radius: 0.75rem;
            transition: var(--td-transition);
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: var(--td-shadow-lg);
            border-color: var(--td-primary);
        }

        .card-body {
            padding: 1.5rem;
        }

        /* Force dark theme for all cards */
        .card * {
            color: var(--td-text-primary) !important;
        }

        .card .text-muted {
            color: var(--td-text-muted) !important;
        }

        .card .text-primary {
            color: var(--td-primary) !important;
        }

        .card .text-warning {
            color: var(--td-warning) !important;
        }

        /* ===== PROFESSIONAL STORE CARDS ===== */
        .store-card {
            background: var(--td-bg-secondary);
            border: 1px solid var(--td-border);
            border-radius: 16px;
            height: 220px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            position: relative;
        }

        .store-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
            border-color: var(--td-primary);
        }

        .store-card .card-body {
            padding: 20px;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        /* Professional card header */
        .store-card-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
        }

        .store-card-icon {
            width: 80px;
            height: 80px;
            border-radius: 16px;
            object-fit: cover;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

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

        .store-card-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--td-text-primary);
            margin: 0;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            min-height: 23px;
            max-height: 46px;
            align-self: center;
        }

        .store-card-badges {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .store-card-badges-full {
            display: flex;
            flex-direction: row;
            gap: 8px;
            margin-bottom: 4px;
        }

        .store-card-badges-full .store-card-badge {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .store-card-badge {
            font-size: 12px;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-block;
            white-space: nowrap;
            text-align: center;
        }

        .store-card-badge.category {
            background: transparent;
            color: var(--bs-primary);
            border: 1px solid var(--bs-primary);
            border-radius: 8px;
        }

        .store-card-badge.price-free {
            background: transparent;
            color: var(--bs-success);
            border: 1px solid var(--bs-success);
            border-radius: 8px;
        }

        .store-card-badge.product-price-free {
            background: transparent;
            color: var(--bs-warning);
            border: 1px solid var(--bs-warning);
            border-radius: 8px;
        }

        .store-card-badge.app-price-paid {
            background: transparent;
            color: var(--bs-success);
            border: 1px solid var(--bs-success);
            border-radius: 8px;
        }

        .store-card-badge.product-price-paid {
            background: transparent;
            color: var(--bs-warning);
            border: 1px solid var(--bs-warning);
            border-radius: 8px;
        }

        /* Card content */
        .store-card-description {
            font-size: 14px;
            color: var(--td-text-secondary);
            line-height: 1.5;
            margin-bottom: 16px;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Card features */
        .store-card-features {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 4px;
        }

        .store-card-feature {
            font-size: 11px;
            font-weight: 500;
            color: var(--td-primary);
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            padding: 4px 8px;
            border-radius: 12px;
        }

        /* Card actions */
        .store-card-actions {
            display: flex;
            gap: 8px;
        }

        .store-card-btn {
            flex: 1;
            font-size: 12px;
            font-weight: 600;
            padding: 8px 12px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .store-card-btn.primary {
            background: rgba(59, 130, 246, 0.1);
            color: var(--td-primary);
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        .store-card-btn.primary:hover {
            background: var(--td-primary);
            color: white;
        }

        .store-card-btn.success {
            background: var(--bs-success);
            color: white;
        }

        .store-card-btn.success:hover {
            background: #157347;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
        }

        .store-card-btn.warning {
            background: var(--bs-warning);
            color: #000;
        }

        .store-card-btn.warning:hover {
            background: #e0a800;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
        }

        /* Legacy app-card class for compatibility */
        .app-card {
            min-height: 320px;
            max-height: 320px;
            transition: var(--td-transition);
        }

        .app-card:hover {
            border-color: var(--td-primary) !important;
            transform: translateY(-2px);
            box-shadow: var(--td-shadow);
        }

        .app-card .card-body {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .app-card .description-text {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            line-height: 1.4;
            max-height: 60px;
        }

        /* Fixed layout for card header */
        .card-header-fixed {
            display: flex;
            margin-bottom: 1rem;
            position: relative;
        }

        .icon-section {
            width: 80px;
            flex-shrink: 0;
            text-align: center;
        }

        .icon-section .app-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            object-fit: cover;
        }

        .icon-section .button-group {
            margin-top: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .icon-section .btn-sm {
            font-size: 0.65rem;
            padding: 0.25rem 0.5rem;
            white-space: nowrap;
        }

        .title-section {
            flex: 1;
            padding-left: 1rem;
        }

        .title-section .card-title {
            font-size: 1rem;
            font-weight: 600;
            line-height: 1.3;
            height: 2.6rem;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .badge-custom {
            background-color: rgba(59, 130, 246, 0.2);
            color: var(--td-primary);
            border: 1px solid rgba(59, 130, 246, 0.3);
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
        }

        .card .card-title {
            color: var(--td-text-primary) !important;
        }

        /* Title truncation with fixed height */
        .title-truncate {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-height: 1.4;
            height: 2.8em;
            min-height: 2.8em;
        }

        .card .card-text {
            color: var(--td-text-secondary) !important;
        }

        /* ===== BUTTONS ===== */
        .btn-gradient {
            background: var(--td-gradient-primary);
            color: white;
            border: none;
            border-radius: 0.5rem;
            padding: 0.75rem 2rem;
            font-weight: 600;
            transition: var(--td-transition);
            text-decoration: none;
            display: inline-block;
        }

        .btn-gradient:hover {
            transform: translateY(-2px);
            box-shadow: var(--td-shadow);
            color: white;
        }

        .btn-light {
            background-color: var(--td-bg-tertiary);
            color: var(--td-text-primary);
            border: 1px solid var(--td-border);
            border-radius: 0.5rem;
            padding: 0.75rem 2rem;
            font-weight: 600;
            transition: var(--td-transition);
        }

        .btn-light:hover {
            background-color: var(--td-bg-secondary);
            border-color: var(--td-primary);
            color: var(--td-primary);
        }

        .btn-warning {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            border: none;
            color: #212529 !important;
            font-weight: 600;
            transition: var(--td-transition-fast);
        }

        .badge.text-warning span {
            color: #000 !important;
        }

        /* Fix for badge bg-warning text-dark conflicts */
        .badge.bg-warning.text-dark {
            color: #000000 !important;
        }
        
        .card .badge.bg-warning.text-dark {
            color: #000000 !important;
        }

        /* All badges in cards - same size */
        .card .badge.bg-primary,
        .card .badge.bg-success,
        .card .badge.bg-warning.text-dark {
            font-size: 0.7rem !important;
            font-weight: 700 !important;
            padding: 0.4rem 0.85rem !important;
            border-radius: 0.375rem !important;
            text-transform: uppercase !important;
            letter-spacing: 0.02em !important;
            text-align: center !important;
            display: inline-block !important;
            border: none !important;
            line-height: 1 !important;
            vertical-align: middle !important;
        }

        .card .badge.bg-primary {
            background: linear-gradient(135deg, var(--td-primary), #2563eb) !important;
            color: white !important;
        }

        .card .badge.bg-success {
            background: linear-gradient(135deg, var(--td-success), #16a34a) !important;
            color: white !important;
        }

        .card .badge.bg-warning.text-dark {
            background: linear-gradient(135deg, var(--td-warning), #d97706) !important;
            color: #000 !important;
        }

        .btn-warning:hover {
            background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
            transform: translateY(-2px);
            box-shadow: var(--td-shadow-lg);
        }

        /* ===== COMPONENTS ===== */
        .app-icon, .product-image {
            width: 80px;
            height: 80px;
            border-radius: 12px;
            object-fit: cover;
            border: 2px solid var(--td-border);
        }

        .rating {
            color: var(--td-warning);
        }

        .badge-custom {
            background: var(--td-gradient-primary);
            color: white;
            padding: 0.375rem 0.75rem;
            border-radius: 0.5rem;
            font-size: 0.75rem;
            font-weight: 600;
            border: none;
        }

        .section-title {
            background: var(--td-gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 700;
            margin-bottom: 3rem;
        }

        .stats-card {
            background-color: var(--td-bg-secondary);
            border: 1px solid var(--td-border);
            border-radius: 0.75rem;
            text-align: center;
            padding: 2rem 1.5rem;
            transition: var(--td-transition);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 250px;
            min-height: 250px;
        }

        .stats-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--td-shadow);
            border-color: var(--td-primary);
        }

        /* Partner card navigation arrows */
        .partner-card-inner { position: relative; width: 100%; }
        .partner-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            border: 1px solid rgba(139, 92, 246, 0.15);
            color: rgba(192, 132, 252, 0.5);
            border-radius: 8px;
            width: 24px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.8rem;
            z-index: 5;
            transition: all 0.25s ease;
            padding: 0;
        }
        .partner-arrow:hover {
            background: rgba(139, 92, 246, 0.08);
            border-color: rgba(139, 92, 246, 0.3);
            color: rgba(226, 232, 240, 0.8);
        }
        .partner-arrow-left { left: -10px; }
        .partner-arrow-right { right: -10px; }

        /* Start Project modal service cards (matches wizard page UI) */
        .sp-service-card {
            background: rgba(30, 41, 59, 0.5);
            border: 2px solid rgba(139, 92, 246, 0.15);
            border-radius: 14px;
            padding: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }
        .sp-service-card:hover {
            border-color: rgba(139, 92, 246, 0.5);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
        }
        .sp-service-card .sp-service-icon {
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
            background: linear-gradient(135deg, #c084fc, #60a5fa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .sp-service-card:hover .sp-service-icon {
            background: linear-gradient(135deg, #34d399, #60a5fa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .sp-service-card h5 {
            font-weight: 700;
            margin-bottom: 0.25rem;
            color: #e2e8f0;
        }
        .sp-service-card p {
            font-size: 0.8rem;
            color: #94a3b8;
            margin: 0;
            min-height: 2.4em;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .svc-info-btn {
            margin-top: 0.75rem;
            background: transparent;
            border: 1px solid rgba(96, 165, 250, 0.3);
            color: #60a5fa;
            border-radius: 8px;
            padding: 0.3rem 0.75rem;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
        }
        .svc-info-btn:hover {
            background: rgba(96, 165, 250, 0.1);
            border-color: rgba(96, 165, 250, 0.6);
        }
        .svc-info-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .svc-info-overlay.show { display: flex; }
        .svc-info-modal {
            background: rgba(20, 18, 45, 0.98);
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 20px;
            max-width: 550px;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            padding: 2rem;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
        }
        .svc-info-modal .svc-info-icon {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 0.75rem;
            background: linear-gradient(135deg, #c084fc, #60a5fa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .svc-info-modal h3 {
            text-align: center;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #e2e8f0;
        }
        .svc-info-modal .svc-info-desc {
            font-size: 0.9rem;
            line-height: 1.7;
            color: #cbd5e1;
            margin-bottom: 1.5rem;
        }
        .svc-info-modal .svc-info-close {
            background: transparent;
            color: #94a3b8;
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 12px;
            padding: 0.6rem 1.5rem;
            font-weight: 600;
            cursor: pointer;
        }
        .svc-info-modal .svc-info-close:hover {
            color: #e2e8f0;
            border-color: rgba(139, 92, 246, 0.6);
        }
        .svc-info-modal .svc-info-build {
            background: linear-gradient(90deg, #c084fc, #34d399);
            color: #0a001f;
            border: none;
            border-radius: 12px;
            padding: 0.6rem 1.5rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.25s ease;
        }
        .svc-info-modal .svc-info-build:hover {
            transform: scale(1.03);
            box-shadow: 0 6px 20px rgba(52, 211, 153, 0.4);
        }
        @media (max-width: 576px) {
            .sp-service-card { padding: 1rem; }
            .sp-service-card .sp-service-icon { font-size: 2rem; }
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            background: var(--td-gradient-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin: 0 auto 1rem auto;
            box-shadow: var(--td-shadow);
        }

        .affiliate-icon {
            width: 80px;
            height: 80px;
            border-radius: 12px;
            object-fit: cover;
            background: transparent;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        
        /* ===== TEXT STYLES ===== */
        .text-muted {
            color: var(--td-text-muted) !important;
        }

        .text-primary {
            color: var(--td-primary) !important;
        }

        .text-warning {
            color: var(--td-warning) !important;
        }

        /* Ensure all text is readable on dark background */
        h1, h2, h3, h4, h5, h6 {
            color: var(--td-text-primary) !important;
        }

        p, span, div {
            color: var(--td-text-primary) !important;
        }

        .card-text {
            color: var(--td-text-secondary) !important;
        }

        .lead {
            color: var(--td-text-secondary) !important;
        }

        .small {
            color: var(--td-text-muted) !important;
        }

        /* ===== FOOTER ===== */
        footer {
            border-top: 1px solid var(--td-border);
            padding: 3rem 0;
            margin-top: 4rem;
        }

        footer .text-white-50 {
            color: var(--td-text-secondary) !important;
        }

        footer .text-decoration-none:hover {
            color: var(--td-primary) !important;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .hero-section {
                padding: 1.5rem 1rem;
            }
            
            .hero-section h1 {
                font-size: 2rem;
            }
            
            .stats-card {
                margin-bottom: 1rem;
            }
            
            /* Keep buttons horizontal on small screens */
            .hero-section .d-flex {
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                gap: 1rem !important;
            }
            
            .hero-section .btn {
                white-space: nowrap !important;
                flex-shrink: 0 !important;
                min-width: auto !important;
                font-size: 0.9rem !important;
                padding: 0.75rem 1.5rem !important;
            }
        }

        /* ===== SCREENSHOT GALLERY ===== */
        .screenshot-thumb {
            transition: var(--td-transition-fast);
            border: 2px solid var(--td-border) !important;
        }

        /* Reduce horizontal spacing between screenshots */
        #modalAppScreenshots.row.g-2,
        #modalProductScreenshots.row.g-2 {
            gap: 0.5rem !important;
        }

        #modalAppScreenshots .col-6,
        #modalProductScreenshots .col-6,
        #modalAppScreenshots .col-md-4,
        #modalProductScreenshots .col-md-4 {
            padding-left: 0.25rem !important;
            padding-right: 0.25rem !important;
        }

        .screenshot-thumb:hover {
            transform: scale(1.05);
            border-color: var(--td-primary) !important;
            box-shadow: var(--td-shadow-lg);
        }

        .gallery-container {
            background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
        }

        /* ===== AFFILIATE LINKS ===== */
        .affiliate-links-section {
            background: var(--td-bg-secondary);
            border: 1px solid var(--td-border);
            border-radius: 12px;
            padding: 1.5rem;
            backdrop-filter: blur(10px);
            box-shadow: var(--td-shadow);
        }

        .affiliate-links-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 1rem;
        }

        .affiliate-link-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 1rem;
            background: var(--td-bg-tertiary);
            border: 1px solid var(--td-border);
            border-radius: 12px;
            text-decoration: none;
            transition: var(--td-transition);
            position: relative;
            overflow: hidden;
        }

.affiliate-link-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--td-primary);
    transform: translateY(-4px);
    box-shadow: var(--td-shadow-lg);
}

.affiliate-link-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    object-fit: cover;
    background: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.affiliate-link-name {
    color: var(--td-text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.affiliate-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.affiliate-loading .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

#galleryImage {
    transition: var(--td-transition);
    border-radius: 8px;
    box-shadow: var(--td-shadow-xl);
}

#galleryPrev,
#galleryNext {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid var(--td-border) !important;
    backdrop-filter: blur(10px);
    transition: var(--td-transition-fast);
}

#galleryPrev:hover,
#galleryNext:hover {
    background: rgba(59, 130, 246, 0.8) !important;
    transform: scale(1.1);
}

#galleryCounter {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* ===== MODAL VIDEO CENTERING ===== */
.modal-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-video-container .ratio {
    max-width: 100% !important;
}

.modal-video-container iframe {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Custom taller video ratio */
.ratio-tall {
    --bs-aspect-ratio: 75%; /* Standard 4:3 proportion */
}

.ratio-tall::before {
    padding-top: var(--bs-aspect-ratio);
}

/* ===== MODAL FOOTER BUTTON POSITIONING ===== */
#appDetailsModal .modal-footer {
    justify-content: flex-end !important;
    text-align: right !important;
}

#appDetailsModal .modal-footer .btn {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

#appDetailsModal .modal-footer .btn:first-child {
    margin-right: 0.5rem !important;
}

/* Ensure app modal button is compact */
#appDetailsModal .modal-footer .btn-success {
    min-width: auto !important;
    white-space: nowrap !important;
}

/* More precise right alignment for app modal footer */
#appDetailsModal .modal-footer {
    justify-content: flex-end !important;
    text-align: right !important;
    padding-right: 1rem !important;
}

#appDetailsModal .modal-footer .btn {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

#appDetailsModal .modal-footer .btn:first-child {
    margin-right: 0.5rem !important;
}

