
:root {
  color-scheme: light;
  --bg: #f2f7fa; --card: #ffffff; --gold: #14b8a6; --gold-soft: #ccfbf1; --gold-deep: #0b7f75;
  --dow: #0277b3; --dow-soft: #e0f2fe; --dow-deep: #075985;
  --ink: #101b28; --muted: #5c6b7c; --line: #d9e5ee;
  --green: #0d8248; --green-bg: #e4f5ec; --red: #c0392b; --red-bg: #fdeae7;
  --amber: #b45309; --amber-bg: #fdf3e0; --blue: #0277b3; --blue-bg: #e8f1fb;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28,34,46,.05), 0 10px 30px rgba(28,34,46,.06);
  --shadow-lift: 0 4px 10px rgba(28,34,46,.08), 0 18px 44px rgba(28,34,46,.10);
  --topbar-bg: rgba(255,255,255,.82);
  --hero-grad: linear-gradient(120deg, rgba(45,212,191,.12), rgba(2,132,199,.10));
}
body.dark {
  color-scheme: dark;
  --bg: #0b1622; --card: #132234; --line: #223749;
  --gold: #2dd4bf; --gold-soft: #0c2f2a; --gold-deep: #5eead4;
  --dow: #38bdf8; --dow-soft: #082f49; --dow-deep: #7dd3fc;
  --ink: #eef4fa; --muted: #a5b3c4;
  --green: #2ecc71; --green-bg: #12331f; --red: #ff6b5e; --red-bg: #3a1a17;
  --amber: #f0a338; --amber-bg: #33260f; --blue: #38bdf8; --blue-bg: #082f49;
  --shadow: 0 1px 3px rgba(0,0,0,.45), 0 10px 30px rgba(0,0,0,.35);
  --shadow-lift: 0 6px 16px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.45);
  --topbar-bg: rgba(10,14,20,.78);
  --hero-grad: linear-gradient(120deg, rgba(45,212,191,.10), rgba(56,189,248,.08));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg); color: var(--ink); min-height: 100vh;
  transition: background .3s, color .3s;
}
body.dark { background: radial-gradient(1400px 600px at 85% -10%, rgba(45,212,191,.09), transparent 55%), radial-gradient(1100px 500px at 5% -5%, rgba(56,189,248,.07), transparent 50%), var(--bg); }
::selection { background: rgba(45,212,191,.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-track { background: transparent; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: embed; }
button { font-family: inherit; }
/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 12px clamp(16px, 4vw, 42px);
  background: var(--topbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand .logo { width: 47px; height: 47px; flex: 0 0 auto; filter: drop-shadow(0 4px 12px rgba(20,184,166,.3)); transition: transform .2s; }
.brand:hover .logo { transform: rotate(-4deg) scale(1.05); }
.brand .logo svg { width: 100%; height: 100%; display: block; }
.brand .brandname { font-size: 19px; font-weight: 900; letter-spacing: .4px; line-height: 1.2; direction: ltr; display: flex; gap: 4px; }
.brand .brandname .ai { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand .sub { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .2px; }
.spacer { flex: 1; }
.statuschip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(46,204,113,.18); animation: pulse 2.2s infinite; }
.dot.bad { background: var(--red); box-shadow: 0 0 0 4px rgba(255,107,94,.18); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.themebtn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; font-size: 17px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s; color: var(--ink);
}
.themebtn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
/* ===== Landing ===== */
.container { max-width: 1250px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
section[id] { scroll-margin-top: 78px; }
.navlinks { display: flex; gap: 4px; margin-inline-start: 12px; }
.navlinks a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 800; padding: 8px 14px; border-radius: 10px; transition: color .15s, background .15s; }
.navlinks a:hover { color: var(--ink); background: rgba(128,134,145,.12); }
@media (max-width: 820px) { .navlinks { display: none; } }
.hero-land { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 90px) 0 clamp(38px, 5vw, 66px); text-align: center; color: #eef3fa; background: linear-gradient(180deg, rgba(6,10,17,.58), rgba(6,10,17,.30) 45%, rgba(6,10,17,.72)), url('/assets/img/hero.webp') center 24% / cover no-repeat; }
.hero-land h1, .hero-land h2 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.75), 0 0 40px rgba(0,0,0,.5); }
.hero-land p.lead { color: #dde5ef; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.hero-land .stat span { color: #adbac9; }
.hero-land .meta-line { color: #a2b2c4; }
.hero-land .pill { background: rgba(13,20,32,.72); border-color: rgba(255,255,255,.14); color: #d6dfeb; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-land .cta.ghost { background: rgba(13,20,32,.72); color: #eef3fa; border-color: rgba(255,255,255,.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-land::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 62%, var(--bg) 100%); }
.hero-land .container { position: relative; z-index: 2; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; opacity: .5; }
.hero-glow.g1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(45,212,191,.55), transparent 65%); top: -160px; inset-inline-start: -120px; animation: drift1 16s ease-in-out infinite alternate; }
.hero-glow.g2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(56,189,248,.5), transparent 65%); bottom: -200px; inset-inline-end: -140px; animation: drift2 19s ease-in-out infinite alternate; }
body:not(.dark) .hero-glow { opacity: .3; }
@keyframes drift1 { to { transform: translate(70px, 40px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-80px, -50px) scale(1.1); } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 17px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--muted); box-shadow: var(--shadow); margin-bottom: 20px; }
.pill .dot { width: 8px; height: 8px; }
.hero-land h1, .hero-land h2 { font-size: clamp(27px, 5vw, 50px); font-weight: 900; line-height: 1.4; letter-spacing: .2px; }
.hero-land h1 em, .hero-land h2 em { font-style: normal; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--dow)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-land p.lead { color: var(--muted); font-size: clamp(13.5px, 1.6vw, 16px); font-weight: 600; margin: 16px auto 0; max-width: 780px; line-height: 2.1; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 13px 32px; border-radius: 14px; font-size: 14.5px; font-weight: 900; text-decoration: none; transition: transform .15s, box-shadow .15s, filter .15s; }
.cta.main { color: #050b13; background: linear-gradient(135deg, #5eead4, #2dd4bf 60%, #14b8a6); box-shadow: 0 8px 24px rgba(20,184,166,.35); }
.cta.main:hover { transform: translateY(-3px); filter: brightness(1.06); }
.cta.ghost { color: var(--ink); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta.ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.stats-row { display: flex; gap: clamp(20px, 4vw, 56px); justify-content: center; flex-wrap: wrap; margin-top: clamp(30px, 4vw, 46px); }
.stat b { display: block; font-size: clamp(22px, 3vw, 32px); font-weight: 900; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 700; }
.meta-line { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 24px; }
.sec-title { font-size: clamp(20px, 3vw, 28px); font-weight: 900; text-align: center; }
.sec-sub { color: var(--muted); font-size: 13.5px; font-weight: 600; text-align: center; max-width: 720px; margin: 9px auto 0; line-height: 2; }
.features { padding: clamp(42px, 6vw, 74px) 0; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 32px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; position: relative; overflow: hidden; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feat::after { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--dow)); opacity: 0; transition: opacity .2s; }
.feat:hover::after { opacity: 1; }
.feat .fic { font-size: 27px; margin-bottom: 11px; }
.feat h3, .feat h4 { font-size: 15px; font-weight: 900; margin-bottom: 7px; }
.feat p { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 2; }
.dash-sec { padding: clamp(42px, 6vw, 74px) 0 54px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(128,134,145,.05), transparent 260px); }
.dash-head { margin-bottom: 28px; }
.navcta { text-decoration: none; font-size: 12.5px; font-weight: 900; padding: 9px 18px; border-radius: 11px; transition: transform .15s, filter .15s, box-shadow .15s; white-space: nowrap; }
.navcta.main { color: #050b13; background: linear-gradient(135deg, #5eead4, #14b8a6); box-shadow: 0 4px 14px rgba(20,184,166,.3); }
.navcta.ghost { color: var(--ink); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.navcta:hover { transform: translateY(-2px); filter: brightness(1.05); }
@media (max-width: 560px) { .navcta.ghost { display: none; } }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; padding: 10px 14px; gap: 10px; }
  .brand .sub { display: none; }
  .brand .brandname { font-size: 15.5px; }
  .brand .logo { width: 38px; height: 38px; }
  .themebtn { width: 38px; height: 38px; font-size: 15px; }
  .navcta { padding: 8px 13px; font-size: 11.5px; }
  .statuschip { order: 10; flex-basis: 100%; justify-content: center; font-size: 11.5px; padding: 6px 10px; }
}
.services { padding: 0 0 clamp(42px, 6vw, 74px); }
.howto { padding: clamp(42px, 6vw, 74px) 0; border-top: 1px solid var(--line); background: var(--hero-grad); }
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px; margin-top: 30px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.stepnum { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #5eead4, #14b8a6); color: #050b13; font-weight: 900; font-size: 17px; margin-bottom: 12px; }
.step h3, .step h4 { font-size: 15px; font-weight: 900; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 2; margin-bottom: 10px; }
.steplink { color: var(--gold-deep); font-size: 12.5px; font-weight: 900; text-decoration: none; }
.steplink:hover { text-decoration: underline; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 32px; }
.shots a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.shots a:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lift); }
.shots img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: top; }
.footlinks { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.footlinks a { color: var(--muted); font-size: 12px; font-weight: 800; text-decoration: none; transition: color .15s; }
.footlinks a:hover { color: var(--gold-deep); }
/* ===== TradeSgnl-style sections ===== */
.sec-title em { font-style: normal; background: linear-gradient(90deg, #2dd4bf, #38bdf8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.statsband { padding: clamp(38px, 5vw, 62px) 0; border-bottom: 1px solid var(--line); }
.bigstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-top: 30px; text-align: center; }
.bstat { padding: 10px; border-inline-start: 1px solid var(--line); }
.bstat:first-child { border-inline-start: none; }
.bstat b { display: block; font-size: clamp(26px, 4vw, 44px); font-weight: 900; color: var(--ink); direction: ltr; }
.bstat span { font-size: 11.5px; color: var(--muted); font-weight: 800; letter-spacing: .6px; }
.probsec { padding: clamp(42px, 6vw, 74px) 0; border-top: 1px solid var(--line); }
.vsgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
@media (max-width: 860px) { .vsgrid { grid-template-columns: 1fr; } }
.vshead { text-align: center; font-size: 16px; font-weight: 900; margin-bottom: 14px; }
.vshead.bad { color: var(--red); } .vshead.good { color: var(--gold-deep); }
.vsitem { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px; margin-bottom: 12px; transition: transform .15s, box-shadow .15s; }
.vsitem:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.vsitem .vic { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.vsitem.bad .vic { background: rgba(248,113,113,.12); }
.vsitem.good .vic { background: rgba(45,212,191,.12); }
.vsitem h4, .vsitem h5 { font-size: 13.5px; font-weight: 900; margin-bottom: 3px; }
.vsitem.bad h4, .vsitem.bad h5 { color: var(--red); } .vsitem.good h4, .vsitem.good h5 { color: var(--dow-deep); }
.vsitem p { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.9; }
.cmpsec { padding: clamp(42px, 6vw, 74px) 0; border-top: 1px solid var(--line); }
.cmpwrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.cmptable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.cmptable th { padding: 14px 16px; font-size: 13px; border-bottom: 2px solid var(--line); text-align: right; }
.cmptable th.us { color: var(--gold-deep); }
.cmptable td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 600; white-space: normal; }
.cmptable tr:last-child td { border-bottom: none; }
.cmptable td.yes { color: var(--gold-deep); font-weight: 800; }
.cmptable td.no { color: var(--muted); }
.faqsec { padding: clamp(42px, 6vw, 74px) 0 60px; border-top: 1px solid var(--line); }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 13px; margin-top: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 900; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 21px; color: var(--gold-deep); font-weight: 900; flex: 0 0 auto; }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 18px 16px; color: var(--muted); font-size: 13px; line-height: 2.1; font-weight: 600; }
/* ===== مشغل شرح الربط ===== */
.player { max-width: 920px; margin: 34px auto 0; background: #0a1522; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lift); }
.pv-screen { position: relative; background: #050b13; cursor: pointer; }
.pv-screen img { width: 100%; display: block; max-height: 500px; object-fit: contain; transition: opacity .25s; }
.pv-badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; background: rgba(45,212,191,.14); color: #5eead4; border: 1px solid rgba(45,212,191,.35); font-size: 11px; font-weight: 900; padding: 4px 13px; border-radius: 999px; backdrop-filter: blur(4px); }
.pv-bar { height: 5px; background: rgba(45,212,191,.12); }
.pv-prog { height: 100%; width: 0; background: linear-gradient(90deg, #2dd4bf, #38bdf8); }
.pv-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 11px; flex-wrap: wrap; }
.pv-btn { border: 1px solid rgba(45,212,191,.3); background: rgba(45,212,191,.08); color: #5eead4; border-radius: 10px; padding: 7px 18px; font-weight: 900; font-size: 13px; cursor: pointer; font-family: inherit; transition: background .15s, transform .15s; }
.pv-btn:hover { background: rgba(45,212,191,.2); transform: translateY(-1px); }
.pv-count { color: var(--muted); font-size: 12.5px; font-weight: 800; }
/* ===== شريط الوسطاء ===== */
.brokers { padding: clamp(36px, 5vw, 60px) 0 48px; border-top: 1px solid var(--line); overflow: hidden; }
.marq { margin-top: 30px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marq-track { display: flex; width: max-content; direction: ltr; animation: marq 28s linear infinite; }
.marq:hover .marq-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-33.3333%); } }
.bchip { display: inline-flex; align-items: center; gap: 9px; margin: 0 8px; padding: 13px 28px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); font-weight: 900; font-size: 15px; color: var(--ink); white-space: nowrap; box-shadow: var(--shadow); }
.bchip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #2dd4bf, #38bdf8); }
/* ===== قسم تليجرام ===== */
.tgsec { padding: clamp(42px, 6vw, 74px) 0; border-top: 1px solid var(--line); background: var(--hero-grad); }
.tggrid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: center; }
@media (max-width: 900px) { .tggrid { grid-template-columns: 1fr; } .phone { margin-inline: auto; } }
.tg-lead { color: var(--muted); font-size: 14px; font-weight: 600; line-height: 2.15; margin: 14px 0 18px; }
.tg-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tg-list li { font-size: 13px; font-weight: 700; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 11px 15px; }
.phone { width: 305px; max-width: 100%; background: #0c1524; border: 3px solid #223749; border-radius: 38px; padding: 10px; box-shadow: var(--shadow-lift), 0 0 70px rgba(45,212,191,.14); position: relative; }
.p-notch { width: 110px; height: 20px; background: #0c1524; border-radius: 0 0 14px 14px; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 3; }
.p-screen { background: #0e1621; border-radius: 28px; overflow: hidden; }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 26px 14px 12px; background: #17212b; }
.tg-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #2dd4bf, #0284c7); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; color: #06131f; flex: 0 0 auto; }
.tg-name { font-size: 12.5px; font-weight: 900; color: #fff; }
.tg-sub { font-size: 10.5px; color: #7d8b99; font-weight: 600; }
.tg-chat { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 330px; }
.tg-msg { background: #182533; color: #dfe7ee; border-radius: 12px 12px 12px 3px; padding: 10px 13px; font-size: 11.5px; line-height: 1.95; font-weight: 600; max-width: 94%; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.tg-msg b { color: #5eead4; }
.tg-msg .buy { color: #34d399; font-weight: 900; }
.tg-msg .sell { color: #f87171; font-weight: 900; }
.tg-time { display: block; text-align: left; font-size: 9.5px; color: #7d8b99; margin-top: 4px; }
/* ===== Layout ===== */
.wrap { padding: 18px clamp(16px, 4vw, 42px) 40px; }
#loader { text-align: center; padding: 80px 0; color: var(--muted); font-weight: 700; }
.spin { width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; border: 4px solid var(--gold-soft); border-top-color: var(--gold); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
#errbox { display: none; background: var(--red-bg); border: 1px solid rgba(192,57,43,.35); color: var(--red); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  padding: 11px 22px; border-radius: 13px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; font-weight: 800; font-size: 14px; color: var(--muted); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, color .15s;
}
.tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tab.active { color: #fff; }
.tab.active.ov { background: linear-gradient(135deg, #6b7280, #374151); border-color: transparent; }
.tab.active.gold { background: linear-gradient(135deg, #2dd4bf, #0d9488); border-color: transparent; box-shadow: 0 6px 18px rgba(20,184,166,.35); }
.tab.active.dow { background: linear-gradient(135deg, #0ea5e9, #075985); border-color: transparent; box-shadow: 0 6px 18px rgba(2,132,199,.35); }
.tab.active.shadow { background: linear-gradient(135deg, #6a5acd, #453a94); border-color: transparent; box-shadow: 0 6px 18px rgba(106,90,205,.35); }
.pane { display: none; }
.pane.active { display: block; animation: fade .35s; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* ===== KPIs ===== */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 13px; margin-bottom: 18px; }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 17px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.kpi::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; opacity: .9; }
.kpi.g::before { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
.kpi.d::before { background: linear-gradient(180deg, var(--dow), var(--dow-deep)); }
.kpi.s::before { background: linear-gradient(180deg, #8b7cf0, #5b4bc4); }
.kpi.n::before { background: linear-gradient(180deg, #8b93a1, #565e6b); }
.kpi .lbl { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.kpi .val { font-size: 23px; font-weight: 900; line-height: 1.15; }
.kpi .hint { font-size: 11px; color: var(--muted); margin-top: 6px; font-weight: 600; line-height: 1.7; }
.pos { color: var(--green); } .neg { color: var(--red); }
/* ===== Cards & grid ===== */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 15px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-lift); }
.card h2 { font-size: 14.5px; font-weight: 900; margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.span12 { grid-column: span 12; } .span8 { grid-column: span 8; } .span6 { grid-column: span 6; } .span4 { grid-column: span 4; }
@media (max-width: 980px) { .span8, .span6, .span4 { grid-column: span 12; } }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.b-buy { background: var(--green-bg); color: var(--green); } .b-sell { background: var(--red-bg); color: var(--red); }
.b-neutral { background: #eef0f3; color: #565e6b; } .b-warn { background: var(--amber-bg); color: var(--amber); }
.b-info { background: var(--blue-bg); color: var(--blue); }
body.dark .b-neutral { background: #232b3a; color: #9aa4b2; }
/* ===== Hero decision ===== */
.hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero .big { font-size: 38px; font-weight: 900; letter-spacing: 1px; direction: ltr; padding: 10px 28px; border-radius: 18px; }
.hero .facts { display: flex; gap: 20px; flex-wrap: wrap; }
.fact .k { font-size: 11px; color: var(--muted); font-weight: 700; } .fact .v { font-size: 17px; font-weight: 900; margin-top: 2px; }
.confwrap { flex: 1 1 220px; min-width: 190px; }
.confbar { height: 12px; background: rgba(128,134,145,.2); border-radius: 999px; overflow: hidden; margin-top: 7px; }
.confbar > div { height: 100%; border-radius: 999px; transition: width .7s cubic-bezier(.2,.8,.2,1); }
/* ===== Paths ===== */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; }
.path { border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; background: var(--bg); transition: transform .15s; }
.path:hover { transform: translateY(-2px); }
.path .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.path .nm { font-weight: 900; font-size: 13.5px; color: var(--ink); }
.path .stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; margin-bottom: 8px; font-weight: 700; }
.path .stats b { color: var(--ink); font-size: 12.5px; }
.minibar { height: 6px; background: rgba(128,134,145,.2); border-radius: 999px; overflow: hidden; margin-bottom: 9px; }
.minibar > div { height: 100%; border-radius: 999px; transition: width .6s; }
.reason { font-size: 12px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); border-radius: 10px; padding: 10px 12px; line-height: 1.95; word-break: break-word; font-weight: 600; }
body.dark .reason { color: #d7dee8; background: #1a2130; }
body.dark .path { background: #10151f; }
.nodata { opacity: .55; }
/* ===== Controls ===== */
.ctlrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepbtn { width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); font-size: 21px; font-weight: 900; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: var(--shadow); }
.stepbtn.g { color: var(--gold-deep); } .stepbtn.d { color: var(--dow-deep); }
.stepbtn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.stepbtn:disabled { opacity: .4; cursor: not-allowed; }
.lvlbox { text-align: center; min-width: 84px; }
.lvlbox .n { font-size: 33px; font-weight: 900; line-height: 1; }
.lvlbox.g .n { color: var(--gold-deep); } .lvlbox.d .n { color: var(--dow-deep); }
.lvlbox .t { font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 700; }
.lvldots { display: flex; gap: 5px; justify-content: center; margin-top: 6px; direction: ltr; }
.lvldots span { width: 14px; height: 6px; border-radius: 3px; background: rgba(128,134,145,.25); }
.lvldots span.g.on { background: var(--gold); } .lvldots span.d.on { background: var(--dow); }
.modebtn { padding: 11px 20px; border-radius: 13px; border: 1px solid var(--line); cursor: pointer; font-weight: 900; font-size: 13px; background: var(--card); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.modebtn.auto { color: var(--green); } .modebtn.paused { color: var(--red); }
.modebtn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-lift); } .modebtn:disabled { opacity: .5; cursor: wait; }
.ctlnote { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 10px; font-weight: 600; }
/* ===== Triggers ===== */
.trigrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.trigbtn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 13px; border: none; cursor: pointer; font-weight: 900; font-size: 13.5px; color: #fff; box-shadow: var(--shadow); transition: transform .15s, filter .15s, box-shadow .15s; }
.trigbtn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); box-shadow: var(--shadow-lift); }
.trigbtn:disabled { opacity: .6; cursor: wait; }
.trigbtn.g { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.trigbtn.d1 { background: linear-gradient(135deg, #0ea5e9, #075985); }
.trigbtn.d2 { background: linear-gradient(135deg, #6a5acd, #453a94); }
.trigres { font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
/* ===== AI eval ===== */
.pathai { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; margin-bottom: 12px; }
.paicard { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: var(--bg); }
.paicard .pt { font-size: 12px; font-weight: 900; display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 5px; }
.paicard .pv { font-size: 11px; line-height: 1.7; color: var(--muted); font-weight: 600; }
.verdot { font-size: 10px; font-weight: 900; padding: 2px 9px; border-radius: 999px; }
.v-strong { background: var(--green-bg); color: var(--green); } .v-mid { background: var(--amber-bg); color: var(--amber); } .v-weak { background: #eef0f3; color: #6b7280; } .v-conf { background: var(--red-bg); color: var(--red); }
body.dark .v-weak { background: #232b3a; color: #9aa4b2; }
body.dark .paicard { background: #10151f; }
#toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%); background: var(--ink); color: var(--card); padding: 11px 22px; border-radius: 12px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 60; box-shadow: var(--shadow-lift); }
#toast.show { opacity: .97; }
.plist { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.prob { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; background: var(--bg); }
body.dark .prob { background: #10151f; }
.prob .txt { font-size: 12px; line-height: 1.75; flex: 1; color: var(--ink); font-weight: 600; }
.prob .when { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.okmsg { text-align: center; color: var(--green); font-size: 13px; padding: 20px 0; font-weight: 800; }
.aihead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.aiscore { font-size: 12px; color: var(--muted); font-weight: 600; }
.aiblock { margin-bottom: 10px; } .aiblock .bt { font-size: 12px; font-weight: 900; margin-bottom: 4px; }
.aiblock.g .bt { color: var(--gold-deep); } .aiblock.d .bt { color: var(--dow-deep); }
.aiblock .bc { font-size: 12px; line-height: 2; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; white-space: pre-line; font-weight: 600; }
body.dark .aiblock .bc { color: #d7dee8; background: #10151f; }
/* ===== Shadow vs Live ===== */
.shrow.diff td { background: rgba(180,83,9,.10); }
body.dark .shrow.diff td { background: rgba(240,163,56,.10); }
.shtag { font-size: 10.5px; font-weight: 900; padding: 2px 9px; border-radius: 999px; }
.sh-guard { background: var(--blue-bg); color: var(--blue); }
.sh-bold { background: var(--amber-bg); color: var(--amber); }
.sh-same { background: var(--green-bg); color: var(--green); }
/* ===== Tables & charts ===== */
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: right; color: var(--muted); font-size: 11px; font-weight: 800; padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tbody tr, table tr { transition: background .15s; }
table tr:hover td { background: rgba(128,134,145,.06); }
.tblwrap { overflow-x: auto; }
.chartbox { position: relative; height: 270px; }
.chartbox.sm { height: 225px; }
/* ===== Why decision ===== */
.why { display: flex; flex-direction: column; gap: 13px; }
.whyrow { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.95; font-weight: 600; }
.whyrow .ic { flex: 0 0 auto; font-size: 15px; margin-top: 1px; }
.whyeq { font-size: 12px; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 13px; line-height: 2.2; word-break: break-word; font-weight: 600; }
body.dark .whyeq { background: #10151f; }
.whybars { display: flex; flex-direction: column; gap: 7px; }
.wbar { display: grid; grid-template-columns: 110px 1fr minmax(130px, auto); gap: 10px; align-items: center; font-size: 11.5px; font-weight: 700; }
.wbar .trk { position: relative; height: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; direction: ltr; }
body.dark .wbar .trk { background: #10151f; }
.wbar .trk i { position: absolute; top: 2px; bottom: 2px; border-radius: 999px; }
.wbar .lbl2 { color: var(--muted); white-space: nowrap; }
@media (max-width: 680px) { .wbar { grid-template-columns: 90px 1fr; } .wbar .lbl2 { grid-column: 1 / -1; } }
/* ===== Footer ===== */
footer { border-top: 1px solid var(--line); margin-top: 34px; padding: 26px clamp(16px, 4vw, 42px); background: var(--card); }
.foot-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; direction: ltr; }
.foot-brand .mini { width: 32px; height: 32px; flex: 0 0 auto; }
.foot-brand .mini svg { width: 100%; height: 100%; display: block; }
.foot-brand .bot { color: var(--muted); font-weight: 700; font-size: 12px; }
.foot { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.disclaimer { width: 100%; color: var(--muted); font-size: 11px; line-height: 1.9; border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 6px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ============================================================
   Technical additions — no change to existing visuals.
   ============================================================ */

/* invisible until focused */
.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: #05121a; padding: 12px 22px;
  border-radius: 0 0 12px 0; font-weight: 900; text-decoration: none; }
.skip-link:focus { inset-inline-start: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* reserve image space to prevent layout shift */
#pvImg { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }

/* mobile navigation — appears only below 820px, where the original had none */
.navtoggle { display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  font-size: 18px; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s; }
.navtoggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.mobilenav { position: fixed; inset: 62px 0 0 0; z-index: 39; background: var(--bg);
  border-top: 1px solid var(--line); padding: 18px clamp(16px,5vw,32px) 40px;
  display: none; flex-direction: column; gap: 4px; overflow-y: auto; overscroll-behavior: contain; }
.mobilenav.open { display: flex; }
.mobilenav a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 800;
  padding: 15px 16px; border-radius: 12px; border: 1px solid transparent; }
.mobilenav a:hover, .mobilenav a:focus-visible { background: var(--card); border-color: var(--line); }
.mobilenav .divider { height: 1px; background: var(--line); margin: 12px 2px; }
.mobilenav .cta { justify-content: center; margin-top: 4px; }
@media (max-width: 820px) { .navtoggle { display: inline-flex; align-items: center; justify-content: center; } }
@media (min-width: 821px) { .mobilenav { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mobilenav.open { animation: none; } }

/* ============================================================
   Styles for the other pages (about-us, contacts, blog, 404).
   Not used by the landing page — kept so the shared stylesheet
   continues to serve them.
   ============================================================ */
/* ---------- article / content pages ---------- */
.page-hero {
  border-bottom: 1px solid var(--line); padding: clamp(38px, 6vw, 68px) 0 clamp(28px, 4vw, 44px);
  background: var(--hero-grad); text-align: center;
}
.page-hero h1 { font-size: clamp(25px, 4.4vw, 42px); font-weight: 900; line-height: 1.45; }
.page-hero p { color: var(--muted); font-size: clamp(13.5px, 1.6vw, 15.5px);
  font-weight: 600; margin: 14px auto 0; max-width: 720px; line-height: 2; }
.crumbs { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-deep); }
.prose { max-width: 780px; margin-inline: auto; padding: clamp(30px, 5vw, 52px) 0 60px; line-height: 2.15; }
.prose h2 { font-size: clamp(19px, 2.6vw, 25px); font-weight: 900; margin: 40px 0 14px; }
.prose h3 { font-size: clamp(16px, 2.1vw, 19px); font-weight: 800; margin: 30px 0 10px; }
.prose p { margin-bottom: 17px; color: var(--ink); font-size: 15px; font-weight: 400; }
.prose ul, .prose ol { margin: 0 22px 20px 0; padding-inline-start: 20px; }
.prose li { margin-bottom: 9px; font-size: 15px; font-weight: 400; }
.prose a { color: var(--gold-deep); font-weight: 700; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 22px 0; }
.prose blockquote {
  margin: 24px 0; padding: 16px 20px; border-inline-start: 4px solid var(--gold);
  background: var(--gold-soft); border-radius: 0 12px 12px 0; font-weight: 600;
}

/* ---------- blog listing ---------- */
.postgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px; padding: clamp(30px, 5vw, 50px) 0 60px; }
.postcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s; text-decoration: none; color: inherit;
}
.postcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.postcard .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.postcard h2 { font-size: 17px; font-weight: 900; line-height: 1.65; }
.postcard p { font-size: 13.5px; color: var(--muted); font-weight: 600; line-height: 1.95; flex: 1; }
.postcard .meta { font-size: 12px; color: var(--muted); font-weight: 700; }
.postcard .more { font-size: 13px; font-weight: 900; color: var(--gold-deep); }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px;
  padding: clamp(30px, 5vw, 50px) 0 60px; align-items: start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.formcard, .infocard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px clamp(20px, 3vw, 30px);
}
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-family: inherit; font-size: 14.5px; font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(20,184,166,.16);
}
.field textarea { min-height: 145px; resize: vertical; }
.field .hint { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 5px; }
.infocard .row { display: flex; gap: 13px; align-items: flex-start; padding: 14px 0;
  border-bottom: 1px solid var(--line); }
.infocard .row:last-child { border-bottom: none; }
.infocard .row .ico { font-size: 19px; flex: 0 0 auto; }
.infocard .row b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.infocard .row span, .infocard .row a { font-size: 13px; color: var(--muted); font-weight: 600;
  text-decoration: none; word-break: break-word; }
.infocard .row a:hover { color: var(--gold-deep); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(60px, 12vw, 130px) 0; }
.notfound .code { font-size: clamp(66px, 15vw, 132px); font-weight: 900; line-height: 1;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--dow));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- brand (h1 freed for page headline) ---------- */
.brand .brandname { font-size: 19px; font-weight: 900; letter-spacing: .4px; line-height: 1.2;
  direction: ltr; display: flex; gap: 4px; }
.brand .brandname .ai { background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (max-width: 820px) { .brand .brandname { font-size: 15.5px; } }
.foot-brand { text-decoration: none; color: inherit; }
.foot-brand .ai { background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.foot-brand .mini svg { width: 100%; height: 100%; display: block; }

/* ---------- topbar: 9 nav items need breathing room ---------- */
@media (max-width: 1280px) {
  .navlinks a { padding: 8px 10px; font-size: 12.5px; }
  .brand .sub { display: none; }
}
@media (max-width: 1120px) {
  .navlinks a { padding: 7px 8px; font-size: 12px; }
  .topbar .statuschip { display: none; }
}
@media (max-width: 980px) {
  .navcta.ghost { display: none; }
}

/* ---------- language switcher ---------- */
.langswitch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  font-size: 12.5px; font-weight: 900; text-decoration: none; white-space: nowrap;
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.langswitch::before { content: "🌐"; font-size: 13px; }
.langswitch:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--gold-deep); }
@media (max-width: 1120px) { .langswitch { padding: 7px 10px; font-size: 12px; } }
@media (max-width: 820px)  { .langswitch { display: none; } }

/* ============================================================
   Pillar articles — TOC, comparison tables, lede
   ============================================================ */
.prose .lede { font-size: 16.5px; font-weight: 600; line-height: 2.1; color: var(--ink);
  border-inline-start: 4px solid var(--gold); padding-inline-start: 18px; margin-bottom: 26px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px clamp(18px,3vw,28px); margin: 30px 0 36px; box-shadow: var(--shadow); }
.toc h2 { font-size: 15px !important; font-weight: 900; margin: 0 0 14px !important;
  color: var(--muted); letter-spacing: .3px; text-transform: uppercase; }
.toc ol { margin: 0; padding-inline-start: 20px; counter-reset: toc; list-style: none; }
.toc li { counter-increment: toc; margin-bottom: 9px; font-size: 14.5px; position: relative; }
.toc li::before { content: counter(toc); position: absolute; inset-inline-start: -26px; top: 1px;
  width: 19px; height: 19px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-deep);
  font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--gold-deep); text-decoration: underline; }
.prose h2[id] { scroll-margin-top: 84px; padding-top: 6px; }
table.cmp { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.cmp th, table.cmp td { padding: 13px 15px; text-align: start; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.85; }
table.cmp thead th { background: var(--gold-soft); color: var(--gold-deep); font-weight: 900;
  font-size: 13px; border-bottom: 2px solid var(--line); }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp tbody tr:hover { background: rgba(128,140,160,.05); }
@media (max-width: 620px) { table.cmp { font-size: 12.5px; } table.cmp th, table.cmp td { padding: 10px 9px; } }
.prose ol > li { margin-bottom: 11px; }

/* ============================================================
   Core Web Vitals — CLS / LCP / INP
   ============================================================ */

/* ---------- CLS: reserve the dashboard's space ----------
   #loader and #app occupy the same box, so the swap from
   skeleton to live data cannot move anything below it. */
#loader, #app { min-height: 620px; }
#pane-ov, #pane-gold, #pane-dow, #pane-shadow { min-height: 560px; }
@media (max-width: 820px) {
  #loader, #app { min-height: 900px; }
  #pane-ov, #pane-gold, #pane-dow, #pane-shadow { min-height: 840px; }
}
/* Charts must not resize their own container. */
canvas { max-width: 100%; }

/* ---------- CLS: the carousel keeps a fixed aspect box ---------- */
#pvScreen { contain: layout; }
#pvImg { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: contain; background: var(--card); }

/* ---------- CLS: font swap ----------
   Cairo arrives after first paint. Matching the fallback's metrics
   keeps the reflow small. Values are approximate; self-hosting the
   font is the complete fix. */
@font-face {
  font-family: "Cairo Fallback";
  src: local("Tahoma"), local("Arial");
  size-adjust: 96%;
  ascent-override: 98%;
  descent-override: 34%;
  line-gap-override: 0%;
}
body { font-family: "Cairo", "Cairo Fallback", "Segoe UI", Tahoma, Arial, sans-serif; }

/* ---------- INP/LCP: skip rendering work for off-screen sections ----------
   The browser does not lay out or paint these until they approach the
   viewport, which removes a large amount of work from first load.
   contain-intrinsic-size supplies a placeholder height so scrollbar
   position stays stable — without it this would itself cause CLS. */
.features, .services, .tgsec, .howto, .faqsec, .cmpsec, .statsband {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}
/* The hero and dashboard must never be skipped — they are above the fold
   and the dashboard is the LCP candidate on smaller screens. */
.hero-land, .dash-sec { content-visibility: visible; }

/* ---------- Reduced motion: cover every animation ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-glow { animation: none !important; }
  .dot.ok { animation: none !important; }
}

/* ---------- LCP: serve the small hero to small screens ----------
   84 KB -> 26 KB below 820px. Paired with a media-scoped <link rel="preload">
   in the head so the browser fetches only the variant it will use. */
@media (max-width: 820px) {
  .hero-land {
    background: linear-gradient(180deg, rgba(6,10,17,.58), rgba(6,10,17,.30) 45%, rgba(6,10,17,.72)),
                url('/assets/img/hero-mobile.webp') center 24% / cover no-repeat;
  }
}

/* ============================================================
   CONVERSION COMPONENTS
   ============================================================ */

/* ---------- CTA microcopy: friction reducers under buttons ---------- */
.cta-note { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 12px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note span { display: inline-flex; align-items: center; gap: 5px; }
.hero-land .cta-note { color: #c3cfdd; }

/* ---------- button hierarchy ---------- */
.cta.main { position: relative; }
.cta.xl { padding: 16px 40px; font-size: 16px; border-radius: 15px; }
.cta.main:focus-visible, .navcta.main:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- verifiable-proof / trust band ---------- */
.trustband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--card); padding: clamp(30px,4vw,48px) 0; }
.trustgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 18px; }
.trustcard { display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.trustcard .tico { font-size: 21px; flex: 0 0 auto; line-height: 1.2; }
.trustcard b { display: block; font-size: 14px; font-weight: 900; margin-bottom: 5px; }
.trustcard p { font-size: 12.8px; color: var(--muted); font-weight: 600; line-height: 1.85; }
.trustcard a { color: var(--gold-deep); font-weight: 800; }
.proof-strip { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.proof-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px;
  border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep);
  border: 1px solid rgba(13,148,136,.2); font-size: 12.5px; font-weight: 800; }

/* ---------- pricing explainer ---------- */
.pricegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 18px; margin-top: 28px; }
.pricecard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow); }
.pricecard h3 { font-size: 16px; font-weight: 900; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pricecard p { font-size: 13.2px; color: var(--muted); font-weight: 600; line-height: 1.95; }
.pricecard ul { margin: 12px 0 0; padding-inline-start: 18px; }
.pricecard li { font-size: 13px; font-weight: 600; margin-bottom: 7px; line-height: 1.8; }

/* ---------- sticky mobile CTA bar ---------- */
.mobilecta { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: none;
  gap: 9px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--topbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.10); }
.mobilecta a { flex: 1; justify-content: center; padding: 13px 10px; font-size: 14px; border-radius: 13px; }
.mobilecta .wa { flex: 0 0 52px; display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; color: #06231a; font-size: 21px; text-decoration: none; border-radius: 13px; }
@media (max-width: 820px) {
  .mobilecta { display: flex; }
  body { padding-bottom: 78px; }
}

/* ---------- floating WhatsApp (desktop) ---------- */
.wa-float { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 44;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #06231a;
  display: flex; align-items: center; justify-content: center; font-size: 27px;
  text-decoration: none; box-shadow: 0 6px 22px rgba(37,211,102,.42);
  transition: transform .18s, box-shadow .18s; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37,211,102,.55); }
.wa-float::after { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.45); animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .9 } 70% { transform: scale(1.35); opacity: 0 } 100% { opacity: 0 } }
@media (max-width: 820px) { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* ---------- inline conversion prompt inside articles ---------- */
.inline-cta { background: var(--gold-soft); border: 1px solid rgba(13,148,136,.25);
  border-radius: var(--radius); padding: 22px 24px; margin: 32px 0; }
.inline-cta h3 { font-size: 16px; font-weight: 900; margin-bottom: 8px; }
.inline-cta p { font-size: 13.5px; color: var(--ink); font-weight: 600; line-height: 1.95; margin-bottom: 14px; }
body.dark .inline-cta { background: var(--gold-soft); border-color: rgba(94,234,212,.22); }

/* ---------- form trust microcopy ---------- */
.form-trust { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px;
  font-size: 12px; color: var(--muted); font-weight: 700; line-height: 1.8; }
.field .req { color: var(--red); }

/* ============================================================
   QA PASS — touch targets, small screens, 4K
   ============================================================ */

/* ---------- WCAG 2.5.5: interactive controls ≥44px on touch ----------
   Desktop sizing is unchanged; this only applies where a finger is used. */
@media (pointer: coarse), (max-width: 820px) {
  .themebtn, .navtoggle {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  }
  .navcta { padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center; }
  .cta { min-height: 46px; align-items: center; }
  .pv-btn, .modebtn, .trigbtn, .tab {
    min-height: 44px; padding-block: 11px; display: inline-flex; align-items: center; justify-content: center;
  }
  .faq summary { min-height: 48px; }
  .mobilenav a { min-height: 48px; display: flex; align-items: center; }
  .langswitch { min-height: 44px; }
}

/* the 700px block shrank these below the touch minimum */
@media (max-width: 700px) {
  .themebtn { width: 44px; height: 44px; font-size: 16px; }
  .navcta { padding: 12px 14px; font-size: 12px; }
}

/* ---------- 360px and below ---------- */
@media (max-width: 360px) {
  .container { padding-inline: 13px; }
  .hero-land h1 { font-size: 23px; line-height: 1.45; }
  .cta { padding: 13px 18px; font-size: 13.5px; }
  .cta-row { gap: 9px; }
  .cta-note { gap: 9px; font-size: 11px; }
  .proof-chip { font-size: 11.5px; padding: 7px 12px; }
  .mobilecta a { font-size: 12.5px; padding: 12px 6px; }
  .mobilecta { gap: 7px; padding-inline: 9px; }
  .statuschip { font-size: 10.5px; }
  .trustcard, .pricecard { padding: 15px 15px; }
  .toc { padding: 17px 15px; }
  .prose .lede { font-size: 15px; padding-inline-start: 13px; }
  table.cmp th, table.cmp td { padding: 9px 7px; font-size: 12px; }
}

/* ---------- very large screens: stop lines becoming unreadably wide ---------- */
@media (min-width: 1800px) {
  .container { max-width: 1400px; }
  .prose { max-width: 820px; }
}
@media (min-width: 2400px) {
  html { font-size: 17px; }
  .container { max-width: 1560px; }
}

/* ---------- landscape phones: the sticky bar eats too much height ---------- */
@media (max-height: 460px) and (orientation: landscape) {
  .mobilecta { padding-block: 6px; }
  .mobilecta a { padding: 9px 8px; }
  body { padding-bottom: 62px; }
  .mobilenav { inset-block-start: 56px; }
}

/* ---------- global overflow guard ---------- */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, canvas, table { max-width: 100%; }

/* ============================================================
   DESIGN PASS — even grids, broker logos, seamless marquee
   ============================================================ */

/* ---------- 8 feature cards: always tile evenly (4×2 → 2×4 → 1) ---------- */
.feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px; }
@media (max-width: 1180px) { .feat-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; } }
@media (max-width: 900px)  { .feat-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 560px)  { .feat-grid { grid-template-columns: 1fr !important; } }
.feat { display: flex; flex-direction: column; height: 100%; }
.feat p { flex: 1; }

/* ---------- 6 trust cards: 3×2 → 2×3 → 1 ---------- */
.trustgrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1000px) { .trustgrid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 620px)  { .trustgrid { grid-template-columns: 1fr !important; } }
.trustcard { height: 100%; }

/* ---------- 3 service / pricing cards stay 3-up then stack ---------- */
.pricegrid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
@media (max-width: 980px) { .pricegrid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 640px) { .pricegrid { grid-template-columns: 1fr !important; } }

/* ---------- broker logo tiles ---------- */
.marq { margin-top: 34px; }
.marq-track { animation-duration: 46s; }
.blogo {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; margin: 0 9px; height: 74px; min-width: 178px; padding: 0 26px;
  border-radius: 15px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.blogo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
.blogo svg { height: 26px; width: auto; display: block; }
.blogo .bw {
  font-family: "Cairo", system-ui, sans-serif; font-weight: 900; font-size: 19px;
  letter-spacing: -.3px; white-space: nowrap; direction: ltr; line-height: 1;
}
.blogo .bdot { width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 8px; flex: 0 0 auto; }
@media (max-width: 620px) {
  .blogo { height: 62px; min-width: 148px; padding: 0 18px; margin: 0 7px; }
  .blogo .bw { font-size: 16px; }
}

/* ---------- FTMO-style section accents ---------- */
.trustband { position: relative; overflow: hidden; }
.trustband::before {
  content: ""; position: absolute; inset-inline-start: 50%; top: -180px;
  width: 760px; height: 360px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(45,212,191,.13), transparent 68%);
  pointer-events: none;
}
#pricing { position: relative; overflow: hidden; }
#pricing::before {
  content: ""; position: absolute; inset-inline-start: 50%; top: -160px;
  width: 720px; height: 340px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(56,189,248,.12), transparent 68%);
  pointer-events: none;
}
.trustband > .container, #pricing > .container { position: relative; z-index: 1; }

/* ---------- WhatsApp: always bottom-right, in both directions ---------- */
.wa-float { inset-inline-end: auto; right: 22px; left: auto; }
html[dir="rtl"] .wa-float { right: 22px; left: auto; }

/* ---------- WhatsApp float: pill with label, expands on hover ---------- */
.wa-float {
  width: auto; min-width: 56px; height: 56px; border-radius: 999px;
  padding: 0 18px; gap: 9px; font-weight: 900; font-size: 14.5px;
  overflow: hidden; white-space: nowrap;
}
.wa-float .wa-ico { font-size: 25px; line-height: 1; }
.wa-float .wa-label { max-width: 0; opacity: 0; transition: max-width .28s ease, opacity .2s ease; }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 160px; opacity: 1; }
.wa-float { padding: 0 15px; }
.wa-float:hover { padding-inline-end: 20px; }

/* ============================================================
   FTMO-INSPIRED PALETTE  —  appended last so it wins the cascade
   Every pair below was contrast-checked; all clear WCAG AA.
   ============================================================ */
:root {
  --bg: #f5f7f9;  --card: #ffffff;  --line: #e2e7ec;
  --ink: #0f1216; --muted: #5a616e;
  --gold: #00A876;  --gold-deep: #067A5A;  --gold-soft: #ddf7ee;
  --dow: #0B6FC4;   --dow-deep: #08528f;   --dow-soft: #e2f0fc;
  --green: #067A5A; --green-bg: #ddf7ee;
  --red: #C0392B;   --red-bg: #fdeae7;
  --amber: #A8590A; --amber-bg: #fdf2e2;
  --blue: #0B6FC4;  --blue-bg: #e2f0fc;
  --shadow: 0 1px 2px rgba(15,18,22,.05), 0 12px 34px rgba(15,18,22,.07);
  --shadow-lift: 0 6px 14px rgba(15,18,22,.09), 0 22px 52px rgba(15,18,22,.12);
  --topbar-bg: rgba(255,255,255,.86);
  --hero-grad: linear-gradient(120deg, rgba(0,168,118,.10), rgba(11,111,196,.08));
}
body.dark {
  --bg: #121317;  --card: #1b1d23;  --line: #2b2e37;
  --ink: #f5f6f8; --muted: #a3a8b4;
  --gold: #00E5A0;  --gold-deep: #5FFFC4;  --gold-soft: #0b2a22;
  --dow: #4DA6FF;   --dow-deep: #9CCDFF;   --dow-soft: #0d2136;
  --green: #00E5A0; --green-bg: #0b2a22;
  --red: #FF6B6B;   --red-bg: #2e1414;
  --amber: #FFB454; --amber-bg: #2e2210;
  --blue: #4DA6FF;  --blue-bg: #0d2136;
  --shadow: 0 1px 3px rgba(0,0,0,.5), 0 14px 36px rgba(0,0,0,.42);
  --shadow-lift: 0 8px 20px rgba(0,0,0,.58), 0 28px 66px rgba(0,0,0,.5);
  --topbar-bg: rgba(14,15,19,.82);
  --hero-grad: linear-gradient(120deg, rgba(0,229,160,.09), rgba(77,166,255,.07));
}
body.dark {
  background:
    radial-gradient(1500px 620px at 84% -12%, rgba(0,229,160,.10), transparent 56%),
    radial-gradient(1200px 520px at 4% -6%, rgba(77,166,255,.08), transparent 52%),
    var(--bg);
}

/* ---------- الخدمات: 3 مربعات تملأ العرض ---------- */
.services .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 980px) { .services .feat-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 620px) { .services .feat-grid { grid-template-columns: 1fr !important; } }
.services .feat { padding: 26px 24px; }

/* ---------- FTMO-style polish ---------- */
.cta.main, .navcta.main {
  background: linear-gradient(135deg, #5FFFC4, #00E5A0 52%, #00A876);
  color: #06231a;
  box-shadow: 0 6px 20px rgba(0,168,118,.32);
}
.cta.main:hover, .navcta.main:hover { box-shadow: 0 10px 30px rgba(0,168,118,.46); }
body.dark .cta.main, body.dark .navcta.main { box-shadow: 0 6px 22px rgba(0,229,160,.28); }

.sec-title { letter-spacing: -.4px; }
.sec-title em {
  background: linear-gradient(90deg, var(--gold), var(--dow));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-land h1 em {
  background: linear-gradient(90deg, #5FFFC4, #00E5A0 45%, #4DA6FF);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand .brandname .ai, .foot-brand .ai {
  background: linear-gradient(90deg, #00E5A0, #4DA6FF);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.feat, .trustcard, .pricecard, .postcard, .blogo, .vsitem {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feat:hover, .trustcard:hover, .pricecard:hover {
  transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-lift);
}
.fic, .trustcard .tico { filter: saturate(1.15); }
.proof-chip { background: var(--gold-soft); color: var(--gold-deep); border-color: rgba(0,168,118,.26); }
.hero-glow.g1 { background: radial-gradient(circle, rgba(0,229,160,.55), transparent 65%); }
.hero-glow.g2 { background: radial-gradient(circle, rgba(77,166,255,.5), transparent 65%); }
.bchip::before, .blogo .bdot { background: linear-gradient(135deg, #00E5A0, #4DA6FF); }
.trustband::before { background: radial-gradient(ellipse at center, rgba(0,229,160,.14), transparent 68%); }
#pricing::before  { background: radial-gradient(ellipse at center, rgba(77,166,255,.13), transparent 68%); }
.dot.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(0,229,160,.20); }

/* ============================================================
   FINAL PALETTE  —  navy base restored, accents refined
   ============================================================ */
:root {
  --bg: #f2f7fa;  --card: #ffffff;  --line: #dde6ee;
  --ink: #101b28; --muted: #59677a;
  --gold: #00A67C;  --gold-deep: #057A5C;  --gold-soft: #dcf6ef;
  --dow: #0C74C8;   --dow-deep: #0A5591;   --dow-soft: #e3f0fb;
  --green: #057A5C; --green-bg: #dcf6ef;
  --red: #C0392B;   --red-bg: #fdeae7;
  --amber: #A8590A; --amber-bg: #fdf2e2;
  --blue: #0C74C8;  --blue-bg: #e3f0fb;
  --shadow: 0 1px 2px rgba(16,27,40,.05), 0 12px 32px rgba(16,27,40,.07);
  --shadow-lift: 0 6px 14px rgba(16,27,40,.09), 0 22px 50px rgba(16,27,40,.12);
  --topbar-bg: rgba(255,255,255,.85);
  --hero-grad: linear-gradient(120deg, rgba(0,166,124,.10), rgba(12,116,200,.08));
}
body.dark {
  --bg: #0b1622;  --card: #132234;  --line: #22384c;
  --ink: #eef4fa; --muted: #a7b6c8;
  --gold: #2ee6b0;  --gold-deep: #6ef0cd;  --gold-soft: #0c2f2a;
  --dow: #48b4f8;   --dow-deep: #8ed3fc;   --dow-soft: #082f49;
  --green: #2ee6b0; --green-bg: #0f3327;
  --red: #ff7a6e;   --red-bg: #3a1a17;
  --amber: #f5b24a; --amber-bg: #33260f;
  --blue: #48b4f8;  --blue-bg: #082f49;
  --shadow: 0 1px 3px rgba(0,0,0,.42), 0 14px 34px rgba(0,0,0,.34);
  --shadow-lift: 0 8px 18px rgba(0,0,0,.5), 0 26px 60px rgba(0,0,0,.44);
  --topbar-bg: rgba(11,22,34,.82);
  --hero-grad: linear-gradient(120deg, rgba(46,230,176,.09), rgba(72,180,248,.07));
}
body.dark {
  background:
    radial-gradient(1500px 620px at 85% -12%, rgba(46,230,176,.11), transparent 56%),
    radial-gradient(1200px 520px at 4% -6%, rgba(72,180,248,.09), transparent 52%),
    var(--bg);
}
.cta.main, .navcta.main {
  background: linear-gradient(135deg, #6ef0cd, #2ee6b0 52%, #00A67C);
  color: #04231b;
  box-shadow: 0 6px 20px rgba(0,166,124,.30);
}
.cta.main:hover, .navcta.main:hover { box-shadow: 0 10px 30px rgba(0,166,124,.44); }
body.dark .cta.main, body.dark .navcta.main { box-shadow: 0 6px 22px rgba(46,230,176,.26); }
.hero-land h1 em { background: linear-gradient(90deg, #6ef0cd, #2ee6b0 45%, #48b4f8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand .brandname .ai, .foot-brand .ai { background: linear-gradient(90deg, #2ee6b0, #48b4f8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bchip::before, .blogo .bdot { background: linear-gradient(135deg, #2ee6b0, #48b4f8); }
.hero-glow.g1 { background: radial-gradient(circle, rgba(46,230,176,.52), transparent 65%); }
.hero-glow.g2 { background: radial-gradient(circle, rgba(72,180,248,.48), transparent 65%); }
.trustband::before { background: radial-gradient(ellipse at center, rgba(46,230,176,.13), transparent 68%); }
#pricing::before  { background: radial-gradient(ellipse at center, rgba(72,180,248,.12), transparent 68%); }
.proof-chip { background: var(--gold-soft); color: var(--gold-deep); border-color: rgba(0,166,124,.24); }
.dot.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(46,230,176,.20); }

/* ============================================================
   ANIMATION  —  transform/opacity only, so it stays cheap
   ============================================================ */
:root { --ease: cubic-bezier(.22,.68,.36,1); }

/* scroll reveal — JS adds .in when the element enters the viewport */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }
.reveal:nth-child(5) { transition-delay: .28s; }
.reveal:nth-child(6) { transition-delay: .35s; }
.reveal:nth-child(7) { transition-delay: .42s; }
.reveal:nth-child(8) { transition-delay: .49s; }

/* refined hovers */
.feat, .trustcard, .pricecard, .postcard, .blogo, .vsitem, .cta, .navcta, .themebtn {
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.feat:hover, .trustcard:hover, .pricecard:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-lift); }
.postcard:hover { transform: translateY(-6px); }
.cta:hover, .navcta:hover { transform: translateY(-3px); }
.feat .fic, .trustcard .tico { transition: transform .3s var(--ease); }
.feat:hover .fic, .trustcard:hover .tico { transform: scale(1.14) rotate(-5deg); }

/* animated sheen across the primary CTA */
.cta.main { position: relative; overflow: hidden; }
.cta.main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.42) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 4.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen { 0%,72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* live pill breathes so the "system is running" claim reads as live */
.pill .dot.ok { animation: livePulse 2.1s ease-in-out infinite; }
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(46,230,176,.55); }
  70%     { box-shadow: 0 0 0 9px rgba(46,230,176,0); }
}

/* section headings rise into place */
.sec-title, .page-hero h1 { animation: riseIn .7s var(--ease) both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* underline sweep on nav links */
.navlinks a { position: relative; }
.navlinks a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--dow));
  transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease); border-radius: 2px;
}
.navlinks a:hover::after, .navlinks a[aria-current="page"]::after { transform: scaleX(1); }

/* FAQ chevron rotates open */
.faq summary::after { transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: rotate(180deg); }

/* honour the user's motion preference above all of it */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cta.main::after, .pill .dot.ok { animation: none !important; }
  .sec-title, .page-hero h1 { animation: none !important; }
  .feat:hover, .trustcard:hover, .pricecard:hover, .postcard:hover, .cta:hover, .navcta:hover { transform: none !important; }
}

/* ============================================================
   لوحة التداول الحية — مربعات KPI تملأ العرض بلا صف ناقص
   المجموعات في الداشبورد: 12 مربعًا · 6 · 6
   لذلك اخترنا أعمدة تقبل القسمة على 12 و6 معًا: 6 → 3 → 2 → 1
   (تجنّبنا 4 و5 لأن مجموعة الستة لا تنقسم عليهما فيظهر صف ناقص)
   ============================================================ */
.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr;            /* كل الصفوف بنفس الارتفاع — مُختبر على الموقع الحيّ */
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 1400px) { .kpis { grid-template-columns: repeat(6, minmax(0,1fr)) !important; gap: 10px; } }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0,1fr)) !important; } }
@media (max-width: 680px)  { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 9px; } }

/* ارتفاع موحّد ومحتوى متوسّط عموديًا */
.kpi {
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 84px;
  padding: 13px 14px;
}
.kpi .num, .kpi b, .kpi strong { line-height: 1.25; }

/* الأرقام الطويلة لا تكسر الصندوق */
.kpi .num { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* على الشاشات الضيّقة نصغّر الخط بدل أن نكسر الشبكة */
@media (max-width: 1250px) { .kpi { padding: 11px 11px; } .kpi .num { font-size: .95em; } }
@media (max-width: 1100px) { .kpi { min-height: 78px; } }
@media (max-width: 420px)  { .kpi { min-height: 72px; padding: 10px 9px; } .kpi .num { font-size: .9em; } }

/* شبكة البطاقات الرئيسية: تأكيد أن span* تملأ 12 عمودًا دائمًا */
.grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .span8, .span6, .span4 { grid-column: span 12; }
}
