:root {
    --primary-color: #198754;
    --secondary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-bg: #1a1a2e;
    --sidebar-bg: #0f172a;
    --card-bg: #1e293b;
    --sidebar-width: 260px;
        }

        body {
            background-color: #f4f6f9;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .login-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
        }

        /* The marketing landing page (added below) is now the default view.
           #loginPage stays hidden until "Reseller Login" is clicked, or
           until the existing saved-session check further down finds a
           valid token and reveals the dashboard directly. */
        #loginPage {
            display: none;
        }

        .login-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            padding: 40px;
            width: 100%;
            max-width: 400px;
            animation: fadeInUp 0.5s ease;
        }

        .admin-wrapper {
            display: none;
        }

        /* ==================== SIDEBAR & MAIN CONTENT (single source of truth) ==================== */
        .sidebar {
            background: var(--sidebar-bg);
            color: white;
            width: var(--sidebar-width);
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            overflow-y: auto;
            z-index: 1000;
            transition: left 0.3s ease-in-out, width 0.3s ease-in-out;
        }

        .sidebar .nav-link {
            color: rgba(255, 255, 255, 0.8);
            padding: 12px 20px;
            margin: 5px 0;
            border-radius: 10px;
            transition: all 0.3s;
        }

        .sidebar .nav-link:hover,
        .sidebar .nav-link.active {
            background: var(--primary-color);
            color: white;
        }

        .sidebar .nav-link i {
            margin-right: 10px;
        }

        .main-content {
            padding: 20px;
            background: #f8f9fa;
            min-height: 100vh;
            margin-left: var(--sidebar-width);
            width: calc(100% - var(--sidebar-width));
            transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
        }

        /* خلفية داكنة عند فتح القائمة على الموبايل */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            cursor: pointer;
        }

        .sidebar-overlay.show {
            display: block;
        }

        /* ديسكتوب: طي القائمة بالكامل لتوسيع المحتوى */
        body.sidebar-collapsed .sidebar {
            left: calc(-1 * var(--sidebar-width));
        }

        body.sidebar-collapsed .main-content {
            margin-left: 0;
            width: 100%;
        }

        /* موبايل/تابلت: القائمة مخفية خارج الشاشة افتراضياً، تُفتح بالزر */
        @media (max-width: 991.98px) {
            .sidebar {
                left: calc(-1 * var(--sidebar-width));
                box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
            }

            body.sidebar-open .sidebar {
                left: 0;
            }

            .main-content {
                margin-left: 0;
                width: 100%;
                padding: 15px;
            }

            /* على الموبايل sidebar-collapsed لا تأثير له لأن القائمة مخفية أصلاً */
            body.sidebar-collapsed .sidebar {
                left: calc(-1 * var(--sidebar-width));
            }

            body.menu-open {
                overflow: hidden;
            }
        }

        #sidebarToggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            z-index: 1070;
            position: relative;
        }
        /* ==================== END SIDEBAR & MAIN CONTENT ==================== */

        .package-card {
            transition: transform 0.2s;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .package-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .package-price {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--success-color);
        }

        .package-credits {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--warning-color);
        }

        .package-badge {
            position: absolute;
            top: 10px;
            right: 10px;
        }

        .stat-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s;
            height: 100%;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }

        .stat-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
        }

        .stat-value {
            font-size: 2rem;
            font-weight: bold;
        }

        .stat-label {
            color: #6c757d;
            font-size: 0.9rem;
        }

        .table-responsive {
            background: white;
            border-radius: 15px;
            padding: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            border: none;
            display: block;
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .table {
            margin-bottom: 0;
        }

        .table td,
        .table th {
            white-space: nowrap;
            vertical-align: middle;
            padding: 10px 8px !important;
        }

        .btn-action {
            padding: 5px 10px;
            margin: 0 3px;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .badge-trial {
            background-color: #ffc107;
            color: #000;
        }

        .badge-premium {
            background-color: #198754;
        }

        .credit-badge {
            font-size: 1.2rem;
            background: var(--primary-color);
            padding: 8px 15px;
            border-radius: 30px;
        }

        .search-box {
            border-radius: 20px;
            padding: 8px 15px;
            border: 1px solid #ddd;
        }

        .action-buttons {
            white-space: nowrap;
        }

        .action-buttons .btn {
            margin: 2px;
        }

        .offer-card {
            transition: transform 0.2s;
            cursor: pointer;
        }

        .offer-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .lock-icon {
            color: #ffc107;
            margin-left: 5px;
        }

        /* Navbar */
        .navbar {
            position: sticky;
            top: 0;
            z-index: 990;
            background: white !important;
        }

        .navbar-text {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        @media (max-width: 576px) {
            .table {
                font-size: 12px;
            }

            .btn-sm {
                padding: 2px 5px !important;
            }

            .action-buttons {
                display: flex;
                gap: 2px;
            }

            .main-content {
                padding: 10px;
            }

            body {
                font-size: 0.9rem;
            }

            h4, h5 {
                font-size: 1.05rem;
            }

            .stat-card {
                padding: 12px;
                margin-bottom: 12px;
            }

            .stat-value {
                font-size: 1.3rem;
            }

            .stat-icon {
                font-size: 1.6rem;
            }

            .table-responsive {
                padding: 8px;
                border-radius: 10px;
            }

            .btn {
                font-size: 0.8rem;
                padding: 0.35rem 0.6rem;
            }

            .modal-dialog {
                margin: 0.5rem;
            }

            .navbar .navbar-text {
                font-size: 0.75rem;
            }

            .navbar .d-flex.gap-2 {
                gap: 0.3rem !important;
            }

            .input-group input.form-control {
                font-size: 0.85rem;
            }

            .package-price, .package-credits {
                font-size: 1.3rem;
            }
        }

        /* منع أي مودال كبير من عمل سكرول أفقي على الموبايل */
        @media (max-width: 767.98px) {
            .modal-dialog.modal-lg,
            .modal-dialog.modal-xl {
                max-width: calc(100% - 1rem);
            }
        }

        /* ACTION MENU (قائمة الـ 3 نقط) — نفس تصميم صفحة الأدمن */
        .action-menu-wrap {
            display: flex;
            justify-content: center;
        }

        .action-menu-btn {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #dee2e6;
            background: #fff;
            color: #495057;
            padding: 0;
        }

        .action-menu-btn:hover,
        .action-menu-btn:focus {
            background: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
        }

        .action-dropdown-menu {
            min-width: 190px;
            padding: 6px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            border: none;
            border-radius: 10px;
        }

        .action-dropdown-menu .dropdown-item {
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .action-dropdown-menu .dropdown-item i {
            width: 18px;
            text-align: center;
        }

        .action-dropdown-menu .dropdown-item.text-danger:hover {
            background-color: #f8d7da;
        }

        .action-dropdown-menu .dropdown-item.text-success:hover {
            background-color: #d1e7dd;
        }

        /* جداول تتحول لكروت على الموبايل بدل السكرول الأفقي */
        @media (max-width: 767.98px) {
            table.mobile-card-table {
                border: none;
                width: 100%;
            }

            table.mobile-card-table thead {
                display: none;
            }

            table.mobile-card-table,
            table.mobile-card-table tbody,
            table.mobile-card-table tr,
            table.mobile-card-table td {
                display: block;
                width: 100%;
            }

            table.mobile-card-table tr {
                margin-bottom: 12px;
                border: 1px solid #e5e7eb;
                border-radius: 12px;
                padding: 10px 12px;
                background: #fff;
                box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
            }

            table.mobile-card-table tr:last-child {
                margin-bottom: 0;
            }

            table.mobile-card-table td {
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 10px;
                text-align: right;
                border: none !important;
                border-bottom: 1px solid #f1f1f1 !important;
                padding: 7px 2px !important;
                white-space: normal !important;
                word-break: break-word;
            }

            table.mobile-card-table td:last-child {
                border-bottom: none !important;
            }

            table.mobile-card-table td::before {
                content: attr(data-label);
                font-weight: 600;
                font-size: 0.75rem;
                text-transform: uppercase;
                letter-spacing: 0.02em;
                color: #6c757d;
                text-align: left;
                padding-right: 10px;
                flex-shrink: 0;
            }

            table.mobile-card-table td[data-label=""]::before,
            table.mobile-card-table td:not([data-label])::before {
                content: none;
            }

            table.mobile-card-table td[data-label="Actions"] {
                justify-content: flex-end;
            }
        }

        body>.skiptranslate {
            display: none !important;
        }

        .goog-te-banner-frame {
            display: none !important;
        }

        .goog-te-gadget {
            color: transparent !important;
            font-size: 0 !important;
        }

        .goog-te-gadget-simple {
            display: none !important;
        }

        body>.skiptranslate,
        .goog-te-banner-frame,
        .goog-te-gadget,
        .goog-te-gadget-simple,
        .goog-tooltip,
        .goog-tooltip skiptranslate,
        .goog-logo,
        .goog-te-combo {
            display: none !important;
        }

        body {
            top: 0 !important;
            position: static !important;
        }
        /* ====== إخفاء زر الترجمة بالكامل ====== */
.goog-te-gadget {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

.goog-te-gadget-simple {
    display: none !important;
}

#google_translate_element {
    display: none !important;
}

/* منع أي عناصر ترجمة من الظهور */
.goog-tooltip,
.goog-tooltip skiptranslate,
.goog-logo,
.goog-te-combo {
    display: none !important;
}

body {
    top: 0 !important;
    position: static !important;
}

body > .skiptranslate {
    display: none !important;
}
/* ====== إخفاء كل عناصر الترجمة ====== */
.goog-te-gadget,
.goog-te-banner-frame,
.goog-te-gadget-simple,
#google_translate_element,
.goog-tooltip,
.goog-tooltip skiptranslate,
.goog-logo,
.goog-te-combo,
body > .skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
    position: static !important;
}

        .eg-market {
            --eg-bg: #0f051d;
            --eg-bg-soft: #150c28;
            --eg-card: #1a102d;
            --eg-card-soft: rgba(26, 16, 45, 0.55);
            --eg-primary: #6558FF;
            --eg-secondary: #9929ea;
            --eg-accent: #ff9b57;
            --eg-success: #10b981;
            --eg-text: #ffffff;
            --eg-muted: #9ca3af;
            --eg-border: rgba(255, 255, 255, 0.08);
            --eg-radius-lg: 32px;
            --eg-radius-md: 20px;
            font-family: 'Cairo', sans-serif;
            background: var(--eg-bg);
            color: var(--eg-text);
            direction: rtl;
            text-align: right;
            position: relative;
            overflow-x: clip;
            min-width: 280px;
        }
        .eg-market.eg-ltr { direction: ltr; text-align: left; }
        .eg-market * { box-sizing: border-box; }
        .eg-market img { max-width: 100%; display: block; }
        .eg-market .eg-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
        @media (min-width: 640px) { .eg-market .eg-container { padding: 0 32px; } }

        .eg-market a.eg-plain { text-decoration: none; color: inherit; }

        /* ---------- Buttons: one consistent system for every CTA on the page ---------- */
        .eg-market .eg-btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 10px;
            font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 15px;
            padding: 15px 30px; border-radius: 999px; border: none; cursor: pointer;
            text-decoration: none; white-space: nowrap;
            transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
        }
        .eg-market .eg-btn:active { transform: translateY(0) scale(0.97); }
        .eg-market .eg-btn-primary {
            background: linear-gradient(135deg, var(--eg-primary), var(--eg-secondary));
            color: #fff; box-shadow: 0 10px 30px rgba(101, 88, 255, 0.35);
        }
        .eg-market .eg-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(101, 88, 255, 0.45); }
        .eg-market .eg-btn-whatsapp {
            background: #25d366; color: #06210f; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
        }
        .eg-market .eg-btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(37, 211, 102, 0.4); }
        .eg-market .eg-btn-outline {
            background: rgba(255,255,255,0.04); color: var(--eg-text); border: 1.5px solid var(--eg-border);
        }
        .eg-market .eg-btn-outline:hover { border-color: var(--eg-primary); background: rgba(101,88,255,0.08); transform: translateY(-3px); }
        .eg-market .eg-btn-block { width: 100%; }
        @media (max-width: 480px) { .eg-market .eg-btn { padding: 14px 22px; font-size: 14px; } }

        /* ---------- Cards: glassmorphism, one shared recipe ---------- */
        .eg-market .eg-glass {
            background: var(--eg-card-soft);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--eg-border);
            border-radius: var(--eg-radius-lg);
            box-shadow: 0 20px 60px rgba(0,0,0,0.35);
        }
        .eg-market .eg-aurora { position: relative; isolation: isolate; }
        .eg-market .eg-aurora::before {
            content: ''; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; z-index: -1;
            background: conic-gradient(from var(--eg-angle, 0deg), var(--eg-primary), var(--eg-secondary), var(--eg-accent), var(--eg-primary));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor; mask-composite: exclude;
            opacity: 0.5; animation: eg-spin 7s linear infinite;
        }
        @keyframes eg-spin { to { --eg-angle: 360deg; } }
        @property --eg-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

        /* ---------- Section rhythm & headings ---------- */
        .eg-market section { padding: 64px 0; position: relative; z-index: 1; }
        @media (min-width: 768px) { .eg-market section { padding: 96px 0; } }
        .eg-market .eg-eyebrow {
            display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
            letter-spacing: 1px; color: var(--eg-accent); text-transform: uppercase;
            background: rgba(255,155,87,0.1); border: 1px solid rgba(255,155,87,0.25);
            padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
        }
        .eg-market .eg-heading {
            font-weight: 900; font-style: italic; line-height: 1.2; margin: 0 0 16px;
            font-size: clamp(1.6rem, 4.5vw, 2.7rem);
        }
        .eg-market .eg-sub {
            color: var(--eg-muted); font-weight: 600; line-height: 1.8;
            font-size: clamp(0.9rem, 2vw, 1.05rem); max-width: 640px;
        }
        .eg-market .eg-center { text-align: center; margin-inline: auto; }

        /* ---------- Reveal-on-scroll (shared by every section) ---------- */
        .eg-market [data-eg-reveal] {
            opacity: 0; transform: translateY(26px);
            transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
        }
        .eg-market [data-eg-reveal].eg-visible { opacity: 1; transform: translateY(0); }
        .eg-market [data-eg-reveal="left"] { transform: translateX(-32px); }
        .eg-market [data-eg-reveal="right"] { transform: translateX(32px); }
        .eg-market [data-eg-reveal="zoom"] { transform: scale(0.94); }
        .eg-market [data-eg-reveal="left"].eg-visible,
        .eg-market [data-eg-reveal="right"].eg-visible { transform: translateX(0); }
        .eg-market [data-eg-reveal="zoom"].eg-visible { transform: scale(1); }
        @media (prefers-reduced-motion: reduce) {
            .eg-market [data-eg-reveal] { opacity: 1; transform: none; transition: none; }
            .eg-market .eg-aurora::before { animation: none; }
        }

        /* ---------- Ambient orbs ---------- */
        .eg-market .eg-orbs { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
        .eg-market .eg-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.32; }
        .eg-market .eg-orb-1 { width: 480px; height: 480px; top: -140px; inset-inline-end: -100px; background: radial-gradient(circle, var(--eg-primary), transparent 70%); animation: eg-float1 20s ease-in-out infinite; }
        .eg-market .eg-orb-2 { width: 420px; height: 420px; bottom: -120px; inset-inline-start: -100px; background: radial-gradient(circle, var(--eg-secondary), transparent 70%); animation: eg-float2 24s ease-in-out infinite; }
        @keyframes eg-float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,50px) scale(1.12); } }
        @keyframes eg-float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-40px) scale(1.08); } }
        @media (max-width: 768px) { .eg-market .eg-orb { filter: blur(55px); opacity: 0.22; } .eg-market .eg-orb-1, .eg-market .eg-orb-2 { width: 280px; height: 280px; } }

        /* ---------- Top nav for the marketing page ---------- */
        .eg-market .eg-nav {
            position: sticky; top: 0; z-index: 50;
            background: rgba(15,5,29,0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--eg-border);
        }
        .eg-market .eg-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
        .eg-market .eg-logo { height: 30px; width: auto; }
        .eg-market .eg-nav-actions { display: flex; align-items: center; gap: 10px; }
        .eg-market .eg-lang-btn {
            background: rgba(255,255,255,0.05); border: 1px solid var(--eg-border); color: #fff;
            font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 13px;
            padding: 8px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
        }

        /* ---------- Hero ---------- */
        .eg-market .eg-hero { padding-top: 64px; padding-bottom: 56px; overflow: hidden; }
        @media (min-width: 768px) { .eg-market .eg-hero { padding-top: 90px; padding-bottom: 80px; } }
        .eg-market .eg-hero-grid { display: grid; gap: 40px; align-items: center; }
        @media (min-width: 992px) { .eg-market .eg-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
        .eg-market .eg-hero-badge {
            display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
            background: rgba(101,88,255,0.12); border: 1px solid rgba(101,88,255,0.3); color: #cabfff;
            padding: 7px 16px; border-radius: 999px; margin-bottom: 20px;
        }
        .eg-market .eg-hero h1 {
            font-weight: 900; font-style: italic; line-height: 1.15; margin: 0 0 20px;
            font-size: clamp(2rem, 6vw, 3.6rem);
        }
        .eg-market .eg-hero h1 .eg-accent-text {
            background: linear-gradient(135deg, var(--eg-accent), #ffba82);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .eg-market .eg-hero p.eg-lead {
            color: var(--eg-muted); font-weight: 600; line-height: 1.85; margin-bottom: 30px;
            font-size: clamp(0.95rem, 2.2vw, 1.15rem); max-width: 560px;
        }
        .eg-market .eg-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
        .eg-market .eg-hero-ctas .eg-btn { flex: 1 1 auto; min-width: 168px; }
        @media (max-width: 480px) { .eg-market .eg-hero-ctas .eg-btn { flex: 1 1 100%; } }
        .eg-market .eg-hero-trust { display: flex; flex-wrap: wrap; gap: 18px 28px; }
        .eg-market .eg-hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--eg-muted); }
        .eg-market .eg-hero-trust-item .material-symbols-outlined { color: var(--eg-success); font-size: 18px; }

        .eg-market .eg-hero-visual { position: relative; }
        .eg-market .eg-hero-card {
            padding: 26px; animation: eg-drift 7s ease-in-out infinite;
        }
        @keyframes eg-drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
        .eg-market .eg-hero-card-row {
            display: flex; align-items: center; justify-content: space-between;
            padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,0.03);
            border: 1px solid var(--eg-border); margin-bottom: 12px;
        }
        .eg-market .eg-hero-card-row:last-child { margin-bottom: 0; }
        .eg-market .eg-hero-mini-label { font-size: 11px; color: var(--eg-muted); font-weight: 700; }
        .eg-market .eg-hero-mini-value { font-size: 15px; font-weight: 900; }
        .eg-market .eg-hero-float-badge {
            position: absolute; top: -18px; inset-inline-start: -18px;
            background: linear-gradient(135deg, var(--eg-accent), #ffba82); color: #42220e;
            font-weight: 900; font-size: 13px; padding: 10px 18px; border-radius: 16px;
            box-shadow: 0 12px 30px rgba(255,155,87,0.4); animation: eg-drift 6s ease-in-out infinite reverse;
        }
        @media (max-width: 480px) { .eg-market .eg-hero-float-badge { position: static; display: inline-flex; margin-bottom: 14px; } }

        /* ---------- Stats ---------- */
        .eg-market .eg-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
        @media (min-width: 768px) { .eg-market .eg-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
        .eg-market .eg-stat-card { padding: 26px 16px; text-align: center; }
        .eg-market .eg-stat-num {
            font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; line-height: 1.15;
            background: linear-gradient(135deg, var(--eg-accent), #ffba82);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .eg-market .eg-stat-label { color: var(--eg-muted); font-weight: 700; font-size: 13px; margin-top: 6px; }

        /* ---------- Section heading spacing (sections 3+) ---------- */
        .eg-market .eg-section-head { margin-bottom: 40px; }
        @media (min-width: 768px) { .eg-market .eg-section-head { margin-bottom: 56px; } }
        .eg-market .eg-section-head { margin-bottom: 40px; }
        @media (min-width: 768px) { .eg-market .eg-section-head { margin-bottom: 56px; } }

        /* ---------- Why choose us (feature cards) ---------- */
        .eg-market .eg-feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
        @media (min-width: 560px) { .eg-market .eg-feature-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 992px) { .eg-market .eg-feature-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
        .eg-market .eg-feature-card {
            padding: 28px 22px; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.35s ease, box-shadow 0.35s ease;
        }
        .eg-market .eg-feature-card:hover {
            transform: translateY(-6px); border-color: rgba(101,88,255,0.4);
            box-shadow: 0 20px 45px rgba(101,88,255,0.18);
        }
        .eg-market .eg-feature-icon {
            width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
            background: linear-gradient(135deg, rgba(101,88,255,0.22), rgba(153,41,234,0.1));
            color: var(--eg-primary); margin-bottom: 16px;
        }
        .eg-market .eg-feature-card h3 { font-size: 16px; font-weight: 900; margin: 0 0 8px; }
        .eg-market .eg-feature-card p { font-size: 13px; color: var(--eg-muted); font-weight: 600; line-height: 1.7; margin: 0; }

        /* ---------- How it works (timeline) ---------- */
        .eg-market .eg-timeline { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
        @media (min-width: 900px) { .eg-market .eg-timeline { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
        .eg-market .eg-timeline-step { position: relative; padding-inline-start: 60px; padding-bottom: 36px; }
        @media (min-width: 900px) { .eg-market .eg-timeline-step { padding-inline-start: 0; padding-bottom: 0; text-align: center; } }
        .eg-market .eg-timeline-step::before {
            content: ''; position: absolute; inset-inline-start: 21px; top: 44px; bottom: -4px; width: 2px;
            background: linear-gradient(var(--eg-border), var(--eg-border));
        }
        .eg-market .eg-timeline-step:last-child::before { display: none; }
        @media (min-width: 900px) {
            .eg-market .eg-timeline-step::before {
                inset-inline-start: 50%; top: 22px; bottom: auto; width: calc(100% - 8px); height: 2px; inset-inline-end: -50%;
            }
            .eg-market .eg-timeline-step:last-child::before { display: none; }
        }
        .eg-market .eg-timeline-num {
            position: absolute; inset-inline-start: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
            background: linear-gradient(135deg, var(--eg-primary), var(--eg-secondary)); color: #fff;
            display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; z-index: 1;
            box-shadow: 0 8px 20px rgba(101,88,255,0.4);
        }
        @media (min-width: 900px) { .eg-market .eg-timeline-num { position: static; margin: 0 auto 18px; } }
        .eg-market .eg-timeline-step h3 { font-size: 15px; font-weight: 900; margin: 0 0 6px; }
        .eg-market .eg-timeline-step p { font-size: 13px; color: var(--eg-muted); font-weight: 600; line-height: 1.6; margin: 0; max-width: 220px; }
        @media (min-width: 900px) { .eg-market .eg-timeline-step p { margin-inline: auto; } }

        /* ---------- Pricing ---------- */
        .eg-market .eg-price-note {
            display: flex; align-items: center; gap: 10px; max-width: 620px; margin: -14px auto 40px;
            background: rgba(101,88,255,0.08); border: 1px solid rgba(101,88,255,0.25);
            border-radius: 14px; padding: 12px 18px; font-size: 13px; font-weight: 700; color: #cabfff;
        }
        .eg-market .eg-price-note .material-symbols-outlined { color: var(--eg-primary); flex-shrink: 0; }
        .eg-market .eg-pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
        @media (min-width: 640px) { .eg-market .eg-pricing-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 1100px) { .eg-market .eg-pricing-grid { grid-template-columns: repeat(4, 1fr); } }
        .eg-market .eg-price-card {
            padding: 32px 26px; display: flex; flex-direction: column; position: relative;
            transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
        }
        .eg-market .eg-price-card:hover { transform: translateY(-6px); }
        .eg-market .eg-price-card.eg-price-featured {
            border-color: var(--eg-primary); background: linear-gradient(165deg, rgba(101,88,255,0.14), rgba(26,16,45,0.7));
        }
        @media (min-width: 1100px) { .eg-market .eg-price-card.eg-price-featured { transform: scale(1.045); z-index: 1; } }
        .eg-market .eg-price-badge {
            position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(-50%);
            background: linear-gradient(135deg, var(--eg-accent), #ffba82); color: #42220e;
            font-size: 11px; font-weight: 900; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
            box-shadow: 0 8px 20px rgba(255,155,87,0.4);
        }
        .eg-market.eg-ltr .eg-price-badge { transform: translateX(50%); }
        .eg-market .eg-price-tier { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--eg-muted); margin-bottom: 10px; }
        .eg-market .eg-price-credits { font-size: 30px; font-weight: 900; margin-bottom: 4px; }
        .eg-market .eg-price-credits small { font-size: 13px; font-weight: 700; color: var(--eg-muted); }
        .eg-market .eg-price-desc { font-size: 13px; color: var(--eg-muted); font-weight: 600; margin-bottom: 20px; min-height: 36px; }
        .eg-market .eg-price-features { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
        .eg-market .eg-price-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
        .eg-market .eg-price-features .material-symbols-outlined { color: var(--eg-success); font-size: 18px; flex-shrink: 0; }

        /* ---------- Comparison table ---------- */
        .eg-market .eg-compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--eg-radius-md); border: 1px solid var(--eg-border); }
        .eg-market .eg-compare-table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--eg-card-soft); }
        .eg-market .eg-compare-table th, .eg-market .eg-compare-table td {
            padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--eg-border); font-size: 13px; font-weight: 700;
        }
        .eg-market .eg-compare-table thead th {
            font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--eg-muted); font-weight: 800;
            background: rgba(255,255,255,0.02);
        }
        .eg-market .eg-compare-table td:first-child, .eg-market .eg-compare-table th:first-child {
            text-align: start; color: #fff; font-weight: 800; position: sticky; inset-inline-start: 0; background: var(--eg-card);
        }
        .eg-market .eg-compare-table thead th:first-child { background: var(--eg-card); }
        .eg-market .eg-compare-table tbody tr:last-child td { border-bottom: none; }
        .eg-market .eg-compare-table .eg-compare-featured { color: var(--eg-primary); }
        .eg-market .eg-compare-table .material-symbols-outlined.eg-yes { color: var(--eg-success); }
        .eg-market .eg-compare-table .material-symbols-outlined.eg-no { color: rgba(255,255,255,0.2); }

        /* ---------- Dashboard preview ---------- */
        .eg-market .eg-preview-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
        @media (min-width: 992px) { .eg-market .eg-preview-grid { grid-template-columns: 0.95fr 1.05fr; gap: 56px; } }
        .eg-market .eg-preview-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
        .eg-market .eg-preview-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 700; color: #e5e5e5; }
        .eg-market .eg-preview-list .material-symbols-outlined { color: var(--eg-primary); font-size: 20px; flex-shrink: 0; margin-top: 1px; }
        .eg-market .eg-mock-window { padding: 0; overflow: hidden; }
        .eg-market .eg-mock-bar { display: flex; align-items: center; gap: 6px; padding: 14px 18px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--eg-border); }
        .eg-market .eg-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
        .eg-market .eg-mock-body { padding: 22px; display: grid; gap: 14px; }
        .eg-market .eg-mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
        .eg-market .eg-mock-stat {
            background: rgba(255,255,255,0.03); border: 1px solid var(--eg-border); border-radius: 14px; padding: 14px 12px;
        }
        .eg-market .eg-mock-stat span { display: block; }
        .eg-market .eg-mock-stat .eg-mock-stat-val { font-size: 15px; font-weight: 900; margin-top: 4px; }
        .eg-market .eg-mock-stat .eg-mock-stat-label { font-size: 11px; color: var(--eg-muted); font-weight: 700; }
        .eg-market .eg-mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 6px 4px 0; }
        .eg-market .eg-mock-bars span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--eg-primary), var(--eg-secondary)); opacity: 0.85; }
        .eg-market .eg-mock-row-item {
            display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
            background: rgba(255,255,255,0.02); border: 1px solid var(--eg-border); border-radius: 12px; font-size: 12px; font-weight: 700;
        }

        /* ---------- FAQ ---------- */
        .eg-market .eg-faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
        .eg-market .eg-faq-item { padding: 0; overflow: hidden; cursor: pointer; }
        .eg-market .eg-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; }
        .eg-market .eg-faq-q h3 { font-size: 14px; font-weight: 800; margin: 0; }
        .eg-market .eg-faq-q .material-symbols-outlined { color: var(--eg-primary); font-size: 22px; transition: transform 0.35s ease; flex-shrink: 0; }
        .eg-market .eg-faq-item.eg-open .eg-faq-q .material-symbols-outlined { transform: rotate(180deg); }
        .eg-market .eg-faq-a {
            max-height: 0; opacity: 0; overflow: hidden; padding: 0 24px;
            transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease, padding 0.3s ease;
        }
        .eg-market .eg-faq-item.eg-open .eg-faq-a { max-height: 240px; opacity: 1; padding: 0 24px 22px; }
        .eg-market .eg-faq-a p { margin: 0; font-size: 13px; color: var(--eg-muted); font-weight: 600; line-height: 1.8; }

        /* ---------- Final CTA ---------- */
        .eg-market .eg-final-cta { padding: 48px 24px; text-align: center; }
        @media (min-width: 768px) { .eg-market .eg-final-cta { padding: 68px 40px; } }
        .eg-market .eg-final-cta h2 { margin-bottom: 14px; }
        .eg-market .eg-final-cta p { max-width: 560px; margin: 0 auto 30px; }
        .eg-market .eg-final-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
        .eg-market .eg-final-ctas .eg-btn { min-width: 180px; }