/* Critical styles for preloader and initial render */
        body {
            font-family: "Changa", serif !important;

        }

        .theme-icon:hover {
            fill: rgba(96, 165, 250);
            stroke: rgba(96, 165, 250);
        }


        #preloader {
            background-color: #111827;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .animate-spin {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        body.loading {
            overflow: hidden;
        }

        .social-share-container {
            position: fixed;
            left: 20px; /* For LTR languages */
            top: 50%;
            transform: translateY(-50%);
            z-index: 100;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        [dir="rtl"] .social-share-container {
            left: auto;
            right: 20px; /* For RTL languages */
        }

        .social-share-container .share-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .social-share-container .share-btn:hover {
            transform: scale(1.1);
        }

        .social-share-container .facebook {
            background-color: #3b5998;
        }

        .social-share-container .twitter {
            background-color: #1da1f2;
        }

        .social-share-container .linkedin {
            background-color: #0077b5;
        }

        .social-share-container .whatsapp {
            background-color: #25d366;
        }

        .social-share-container .copy-link {
            background-color: #333;
        }

        .social-share-container .share-btn i {
            font-size: 18px;
        }

        .share-tooltip {
            position: absolute;
            left: 50px;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            white-space: nowrap;
        }

        [dir="rtl"] .share-tooltip {
            left: auto;
            right: 50px;
        }

        .social-share-container .share-btn:hover .share-tooltip {
            opacity: 1;
        }

        /* Copied message */
        .copy-message {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 10px 20px;
            border-radius: 4px;
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .copy-message.visible {
            opacity: 1;
        }

        /* Mobile styles */
        @media (max-width: 768px) {
            .social-share-container {
                left: 10px;
            }

            [dir="rtl"] .social-share-container {
                left: auto;
                right: 10px;
            }

            .social-share-container .share-btn {
                width: 35px;
                height: 35px;
            }

            .social-share-container .share-btn i {
                font-size: 16px;
            }
        }

        /* Below 1200px the side margins are too narrow for the share rail, and
           a full-width bottom strip covered page content, so the rail is hidden.
           Sharing stays available from the browser / OS share sheet. */
        @media (max-width: 1199.98px) {
            .social-share-container { display: none; }
        }

        /* Notification style */
        .notification-toast {
            font-size: 0.9rem !important;
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 12px 20px;
            background-color: #ffffff;
            color: #212529;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1050;
            transform: translateY(-20px);
            opacity: 0;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 320px;
        }

        .notification-toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        .notification-toast.success {
            border-inline-start: 4px solid #28a745;
        }

        .notification-toast.error {
            border-inline-start: 4px solid #dc3545;
        }

        /* ════════════════════════════════════════════
           MODERN NAVBAR + FOOTER (Moknah blue)
           ════════════════════════════════════════════ */
        /* Outer bar is just a positioner — the pill carries all the visuals */
        #navbar { transition: padding .35s cubic-bezier(.4,0,.2,1); padding-top: 14px; padding-bottom: 14px; overflow: visible !important; }
        #navbar.glass-effect {
            background: transparent !important; box-shadow: none !important; border: none !important;
            backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
            padding-top: 10px; padding-bottom: 10px;
            overflow: visible !important; /* keep language dropdown from being clipped on scroll */
        }
        /* The floating pill must not clip the dropdown that overflows below it */
        .mk-nav-inner { overflow: visible !important; }

        /* ── Floating island pill ── */
        .mk-nav-inner {
            max-width: 1180px !important;
            padding: 9px 12px 9px 22px;
            border-radius: 9999px;
            background: rgba(var(--bg-primary-rgb), .10);
            -webkit-backdrop-filter: blur(22px) saturate(165%);
            backdrop-filter: blur(22px) saturate(165%);
            border: 1px solid rgba(var(--bg-primary-rgb), .18);
            transition: max-width .35s cubic-bezier(.4,0,.2,1),
                        background .35s ease, box-shadow .35s ease, padding .35s ease;
        }
        [dir="rtl"] .mk-nav-inner { padding: 9px 22px 9px 12px; }
        /* On scroll → tighten + deepen the glass */
        #navbar.glass-effect .mk-nav-inner {
            max-width: 1120px !important;
            background: rgba(var(--bg-primary-rgb), .16);
        }
        /* Light theme: frosted needs a touch more body + a hairline */
        html:not(.dark) .mk-nav-inner {
            background: rgba(255, 255, 255, .65);
            border-color: rgba(0, 0, 0, .08);
        }
        html:not(.dark) #navbar.glass-effect .mk-nav-inner {
            background: rgba(255, 255, 255, .80);
        }
        /* Tame the logo's big inline margin inside the pill */
        .mk-nav-inner > .text-2xl:first-child { margin-inline-end: 1.25rem !important; }
        .mk-nav-inner .logo { height: 34px; width: auto; }

        /* Nav links → soft pill-highlight on hover */
        .mk-nav-links > a {
            position: relative; font-weight: 600; padding: 8px 13px; border-radius: 9999px;
            white-space: nowrap; /* stop long locales (FR/TR) wrapping mid-phrase */
            transition: background .2s ease, color .2s ease;
        }
        .mk-nav-links > a:hover {
            background: rgba(var(--bg-primary-rgb), .10);
            color: var(--text-primary);
        }
        .get-started-btn { white-space: nowrap; }
        /* Long-locale fit: compact the nav in the lg–xl band so FR/TR stay on one line */
        @media (min-width: 1024px) and (max-width: 1319px) {
            .mk-nav-inner { padding-inline: 14px; }
            [dir="rtl"] .mk-nav-inner { padding: 9px 14px; }
            .mk-nav-links { gap: 0 !important; }
            .mk-nav-links > a { padding: 8px 9px; font-size: .92rem; }
            .mk-nav-inner > .text-2xl:first-child { margin-inline-end: .5rem !important; }
            .mk-nav-inner .logo { height: 30px; }
            nav .lang-dd-btn { padding: 7px 8px; gap: 4px; }
            .get-started-btn { padding-inline: 1rem !important; font-size: .92rem; }
        }

        /* Language + theme controls (round chips) */
        nav .lang-switch { font-weight: 600; padding: 7px 14px; border-radius: 9999px; transition: color .2s, background .2s; }
        nav .lang-switch:hover { background: rgba(var(--bg-primary-rgb), .10); }
        nav .theme-switch { padding: 9px; border-radius: 9999px; display: inline-flex; transition: background .2s; }
        nav .theme-switch:hover { background: rgba(var(--bg-primary-rgb), .10); }
        nav .mobile-menu-button { padding: 9px; border-radius: 9999px; transition: background .2s; }
        nav .mobile-menu-button:hover { background: rgba(var(--bg-primary-rgb), .10); }

        /* Language dropdown (multi-language selector) */
        .lang-dd { position: relative; }
        .lang-dd-btn {
            display: inline-flex; align-items: center; gap: 6px;
            font-weight: 600; padding: 7px 12px; border-radius: 9999px;
            background: transparent; border: none; cursor: pointer; color: inherit;
            transition: color .2s, background .2s;
        }
        .lang-dd-btn:hover { background: rgba(var(--bg-primary-rgb), .10); color: #60a5fa; }
        .lang-dd-btn .lang-caret { transition: transform .2s; }
        .lang-dd.open .lang-dd-btn .lang-caret { transform: rotate(180deg); }
        .lang-dd-menu {
            position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 1000;
            min-width: 168px; max-height: min(70vh, 420px); overflow-y: auto;
            padding: 6px; margin: 0;
            border-radius: 14px;
            background: var(--bg-secondary, rgba(17, 24, 39, .96));
            border: 1px solid rgba(var(--bg-primary-rgb), .14);
            -webkit-backdrop-filter: blur(22px) saturate(165%);
            backdrop-filter: blur(22px) saturate(165%);
            box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
            opacity: 0; visibility: hidden; transform: translateY(-6px);
            transition: opacity .18s ease, transform .18s ease, visibility .18s;
        }
        .lang-dd.open .lang-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
        .lang-dd-menu button {
            display: flex; align-items: center; justify-content: space-between; gap: 12px;
            width: 100%; padding: 9px 12px; border: none; background: transparent;
            border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .95rem;
            color: var(--text-primary, #e5e7eb); text-align: start; transition: background .15s;
        }
        .lang-dd-menu button:hover { background: rgba(var(--bg-primary-rgb), .10); color: #60a5fa; }
        .lang-dd-menu button.active { color: #60a5fa; }
        .lang-dd-menu button.active .lang-check { opacity: 1; }
        .lang-dd-menu .lang-check { opacity: 0; font-size: .8rem; }

        /* Start Free button — blue gradient + glow */
        .get-started-btn {
            background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
            color: #fff !important; font-weight: 700; border: none; letter-spacing: .2px;
            box-shadow: 0 8px 22px rgba(37, 99, 235, .42);
            transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
        }
        .get-started-btn:hover {
            cursor:pointer;
            transform: translateY(-2px); filter: brightness(1.06);
            box-shadow: 0 12px 30px rgba(37, 99, 235, .58);
        }

        /* Mobile dropdown menu → match the pill language */
        .mobile-menu .glass-effect {
            border-radius: 20px !important;
            -webkit-backdrop-filter: blur(22px) saturate(165%);
            backdrop-filter: blur(22px) saturate(165%);
            border: 1px solid rgba(var(--bg-primary-rgb), .14) !important;
            box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
        }
        .mobile-menu a { border-radius: 12px; padding: 10px 14px; transition: background .2s; }
        .mobile-menu a:hover { background: rgba(var(--bg-primary-rgb), .10); }

        /* ════ Footer ════ */
        .mk-footer { position: relative; }
        .mk-footer::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
            background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .55), transparent);
        }
        .mk-footer h3 { position: relative; display: inline-block; padding-bottom: 10px; }
        .mk-footer h3::after {
            content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 30px; height: 2px;
            background: linear-gradient(90deg, #60a5fa, #2563eb); border-radius: 2px;
        }
        .mk-footer ul a { display: inline-block; transition: color .2s ease, transform .2s ease; }
        .mk-footer ul a:hover { transform: translateX(4px); }
        [dir="rtl"] .mk-footer ul a:hover { transform: translateX(-4px); }

        /* Social icon chips */
        .mk-socials a {
            width: 42px; height: 42px; border-radius: 12px;
            display: inline-flex; align-items: center; justify-content: center;
            background: rgba(var(--bg-primary-rgb), .06);
            border: 1px solid rgba(var(--bg-primary-rgb), .12);
            transition: transform .2s ease, background .2s ease, border-color .2s ease;
        }
        .mk-socials a:hover { transform: translateY(-3px); background: rgba(59, 130, 246, .16); border-color: rgba(59, 130, 246, .45); }
        .mk-socials a i { font-size: 1.25em !important; }
