/* ELITE OPTION PLATINUM — deep navy, brushed platinum, electric blue glow, green for buys, red for sells
   type: Cairo (Arabic display) / Alexandria (Arabic UI) / Montserrat italic (Latin wordmark) / Geist Mono (numbers) */
:root {
  --ink: #050A14; --ink-2: #0A1120; --ink-3: #111B2D;
  --line: rgba(255, 255, 255, .075); --line-2: rgba(255, 255, 255, .14);
  --gold: #CFD8E4; --gold-2: #F1F5FA; --gold-ink: #071226;
  --aether: #3D9BFF; --aether-dim: rgba(61, 155, 255, .14);
  --buy: #2BD99A; --buy-dim: rgba(43, 217, 154, .13);
  --sell: #E2475B; --sell-dim: rgba(226, 71, 91, .14);
  --text: #EEF3FA; --mercury: #A3AFC2; --mercury-2: #67748B;
  --gold-grad: linear-gradient(135deg, #FFFFFF 0%, #CFD8E4 45%, #7D8BA1 100%);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012)), rgba(10, 18, 32, .72);
  --r-lg: 22px; --r-md: 14px; --r-sm: 9px;
  --f-ui: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --f-ruqaa: "Cairo", "Alexandria", sans-serif;
  --f-lat: "Montserrat", "Segoe UI", sans-serif;
  --f-num: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 700px at 80% -10%, rgba(61, 155, 255, .11), transparent 60%), radial-gradient(1000px 700px at -10% 110%, rgba(61, 155, 255, .10), transparent 60%), var(--ink);
  background-attachment: fixed; color: var(--text); font: 400 15px/1.7 var(--f-ui); -webkit-font-smoothing: antialiased;
}
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: var(--gold-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--aether); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(61, 155, 255, .35); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; letter-spacing: -.01em; }
.lat { font-family: var(--f-lat); direction: ltr; unicode-bidi: isolate; letter-spacing: .04em; }
.buy, .up { color: var(--buy); } .sell, .dn { color: var(--sell); }
.muted { color: var(--mercury); } .hide { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
h1 { font-family: var(--f-ruqaa); font-weight: 800; font-size: clamp(38px, 5.6vw, 80px); line-height: 1.3; }
h2 { font-family: var(--f-ruqaa); font-weight: 800; font-size: clamp(26px, 3vw, 40px); }
h3 { font-family: var(--f-ui); font-weight: 600; font-size: 17px; }
p { margin: 0; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); }
.btn.primary { background: var(--gold-grad); border-color: transparent; color: var(--gold-ink); font-weight: 700; box-shadow: 0 12px 34px -12px rgba(61, 155, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.aether { background: linear-gradient(135deg, #8CC4FF, #1F6FFF); color: #04122B; border-color: transparent; font-weight: 700; }
.btn.ghost { background: transparent; } .btn.sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.btn.danger { border-color: rgba(226, 71, 91, .45); color: var(--sell); background: transparent; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { display: grid; gap: 7px; font-size: 13px; color: var(--mercury); min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; height: 42px; padding: 0 13px; border-radius: 11px; background: rgba(2, 6, 14, .55); border: 1px solid var(--line-2); color: var(--text); font-size: 14px; }
.field textarea { height: auto; min-height: 110px; padding: 11px 13px; line-height: 1.6; font-family: var(--f-num); font-size: 12.5px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--aether); outline: none; box-shadow: 0 0 0 4px rgba(61, 155, 255, .13); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.seg { display: inline-flex; padding: 4px; background: rgba(2, 6, 14, .55); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--mercury); font-size: 13px; }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .09); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .06); color: var(--mercury); white-space: nowrap; }
.chip.buy { background: var(--buy-dim); color: var(--buy); } .chip.sell { background: var(--sell-dim); color: var(--sell); }
.chip.gold { background: rgba(61, 155, 255, .14); color: var(--gold-2); } .chip.aether { background: var(--aether-dim); color: var(--aether); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }
.dot.live { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 217, 154, .6); } 100% { box-shadow: 0 0 0 10px rgba(43, 217, 154, 0); } }
.panel { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; min-width: 0; -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -50px rgba(0, 0, 0, .95); }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.hint { font-size: 13px; color: var(--mercury); }

/* brand */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand svg, .brand .logo { flex: none; border-radius: 50%; filter: drop-shadow(0 4px 16px rgba(61, 155, 255, .45)); }
.brand b { font-family: var(--f-ruqaa); font-weight: 800; font-size: 21px; line-height: 1; display: block; white-space: nowrap; }
.brand small { display: block; font-family: var(--f-lat); font-style: italic; font-weight: 800; font-size: 9.5px; letter-spacing: .2em; color: var(--gold); direction: ltr; text-align: end; margin-top: 4px; white-space: nowrap; }

/* forex sessions ribbon (24h in the viewer's time) */
.sess { position: relative; }
.sess-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; font-size: 13px; }
.sess-top b { font-family: var(--f-num); font-weight: 500; }
.sess-track { position: relative; height: 54px; border-radius: 12px; background: rgba(2, 6, 14, .6); border: 1px solid var(--line); overflow: hidden; direction: ltr; }
.sess-bar { position: absolute; height: 10px; border-radius: 5px; opacity: .35; }
.sess-bar.open { opacity: 1; box-shadow: 0 0 14px currentColor; }
.sess-lbl { position: absolute; font-size: 10.5px; color: var(--mercury); transform: translateY(-1px); white-space: nowrap; }
.sess-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold-2); box-shadow: 0 0 12px 2px rgba(241, 245, 250, .7); }
.sess-scale { position: relative; height: 16px; font-size: 10.5px; color: var(--mercury-2); font-family: var(--f-num); direction: ltr; }
.sess-scale span { position: absolute; transform: translateX(-50%); }

