        /* --- RESET & VARIABLES --- */
        :root {
            /* aliases into tokens.css — the single source of truth */
            --bg-body: var(--bg, #080809);
            --primary: var(--gold, #d6b25e);
            --primary-hover: var(--gold-hover, #e2c374);
            --secondary: var(--teal, #2dd4bf);
            --glass: rgba(14, 15, 18, 0.72);
            --glass-border: rgba(255, 255, 255, 0.08);
            --text-main: var(--text, #e8e6e1);
            --font-main: var(--font-fa, 'Estedad', 'Vazirmatn', sans-serif);
            --font-display: 'Estedad', 'Vazirmatn', 'Satoshi', 'Inter', sans-serif;
            --type-body-size: var(--text-base, 1rem);
            --type-body-leading: var(--leading-body, 1.85);
        }

        * {
            box-sizing: border-box;
        }

        ::selection {
            background: var(--primary);
            color: #080809;
        }

        html {
            font-size: 100%; /* rem = 16px; never shrink the root */
            overflow-x: hidden;
            width: 100%;
        }

        body {
            overflow-x: hidden;
            width: 100%;
            margin: 0;
            padding: 0;
            background-color: var(--bg-body);
            color: var(--text-main);
            font-family: var(--font-main) !important;
            font-size: var(--type-body-size);
            line-height: var(--type-body-leading);
            text-rendering: optimizeLegibility;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            opacity: 0.045;
            mix-blend-mode: soft-light;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23ffffff' fill-opacity='0.24'%3E%3Ccircle cx='18' cy='17' r='1'/%3E%3Ccircle cx='72' cy='31' r='1'/%3E%3Ccircle cx='126' cy='23' r='1'/%3E%3Ccircle cx='29' cy='78' r='1'/%3E%3Ccircle cx='84' cy='68' r='1'/%3E%3Ccircle cx='120' cy='97' r='1'/%3E%3Ccircle cx='45' cy='124' r='1'/%3E%3Ccircle cx='101' cy='129' r='1'/%3E%3C/g%3E%3C/svg%3E");
        }

        html[dir="ltr"] body {
            direction: ltr;
            font-family: 'Inter', sans-serif !important;
            letter-spacing: 0;
        }

        html[dir="ltr"] {
            --font-main: 'Inter', sans-serif;
            --font-display: 'Inter', sans-serif;
        }

        #page-wrapper {
            padding-top: 0 !important;
            background: var(--bg-body) !important;
            overflow-x: hidden;
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 1;
        }

        /* Unified darker smoky/navy surface for dashboard/admin areas */
        body.dashboard-surface {
            --bg-body: #111318;
            --glass: rgba(36, 45, 59, 0.72);
            --glass-border: rgba(148, 163, 184, 0.2);
            --text-main: #e7e0ce;
            --text-muted: #b9b09d;
            background-color: var(--bg-body) !important;
        }

        body.dashboard-surface #page-wrapper,
        body.dashboard-surface main {
            background: var(--bg-body) !important;
        }

        main { flex: 1; }

        p {
            margin: 0;
            line-height: var(--type-body-leading);
        }

        p + p {
            margin-top: 0.72rem;
        }

        ul, ol {
            line-height: var(--type-body-leading);
        }
        
        button, input, select, textarea, .button, .btn, a.button {
            font-family: var(--font-main) !important;
        }

        h1, h2, h3, h4, h5, h6,
        .nav-brand a,
        .footer-logo {
            font-family: var(--font-display);
        }

        h1, h2, h3 {
            margin-top: 0;
            /* Persian display type: open leading, zero tracking (joined script) */
            line-height: var(--leading-heading-fa, 1.38);
            letter-spacing: 0;
            text-wrap: balance;
        }

        html[dir="ltr"] h1,
        html[dir="ltr"] h2,
        html[dir="ltr"] h3 {
            line-height: var(--leading-heading-en, 1.14);
            letter-spacing: -0.02em;
        }

        /* --- MODERN NAVBAR --- */
        .modern-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 80px;
            padding: 0 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 11000;
            transition: border-color 1.2s ease;
            background: var(--bg-body);
            border-bottom: 1px solid transparent;
        }

        /* Cinematic divider: a hair-thin gold line fades in slowly on scroll. */
        .modern-nav.nav-scrolled {
            border-bottom-color: rgba(var(--gold-rgb), 0.45);
        }

        /* Logo Styling */
        .nav-brand {
            z-index: 11002;
            display: flex;
            align-items: center;
            gap: 0.65rem;
        }

        .nav-brand a {
            font-weight: 900;
            font-size: 1.8rem;
            color: var(--text-main);
            text-decoration: none;
            border: none;
            white-space: nowrap;
            letter-spacing: -0.5px;
        }

        .nav-brand-logo {
            width: 4.5rem;
            height: 4.5rem;
            flex: 0 0 auto;
            display: block;
        }
        .nav-brand-logo circle,
        .footer-logo-mark circle,
        .footer-copy-logo circle { transform-box: fill-box; transform-origin: center; }
        .nbl-gold  { fill: var(--gold, #d6b25e); transform-box: fill-box; transform-origin: center; animation: navLogoPulse 2.2s ease-in-out infinite; }
        .nbl-steel { fill: #94a3b3; }
        .nbl-white { fill: #f9fafb; }
        @keyframes navLogoPulse {
            0%, 100% { opacity: 0.5; transform: scale(0.82); }
            50%      { opacity: 1;   transform: scale(1.2); }
        }
        @media (prefers-reduced-motion: reduce) {
            .nbl-gold { animation: none !important; transform: none !important; opacity: 1; }
        }
        
        .nav-brand span { 
            color: var(--primary); 
            display: inline-block;
            font-size: 2rem;
            line-height: 0;
            position: relative;
            top: 3px;
        }

        /* Desktop Menu */
        .nav-links {
            display: flex;
            gap: clamp(1.15rem, 1.6vw, 2.1rem);
            list-style: none;
            margin: 0;
            padding: 0;
            align-items: center;
        }

        .nav-links li a {
            color: var(--text-muted);
            text-decoration: none;
            border: none;
            font-weight: 500;
            font-size: 0.98rem;
            transition: 0.3s;
            position: relative;
            padding-bottom: 5px;
        }

        /* Underline Hover Effect */
        .nav-links li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            right: 0;
            left: auto;
            background-color: var(--primary);
            transition: width 0.3s ease;
        }

        html[dir="ltr"] .nav-links li a::after {
            left: 0;
            right: auto;
        }

        .nav-links li a:hover::after, 
        .nav-links li a.active::after {
            width: 100%;
        }

        .nav-links li a:hover, 
        .nav-links li a.active {
            color: #fff;
        }

        .nav-links li a.active {
            font-weight: 700;
            text-shadow: 0 0 10px rgba(var(--gold-rgb), 0.28);
        }

        .nav-links li a.active::after {
            height: 3px;
            box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.42);
        }

        /* CTA Button (Desktop) */
        .nav-cta {
            background: var(--gold-gradient);
            color: #07090d !important;
            padding: 0.7rem 1.8rem !important;
            border-radius: 12px;
            font-weight: 800 !important;
            box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.25);
            transition: 0.3s !important;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
        }

        .nav-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(var(--gold-rgb), 0.4);
        }
        
        .nav-cta::after { display: none !important; }

        .nav-lang a,
        .nav-lang-btn {
            border: 1px solid rgba(var(--gold-rgb), 0.38);
            color: var(--gold-bright) !important;
            background: rgba(var(--gold-rgb), 0.12);
            border-radius: 10px;
            padding: 0.48rem 0.78rem !important;
            font-size: 0.88rem !important;
            font-weight: 800 !important;
            display: inline-flex;
            align-items: center;
            gap: 0.36rem;
            line-height: 1.2;
        }

        .nav-lang a::after,
        .nav-lang-btn::after {
            display: none !important;
        }

        .nav-lang a:hover,
        .nav-lang-btn:hover {
            color: #f6ecd0 !important;
            border-color: var(--gold);
            background: rgba(var(--gold-rgb), 0.2);
        }

        /* Hamburger Menu Icon */
        .mobile-toggle {
            display: none;
            border: 0;
            /* Neutralise the legacy HTML5UP button frame (inset white box-shadow) */
            box-shadow: none !important;
            background: transparent;
            color: #fff;
            font-size: 1.28rem;
            cursor: pointer;
            width: 44px;
            height: 44px;
            padding: 0;
            line-height: 1;
            text-transform: none;
            z-index: 11004;
            border-radius: 13px;
            transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
        }

        .mobile-toggle i {
            transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .mobile-toggle:hover {
            color: var(--primary);
            background: rgba(var(--gold-rgb), 0.12);
        }

        body.menu-open .mobile-toggle {
            background: rgba(var(--gold-rgb), 0.14);
            color: var(--gold-bright);
            transform: scale(0.98);
        }

        body.menu-open .mobile-toggle i {
            transform: rotate(180deg) scale(0.92);
        }

        @keyframes menuBackdropIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* --- MOBILE RESPONSIVE (refined, on-brand glass panel) --- */
        @media (max-width: 1199px) {
            .modern-nav {
                padding: 0 1.05rem;
                height: 66px;
            }

            .nav-brand a { font-size: 1.36rem; }
            .nav-brand-logo { width: 3.5rem; height: 3.5rem; }

            /* Backdrop: dim + blur the page behind the panel */
            body.menu-open::after {
                content: '';
                position: fixed;
                inset: 0;
                background: rgba(4, 5, 7, 0.68);
                backdrop-filter: blur(10px) saturate(120%);
                -webkit-backdrop-filter: blur(10px) saturate(120%);
                z-index: 10999;
                animation: menuBackdropIn 0.3s ease forwards;
            }

            /* Floating glass panel — drops in from the hamburger side, just below the header */
            .nav-links {
                position: fixed;
                top: calc(env(safe-area-inset-top, 0px) + 4.6rem);
                left: max(0.9rem, env(safe-area-inset-left));
                right: auto;
                width: min(86vw, 21rem);
                max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 6rem);
                margin: 0;
                padding: 0.7rem;
                list-style: none;
                overflow-y: auto;
                overflow-x: hidden;
                background:
                    linear-gradient(180deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0) 34%),
                    rgba(13, 14, 18, 0.86);
                backdrop-filter: blur(26px) saturate(150%);
                -webkit-backdrop-filter: blur(26px) saturate(150%);
                border: 1px solid rgba(var(--gold-rgb), 0.20);
                border-radius: 20px;
                box-shadow:
                    0 28px 70px rgba(0, 0, 0, 0.66),
                    0 0 32px rgba(var(--gold-rgb), 0.06),
                    inset 0 1px 0 rgba(255, 255, 255, 0.06);
                display: flex;
                flex-direction: column;
                gap: 0.28rem;

                pointer-events: none;
                opacity: 0;
                filter: blur(6px);
                transform-origin: top left;
                transform: translate3d(0, -12px, 0) scale(0.94);
                transition:
                    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.26s ease,
                    filter 0.34s ease;
                z-index: 11003;
            }

            /* LTR: hamburger sits on the right, so the panel anchors top-right */
            html[dir="ltr"] .nav-links {
                right: max(0.9rem, env(safe-area-inset-right));
                left: auto;
                transform-origin: top right;
            }

            .nav-links.active {
                opacity: 1;
                filter: blur(0);
                transform: translate3d(0, 0, 0) scale(1);
                pointer-events: auto;
            }

            .nav-links li {
                width: 100%;
                margin: 0;
                opacity: 0;
                transform: translateY(10px);
                transition:
                    opacity 0.34s ease,
                    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            }

            .nav-links.active li {
                opacity: 1;
                transform: translateY(0);
            }

            .nav-links.active li:nth-child(1) { transition-delay: 0.04s; }
            .nav-links.active li:nth-child(2) { transition-delay: 0.07s; }
            .nav-links.active li:nth-child(3) { transition-delay: 0.10s; }
            .nav-links.active li:nth-child(4) { transition-delay: 0.13s; }
            .nav-links.active li:nth-child(5) { transition-delay: 0.16s; }
            .nav-links.active li:nth-child(6) { transition-delay: 0.19s; }
            .nav-links.active li:nth-child(7) { transition-delay: 0.22s; }
            .nav-links.active li:nth-child(8) { transition-delay: 0.25s; }
            .nav-links.active li:nth-child(9) { transition-delay: 0.28s; }

            .nav-links li a {
                font-family: var(--font-display);
                font-size: 1rem;
                font-weight: 600;
                letter-spacing: -0.01em;
                display: flex;
                align-items: center;
                justify-content: flex-start;
                gap: 0.7rem;
                min-height: 48px;
                padding: 0 1rem;
                color: #e8edf4;
                border-radius: 13px;
                background: transparent;
                border: 1px solid transparent;
                transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
            }

            /* No desktop underline sweep inside the panel */
            .nav-links li a::after { display: none !important; }

            .nav-links li a:hover {
                background: rgba(148, 163, 184, 0.08);
                border-color: rgba(148, 163, 184, 0.14);
            }

            .nav-links li a.active {
                color: var(--gold-hover);
                background: rgba(var(--gold-rgb), 0.12);
                border-color: rgba(var(--gold-rgb), 0.34);
                text-shadow: none;
            }

            /* Hairline divider before the language + auth actions */
            .nav-lang {
                margin-top: 0.5rem;
                padding-top: 0.6rem;
                border-top: 1px solid rgba(255, 255, 255, 0.07);
            }

            .nav-lang a {
                font-size: 0.92rem !important;
                width: 100%;
                justify-content: center;
            }

            .nav-cta {
                width: 100%;
                max-width: none;
                min-height: 52px;
                font-size: 1rem !important;
                border-radius: 14px;
                margin: 0.3rem 0 0.1rem;
            }

            .mobile-toggle { display: inline-grid; place-items: center; }
        }

        @media (prefers-reduced-motion: reduce) {
            .mobile-toggle,
            .mobile-toggle i,
            .nav-links,
            .nav-links li,
            .nav-links li a {
                transition: none !important;
                animation: none !important;
            }
        }
        /* --- FOOTER (2026 Redesign) --- */
        #footer {
            background: var(--bg-body);
            border-top: none;
            margin-top: auto;
            padding: 4.2rem 2rem 2.1rem;
            position: relative;
            z-index: 10;
            font-size: 0.98rem;
        }

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

        .footer-top {
            display: grid;
            grid-template-columns: 1.2fr 2fr;
            gap: 2.2rem;
            align-items: start;
            padding-bottom: 2.25rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }

        .footer-logo {
            font-weight: 900;
            font-size: 1.8rem;
            color: var(--text-main);
            text-decoration: none;
            border: none;
            display: inline-block;
            margin-bottom: 0.9rem;
            white-space: nowrap;
            letter-spacing: -0.5px;
        }

        .footer-logo-mark {
            width: 3.8rem;
            height: 3.8rem;
            display: inline-block;
            vertical-align: middle;
            margin-inline-end: 0.7rem;
        }

        .footer-logo span {
            color: var(--primary);
            display: inline-block;
            font-size: 2rem;
            line-height: 0;
            position: relative;
            top: 3px;
        }

        .footer-tagline {
            color: var(--text-muted);
            line-height: 1.9;
            margin: 0 0 1.2rem;
            max-width: 52ch;
        }

        .footer-authority-note {
            color: var(--gold-bright);
            line-height: 1.82;
            margin: 0 0 1.1rem;
            max-width: 56ch;
            border-inline-start: 2px solid rgba(var(--gold-rgb), 0.42);
            padding-inline-start: 0.78rem;
            font-size: 0.92rem;
        }

        .footer-social {
            display: flex;
            gap: 0.9rem;
            flex-wrap: wrap;
        }

        .footer-social a {
            font-size: 1.1rem;
            color: var(--text-muted);
            transition: 0.25s;
            width: 44px;
            height: 44px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
        }

        .footer-social a:hover {
            color: #080809;
            background: var(--primary);
            transform: translateY(-3px);
            border-color: var(--primary);
            box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.22);
        }

        .footer-links {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
        }

        .footer-col h4 {
            margin: 0 0 0.9rem;
            font-size: 1rem;
            font-weight: 900;
            color: #fff;
            letter-spacing: -0.2px;
            position: relative;
            padding-bottom: 0.6rem;
        }

        .footer-col h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            inset-inline-start: 0;
            width: 24px;
            height: 2px;
            background: var(--primary);
            opacity: 0.55;
            transition: width 0.35s ease;
        }

        .footer-col:hover h4::after { width: 42px; }

        .footer-col a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--text-muted);
            text-decoration: none;
            border: none;
            margin: 0.35rem 0;
            transition: 0.2s;
            line-height: 1.8;
        }

        .footer-col a:hover {
            color: var(--primary);
            transform: translateX(-2px);
        }
        html[dir="ltr"] .footer-col a:hover { transform: translateX(2px); }

        .footer-bottom {
            padding-top: 1.6rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.8;
        }

        .footer-bottom strong { color: var(--primary); }

        .footer-copy {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
        }

        .footer-copy-logo {
            width: 26px;
            height: 26px;
            flex: 0 0 auto;
        }

        @media (max-width: 980px) {
            .footer-top { grid-template-columns: 1fr; }
            .footer-links { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 520px) {
            .footer-links { grid-template-columns: 1fr; }
            .footer-social a { width: 42px; height: 42px; border-radius: 12px; }
        }

        /* ═══════════════════════════════════════════════
           INTERACTIVE DESIGN SYSTEM
           ═══════════════════════════════════════════════ */

        /* Lenis: disable native smooth scroll to avoid conflict */
        html { scroll-behavior: auto; }

        /* ── ANIMATED ORBS ─────────────────────────── */
        #global-orbs {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .g-orb {
            position: absolute;
            border-radius: 999px;
            filter: blur(80px);
            will-change: transform;
        }

        .g-orb-1 {
            width: clamp(280px, 45vw, 640px);
            height: clamp(280px, 45vw, 640px);
            background: radial-gradient(circle, rgba(var(--gold-rgb),0.58) 0%, transparent 70%);
            top: -12%;
            left: -6%;
            opacity: 0.14;
            animation: orbDrift1 30s ease-in-out infinite alternate;
        }

        .g-orb-2 {
            width: clamp(220px, 38vw, 540px);
            height: clamp(220px, 38vw, 540px);
            background: radial-gradient(circle, rgba(125,211,252,0.65) 0%, transparent 70%);
            top: 22%;
            right: -8%;
            opacity: 0.10;
            animation: orbDrift2 38s ease-in-out infinite alternate;
        }

        .g-orb-3 {
            width: clamp(180px, 30vw, 420px);
            height: clamp(180px, 30vw, 420px);
            background: radial-gradient(circle, rgba(110,231,183,0.55) 0%, transparent 70%);
            bottom: 10%;
            left: 30%;
            opacity: 0.08;
            animation: orbDrift3 24s ease-in-out infinite alternate;
        }

        @keyframes orbDrift1 {
            from { transform: translate(0, 0) scale(1); }
            to   { transform: translate(4%, 9%) scale(1.14); }
        }
        @keyframes orbDrift2 {
            from { transform: translate(0, 0) scale(1.04); }
            to   { transform: translate(-5%, 7%) scale(0.90); }
        }
        @keyframes orbDrift3 {
            from { transform: translate(0, 0) scale(1); }
            to   { transform: translate(6%, -7%) scale(1.10); }
        }

        /* ── HERO H1 REVEAL — single block, heavy and clean ── */
        .sb-hero h1 {
            animation: h1Drop 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
        }

        @keyframes h1Drop {
            from { opacity: 0; transform: translateY(30px); filter: blur(3px); }
            to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
        }

        /* ── SECTION H2 WORD REVEAL ────────────────── */
        .sr-word {
            display: inline-block;
            overflow: hidden;
            vertical-align: bottom;
            padding-bottom: 0.05em;
        }

        .sr-word > span {
            display: inline-block;
            transform: translateY(110%);
            transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
            /* prevent inheriting gradient color from .sb-hero h1 span rule */
            color: inherit !important;
            background: none !important;
            -webkit-background-clip: unset !important;
            background-clip: unset !important;
        }

        [data-split].sr-visible .sr-word > span {
            transform: translateY(0);
        }


        /* ── GLOWING CARD BORDER (box-shadow aurora — works with overflow:hidden) ── */
        @keyframes sbCardGlow {
            0%, 100% {
                box-shadow:
                    0 34px 100px rgba(0,0,0,.36),
                    0 0 0 1px rgba(var(--gold-rgb),.34),
                    0 0 32px rgba(var(--gold-rgb),.20),
                    inset 0 1px 0 rgba(255,255,255,.08);
            }
            50% {
                box-shadow:
                    0 34px 100px rgba(0,0,0,.36),
                    0 0 0 1px rgba(125,211,252,.34),
                    0 0 32px rgba(125,211,252,.20),
                    inset 0 1px 0 rgba(255,255,255,.08);
            }
        }

        /* ── SCROLL PROGRESS BAR ───────────────────── */
        #scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold) 50%, var(--gold-bright) 100%);
            transform-origin: left;
            transform: scaleX(0);
            z-index: 999997;
            pointer-events: none;
        }

        html[dir="rtl"] #scroll-progress { transform-origin: right; }

        /* ── NUMBER COUNTER ────────────────────────── */
        [data-count] { font-variant-numeric: tabular-nums; }

        /* ── REDUCED MOTION ────────────────────────── */
        @media (prefers-reduced-motion: reduce) {
            .g-orb          { animation: none !important; }
            .sb-hero h1     { animation: none !important; }
            .sr-word > span { transform: none !important; transition: none !important; }
        }
