:root {
    --bg: #ffffff; --surface: #f5f7fc; --ink: #0d1530; --muted: #5b6480; --line: #e4e8f1;
    --primary: #14358a; --primary-ink: #fff; --accent: #1db0f5; --ok: #0a8f5b;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --bg: #0b1b45; --surface: #122558; --ink: #f1f4fb; --muted: #aab6d3; --line: #223a78; --primary: #1db0f5; --primary-ink: #0b1b45; --ok: #35cf94; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0b1b45; --surface: #122558; --ink: #f1f4fb; --muted: #aab6d3; --line: #223a78; --primary: #1db0f5; --primary-ink: #0b1b45; --ok: #35cf94; color-scheme: dark; }

* { box-sizing: border-box; }
html { font-family: Changa, system-ui, sans-serif; font-weight: 700; }
html[lang="ar"] { font-family: Cairo, system-ui, sans-serif; font-weight: 600; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] strong { font-weight: 800; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2 { line-height: 1.2; margin: 0 0 .6rem; }
.eyebrow { color: var(--muted); font-size: .85rem; margin: 0 0 .4rem; }
.ok { color: var(--ok); }

.btn { display: inline-block; padding: .75rem 1.4rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font: inherit; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(13 21 48 / .14); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-block { display: block; width: 100%; text-align: center; }

.nav, .foot, main > section:not(.methods) { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; }
.brand { display: inline-flex; }
.logo { height: 52px; width: auto; display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-light { display: none; }
    :root:not([data-theme="light"]) .logo-dark { display: block; }
    :root:not([data-theme="light"]) .marquee img.mono { filter: brightness(0) invert(1); }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
:root[data-theme="dark"] .marquee img.mono { filter: brightness(0) invert(1); }

.controls { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { display: flex; padding: 6px; border-radius: 8px; border: 1px solid transparent; }
.lang-switch a.active { border-color: var(--primary); }
.lang-switch img { display: block; width: 24px; height: 18px; border-radius: 3px; object-fit: cover; }
.theme-toggle { display: flex; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.icon-moon { display: block; }
.icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: block; }
    :root:not([data-theme="light"]) .icon-moon { display: none; }
}
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

.hero { padding-block: 56px 44px; text-align: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
.hero p { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 40rem; margin: 0 auto; }
.regions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; list-style: none; margin: 24px 0 0; padding: 0; }
.regions li { display: flex; align-items: center; gap: 9px; }
.regions img { height: 24px; width: auto; border-radius: 3px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.methods { padding-block: 10px 56px; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: slide 34s linear infinite; }
.methods:hover .marquee { animation-play-state: paused; }
.marquee-track { display: flex; align-items: center; gap: 72px; list-style: none; margin: 0; padding: 0 36px; }
.marquee-track li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.marquee-track img { height: 40px; width: auto; display: block; }
.marquee-track img.wide { height: 24px; }
.marquee-track span { font-size: 1.15rem; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee { animation: none; width: auto; flex-wrap: wrap; }
    .marquee-track[aria-hidden="true"] { display: none; }
    .marquee-track { flex-wrap: wrap; justify-content: center; gap: 28px 44px; }
    .btn { transition: none; }
}

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-block: 8px 56px; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.features h2 { font-size: 1.15rem; }
.features p { margin: 0; color: var(--muted); }
.steps { padding-block: 16px 64px; }
.steps ol { list-style: none; counter-reset: s; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); font-weight: 800; color: var(--accent); font-size: 1.5rem; }
.steps span { color: var(--muted); }
.foot { display: flex; justify-content: space-between; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.pay { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.pay-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 24px 60px rgb(13 21 48 / .10); }
.pay-card.center { text-align: center; }
.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.pay-head .logo { height: 40px; }
.pay-card h1 { font-size: 1.4rem; overflow-wrap: anywhere; }
.pay-lines { margin: 20px 0; }
.pay-lines div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.pay-lines dt { color: var(--muted); }
.pay-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.pay-total dt, .pay-total dd { color: var(--ink); font-size: 1.15rem; }
.pay-note { color: var(--muted); font-size: .85rem; text-align: center; margin: 14px 0 0; }
.pay-state { padding: 14px; border-radius: 10px; background: var(--bg); text-align: center; }
.pay-check { width: 56px; height: 56px; line-height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 1.6rem; }

@media (max-width: 760px) {
    .features, .steps ol { grid-template-columns: 1fr; }
    .hero { padding-block: 28px 32px; }
    .logo { height: 42px; }
    .marquee-track { gap: 48px; padding: 0 24px; }
    .marquee-track img { height: 32px; }
    .marquee-track img.wide { height: 20px; }
}
