
:root {
  color-scheme: dark;
  --paper: #0b0e14;
  --panel: #111827;
  --ink: #e8edf5;
  --mist: #9aa6bd;
  --gold: #d97706;
  --goldsoft: #e7c48a;
  --emerald: #10b981;
  --sapphire: #1e3a8a;
  --line: rgba(255, 255, 255, 0.1);
  --header: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background: #07090d;
}

body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: Outfit, "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans SC", "Microsoft YaHei", "Malgun Gothic", "Yu Gothic UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

html[dir="rtl"] body,
html[dir="rtl"] .serif {
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

.serif {
  font-family: Fraunces, "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "PMingLiU", "Yu Mincho", serif;
  font-weight: 520;
}

button, a, input, select { touch-action: manipulation; }

button, a { -webkit-user-select: none; user-select: none; }

:focus-visible {
  outline: 2px solid var(--goldsoft);
  outline-offset: 3px;
}

::selection { background: var(--goldsoft); color: #0b0e14; }

.shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(420px 220px at 100% -10%, rgba(30, 58, 138, 0.45), transparent 60%),
    radial-gradient(320px 200px at 0% 12%, rgba(16, 185, 129, 0.08), transparent 55%),
    var(--paper);
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: 8px;
  z-index: 80;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--goldsoft);
  color: #0b0e14;
  padding: 8px 14px;
  text-decoration: none;
}

.skip:focus { transform: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header);
  padding: 0 14px;
  padding-top: env(safe-area-inset-top);
  height: calc(var(--header) + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(231, 196, 138, 0.5);
  border-radius: 999px;
}

.mark svg { width: 20px; height: 20px; }

.brand-name { display: block; font-size: 18px; line-height: 1; letter-spacing: 0.04em; }

.brand-sub {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--goldsoft);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-actions { display: flex; margin-inline-start: auto; gap: 8px; }

.icon-btn, .lang-btn {
  display: inline-flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}

.icon-btn { width: 44px; }

.lang-btn { max-width: 46vw; gap: 6px; padding: 0 12px; font-size: 13px; }
.lang-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-btn svg, .arrow { width: 18px; height: 18px; }

html[dir="rtl"] .arrow { transform: scaleX(-1); }

.menu {
  position: fixed;
  z-index: 35;
  top: calc(var(--header) + env(safe-area-inset-top));
  bottom: 0;
  left: 50%;
  display: none;
  width: min(100%, 480px);
  overflow: auto;
  background: rgba(11, 14, 20, 0.98);
  padding: 18px 20px 32px;
  transform: translateX(-50%);
}

.shell.menu-open .menu { display: block; }

.menu a {
  display: flex;
  min-height: 56px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 30px;
  text-decoration: none;
}

.region { margin-top: 18px; color: var(--mist); font-size: 14px; }

.wrap { padding: 28px 16px 36px; }

.eyebrow {
  margin: 0;
  color: var(--goldsoft);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin: 0; }

h1 {
  margin-top: 14px;
  font-size: 40px;
  line-height: 1.08;
}

h1 span {
  display: block;
  margin-top: 14px;
  color: var(--mist);
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.lead { margin-top: 16px; color: var(--ink); font-size: 16px; line-height: 1.7; }

.actions { display: grid; gap: 10px; margin-top: 22px; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 15px;
  text-decoration: none;
}

.btn-gold { background: var(--goldsoft); color: #0b0e14; font-weight: 600; }

.btn-line { border: 1px solid rgba(255, 255, 255, 0.16); background: transparent; color: var(--ink); }

.btn-ghost {
  border: 1px solid rgba(231, 196, 138, 0.4);
  background: transparent;
  color: var(--goldsoft);
  justify-self: start;
}

.trust { margin-top: 16px; color: var(--mist); font-size: 13px; line-height: 1.6; }

.hero-photos { position: relative; margin-top: 28px; padding-top: 22px; padding-inline-start: 22px; }

.frame { overflow: hidden; border-radius: 18px; background: #1c2433; }

.hero-main { aspect-ratio: 4 / 5; border: 1px solid var(--line); }

.hero-side {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(231, 196, 138, 0.45);
}

.frame img, .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(18%) contrast(1.08);
}

.section { border-top: 1px solid var(--line); }

h2 { margin-top: 10px; font-size: 34px; line-height: 1.15; }

.stack { display: grid; gap: 14px; margin-top: 22px; }

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-photo { position: relative; aspect-ratio: 16 / 10; }

.card-photo .figure {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 16px;
  color: var(--goldsoft);
  font-size: 34px;
}

.card-body, .pad { padding: 16px; }

.kicker { color: var(--mist); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

h3 { margin-top: 8px; font-size: 24px; line-height: 1.25; }

.copy { margin-top: 10px; color: var(--mist); font-size: 14px; line-height: 1.7; }

.source {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 8px;
  color: var(--goldsoft);
  font-size: 14px;
}

.safety-pin {
  position: sticky;
  top: calc(var(--header) + env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px -16px 0;
  border-block: 1px solid var(--line);
  background: rgba(11, 14, 20, 0.94);
  padding: 10px 16px;
  backdrop-filter: blur(12px);
}

.safety-pin strong { font-size: 30px; font-variant-numeric: tabular-nums; }

.panel { display: grid; gap: 18px; padding: 16px; }

label span.row, .split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mist { color: var(--mist); }

.val { font-size: 18px; font-variant-numeric: tabular-nums; }

input[type="text"], select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 8px 0;
}

select {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0e14;
  padding: 0 12px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  direction: ltr;
}

input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: transparent; }

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -13px;
  border: 2px solid #0b0e14;
  border-radius: 999px;
  background: var(--goldsoft);
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.9);
}

