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

        @media (max-width: 1024px) {
            textarea,
            select,
            input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="hidden"]):not([type="file"]):not([type="color"]) {
                font-size: 16px !important;
            }
        }

        body {
            font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 14px;
            color: #e4eaf4;
            overflow-x: hidden;
            line-height: 1.68;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
            /* تدرج الأصلي + ضبابية خفيفة جداً (أخف من السابق قليلاً) */
            background-color: #0f1535;
            background-image:
                radial-gradient(ellipse 84% 66% at 50% 47%, rgba(255, 255, 255, 0.042) 0%, rgba(255, 255, 255, 0.014) 42%, transparent 70%),
                radial-gradient(ellipse 100% 50% at 50% -2%, rgba(248, 250, 252, 0.055) 0%, transparent 48%),
                radial-gradient(ellipse 54% 80% at 4% 54%, rgba(59, 130, 246, 0.085) 0%, transparent 54%),
                radial-gradient(ellipse 54% 80% at 96% 44%, rgba(99, 102, 241, 0.065) 0%, transparent 54%),
                linear-gradient(135deg, #0f1535 0%, #1a1f4a 100%);
            background-attachment: fixed;
            background-repeat: no-repeat;
            background-size: cover;
        }

        button,
        input,
        select,
        textarea {
            font-family: inherit;
        }

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

        /* Header */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(15, 21, 53, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(59, 130, 246, 0.3);
            z-index: 1000;
            padding: 15px 0;
            transition: all 0.3s ease;
        }

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

        /* ارتفاع صف الشعار — العربية: أقصى اليسار (فيزيائياً)، غير العربية: أقصى اليمين */
        .header-locale-wrap {
            position: absolute;
            top: 50%;
            transform: translateY(calc(-50% + 3px));
            z-index: 1002;
        }

        html[dir="rtl"] .header-locale-wrap {
            left: max(10px, env(safe-area-inset-left, 0px));
            right: auto;
        }

        html[dir="ltr"] .header-locale-wrap {
            right: max(10px, env(safe-area-inset-right, 0px));
            left: auto;
        }

        .logo {
            font-size: 23px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #eef2f7;
        }

        .logo-text {
            display: inline-block;
            font-size: 0.88em;
            font-weight: 800;
            color: transparent;
            background: linear-gradient(
                90deg,
                #dca438 0%,
                #dca438 24%,
                #fff7dd 31%,
                #f2cb69 38%,
                #fff2cf 45%,
                #dca438 52%,
                #dca438 100%
            );
            -webkit-background-clip: text;
            background-clip: text;
            background-size: 320% 100%;
            background-position: -140% 50%;
            animation: logoGradientFlow 4.1s linear infinite;
            text-shadow: 0 0 7px rgba(246, 214, 127, 0.2);
            letter-spacing: 0.01em;
            will-change: background-position, text-shadow;
        }

        /* Force consistent logo colors in dark mode */
        body:not(.light-mode) .logo-text {
            color: transparent;
            background: linear-gradient(
                90deg,
                #dca438 0%,
                #dca438 24%,
                #fff7dd 31%,
                #f2cb69 38%,
                #fff2cf 45%,
                #dca438 52%,
                #dca438 100%
            );
            -webkit-background-clip: text;
            background-clip: text;
            background-size: 320% 100%;
            background-position: -140% 50%;
            animation: logoGradientFlow 4.1s linear infinite !important;
            text-shadow: 0 0 7px rgba(246, 214, 127, 0.2);
        }

        .logo i {
            color: #ddb865;
            text-shadow: none;
            background: transparent;
            border: none;
            border-radius: 0;
            width: 26px;
            height: 26px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.76em;
        }

        body:not(.light-mode) .logo i {
            color: #ddb865;
            text-shadow: none;
        }

        @keyframes logoColorFlowDark {
            0% { color: #c9972e; }
            35% { color: #f2cf7a; }
            70% { color: #d7a63d; }
            100% { color: #c9972e; }
        }

        @keyframes logoColorFlowLight {
            0% { color: #c79f43; }
            35% { color: #dfbc6e; }
            70% { color: #be9540; }
            100% { color: #c79f43; }
        }

        @keyframes logoBlink {
            0%, 100% {
                opacity: 1;
                text-shadow: 0 0 7px rgba(242, 207, 122, 0.24);
            }
            45% {
                opacity: 0.88;
                text-shadow: 0 0 10px rgba(242, 207, 122, 0.32);
            }
            55% {
                opacity: 0.9;
                text-shadow: 0 0 9px rgba(242, 207, 122, 0.3);
            }
        }

        @keyframes logoFlowLTR {
            0% {
                color: #d0a94f;
                text-shadow:
                    -12px 0 11px rgba(208, 169, 79, 0.2),
                    0 0 14px rgba(245, 214, 136, 0.16);
            }
            30% {
                color: #f0cf86;
                text-shadow:
                    -3px 0 12px rgba(240, 207, 134, 0.22),
                    0 0 16px rgba(255, 238, 189, 0.14);
            }
            60% {
                color: #c89e45;
                text-shadow:
                    7px 0 12px rgba(200, 158, 69, 0.24),
                    0 0 14px rgba(232, 191, 102, 0.14);
            }
            100% {
                color: #d0a94f;
                text-shadow:
                    12px 0 11px rgba(208, 169, 79, 0.2),
                    0 0 14px rgba(245, 214, 136, 0.16);
            }
        }

        @keyframes logoFlowLTRDark {
            0% {
                color: #c9972e;
                text-shadow:
                    -14px 0 12px rgba(201, 151, 46, 0.28),
                    0 0 16px rgba(252, 211, 120, 0.2);
            }
            35% {
                color: #f2cf7a;
                text-shadow:
                    -2px 0 13px rgba(242, 207, 122, 0.3),
                    0 0 18px rgba(255, 234, 178, 0.22);
            }
            70% {
                color: #d7a63d;
                text-shadow:
                    10px 0 13px rgba(215, 166, 61, 0.3),
                    0 0 17px rgba(242, 203, 112, 0.2);
            }
            100% {
                color: #c9972e;
                text-shadow:
                    14px 0 12px rgba(201, 151, 46, 0.28),
                    0 0 16px rgba(252, 211, 120, 0.2);
            }
        }

        @keyframes logoGradientFlow {
            0% {
                background-position: -140% 50%;
            }
            100% {
                background-position: 140% 50%;
            }
        }

        @keyframes logoGradientFlowRtl {
            0% {
                background-position: 140% 50%;
            }
            100% {
                background-position: -140% 50%;
            }
        }

        html[dir="rtl"] .logo-text,
        html[dir="rtl"] body:not(.light-mode) .logo-text {
            animation: logoGradientFlowRtl 4.1s linear infinite !important;
        }

        html[dir="rtl"] body.light-mode .logo-text {
            animation: logoGradientFlowRtl 4.3s linear infinite !important;
        }

        @media (prefers-reduced-motion: reduce) {
            .logo {
                animation: none;
            }
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 22px;
            justify-content: center;
            width: 100%;
        }

        nav ul li {
            position: relative;
            display: inline-flex;
            align-items: center;
        }

        nav ul li + li::before {
            content: '';
            position: absolute;
            right: -11px;
            width: 1px;
            height: 14px;
            background: rgba(251, 191, 36, 0.55);
            border-radius: 999px;
        }

        nav a {
            color: #e0e6ff;
            text-decoration: none;
            font-weight: 700;
            font-size: 0.84rem;
            transition: color 0.3s ease;
        }

        nav a:hover {
            color: #60a5fa;
        }

        /* قائمة الرأس — العربية فقط: وسط بين الحجم الأصلي والنسخة المصغّرة + توسيط المجموعة */
        html[dir="rtl"] nav ul {
            gap: 28px;
            justify-content: center;
        }

        html[dir="rtl"] nav a {
            font-size: 0.82rem;
        }

        html[dir="rtl"] nav ul li + li::before {
            right: -14px;
        }

        nav {
            position: relative;
        }

        .locale-chip {
            position: relative;
            left: auto;
            top: auto;
            transform: none;
            display: inline-flex;
            align-items: center;
            gap: 0;
            border: 1px solid rgba(148, 163, 184, 0.32);
            background: rgba(15, 23, 42, 0.62);
            color: #e2e8f0;
            border-radius: 999px;
            padding: 4px 9px;
            font-size: 0.72rem;
            font-weight: 700;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .locale-chip .code {
            font-size: 0.64rem;
            color: #bfdbfe;
            letter-spacing: 0.03em;
        }

        .locale-menu {
            position: absolute;
            top: calc(100% + 8px);
            width: 200px;
            background: rgba(9, 14, 29, 0.98);
            border: 1px solid rgba(148, 163, 184, 0.24);
            border-radius: 12px;
            box-shadow: 0 16px 34px rgba(2, 6, 23, 0.5);
            padding: 6px;
            display: none;
            z-index: 1200;
        }

        html[dir="rtl"] .locale-menu {
            left: 0;
            right: auto;
        }

        html[dir="ltr"] .locale-menu {
            right: 0;
            left: auto;
        }

        .locale-menu.active {
            display: block;
        }

        .locale-option {
            width: 100%;
            border: none;
            text-align: right;
            background: transparent;
            color: #e2e8f0;
            border-radius: 10px;
            padding: 9px 10px;
            cursor: pointer;
            font-size: 13px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 700;
        }

        .locale-option:hover {
            background: rgba(59, 130, 246, 0.16);
        }

        .locale-chip:hover {
            border-color: rgba(96, 165, 250, 0.65);
            background: rgba(30, 41, 59, 0.78);
            color: #f8fafc;
        }

        .cta-btn {
            background: linear-gradient(135deg, #60a5fa, #3b82f6);
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.94rem;
            line-height: 1.2;
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
        }

        .cta-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(96, 165, 250, 0.6);
        }

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

        .header-actions,
        .hero-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .hero-actions {
            justify-content: center;
        }

        .login-btn {
            background: transparent;
            color: #eef2f7;
            border: 1px solid rgba(251, 191, 36, 0.45);
            border-radius: 12px;
            padding: 10px 20px;
            font-size: 0.94rem;
            font-weight: 600;
            line-height: 1.2;
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            letter-spacing: 0;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 14px rgba(251, 191, 36, 0.14);
        }

        .login-btn:hover {
            color: #f8fafc;
            border-color: rgba(251, 191, 36, 0.85);
            background: rgba(251, 191, 36, 0.08);
            box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            text-align: center;
            padding: 120px 20px 80px;
        }

        .hero-content h1 {
            font-size: 2.75rem;
            font-weight: 900;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-content p {
            font-size: 0.98rem;
            color: #c8d4e8;
            margin-bottom: 40px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.75;
        }

        /* Sections */
        section {
            padding: 80px 0;
        }

        .section-title {
            text-align: center;
            font-size: 1.95rem;
            font-family: 'Tajawal', 'Segoe UI', sans-serif;
            font-weight: 800;
            letter-spacing: 0.01em;
            margin-bottom: 60px;
            color: #60a5fa;
            text-rendering: geometricPrecision;
        }

        #demo .section-title,
        #pricing .section-title {
            font-family: 'Tajawal', 'Segoe UI', sans-serif;
            font-weight: 800;
            letter-spacing: 0.018em;
            text-transform: none;
            color: #e2e9f4;
            text-shadow: 0 2px 14px rgba(15, 23, 42, 0.28);
        }

        #demo .section-title,
        #pricing .section-title {
            position: relative;
            padding-top: 10px;
        }

        #demo .section-title::before,
        #pricing .section-title::before {
            content: '';
            position: absolute;
            top: -4px;
            left: 50%;
            transform: translateX(-50%);
            width: min(640px, 82%);
            height: 1px;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(245, 158, 11, 0.28) 10%,
                rgba(251, 191, 36, 0.88) 26%,
                rgba(251, 191, 36, 0.42) 52%,
                rgba(251, 191, 36, 0.88) 78%,
                rgba(245, 158, 11, 0.24) 90%,
                transparent 100%
            );
            border-radius: 999px;
            box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
        }

        #pricing .pricing-section-head {
            position: relative;
            text-align: center;
            margin-bottom: 48px;
        }

        #pricing .pricing-section-head .section-title::before {
            display: none;
        }

        #pricing .pricing-section-head .section-title {
            padding-top: 0;
            margin-bottom: 18px;
        }

        #pricing .integration-switcher {
            display: flex;
            gap: 8px;
            margin: 0 auto 16px;
            overflow: visible;
            justify-content: center;
            width: min(420px, 92%);
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 0;
        }

        #pricing .integration-switcher .plan-switcher-btn {
            flex: 1 1 0;
            min-width: 0;
            width: auto;
            border: 1px solid rgba(148, 163, 184, 0.24);
            background: rgba(15, 23, 42, 0.62);
            color: #dbe5f5;
            border-radius: 10px;
            padding: 8px 10px;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            text-align: center;
            line-height: 1.2;
            transition: all 0.2s ease;
        }

        #pricing .integration-switcher .plan-switcher-btn.active[data-integration="cex"] {
            border-color: rgba(251, 191, 36, 0.72);
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(217, 119, 6, 0.2));
            color: #fde68a;
            box-shadow: 0 8px 16px rgba(245, 158, 11, 0.18);
        }

        #pricing .integration-switcher .plan-switcher-btn.active[data-integration="dex"] {
            border-color: rgba(96, 165, 250, 0.72);
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(37, 99, 235, 0.16));
            color: #e0f2fe;
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.16);
        }

        .pricing-head-divider {
            width: min(640px, 82%);
            height: 1px;
            margin: 0 auto 18px;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(245, 158, 11, 0.28) 10%,
                rgba(251, 191, 36, 0.88) 26%,
                rgba(251, 191, 36, 0.42) 52%,
                rgba(251, 191, 36, 0.88) 78%,
                rgba(245, 158, 11, 0.24) 90%,
                transparent 100%
            );
            border-radius: 999px;
            box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
            animation: pricingDividerPulseGold 2.4s ease-in-out infinite;
        }

        .pricing-head-divider.is-cex-theme {
            animation: pricingDividerPulseBlue 2.4s ease-in-out infinite;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(37, 99, 235, 0.28) 10%,
                rgba(59, 130, 246, 0.88) 26%,
                rgba(59, 130, 246, 0.42) 52%,
                rgba(59, 130, 246, 0.88) 78%,
                rgba(37, 99, 235, 0.24) 90%,
                transparent 100%
            );
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.28);
        }

        .pricing-head-divider.is-dex-theme {
            animation: pricingDividerPulseGold 2.4s ease-in-out infinite;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(245, 158, 11, 0.28) 10%,
                rgba(251, 191, 36, 0.88) 26%,
                rgba(251, 191, 36, 0.42) 52%,
                rgba(251, 191, 36, 0.88) 78%,
                rgba(245, 158, 11, 0.24) 90%,
                transparent 100%
            );
            box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
        }

        @keyframes pricingDividerPulseGold {
            0%, 100% { opacity: 0.72; box-shadow: 0 0 8px rgba(251, 191, 36, 0.16); }
            50% { opacity: 1; box-shadow: 0 0 18px rgba(251, 191, 36, 0.42); }
        }

        @keyframes pricingDividerPulseBlue {
            0%, 100% { opacity: 0.72; box-shadow: 0 0 8px rgba(59, 130, 246, 0.16); }
            50% { opacity: 1; box-shadow: 0 0 18px rgba(59, 130, 246, 0.42); }
        }

        .integration-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 2050;
            background: rgba(2, 6, 23, 0.82);
            backdrop-filter: blur(4px);
        }

        .integration-modal.active {
            display: flex;
        }

        .integration-modal-card {
            width: min(520px, 100%);
            background: linear-gradient(180deg, #0b1220 0%, #111c33 100%);
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 18px;
            box-shadow: 0 28px 60px rgba(2, 6, 23, 0.62);
            overflow: hidden;
            animation: integrationModalIn 0.28s ease;
        }

        @keyframes integrationModalIn {
            from { opacity: 0; transform: translateY(12px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .integration-modal-head {
            padding: 18px 22px 14px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
            background: rgba(15, 23, 42, 0.72);
        }

        .integration-modal-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #fcd34d;
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(251, 191, 36, 0.32);
            border-radius: 999px;
            padding: 4px 10px;
        }

        .integration-modal-badge--dex {
            color: #93c5fd;
            background: rgba(37, 99, 235, 0.14);
            border-color: rgba(59, 130, 246, 0.35);
        }

        .integration-modal-title {
            margin: 10px 0 0;
            font-size: 1.25rem;
            font-weight: 800;
            color: #f8fafc;
            letter-spacing: 0.01em;
        }

        .integration-modal-body {
            padding: 18px 22px 20px;
            color: #cbd5e1;
            font-size: 0.92rem;
            line-height: 1.85;
        }

        .integration-modal-body p {
            margin: 0 0 12px;
        }

        .integration-modal-body p:last-child {
            margin-bottom: 0;
        }

        .integration-modal-highlight {
            margin-top: 14px;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            background: rgba(15, 23, 42, 0.55);
            color: #e2e8f0;
            font-size: 0.86rem;
        }

        .integration-modal-actions {
            display: flex;
            gap: 10px;
            padding: 0 22px 18px;
        }

        .integration-modal-btn {
            flex: 1 1 0;
            min-height: 42px;
            border-radius: 10px;
            border: 1px solid transparent;
            font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
            font-size: 0.88rem;
            font-weight: 800;
            cursor: pointer;
            transition: filter 0.15s ease, transform 0.12s ease;
        }

        .integration-modal-btn:active {
            transform: translateY(1px);
        }

        .integration-modal-btn--confirm {
            background: linear-gradient(180deg, rgba(252, 213, 53, 0.78) 0%, rgba(240, 185, 11, 0.72) 100%);
            border-color: rgba(212, 175, 55, 0.42);
            color: #0f172a;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 14px rgba(240, 185, 11, 0.12);
        }

        .integration-modal-btn--confirm:hover {
            background: linear-gradient(180deg, rgba(252, 213, 53, 0.86) 0%, rgba(240, 185, 11, 0.8) 100%);
        }

        .integration-modal-btn--cancel {
            background: rgba(15, 23, 42, 0.55);
            border-color: rgba(148, 163, 184, 0.28);
            color: #cbd5e1;
        }

        .price-display-row {
            display: inline-flex;
            align-items: baseline;
            justify-content: center;
            gap: 12px;
            direction: ltr;
            min-height: 2rem;
        }

        .price-display-row .original-price {
            display: none;
            text-decoration: line-through;
            color: #8ea0bd;
            font-size: 1rem;
            font-weight: 700;
            opacity: 0.92;
            margin: 0;
        }

        .pricing-card.dex-pricing-active .price-display-row .original-price {
            display: inline-block;
            animation: pricePromoIn 0.45s ease;
        }

        .pricing-card.dex-pricing-active .discounted-price {
            animation: pricePromoIn 0.45s ease;
            color: #86efac;
            text-shadow: 0 0 14px rgba(34, 197, 94, 0.22);
        }

        @keyframes pricePromoIn {
            0% { opacity: 0; transform: translateY(6px) scale(0.96); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* Cards */
        .card {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 16px;
            padding: 30px;
            transition: all 0.3s ease;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .card:hover::before {
            opacity: 1;
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(96, 165, 250, 0.3);
            border-color: rgba(96, 165, 250, 0.3);
        }

        .card-title {
            font-size: 1.42rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: #f1f5f9;
            letter-spacing: 0.01em;
        }

        .card-subtitle {
            color: #fbbf24;
            font-weight: 600;
            margin-bottom: 20px;
            font-size: 0.86rem;
        }

        .plan-performance {
            margin: 6px 0 18px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(16, 185, 129, 0.16));
            border: 1px solid rgba(96, 165, 250, 0.35);
            color: #fbbf24;
            font-size: 0.84rem;
            font-weight: 700;
        }

        .plan-performance i {
            color: #93c5fd;
        }

        .card-description {
            color: #dce3f0;
            margin-bottom: 25px;
            font-size: 0.84rem;
            line-height: 1.75;
        }

        .card-features {
            list-style: none;
            margin-bottom: 25px;
        }

        .card-features li {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            color: #d1dbf0;
            font-size: 0.82rem;
            line-height: 1.65;
        }

        .card-features i {
            color: #10b981;
            min-width: 16px;
        }

        .card-features li.feature-positive i {
            color: #22c55e;
        }

        .card-features li.feature-negative i {
            color: #ef4444;
        }

        .card-price {
            font-size: 2rem;
            font-weight: 800;
            color: #60a5fa;
            margin-bottom: 20px;
        }

        .btn {
            background: linear-gradient(135deg, #60a5fa, #3b82f6);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.92rem;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
            position: relative;
            overflow: hidden;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(96, 165, 250, 0.5);
        }

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

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            pointer-events: none;
        }

        .btn:active::before {
            animation: ripple 0.6s ease-out;
        }

        @keyframes ripple {
            to {
                width: 300px;
                height: 300px;
                opacity: 0;
            }
        }

        /* Demo Section */
        .demo-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Pricing Section */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            align-items: stretch;
        }

        .plan-switcher {
            display: none;
        }

        .pricing-card {
            position: relative;
            display: flex;
            flex-direction: column;
            background: linear-gradient(180deg, rgba(18, 27, 68, 0.98), rgba(10, 17, 44, 0.98));
            border: 1px solid rgba(96, 165, 250, 0.32);
            border-radius: 18px;
            padding: 26px;
            box-shadow: 0 18px 38px rgba(2, 6, 23, 0.58);
            backdrop-filter: blur(10px);
        }

        .pricing-card.recommended {
            border-color: #f59e0b;
            background: linear-gradient(180deg, rgba(27, 36, 82, 0.98), rgba(11, 18, 46, 0.98));
            padding-top: 44px;
            transform: translateY(-3px);
        }

        .recommended-badge {
            position: absolute;
            top: 12px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: #111827;
            padding: 6px 16px;
            border-radius: 999px;
            font-weight: 800;
            font-size: 0.78rem;
            z-index: 2;
            white-space: nowrap;
            box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
        }

        .pricing-card .card-title {
            margin-bottom: 8px;
            font-size: 1.28rem;
            color: #f8fafc;
        }

        .pricing-card .card-title .plan-tier {
            color: #fbbf24;
        }

        .pricing-card .card-subtitle {
            margin-bottom: 14px;
            color: #fbbf24;
            font-size: 0.84rem;
        }

        .pricing-card .card-features {
            margin-bottom: 18px;
            padding: 14px 12px;
            border-radius: 12px;
            background: rgba(15, 23, 42, 0.58);
            border: 1px solid rgba(148, 163, 184, 0.16);
        }

        .pricing-card .card-features li {
            margin-bottom: 8px;
            font-size: 0.8rem;
        }

        .pricing-card .card-features li:last-child {
            margin-bottom: 0;
        }

        .pricing-card .period-selector {
            margin: 4px 0 16px;
            padding: 0;
            border-radius: 0;
            background: transparent;
            border: none;
        }

        .pricing-card .price-display {
            margin-bottom: 14px;
        }

        .pricing-card .btn {
            margin-top: auto;
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.8rem !important;
            min-height: 38px;
            padding: 8px 12px;
            background: linear-gradient(180deg, #f1d38d, #e5ba67) !important;
            border: 1px solid rgba(210, 162, 74, 0.62);
            color: #2f2313;
            box-shadow: 0 8px 16px rgba(166, 121, 49, 0.22);
            transition: all 0.25s ease;
            position: relative;
        }

        .pricing-card .btn:hover {
            background: linear-gradient(180deg, #f4dc9f, #ebc97f) !important;
            border-color: rgba(210, 162, 74, 0.84);
            color: #261c0f;
            box-shadow: 0 10px 18px rgba(166, 121, 49, 0.28);
        }

        .pricing-card .btn::after {
            content: ' \2190';
            font-size: 0.78rem;
            opacity: 0.9;
        }

        /* Keep Demo card visual style aligned with plan cards */
        .demo-card {
            background: linear-gradient(180deg, rgba(18, 27, 68, 0.98), rgba(10, 17, 44, 0.98));
            border: 1px solid rgba(96, 165, 250, 0.32);
            box-shadow: 0 18px 38px rgba(2, 6, 23, 0.58);
            backdrop-filter: blur(10px);
        }

        /* Desktop layout: single shared container for all paid plans */
        @media (min-width: 992px) {
            .pricing-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 0;
                background: rgba(15, 21, 53, 0.95);
                border: 1px solid rgba(148, 163, 184, 0.08);
                border-radius: 20px;
                padding: 14px;
                box-shadow: 0 18px 40px rgba(2, 6, 23, 0.5);
                overflow: visible;
                position: relative;
            }

            /* Fixed separators exactly between the 3 plans */
            .pricing-grid::before,
            .pricing-grid::after {
                content: '';
                position: absolute;
                top: 16%;
                height: 68%;
                width: 1px;
                background: linear-gradient(
                    180deg,
                    rgba(251, 191, 36, 0.12),
                    rgba(251, 191, 36, 0.95),
                    rgba(251, 191, 36, 0.12)
                );
                border-radius: 999px;
                box-shadow: 0 0 10px rgba(251, 191, 36, 0.32);
                pointer-events: none;
                z-index: 4;
            }

            .pricing-grid::before {
                left: calc(14px + ((100% - 28px) / 3));
            }

            .pricing-grid::after {
                left: calc(14px + (((100% - 28px) / 3) * 2));
            }

            .pricing-card {
                background: transparent;
                border: none;
                box-shadow: none;
                border-radius: 0;
                padding: 20px 36px;
                overflow: visible;
                z-index: 1;
            }

            .pricing-card.recommended {
                background: transparent;
                transform: none;
                padding-top: 20px;
                border-left: none;
                border-right: none;
                position: relative;
                z-index: 3;
            }

            .pricing-card.recommended .recommended-badge {
                top: -24px;
                z-index: 6;
            }

            .pricing-card.recommended::before,
            .pricing-card.recommended::after {
                display: none;
            }

            /* Prevent generic card overlay from affecting separators/badge */
            .pricing-card::before {
                display: none;
            }

            .demo-card {
                background: linear-gradient(180deg, rgba(18, 27, 68, 0.98), rgba(10, 17, 44, 0.98));
                border: 1px solid rgba(96, 165, 250, 0.32);
                box-shadow: 0 18px 38px rgba(2, 6, 23, 0.58);
                border-radius: 18px;
            }
        }

        .period-selector {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .period-btn {
            padding: 7px 12px;
            border: 1px solid rgba(148, 163, 184, 0.36);
            background: linear-gradient(180deg, rgba(11, 19, 42, 0.9), rgba(8, 14, 32, 0.9));
            color: #cbd5e1;
            border-radius: 999px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 0.72rem;
            box-shadow: 0 4px 10px rgba(2, 6, 23, 0.24);
        }

        .period-btn.active {
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.26), rgba(217, 119, 6, 0.22));
            border-color: rgba(251, 191, 36, 0.72);
            color: #ffefc1;
            box-shadow: 0 6px 14px rgba(245, 158, 11, 0.22);
        }

        .period-btn:hover {
            border-color: rgba(251, 191, 36, 0.54);
            color: #f8e7bd;
            box-shadow: 0 5px 12px rgba(245, 158, 11, 0.14);
        }

        .period-btn.active:hover {
            color: #fff7dc;
            border-color: rgba(251, 191, 36, 0.84);
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.32), rgba(217, 119, 6, 0.28));
            box-shadow: 0 8px 16px rgba(245, 158, 11, 0.24);
        }

        .price-display {
            text-align: center;
            margin-bottom: 20px;
        }

        .original-price {
            text-decoration: line-through;
            color: #8ea0bd;
            font-size: 0.92rem;
            margin-right: 10px;
            opacity: 0.9;
        }

        .discounted-price {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 1px;
            color: #f7d994;
            font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
            font-weight: 900;
            font-size: 1.16rem;
            letter-spacing: 0.01em;
            font-variant-numeric: tabular-nums;
            background: none;
            border: none;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
            text-shadow: 0 0 10px rgba(251, 191, 36, 0.14);
        }

        .discounted-price .price-main {
            line-height: 1.1;
        }

        .discounted-price .price-unit {
            font-size: 0.72rem;
            font-weight: 700;
            color: #d6b880;
            line-height: 1;
            letter-spacing: 0.02em;
        }

        #pricing,
        #pricing .section-title,
        #pricing .card-title,
        #pricing .card-subtitle,
        #pricing .card-features li,
        #pricing .plan-performance,
        #pricing .period-btn,
        #pricing .btn,
        #pricing .discounted-price {
            font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif !important;
            font-feature-settings: "kern" 1, "liga" 1;
        }

        /* Footer */
        footer {
            background: rgba(10, 14, 39, 0.95);
            padding: 46px max(0px, var(--safe-right)) calc(28px + var(--safe-bottom)) max(0px, var(--safe-left));
            text-align: right;
            border-top: none;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 1.2fr 1fr 1.2fr;
            gap: 22px;
            margin-bottom: 24px;
            align-items: start;
        }

        .footer-section h3 {
            color: #60a5fa;
            margin-bottom: 12px;
            font-size: 0.92rem;
        }

        .footer-section p, .footer-section a {
            color: #cbd5e1;
            text-decoration: none;
            margin-bottom: 8px;
            display: block;
            line-height: 1.55;
            font-size: 0.8rem;
        }

        .footer-split-row {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .footer-split-col {
            display: contents;
        }

        .footer-split-col .footer-section a,
        .footer-split-col > a {
            margin-bottom: 8px;
        }

        .contact-list {
            display: grid;
            gap: 8px;
            margin-top: 4px;
        }

        .footer-contact-split.contact-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #cbd5e1;
            text-decoration: none;
            font-size: 0.8rem;
            background: rgba(15, 23, 42, 0.28);
            border: none;
            border-radius: 10px;
            padding: 8px 10px;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .contact-item:hover {
            background: rgba(30, 41, 59, 0.4);
            color: #e2e8f0;
        }

        .contact-item i {
            color: #93c5fd;
            min-width: 16px;
            text-align: center;
        }

        .contact-note {
            margin-top: 10px;
            color: #94a3b8;
            font-size: 0.84rem;
        }

        .footer-bottom {
            border-top: none;
            padding-top: 10px;
            color: #94a3b8;
            font-size: 0.76rem;
            text-align: center;
        }

        /* Footer — LTR (EN/FR/ES/DE/IT/…): محاذاة من يسار الشاشة */
        html[dir="ltr"] footer {
            text-align: left;
        }

        html[dir="ltr"] .footer-content {
            text-align: left;
        }

        html[dir="ltr"] .footer-section h3,
        html[dir="ltr"] .footer-section p,
        html[dir="ltr"] .footer-section > a,
        html[dir="ltr"] .contact-note {
            text-align: left;
        }

        html[dir="ltr"] .locale-option {
            text-align: left;
        }

        /* Terms & trust (subscriptions page) */
        #pricing {
            padding-bottom: 36px;
        }

        .landing-terms {
            padding: 64px 0 44px;
            margin-top: 40px;
            background:
                linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(10, 14, 39, 0.92) 100%);
            border-top: 1px solid rgba(59, 130, 246, 0.14);
        }

        .landing-terms__title {
            margin: 0 0 12px;
            font-size: clamp(1.15rem, 2.4vw, 1.45rem);
            font-weight: 800;
            color: #f1f5f9;
            text-align: center;
        }

        .landing-terms__lead {
            margin: 0 auto 28px;
            max-width: 720px;
            font-size: 0.88rem;
            line-height: 1.7;
            color: #94a3b8;
            text-align: center;
        }

        .landing-terms__grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 22px;
        }

        .landing-terms__card {
            padding: 16px 16px 14px;
            border-radius: 14px;
            border: 1px solid rgba(59, 130, 246, 0.16);
            background:
                linear-gradient(148deg, rgba(37, 99, 235, 0.1) 0%, rgba(15, 23, 42, 0.2) 45%, rgba(13, 17, 28, 0.92) 100%),
                rgba(20, 28, 46, 0.85);
            box-shadow: inset 0 1px 0 rgba(147, 197, 253, 0.05);
        }

        .landing-terms__card--warn {
            border-color: rgba(245, 158, 11, 0.28);
            background:
                linear-gradient(148deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.2) 50%, rgba(13, 17, 28, 0.92) 100%),
                rgba(20, 28, 46, 0.85);
        }

        .landing-terms__icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            background: rgba(59, 130, 246, 0.14);
            color: #93c5fd;
            font-size: 0.95rem;
        }

        .landing-terms__card--warn .landing-terms__icon {
            background: rgba(245, 158, 11, 0.14);
            color: #fcd34d;
        }

        .landing-terms__card h3 {
            margin: 0 0 8px;
            font-size: 0.92rem;
            font-weight: 800;
            color: #e2e8f0;
            line-height: 1.35;
        }

        .landing-terms__card p {
            margin: 0;
            font-size: 0.8rem;
            line-height: 1.65;
            color: #94a3b8;
        }

        .landing-terms__card p strong {
            color: #cbd5e1;
            font-weight: 700;
        }

        .landing-terms__disclaimer {
            margin: 0;
            padding: 14px 16px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.14);
            background: rgba(15, 23, 42, 0.45);
            font-size: 0.76rem;
            line-height: 1.6;
            color: #64748b;
            text-align: center;
        }

        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

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

        /* Responsive */
        @media (max-width: 768px) {
            textarea,
            select,
            input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="hidden"]):not([type="file"]):not([type="color"]) {
                font-size: 16px !important;
            }

            .header-content {
                flex-direction: column;
                gap: 15px;
            }

            /* Mobile only: hide header action buttons under logo */
            .header-actions {
                display: none;
            }

            nav ul {
                gap: 20px;
            }

            html[dir="rtl"] nav ul {
                gap: 24px;
                justify-content: center;
            }

            html[dir="rtl"] nav a {
                font-size: 0.78rem;
            }

            html[dir="rtl"] nav ul li + li::before {
                right: -12px;
            }

            nav {
                width: 100%;
                min-height: 34px;
            }

            /* عمود الرأس: محاذاة الزر مع صف الشعار (الصف الأول) */
            .header-locale-wrap {
                top: 22px;
                transform: translateY(-50%);
            }

            .locale-chip {
                white-space: nowrap;
            }

            .locale-menu {
                width: 200px;
            }

            .hero-content h1 {
                font-size: 2.15rem;
                background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
            }

            .hero-content p {
                font-size: 0.9rem;
                color: #f8fafc;
            }

            .section-title {
                font-size: 1.5rem;
                color: #ffffff;
            }

            /* Mobile: plan tabs + single visible plan */
            .plan-switcher {
                display: flex;
                gap: 5%;
                margin: 0 0 10px;
                overflow: hidden;
                padding-bottom: 2px;
                justify-content: space-between;
            }

            .plan-switcher-btn {
                flex: 0 0 30%;
                width: 30%;
                border: 1px solid rgba(148, 163, 184, 0.24);
                background: rgba(15, 23, 42, 0.62);
                color: #dbe5f5;
                border-radius: 999px;
                padding: 8px 6px;
                font-size: 11px;
                font-weight: 700;
                cursor: pointer;
                white-space: normal;
                text-align: center;
                line-height: 1.2;
            }

            .plan-switcher-btn.active {
                border-color: rgba(251, 191, 36, 0.72);
                background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(217, 119, 6, 0.2));
                color: #fde68a;
            }

            /* Mobile: mirror desktop pricing design structure (single shared container) */
            .pricing-grid {
                display: block;
                background: rgba(15, 21, 53, 0.95);
                border: 1px solid rgba(148, 163, 184, 0.08);
                border-radius: 20px;
                padding: 12px;
                box-shadow: 0 18px 40px rgba(2, 6, 23, 0.5);
                position: relative;
            }

            #pricing .pricing-card {
                display: none;
                background: rgba(10, 18, 44, 0.88);
                border: 1px solid rgba(148, 163, 184, 0.14);
                box-shadow: 0 10px 26px rgba(2, 6, 23, 0.35);
                border-radius: 16px;
                padding: 18px 14px;
                overflow: visible;
            }

            #pricing .pricing-card.is-mobile-active {
                display: block;
            }

            #pricing .pricing-card:not(:last-child)::after {
                display: none;
            }

            #pricing .pricing-card.recommended {
                background: rgba(14, 24, 56, 0.92);
                border-color: rgba(251, 191, 36, 0.45);
                transform: none;
                padding-top: 32px;
                z-index: 2;
            }

            #pricing .pricing-card.recommended .recommended-badge {
                top: 2px;
            }


            .card {
                background: rgba(255, 255, 255, 0.12);
                border: 1px solid rgba(255, 255, 255, 0.2);
            }

            .card-title {
                color: #ffffff;
                font-size: 1.22rem;
            }

            .card-description {
                color: #f8fafc;
                font-size: 0.8rem;
            }

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

            footer {
                text-align: right;
            }
        }

        .welcome-back-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
            z-index: 1995;
        }

        .welcome-back-modal.active {
            display: flex;
        }

        body.welcome-back-open {
            overflow: hidden;
        }

        .welcome-back-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(2, 6, 23, 0.74);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        body.light-mode .welcome-back-modal-backdrop {
            background: rgba(15, 23, 42, 0.42);
        }

        .welcome-back-modal-card {
            position: relative;
            z-index: 1;
            width: min(400px, 100%);
            padding: 24px 22px 22px;
            border-radius: 18px;
            background: linear-gradient(165deg, #111827 0%, #0f172a 55%, #0b1220 100%);
            border: 1px solid rgba(148, 163, 184, 0.14);
            box-shadow:
                0 0 0 1px rgba(255, 255, 255, 0.04) inset,
                0 28px 56px rgba(0, 0, 0, 0.5);
        }

        body.light-mode .welcome-back-modal-card {
            background: linear-gradient(165deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
            border-color: rgba(148, 163, 184, 0.22);
            box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
        }

        .welcome-back-close {
            position: absolute;
            top: 14px;
            left: 14px;
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 10px;
            background: rgba(148, 163, 184, 0.1);
            color: #94a3b8;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, color 0.2s;
        }

        body.light-mode .welcome-back-close {
            background: rgba(15, 23, 42, 0.06);
            color: #64748b;
        }

        .welcome-back-close:hover {
            background: rgba(148, 163, 184, 0.18);
            color: #e2e8f0;
        }

        .welcome-back-hero {
            text-align: center;
            padding: 4px 8px 18px;
        }

        .welcome-back-avatar {
            width: 52px;
            height: 52px;
            margin: 0 auto 12px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(59, 130, 246, 0.14);
            border: 1px solid rgba(96, 165, 250, 0.28);
            color: #60a5fa;
            font-size: 1.2rem;
        }

        body.light-mode .welcome-back-avatar {
            background: rgba(37, 99, 235, 0.1);
            color: #2563eb;
        }

        .welcome-back-modal-card h3 {
            margin: 0 0 6px;
            font-size: 1.15rem;
            font-weight: 800;
            color: #f1f5f9;
            letter-spacing: -0.02em;
        }

        body.light-mode .welcome-back-modal-card h3 {
            color: #0f172a;
        }

        .welcome-back-subtitle {
            margin: 0;
            font-size: 0.88rem;
            line-height: 1.5;
            color: #94a3b8;
        }

        body.light-mode .welcome-back-subtitle {
            color: #64748b;
        }

        .welcome-back-account-panel {
            padding: 16px;
            border-radius: 14px;
            background: rgba(15, 23, 42, 0.55);
            border: 1px solid rgba(148, 163, 184, 0.1);
            margin-bottom: 18px;
        }

        body.light-mode .welcome-back-account-panel {
            background: rgba(241, 245, 249, 0.9);
            border-color: rgba(148, 163, 184, 0.2);
        }

        .welcome-back-account-label {
            display: block;
            font-size: 0.72rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #64748b;
            margin-bottom: 6px;
        }

        .welcome-back-account-name {
            margin: 0 0 4px;
            font-size: 1.05rem;
            font-weight: 700;
            color: #f8fafc;
            word-break: break-word;
        }

        body.light-mode .welcome-back-account-name {
            color: #0f172a;
        }

        .welcome-back-account-id {
            margin: 0 0 10px;
            font-size: 0.82rem;
            font-weight: 600;
            color: #64748b;
            letter-spacing: 0.02em;
            word-break: break-all;
        }

        body.light-mode .welcome-back-account-id {
            color: #64748b;
        }

        .welcome-back-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
        }

        .welcome-back-badge {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .welcome-back-badge--cex {
            background: rgba(34, 197, 94, 0.12);
            color: #4ade80;
            border: 1px solid rgba(52, 211, 153, 0.25);
        }

        .welcome-back-badge--dex {
            background: rgba(168, 85, 247, 0.12);
            color: #c084fc;
            border: 1px solid rgba(192, 132, 252, 0.28);
        }

        body.light-mode .welcome-back-badge--cex {
            color: #059669;
        }

        body.light-mode .welcome-back-badge--dex {
            color: #7c3aed;
        }

        .welcome-back-plan {
            font-size: 0.8rem;
            color: #94a3b8;
        }

        .welcome-back-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .welcome-back-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 13px 16px;
            border-radius: 12px;
            font-size: 0.92rem;
            font-weight: 700;
            cursor: pointer;
            border: none;
            transition: transform 0.15s, opacity 0.15s, background 0.2s;
        }

        .welcome-back-btn:disabled {
            opacity: 0.65;
            cursor: not-allowed;
        }

        .welcome-back-btn--primary {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            color: #fff;
            box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
        }

        .welcome-back-btn--primary:hover:not(:disabled) {
            transform: translateY(-1px);
        }

        .welcome-back-btn--ghost {
            background: transparent;
            color: #94a3b8;
            border: 1px solid rgba(148, 163, 184, 0.2);
        }

        body.light-mode .welcome-back-btn--ghost {
            color: #475569;
            border-color: rgba(148, 163, 184, 0.35);
        }

        .welcome-back-btn--ghost:hover:not(:disabled) {
            background: rgba(148, 163, 184, 0.08);
            color: #e2e8f0;
        }

        body.light-mode .welcome-back-btn--ghost:hover:not(:disabled) {
            color: #0f172a;
            background: rgba(15, 23, 42, 0.05);
        }

        .welcome-back-status {
            margin: 12px 0 0;
            text-align: center;
            font-size: 0.82rem;
            color: #94a3b8;
        }

        .welcome-back-status--error {
            color: #f87171;
        }

        .recovery-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
            z-index: 2000;
        }

        .recovery-modal.active {
            display: flex;
        }

        .recovery-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(2, 6, 23, 0.72);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        body.light-mode .recovery-modal-backdrop {
            background: rgba(15, 23, 42, 0.45);
        }

        .recovery-modal-content {
            position: relative;
            z-index: 1;
            width: min(460px, 100%);
            max-height: min(92dvh, 720px);
            display: flex;
            flex-direction: column;
            background: linear-gradient(165deg, #111827 0%, #0f172a 52%, #0b1220 100%);
            border: 1px solid rgba(148, 163, 184, 0.12);
            border-radius: 16px;
            padding: 0;
            box-shadow:
                0 0 0 1px rgba(255, 255, 255, 0.04) inset,
                0 24px 48px rgba(0, 0, 0, 0.48);
            overflow: hidden;
        }

        body.light-mode .recovery-modal-content {
            background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
            border-color: rgba(148, 163, 184, 0.22);
            box-shadow:
                0 0 0 1px rgba(255, 255, 255, 0.9) inset,
                0 20px 40px rgba(15, 23, 42, 0.1);
        }

        .recovery-modal-hero {
            text-align: center;
            padding: 22px 20px 14px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.08);
        }

        body.light-mode .recovery-modal-hero {
            border-bottom-color: rgba(148, 163, 184, 0.16);
        }

        .recovery-modal-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto 12px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(34, 197, 94, 0.12);
            border: 1px solid rgba(52, 211, 153, 0.28);
            color: #4ade80;
            font-size: 1.35rem;
        }

        body.light-mode .recovery-modal-icon {
            background: rgba(16, 185, 129, 0.1);
            color: #059669;
            border-color: rgba(16, 185, 129, 0.3);
        }

        .recovery-modal-content h3 {
            margin: 0 0 6px;
            color: #f1f5f9;
            font-size: 1.1rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.35;
        }

        body.light-mode .recovery-modal-content h3 {
            color: #0f172a;
        }

        .recovery-modal-kicker {
            margin: 0;
            font-size: 0.8125rem;
            line-height: 1.55;
            color: #94a3b8;
            font-weight: 500;
        }

        body.light-mode .recovery-modal-kicker {
            color: #64748b;
        }

        .recovery-modal-scroll {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 12px 18px 6px;
        }

        .recovery-modal-lead {
            margin: 0 0 14px;
            color: #94a3b8;
            font-size: 0.8125rem;
            line-height: 1.65;
            font-weight: 500;
        }

        body.light-mode .recovery-modal-lead {
            color: #64748b;
        }

        .recovery-modal-notice {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 0.75rem;
            line-height: 1.6;
            color: #cbd5e1;
            padding: 11px 12px;
            margin: 0 0 14px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.14);
            background: rgba(15, 23, 42, 0.55);
        }

        .recovery-modal-notice i {
            flex-shrink: 0;
            margin-top: 2px;
            color: #60a5fa;
            font-size: 0.9rem;
        }

        .recovery-modal-notice span {
            flex: 1;
            min-width: 0;
        }

        body.light-mode .recovery-modal-notice {
            color: #475569;
            border-color: rgba(148, 163, 184, 0.22);
            background: #f8fafc;
        }

        body.light-mode .recovery-modal-notice i {
            color: #2563eb;
        }

        .recovery-meta-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 10px;
            margin-bottom: 12px;
            min-width: 0;
        }

        .recovery-user-label {
            font-size: 0.68rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            color: rgba(176, 190, 210, 0.92);
        }

        body.light-mode .recovery-user-label {
            color: #64748b;
        }

        .recovery-user-id {
            display: inline-block;
            direction: ltr;
            unicode-bidi: isolate;
            max-width: min(9.5rem, 36vw);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            vertical-align: middle;
            font-family: ui-monospace, 'Cascadia Code', 'IBM Plex Mono', Consolas, monospace;
            font-size: 0.78rem;
            font-weight: 600;
            color: #d4e8fc;
            background: rgba(40, 65, 120, 0.32);
            border: 1px solid rgba(120, 165, 220, 0.28);
            border-radius: 8px;
            padding: 6px 10px;
            letter-spacing: 0.02em;
        }

        body.light-mode .recovery-user-id {
            color: #334e80;
            background: rgba(226, 236, 255, 0.88);
            border-color: rgba(100, 140, 200, 0.32);
        }

        .recovery-phrase-block {
            margin-bottom: 4px;
        }

        .recovery-phrase-label {
            display: block;
            font-size: 0.68rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: rgba(176, 190, 210, 0.95);
            margin-bottom: 6px;
        }

        body.light-mode .recovery-phrase-label {
            color: #64748b;
        }

        .recovery-phrase-box {
            width: 100%;
            box-sizing: border-box;
            min-height: 88px;
            border-radius: 12px;
            border: 1px solid rgba(90, 105, 130, 0.38);
            padding: 10px 12px;
            background: rgba(8, 14, 28, 0.42);
            color: #dde6f2;
            font-size: 12px;
            line-height: 1.72;
            direction: ltr;
            text-align: left;
            resize: none;
            font-family: ui-monospace, 'Cascadia Code', 'IBM Plex Mono', Consolas, monospace;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }

        body.light-mode .recovery-phrase-box {
            background: #f9fafb;
            color: #334155;
            border-color: rgba(148, 163, 184, 0.38);
        }

        .recovery-phrase-box:focus {
            outline: none;
            border-color: rgba(52, 211, 153, 0.45);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 3px rgba(34, 197, 94, 0.12);
        }

        .recovery-actions {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 14px 18px 18px;
            border-top: 1px solid rgba(148, 163, 184, 0.08);
            background: rgba(2, 6, 23, 0.25);
        }

        .recovery-inline-status {
            margin: 2px 0 0;
            padding: 0 4px;
            font-size: 0.72rem;
            line-height: 1.5;
            text-align: center;
            color: #9fe8b9;
            min-height: 1.35em;
        }

        .recovery-inline-status--err {
            color: #f5b5b5;
        }

        body.light-mode .recovery-inline-status {
            color: #3d8c5c;
        }

        body.light-mode .recovery-inline-status--err {
            color: #b45353;
        }

        body.light-mode .recovery-actions {
            border-top-color: rgba(148, 163, 184, 0.2);
            background: rgba(248, 250, 252, 0.85);
        }

        .recovery-actions-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .recovery-action-btn {
            border: none;
            border-radius: 10px;
            padding: 9px 11px;
            cursor: pointer;
            font-weight: 700;
            font-size: 0.76rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
        }

        .recovery-action-btn:hover:not(:disabled) {
            transform: translateY(-1px);
            filter: brightness(1.05);
        }

        .recovery-action-btn:active:not(:disabled) {
            transform: translateY(0);
        }

        .recovery-action-btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        .recovery-action-btn i {
            font-size: 0.82rem;
            opacity: 0.92;
        }

        /* أحجام أصغر داخل نافذة الاستعادة — تتجاوز قاعدة الأزرار العامة */
        #recoveryModal .recovery-action-btn {
            font-size: 0.76rem !important;
        }

        #recoveryModal .recovery-modal-lead {
            font-size: 0.8rem !important;
            line-height: 1.72 !important;
        }

        #recoveryModal .recovery-modal-notice {
            font-size: 0.78rem !important;
            line-height: 1.68 !important;
        }

        .recovery-copy-btn,
        .recovery-download-btn {
            background: transparent;
            color: #cbd5e1;
            border: 1px solid rgba(148, 163, 184, 0.22);
            box-shadow: none;
        }

        .recovery-copy-btn:hover:not(:disabled),
        .recovery-download-btn:hover:not(:disabled) {
            background: rgba(148, 163, 184, 0.08);
            border-color: rgba(148, 163, 184, 0.32);
        }

        body.light-mode .recovery-copy-btn,
        body.light-mode .recovery-download-btn {
            background: #fff;
            color: #334155;
            border-color: rgba(148, 163, 184, 0.32);
        }

        .recovery-continue-btn {
            background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
            color: #fff;
            box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
            width: 100%;
            padding-block: 11px;
            order: -1;
        }

        .recovery-continue-btn i {
            font-size: 0.9rem;
        }

        /* ——— شاشة إنشاء الحساب (تحميل بعد الدفع) ——— */
        .account-creating-overlay {
            position: fixed;
            inset: 0;
            z-index: 2400;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
            pointer-events: none;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.38s ease, visibility 0.38s ease;
        }

        .account-creating-overlay.is-visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .account-creating-overlay.is-hiding {
            opacity: 0;
        }

        .account-creating-overlay__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(2, 6, 23, 0.52);
            backdrop-filter: blur(10px) saturate(120%);
            -webkit-backdrop-filter: blur(10px) saturate(120%);
            transition: background 0.38s ease;
        }

        body.light-mode .account-creating-overlay__backdrop {
            background: rgba(248, 250, 252, 0.62);
        }

        body.account-creating-active {
            overflow: hidden;
        }

        body.account-creating-active .payment-modal.active {
            opacity: 0.35;
            filter: blur(2px);
            pointer-events: none;
            transition: opacity 0.35s ease, filter 0.35s ease;
        }

        .account-creating-panel {
            position: relative;
            z-index: 1;
            width: min(320px, 100%);
            padding: 28px 24px 26px;
            border-radius: 20px;
            border: 1px solid rgba(96, 165, 250, 0.22);
            background: linear-gradient(165deg, rgba(15, 23, 42, 0.94) 0%, rgba(11, 18, 32, 0.98) 100%);
            box-shadow:
                0 24px 64px rgba(2, 6, 23, 0.55),
                0 0 0 1px rgba(148, 163, 184, 0.06) inset,
                0 0 48px rgba(59, 130, 246, 0.08);
            text-align: center;
            transform: scale(0.92) translateY(10px);
            opacity: 0;
            transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
        }

        body.light-mode .account-creating-panel {
            background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.99) 100%);
            border-color: rgba(59, 130, 246, 0.2);
            box-shadow:
                0 20px 50px rgba(15, 23, 42, 0.12),
                0 0 0 1px rgba(148, 163, 184, 0.12) inset;
        }

        .account-creating-overlay.is-visible .account-creating-panel {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        .account-creating-overlay.is-hiding .account-creating-panel {
            transform: scale(0.96) translateY(6px);
            opacity: 0;
        }

        .account-creating-spinner-wrap {
            position: relative;
            width: 52px;
            height: 52px;
            margin: 0 auto 18px;
        }

        .account-creating-spinner {
            position: absolute;
            inset: 0;
            border: 3px solid rgba(96, 165, 250, 0.18);
            border-top-color: #60a5fa;
            border-radius: 50%;
            animation: account-creating-spin 0.78s linear infinite;
        }

        .account-creating-spinner-wrap::after {
            content: '';
            position: absolute;
            inset: 10px;
            border-radius: 50%;
            background: radial-gradient(circle at 35% 35%, rgba(96, 165, 250, 0.35), transparent 62%);
            animation: account-creating-pulse 1.6s ease-in-out infinite;
        }

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

        @keyframes account-creating-pulse {
            0%, 100% { opacity: 0.45; transform: scale(0.92); }
            50% { opacity: 1; transform: scale(1); }
        }

        .account-creating-title {
            margin: 0 0 8px;
            font-size: 1.02rem;
            font-weight: 800;
            color: #f1f5f9;
            letter-spacing: -0.01em;
            line-height: 1.45;
        }

        body.light-mode .account-creating-title {
            color: #0f172a;
        }

        .account-creating-subtitle {
            margin: 0;
            font-size: 0.82rem;
            line-height: 1.65;
            color: #94a3b8;
            font-weight: 500;
        }

        body.light-mode .account-creating-subtitle {
            color: #64748b;
        }

        .account-creating-dots {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 14px;
        }

        .account-creating-dots span {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #60a5fa;
            opacity: 0.35;
            animation: account-creating-dot 1.2s ease-in-out infinite;
        }

        .account-creating-dots span:nth-child(2) { animation-delay: 0.15s; }
        .account-creating-dots span:nth-child(3) { animation-delay: 0.3s; }

        @keyframes account-creating-dot {
            0%, 80%, 100% { opacity: 0.28; transform: scale(0.85); }
            40% { opacity: 1; transform: scale(1); }
        }

        .recovery-modal.is-entering .recovery-modal-content {
            animation: recovery-modal-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        @keyframes recovery-modal-enter {
            from {
                opacity: 0;
                transform: scale(0.94) translateY(12px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .payment-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.82);
            padding: 20px;
            z-index: 2100;
        }

        .payment-modal.active {
            display: flex;
        }

        .payment-modal-card {
            width: min(680px, 100%);
            background: linear-gradient(180deg, #0b1220 0%, #111c33 100%);
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 20px;
            padding: 0;
            box-shadow: 0 28px 60px rgba(2, 6, 23, 0.62);
            overflow: hidden;
        }

        .payment-header {
            padding: 18px 22px 14px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.16);
            background: rgba(15, 23, 42, 0.7);
        }

        .payment-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #93c5fd;
            background: rgba(37, 99, 235, 0.16);
            border: 1px solid rgba(59, 130, 246, 0.35);
            border-radius: 999px;
            padding: 4px 10px;
        }

        .payment-title {
            margin-top: 10px;
            margin-bottom: 8px;
            font-size: 21px;
            font-weight: 800;
            color: #f8fafc;
        }

        .payment-subtitle {
            color: #cbd5e1;
            font-size: 14px;
            line-height: 1.6;
        }

        .payment-meta {
            margin-top: 12px;
            color: #cbd5e1;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .payment-meta-item {
            background: rgba(30, 41, 59, 0.78);
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 10px;
            padding: 6px 10px;
        }

        .payment-meta-item strong {
            font-variant-numeric: tabular-nums;
        }

        .payment-original-amount {
            display: none;
            text-decoration: line-through;
            color: #94a3b8;
            font-weight: 700;
            margin-inline-end: 8px;
        }

        .payment-meta-item .payment-amount-display {
            display: inline-flex;
            align-items: baseline;
            gap: 8px;
            direction: ltr;
        }

        .payment-body {
            padding: 16px 22px 18px;
        }

        .payment-coupon-wrap {
            margin-top: 2px;
            margin-bottom: 10px;
        }

        .payment-coupon-toggle {
            width: 100%;
            border: 1px dashed rgba(148, 163, 184, 0.35);
            background: rgba(15, 23, 42, 0.55);
            color: #cbd5e1;
            border-radius: 12px;
            padding: 10px 12px;
            cursor: pointer;
            font-weight: 700;
            font-size: 13px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .payment-coupon-toggle:hover {
            border-color: rgba(59, 130, 246, 0.62);
            color: #f8fafc;
        }

        .payment-coupon-input-wrap {
            display: none;
            margin-top: 8px;
        }

        .payment-coupon-input-wrap.active {
            display: block;
        }

        .payment-coupon-row {
            display: flex;
            gap: 8px;
            align-items: stretch;
        }

        .payment-coupon-input-wrap input {
            flex: 1;
            min-width: 0;
            width: auto;
            background: rgba(15, 23, 42, 0.96);
            border: 1px solid rgba(148, 163, 184, 0.26);
            border-radius: 12px;
            color: #f8fafc;
            padding: 11px 12px;
            font-size: 13px;
            outline: none;
        }

        .payment-coupon-apply {
            flex-shrink: 0;
            padding: 11px 14px;
            border-radius: 12px;
            border: 1px solid rgba(59, 130, 246, 0.45);
            background: rgba(59, 130, 246, 0.18);
            color: #e0f2fe;
            font-weight: 700;
            font-size: 13px;
            cursor: pointer;
            font-family: inherit;
        }

        .payment-coupon-apply:hover {
            background: rgba(59, 130, 246, 0.28);
        }

        .coupon-hint {
            margin: 8px 0 0;
            font-size: 12px;
            color: #94a3b8;
            min-height: 1.25em;
        }

        .payment-select-wrap {
            margin-top: 14px;
        }

        .payment-select-wrap label {
            display: block;
            margin-bottom: 7px;
            color: #cbd5e1;
            font-size: 13px;
        }

        .payment-select-wrap select {
            display: none;
        }

        .payment-network-trigger {
            width: 100%;
            background: rgba(15, 23, 42, 0.96);
            border: 1px solid rgba(148, 163, 184, 0.26);
            border-radius: 12px;
            color: #f8fafc;
            padding: 11px 12px;
            font-size: 13px;
            outline: none;
            transition: border-color 0.18s ease, box-shadow 0.18s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .payment-network-trigger:hover {
            border-color: rgba(59, 130, 246, 0.7);
        }

        .payment-network-trigger.active {
            border-color: rgba(59, 130, 246, 0.7);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

        .payment-network-menu {
            margin-top: 8px;
            background: rgba(9, 14, 29, 0.98);
            border: 1px solid rgba(148, 163, 184, 0.24);
            border-radius: 12px;
            box-shadow: 0 16px 34px rgba(2, 6, 23, 0.5);
            padding: 6px;
            max-height: 240px;
            overflow-y: auto;
            display: none;
        }

        .payment-network-menu.active {
            display: block;
        }

        .payment-network-option {
            width: 100%;
            border: none;
            text-align: right;
            background: transparent;
            color: #e2e8f0;
            border-radius: 10px;
            padding: 10px 12px;
            cursor: pointer;
            font-size: 13px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .payment-network-option:hover {
            background: rgba(59, 130, 246, 0.16);
        }

        .payment-network-option .payment-network-badge {
            font-size: 11px;
            color: #93c5fd;
            border: 1px solid rgba(59, 130, 246, 0.38);
            border-radius: 999px;
            padding: 2px 7px;
        }

        .payment-network-option.disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .payment-details {
            display: none;
            margin-top: 12px;
        }

        .payment-details.active {
            display: block;
        }

        /* نافذة دفع الاشتراك — وسط الشاشة + QR فوق العنوان */
        .payment-modal.payment-modal--eedeex {
            align-items: center;
            justify-content: center;
            padding: max(20px, env(safe-area-inset-top, 20px)) 16px max(20px, env(safe-area-inset-bottom, 20px));
        }
        .payment-modal.payment-modal--eedeex.active {
            display: flex;
        }
        .payment-modal--eedeex .payment-modal-card {
            width: min(440px, calc(100vw - 32px));
            max-width: 440px;
            max-height: min(90vh, 720px);
            margin: 0 auto;
            align-self: center;
            display: flex;
            flex-direction: column;
            background: linear-gradient(165deg, #0f1729 0%, #111827 48%, #0b1220 100%);
            border: 1px solid rgba(148, 163, 184, 0.16);
            border-radius: 20px;
            padding: 0;
            overflow: hidden;
            box-shadow:
                0 28px 64px rgba(2, 6, 23, 0.62),
                0 0 0 1px rgba(59, 130, 246, 0.06);
        }
        .payment-modal--eedeex .payment-body {
            overflow-y: auto;
            flex: 1 1 auto;
            min-height: 0;
            -webkit-overflow-scrolling: touch;
        }
        .payment-modal--eedeex.is-awaiting-network .payment-body {
            display: flex;
            flex-direction: column;
        }
        .payment-modal--eedeex.is-awaiting-network .eedeex-dp-network-slot {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 120px;
            padding: 4px 0 8px;
        }
        .payment-modal--eedeex.is-awaiting-network .eedeex-dp-notes-slot {
            text-align: center;
        }
        .payment-modal--eedeex.is-awaiting-network .payment-meta--top {
            justify-content: center;
        }
        .payment-modal--eedeex .payment-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            padding: 16px 16px 8px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        }
        .payment-modal--eedeex .payment-modal-close {
            border: none;
            background: rgba(148, 163, 184, 0.12);
            color: #cbd5e1;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            font-size: 20px;
            line-height: 1;
            cursor: pointer;
        }
        .payment-modal--eedeex .payment-meta--top {
            display: flex;
            flex-wrap: wrap;
            gap: 10px 16px;
            padding: 0 16px 10px;
            font-size: 12px;
            color: #94a3b8;
            border-bottom: 1px solid rgba(148, 163, 184, 0.08);
        }
        .payment-modal--eedeex .payment-body {
            padding: 12px 16px 16px;
        }
        .payment-modal--eedeex .eedeex-wd-header__title {
            font-size: 17px;
            color: #f1f5f9;
            margin: 6px 0 4px;
        }
        .payment-modal--eedeex .eedeex-wd-header__badge--deposit {
            background: rgba(37, 99, 235, 0.18);
            color: #93c5fd;
            border: 1px solid rgba(59, 130, 246, 0.35);
            font-size: 10px;
            padding: 3px 8px;
            border-radius: 999px;
        }
        .payment-modal--eedeex .eedeex-withdraw-note {
            font-size: 12px;
            color: #94a3b8;
            line-height: 1.55;
            margin: 0 0 10px;
        }
        .payment-modal--eedeex .eedeex-field-label {
            display: block;
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
            margin-bottom: 6px;
        }
        .payment-modal--eedeex .eedeex-input {
            width: 100%;
            padding: 11px 12px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            background: #12151c;
            color: #e2e8f0;
            font-size: 14px;
        }
        .payment-modal--eedeex .eedeex-dp-network-slot {
            position: relative;
            min-height: 0;
        }
        .payment-modal--eedeex .eedeex-dp-network-picker {
            padding: 14px;
            border-radius: 14px;
            border: 1px solid rgba(59, 130, 246, 0.22);
            background:
                linear-gradient(148deg, rgba(30, 58, 138, 0.28) 0%, rgba(15, 23, 42, 0.15) 45%, rgba(13, 17, 28, 0.98) 100%),
                #141c2e;
            box-shadow: inset 0 1px 0 rgba(147, 197, 253, 0.08);
        }
        .payment-modal--eedeex button.eedeex-dp-network-selected {
            width: 100%;
            margin-top: 10px;
            padding: 16px 18px;
            text-align: inherit;
            cursor: pointer;
            font: inherit;
            color: inherit;
            border: 1px solid rgba(59, 130, 246, 0.32);
            border-radius: 14px;
            background:
                linear-gradient(152deg, rgba(30, 58, 138, 0.42) 0%, rgba(20, 28, 46, 0.95) 52%, rgba(11, 18, 32, 0.98) 100%),
                #141c2e;
            box-shadow:
                inset 0 1px 0 rgba(147, 197, 253, 0.12),
                0 8px 24px rgba(15, 23, 42, 0.45);
            transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
        }
        .payment-modal--eedeex button.eedeex-dp-network-selected:hover {
            border-color: rgba(96, 165, 250, 0.5);
            box-shadow:
                inset 0 1px 0 rgba(147, 197, 253, 0.14),
                0 10px 28px rgba(37, 99, 235, 0.18);
            transform: translateY(-1px);
        }
        .payment-modal--eedeex button.eedeex-dp-network-selected:active {
            transform: translateY(0);
        }
        .payment-modal--eedeex button.eedeex-dp-network-selected:focus-visible {
            outline: none;
            border-color: rgba(96, 165, 250, 0.55);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
        }
        .payment-modal--eedeex .eedeex-wd-asset-card__row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .payment-modal--eedeex .eedeex-wd-token-badge {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .payment-modal--eedeex .eedeex-wd-token-badge__icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(145deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.12));
            color: #34d399;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 15px;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
        }
        .payment-modal--eedeex .eedeex-wd-token-badge__symbol {
            font-size: 13px;
            font-weight: 800;
            color: #f1f5f9;
        }
        .payment-modal--eedeex .eedeex-wd-token-badge__name {
            font-size: 10px;
            color: #94a3b8;
        }
        .payment-modal--eedeex .eedeex-wd-asset-card__label {
            font-size: 10px;
            font-weight: 700;
            color: #94a3b8;
            letter-spacing: 0.02em;
        }
        .payment-modal--eedeex .eedeex-wd-asset-card__amount-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 2px;
        }
        .payment-modal--eedeex .eedeex-wd-asset-card__amount,
        .payment-modal--eedeex .eedeex-dp-network-value {
            font-size: 16px;
            font-weight: 800;
            color: #f8fafc;
            letter-spacing: -0.02em;
        }
        .payment-modal--eedeex .eedeex-dp-network-chevron {
            font-size: 11px;
            color: #93c5fd;
            transition: transform 0.2s ease;
        }
        .payment-modal--eedeex.eedeex-deposit--picker-open .eedeex-dp-network-chevron {
            transform: rotate(180deg);
        }
        .payment-modal--eedeex .eedeex-wd-asset-card__divider {
            height: 1px;
            margin: 12px 0 10px;
            background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2), transparent);
        }
        .payment-modal--eedeex .eedeex-wd-asset-card__meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
        }
        .payment-modal--eedeex .eedeex-wd-asset-card__meta-tag--deposit {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 10px;
            font-weight: 700;
            color: #86efac;
            padding: 4px 10px;
            border-radius: 999px;
            background: rgba(16, 185, 129, 0.12);
            border: 1px solid rgba(16, 185, 129, 0.25);
        }
        .payment-modal--eedeex .eedeex-dp-network-selected__change {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 10px;
            font-weight: 700;
            color: #93c5fd;
            padding: 5px 11px;
            border-radius: 999px;
            background: rgba(59, 130, 246, 0.14);
            border: 1px solid rgba(59, 130, 246, 0.28);
            pointer-events: none;
        }
        .payment-modal--eedeex .eedeex-dp-details.is-visible {
            display: block;
            margin-top: 14px;
        }
        .payment-modal--eedeex .payment-deposit-stack {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 16px 14px 14px;
            border-radius: 14px;
            border: 1px solid rgba(148, 163, 184, 0.12);
            background: rgba(15, 23, 42, 0.55);
        }
        .payment-modal--eedeex .payment-dep-qr-center {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 14px;
            margin-bottom: 4px;
            border-radius: 14px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            background: rgba(2, 6, 23, 0.5);
            min-height: 168px;
        }
        .payment-modal--eedeex .payment-dep-qr-center img {
            width: clamp(148px, 42vw, 180px);
            height: clamp(148px, 42vw, 180px);
            border-radius: 12px;
            background: #fff;
            display: block;
        }
        .payment-modal--eedeex .payment-dep-qr-caption {
            margin: 0 0 14px;
            font-size: 11px;
            font-weight: 600;
            color: #94a3b8;
            letter-spacing: 0.03em;
        }
        .payment-modal--eedeex .payment-dep-address-block {
            width: 100%;
            text-align: center;
        }
        .payment-modal--eedeex .payment-dep-address-block .eedeex-field-label {
            text-align: center;
            margin-bottom: 8px;
        }
        .payment-modal--eedeex .payment-dep-address-block .eedeex-address-box {
            margin: 0 0 14px;
            padding: 14px 16px;
            border-radius: 12px;
            border: 1px solid rgba(148, 163, 184, 0.16);
            background: #0f1419;
            font-size: 11px;
            line-height: 1.6;
            color: #e2e8f0;
            word-break: break-all;
            text-align: center;
            direction: ltr;
        }
        .payment-modal--eedeex .eedeex-deposit-footer {
            display: flex;
            gap: 8px;
            width: 100%;
        }
        .payment-modal--eedeex .eedeex-btn-primary,
        .payment-modal--eedeex .eedeex-btn-secondary {
            flex: 1;
            min-height: 44px;
            border-radius: 11px;
            font-size: 12px;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
        }
        .payment-modal--eedeex .eedeex-btn-primary {
            background: #2563eb;
            border: none;
            color: #fff;
        }
        .payment-modal--eedeex .eedeex-btn-secondary {
            background: transparent;
            border: 1px solid rgba(148, 163, 184, 0.2);
            color: #94a3b8;
        }
        .payment-modal--eedeex .eedeex-dep-warning {
            margin-top: 10px;
            padding: 12px 14px;
            border-radius: 10px;
            border: 1px solid rgba(245, 158, 11, 0.28);
            background: linear-gradient(148deg, rgba(245, 158, 11, 0.1) 0%, rgba(20, 28, 46, 0.92) 55%), #141c2e;
            color: #fcd34d;
            font-size: 11px;
            line-height: 1.5;
        }
        .payment-modal--eedeex .eedeex-dp-stable-hint {
            margin-top: 8px;
            font-size: 11px;
            color: #64748b;
            line-height: 1.45;
        }
        .payment-modal--eedeex .payment-actions--deposit {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }
        .payment-modal--eedeex .payment-coupon-wrap {
            margin-bottom: 12px;
        }
        .payment-modal--eedeex.eedeex-deposit--has-network .eedeex-dp-note-initial {
            display: none;
        }
        .payment-modal--eedeex.eedeex-deposit--has-network .eedeex-dp-note-active {
            display: block;
        }

        /* الخطوة 1: اختيار الشبكة فقط — بدون كوبون/QR/عنوان */
        .payment-modal.is-awaiting-network .payment-coupon-wrap,
        .payment-modal.is-awaiting-network .payment-progress-panel,
        .payment-modal.is-awaiting-network .payment-details,
        .payment-modal.is-awaiting-network #paymentDepositDetails,
        .payment-modal.is-awaiting-network .payment-status {
            display: none !important;
        }
        .payment-modal.is-awaiting-network .eedeex-dp-note-active {
            display: none !important;
        }

        .payment-modal.is-awaiting-network .payment-network-grid {
            display: grid !important;
        }

        .payment-modal.is-network-selected .payment-network-grid {
            display: none !important;
        }

        .payment-modal.is-awaiting-network .payment-select-wrap label {
            font-size: 15px;
            font-weight: 700;
            color: #f1f5f9;
        }

        .payment-qr-caption {
            margin-top: 8px;
            text-align: center;
            color: #94a3b8;
            font-size: 12px;
        }

        .payment-network-info {
            margin-top: 12px;
            background: rgba(15, 23, 42, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.24);
            border-radius: 12px;
            padding: 10px 12px;
        }

        .payment-network-info .label {
            color: #94a3b8;
            font-size: 12px;
            margin-bottom: 4px;
        }

        .payment-network-info .value {
            color: #f8fafc;
            font-size: 14px;
            font-weight: 700;
        }

        .payment-network-grid {
            margin-top: 12px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 8px;
        }

        .payment-network-btn {
            border: 1px solid rgba(96, 165, 250, 0.28);
            background: rgba(30, 64, 175, 0.12);
            color: #dbeafe;
            border-radius: 10px;
            padding: 10px 12px;
            cursor: pointer;
            font-weight: 700;
        }

        .payment-network-btn.active {
            border-color: rgba(16, 185, 129, 0.65);
            background: rgba(16, 185, 129, 0.16);
            color: #bbf7d0;
        }

        .payment-address-box {
            margin-top: 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .payment-address-row {
            display: flex;
            align-items: stretch;
            gap: 8px;
            direction: ltr;
        }

        .payment-address-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .payment-address-label {
            color: #94a3b8;
            font-size: 12px;
            font-weight: 600;
            padding-inline-start: 2px;
        }

        .payment-address-box input {
            flex: 1 1 auto;
            min-width: 0;
            width: 100%;
            background: rgba(15, 23, 42, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.24);
            border-radius: 12px;
            color: #f8fafc;
            padding: 10px 12px;
            font-size: 12px;
            direction: ltr;
            text-align: left;
            min-height: 44px;
        }

        .payment-address-copy-btn {
            flex: 0 0 44px;
            width: 44px;
            min-width: 44px;
            height: 44px;
            min-height: 44px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(148, 163, 184, 0.28);
            border-radius: 12px;
            background: rgba(30, 41, 59, 0.92);
            color: #cbd5e1;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.12s ease;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .payment-address-copy-btn:hover {
            border-color: rgba(96, 165, 250, 0.5);
            background: rgba(37, 99, 235, 0.16);
            color: #e0f2fe;
        }

        .payment-address-copy-btn:active {
            transform: scale(0.97);
        }

        .payment-address-copy-btn i {
            font-size: 15px;
            pointer-events: none;
        }

        .payment-actions {
            margin-top: 12px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .payment-direct {
            margin-top: 10px;
            display: block;
        }

        .payment-direct-open {
            width: 100%;
            padding: 12px 14px;
        }

        .payment-qr-wrap {
            margin-top: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.45);
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 14px;
            padding: 12px;
            min-height: 170px;
        }

        .payment-qr-wrap img {
            width: clamp(140px, 32vw, 176px);
            height: clamp(140px, 32vw, 176px);
            border-radius: 10px;
            background: #fff;
        }

        .payment-btn {
            border: none;
            border-radius: 12px;
            padding: 10px 12px;
            font-weight: 700;
            cursor: pointer;
            color: #fff;
            transition: transform 0.18s ease, opacity 0.18s ease;
        }

        .payment-btn:hover {
            transform: translateY(-1px);
            opacity: 0.96;
        }

        .payment-btn.verify {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
        }

        .payment-btn.cancel {
            background: linear-gradient(135deg, #475569, #334155);
        }

        .payment-progress-panel {
            margin-top: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(56, 189, 248, 0.25);
            display: none;
        }

        .payment-progress-panel.active {
            display: block;
        }

        .payment-progress-bar-wrap {
            height: 8px;
            border-radius: 999px;
            background: rgba(30, 41, 59, 0.9);
            overflow: hidden;
            margin-bottom: 8px;
        }

        .payment-progress-bar-fill {
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #0ea5e9, #22c55e);
            width: 0%;
            transition: width 0.35s ease;
        }

        .payment-progress-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 14px;
            font-size: 12px;
            color: #e2e8f0;
        }

        .payment-progress-stats strong {
            color: #7dd3fc;
            font-weight: 600;
        }

        .payment-progress-stats .remaining strong {
            color: #fbbf24;
        }

        .payment-status {
            margin-top: 10px;
            color: #cbd5e1;
            font-size: 13px;
            min-height: 20px;
            background: rgba(15, 23, 42, 0.72);
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 10px;
            padding: 8px 10px;
        }

        .direct-wallet-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.72);
            z-index: 2200;
            padding: 20px;
        }

        .direct-wallet-modal.active {
            display: flex;
        }

        .direct-wallet-card {
            width: min(460px, 100%);
            background: linear-gradient(180deg, #0b1220 0%, #111c33 100%);
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 16px;
            padding: 16px;
            box-shadow: 0 20px 48px rgba(2, 6, 23, 0.62);
        }

        .direct-wallet-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .direct-wallet-head h4 {
            font-size: 18px;
            color: #f8fafc;
        }

        .direct-wallet-close {
            border: none;
            background: rgba(148, 163, 184, 0.2);
            color: #e2e8f0;
            width: 30px;
            height: 30px;
            border-radius: 8px;
            font-size: 20px;
            line-height: 1;
            cursor: pointer;
        }

        .direct-wallet-subtitle {
            margin-top: 8px;
            color: #94a3b8;
            font-size: 13px;
        }

        .direct-wallet-options {
            margin-top: 12px;
            display: grid;
            gap: 8px;
        }

        .direct-wallet-option {
            border: 1px solid rgba(148, 163, 184, 0.24);
            border-radius: 12px;
            background: rgba(15, 23, 42, 0.84);
            color: #f8fafc;
            padding: 11px 12px;
            text-align: right;
            cursor: pointer;
            font-weight: 700;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .direct-wallet-option:hover {
            border-color: rgba(59, 130, 246, 0.65);
            background: rgba(30, 64, 175, 0.2);
        }

        @media (max-width: 900px) {
            .payment-modal-card {
                width: min(640px, 100%);
            }

            .payment-header,
            .payment-body {
                padding-left: 16px;
                padding-right: 16px;
            }
        }

        @media (max-width: 768px) {
            .payment-modal {
                padding: 12px;
                align-items: center;
                justify-content: center;
                background: rgba(2, 6, 23, 0.82);
            }

            .payment-modal-card {
                width: min(640px, 100%);
                max-height: min(88dvh, calc(100dvh - 24px));
                border-radius: 16px;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            .payment-modal.payment-modal--eedeex.is-network-selected,
            .payment-modal.payment-modal--eedeex.is-awaiting-network {
                padding: max(12px, env(safe-area-inset-top, 12px)) 12px max(12px, env(safe-area-inset-bottom, 12px));
                align-items: center;
                justify-content: center;
                background: rgba(2, 6, 23, 0.88);
            }

            .payment-modal.payment-modal--eedeex.is-network-selected .payment-modal-card,
            .payment-modal.payment-modal--eedeex.is-awaiting-network .payment-modal-card {
                width: min(440px, calc(100vw - 24px));
                max-width: none;
                min-height: unset;
                height: auto;
                max-height: min(92dvh, 720px);
                border-radius: 18px;
                border: 1px solid rgba(148, 163, 184, 0.16);
                box-shadow: 0 24px 56px rgba(2, 6, 23, 0.55);
            }

            .payment-modal.is-network-selected:not(.payment-modal--eedeex) {
                padding: 0;
                align-items: stretch;
                justify-content: stretch;
                background: #0b1220;
            }

            .payment-modal.is-network-selected:not(.payment-modal--eedeex) .payment-modal-card {
                width: 100%;
                max-width: none;
                min-height: 100dvh;
                height: 100dvh;
                max-height: none;
                border-radius: 0;
                border: none;
                box-shadow: none;
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }

            .payment-modal.is-network-selected .payment-body {
                flex: 1 1 auto;
                min-height: 0;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                padding: 10px 14px max(12px, env(safe-area-inset-bottom, 0px));
            }

            .payment-modal.is-network-selected .payment-header {
                flex-shrink: 0;
                padding: max(10px, env(safe-area-inset-top, 0px)) 14px 8px;
            }

            .payment-modal.is-network-selected .payment-title {
                font-size: 17px;
                margin-top: 6px;
                margin-bottom: 4px;
            }

            .payment-modal.is-network-selected .payment-subtitle {
                font-size: 12px;
                line-height: 1.4;
            }

            .payment-modal.is-network-selected .payment-meta {
                margin-top: 8px;
                gap: 6px;
            }

            .payment-modal.is-network-selected .payment-meta-item {
                padding: 4px 8px;
                font-size: 12px;
            }

            .payment-modal.is-network-selected .payment-details {
                margin-top: 6px;
            }

            .payment-modal.is-network-selected .payment-qr-wrap {
                margin-top: 4px;
                min-height: 0;
                padding: 8px;
                border-radius: 12px;
            }

            .payment-modal.is-network-selected .payment-qr-wrap img {
                width: clamp(104px, 26vw, 128px);
                height: clamp(104px, 26vw, 128px);
            }

            .payment-modal.is-network-selected .payment-qr-caption {
                margin-top: 4px;
                font-size: 10px;
            }

            .payment-modal.is-network-selected .payment-network-info {
                margin-top: 6px;
                padding: 7px 10px;
                border-radius: 10px;
            }

            .payment-modal.is-network-selected .payment-network-info .label {
                font-size: 10px;
                margin-bottom: 2px;
            }

            .payment-modal.is-network-selected .payment-network-info .value {
                font-size: 12px;
            }

            .payment-modal.is-network-selected .payment-address-box {
                margin-top: 6px;
                gap: 6px;
            }

            .payment-modal.is-network-selected .payment-address-label {
                font-size: 10px;
            }

            .payment-modal.is-network-selected .payment-address-box input {
                padding: 7px 10px;
                font-size: 11px;
                min-height: 36px;
                border-radius: 10px;
            }

            .payment-modal.is-network-selected .payment-address-copy-btn {
                flex: 0 0 36px;
                width: 36px;
                min-width: 36px;
                height: 36px;
                min-height: 36px;
                border-radius: 10px;
            }

            .payment-modal.is-network-selected .payment-address-copy-btn i {
                font-size: 13px;
            }

            .payment-modal.is-network-selected .payment-btn {
                padding: 8px 10px;
                font-size: 12px;
                border-radius: 10px;
                min-height: 36px;
            }

            .payment-modal.is-network-selected .payment-direct {
                margin-top: 6px;
            }

            .payment-modal.is-network-selected .payment-direct-open {
                padding: 8px 10px;
            }

            .payment-modal.is-network-selected .payment-actions {
                margin-top: 6px;
                gap: 6px;
            }

            .payment-modal.is-network-selected .payment-status {
                margin-top: 6px;
                font-size: 12px;
                line-height: 1.45;
            }
        }

        @media (max-width: 640px) {
            .payment-modal:not(.is-network-selected) {
                padding: 10px;
            }

            .payment-modal:not(.is-network-selected) .payment-modal-card {
                border-radius: 16px;
                max-height: min(90dvh, calc(100dvh - 20px));
            }

            .payment-title {
                font-size: 18px;
            }

            .payment-subtitle {
                font-size: 13px;
            }

            .payment-meta {
                gap: 6px;
            }

            .payment-meta-item {
                width: 100%;
            }

            .payment-address-box {
                grid-template-columns: unset;
            }

            .payment-address-row {
                flex-direction: row;
            }

            .recovery-actions {
                grid-template-columns: 1fr;
            }

            .payment-actions {
                grid-template-columns: 1fr;
            }

            .payment-direct {
                width: 100%;
            }

            #pricing {
                padding-bottom: 72px;
            }

            .landing-terms {
                padding: 52px 0 28px;
                margin-top: 56px;
            }

            .landing-terms__grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .landing-terms__lead {
                margin-bottom: 20px;
                font-size: 0.84rem;
            }

            footer {
                padding: 34px 0 20px;
                text-align: right;
            }

            html[dir="ltr"] footer {
                text-align: left;
            }

            footer .container {
                padding-inline-start: max(8px, env(safe-area-inset-right, 8px));
                padding-inline-end: max(14px, env(safe-area-inset-left, 14px));
            }

            html[dir="ltr"] footer .container {
                padding-inline-start: max(14px, env(safe-area-inset-left, 14px));
                padding-inline-end: max(8px, env(safe-area-inset-right, 8px));
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 14px;
                margin-bottom: 16px;
                text-align: right;
            }

            html[dir="ltr"] .footer-content {
                text-align: left;
            }

            .footer-section h3 {
                margin-bottom: 8px;
            }

            .footer-section--quick-links h3,
            .footer-section--contact h3 {
                padding-inline-start: 0;
            }

            .footer-split-row {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 4px 10px;
                align-items: start;
            }

            .footer-split-col {
                display: flex;
                flex-direction: column;
                gap: 8px;
            }

            /* RTL: flex-start = يمين الشاشة */
            .footer-split-col--right {
                text-align: start;
                align-items: flex-start;
            }

            .footer-split-col--right > a {
                align-self: flex-start;
                margin-inline-start: 0;
                margin-inline-end: auto;
                padding-inline-start: 0;
            }

            /* RTL: العمود الثاني نحو منتصف الشاشة */
            .footer-split-col--left {
                text-align: start;
                align-items: flex-start;
            }

            .footer-split-col--left > a {
                align-self: flex-start;
                margin-inline-start: 0;
                margin-inline-end: auto;
                padding-inline-start: 0;
            }

            /* LTR: العمود الأول = يسار الشاشة، الثاني نحو الوسط */
            html[dir="ltr"] .footer-split-col--right,
            html[dir="ltr"] .footer-split-col--left {
                text-align: left;
                align-items: flex-start;
            }

            html[dir="ltr"] .footer-split-col--right > a,
            html[dir="ltr"] .footer-split-col--left > a {
                align-self: flex-start;
                margin-inline-start: 0;
                margin-inline-end: auto;
                text-align: left;
            }

            .footer-contact-split.contact-list {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 8px 10px;
            }

            .footer-contact-split .footer-split-col--right .contact-item {
                justify-content: flex-start;
                align-self: flex-start;
                margin-inline-start: 0;
                margin-inline-end: auto;
                width: fit-content;
                max-width: 100%;
                text-align: start;
                padding-inline-start: 6px;
                padding-inline-end: 10px;
            }

            .footer-contact-split .footer-split-col--left .contact-item {
                justify-content: flex-start;
                align-self: flex-start;
                margin-inline-start: 0;
                margin-inline-end: auto;
                width: fit-content;
                max-width: 100%;
                text-align: start;
                padding-inline-start: 6px;
                padding-inline-end: 10px;
            }

            html[dir="ltr"] .footer-contact-split .footer-split-col--right .contact-item,
            html[dir="ltr"] .footer-contact-split .footer-split-col--left .contact-item {
                justify-content: flex-start;
                align-self: flex-start;
                margin-inline-start: 0;
                margin-inline-end: auto;
                text-align: left;
            }

            html[dir="ltr"] .footer-section--quick-links h3,
            html[dir="ltr"] .footer-section--contact h3 {
                text-align: left;
            }

            .header-actions,
            .hero-actions {
                flex-direction: column;
                width: 100%;
            }

            .header-actions .cta-btn,
            .hero-actions .cta-btn,
            .header-actions .login-btn,
            .hero-actions .login-btn {
                width: 100%;
                text-align: center;
            }
        }

        @media (max-width: 768px) {
            #pricing {
                padding-bottom: 72px;
            }

            .landing-terms {
                margin-top: 56px;
                padding-top: 52px;
            }

            footer .container {
                padding-inline-start: max(8px, env(safe-area-inset-right, 8px));
                padding-inline-end: max(14px, env(safe-area-inset-left, 14px));
            }

            html[dir="ltr"] footer .container {
                padding-inline-start: max(14px, env(safe-area-inset-left, 14px));
                padding-inline-end: max(8px, env(safe-area-inset-right, 8px));
            }

            html[dir="ltr"] footer,
            html[dir="ltr"] .footer-content {
                text-align: left;
            }

            .footer-split-row,
            .footer-contact-split.contact-list {
                gap: 4px 10px;
            }

            .footer-split-col--right {
                text-align: start;
                align-items: flex-start;
            }

            .footer-split-col--right > a {
                align-self: flex-start;
                margin-inline-start: 0;
                margin-inline-end: auto;
                padding-inline-start: 0;
            }

            .footer-split-col--left {
                text-align: start;
                align-items: flex-start;
            }

            .footer-split-col--left > a {
                align-self: flex-start;
                margin-inline-start: 0;
                margin-inline-end: auto;
                padding-inline-start: 0;
            }

            html[dir="ltr"] .footer-split-col--right,
            html[dir="ltr"] .footer-split-col--left {
                text-align: left;
                align-items: flex-start;
            }

            html[dir="ltr"] .footer-split-col--right > a,
            html[dir="ltr"] .footer-split-col--left > a {
                align-self: flex-start;
                text-align: left;
            }

            .footer-contact-split .footer-split-col--right .contact-item {
                justify-content: flex-start;
                align-self: flex-start;
                margin-inline-start: 0;
                margin-inline-end: auto;
                width: fit-content;
                max-width: 100%;
            }

            .footer-contact-split .footer-split-col--left .contact-item {
                justify-content: flex-start;
                align-self: flex-start;
                margin-inline-start: 0;
                margin-inline-end: auto;
                width: fit-content;
                max-width: 100%;
            }

            html[dir="ltr"] .footer-contact-split .footer-split-col--right .contact-item,
            html[dir="ltr"] .footer-contact-split .footer-split-col--left .contact-item {
                text-align: left;
            }

            .recovery-modal {
                align-items: center;
                justify-content: center;
                padding: max(14px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
            }

            .recovery-modal-content {
                max-height: min(88dvh, calc(100dvh - 28px));
                margin: 0 auto;
            }
        }

        /* نوافذ الدفع / الاستعادة / المحفظة — شاشات ضيقة جداً (<450px): ارتفاع أقصر وتمرير داخل البطاقة */
        @media (max-width: 450px) {
            .recovery-modal {
                padding: max(12px, env(safe-area-inset-top, 0px)) 8px max(12px, env(safe-area-inset-bottom, 0px));
                align-items: center;
                justify-content: center;
            }

            .recovery-modal-content {
                width: 100%;
                max-height: min(86dvh, calc(100dvh - 24px));
                border-radius: 16px;
                margin: 0 auto;
            }

            .recovery-modal-header {
                padding: 16px 14px 12px;
                gap: 12px;
            }

            .recovery-modal-icon {
                width: 42px;
                height: 42px;
                font-size: 1rem;
                border-radius: 12px;
            }

            .recovery-modal-content h3 {
                font-size: 1.08rem;
            }

            .recovery-modal-kicker {
                font-size: 0.8rem;
            }

            .recovery-modal-scroll {
                padding: 12px 14px 6px;
            }

            .recovery-modal-lead {
                font-size: 0.84rem;
                margin-bottom: 10px;
            }

            .recovery-modal-notice {
                font-size: 0.8rem;
                padding: 10px 12px;
                margin-bottom: 12px;
                line-height: 1.6;
            }

            .recovery-meta-row {
                margin-bottom: 12px;
            }

            .recovery-user-id {
                max-width: min(8.5rem, 34vw);
                font-size: 0.72rem;
                padding: 6px 9px;
            }

            .recovery-phrase-box {
                min-height: 80px;
                padding: 10px 12px;
                font-size: 13px;
            }

            .recovery-actions {
                padding: 12px 14px 16px;
                gap: 8px;
            }

            .recovery-actions-row {
                gap: 8px;
            }

            .recovery-action-btn {
                padding: 10px 11px;
                font-size: 0.72rem !important;
            }

            #recoveryModal .recovery-action-btn {
                font-size: 0.72rem !important;
            }

            .payment-modal.is-network-selected {
                padding: 0;
                align-items: stretch;
            }

            .payment-modal.is-network-selected .payment-modal-card {
                width: 100%;
                min-height: 100dvh;
                height: 100dvh;
                max-height: none;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                border-radius: 0;
            }

            .payment-modal.is-network-selected .payment-header {
                padding: max(12px, env(safe-area-inset-top, 0px)) 12px 8px;
            }

            .payment-body {
                padding: 10px 12px 12px;
            }

            .payment-title {
                font-size: 16px;
                margin-top: 6px;
                margin-bottom: 5px;
            }

            .payment-subtitle {
                font-size: 12px;
                line-height: 1.45;
            }

            .direct-wallet-modal {
                padding: 6px 5px;
                align-items: flex-start;
                padding-top: max(4px, env(safe-area-inset-top, 0px));
            }

            .direct-wallet-card {
                width: 100%;
                max-height: min(88dvh, calc(100dvh - 10px));
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                padding: 11px 10px;
                border-radius: 12px;
            }

            .direct-wallet-head h4 {
                font-size: 15px;
            }

            .direct-wallet-subtitle {
                font-size: 12px;
            }

            .direct-wallet-option {
                padding: 9px 10px;
                font-size: 0.85rem;
            }
        }

        /* Shared light mode (professional trading UI) */
        body.light-mode {
            color: #374151;
            background-color: #f7f9fc;
            background-image:
                radial-gradient(ellipse 90% 74% at 50% 46%, rgba(37, 99, 235, 0.028) 0%, transparent 60%),
                linear-gradient(180deg, #fafbfd 0%, #eef2f7 100%);
            background-attachment: fixed;
            background-repeat: no-repeat;
            background-size: cover;
        }

        body.light-mode header {
            background: rgba(255, 255, 255, 0.96);
            border-bottom-color: rgba(209, 213, 219, 0.9);
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
        }

        body.light-mode .section-title,
        body.light-mode .card-title,
        body.light-mode .hero-content h1 {
            color: #111827 !important;
            -webkit-text-fill-color: currentColor;
            background: none !important;
        }

        body.light-mode .logo-text {
            color: transparent;
            background: linear-gradient(
                90deg,
                #c79f43 0%,
                #c79f43 24%,
                #fff9e6 31%,
                #eecf76 38%,
                #fff4d7 45%,
                #c79f43 52%,
                #c79f43 100%
            );
            -webkit-background-clip: text;
            background-clip: text;
            background-size: 320% 100%;
            background-position: -140% 50%;
            animation: logoGradientFlow 4.3s linear infinite;
            text-shadow: 0 0 7px rgba(239, 210, 125, 0.2);
        }

        body.light-mode .logo i {
            color: #cea64a !important;
            text-shadow: none;
            background: transparent;
            border: none;
        }

        body.light-mode nav a,
        body.light-mode .hero-content p,
        body.light-mode .card-description,
        body.light-mode .card-features li,
        body.light-mode .locale-chip,
        body.light-mode .locale-option {
            color: #5b6574 !important;
        }

        body.light-mode .card,
        body.light-mode .pricing-card,
        body.light-mode .locale-menu {
            background: #f8fafc !important;
            border-color: rgba(209, 213, 219, 0.9) !important;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
        }

        body.light-mode .cta-btn,
        body.light-mode .btn {
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18) !important;
        }

        body.light-mode .login-btn {
            color: #9a6b00 !important;
            border-color: rgba(196, 145, 29, 0.55) !important;
            background: rgba(217, 165, 39, 0.1) !important;
            box-shadow: 0 4px 12px rgba(196, 145, 29, 0.14) !important;
        }

        body.light-mode .login-btn:hover {
            color: #835800 !important;
            border-color: rgba(196, 145, 29, 0.74) !important;
            background: rgba(217, 165, 39, 0.16) !important;
        }

        /* Pricing consistency: unified subscription board */
        #pricing .pricing-grid {
            background: linear-gradient(180deg, rgba(12, 20, 48, 0.96), rgba(10, 17, 42, 0.96));
            border: 1px solid rgba(96, 165, 250, 0.26);
            border-radius: 20px;
            padding: 14px;
            box-shadow: 0 18px 40px rgba(2, 6, 23, 0.5);
        }

        #pricing .pricing-card {
            background: linear-gradient(180deg, rgba(20, 31, 70, 0.98), rgba(11, 20, 49, 0.98));
            border: 1px solid rgba(96, 165, 250, 0.24);
            border-radius: 16px;
            box-shadow: 0 12px 30px rgba(2, 6, 23, 0.42);
        }

        #pricing .pricing-card.recommended {
            background: linear-gradient(180deg, rgba(30, 40, 82, 0.98), rgba(14, 23, 55, 0.98));
            border-color: rgba(245, 158, 11, 0.72);
            box-shadow: 0 14px 32px rgba(245, 158, 11, 0.18);
        }

        #pricing .pricing-card .card-features {
            background: rgba(15, 23, 42, 0.62);
            border-color: rgba(148, 163, 184, 0.22);
        }

        body.light-mode #pricing .pricing-grid {
            background: #eef2f7 !important;
            border-color: rgba(203, 213, 225, 0.9) !important;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
        }

        body.light-mode #pricing .pricing-card {
            background: #f8fafc !important;
            border-color: rgba(203, 213, 225, 0.95) !important;
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
        }

        body.light-mode #pricing .pricing-card.recommended {
            background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%) !important;
            border-color: rgba(245, 158, 11, 0.6) !important;
            box-shadow: 0 10px 24px rgba(245, 158, 11, 0.16) !important;
        }

        body.light-mode #pricing .pricing-card .card-title {
            color: #0f172a !important;
        }

        body.light-mode #pricing .pricing-card .card-description,
        body.light-mode #pricing .pricing-card .card-features li {
            color: #475569 !important;
        }

        body.light-mode #pricing .pricing-card .card-features {
            background: #f1f5f9 !important;
            border-color: rgba(203, 213, 225, 0.95) !important;
        }

        body.light-mode .plan-switcher-btn {
            background: #f8fafc;
            color: #475569;
            border-color: rgba(203, 213, 225, 0.9);
        }

        body.light-mode .plan-switcher-btn.active {
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(245, 158, 11, 0.22));
            color: #8a6200;
            border-color: rgba(245, 158, 11, 0.65);
        }

        /* Professional clean subscription block */
        #pricing .pricing-grid {
            gap: 14px !important;
            padding: 16px !important;
            border-radius: 22px !important;
            background: linear-gradient(180deg, rgba(13, 20, 46, 0.92), rgba(10, 17, 40, 0.92)) !important;
            border: 1px solid rgba(148, 163, 184, 0.16) !important;
            box-shadow: 0 22px 44px rgba(2, 6, 23, 0.42) !important;
        }

        #pricing .pricing-card {
            border-radius: 18px !important;
            border: 1px solid rgba(148, 163, 184, 0.14) !important;
            background: linear-gradient(180deg, rgba(18, 27, 58, 0.9), rgba(12, 19, 46, 0.9)) !important;
            box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28) !important;
            transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
        }

        #pricing .pricing-card:hover {
            transform: translateY(-4px) !important;
            box-shadow: 0 18px 30px rgba(2, 6, 23, 0.34) !important;
            border-color: rgba(251, 191, 36, 0.34) !important;
        }

        #pricing .pricing-card .card-features {
            background: rgba(15, 23, 42, 0.44) !important;
            border: none !important;
            border-radius: 12px !important;
        }

        /* Match Demo plan visuals with paid plans */
        #demo .demo-card {
            border-radius: 18px !important;
            border: 1px solid rgba(148, 163, 184, 0.14) !important;
            background: linear-gradient(180deg, rgba(18, 27, 58, 0.9), rgba(12, 19, 46, 0.9)) !important;
            box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28) !important;
            transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
        }

        #demo .demo-card:hover {
            transform: translateY(-4px) !important;
            box-shadow: 0 18px 30px rgba(2, 6, 23, 0.34) !important;
            border-color: rgba(251, 191, 36, 0.34) !important;
        }

        #demo .demo-card .card-features {
            background: rgba(15, 23, 42, 0.44) !important;
            border: none !important;
            border-radius: 12px !important;
        }

        #pricing .plan-switcher {
            background: rgba(15, 23, 42, 0.48);
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 14px;
            padding: 8px;
            margin-bottom: 12px;
        }

        #pricing .plan-switcher-btn {
            border-radius: 10px;
            border: 1px solid transparent;
            transition: all 0.2s ease;
        }

        #pricing .plan-switcher-btn.active {
            box-shadow: 0 8px 16px rgba(245, 158, 11, 0.18);
        }

        body.light-mode #pricing .pricing-grid {
            background: linear-gradient(180deg, #f8fafd 0%, #eff3f9 100%) !important;
            border: 1px solid rgba(203, 213, 225, 0.8) !important;
            box-shadow: 0 16px 30px rgba(15, 23, 42, 0.07) !important;
        }

        body.light-mode #pricing .pricing-card {
            background: #ffffff !important;
            border: 1px solid rgba(203, 213, 225, 0.74) !important;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
        }

        body.light-mode #pricing .pricing-card:hover {
            border-color: rgba(245, 158, 11, 0.44) !important;
            box-shadow: 0 14px 22px rgba(15, 23, 42, 0.1) !important;
        }

        body.light-mode #demo .demo-card {
            background: #ffffff !important;
            border: 1px solid rgba(203, 213, 225, 0.74) !important;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
        }

        body.light-mode #demo .demo-card:hover {
            border-color: rgba(245, 158, 11, 0.44) !important;
            box-shadow: 0 14px 22px rgba(15, 23, 42, 0.1) !important;
        }

        body.light-mode #demo .demo-card .card-features {
            background: #f1f5f9 !important;
            border-color: rgba(203, 213, 225, 0.95) !important;
        }

        body.light-mode #pricing .plan-switcher {
            background: #f8fafc;
            border-color: rgba(203, 213, 225, 0.86);
        }

        /* Global typography cleanup (official + compact) */
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
            letter-spacing: 0.01em;
            font-weight: 800;
        }

        p, li, span, a, label, small {
            font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
            font-size: 0.9rem;
            line-height: 1.55;
        }

        .btn,
        .cta-btn,
        .login-btn,
        .period-btn,
        .plan-switcher-btn,
        .payment-btn,
        .recovery-action-btn,
        .payment-network-btn {
            font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
            font-size: 0.88rem !important;
            font-weight: 700;
            letter-spacing: 0;
        }

        .payment-modal-card,
        .recovery-modal-card,
        .direct-wallet-card {
            font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
        }

        .payment-modal-title,
        .recovery-modal-title,
        .direct-wallet-title {
            font-size: 1.18rem !important;
        }

        .payment-status,
        .payment-hint,
        .payment-subtitle,
        .recovery-warning,
        .recovery-note,
        .direct-wallet-note {
            font-size: 0.86rem !important;
        }

        @media (max-width: 768px) {
            p, li, span, a, label, small {
                font-size: 0.84rem;
            }

            .btn,
            .cta-btn,
            .login-btn,
            .period-btn,
            .plan-switcher-btn,
            .payment-btn,
            .recovery-action-btn,
            .payment-network-btn {
                font-size: 0.82rem !important;
            }

            #recoveryModal .recovery-action-btn {
                font-size: 0.72rem !important;
            }

            .payment-modal-title,
            .recovery-modal-title,
            .direct-wallet-title {
                font-size: 1.06rem !important;
            }
        }

        /* iOS PWA / Add to Home Screen — landing: بدون توسيط عمودي وفراغ زائد */
        @media (max-width: 768px) and (display-mode: standalone),
               (max-width: 768px) and (display-mode: fullscreen) {
            body > header {
                padding-top: env(safe-area-inset-top, 0px) !important;
                padding-bottom: 8px !important;
            }

            body > header .header-content {
                flex-direction: column !important;
                align-items: center !important;
                gap: 8px !important;
            }

            body > header .header-actions {
                display: none !important;
            }

            html[dir="rtl"] body > header .header-locale-wrap {
                top: calc(14px + env(safe-area-inset-top, 0px)) !important;
            }

            html[dir="ltr"] body > header .header-locale-wrap {
                top: calc(14px + env(safe-area-inset-top, 0px)) !important;
            }

            body > header + .hero,
            body > header ~ #hero.hero {
                min-height: auto !important;
                align-items: flex-start !important;
                justify-content: flex-start !important;
                padding-top: calc(78px + env(safe-area-inset-top, 0px)) !important;
                padding-bottom: 40px !important;
            }
        }

        @media (max-width: 768px) {
            html.pwa-standalone body > header {
                padding-top: var(--safe-top, env(safe-area-inset-top, 0px)) !important;
                padding-bottom: 8px !important;
            }

            html.pwa-standalone body > header .header-content {
                flex-direction: column !important;
                align-items: center !important;
                gap: 8px !important;
            }

            html.pwa-standalone body > header .header-actions {
                display: none !important;
            }

            html.pwa-standalone[dir="rtl"] body > header .header-locale-wrap,
            html.pwa-standalone html[dir="rtl"] body > header .header-locale-wrap {
                top: calc(14px + var(--safe-top, env(safe-area-inset-top, 0px))) !important;
            }

            html.pwa-standalone[dir="ltr"] body > header .header-locale-wrap,
            html.pwa-standalone html[dir="ltr"] body > header .header-locale-wrap {
                top: calc(14px + var(--safe-top, env(safe-area-inset-top, 0px))) !important;
            }

            html.pwa-standalone body > header + .hero,
            html.pwa-standalone body > header ~ #hero.hero {
                min-height: auto !important;
                align-items: flex-start !important;
                justify-content: flex-start !important;
                padding-top: calc(78px + var(--safe-top, env(safe-area-inset-top, 0px))) !important;
                padding-bottom: 40px !important;
            }
        }
