:root {
            --bg: #070a12;
            --bg-soft: #0d1320;
            --surface: rgba(255, 255, 255, 0.075);
            --surface-strong: rgba(255, 255, 255, 0.12);
            --text: #f8fafc;
            --muted: #a7b0c0;
            --muted-strong: #cdd5e1;
            --accent: #2dd4bf;
            --accent-dark: #0f766e;
            --gold: #f8d477;
            --border: rgba(255, 255, 255, 0.14);
            --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
            --radius: 22px;
            --max: 1120px;
        }

        * {
            box-sizing: border-box;
        }

        html {
            min-height: 100%;
            background: var(--bg);
        }

        body {
            min-height: 100vh;
            margin: 0;
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at 18% 12%, rgba(45, 212, 191, 0.18), transparent 30%),
                radial-gradient(circle at 82% 18%, rgba(248, 212, 119, 0.12), transparent 28%),
                linear-gradient(145deg, #05070d 0%, #0b1020 48%, #060910 100%);
            line-height: 1.5;
            overflow-x: hidden;
        }

        body[dir="rtl"],
        [dir="rtl"] {
            font-family: Tahoma, Arial, sans-serif;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .page {
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 24px 18px;
        }

        .shell {
            width: min(var(--max), 100%);
            margin: 0 auto;
        }

        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 22px;
            animation: fade-up 560ms ease both;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            font-weight: 800;
            letter-spacing: 0;
        }

        .brand-mark {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: linear-gradient(145deg, var(--accent), var(--accent-dark));
            color: #03120f;
            box-shadow: 0 14px 34px rgba(45, 212, 191, 0.26);
            font-size: 22px;
            font-weight: 900;
        }

        .language-switch {
            display: inline-flex;
            align-items: center;
            padding: 4px;
            border: 1px solid var(--border);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(16px);
        }

        .language-switch a {
            min-width: 44px;
            border: 0;
            border-radius: 999px;
            padding: 9px 12px;
            color: var(--muted-strong);
            background: transparent;
            font: inherit;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
        }

        .language-switch a[aria-current="page"] {
            color: #03120f;
            background: var(--accent);
        }

        .hero-card {
            position: relative;
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
            padding: 24px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
            box-shadow: var(--shadow);
            overflow: hidden;
            backdrop-filter: blur(28px);
            animation: fade-up 700ms 80ms ease both;
        }

        .hero-card::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 32%),
                linear-gradient(180deg, rgba(45, 212, 191, 0.12), transparent 44%);
            opacity: 0.8;
        }

        .hero-copy,
        .download-panel {
            position: relative;
            z-index: 1;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 18px;
            padding: 8px 12px;
            border: 1px solid rgba(45, 212, 191, 0.34);
            border-radius: 999px;
            color: #bffbf2;
            background: rgba(45, 212, 191, 0.08);
            font-size: 13px;
            font-weight: 800;
        }

        h1 {
            max-width: 680px;
            margin: 0;
            font-size: clamp(42px, 12vw, 82px);
            line-height: 0.96;
            letter-spacing: 0;
        }

        .subtitle {
            max-width: 610px;
            margin: 20px 0 0;
            color: var(--muted-strong);
            font-size: clamp(18px, 4vw, 23px);
        }

        .fallback {
            margin: 18px 0 0;
            color: var(--muted);
            font-size: 15px;
        }

        .store-row {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin-top: 28px;
        }

        .store-button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            min-height: 62px;
            padding: 13px 18px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 16px;
            background: #f8fafc;
            color: #070a12;
            font-weight: 900;
            box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
            transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
        }

        .store-button:hover,
        .store-button:focus-visible {
            transform: translateY(-2px);
            border-color: rgba(45, 212, 191, 0.72);
            background: #ffffff;
            outline: 0;
        }

        .store-button svg {
            width: 28px;
            height: 28px;
            flex: 0 0 auto;
        }

        .store-button span {
            display: block;
            color: #526072;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        .store-button strong {
            display: block;
            margin-top: 1px;
            font-size: 18px;
            line-height: 1.1;
        }

        .download-panel {
            display: grid;
            gap: 16px;
        }

        .qr-card,
        .promise-card {
            border: 1px solid var(--border);
            border-radius: 20px;
            background: rgba(4, 8, 16, 0.45);
        }

        .qr-card {
            padding: 18px;
        }

        .qr-wrap {
            display: grid;
            place-items: center;
            min-height: 250px;
            border-radius: 18px;
            background: #ffffff;
        }

        #qrcode {
            width: 210px;
            height: 210px;
            display: grid;
            place-items: center;
        }

        #qrcode img,
        #qrcode canvas {
            width: 210px;
            height: 210px;
        }

        .qr-text {
            margin: 16px 4px 0;
            color: var(--muted);
            text-align: center;
            font-size: 14px;
        }

        .promise-card {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            padding: 18px;
        }

        .promise-item {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            color: var(--muted-strong);
            font-size: 14px;
        }

        .check {
            width: 24px;
            height: 24px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            border-radius: 50%;
            background: rgba(45, 212, 191, 0.14);
            color: var(--accent);
            font-weight: 900;
        }

        .mobile-loader {
            position: fixed;
            inset: 0;
            z-index: 20;
            display: none;
            place-items: center;
            padding: 24px;
            background:
                radial-gradient(circle at 50% 30%, rgba(45, 212, 191, 0.18), transparent 30%),
                #070a12;
            text-align: center;
        }

        .mobile-loader.is-visible {
            display: grid;
        }

        .loader-card {
            display: grid;
            justify-items: center;
            gap: 18px;
            animation: fade-up 420ms ease both;
        }

        .spinner {
            width: 44px;
            height: 44px;
            border: 3px solid rgba(255, 255, 255, 0.16);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 900ms linear infinite;
        }

        .loader-card p {
            margin: 0;
            color: var(--muted-strong);
            font-size: 18px;
            font-weight: 700;
        }

        .page-footer {
            margin-top: 20px;
            color: rgba(205, 213, 225, 0.72);
            text-align: center;
            font-size: 13px;
            animation: fade-up 760ms 140ms ease both;
        }

        .page-footer a {
            color: rgba(205, 213, 225, 0.86);
            font-weight: 700;
        }

        [data-lang="ar"] .hero-copy,
        [data-lang="ar"] .download-panel {
            text-align: right;
        }

        [data-lang="ar"] .promise-item {
            flex-direction: row-reverse;
            text-align: right;
        }

        [data-lang="ar"] .brand {
            direction: ltr;
        }

        @media (min-width: 560px) {
            .page {
                padding: 32px 24px;
            }

            .hero-card {
                padding: 34px;
            }

            .store-row {
                grid-template-columns: repeat(2, minmax(0, 210px));
            }
        }

        @media (min-width: 940px) {
            .hero-card {
                grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.58fr);
                gap: 38px;
                align-items: center;
                min-height: 640px;
                padding: 52px;
            }

            .store-row {
                justify-content: start;
            }

            .qr-wrap {
                min-height: 320px;
            }

            #qrcode,
            #qrcode img,
            #qrcode canvas {
                width: 248px;
                height: 248px;
            }
        }

        @keyframes fade-up {
            from {
                opacity: 0;
                transform: translateY(16px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                scroll-behavior: auto !important;
                animation-duration: 1ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 1ms !important;
            }
        }
.language-switch a { text-decoration: none; }
