@font-face { font-family: Plex; src: url('/fonts/IBMPlexSans-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url('/fonts/IBMPlexSans-Medium.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: Plex; src: url('/fonts/IBMPlexSans-SemiBold.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: Plex; src: url('/fonts/IBMPlexSans-Bold.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: PlexArabic; src: url('/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: PlexArabic; src: url('/fonts/IBMPlexSansArabic-Medium.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: PlexArabic; src: url('/fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: PlexArabic; src: url('/fonts/IBMPlexSansArabic-Bold.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
:root {
  --bg: #101011;
  --surface: rgba(255,255,255,.045);
  --surface-hi: rgba(255,255,255,.075);
  --line: rgba(255,255,255,.14);
  --line-hi: rgba(255,255,255,.28);
  --text: #f4f4f4;
  --muted: #aaa9aa;
  --soft: #777779;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 80% 0%,#29292b 0,transparent 32%),var(--bg);
  font: 15px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
html[lang=ar] body { font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .3;
  background-image: linear-gradient(#ffffff09 1px,transparent 1px),linear-gradient(90deg,#ffffff09 1px,transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(#000,transparent 70%);
}
button,input,select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
main { max-width: 1360px; margin: auto; padding: 18px clamp(18px,3vw,48px) 36px; }
.glass,.tool-card,.tool-jumps a,.support-card {
  background: linear-gradient(140deg,rgba(255,255,255,.075),rgba(255,255,255,.025) 45%,rgba(255,255,255,.04));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px rgba(255,255,255,.13),0 18px 45px rgba(0,0,0,.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-nav {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 8px 12px 8px 18px;
  gap: 18px;
  border-radius: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-hi); border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: -.08em; position: relative; }
.brand-name { font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .045em; }
.brand-name em { font-style: normal; color: #9e9e9f; }
.nav-links,.nav-actions { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #bdbdbd; font-size: 13px; }
.nav-links a:hover { color: #fff; }
.nav-actions { gap: 8px; }
#lsel,.nav-share,.refresh-market { color: #f2f2f2; background: #ffffff0d; border: 1px solid var(--line); border-radius: 7px; min-height: 38px; }
#lsel { width: auto; min-width: 70px; padding: 0 8px; }
#lsel option { background: #19191a; }
.nav-share { display: inline-flex; align-items: center; gap: 18px; padding: 0 13px; font-size: 13px; font-weight: 650; }
.nav-share:hover,.refresh-market:hover { border-color: var(--line-hi); background: #ffffff18; }
.hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr); align-items: center; gap: clamp(26px,5vw,75px); padding: 68px 0 54px; }
.hero-copy { min-width: 0; }
.market-topline { color: #bdbdbf; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { max-width: 800px; font-size: clamp(42px,4.6vw,72px); line-height: 1.05; letter-spacing: -.055em; font-weight: 720; margin: 19px 0 21px; }
.hero h1 em { font-style: normal; font-weight: 400; color: #b8b8ba; }
html:not([lang=ar]) .hero h1 { font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; font-size: clamp(48px,5.2vw,72px); font-weight: 650; letter-spacing: -.045em; line-height: 1.08; }
html:not([lang=ar]) .hero h1 em { font-weight: 400; }
html[lang=ar] .hero h1 { letter-spacing: 0; line-height: 1.22; font-size: clamp(40px,4.5vw,67px); }
.hero-lede { max-width: 570px; color: #b7b7b9; font-size: 16px; line-height: 1.72; margin: 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; margin: 27px 0 38px; }
.primary-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; color: #121212; background: #f2f2f2; border: 1px solid #fff; border-radius: 7px; padding: 13px 16px; min-width: 185px; font-weight: 700; }
.primary-action:hover { background: #d6d6d7; }
.text-action { color: #d6d6d6; border-bottom: 1px solid #828283; font-size: 13px; padding-bottom: 3px; }
.text-action:hover { color: #fff; }
.hero-market { min-width: 0; padding: 20px; border: 1px solid var(--line-hi); border-radius: 14px; background: #ffffff06; box-shadow: 0 0 0 7px #ffffff04,0 20px 60px #0003; }
.market-topline { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; }
.refresh-market { width: 34px; height: 32px; min-height: 32px; font-size: 21px; line-height: 1; }
.market-card { text-align: center; background: #0002; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px 20px; }
.market-heading { text-align: start; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--line); padding: 0 0 13px; }
.market-card .b { padding-top: 16px; }
.market-card #gs { width: 100%; max-width: 380px; height: auto; direction: ltr; filter: grayscale(1) contrast(1.1); }
.market-card #lbl { color: #f4f4f4!important; font-size: 24px; font-weight: 750; }
.lg { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; color: #a5a5a5; font-size: 11px; direction: ltr; }
.lg i { display: inline-block; width: 8px; height: 8px; margin-inline-end: 4px; border-radius: 50%; filter: grayscale(1); }
.lg b { color: #eee; }
.warn { margin: 0 0 70px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff06; color: #b8b8b8; font-size: 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading h2 { font-size: clamp(29px,3vw,43px); line-height: 1.12; letter-spacing: -.04em; margin: 0 0 9px; }
html[lang=ar] .section-heading h2 { letter-spacing: 0; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.tools-section,.support-section,.tool-card { scroll-margin-top: 100px; }
.tools-section { padding-bottom: 82px; }
.tool-jumps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 14px; }
.tool-jumps a { min-height: 55px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: 8px; color: #e5e5e5; font-size: 13px; font-weight: 600; }
.tool-jumps a:hover { background: #ffffff16; border-color: var(--line-hi); }
.jump-num { color: #858585; font-size: 11px; font-variant-numeric: tabular-nums; }
.jump-arrow { margin-inline-start: auto; color: #999; }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tool-card { display: grid; grid-template-columns: minmax(235px,30%) minmax(0,1fr); border-radius: 12px; overflow: hidden; }
.tool-card:hover { border-color: var(--line-hi); }
.tool-head { padding: 29px 28px; border-inline-end: 1px solid var(--line); background: #ffffff05; }
.tool-head h3 { font-size: clamp(21px,2.1vw,30px); line-height: 1.2; letter-spacing: -.03em; margin: 0 0 12px; }
html[lang=ar] .tool-head h3 { letter-spacing: 0; }
.tool-head p { color: #a8a8a9; font-size: 13px; line-height: 1.65; max-width: 300px; margin: 0; }
.info-button { color: #d9d9d9; background: none; border: 1px solid var(--line-hi); border-radius: 50%; width: 23px; height: 23px; margin-inline-start: 8px; font-size: 14px; vertical-align: middle; }
.info-button:hover { background: #ffffff1d; }
.tool-card .b { padding: 26px 29px 30px; min-width: 0; }
label { display: block; color: #aaa; font-size: 12px; margin: 10px 0 5px; }
input,select { width: 100%; color: #f2f2f2; background: #0a0a0b9c; border: 1px solid #ffffff27; border-radius: 7px; padding: 10px 11px; outline: none; }
input:focus,select:focus { border-color: #d9d9d9; box-shadow: 0 0 0 3px #ffffff1a; }
input[type=number] { font-variant-numeric: tabular-nums; }
.g2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 14px; }
.tool-card .b>button,.r button { color: #151515; background: #ececec; border: 1px solid #fff; border-radius: 7px; padding: 10px 13px; margin-top: 11px; font-weight: 700; }
.tool-card .b>button { width: 100%; }
#tool-signals .b>button { width: auto; min-width: 150px; margin-inline-end: 8px; }
.tool-card .b>button:hover,.r button:hover { background: #cacaca; }
.tool-card .b>button.g,.r button.g,.mb button.g { color: #e5e5e5; background: #ffffff08; border-color: var(--line-hi); }
.tool-card .b>button.g:hover,.r button.g:hover { background: #ffffff17; }
button.s { width: auto!important; padding: 7px 11px!important; font-size: 12px; }
.r,.cd { border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; margin-top: 10px; background: #05050553; }
.r b { color: #f1f1f1; }
.mu { color: #a5a5a5; font-size: 12px; line-height: 1.65; }
.ok,.v-ok { color: #fff!important; }
.bad,.v-skip { color: #b4b4b4!important; }
.v-half { color: #ddd!important; }
.h3 { color: #bebebe; font-weight: 700; margin: 17px 0 8px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.stats div { color: #aaa; text-align: center; font-size: 11px; border: 1px solid var(--line); border-radius: 7px; padding: 9px 4px; background: #06060655; }
.stats b { display: block; color: #fff; font-size: 18px; font-variant-numeric: tabular-nums; }
.kv { display: flex; justify-content: space-between; padding: 4px 0; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th,td { padding: 8px 4px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: #999; font-weight: 400; }
.support-section { border-top: 1px solid var(--line); padding: 44px 0 67px; }
.support-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.support-card { padding: 23px; border-radius: 10px; display: flex; flex-direction: column; min-height: 326px; }
.support-card h3 { margin: 0 0 13px; font-size: 20px; line-height: 1.25; }
.support-card p { color: #ababac; font-size: 12px; line-height: 1.7; margin: 0 0 15px; flex: 1; }
.support-value { color: #eee; background: #05050560; border: 1px solid var(--line); border-radius: 6px; padding: 10px 11px; word-break: break-all; font-variant-numeric: tabular-nums; }
.support-link,.copy-btn { color: #e8e8e8; align-self: start; background: none; border: none; border-bottom: 1px solid #aaa; padding: 0 0 3px; margin-top: 12px; font-size: 12px; font-weight: 700; }
.demo-tag { display: inline-block; color: #c8c8c8; font-size: 10px; font-weight: 750; letter-spacing: .08em; margin-top: 12px; }
.contact-line { color: #aaa; font-size: 13px; margin: 22px 0 0; }
.contact-line a { color: #f1f1f1; border-bottom: 1px solid #aaa; }
.privacy-line { color: #777; font-size: 11px; margin: 9px 0 0; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 20px 0 0; color: #787879; font-size: 11px; }
.footer-dot { color: #aaa; margin: 0 7px; }
.mo { display: none; position: fixed; z-index: 100; inset: 0; align-items: center; justify-content: center; padding: 18px; background: #000b; }
.mo.on { display: flex; }
.mb { background: #19191a; border: 1px solid var(--line-hi); border-radius: 12px; max-width: 620px; max-height: 88vh; overflow: auto; width: 100%; padding: 20px; line-height: 1.7; }
.mh { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.tt { font-size: 11px; }
.tt th,.tt td { direction: ltr; text-align: center; }
.tt td:first-child,.tt th:first-child { text-align: start; direction: inherit; }
.tt tr.me { color: #fff; font-weight: 700; }
.cd { text-align: center; }
.cd b { color: #fff; direction: ltr; }
.visually-hidden { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html:not([lang=ar]) .ar { display: none!important; }
html[lang=ar] .en { display: none!important; }
html[lang=ar] .brand-mark { font-family: "Segoe UI",Arial,sans-serif; }
:focus-visible { outline: 2px solid white; outline-offset: 3px; }
@media(max-width:900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 45px 0 45px; }
  .hero h1 { max-width: 650px; }
  .hero-market { max-width: 650px; width: 100%; }
  .tool-card { grid-template-columns: minmax(180px,33%) minmax(0,1fr); }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .support-card:last-child { grid-column: span 2; min-height: 200px; }
}
@media(max-width:650px) {
  main { padding: 10px 14px 25px; }
  .site-nav { top: 8px; min-height: 56px; padding: 7px 9px; }
  .nav-links { display: none; }
  .brand-name { font-size: 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding: 37px 0 24px; gap: 22px; }
  .hero h1 { font-size: clamp(40px,10vw,57px); }
  html[lang=ar] .hero h1 { font-size: clamp(38px,9vw,55px); }
  .hero-lede { font-size: 14px; }
  .hero-actions { margin: 24px 0 30px; gap: 16px; }
  .hero-market { padding: 12px; }
  .market-card { padding: 12px; }
  .warn { margin-bottom: 58px; }
  .tool-jumps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tool-card { display: block; }
  .tool-head { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 19px 20px 17px; }
  .tool-head h3 { font-size: 22px; margin-bottom: 5px; }
  .tool-head p { max-width: none; }
  .tool-card .b { padding: 18px 20px 21px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-card,.support-card:last-child { grid-column: auto; min-height: 0; }
  .support-card p { flex: auto; }
  .site-footer { display: block; }
  .site-footer>span { display: block; margin-bottom: 6px; }
}
@media(max-width:400px) {
  .brand-name { display: none; }
  .g2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .tool-jumps a { font-size: 12px; gap: 7px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } * { animation-duration: .01ms!important; transition-duration: .01ms!important; } }

/* The field lives behind the workspace; every tool stays readable above it. */
#ambient-field { position: fixed; inset: 0; z-index: 0; display: block; pointer-events: none; opacity: .62; }
body::before { display: none; }
main { position: relative; z-index: 1; }
.theme-toggle { flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 7px; background: #ffffff0d; color: var(--text); font-size: 20px; line-height: 1; }
.theme-toggle:hover { border-color: var(--line-hi); background: #ffffff18; }
.hero-market { padding: 0; overflow: hidden; border-color: var(--line-hi); background: linear-gradient(145deg,rgba(31,30,29,.8),rgba(17,17,17,.68)); box-shadow: inset 0 1px rgba(255,255,255,.15),0 25px 80px #0005; }
.market-topline { margin: 0; min-height: 62px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.refresh-market { display: grid; place-items: center; }
.market-content { padding: clamp(25px,4vw,47px) clamp(22px,3vw,38px) 35px; }
.market-status { display: flex; align-items: center; min-height: 84px; margin: 0 0 1px; color: var(--text)!important; font-size: clamp(42px,5vw,68px)!important; line-height: 1.15; letter-spacing: -.055em; font-weight: 640!important; }
html[lang=ar] .market-status { letter-spacing: 0; }
.market-detail { color: #c0bdb8; font-size: 14px; font-variant-numeric: tabular-nums; min-height: 23px; }
.market-spectrum { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; direction: ltr; }
.market-spectrum span { padding: 6px 9px; color: #a4a09b; border: 1px solid #ffffff1c; border-radius: 4px; background: #ffffff04; font-size: 10px; line-height: 1.2; }
.market-spectrum .is-active { color: #f3e7dc; border-color: #b6826080; background: #b6826024; }

html[data-theme=light] { --bg: #f3f1ec; --surface: rgba(255,255,255,.6); --surface-hi: rgba(255,255,255,.8); --line: rgba(40,39,36,.16); --line-hi: rgba(40,39,36,.28); --text: #262523; --muted: #65615d; --soft: #85817c; }
html[data-theme=light] body { background: radial-gradient(circle at 80% 0%,#e5ded5 0,transparent 36%),var(--bg); }
html[data-theme=light] .glass,html[data-theme=light] .tool-card,html[data-theme=light] .support-card { background: linear-gradient(135deg,rgba(255,255,255,.82),rgba(249,247,243,.62)); box-shadow: inset 0 1px #fff,0 18px 45px #4a40300d; }
html[data-theme=light] .site-nav { background: rgba(249,247,243,.81); }
html[data-theme=light] .brand-name em,html[data-theme=light] .hero h1 em { color: #77716a; }
html[data-theme=light] .nav-links a,html[data-theme=light] .market-topline { color: #68635e; }
html[data-theme=light] .nav-links a:hover,html[data-theme=light] .text-action:hover { color: #1e1d1b; }
html[data-theme=light] #lsel,html[data-theme=light] .nav-share,html[data-theme=light] .refresh-market,html[data-theme=light] .theme-toggle { color: #302e2b; background: #ffffff98; }
html[data-theme=light] #lsel option { background: #f8f6f1; }
html[data-theme=light] .hero-lede,html[data-theme=light] .section-heading p,html[data-theme=light] .tool-head p,html[data-theme=light] .support-card p { color: #625f5b; }
html[data-theme=light] .r b,html[data-theme=light] .stats b,html[data-theme=light] .cd b { color: #252320; }
html[data-theme=light] .mu,html[data-theme=light] .contact-line,html[data-theme=light] .privacy-line,html[data-theme=light] .site-footer { color: #78736e; }
html[data-theme=light] .primary-action,html[data-theme=light] .tool-card .b>button:not(.g),html[data-theme=light] .r button:not(.g) { color: #fff; background: #302e2b; border-color: #302e2b; }
html[data-theme=light] .primary-action:hover,html[data-theme=light] .tool-card .b>button:not(.g):hover { background: #55504a; }
html[data-theme=light] .text-action,html[data-theme=light] .contact-line a,html[data-theme=light] .support-link,html[data-theme=light] .copy-btn { color: #393531; }
html[data-theme=light] .tool-card .b>button.g,html[data-theme=light] .r button.g,html[data-theme=light] .mb button.g { color: #383531; background: #f5f2ec; }
html[data-theme=light] .tool-head { background: #eeeae472; }
html[data-theme=light] .market-content { background: rgba(250,248,244,.55); }
html[data-theme=light] .hero-market { background: rgba(250,248,244,.8); }
html[data-theme=light] .market-detail { color: #605b55; }
html[data-theme=light] .market-spectrum span { color: #77716a; background: #ffffff8a; border-color: #29252021; }
html[data-theme=light] .market-spectrum .is-active { color: #64412d; background: #b6826024; border-color: #a57451a0; }
html[data-theme=light] .warn,html[data-theme=light] .r,html[data-theme=light] .cd,html[data-theme=light] .stats div,html[data-theme=light] .support-value { color: #504c47; background: #ffffff8e; }
html[data-theme=light] label,html[data-theme=light] th { color: #736e68; }
html[data-theme=light] input,html[data-theme=light] select { color: #292724; background: #fffdfa; border-color: #29252036; }
html[data-theme=light] input:focus,html[data-theme=light] select:focus { border-color: #a97859; box-shadow: 0 0 0 3px #a9785926; }
html[data-theme=light] .info-button { color: #55504b; }
html[data-theme=light] .ok,html[data-theme=light] .v-ok { color: #413c37!important; }
html[data-theme=light] .bad,html[data-theme=light] .v-skip { color: #8a7468!important; }
html[data-theme=light] .mb { color: #292724; background: #f6f4f0; }
html[data-theme=light] .footer-dot { color: #a97859; }
@media(max-width:650px) {
  .market-topline { min-height: 53px; padding: 10px 14px; }
  .market-content { padding: 24px 20px 26px; }
  .market-status { min-height: 62px; font-size: 41px!important; }
  .market-spectrum { margin-top: 21px; }
  .theme-toggle { width: 35px; height: 35px; flex-basis: 35px; }
}