/* signal card */
.sig { --side: var(--gold); --sideDim: rgba(61, 155, 255, .15); position: relative; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(420px 150px at 100% 0%, var(--sideDim), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .012)), #0B1324; border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 40px 80px -46px rgba(0, 0, 0, .95); transition: transform .25s ease-out; }
.sig.s-buy { --side: var(--buy); --sideDim: rgba(43, 217, 154, .15); } .sig.s-sell { --side: var(--sell); --sideDim: rgba(226, 71, 91, .16); }
.sig::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--side), transparent); }
.sig-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 10px; }
.sig-sym { font-family: var(--f-num); font-weight: 600; font-size: 22px; direction: ltr; letter-spacing: -.02em; }
.sig-sub { font-size: 12px; color: var(--mercury); margin-top: 4px; }
.sig-side { font-weight: 700; color: var(--side); font-size: 15px; }
.sig-lv { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 4px 16px 12px; border-radius: 12px; overflow: hidden; background: var(--line); }
.sig-lv div { background: rgba(2, 6, 14, .7); padding: 8px 8px; text-align: center; }
.sig-lv small { display: block; font-size: 10.5px; color: var(--mercury); }
.sig-lv b { font-family: var(--f-num); font-weight: 500; font-size: 13px; direction: ltr; display: block; }
.sig-lv .hit b { color: var(--buy); text-decoration: line-through; text-decoration-color: rgba(43, 217, 154, .5); }
.sig-lv .sl b { color: var(--sell); }
.sig-read { padding: 0 20px 12px; font-size: 13px; color: #CFCADC; line-height: 1.85; }
.sig-read li { margin-bottom: 2px; }
.sig-read ul { margin: 0; padding-inline-start: 18px; }
.sig-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; align-items: center; }
.sig.locked .sig-lv b, .sig.locked .sig-read { filter: blur(5px); user-select: none; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: start; font-weight: 400; color: var(--mercury); font-size: 12px; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: #0B1324; z-index: 1; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .03); }
.tbl-wrap { overflow: auto; max-height: 640px; border-radius: var(--r-md); }
.strip { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow: hidden; }
.strip div { padding: 15px 20px; border-inline-start: 1px solid var(--line); min-width: 130px; flex: 1; }
.strip div:first-child { border-inline-start: 0; }
.strip small { display: block; color: var(--mercury); font-size: 12px; }
.strip b { font-family: var(--f-num); font-size: 22px; font-weight: 500; letter-spacing: -.02em; unicode-bidi: plaintext; }

/* misc */
.mtf { display: inline-flex; gap: 3px; direction: ltr; }
.mtf i { width: 9px; height: 9px; border-radius: 2px; background: var(--mercury-2); display: inline-block; }
.mtf i.u { background: var(--buy); } .mtf i.d { background: var(--sell); }
.gauge { display: inline-flex; align-items: center; gap: 8px; }
.gauge span { width: 70px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--sell), var(--mercury-2) 50%, var(--buy)); position: relative; }
.gauge span::after { content: ""; position: absolute; top: -4px; width: 3px; height: 14px; border-radius: 2px; background: #fff; left: var(--p); box-shadow: 0 0 8px rgba(255, 255, 255, .7); }
.tv-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #050A14; }
.tv-tape { border-block: 1px solid var(--line); background: rgba(2, 6, 14, .7); min-height: 46px; direction: ltr; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; }
.toast { background: rgba(13, 22, 38, .94); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 17px; font-size: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.empty { padding: 26px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--mercury); background: rgba(2, 6, 14, .4); }
pre.msg { white-space: pre-wrap; background: rgba(2, 6, 14, .6); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; font: 13.5px/1.75 var(--f-ui); margin: 0; max-height: 420px; overflow: auto; }
code.k { font-family: var(--f-num); font-size: 12.5px; background: rgba(2, 6, 14, .6); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* TradingView frames keep the light scheme of their own page, so a transparent frame is not painted white */
.tradingview-widget-container iframe { color-scheme: normal; }
/* options contract on a signal card */
.sig-opt { margin: -4px 16px 12px; padding: 8px 12px; border-radius: 10px; background: rgba(61, 155, 255, .07); border: 1px solid rgba(61, 155, 255, .22); font-size: 12.5px; line-height: 1.75; }
/* the market bulletin on the news page */
.bulletin { white-space: pre-wrap; font: 14px/1.95 var(--f-ui); max-height: 560px; overflow: auto; color: var(--text); }
.bulletin b { color: var(--gold, #CFD8E4); }
.bulletin i { color: var(--mercury); font-style: normal; font-size: 12.5px; }
/* the platinum name is longer than the old one: tighter brand on phones */
@media (max-width: 640px) { .brand { gap: 9px; } .brand .logo { width: 36px; height: 36px; } .brand b { font-size: 16px; } .brand small { font-size: 7.5px; letter-spacing: .12em; margin-top: 3px; } }
@media (max-width: 380px) { .brand small { display: none; } .brand b { font-size: 15px; } }
