:root {
  --bg: #09090c;
  --panel: #111116;
  --panel-2: #17171e;
  --line: #26262f;
  --text: #ecedf2;
  --muted: #9a9dab;
  --gold: #f5c046;
  --gold-dim: #9c7a2a;
  --red: #ff5c62;
  --green: #50d28c;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.num { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(9, 9, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 0.04em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 20px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.on { color: var(--text); text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 10px; font-size: 15px; }

/* hero */
.hero {
  padding: 84px 0 64px;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(245, 192, 70, 0.16), transparent 70%);
  text-align: center;
}
.pill {
  display: inline-flex; gap: 8px; align-items: center;
  border: 1px solid var(--gold-dim); color: var(--gold);
  padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
}
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; margin: 22px auto 18px; max-width: 860px; letter-spacing: -0.02em; }
h1 em { color: var(--gold); font-style: normal; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 680px; margin: 0 auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid var(--line); color: var(--text); background: var(--panel);
}
.btn:hover { text-decoration: none; border-color: var(--gold-dim); }
.btn.gold { background: var(--gold); color: #1a1406; border-color: var(--gold); }
.btn.gold:hover { filter: brightness(1.06); }

/* sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.kicker { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 8px 0 14px; letter-spacing: -0.01em; line-height: 1.15; }
h3 { font-size: 19px; margin: 0 0 8px; }
.sub { color: var(--muted); max-width: 720px; }

.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card p { color: var(--muted); margin: 0; }
.card .ico { color: var(--gold); font-size: 22px; margin-bottom: 10px; }
.chart { display: block; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; margin-top: 26px; }

/* levels table */
.levels { width: 100%; border-collapse: collapse; margin-top: 18px; }
.levels td { overflow-wrap: anywhere; }
.levels th, .levels td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.levels th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.up { color: var(--red); }
.down { color: var(--green); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }

/* shorts showcase */
.shots { display: flex; gap: 16px; justify-content: center; }
.shots img { width: calc(50% - 8px); max-width: 270px; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.list { margin: 14px 0 0; padding: 0; list-style: none; }
.list li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); }

