* { margin: 0; padding: 0; box-sizing: border-box; }

        html { overflow-x: hidden; }

        body {
            font-family: 'Cairo', sans-serif;
            background: var(--bg-main);
            color: var(--text-primary);
            line-height: 1.7;
            direction: inherit;
            overflow-x: hidden;
        }

        /* ========= NAVBAR ========= */
        .navbar-landing {
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            padding: 0;
            transition: var(--transition);
            box-shadow: 0 2px 20px rgba(96, 93, 255, 0.06);
        }

        .navbar-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            height: 70px;
        }

        .navbar-brand-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .brand-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            box-shadow: 0 4px 12px rgba(96, 93, 255, 0.3);
        }

        /* الشعار يغطي كامل المربع الأزرق */
        .brand-icon {
            overflow: hidden;
        }

        .brand-icon img {
            width: 100%;
            height: 100%;
            border-radius: 12px;
            object-fit: cover;
            display: block;
        }

        .brand-name {
            font-size: 22px;
            font-weight: 800;
            color: var(--primary);
        }

        .navbar-links {
            display: flex;
            align-items: center;
            gap: 8px;
            list-style: none;
        }

        .navbar-links a {
            display: block;
            padding: 8px 16px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            border-radius: var(--radius-pill);
            transition: var(--transition);
        }

        .navbar-links a:hover {
            background: var(--secondary);
            color: var(--primary);
        }

        /* أزرار الدخول/الخروج داخل قائمة الجوال يجب ألا يطغى عليها لون ومقاس روابط القائمة */
        .navbar-links a.btn-nav-login,
        .navbar-links a.btn-nav-logout {
            display: inline-flex;
            font-size: 14px;
        }

        .navbar-links a.btn-nav-login,
        .navbar-links a.btn-nav-login:hover {
            color: white;
            padding: 9px 22px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        }

        .navbar-links a.btn-nav-logout,
        .navbar-links a.btn-nav-logout:hover {
            color: #ef4444;
            padding: 9px 18px;
            background: rgba(239,68,68,0.05);
        }

        .navbar-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .navbar-auth-btns {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .navbar-mobile-auth {
            display: none;
        }

        .btn-nav-logout {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 9px 18px;
            border: 1.5px solid rgba(239,68,68,0.4);
            color: #ef4444;
            border-radius: 50px;
            font-family: 'Cairo', sans-serif;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.25s;
            background: rgba(239,68,68,0.05);
        }

        .btn-nav-logout:hover {
            background: rgba(239,68,68,0.12);
            color: #ef4444;
        }

        .btn-nav-login {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 9px 22px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            border-radius: var(--radius-pill);
            font-family: 'Cairo', sans-serif;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            text-decoration: none;
            transition: var(--transition);
            box-shadow: 0 4px 12px rgba(96, 93, 255, 0.25);
        }

        .btn-nav-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(96, 93, 255, 0.35);
            color: white;
        }

        /* Mobile menu toggle */
        .navbar-toggler {
            display: none;
            background: none;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 8px 12px;
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 18px;
        }

        /* ========= BUTTONS ========= */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 28px;
            border-radius: var(--radius-pill);
            font-family: 'Cairo', sans-serif;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            text-decoration: none;
            border: none;
            transition: var(--transition);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            box-shadow: 0 4px 15px rgba(96, 93, 255, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(96, 93, 255, 0.4);
            color: white;
        }

        .btn-outline {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        .btn-light {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(8px);
        }

        .btn-light:hover {
            background: rgba(255, 255, 255, 0.25);
            color: white;
            transform: translateY(-2px);
        }

        /* ========= SECTIONS ========= */
        section { padding: 90px 0; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

        .section-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--secondary);
            color: var(--primary);
            border: 1px solid rgba(96, 93, 255, 0.2);
            border-radius: var(--radius-pill);
            padding: 6px 16px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
        }

        .section-title {
            font-size: 36px;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .section-subtitle {
            font-size: 16px;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        /* ========= CARDS ========= */
        .card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg);
        }

        /* ========= FOOTER (Trezo Template & Components) ========= */
        .footer, .footers-area {
            background: #ffffff !important;
            color: #111827 !important;
            border-top: 1px solid #e5e7eb;
            padding: 64px 0 32px;
            margin-top: 0;
        }

        .footer-brand-name {
            font-size: 22px;
            font-weight: 800;
            color: #111827 !important;
            margin-bottom: 12px;
        }

        .footer-desc {
            font-size: 14px;
            line-height: 1.8;
            color: #374151 !important;
        }

        .footer-heading, .footer-single-item h3 {
            font-size: 16px;
            font-weight: 700;
            color: #111827 !important;
            margin-bottom: 20px;
        }

        .footer-links, .footer-single-item ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 0;
            margin: 0;
        }

        .footer-links a, .footer-single-item ul a {
            color: #374151 !important;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .footer-links a:hover, .footer-single-item ul a:hover {
            color: var(--primary) !important;
            transform: translateX(-4px);
        }

        .social-links {
            display: flex;
            gap: 12px;
        }

        .social-link {
            width: 40px;
            height: 40px;
            background: #f3f4f6 !important;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #111827 !important;
            text-decoration: none;
            transition: var(--transition);
            font-size: 16px;
        }

        .social-link:hover {
            background: var(--primary) !important;
            color: #ffffff !important;
            border-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(96,93,255,0.25);
        }

        .footer-divider {
            border: none;
            border-top: 1px solid #e5e7eb !important;
            margin: 40px 0 24px;
        }

        .footer-bottom, .copyright-area {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 14px;
            font-weight: 600;
            color: #111827 !important;
        }

        .footer-bottom span, .copyright-area p {
            color: #111827 !important;
        }

        /* ========= APP DOWNLOAD BADGES (footer) ========= */
        .app-badges {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .app-badge {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            background: #f9fafb !important;
            border: 1.5px solid #e5e7eb !important;
            border-radius: 12px;
            color: #111827 !important;
            text-decoration: none;
            min-width: 170px;
            max-width: 220px;
            transition: var(--transition);
        }

        .app-badge:hover:not(.coming-soon) {
            background: #ffffff !important;
            border-color: var(--primary) !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(96,93,255,0.12);
        }

        .app-badge i {
            font-size: 26px;
            color: #111827 !important;
            width: 28px;
            text-align: center;
        }

        .app-badge-text { display: flex; flex-direction: column; line-height: 1.25; }
        .app-badge-text small { font-size: 11px; color: #6b7280 !important; font-weight: 600; }
        .app-badge-text strong { font-size: 14px; font-weight: 800; color: #111827 !important; }

        .app-badge.coming-soon {
            opacity: 0.55;
            cursor: default;
            pointer-events: none;
            background: #f3f4f6 !important;
        }

        .app-badge.coming-soon .app-badge-text strong { font-size: 13px; }

        /* ========= PAYMENT METHODS TICKER (above footer) ========= */
        .payment-strip {
            background: white;
            border-top: 1px solid var(--border);
            padding: 28px 0 24px;
        }

        .payment-strip-title {
            text-align: center;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: 0.3px;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .payment-ticker {
            position: relative;
            overflow: hidden;
            direction: ltr; /* حركة ثابتة الاتجاه بغض النظر عن لغة الصفحة */
            -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
                    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
        }

        .payment-track {
            display: flex;
            align-items: center;
            gap: 56px;
            width: max-content;
            animation: payment-scroll var(--ticker-duration, 30s) linear infinite;
        }

        .payment-ticker:hover .payment-track { animation-play-state: paused; }

        .payment-logo {
            height: 56px;
            padding: 8px 18px;
            background: var(--bg-main);
            border: 1px solid var(--border);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .payment-logo img {
            max-height: 40px;
            max-width: 120px;
            object-fit: contain;
            display: block;
        }

        @keyframes payment-scroll {
            from { transform: translateX(0); }
            to   { transform: translateX(-50%); }
        }

        @media (prefers-reduced-motion: reduce) {
            .payment-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
            .payment-track .payment-logo.dup { display: none; }
        }

        /* ========= CHATBOT ========= */
        #chatbot-widget {
            position: fixed;
            bottom: 28px;
            right: 28px;
            z-index: 9999;
        }

        .chatbot-toggle {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(96, 93, 255, 0.4);
            color: white;
            transition: var(--transition);
            animation: float 3s ease-in-out infinite;
        }

        .chatbot-toggle:hover { transform: scale(1.1); }

        .chatbot-window {
            position: absolute;
            bottom: 72px;
            right: 0;
            width: 340px;
            height: 400px;
            background: var(--bg-card);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            display: none;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid var(--border);
        }

        .chat-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: white;
        }

        .chat-header-info { display: flex; align-items: center; gap: 10px; }
        .chat-avatar { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

        .chat-messages {
            flex: 1;
            padding: 16px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
            background: var(--bg-main);
        }

        .message {
            max-width: 80%;
            padding: 10px 14px;
            border-radius: 14px;
            font-size: 13px;
            line-height: 1.5;
        }

        .message.bot {
            background: var(--bg-card);
            color: var(--text-primary);
            align-self: flex-start;
            border: 1px solid var(--border);
            border-bottom-right-radius: 4px;
        }

        .message.user {
            background: var(--primary);
            color: white;
            align-self: flex-end;
            border-bottom-left-radius: 4px;
        }

        .chat-input-area {
            padding: 14px 16px;
            background: var(--bg-card);
            border-top: 1px solid var(--border);
            display: flex;
            gap: 10px;
        }

        .chat-input {
            background: var(--bg-main);
            border: 1px solid var(--border);
            color: var(--text-primary);
            border-radius: var(--radius-pill);
            padding: 8px 16px;
            flex: 1;
            font-family: 'Cairo', sans-serif;
            font-size: 13px;
            outline: none;
        }

        .chat-input:focus { border-color: var(--primary); }

        .chat-send-btn {
            width: 36px;
            height: 36px;
            background: var(--primary);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .chat-send-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        /* ========= RESPONSIVE ========= */
        @media (max-width: 768px) {
            .navbar-links { display: none; }
            .navbar-toggler { display: block; }
            .navbar-auth-btns { display: none; }
            .navbar-mobile-auth { display: none; }
            .navbar-links.open {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 70px;
                right: 0;
                left: 0;
                background: white;
                padding: 16px;
                border-bottom: 1px solid var(--border);
                box-shadow: var(--shadow-lg);
                z-index: 1000;
            }
            .navbar-links.open .navbar-mobile-auth {
                display: flex;
                flex-direction: column;
                gap: 8px;
                align-items: flex-start;
                padding-top: 8px;
                border-top: 1px solid var(--border);
                margin-top: 4px;
                width: 100%;
            }
            .section-title { font-size: 26px; }
            section { padding: 60px 0; }
            #chatbot-widget { bottom: 16px; right: 16px; }

            /* Footer: stack columns vertically on mobile */
            .footer .container > div[style*="grid-template-columns"] {
                grid-template-columns: 1fr !important;
                gap: 32px !important;
            }
            .footer-bottom {
                flex-direction: column;
                gap: 8px;
                text-align: center;
            }
            .social-links { justify-content: flex-start; }
            .payment-track { gap: 32px; }
            .payment-logo { height: 48px; padding: 6px 14px; }
            .payment-logo img { max-height: 34px; max-width: 100px; }

            /* Chatbot window: make narrower on small screens */
            .chatbot-window { width: 290px; }
        }
