/* =====================================================================
   Exclusive Markets — UI layer v3
   1. Light / dark theme for header, mega menu, drawer and heroes
   2. Code-drawn 3D scenes
   3. Inner-page sections
   4. Scroll motion
   5. Floating support chat + back to top
   6. Footer certifications
   7. Responsive
   ===================================================================== */
:root { interpolate-size: allow-keywords; }

/* ================= 1. THEME ================= */
.header { transition: background-color .3s ease, box-shadow .3s ease, color .3s ease; }
.header.is-scrolled { box-shadow: 0 10px 30px #0004; backdrop-filter: blur(14px); }
:root[data-theme="dark"] .header.is-scrolled { background: #05090ce6; }
:root[data-theme="light"] .header.is-scrolled { background: #f7fcfee8; box-shadow: 0 10px 30px #0a3a5a14; border-bottom: 1px solid #0a86cf14; }
:root[data-theme="light"] .desktop-nav > a.is-current, :root[data-theme="light"] .nav-group.mega.is-current > summary { color: #0a78b8; }
:root[data-theme="light"] .header .nav-actions .menu-toggle { border-color: #b9d6e4; color: #0f2a3b; }
:root[data-theme="light"] .header .locale-toggle { color: #0f2a3b; }

/* mega menu */
:root[data-theme="light"] .mega-panel::before { border-color: #0a86cf1f; background: linear-gradient(180deg, #fffffffa, #f3f9fcfa); box-shadow: 0 40px 80px #0a3a5a24; }
:root[data-theme="light"] .mega-col h3 { color: #6b8794; }
:root[data-theme="light"] .mega-link { color: #0f2a3b; }
:root[data-theme="light"] .mega-link:hover, :root[data-theme="light"] .mega-link.is-current { background: #0a86cf0f; }
:root[data-theme="light"] .mega-link small { color: #5a7482; }
:root[data-theme="light"] .mega-link .mega-ico { border-color: #0a86cf2e; background: linear-gradient(150deg, #e2f3fb, #fff); color: #0a86cf; box-shadow: 0 6px 14px #0a86cf14; }
.mega-link .mega-ico { transition: transform .35s var(--ease), background-color .3s; }
.mega-link:hover .mega-ico { transform: translateY(-2px) rotate(-4deg); }

/* mobile drawer */
:root[data-theme="light"] .mobile-dialog { color: #0f2a3b; background: #ffffff; border-color: #d5e8f1; }
:root[data-theme="light"] .mobile-dialog .drawer-head, :root[data-theme="light"] .mobile-nav > * { border-color: #e1eef4; }
:root[data-theme="light"] .mobile-nav details > a { color: #4f6b7a; }
:root[data-theme="light"] .mobile-nav .icon, :root[data-theme="light"] .mobile-nav details > a .icon { color: #0a86cf; }
:root[data-theme="light"] .mobile-nav details[open] > summary, :root[data-theme="light"] .mobile-nav a.is-current, :root[data-theme="light"] .mobile-nav a:hover { color: #0a78b8; }
:root[data-theme="light"] .mobile-dialog .brand-logo-dark { content: url("assets/exclusive-logo-dark.png"); }
:root[data-theme="light"] .mobile-dialog .close-menu { color: #0f2a3b; border-color: #c9dfe9; }
:root[data-theme="light"] .mobile-dialog .em-btn-ghost { color: #0f2a3b; }

/* home hero, light */
:root[data-theme="light"] .hero.em-hero-wrap, :root[data-theme="light"] .em-hero { background: #eef7fc; color: #0f2a3b; }
:root[data-theme="light"] .em-hero::before, :root[data-theme="light"] .page-hero::before { background: radial-gradient(55% 70% at 78% 42%, #2fb1ea2e, transparent 70%), radial-gradient(40% 50% at 8% 95%, #7fcbf233, transparent 70%), linear-gradient(180deg, #f7fcfe, #e6f2f9); }
:root[data-theme="light"] .em-hero-grid { background-image: linear-gradient(#0a86cf10 1px, transparent 1px), linear-gradient(90deg, #0a86cf10 1px, transparent 1px); }
:root[data-theme="light"] :is(.em-slide h1, .em-slide h2.em-slide-title, .page-hero h1) { color: #0b2232; }
:root[data-theme="light"] :is(.em-slide-title, .page-hero h1) .em-accent { background-image: linear-gradient(95deg, #2fb1ea, #0a86cf 55%, #075f96); }
:root[data-theme="light"] :is(.em-slide-lead, .page-hero-lead) { color: #48636f; }
:root[data-theme="light"] .em-slide-tag { color: #0a78b8; background: #0a86cf10; border-color: #0a86cf33; }
:root[data-theme="light"] .em-slide-points li { color: #3b5664; }
:root[data-theme="light"] .em-slide-points strong, :root[data-theme="light"] .em-counter b { color: #0b2232; }
:root[data-theme="light"] .em-slide-risk { color: #6a8593; }
:root[data-theme="light"] .em-tab { color: #5f7a88; }
:root[data-theme="light"] .em-tab small { color: #8aa0ab; }
:root[data-theme="light"] .em-tab::before { background: #0a86cf26; }
:root[data-theme="light"] .em-tab:hover, :root[data-theme="light"] .em-tab[aria-selected="true"] { color: #0b2232; }
:root[data-theme="light"] .em-tab[aria-selected="true"] small { color: #0a86cf; }
:root[data-theme="light"] :is(.em-arrow, .em-pause) { color: #0b2232; border-color: #0a86cf33; background: #ffffffa8; }
:root[data-theme="light"] .em-hero-wrap .hero-awards { border-color: #0a86cf1a; }
:root[data-theme="light"] .page-hero { color: #0f2a3b; background: #eef7fc; }
:root[data-theme="light"] .crumbs { color: #6a8593; }
:root[data-theme="light"] .crumbs li + li::before { color: #a9c0cb; }
.em-hero, .page-hero, .em-hero::before, .page-hero::before { transition: background-color .4s ease, color .4s ease; }

/* scene inside the home slider */
.em-slide-art.em-art-scene { aspect-ratio: auto; display: block; width: 100%; }
.em-slide-art.em-art-scene::before { display: none; }
.em-slide:not(.is-active) .r3d * { animation-play-state: paused !important; }

/* ================= 2. 3D RENDERS ================= */
/* Real 3D renders (site-src/render) shown as images; labels float above them. */
.r3d { --chip-bg: #0d1b25e6; --chip-line: #7ccaee3d; --chip-tx: #eaf6fb; --chip-mu: #8fb3c2; --chip-sh: #0009;
  position: relative; width: 100%; max-width: 600px; margin-inline: auto; aspect-ratio: 1200 / 1040; container-type: inline-size; isolation: isolate; pointer-events: none; user-select: none; }
:root[data-theme="light"] .r3d { --chip-bg: #ffffffeb; --chip-line: #0a86cf2e; --chip-tx: #0f2a3b; --chip-mu: #55707e; --chip-sh: #0a3a5a24; }
.r3d-glow { position: absolute; inset: 14% 12% 20%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, #0a86cf5c, #0a86cf00); animation: r3d-breathe 8s ease-in-out infinite; }
:root[data-theme="light"] .r3d-glow { background: radial-gradient(closest-side, #2fb1ea3d, #2fb1ea00); }
.r3d-obj { position: absolute; inset: 0; display: block; transition: translate .7s var(--ease); }
.r3d-img { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 75%; animation: r3d-float 9s ease-in-out infinite; }
.r3d-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border: 1px solid var(--chip-line); border-radius: 14px; background: var(--chip-bg); box-shadow: 0 18px 40px var(--chip-sh); color: var(--chip-tx); white-space: nowrap; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: r3d-bob 7s ease-in-out infinite; transition: translate .7s var(--ease); }
.r3d-chip-a { top: 6%; inset-inline-start: 0; }
.r3d-chip-b { bottom: 8%; inset-inline-end: 0; animation-delay: -3.5s; }
.r3d-chip > i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--em-grad); box-shadow: inset 0 1px #ffffff80; }
.r3d-chip > i svg { width: 18px; height: 18px; fill: none; stroke: #04131b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.r3d-chip small { display: block; color: var(--chip-mu); font-size: 11px; font-weight: 700; line-height: 1.3; }
.r3d-chip b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; unicode-bidi: isolate; }
@container (max-width: 420px) {
  .r3d-chip { gap: 7px; padding: 6px 10px 6px 6px; border-radius: 11px; }
  .r3d-chip > i { width: 26px; height: 26px; border-radius: 8px; }
  .r3d-chip > i svg { width: 14px; height: 14px; }
  .r3d-chip small { font-size: 9.5px; }
  .r3d-chip b { font-size: 12px; }
}
@keyframes r3d-float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -1.8%, 0) rotate(-.6deg); } }
@keyframes r3d-bob { 50% { transform: translateY(-8px); } }
@keyframes r3d-breathe { 50% { opacity: .6; transform: scale(.94); } }
/* older image rules on these containers must not resize or tint the renders */
:is(.page-hero-art, .hx-stack-art, .hx-tab-art, .xsplit-media, .em-slide-art) .r3d .r3d-img { position: static; width: 100%; height: 100%; max-width: none; max-height: none; filter: none; }
.hx-stack-card:nth-child(n) .hx-stack-art .r3d-img { filter: none; }
.page-hero-art .r3d .r3d-img, .hx-stack-art .r3d .r3d-img { animation: r3d-float 9s ease-in-out infinite; }
/* split / tab / card art */
.xsplit-media .r3d, .hx-tab-art .r3d { aspect-ratio: 1200 / 1000; max-width: 560px; }
.hx-stack-art .r3d { aspect-ratio: 1000 / 900; max-width: 380px; }
.hx-stack-art .r3d-chip { display: none; }
/* renders arrive with the section: a short rise and settle */
.motion-ready .pg-reveal:not(.in-view) .r3d-obj { opacity: 0; transform: translateY(40px) scale(.94); }
.motion-ready .pg-reveal .r3d-obj { transition: opacity 1s var(--ease) .15s, transform 1.2s var(--ease) .15s, translate .7s var(--ease); }
/* offscreen renders stop animating */
.r3d:not(.is-live) *, .r3d:not(.is-live) { animation-play-state: paused !important; }

/* ================= 3. INNER PAGES ================= */
.xh { padding-block: calc(var(--em-nav-h) + clamp(40px, 6vw, 80px)) clamp(50px, 6vw, 84px); }
.xh .page-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.xh-art { min-height: 0; }
.xh-art::before { display: none; }
.xh-beam { position: absolute; z-index: -1; top: -30%; right: 12%; width: 46%; height: 160%; background: linear-gradient(100deg, transparent 42%, #2fb1ea17 50%, transparent 58%); transform: rotate(14deg); animation: xh-beam 10s ease-in-out infinite; pointer-events: none; }
@keyframes xh-beam { 50% { transform: rotate(8deg) translateX(-8%); opacity: .5; } }
.xh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: clamp(34px, 4vw, 56px); }
.xh-stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid #8fd9f324; border-radius: 18px; background: linear-gradient(150deg, #0d1a23cc, #070d12cc); backdrop-filter: blur(8px); transition: transform .4s var(--ease), border-color .3s; }
.xh-stat:hover { transform: translateY(-4px); border-color: #42b8e866; }
.xh-stat-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: linear-gradient(150deg, #2fb1ea, #0a86cf); box-shadow: 0 10px 24px #0a86cf4d, inset 0 1px #ffffff55; }
.xh-stat-ico .icon { width: 21px; height: 21px; }
.xh-stat strong { display: block; color: #fff; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; direction: ltr; unicode-bidi: isolate; text-align: start; }
.xh-stat small { display: block; margin-top: 2px; color: #8fa9b5; font-size: 13px; font-weight: 600; }
:root[data-theme="light"] .xh-stat { border-color: #0a86cf24; background: #ffffffcc; box-shadow: 0 12px 30px #0a3a5a12; }
:root[data-theme="light"] .xh-stat strong { color: #0b2232; }
:root[data-theme="light"] .xh-stat small { color: #55707e; }

.xs { overflow: clip; }
.xs.xs-alt { background: var(--hx-bg-2); border-block: 1px solid var(--hx-line); }
.xs-head { justify-items: start; text-align: start; margin-inline: 0; max-width: 780px; }
.xs .hx-head + * { position: relative; z-index: 1; }

.xg-grid, .xl-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; }
.xc { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; border: 1px solid var(--hx-line); border-radius: 24px; color: var(--hx-text); background: linear-gradient(170deg, var(--hx-card-2), var(--hx-card)); transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.xc:hover { border-color: #42b8e866; box-shadow: 0 28px 56px #0a86cf24; }
.xc .hx-cube { width: 74px; height: 74px; margin: -4px 0 6px -6px; }
[dir="rtl"] .xc .hx-cube { margin: -4px -6px 6px 0; }
.xc .hx-cube-face { width: 62px; height: 62px; border-radius: 19px; }
.xc .hx-cube-face .icon { width: 28px; height: 28px; }
.xc:hover .hx-cube-face { transform: rotateX(0) rotateY(0) translateY(-6px) scale(1.05); }
.xc h3 { color: var(--hx-text); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.xc p { color: var(--hx-mute); font-size: 14.5px; line-height: 1.7; }
.xc .hx-link { margin-top: auto; padding-top: 8px; }
.xl-img { display: grid; place-items: center; width: 96px; height: 86px; margin-bottom: 4px; }
.xl-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px #0008); transition: transform .5s var(--ease); }
.xl:hover .xl-img img { transform: translateY(-8px) scale(1.06) rotate(-3deg); }

.xsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.xsplit.reverse > :first-child { order: 2; }
.xsplit-media.is-img { display: grid; place-items: center; min-height: 360px; padding: 30px; border: 1px solid var(--hx-line); border-radius: 28px; background: radial-gradient(circle at 50% 55%, #0a86cf40, transparent 60%), linear-gradient(160deg, #0b1922, #05090c); }
.xsplit-media.is-img img { max-height: 340px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px #000a); animation: hx-float 8s ease-in-out infinite; }

.xsteps { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.xsteps::before { content: ""; position: absolute; top: 37px; inset-inline: 8% 8%; height: 2px; background: linear-gradient(90deg, transparent, #42b8e866 12%, #42b8e866 88%, transparent); background-size: 200% 100%; animation: xs-flow 4s linear infinite; }
@keyframes xs-flow { to { background-position: -200% 0; } }
.xsteps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 18px 28px; text-align: center; }
.xsteps-n { position: relative; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 12px; border-radius: 50%; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; background: radial-gradient(circle at 34% 28%, #c9eefc, #2fb1ea 40%, #0a86cf 72%, #075f96); box-shadow: 0 0 0 8px var(--hx-bg), 0 0 0 9px #42b8e83d, 0 18px 30px #0a86cf4d, inset 0 2px 1px #ffffff99, inset 0 -6px 12px #04324f80; transition: transform .5s var(--ease); }
.xs-alt .xsteps-n { box-shadow: 0 0 0 8px var(--hx-bg-2), 0 0 0 9px #42b8e83d, 0 18px 30px #0a86cf4d, inset 0 2px 1px #ffffff99, inset 0 -6px 12px #04324f80; }
.xsteps li:hover .xsteps-n { transform: translateY(-6px) rotateY(180deg); }
.xsteps h3 { color: var(--hx-text); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.xsteps p { max-width: 320px; color: var(--hx-mute); font-size: 14.5px; line-height: 1.7; }

.xtable { overflow-x: auto; border: 1px solid var(--hx-line); border-radius: 24px; background: linear-gradient(170deg, var(--hx-card-2), var(--hx-card)); box-shadow: 0 24px 50px #0003; }
.xtable .spec { min-width: 560px; color: var(--hx-text); }
.xtable .spec th, .xtable .spec td { padding: 17px 22px; border-color: var(--hx-line); }
.xtable .spec thead th { color: var(--hx-accent-2); background: #0a86cf14; }
:root[data-theme="light"] .xtable .spec thead th { color: #0a78b8; }
.xtable .spec tbody tr:hover { background: #42b8e80d; }
.xtable .cell-label { display: none; }
.spec-note { color: var(--hx-mute); }
.spec-note a { color: var(--hx-accent-2); }

.xfaq { gap: 12px; }
.xfaq details { border-color: var(--hx-line); border-radius: 18px; background: var(--hx-card); transition: border-color .3s, box-shadow .3s; }
.xfaq details[open] { border-color: #42b8e866; box-shadow: 0 18px 40px #0a86cf1a; }
.xfaq summary { color: var(--hx-text); cursor: pointer; list-style: none; }
.xfaq summary::-webkit-details-marker { display: none; }
.xfaq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.xfaq details[open]::details-content { block-size: auto; }
.xfaq-a p { padding: 0 22px 22px; color: var(--hx-mute); line-height: 1.75; }

.chips li { color: var(--hx-text); border-color: var(--hx-line); background: var(--hx-card); transition: transform .3s var(--ease), border-color .3s; }
.chips li:hover { transform: translateY(-3px); border-color: #42b8e866; }

.award-tile { border-color: var(--hx-line); background: radial-gradient(circle at 50% 30%, #2fb1ea1f, transparent 65%), var(--hx-card); color: var(--hx-text); }
:root[data-theme="light"] .award-tile img { filter: brightness(.6); }
.award-tile small { color: var(--hx-mute); }
.glossary div, .glossary-search, .post-card, .link-card { border-color: var(--hx-line); background: var(--hx-card); }
.glossary dt { color: var(--hx-accent-2); }
:root[data-theme="light"] .glossary dt { color: #0a78b8; }
.glossary dd, .post-card p { color: var(--hx-mute); }
.glossary-search input { color: var(--hx-text); }
.post-card b { color: var(--hx-text); }
.widget-box { border-color: var(--hx-line); border-radius: 24px; }
.risk-strip { border-color: var(--hx-line); color: var(--hx-mute); }

.xs-final-coins > span { position: absolute; z-index: -1; display: block; width: clamp(76px, 10vw, 150px); aspect-ratio: 1; transition: translate .7s var(--ease); }
.xs-final-coins .c2 { width: clamp(60px, 8vw, 118px); }
.xs-final-coins .c1 { top: 14%; inset-inline-start: 6%; }
.xs-final-coins .c2 { bottom: 12%; inset-inline-end: 6%; }
.xs-coin { display: block; width: 100%; height: 100%; object-fit: contain; animation: r3d-float 8s ease-in-out infinite; }
.xs-final-coins .c2 .xs-coin { animation-delay: -4s; }

/* ================= 4. SCROLL MOTION ================= */
.motion-ready .hx[data-motion] :is(.pg-reveal:not(.mo-group), .mo-group > *) { opacity: 0; transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease), clip-path 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.motion-ready .hx[data-motion] .pg-reveal.mo-group { opacity: 1; transform: none; filter: none; }
.motion-ready .hx[data-motion="rise"] :is(.pg-reveal:not(.mo-group), .mo-group > *) { transform: perspective(1200px) translateY(50px) rotateX(10deg); transform-origin: 50% 100%; }
.motion-ready .hx[data-motion="zoom"] :is(.pg-reveal:not(.mo-group), .mo-group > *) { transform: translateY(30px) scale(.9); }
.motion-ready .hx[data-motion="slide"] :is(.pg-reveal:not(.mo-group), .mo-group > *) { transform: translateX(-70px); }
[dir="rtl"].motion-ready .hx[data-motion="slide"] :is(.pg-reveal:not(.mo-group), .mo-group > *) { transform: translateX(70px); }
.motion-ready .hx[data-motion="flip"] :is(.pg-reveal:not(.mo-group), .mo-group > *) { transform: perspective(1000px) rotateY(-18deg) translateX(-30px); transform-origin: 0 50%; }
[dir="rtl"].motion-ready .hx[data-motion="flip"] :is(.pg-reveal:not(.mo-group), .mo-group > *) { transform: perspective(1000px) rotateY(18deg) translateX(30px); transform-origin: 100% 50%; }
.motion-ready .hx[data-motion="blur"] :is(.pg-reveal:not(.mo-group), .mo-group > *) { filter: blur(14px); transform: translateY(24px) scale(1.03); }
.motion-ready .hx[data-motion="swing"] :is(.pg-reveal:not(.mo-group), .mo-group > *) { transform: perspective(1200px) rotateX(-16deg) translateY(-30px); transform-origin: 50% 0; }
.motion-ready .hx[data-motion="clip"] :is(.pg-reveal:not(.mo-group), .mo-group > *) { clip-path: inset(0 0 100% 0 round 24px); transform: translateY(40px); }
.motion-ready .hx[data-motion] :is(.pg-reveal.in-view:not(.mo-group), .mo-group.in-view > *) { opacity: 1; transform: none; filter: none; clip-path: inset(-20% -20% -20% -20%); }
/* headline mask */
.motion-ready .hx[data-motion] .hx-head.pg-reveal h2, .motion-ready .hx[data-motion] .hx-head.pg-reveal .hx-title-start { clip-path: inset(-20% -5% 100% -5%); transform: translateY(35%); transition: clip-path 1.1s var(--ease) .12s, transform 1.1s var(--ease) .12s; }
.motion-ready .hx[data-motion] .hx-head.pg-reveal.in-view h2, .motion-ready .hx[data-motion] .hx-head.pg-reveal.in-view .hx-title-start { clip-path: inset(-20% -5% -30% -5%); transform: none; }
.motion-ready .hx[data-motion] .hx-head.pg-reveal .hx-pill { opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.motion-ready .hx[data-motion] .hx-head.pg-reveal.in-view .hx-pill { opacity: 1; transform: none; }
/* scroll-linked depth */
.hx .hx-glow { translate: 0 calc(var(--sp, 0) * 80px); transition: translate .2s linear; }
:is(.xsplit-media, .hx-tab-art, .hx-stack-art, .xh-art) > .r3d { translate: 0 calc(var(--sp, 0) * -28px); }
/* progress line on section top */
.hx[data-motion]::before { content: ""; position: absolute; top: 0; left: 50%; z-index: 2; width: min(1180px, 90%); height: 1px; translate: -50% 0; background: linear-gradient(90deg, transparent, #42b8e866, transparent); transform: scaleX(var(--seen, 0)); transition: transform 1.4s var(--ease); pointer-events: none; }
.hx.is-seen::before { --seen: 1; }
.hx-final[data-motion]::before, .hx-stats[data-motion]::before { display: none; }

/* ================= 5. FLOATING WIDGETS ================= */
.xw-top, .xw-chat { position: fixed; z-index: 70; bottom: max(18px, env(safe-area-inset-bottom)); }
.xw-top { left: clamp(14px, 2vw, 28px); display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #42b8e84d; border-radius: 50%; color: #e8f7fd; background: #0b151dd9; box-shadow: 0 14px 34px #0007, inset 0 1px #ffffff17; backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transform: translateY(24px) scale(.8); transition: opacity .35s ease, transform .5s var(--ease), visibility 0s linear .5s, background-color .25s, color .25s; }
.xw-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .5s var(--ease), visibility 0s, background-color .25s, color .25s; }
.xw-top:hover { color: #04131b; background: var(--em-grad); transform: translateY(-4px); }
.xw-top:focus-visible, .xw-btn:focus-visible { outline: 3px solid #7fcbf2; outline-offset: 3px; }
.xw-up { position: relative; width: 20px; height: 20px; rotate: -90deg; stroke-width: 2.2; transition: translate .3s var(--ease); }
.xw-top:hover .xw-up { translate: 0 -2px; }
.xw-ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); rotate: -90deg; }
.xw-ring circle { fill: none; stroke: #42b8e81f; stroke-width: 2.5; }
.xw-ring .xw-ring-bar { stroke: #42b8e8; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: calc(132 - 132 * var(--p, 0)); transition: stroke-dashoffset .15s linear; }
:root[data-theme="light"] .xw-top { color: #0a4f78; border-color: #0a86cf33; background: #ffffffe0; box-shadow: 0 14px 34px #0a3a5a1f; }
:root[data-theme="light"] .xw-top:hover { color: #04131b; }

.xw-chat { right: clamp(14px, 2vw, 28px); }
.xw-btn { position: relative; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #a9e2f8 0%, #2fb1ea 36%, #0a86cf 72%, #075f96); box-shadow: 0 16px 36px #0a86cf66, inset 0 2px 1px #ffffff8c, inset 0 -6px 12px #04324f73; cursor: pointer; isolation: isolate; transition: transform .4s var(--ease), box-shadow .3s; }
.xw-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 20px 44px #0a86cf80, inset 0 2px 1px #ffffff8c, inset 0 -6px 12px #04324f73; }
.xw-btn::after { content: ""; position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border: 2.5px solid #05090c; border-radius: 50%; background: #a9e2f8; box-shadow: 0 0 10px #7fcbf2; }
:root[data-theme="light"] .xw-btn::after { border-color: #fff; }
.xw-pulse { position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: #2fb1ea; animation: xw-pulse 2.8s ease-out infinite; }
@keyframes xw-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.75); opacity: 0; } }
.xw-ico { position: absolute; display: grid; place-items: center; width: 28px; height: 28px; transition: transform .45s var(--ease), opacity .3s; }
.xw-ico .icon { width: 28px; height: 28px; stroke-width: 2; }
.xw-ico-chat i { position: absolute; top: 13px; width: 3.5px; height: 3.5px; border-radius: 50%; background: #fff; animation: sc-type 1.3s ease-in-out infinite; }
.xw-ico-chat i:nth-of-type(1) { left: 8.5px; } .xw-ico-chat i:nth-of-type(2) { left: 13px; animation-delay: .15s; } .xw-ico-chat i:nth-of-type(3) { left: 17.5px; animation-delay: .3s; }
.xw-ico-x { opacity: 0; transform: rotate(-90deg) scale(.5); }
.xw-chat.is-open .xw-ico-chat { opacity: 0; transform: rotate(90deg) scale(.5); }
.xw-chat.is-open .xw-ico-x { opacity: 1; transform: none; }
.xw-chat.is-open .xw-pulse, .xw-chat.is-open .xw-btn::after { display: none; }
.xw-panel { position: absolute; right: 0; bottom: 76px; display: flex; flex-direction: column; width: min(370px, calc(100vw - 28px)); max-height: min(560px, calc(100dvh - 120px)); overflow: hidden; border: 1px solid #42b8e83d; border-radius: 22px; color: #eaf6fb; background: #0a131a; box-shadow: 0 30px 80px #000c; transform-origin: 100% 100%; animation: xw-in .45s var(--ease) both; }
.xw-panel[hidden] { display: none; }
@keyframes xw-in { from { opacity: 0; transform: translateY(16px) scale(.92); } }
.xw-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px; overflow: hidden; background: linear-gradient(135deg, #0a86cf, #075f96 60%, #053d61); }
.xw-head::after { content: ""; position: absolute; top: -60%; right: -10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffffff33, transparent 65%); pointer-events: none; }
.xw-avatar { position: relative; display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid #ffffff40; border-radius: 15px; background: #ffffff24; }
.xw-avatar .icon { width: 23px; height: 23px; }
.xw-avatar i { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border: 2px solid #0a6aa6; border-radius: 50%; background: #a9e2f8; }
.xw-head b { display: block; color: #fff; font-size: 15px; }
.xw-head small { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: #d8eef9; font-size: 12px; }
.xw-head small i { width: 7px; height: 7px; border-radius: 50%; background: #a9e2f8; animation: sc-led 1.8s ease-in-out infinite; }
.xw-x { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-inline-start: auto; border: 0; border-radius: 11px; color: #fff; background: #ffffff1f; cursor: pointer; }
.xw-x:hover { background: #ffffff33; }
.xw-x .icon { width: 18px; height: 18px; }
.xw-body { display: grid; gap: 10px; padding: 18px; overflow: auto; }
.xw-msg { justify-self: start; max-width: 88%; padding: 11px 14px; border-radius: 16px; border-start-start-radius: 4px; background: #14232e; font-size: 14px; line-height: 1.55; animation: xw-msg .5s var(--ease) .1s both; }
.xw-msg-2 { animation-delay: .35s; }
@keyframes xw-msg { from { opacity: 0; transform: translateY(8px); } }
.xw-actions { display: grid; gap: 8px; margin-top: 6px; animation: xw-msg .5s var(--ease) .55s both; }
.xw-actions a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid #1d3140; border-radius: 15px; background: #0e1a23; transition: border-color .25s, background-color .25s, transform .3s var(--ease); }
.xw-actions a:hover { border-color: #42b8e8; background: #102331; transform: translateY(-2px); }
.xw-actions a > .icon:first-child { width: 40px; height: 40px; padding: 10px; border-radius: 12px; color: #04131b; background: var(--em-grad); }
.xw-actions b { display: block; font-size: 14px; }
.xw-actions small { display: block; color: #8ea3ae; font-size: 12px; overflow-wrap: anywhere; }
.xw-go { width: 16px; height: 16px; color: #8ea3ae; }
:lang(ar) .xw-go { scale: -1 1; }
.xw-foot { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; border-top: 1px solid #16262f; color: #7f97a3; font-size: 12px; }
.xw-foot .icon { width: 14px; height: 14px; }
:root[data-theme="light"] .xw-panel { color: #0f2a3b; background: #ffffff; border-color: #0a86cf2e; box-shadow: 0 30px 80px #0a3a5a33; }
:root[data-theme="light"] .xw-msg { background: #eef6fb; }
:root[data-theme="light"] .xw-actions a { border-color: #d5e8f1; background: #f6fbfe; }
:root[data-theme="light"] .xw-actions a:hover { border-color: #2fb1ea; background: #eef8fd; }
:root[data-theme="light"] .xw-foot { border-color: #e3eff5; }

/* ================= 6. FOOTER CERTIFICATIONS ================= */
.xf-certs-title { margin: 24px 0 12px !important; color: #6f8895 !important; font-size: 11.5px !important; letter-spacing: .14em !important; text-transform: uppercase; }
:lang(ar) .xf-certs-title { letter-spacing: 0 !important; font-size: 13px !important; }
.xf-certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 380px; margin: 0; padding: 0; list-style: none; }
.xf-cert { display: grid; justify-items: center; gap: 7px; padding: 12px 6px 10px; border: 1px solid #16262f; border-radius: 14px; background: #08111799; text-align: center; transition: transform .35s var(--ease), border-color .3s; }
.xf-cert:hover { transform: translateY(-3px); border-color: #42b8e84d; }
.xf-iso { width: 36px; height: auto; filter: drop-shadow(0 6px 10px #0007); }
.xf-cert b { display: block; color: #dbe9f0; font-size: 10.5px; font-weight: 800; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.xf-cert small { display: block; margin-top: 2px; color: #7f97a3; font-size: 10px; line-height: 1.35; }

/* ================= 7. RESPONSIVE ================= */
html, body { overflow-x: clip; }
@media (max-width: 1100px) {
  .xg-grid, .xl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .xh .page-hero-inner { grid-template-columns: 1fr; }
  .xh-art { width: min(100%, 460px); margin: 6px auto -10px; }
  .xsplit { grid-template-columns: 1fr; }
  .xsplit.reverse > :first-child { order: 0; }
  .xsplit-media .r3d { max-width: 460px; }
  .xsteps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .xsteps::before { top: 0; bottom: 0; inset-inline: 36px auto; width: 2px; height: auto; background: linear-gradient(180deg, transparent, #42b8e866 8%, #42b8e866 92%, transparent); background-size: 100% 200%; animation: none; }
  .xsteps li { display: grid; grid-template-columns: 74px 1fr; column-gap: 18px; align-items: start; padding: 0 0 28px; text-align: start; }
  .xsteps-n { grid-row: span 2; margin: 0; }
  .xsteps h3 { padding-top: 12px; }
  .em-slide-art.em-art-scene { width: min(100%, 460px); margin: 0 auto; }
}
@media (max-width: 760px) {
  .xh-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .xh-stat { padding: 14px; gap: 10px; }
  .xh-stat-ico { width: 36px; height: 36px; border-radius: 11px; }
  .xh-stat-ico .icon { width: 17px; height: 17px; }
  .xh-stat small { font-size: 12px; }
  /* tables become cards */
  .xtable { overflow: visible; border: 0; background: none; box-shadow: none; }
  .xtable .spec { min-width: 0; }
  .xtable .spec thead { display: none; }
  .xtable .spec, .xtable .spec tbody, .xtable .spec tr, .xtable .spec th, .xtable .spec td { display: block; width: 100%; }
  .xtable .spec tr { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--hx-line); border-radius: 18px; background: linear-gradient(170deg, var(--hx-card-2), var(--hx-card)); }
  .xtable .spec tbody th { padding: 14px 18px; color: var(--hx-text); font-size: 16px; background: #0a86cf14; border-bottom: 1px solid var(--hx-line); }
  .xtable .spec td { display: flex; justify-content: space-between; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--hx-line); text-align: end; }
  .xtable .spec tr td:last-child { border-bottom: 0; }
  .xtable .cell-label { display: block; flex: none; max-width: 45%; color: var(--hx-mute); font-size: 13px; font-weight: 700; text-align: start; }
  .xtable .spec td.num .cell-val { direction: ltr; unicode-bidi: isolate; }
  .xtable .spec tr:first-child th:only-child { display: none; }
}
@media (max-width: 640px) {
  .xg-grid, .xl-grid { grid-template-columns: 1fr; gap: 14px; }
  .xc { padding: 24px 22px; }
  .xh { padding-top: calc(var(--em-nav-h) + 26px); }
  .page-hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .xs-final-coins { opacity: .55; }
  .xw-btn { width: 54px; height: 54px; }
  .xw-ico .icon { width: 25px; height: 25px; }
  .xw-top { width: 46px; height: 46px; }
  .xw-panel { bottom: 68px; right: -2px; width: calc(100vw - 24px); }
  .xf-certs { max-width: 340px; margin-inline: auto; }
  .hx-head h2, .hx-title-start { font-size: clamp(28px, 8vw, 38px); }
  .hx-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding: 4px 18px 10px; scroll-snap-type: x mandatory; }
  .hx-tabs::-webkit-scrollbar { display: none; }
  .hx-tabs button { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .hx-tab-panel { padding: 22px 18px 28px; gap: 10px; }
  .hx-stack-card { padding: 24px 20px; min-height: 0; }
  .hx-mk-stage { min-height: 260px; }
  .hx-mk-panel { padding: 26px 22px; }
  .hx-mk-nav { margin-top: 24px; }
  .hx-final-panel { padding: 44px 20px; border-radius: 26px; }
  .hx-acc { padding: 26px 22px; }
  .hx-why-art { width: min(100%, 380px); }
  .hx-chip { padding: 9px 12px; font-size: 12px; } .hx-chip b { font-size: 17px; }
  .hx-ins-list a { grid-template-columns: 42px 1fr 18px; padding: 14px 12px; gap: 12px; }
  .hx-phone-scene { min-height: 470px; }
  .hx-ph-card-a { inset-inline-start: 0; } .hx-ph-card-b { inset-inline-end: 0; }
  .hx-marquee li { min-width: 240px; padding: 12px 14px; }
  .xf-top { gap: 30px; }
  .xf-brand img { width: 190px; }
  .xf-cta { flex-wrap: wrap; justify-content: center; }
  .xf-pay-list { justify-content: center; }
  .xf-pay-list li { padding: 7px 11px; font-size: 12px; }
  .xf-links { gap: 26px 18px; }
  .xf-bottom-inner { justify-content: center; text-align: center; }
  .xf-bottom-inner div { justify-content: center; gap: 12px 18px; }
  .em-slide-actions .em-btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .xh-stats { grid-template-columns: 1fr; }
  .em-btn { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .r3d *, .r3d-glow, .xw-pulse, .xw-ico-chat i, .xh-beam, .xsteps::before, .r3d-chip, .xbg i, .xpay-card img { animation: none !important; }
  .motion-ready .hx[data-motion] :is(.pg-reveal, .mo-group > *), .motion-ready .hx[data-motion] .hx-head h2, .motion-ready .hx[data-motion] .hx-head .hx-pill { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
}

/* grid children must be allowed to shrink on small screens */
@media (max-width: 900px) {
  .hx-mk, .hx-tab-panel, .hx-why-top, .hx-ins-grid, .hx-acc-intro, .hx-stack-card, .xsplit, .xh .page-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hx-mk-slide p { max-width: none; }
}
@media (max-width: 640px) {
  .hx-mk-nav { gap: 12px; }
  .hx-mk-dots { flex-wrap: wrap; gap: 6px; min-width: 0; }
  .hx-mk-dots button { width: 14px; }
  .hx-mk-dots button[aria-selected="true"] { width: 34px; }
  .hx-mk-arrows button { width: 38px; height: 38px; }
  .hx-why-art img { width: 100%; }
}
@media (max-width: 640px) { .xh-art { width: 94%; } }

/* ================= 8. AMBIENT BACKGROUND ================= */
/* Two soft side lights that travel down with the scroll, over a faint drifting grid. */
.xbg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; }
.xbg i { position: absolute; display: block; }
.xbg-grid { inset: -80px 0 0; background-image: linear-gradient(#7ccaee0c 1px, transparent 1px), linear-gradient(90deg, #7ccaee0c 1px, transparent 1px); background-size: 80px 80px; -webkit-mask-image: radial-gradient(130% 95% at 50% 45%, transparent 28%, #000 88%); mask-image: radial-gradient(130% 95% at 50% 45%, transparent 28%, #000 88%); animation: xbg-grid 30s linear infinite; will-change: transform; }
.xbg-l, .xbg-r { top: 0; width: min(52vw, 720px); aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.xbg-l { left: 0; translate: -52% -30%; background: radial-gradient(closest-side, #0a86cf33, #0a86cf14 45%, #0a86cf00); transform: translate3d(0, calc(var(--p, 0) * 62vh + 6vh), 0); animation: xbg-pulse 10s ease-in-out infinite; }
.xbg-r { right: 0; translate: 52% -30%; background: radial-gradient(closest-side, #42b8e82e, #42b8e812 45%, #42b8e800); transform: translate3d(0, calc(var(--p, 0) * 62vh + 34vh), 0); animation: xbg-pulse 10s ease-in-out -5s infinite; }
:root[data-theme="light"] .xbg-grid { background-image: linear-gradient(#0a86cf0b 1px, transparent 1px), linear-gradient(90deg, #0a86cf0b 1px, transparent 1px); }
:root[data-theme="light"] .xbg-l { background: radial-gradient(closest-side, #2fb1ea2b, #2fb1ea10 45%, #2fb1ea00); }
:root[data-theme="light"] .xbg-r { background: radial-gradient(closest-side, #0a86cf24, #0a86cf0c 45%, #0a86cf00); }
@keyframes xbg-grid { to { transform: translate3d(0, 80px, 0); } }
@keyframes xbg-pulse { 50% { opacity: .55; } }
body { background: var(--hx-bg); }
main#main, .xpay, .xcta, .xf { position: relative; z-index: 1; }
main#main, .hx { background: transparent; }
.xs.xs-alt { background: color-mix(in srgb, var(--hx-bg-2) 55%, transparent); }

/* ================= 9. SPACING + HERO FIXES ================= */
.hx { padding-block: clamp(56px, 7vw, 100px); }
.hx + .hx { padding-top: clamp(12px, 2.2vw, 32px); }
.hx-head { margin-bottom: clamp(30px, 4vw, 52px); }
/* slides share one grid cell: the hero grows to the tallest slide, so text never runs into the slide controls */
.em-hero-slides { display: grid; }
.em-slide { position: relative; inset: auto; grid-area: 1 / 1; min-height: inherit; }
.em-slide h1, .em-slide h2.em-slide-title { font-size: clamp(40px, 4.7vw, 72px); }
.em-slide-copy { max-width: 620px; }
.em-slide-actions { margin-top: 26px; }
.em-slide-points { margin-top: 24px; }
/* tools stack: sticky cards only when the card fits the screen */
@media (max-width: 900px), (max-height: 760px) { .hx-stack-card { position: relative; top: auto; } .hx-stack-list { gap: 18px; } }

/* ================= 10. DEPOSIT & WITHDRAWAL SLIDER ================= */
.xpay { padding-block: clamp(56px, 7vw, 100px); color: var(--hx-text); overflow: clip; }
.xpay-glow { position: absolute; inset: 8% 15% auto; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, #0a86cf2e, #0a86cf00); pointer-events: none; }
.xpay .hx-head h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.xpay .hx-head p { max-width: 640px; color: var(--hx-mute); font-size: 16px; line-height: 1.7; }
.xpay-box { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 60px); align-items: center; padding: clamp(16px, 3vw, 40px); border: 1px solid var(--hx-line); border-radius: 32px; background: linear-gradient(160deg, #0d1a23d9, #070d12d9); box-shadow: 0 40px 90px #0007, inset 0 1px #ffffff0d; }
:root[data-theme="light"] .xpay-box { background: linear-gradient(160deg, #ffffffeb, #f1f8fceb); box-shadow: 0 30px 70px #0a3a5a1f, inset 0 1px #fff; }
.xpay-stage { position: relative; aspect-ratio: 1.02; perspective: 1500px; perspective-origin: 50% 40%; touch-action: pan-y; }
.xpay-deck { position: absolute; inset: 0; transform-style: preserve-3d; }
.xpay-card { position: absolute; left: 50%; top: 47%; width: 68%; margin: 0; padding: 4% 4% 0; border: 1px solid #7ccaee2e; border-radius: 26px; background: radial-gradient(85% 70% at 50% 34%, #0a86cf3d, #0a86cf00 70%), linear-gradient(165deg, #112432, #070e14); box-shadow: 0 34px 60px #000b, inset 0 1px #ffffff17; translate: -50% -50%; transform: translate3d(var(--x, 0), 0, var(--z, 0)) rotateY(var(--ry, 0deg)) scale(var(--s, 1)); opacity: var(--op, 1); z-index: var(--zi, 1); transition: transform .9s var(--ease), opacity .7s ease; backface-visibility: hidden; }
:root[data-theme="light"] .xpay-card { border-color: #0a86cf24; background: radial-gradient(85% 70% at 50% 34%, #2fb1ea2b, #2fb1ea00 70%), linear-gradient(165deg, #ffffff, #e9f5fb); box-shadow: 0 30px 60px #0a3a5a2e, inset 0 1px #fff; }
.xpay-card img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 900; object-fit: contain; }
.xpay-card.is-on img { animation: r3d-float 8s ease-in-out infinite; }
.xpay-card-glow { position: absolute; inset: 10% 16% 30%; border-radius: 50%; background: radial-gradient(closest-side, #42b8e833, #42b8e800); }
.xpay-card figcaption { position: relative; padding: 6px 0 16px; text-align: center; color: var(--hx-text); font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.xpay-floor { position: absolute; left: 16%; right: 16%; bottom: 3%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, #0a86cf4d, #0a86cf00); }
.xpay-tabs { display: grid; gap: 6px; }
.xpay-tabs button { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 16px; background: transparent; color: var(--hx-mute); font: inherit; font-size: 15px; font-weight: 700; text-align: start; cursor: pointer; overflow: hidden; transition: background .3s, color .3s, border-color .3s; }
.xpay-tabs button:hover { color: var(--hx-text); background: #42b8e80f; }
.xpay-tabs button[aria-selected="true"] { color: var(--hx-text); background: #0a86cf1c; border-color: #42b8e83d; }
.xpay-tabs button:focus-visible { outline: 2px solid #42b8e8; outline-offset: 2px; }
.xpay-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #42b8e81a; color: #7ccaee; transition: background .3s, color .3s; }
.xpay-ico .icon { width: 19px; height: 19px; }
:root[data-theme="light"] .xpay-ico { color: #0a78b8; background: #0a86cf14; }
.xpay-tabs button[aria-selected="true"] .xpay-ico { background: var(--em-grad); color: #04131b; }
.xpay-bar { position: absolute; inset-inline: 12px; bottom: 0; height: 2px; border-radius: 2px; background: #42b8e81f; opacity: 0; }
.xpay-tabs button[aria-selected="true"] .xpay-bar { opacity: 1; }
.xpay-bar i { display: block; height: 100%; border-radius: inherit; background: var(--em-grad); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .xpay-bar i { transform-origin: 100% 50%; }
.xpay-box.is-playing .xpay-tabs button[aria-selected="true"] .xpay-bar i { animation: xpay-progress var(--dur, 6.5s) linear forwards; }
@keyframes xpay-progress { to { transform: scaleX(1); } }
.xpay-panels { margin-top: 16px; min-height: 132px; }
.xpay-panel h3 { color: var(--hx-text); font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.xpay-panel p { margin-top: 8px; color: var(--hx-mute); font-size: 15.5px; line-height: 1.7; }
.xpay-panel.is-on { animation: xpay-in .6s var(--ease) both; }
@keyframes xpay-in { from { opacity: 0; transform: translateY(10px); } }
.xpay-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.xpay-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--hx-line); border-radius: 999px; color: var(--hx-text); font-size: 13px; font-weight: 700; }
.xpay-chips .icon { width: 14px; height: 14px; color: #42b8e8; }
.xpay-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.xpay-count { color: var(--hx-mute); font-weight: 700; font-variant-numeric: tabular-nums; }
.xpay-count b { color: var(--hx-text); font-size: 20px; }
.xpay-arrows { display: flex; gap: 8px; }
.xpay-arrows button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hx-line); border-radius: 50%; background: transparent; color: var(--hx-text); cursor: pointer; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.xpay-arrows button:hover { background: #0a86cf26; border-color: #42b8e866; transform: translateY(-2px); }
.xpay-arrows .icon { width: 18px; height: 18px; }
[dir="rtl"] .xpay-arrows .icon { transform: scaleX(-1); }
.xpay .hx-actions { margin-top: 22px; }
@media (max-width: 980px) {
  .xpay-box { grid-template-columns: minmax(0, 1fr); }
  .xpay-stage { width: min(100%, 560px); margin-inline: auto; }
}
@media (max-width: 640px) {
  .xpay-box { padding: 14px; border-radius: 24px; }
  .xpay-stage { aspect-ratio: 1.02; }
  .xpay-card { width: 74%; border-radius: 20px; }
  .xpay-tabs { display: flex; gap: 6px; margin-inline: -4px; padding: 2px 4px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .xpay-tabs::-webkit-scrollbar { display: none; }
  .xpay-tabs button { flex: none; width: auto; grid-template-columns: auto auto; gap: 8px; padding: 7px 12px 7px 7px; font-size: 13.5px; scroll-snap-align: start; }
  .xpay-ico { width: 30px; height: 30px; border-radius: 10px; }
  .xpay-panels { min-height: 150px; }
  .xpay .hx-actions .em-btn { flex: 1 1 auto; justify-content: center; }
}

/* ================= 11. PHONE PERFORMANCE ================= */
@media (max-width: 760px) {
  .r3d-chip { -webkit-backdrop-filter: none; backdrop-filter: none; --chip-bg: #0d1b25f5; }
  :root[data-theme="light"] .r3d-chip { --chip-bg: #fffffff7; }
  .xbg-l, .xbg-r { width: 80vw; }
  .xbg-grid { background-size: 56px 56px; animation-name: xbg-grid-sm; animation-duration: 24s; }
}
@keyframes xbg-grid-sm { to { transform: translate3d(0, 56px, 0); } }
@media (prefers-reduced-motion: reduce) {
  .xbg-l, .xbg-r { transform: none; }
  .xpay-card { transition: opacity .3s ease; }
}
@media (min-width: 641px) and (max-width: 980px) {
  .xpay-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xpay-tabs button { padding: 9px 10px; font-size: 14px; }
}

/* ================= 12. CALL TO ACTION (before every footer) ================= */
.xcta { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 100px); color: var(--hx-text); }
.xpay + .xcta { padding-top: 0; }
.xcta-panel { --cta-line: #7ccaee1f; position: relative; isolation: isolate; overflow: hidden; padding: clamp(26px, 4.4vw, 64px) clamp(20px, 4.4vw, 64px) 0; border-radius: clamp(24px, 3vw, 36px);
  background: radial-gradient(70% 90% at 82% 28%, #0a86cf45, #0a86cf00 60%), radial-gradient(60% 80% at 0% 100%, #42b8e824, #42b8e800 60%), linear-gradient(150deg, #0e2130 0%, #071119 55%, #04090d 100%);
  box-shadow: 0 50px 100px -30px #000d, inset 0 1px #ffffff14; }
:root[data-theme="light"] .xcta-panel { --cta-line: #0a86cf1f;
  background: radial-gradient(70% 90% at 82% 28%, #2fb1ea38, #2fb1ea00 60%), radial-gradient(60% 80% at 0% 100%, #7fcbf23d, #7fcbf200 60%), linear-gradient(150deg, #ffffff 0%, #f2f9fd 55%, #e2f1f9 100%);
  box-shadow: 0 40px 90px -30px #0a3a5a47, inset 0 1px #fff; }
/* gradient hairline border */
.xcta-panel::before { content: ""; position: absolute; inset: 0; z-index: 2; padding: 1px; border-radius: inherit; background: linear-gradient(140deg, #42b8e8b3, #42b8e800 38%, #42b8e800 62%, #0a86cf99); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
:root[data-theme="light"] .xcta-panel::before { background: linear-gradient(140deg, #2fb1ea99, #2fb1ea00 38%, #2fb1ea00 62%, #0a86cf73); }
.xcta-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#7ccaee12 1px, transparent 1px), linear-gradient(90deg, #7ccaee12 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(85% 80% at 76% 42%, #000 8%, transparent 72%); mask-image: radial-gradient(85% 80% at 76% 42%, #000 8%, transparent 72%); }
:root[data-theme="light"] .xcta-grid { background-image: linear-gradient(#0a86cf14 1px, transparent 1px), linear-gradient(90deg, #0a86cf14 1px, transparent 1px); }
.xcta-beam { position: absolute; top: -40%; bottom: -40%; left: -30%; z-index: -1; width: 26%; background: linear-gradient(90deg, #ffffff00, #ffffff12, #ffffff00); transform: translateX(-120%) skewX(-18deg); animation: xcta-beam 10s ease-in-out infinite; }
:root[data-theme="light"] .xcta-beam { background: linear-gradient(90deg, #2fb1ea00, #2fb1ea1f, #2fb1ea00); }
@keyframes xcta-beam { 0%, 50% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(620%) skewX(-18deg); } }
.xcta-orb { position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
.xcta-orb-a { top: -32%; right: -10%; width: 48%; background: radial-gradient(closest-side, #42b8e833, #42b8e800); animation: r3d-breathe 9s ease-in-out infinite; }
.xcta-orb-b { bottom: -34%; left: -12%; width: 36%; background: radial-gradient(closest-side, #0a86cf33, #0a86cf00); animation: r3d-breathe 11s ease-in-out -4s infinite; }
.xcta-main { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.xcta-copy { display: grid; justify-items: start; min-width: 0; }
.xcta-copy .hx-pill { margin-bottom: 18px; }
.xcta h2 { margin: 0; color: var(--hx-text); font-size: clamp(32px, 4.1vw, 58px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; text-wrap: balance; }
:lang(ar) .xcta h2 { letter-spacing: 0; line-height: 1.32; }
.xcta-lead { max-width: 520px; margin-top: 16px; color: var(--hx-mute); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.7; }
.xcta-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 600px; margin: 28px 0 0; padding: 0; list-style: none; }
.xcta-steps::before { content: ""; position: absolute; top: 23px; inset-inline: 54px 16%; height: 1px; background: linear-gradient(90deg, #42b8e866, #42b8e814); }
[dir="rtl"] .xcta-steps::before { background: linear-gradient(270deg, #42b8e866, #42b8e814); }
.xcta-steps li { position: relative; display: grid; align-content: start; gap: 12px; min-width: 0; }
.xcta-n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #42b8e842; border-radius: 14px; color: #7ccaee; background: linear-gradient(145deg, #12304a, #0a1823); box-shadow: 0 12px 24px #0008, inset 0 1px #ffffff17; transition: transform .4s var(--ease); }
:root[data-theme="light"] .xcta-n { color: #0a78b8; border-color: #0a86cf38; background: linear-gradient(145deg, #ffffff, #e6f3fa); box-shadow: 0 12px 24px #0a3a5a1f, inset 0 1px #fff; }
.xcta-steps li:hover .xcta-n { transform: translateY(-3px); }
.xcta-n .icon { width: 20px; height: 20px; }
.xcta-n i { position: absolute; top: -8px; inset-inline-end: -10px; padding: 2px 6px; border-radius: 999px; background: var(--em-grad); color: #04131b; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .02em; box-shadow: 0 4px 10px #0a86cf4d; }
.xcta-steps b { display: block; color: var(--hx-text); font-size: 15px; font-weight: 800; }
.xcta-steps small { display: block; margin-top: 3px; color: var(--hx-mute); font-size: 12.5px; line-height: 1.5; }
.xcta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.xcta .xcta-ghost { color: var(--hx-text); background: #ffffff0a; border-color: #7ccaee4d; }
.xcta .xcta-ghost:hover { background: #42b8e81a; border-color: #42b8e899; }
:root[data-theme="light"] .xcta .xcta-ghost { color: #0b2232; background: #ffffff; border-color: #0a86cf40; box-shadow: 0 8px 20px #0a3a5a12; }
:root[data-theme="light"] .xcta .xcta-ghost:hover { background: #f1f9fd; border-color: #0a86cf80; }
.xcta-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; }
.xcta-links a { padding-bottom: 3px; border-bottom: 1px solid #42b8e84d; color: var(--hx-text); font-size: 14px; font-weight: 700; transition: color .25s, border-color .25s; }
.xcta-links a:hover { color: var(--hx-accent); border-color: var(--hx-accent); }
:root[data-theme="light"] .xcta-links a:hover { color: #0a78b8; border-color: #0a78b8; }
.xcta-risk { margin-top: 18px; color: var(--hx-mute); font-size: 12.5px; }
.xcta-risk a { text-decoration: underline; text-underline-offset: 3px; }
.xcta-art { position: relative; align-self: end; min-width: 0; }
.xcta-art .r3d { max-width: 560px; }
.xcta-halo { position: absolute; left: 50%; top: 50%; width: 84%; aspect-ratio: 1; translate: -50% -50%; border: 1px dashed #42b8e838; border-radius: 50%; animation: xcta-spin 70s linear infinite; }
.xcta-halo::after { content: ""; position: absolute; inset: 13%; border: 1px solid #42b8e81f; border-radius: 50%; }
:root[data-theme="light"] .xcta-halo { border-color: #0a86cf33; }
@keyframes xcta-spin { to { transform: rotate(360deg); } }
.xcta-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(22px, 3vw, 40px) calc(-1 * clamp(20px, 4.4vw, 64px)) 0; padding: 0; list-style: none; border-top: 1px solid var(--cta-line); background: #00000026; }
:root[data-theme="light"] .xcta-trust { background: #ffffffa6; }
.xcta-trust li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px; color: var(--hx-text); font-size: 14px; font-weight: 700; text-align: center; }
.xcta-trust li + li { border-inline-start: 1px solid var(--cta-line); }
.xcta-trust .icon { flex: none; width: 20px; height: 20px; color: #42b8e8; }
:root[data-theme="light"] .xcta-trust .icon { color: #0a86cf; }
@media (max-width: 980px) {
  .xcta-main { grid-template-columns: minmax(0, 1fr); }
  .xcta-copy { justify-items: center; text-align: center; }
  .xcta-lead { margin-inline: auto; }
  .xcta-steps { margin-inline: auto; }
  .xcta-steps li { justify-items: center; }
  .xcta-steps::before { inset-inline: 18% 18%; }
  .xcta-actions, .xcta-links { justify-content: center; }
  .xcta-art { width: min(100%, 440px); margin-inline: auto; }
  .xcta-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xcta-trust li:nth-child(3) { border-inline-start: 0; }
  .xcta-trust li:nth-child(n + 3) { border-top: 1px solid var(--cta-line); }
}
@media (max-width: 640px) {
  .xcta-panel { padding: 30px 16px 0; border-radius: 24px; }
  .xcta-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 380px; text-align: start; }
  .xcta-steps::before { display: none; }
  .xcta-steps li { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--cta-line); border-radius: 16px; background: #ffffff06; }
  :root[data-theme="light"] .xcta-steps li { background: #ffffffb3; }
  .xcta-n { width: 42px; height: 42px; border-radius: 12px; }
  .xcta-actions { width: 100%; max-width: 380px; margin-inline: auto; }
  .xcta-actions .em-btn { flex: 1 1 100%; }
  .xcta-links { gap: 8px 16px; }
  .xcta-art { width: min(100%, 340px); }
  .xcta-trust { margin-inline: -16px; }
  .xcta-trust li { flex-direction: column; gap: 6px; padding: 14px 8px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .xcta-beam, .xcta-halo, .xcta-orb { animation: none; } }
.xcta-art .r3d { max-width: 620px; }
.r3d-cta .r3d-chip-a { top: 47%; inset-inline-start: -3%; }
.r3d-cta .r3d-chip-b { bottom: 6%; }

/* ================= 13. ARABIC TYPE ================= */
/* All Arabic text uses Tajawal (400 / 500 / 700 / 800; 600 maps to 700, 750 to 800). Latin stays Inter. */
:lang(ar) body, :lang(ar) :is(button, input, select, textarea, optgroup), .locale-toggle [lang="ar"] { font-family: Tajawal, Inter, Roboto, Tahoma, Arial, sans-serif; }