.note {
  background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 14px 16px; color: var(--muted); font-size: 14px; margin-top: 22px;
}
.prose { max-width: 760px; }
.prose p, .prose li { color: #c9cbd4; }
.prose h2 { margin-top: 34px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }
.risk { max-width: var(--max); margin: 18px auto 0; padding: 0 20px; font-size: 12.5px; color: #7d808e; }


/* market dashboard */
.dash { margin-top: 22px; }
.tfs b { font-size: 19px; }
.tv { height: 520px; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.sessions-clock b { display: block; font-size: 18px; margin: 4px 0 6px; }
.scenario { border-color: var(--gold-dim); }
.pricing .card { display: flex; flex-direction: column; }
.pricing .price { font-size: 34px; font-weight: 800; margin: 6px 0 2px; }
.pricing .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.pricing .list { flex: 1; }
.pricing .card .btn { margin-top: 18px; text-align: center; }
.pricing .popular { border-color: var(--gold); }
details.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { color: var(--muted); margin: 10px 0 0; }


/* language button */
.nav a.lang { border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; color: var(--text); }
.nav a.lang:hover { border-color: var(--gold-dim); }

/* Arabic (right to left) */
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; line-height: 1.75; }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .kicker, [dir="rtl"] .pill, [dir="rtl"] .levels th { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .list li { padding: 7px 28px 7px 0; }
[dir="rtl"] .list li::before { left: auto; right: 4px; }
[dir="rtl"] .note { border-left: 1px solid var(--line); border-right: 3px solid var(--gold); }
[dir="rtl"] .levels th, [dir="rtl"] .levels td { text-align: right; }
[dir="rtl"] .prose ul { padding-right: 22px; padding-left: 0; }
.num { direction: ltr; unicode-bidi: isolate; }


/* market switcher, section links, live market cards */
[id] { scroll-margin-top: 80px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.chips a, .chips span { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.chips a:hover { color: var(--text); text-decoration: none; border-color: var(--gold-dim); }
.chips .on { background: var(--gold); color: #1a1406; border-color: var(--gold); font-weight: 700; }
.jump { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 4px; font-size: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.mk-cards .card.mk { padding: 16px; color: inherit; display: block; }
.mk-cards .card.mk:hover { border-color: var(--gold-dim); text-decoration: none; }
.mk-cards h3 { font-size: 16px; margin: 2px 0 4px; }
.mk-cards p { margin: 2px 0; font-size: 14px; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 600; }

@media (max-width: 860px) {
  .g3, .g2 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
         background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .menu-btn { display: block; }
}

/* phones: smaller type and spacing, tables become cards, phone-sized charts */
@media (max-width: 600px) {
  body { font-size: 15px; line-height: 1.55; }
  .wrap { padding: 0 16px; }
  section { padding: 40px 0; }
  .hero { padding: 44px 0 34px; }
  h1 { font-size: clamp(27px, 7.6vw, 36px); margin: 16px auto 12px; }
  h2 { font-size: clamp(22px, 6.2vw, 27px); }
  h3 { font-size: 17px; }
  .lead { font-size: 15.5px; }
  .sub { font-size: 15px; }
  .pill { font-size: 11px; padding: 4px 10px; letter-spacing: 0.04em; }
  .kicker { font-size: 11.5px; }
  .card { padding: 18px; }
  .btn { padding: 11px 18px; font-size: 14.5px; }
  .cta { gap: 10px; margin-top: 22px; }
  .stats { gap: 10px; }
  .stat { padding: 12px; }
  .stat b { font-size: 18px; }
  .stat span { font-size: 12px; }
  .note { font-size: 13px; padding: 12px 14px; }
  .list li { padding: 5px 0 5px 24px; }
  .list li::before { top: 13px; width: 8px; height: 8px; }
  .chart { margin-top: 18px; }
  .levels thead { display: none; }
  .levels, .levels tbody, .levels tr, .levels td { display: block; width: 100%; }
  .levels tr { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
  .levels td { border: 0; padding: 4px 0; display: flex; gap: 12px; align-items: baseline; font-size: 14px; }
  .levels td::before { content: attr(data-label); flex: 0 0 88px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
  .shots img { border-radius: 12px; }
  [dir="rtl"] .list li { padding: 5px 24px 5px 0; }
  [dir="rtl"] .levels td::before { flex-basis: 96px; }
  [dir="rtl"] .levels td { text-align: right; }
  .tv { height: 380px; }
  .mk-cards .card.mk { padding: 12px; }
  .mk-cards h3 { font-size: 15px; }
  .jump { font-size: 13px; gap: 4px 14px; }
  .tfs b { font-size: 16px; }
  .pricing .price { font-size: 28px; }
  footer { padding: 28px 0 34px; font-size: 13px; }
  footer nav { gap: 12px; }
}

/* ---- home headline: word-by-word entrance; the gold line lands slowly (out of a blur), then an underline draws ---- */
.anim .w { display: inline-block; opacity: 0; transform: translateY(.45em);
  animation: wIn .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.25s + var(--i) * .16s); }
@keyframes wIn { to { opacity: 1; transform: none; } }
.anim .l2 { display: inline-block; position: relative; padding-bottom: .08em; animation: glow 1.4s ease-in-out 4.3s 1; }
.anim .l2 .w { transform: scale(1.35); filter: blur(10px); letter-spacing: .06em;
  animation: wSigma 1.05s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(1.55s + (var(--i) - 3) * .42s); }
@keyframes wSigma {
  0%   { opacity: 0; transform: scale(1.35); filter: blur(10px); letter-spacing: .06em; }
  55%  { opacity: 1; filter: blur(0); text-shadow: 0 0 26px rgba(245,196,81,.7); }
  100% { opacity: 1; transform: none; filter: none; letter-spacing: 0; text-shadow: 0 0 0 rgba(245,196,81,0); } }
.anim .l2::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0);
  animation: underline 1.1s cubic-bezier(.65,0,.35,1) 3.5s forwards; }
[dir="rtl"] .anim .l2::after { transform-origin: right; }
@keyframes underline { to { transform: scaleX(1); } }
@keyframes glow { 50% { text-shadow: 0 0 30px rgba(245,196,81,.45); } }
@media (prefers-reduced-motion: reduce) {
  .anim .w, .anim .l2, .anim .l2::after { animation: none !important; opacity: 1 !important; transform: none !important;
    filter: none !important; letter-spacing: 0 !important; } }

/* ---- request form (/order) ---- */
.narrow { max-width: 660px; }
form.order { display: grid; gap: 16px; }
form.order label { display: block; font-weight: 600; font-size: 14px; }
form.order label > input, form.order label > textarea { display: block; margin-top: 6px; }
form.order label > small { display: block; margin-top: 6px; }
form.order input, form.order textarea, form.order select { width: 100%; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); padding: 12px 14px; font: inherit; font-weight: 400; font-size: 16px; }
form.order textarea { resize: vertical; min-height: 120px; }
form.order input:focus, form.order textarea:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(245,192,70,.15); }
form.order .opt, form.order small { color: var(--muted); font-weight: 400; font-size: 13px; }
form.order .fine { color: var(--muted); font-size: 13px; margin: 0; }
form.order .hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; opacity: 0; }
form.order button.btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.fine.center { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ---- folded detail on market pages (open on wide screens via sessions.js) ---- */
details.more { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
details.more > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
details.more[open] > summary::after { content: "−"; }
details.more > .more-body { padding: 0 14px 14px; }
details.more > .more-body > table.levels { margin-top: 0; }

/* ---- v10: freshness badge, market cards, filter, sticky section bar, glance, sample size, RTL numbers ---- */
.fresh { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 8px; padding: 2px 10px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600;
  letter-spacing: 0; text-transform: none; vertical-align: middle; white-space: nowrap; }
.fresh:empty { display: none; }
.fresh::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fresh.f-ok { color: var(--green); border-color: rgba(80,210,140,.35); }
.fresh.f-warn { color: var(--gold); border-color: var(--gold-dim); }
.fresh.f-old { color: var(--red); border-color: rgba(255,92,98,.4); }
.fresh.f-closed { color: var(--muted); }

.mkc { display: flex; flex-direction: column; gap: 6px; color: inherit; }
.mkc:hover { text-decoration: none; border-color: var(--gold-dim); }
.mkc[hidden] { display: none !important; }
.mkc .mk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mkc .mk-name { font-weight: 700; color: var(--text); font-size: 16px; }
.mkc .mk-price { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.25; margin: 2px 0 4px; }
.mkc .mk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.mkc .mk-row .lab { color: var(--muted); }
.mkc .mk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.t-bull { color: var(--green); border-color: rgba(80,210,140,.35); }
.tag.t-bear { color: var(--red); border-color: rgba(255,92,98,.4); }
.chips button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit;
  font-size: 14px; color: var(--muted); background: transparent; cursor: pointer; white-space: nowrap; }
.chips button:hover { color: var(--text); border-color: var(--gold-dim); }
.chips button.on { background: var(--gold); color: #1a1406; border-color: var(--gold); font-weight: 700; }
.chips[hidden] { display: none; }

.jump { position: sticky; top: 64px; z-index: 9; background: var(--bg); padding: 10px 0; margin: 14px 0 4px;
  border-bottom: 1px solid var(--line); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { white-space: nowrap; }
main [id] { scroll-margin-top: 130px; }
.glance { margin-top: 16px; }
.glance .stat b { font-size: 20px; }
.glance .stat b:not(.num) { font-size: 16px; line-height: 1.4; }
.chips[data-filter] { flex-wrap: wrap; overflow: visible; }
.mkc .mk-head { flex-wrap: wrap; }

.sample { display: flex; align-items: center; gap: 18px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 18px; }
.sample > b { font-size: 44px; line-height: 1; color: var(--gold); }
.sample div { display: flex; flex-direction: column; gap: 4px; }
.sample div b { font-size: 17px; color: var(--text); }
.sample div span { color: var(--muted); font-size: 14px; }
.sample-line { font-size: 16px; color: var(--text); margin: 18px 0 0; }
.sample-line b { color: var(--gold); font-size: 20px; }

[dir="rtl"] span.num, [dir="rtl"] b.num { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] p.num, [dir="rtl"] div.num { direction: ltr; unicode-bidi: isolate; text-align: right; }

.svc-grid { margin-top: 22px; }
.svc { display: flex; flex-direction: column; gap: 6px; }
.svc h3 { margin: 4px 0 2px; font-size: 19px; }
.svc .svc-for { color: var(--muted); font-size: 14px; margin: 0; }
.svc .svc-for b { color: var(--text); }
.svc .list { margin-top: 6px; }
.svc .list li { padding-top: 4px; padding-bottom: 4px; font-size: 14px; }
.svc .svc-price { margin: auto 0 0; padding-top: 10px; font-size: 19px; font-weight: 700; color: var(--gold); }
.svc .cta { justify-content: flex-start; margin-top: 8px; gap: 8px; }
.svc .cta .btn { padding: 9px 16px; font-size: 14px; }
details.more > .more-body > .list { margin-top: 0; }

/* v11: tidy */
h1.ph { font-size: clamp(26px, 3.6vw, 38px); margin: 8px 0 14px; max-width: none; letter-spacing: -0.01em; line-height: 1.15; }
.mk-cards .mkc { min-width: 0; }
.mkc .mk-row .lab { white-space: nowrap; flex: none; }
.mkc .mk-row .num { text-align: right; white-space: nowrap; }
.mkc .zn { font-size: 10px; color: var(--muted); margin-inline-start: 5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
[dir="rtl"] .mkc .mk-row .num { text-align: left; }
[dir="rtl"] .mkc .zn { text-transform: none; font-size: 11px; }
@media (max-width: 600px) {
  h1.ph { font-size: clamp(22px, 6.2vw, 27px); }
  .mk-cards { gap: 10px; }
  .mkc .mk-price { font-size: 21px; }
  .mkc .mk-row { font-size: 13px; gap: 6px; }
  .mkc .mk-head { flex-wrap: nowrap; min-width: 0; }
  .mkc .mk-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .mkc .mk-tags { gap: 4px; flex-wrap: nowrap; }
  .mkc .mk-tags .tag { font-size: 10.5px; padding: 2px 6px; white-space: nowrap; }
}
@media (max-width: 360px) { .g4.mk-cards { grid-template-columns: 1fr; } }

/* v12: services page, one card per service with its details folded (details.fold stays closed on every screen;
   details.more is opened by site.js on wide screens) */
details.fold { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
details.fold > summary { cursor: pointer; list-style: none; padding: 11px 14px; font-weight: 700; display: flex;
  justify-content: space-between; align-items: center; gap: 10px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
details.fold[open] > summary::after { content: "\2212"; }
details.fold > .more-body { padding: 0 14px 14px; }
details.fold > .more-body > .list { margin-top: 0; }
.svc-more { margin: 12px 0 4px; }
.svc-more > summary { font-size: 14px; }
.svc-more .more-body { font-size: 14px; }
.svc-more .more-body p, .svc-more .more-body .note { font-size: 14px; }
.svc-more .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.svc-more .shots img { width: 100%; height: auto; border-radius: 10px; }
.svc-more a.chart { display: block; margin: 10px 0 0; }
.svc .svc-price a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--gold-dim); }
.svc-grid .card.svc { scroll-margin-top: 90px; }

/* v13: the levels page chart follows the market filter */
#lv-charts > [hidden] { display: none !important; }
#lv-charts > .chart + .chart { margin-top: 18px; }

/* v14: the home page's 3D liquidity map (assets/hero3d.js; desktop 900px+ only, hidden until it has drawn) */
.hero3d { position: relative; margin: 34px auto 0; max-width: 1080px; aspect-ratio: 21 / 8; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; background: radial-gradient(120% 90% at 70% 10%, #1a1710 0%, transparent 62%); }
.hero3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.hero3d canvas:active { cursor: grabbing; }
.hero3d .h3-chip { position: absolute; left: 14px; top: 12px; font: 700 12px/1.4 "JetBrains Mono", Consolas, monospace;
  color: var(--gold); pointer-events: none; direction: ltr; }
.hero3d .h3-legend { position: absolute; left: 14px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px;
  color: var(--muted); pointer-events: none; }
.hero3d .h3-legend b { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-inline-end: 6px; border-radius: 2px; }
.hero3d .h3-legend b.dn { background: #ef5350; } .hero3d .h3-legend b.up { background: #26a69a; }
.hero3d .h3-hint { position: absolute; right: 14px; bottom: 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
[dir="rtl"] .hero3d .h3-legend { left: auto; right: 14px; } [dir="rtl"] .hero3d .h3-hint { right: auto; left: 14px; }
@media (max-width: 899px) { .hero3d { display: none !important; } }

/* v15: latest scenarios on the home page (filled by latest.js from data/scenarios.json) + founder block */
.latest { margin-top: 18px; }
.lsc { display: flex; flex-direction: column; gap: 10px; color: inherit; border-color: var(--gold-dim); }
.lsc:hover { text-decoration: none; border-color: var(--gold); }
.lsc h3 { margin: 2px 0 0; font-size: 19px; }
.lsc .mk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lsc .mk-name { font-weight: 700; color: var(--text); font-size: 15px; }
.lsc-lv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lsc-lv div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.lsc-lv span { display: block; color: var(--muted); font-size: 12px; }
.lsc-lv b { font-size: 15px; }
.st { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); }
.st-open { color: var(--gold); border-color: var(--gold-dim); }
.st-win { color: var(--green); border-color: rgba(80,210,140,.4); }
.st-loss { color: var(--red); border-color: rgba(255,92,98,.4); }
.st-note { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.lsc-when { margin: 0; color: var(--muted); font-size: 13px; }
.founder { align-items: center; }
.founder .ph { max-width: 420px; justify-self: center; width: 100%; }
.founder .ph img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--gold-dim);
  box-shadow: 0 30px 80px rgba(245,192,70,.12); }
.founder .role { color: var(--gold); font-weight: 600; margin-top: -6px; }
@media (max-width: 600px) {
  .mkc .mk-name { white-space: normal; overflow: visible; text-align: right; line-height: 1.2; }
  [dir="rtl"] .mkc .mk-name { text-align: left; }
  .lsc-lv b { font-size: 14px; }
  .founder .ph { max-width: 300px; }
}

/* v16: compact track record (record.js filters it) — by-market tiles, one-line scenario rows that open for details */
.mk-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.mk-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mk-tile b { display: block; font-size: 14px; }
.mk-tile .r { font-size: 18px; font-weight: 700; margin-top: 4px; }
.mk-tile > span { color: var(--muted); font-size: 12.5px; }
.rec-list { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rec-list > li + li { border-top: 1px solid var(--line); }
.rec-list > li[hidden] { display: none; }
.rec-list details > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 10px 1fr auto auto;
  align-items: center; gap: 10px; padding: 12px 14px; background: var(--panel); }
.rec-list details > summary::-webkit-details-marker { display: none; }
.rec-list details[open] > summary { background: var(--panel-2); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.rec-dot.win { background: var(--green); } .rec-dot.loss { background: var(--red); } .rec-dot.open { background: var(--gold); }
.rec-m { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-d { color: var(--muted); font-size: 13px; white-space: nowrap; }
.rec-r { font-weight: 700; white-space: nowrap; min-width: 64px; text-align: right; }
.rec-x { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 14px 14px 34px; background: var(--panel-2); font-size: 14px; }
.rec-x .muted { color: var(--muted); flex-basis: 100%; font-size: 13px; }
.rec .chips { margin-top: 10px; }
.rec-more-btn { margin-top: 14px; cursor: pointer; font: inherit; font-weight: 700; }
.rec-empty { color: var(--muted); padding: 14px; }
[dir="rtl"] .rec-r { text-align: left; } [dir="rtl"] .rec-x { padding: 10px 34px 14px 14px; }
@media (max-width: 600px) {
  .mk-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rec-list details > summary { gap: 8px; padding: 11px 12px; font-size: 14px; }
  .rec-d { font-size: 12px; }
}
