:root {
  --bg: #0e1117; --surface: #161b23; --surface-2: #1b212b; --border: #2a323e;
  --text: #e4e8ee; --muted: #97a1b0; --accent: #22b8cf; --usdt: #26a17b; --head: rgba(14, 17, 23, 0.92);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f4f7; --surface: #ffffff; --surface-2: #f7f8fa; --border: #d5dae2;
  --text: #1c2333; --muted: #586274; --accent: #0b8296; --usdt: #0b7a5a; --head: rgba(242, 244, 247, 0.92);
  color-scheme: light;
}
:root[data-theme="light"] .btn { color: #fff; }
:root[data-theme="light"] .btn--ghost { color: var(--text); }
:root[data-theme="light"] .steps .card::before { color: #fff; }

.phones { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 2rem; }
.phones figure { margin: 0; width: 240px; }
.phones figcaption { color: var(--muted); font-size: 0.9rem; text-align: center; margin-top: 0.7rem; }
.phones img { width: 100%; border-radius: 28px; border: 8px solid #05070a; display: block; }
/* The app's own light look, whatever the page theme. */
.phone {
  border-radius: 28px; border: 8px solid #05070a; background: #f2f4f7; color: #1c2333; padding: 0.9rem 0.7rem;
  font-size: 0.8rem; line-height: 1.4; direction: ltr; text-align: left; min-height: 400px;
}
.phone h4 { margin: 0 0 0.2rem; font-size: 1rem; }
.phone h4 b { color: #0e9fb5; }
.phone h5 { margin: 0.9rem 0 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #687385; }
.phone .row { background: #fff; border-radius: 10px; padding: 0.55rem 0.7rem; margin-top: 0.45rem; display: flex; justify-content: space-between; gap: 0.5rem; }
.phone .col { display: block; }
.phone .ok { color: #15803d; font-weight: 700; }
.phone .dim { color: #687385; }
.phone .bar { height: 6px; background: #e1e5eb; border-radius: 3px; margin-top: 0.4rem; }
.phone .bar i { display: block; height: 100%; background: #7c3aed; border-radius: 3px; }
.phone .earn { margin-top: 0.5rem; padding: 0.8rem; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #0b6e4f, #21a366); }
.phone .earn .big { color: #fff; }
.phone .big { font-size: 1.5rem; font-weight: 800; color: #0b6e4f; }
.tag { display: inline-block; font-size: 0.75rem; border: 1px solid var(--usdt); color: var(--usdt); border-radius: 999px; padding: 0.05rem 0.6rem; margin-bottom: 0.5rem; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4rem 0; border-top: 1px solid var(--border); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
p { margin: 0; }
.lead { color: var(--muted); max-width: 60ch; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.eyebrow { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.6rem; }
[dir="rtl"] .eyebrow, [dir="rtl"] h1 { letter-spacing: 0; }

header { position: sticky; top: 0; z-index: 5; background: var(--head); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 0.75rem; }
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--text); direction: ltr; }
.brand b { color: #f5b301; }
:root[data-theme="light"] .brand b { color: #b97f00; }
.langs { display: flex; gap: 0.25rem; margin-inline-start: auto; }
.langs button, .langs a {
  min-height: 36px; padding: 0 0.6rem; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer;
}
.langs button[aria-pressed="true"], .langs a[aria-current] { color: var(--text); border-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px;
  padding: 0 1.4rem; border-radius: 10px; font-weight: 700; text-decoration: none;
  background: var(--accent); color: #06222a; border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.1); }
.btn:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--green { background: var(--usdt); border-color: var(--usdt); color: #04150f; }
.btn--small { min-height: 40px; padding: 0 1rem; }

.hero { border-top: 0; padding: 5rem 0 4rem; background: radial-gradient(900px 420px at 80% -10%, rgba(34, 184, 207, 0.18), transparent 70%); }
.hero h1 span { color: var(--usdt); }
.hero .lead { font-size: 1.15rem; margin: 1.2rem 0 1.8rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.9rem; color: var(--muted); }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.stat b { display: block; font-size: 2.1rem; line-height: 1.1; color: var(--accent); direction: ltr; unicode-bidi: isolate; }
.stat span { color: var(--muted); font-size: 0.92rem; }
.note { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; max-width: 80ch; }

.flow {
  margin-top: 1.5rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); overflow-x: auto; white-space: nowrap; font-size: 0.95rem;
}
.flow i { color: var(--accent); font-style: normal; padding: 0 0.5rem; }
.flow strong { color: var(--usdt); }

.grid { display: grid; gap: 1rem; margin-top: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.card p, .card li { color: var(--muted); font-size: 0.95rem; }
.steps { counter-reset: s; }
.steps .card::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--accent); color: #06222a; font-weight: 800; margin-bottom: 0.8rem;
}

.calc { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.75rem; }
.calc label { display: block; margin-bottom: 1rem; font-weight: 600; }
.calc small { display: block; color: var(--muted); font-weight: 400; }
.calc input {
  width: 100%; min-height: 46px; margin-top: 0.35rem; padding: 0 0.8rem; border-radius: 8px; font: inherit;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); direction: ltr;
}
.calc input[type="range"] { padding: 0; min-height: 34px; border: 0; background: transparent; accent-color: var(--usdt); }
.calc .val { float: inline-end; color: var(--usdt); font-size: 1.3rem; font-weight: 800; direction: ltr; }
.payback { margin: 0 0 1rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--usdt); }
.payback b { color: var(--usdt); font-size: 1.2rem; }
.tiers { display: grid; gap: 0.75rem; margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tiers button {
  font: inherit; text-align: start; cursor: pointer; padding: 1rem; border-radius: 12px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
}
.tiers button b { display: block; color: var(--text); font-size: 1.35rem; direction: ltr; unicode-bidi: isolate; text-align: start; }
.tiers button[aria-pressed="true"] { border-color: var(--usdt); }
.tiers button[aria-pressed="true"] b { color: var(--usdt); }
.countries { display: grid; gap: 1rem; margin-top: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.country { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem; text-align: center; }
.country svg { width: 100%; max-width: 132px; border-radius: 6px; box-shadow: 0 0 0 1px var(--border); display: block; margin: 0 auto 0.8rem; }
.country b { display: block; font-size: 1.15rem; }
.country .open { color: var(--usdt); font-size: 0.85rem; font-weight: 600; }
.country .open::before { content: "● "; }
.result { border-color: var(--usdt); background: linear-gradient(180deg, rgba(38, 161, 123, 0.14), var(--surface) 60%); }
.result .btn { margin-bottom: 0.2rem; }
.result dl { margin: 0; }
.result dt { color: var(--muted); font-size: 0.92rem; }
.result dd { margin: 0 0 1rem; font-size: 1.6rem; font-weight: 800; direction: ltr; unicode-bidi: isolate; text-align: start; }
.result dd.profit { color: var(--usdt); font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1.1; }

.pay { border-color: var(--usdt); background: linear-gradient(180deg, rgba(38, 161, 123, 0.12), var(--surface)); display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: center; padding: 1.75rem; margin-top: 1.75rem; }
.pay .big { font-size: 2.2rem; font-weight: 800; color: var(--usdt); line-height: 1.1; direction: ltr; unicode-bidi: isolate; }
.pay ul { margin: 0; padding-inline-start: 1.1rem; }
.pay li { margin: 0.35rem 0; color: var(--text); }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1.1rem; margin-top: 0.6rem; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin-top: 0.6rem; }

.final { text-align: center; }
.final .lead { margin: 0.8rem auto 1.6rem; }
.final .cta { justify-content: center; }
.handle { font-size: 1.3rem; font-weight: 700; direction: ltr; }
footer { border-top: 1px solid var(--border); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.85rem; text-align: center; }
.langs a { display: inline-flex; align-items: center; text-decoration: none; }
.s1 { vertical-align:-7px;margin-inline-end:8px; }
.s2 { margin-top:1.2rem; }
.s3 { float:right;font-size:0.75rem; }
.s4 { float:right; }
.s5 { float:right;color:#1c2333; }
.s6 { width:57%; }
.s7 { width:53%; }
.s8 { float:right;color:#15803d; }
.s9 { width:48%; }
.s10 { width:39%; }
.s11 { float:right;font-size:0.8rem; }
.s12 { text-align:center;margin-inline:auto; }
.s13 { width:100%; }
.s14 { margin-top:2.5rem; }
.s15 { margin-top:0.2rem; }
.s16 { position:absolute; }
.s17 { margin-top:1.5rem; }