input[type="range"]::-moz-range-track { height: 2px; background: transparent; }

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 2px solid #0b0e14;
  border-radius: 999px;
  background: var(--goldsoft);
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.9);
}

.note { color: var(--mist); font-size: 12px; line-height: 1.55; }

.gauge { width: min(100%, 220px); margin: 0 auto; }

.big {
  margin-top: 4px;
  font-size: 56px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.callout {
  margin-top: 12px;
  border-inline-start: 2px solid var(--gold);
  padding-inline-start: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.stat b { display: block; margin-top: 4px; font-size: 18px; font-weight: 520; font-variant-numeric: tabular-nums; }

.emerald { color: var(--emerald); }
.gold { color: var(--goldsoft); }

.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.legend span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--mist);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart { width: 100%; height: auto; margin-top: 8px; }

table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }

caption { margin-bottom: 6px; color: var(--mist); font-size: 12px; text-align: start; }

th, td { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

th { color: var(--mist); font-weight: 400; text-align: start; }

td:not(:first-child), th:not(:first-child) { text-align: end; }

.group-title { margin-top: 28px; font-size: 22px; }

.platform { display: block; color: inherit; text-decoration: none; }

.platform .card-photo { aspect-ratio: 16 / 9; }

.org { margin-top: 4px; color: var(--goldsoft); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

.visit { margin-top: 12px; font-size: 14px; }

.module {
  display: flex;
  width: 100%;
  min-height: 148px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.76);
  color: inherit;
  padding: 14px;
  text-align: start;
}

.module .top { display: flex; align-items: center; justify-content: space-between; color: var(--goldsoft); }

.module svg { width: 20px; height: 20px; }

.module .more { margin-top: auto; padding-top: 12px; color: var(--goldsoft); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

.footer-note { margin-top: 12px; color: var(--mist); font-size: 14px; line-height: 1.6; }

.legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}

.legal button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: start;
  font: inherit;
  font-size: 14px;
}

.fine { margin-top: 16px; color: var(--mist); font-size: 12px; line-height: 1.5; }

.cookie-space { height: 128px; }

.cookie {
  position: fixed;
  z-index: 45;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.96);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
}

.cookie-inner { width: min(100%, 480px); margin: 0 auto; }

.cookie p { color: var(--mist); font-size: 14px; line-height: 1.55; }

.cookie .actions { margin-top: 12px; }

.safari-gate {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  background: rgba(7, 9, 13, 0.84);
}

.safari-gate[hidden] { display: none; }

.safari-card {
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #111827;
  padding: 22px 18px 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.safari-card p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

.safari-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.safari-actions .btn {
  width: 100%;
  border: 0;
  font: inherit;
}

.safari-actions .btn-line { border: 1px solid rgba(255, 255, 255, 0.16); }

.backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: end center;
  background: rgba(0, 0, 0, 0.62);
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
}

.dialog {
  width: min(100%, 456px);
  max-height: min(86dvh, 720px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #111827;
  padding: 18px 16px 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.dialog h2 { margin-top: 8px; font-size: 28px; }

.dialog p { margin-top: 12px; color: var(--mist); font-size: 15px; line-height: 1.7; }

.lang-list { display: grid; gap: 4px; margin-top: 12px; }

.lang-list button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
}

.lang-list button[aria-selected="true"] { background: rgba(30, 58, 138, 0.55); color: var(--goldsoft); }

.close {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

button:active, a:active { transform: scale(0.985); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

