@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
:root{--bg:#0f172a;--panel:#1e293bcc;--panel-strong:#172033f2;--line:#334155;--line-soft:#ffffff12;--text:#f8fafc;--muted:#94a3b8;--cyan:#38bdf8;--blue:#3b82f6;--green:#22c55e;--yellow:#f59e0b;--red:#ef4444;--violet:#a78bfa;--shadow:0 24px 70px #02061780;--radius:18px;--font:'Vazirmatn',system-ui,-apple-system,BlinkMacSystemFont,sans-serif;--mono:"Cascadia Code","SFMono-Regular",Consolas,monospace}
*{box-sizing:border-box;margin:0;padding:0}html{color-scheme:dark}body{min-height:100vh;background:radial-gradient(circle at 65% -15%,#1d4ed833,transparent 38%),radial-gradient(circle at 5% 85%,#0ea5e933,transparent 34%),var(--bg);color:var(--text);font-family:var(--font);font-size:13px;overflow-x:hidden}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.hidden{display:none!important}
.backdrop-orb{position:fixed;border-radius:50%;filter:blur(100px);opacity:.18;pointer-events:none}.orb-one{width:420px;height:420px;background:#2563eb;top:-180px;right:18%}.orb-two{width:360px;height:360px;background:#06b6d4;bottom:-170px;left:-80px}.cockpit{position:relative;z-index:1;max-width:1920px;margin:auto;padding:12px}.glass-card{background:linear-gradient(145deg,#1e293bdb,#111827d1);border:1px solid var(--line-soft);box-shadow:var(--shadow);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:var(--radius)}
.topbar{min-height:82px;padding:12px 16px;display:grid;grid-template-columns:minmax(310px,.85fr) minmax(520px,1.5fr) minmax(230px,.7fr);align-items:center;gap:16px;position:sticky;top:8px;z-index:20}.brand,.profile-box,.status-strip,.status-item,.section-heading,.market-selectors,.form-row{display:flex;align-items:center}.brand{gap:12px}.brand-mark,.auth-logo{display:grid;place-items:center;background:linear-gradient(135deg,var(--cyan),var(--blue));color:#03111f;font-weight:900;box-shadow:0 0 28px #38bdf855}.brand-mark{width:46px;height:46px;border-radius:14px;font-family:var(--mono)}.brand h1{font-size:18px}.brand p{color:var(--muted);font-size:10px;margin-top:3px}.status-strip{direction:ltr;justify-content:center;gap:8px}.status-item{min-height:52px;gap:9px;padding:7px 11px;border:1px solid var(--line-soft);border-radius:12px;background:#0f172a8f}.status-item small,.profile-box small{display:block;color:var(--muted);font:9px var(--mono);letter-spacing:.7px}.status-item strong{font:700 11px var(--mono)}.regime-status{display:grid;min-width:190px;text-align:center}.profile-box{justify-content:flex-end;gap:9px}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#334155;color:var(--cyan);font-weight:800}.profile-box strong{display:block;max-width:105px;overflow:hidden;text-overflow:ellipsis}.status-dot{width:9px;height:9px;border-radius:50%}.status-dot.live{background:var(--green);box-shadow:0 0 0 5px #22c55e18,0 0 15px var(--green);animation:pulse 1.7s infinite}.status-dot.paused,.status-dot.connecting{background:var(--yellow);box-shadow:0 0 14px #f59e0baa}.status-dot.offline{background:var(--red);box-shadow:0 0 14px #ef444499}
.button{border:1px solid transparent;border-radius:10px;padding:9px 14px;color:var(--text);background:#334155;transition:.18s}.button:hover{transform:translateY(-1px);filter:brightness(1.1)}.button.primary{background:linear-gradient(135deg,#0284c7,#2563eb);box-shadow:0 8px 25px #2563eb33}.button.ghost{background:#0f172a80;border-color:var(--line)}.wide{width:100%}.icon-button{width:31px;height:31px;border:1px solid var(--line);border-radius:9px;background:#0f172a99;color:var(--cyan);font-size:18px}
.cockpit-grid{display:grid;grid-template-columns:minmax(320px,.95fr) minmax(560px,1.65fr) minmax(300px,.85fr);gap:12px;margin-top:12px;align-items:start;direction:rtl}.column{min-width:0}.radar-column{height:calc(100vh - 118px);min-height:680px;padding:14px;display:flex;flex-direction:column}.center-column,.action-column{display:grid;gap:12px}.chart-card,.brain-card,.signals-card,.portfolio-card,.order-card,.kill-card{padding:14px}.section-heading{justify-content:space-between;gap:12px;margin-bottom:12px}.section-heading h2{font-size:14px;margin-top:2px}.section-heading.compact{margin-bottom:10px}.eyebrow{font:700 9px var(--mono);letter-spacing:1.15px;color:var(--cyan)}.counter{font:9px var(--mono);color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:5px 8px}.agent-filter{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding-bottom:10px;border-bottom:1px solid var(--line-soft)}.agent-filter span{font:9px var(--mono);color:var(--muted);background:#0f172a80;border:1px solid var(--line-soft);padding:6px;border-radius:8px}.agent-light{display:inline-block;width:6px;height:6px;border-radius:50%;margin-left:5px}.agent-light.trader{background:var(--cyan)}.agent-light.regime{background:var(--violet)}.agent-light.reconciliation{background:var(--green)}.agent-light.risk{background:var(--red)}
.agent-radar{flex:1;overflow:auto;padding-top:10px;scrollbar-width:thin;scrollbar-color:#475569 transparent}.thought-card{direction:rtl;margin-bottom:8px;padding:10px;border:1px solid var(--line-soft);border-right:3px solid var(--cyan);border-radius:11px;background:#02061773;animation:enter .2s ease}.thought-card.warn{border-right-color:var(--yellow);background:#78350f1c}.thought-card.veto{border-right-color:var(--red);background:#7f1d1d26}.thought-card.info{border-right-color:var(--green)}.thought-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px;font:9px var(--mono)}.thought-agent{color:var(--cyan);font-weight:800}.thought-level{border-radius:999px;padding:2px 6px;background:#ffffff0d}.thought-card.warn .thought-level{color:var(--yellow)}.thought-card.veto .thought-level{color:var(--red)}.thought-card.info .thought-level{color:var(--green)}.thought-time{color:var(--muted);margin-right:6px}.thought-card p{font:11px/1.8 var(--mono);color:#dbeafe;overflow-wrap:anywhere}.empty-state{display:grid;place-items:center;min-height:75px;color:var(--muted);font-size:11px;text-align:center}
.market-selectors{gap:7px}.market-selectors select{width:145px}.market-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.market-metrics div{padding:9px;border:1px solid var(--line-soft);border-radius:10px;background:#0f172a75}.market-metrics small{display:block;color:var(--muted);font-size:9px}.market-metrics strong{display:block;margin-top:4px;direction:ltr;text-align:right;font:700 13px var(--mono)}select,input{width:100%;border:1px solid var(--line);border-radius:9px;background:#0f172ad9;color:var(--text);padding:9px 10px;outline:none}select:focus,input:focus{border-color:var(--cyan);box-shadow:0 0 0 3px #38bdf818}.market-chart{height:430px;position:relative;border:1px solid var(--line-soft);border-radius:13px;overflow:hidden;background:linear-gradient(#0f172ab3,#020617e6),repeating-linear-gradient(0deg,transparent 0 54px,#33415533 55px),repeating-linear-gradient(90deg,transparent 0 72px,#33415533 73px)}#chart-canvas{width:100%;height:100%;display:block}.chart-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted)}.brain-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.brain-gauge{--conviction:0;--gauge-color:var(--cyan);width:155px;aspect-ratio:1;margin:8px auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--gauge-color) calc(var(--conviction)*1%),#33415555 0);box-shadow:0 0 35px color-mix(in srgb,var(--gauge-color) 25%,transparent)}.brain-gauge:before{content:"";position:absolute}.gauge-core{width:118px;aspect-ratio:1;border-radius:50%;display:grid;place-content:center;text-align:center;background:#0f172a;border:1px solid var(--line)}.gauge-core strong{font:800 30px var(--mono)}.gauge-core span{font:700 10px var(--mono);color:var(--muted)}.conviction-scale{display:flex;justify-content:space-between;color:var(--muted);font:8px var(--mono)}.signal-list{display:grid;gap:7px}.signal-row{display:flex;align-items:center;justify-content:space-between;padding:10px;border:1px solid var(--line-soft);border-radius:10px;background:#0f172a80}.signal-row span{color:var(--muted);font-size:10px}.signal-row strong{font:700 10px var(--mono);color:var(--cyan)}
.total-equity{text-align:center;padding:10px;border-radius:12px;background:linear-gradient(135deg,#0284c71a,#2563eb1f);border:1px solid #38bdf82b}.total-equity small,.total-equity span{display:block;color:var(--muted);font-size:9px}.total-equity strong{display:block;margin:3px 0;font:800 24px var(--mono)}.exchange-balances{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.exchange-balance{padding:9px;border:1px solid var(--line-soft);border-radius:10px;background:#0f172a80}.exchange-balance b,.exchange-balance span{display:block}.exchange-balance b{font-size:10px}.exchange-balance span{direction:ltr;text-align:right;color:#dbeafe;font:11px var(--mono);margin-top:4px}.order-form{display:grid;gap:9px}.order-form label{display:grid;gap:4px;color:var(--muted);font-size:9px}.side-selector{display:grid;grid-template-columns:1fr 1fr;padding:3px;border:1px solid var(--line);border-radius:10px;background:#0f172a}.side-selector button{border:0;border-radius:7px;padding:8px;background:transparent;color:var(--muted)}.side-selector .buy.active{background:#22c55e22;color:#4ade80}.side-selector .sell.active{background:#ef444422;color:#f87171}.form-row{gap:7px}.form-row>*{flex:1}.danger-card{border-color:#ef444444;background:linear-gradient(145deg,#30151bd9,#172033e8)}.danger-card h2{font-size:14px;margin:3px 0}.danger-card p{color:#fca5a5;font-size:10px;line-height:1.7}.danger-text{color:#fb7185}.kill-switch{width:100%;margin-top:11px;padding:14px;border:1px solid #fb718566;border-radius:11px;background:linear-gradient(135deg,#991b1b,#dc2626);color:white;font:900 14px var(--mono);letter-spacing:1.5px;box-shadow:0 8px 28px #dc262638}.form-message{min-height:17px;font-size:10px;text-align:center}.form-message.error{color:#f87171}.form-message.success{color:#4ade80}
.auth-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:#020617e8;backdrop-filter:blur(13px)}.auth-backdrop.hidden{display:none}.auth-modal{width:min(410px,100%);padding:28px;text-align:center}.auth-logo{width:58px;height:58px;border-radius:17px;margin:0 auto 13px;font:900 18px var(--mono)}.auth-modal h2{font-size:20px;margin:5px 0}.auth-modal>p{color:var(--muted);font-size:11px;line-height:1.8;margin-bottom:18px}.auth-modal form{display:grid;gap:11px;text-align:right}.auth-modal label{display:grid;gap:5px;color:var(--muted);font-size:10px}.text-button{border:0;background:transparent;color:var(--cyan);margin-top:11px}.positive{color:#4ade80!important}.negative{color:#f87171!important}
@keyframes pulse{50%{opacity:.45;transform:scale(.82)}}@keyframes enter{from{opacity:0;transform:translateY(-7px)}}
.workspace-tabs{display:flex;gap:6px;padding:6px;margin-top:12px;overflow:auto}.workspace-tab{border:0;border-radius:10px;padding:9px 14px;background:transparent;color:var(--muted);white-space:nowrap}.workspace-tab.active{background:#38bdf81f;color:var(--cyan);box-shadow:inset 0 0 0 1px #38bdf833}.tab-pane:not(.active){display:none!important}.tab-pane.active:not(.cockpit-grid){display:block;margin-top:12px}.tab-pane.active.cockpit-grid{display:grid}.dust-filter{display:flex;align-items:center;gap:7px;margin-top:9px;color:var(--muted);font-size:9px}.dust-filter input{width:auto;accent-color:var(--cyan)}.decision-matrix{padding:14px}.decision-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px}.decision-summary>div{padding:10px;border:1px solid var(--line-soft);border-radius:10px;background:#0f172a80}.decision-summary small{display:block;color:var(--muted);font-size:9px}.decision-summary strong{display:block;margin:4px 0;font:700 13px var(--mono)}.score-track{height:7px;border-radius:999px;background:linear-gradient(90deg,#ef4444,#64748b 50%,#22c55e);overflow:hidden}.score-track span{display:block;width:2px;height:100%;margin-right:50%;background:white;box-shadow:0 0 8px white}.reason-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.reason-chip{padding:5px 8px;border:1px solid #38bdf833;border-radius:999px;background:#38bdf814;color:#bae6fd;font-size:9px}.reason-chip.muted{color:var(--muted);border-color:var(--line)}.veto-box{margin-top:10px;padding:10px;border:1px solid #ef444455;border-radius:10px;background:#7f1d1d33;color:#fecaca;font-size:10px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.account-card,.trades-card{padding:16px}.identity-summary{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line-soft);border-radius:12px;background:#0f172a80}.profile-avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#38bdf820;color:var(--cyan);font-weight:800}.identity-summary span{display:block;color:var(--muted);font-size:10px;margin-top:3px}.profile-form{display:grid;gap:10px;margin-top:12px}.profile-form label{display:grid;gap:5px;color:var(--muted);font-size:10px}.subscription-status{display:grid;gap:8px}.plan-card{padding:11px;border:1px solid var(--line-soft);border-radius:11px;background:#0f172a80}.plan-card.active{border-color:#22c55e55;background:#14532d24}.plan-card span{display:block;color:var(--muted);font-size:9px;margin-top:3px}.connections-heading{margin-top:16px}.connection-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.connection-item{display:flex;align-items:center;justify-content:space-between;padding:9px;border:1px solid var(--line-soft);border-radius:10px;background:#0f172a80}.connection-state{font:700 9px var(--mono)}.connection-state.connected{color:var(--green)}.connection-state.disconnected{color:var(--muted)}.table-wrap{overflow:auto}.positions-table{width:100%;border-collapse:collapse;min-width:850px}.positions-table th,.positions-table td{padding:10px;text-align:right;border-bottom:1px solid var(--line-soft);font-size:10px}.positions-table th{color:var(--muted);font-weight:500}.positions-table td{font-family:var(--mono)}.empty-cell{text-align:center!important;color:var(--muted);padding:28px!important}.table-action{border:1px solid #ef444455;border-radius:8px;padding:5px 8px;background:#7f1d1d33;color:#fecaca}.pnl-positive{color:var(--green)}.pnl-negative{color:var(--red)}
@media(max-width:1320px){.topbar{grid-template-columns:1fr 1.35fr}.profile-box{grid-column:1/-1;justify-content:flex-start}.cockpit-grid{grid-template-columns:minmax(300px,.8fr) minmax(520px,1.4fr)}.action-column{grid-column:1/-1;grid-template-columns:1fr 1fr 1fr}.radar-column{height:760px}}
@media(max-width:920px){.cockpit{padding:8px}.topbar{position:relative;top:0;grid-template-columns:1fr}.status-strip{display:grid;grid-template-columns:1fr 1fr}.regime-status{grid-column:1/-1}.cockpit-grid{grid-template-columns:1fr}.center-column{grid-row:1}.radar-column{grid-row:2;height:570px;min-height:0}.action-column{grid-row:3;grid-template-columns:1fr}.market-chart{height:340px}}
@media(max-width:920px){.account-grid{grid-template-columns:1fr}.decision-summary{grid-template-columns:1fr}}
@media(max-width:590px){.brand h1{font-size:14px}.status-strip,.brain-grid,.market-metrics,.exchange-balances,.form-row{grid-template-columns:1fr}.topbar{padding:11px}.status-item{min-height:44px}.profile-box{justify-content:space-between}.market-selectors{display:grid}.market-selectors select{width:100%}.market-chart{height:290px}.radar-column{height:520px}.cockpit-grid{gap:8px}.glass-card{border-radius:14px}}
.thought-card{font-family:var(--font);font-size:12px;line-height:1.6;color:#e2e8f0}.thought-card p{font-family:var(--font);font-size:12px;line-height:1.6;color:#e2e8f0}.thought-agent,.thought-level{font-family:var(--font)}.thought-time,.raw-value,.crypto-invoice code{font-family:var(--mono)}
.payment-modal{width:min(520px,calc(100vw - 24px));max-height:90vh;overflow:auto}.payment-fields{display:grid;gap:10px;padding:10px;border:1px solid var(--line-soft);border-radius:11px;background:#0f172a80}.crypto-invoice{padding:10px;border:1px solid #38bdf844;border-radius:10px;background:#082f4966;color:#bae6fd;overflow-wrap:anywhere}.plan-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.plan-pay{padding:6px 10px}
.signal-val.neutral {
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.signal-val.neutral::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 1.8s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
.topbar{grid-template-columns:minmax(300px,.9fr) minmax(500px,1.45fr) minmax(220px,.65fr)}
.profile-box{position:relative;min-width:0}.profile-trigger{width:100%;min-width:0;display:flex;align-items:center;gap:9px;padding:7px 9px;border:1px solid var(--line);border-radius:12px;background:#0f172a99;color:var(--text);text-align:right}.profile-trigger:hover,.profile-trigger[aria-expanded="true"]{border-color:#38bdf877;box-shadow:0 0 18px #38bdf822}.profile-copy{min-width:0;flex:1}.profile-copy strong{display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-chevron{color:var(--muted);font-size:16px}.profile-menu{position:absolute;top:calc(100% + 8px);left:0;width:220px;padding:7px;z-index:60;border:1px solid var(--line);border-radius:13px;background:#0f172af5;box-shadow:0 18px 45px #020617aa;backdrop-filter:blur(18px)}.profile-menu button{width:100%;padding:9px 11px;border:0;border-radius:9px;background:transparent;color:var(--text);text-align:right}.profile-menu button:hover{background:#38bdf819;color:var(--cyan)}.profile-menu .deposit-menu-item{color:var(--green);border-top:1px solid var(--line-soft);margin-top:4px}.profile-menu .logout-menu-item{color:#fca5a5;border-top:1px solid var(--line-soft);margin-top:4px}
.workspace-tabs{border-color:#334155cc;box-shadow:0 8px 28px #02061766}.workspace-tab{border:1px solid transparent}.workspace-tab.active{border-color:#38bdf877;background:linear-gradient(135deg,#0ea5e929,#2563eb20);color:#e0f2fe;box-shadow:0 0 20px #38bdf82e,inset 0 0 0 1px #7dd3fc22}.workspace-tab[data-tab="profile-pane"].active{border-color:#22c55e77;box-shadow:0 0 20px #22c55e24,inset 0 0 0 1px #86efac22}
.deposit-modal{width:min(540px,calc(100vw - 24px));max-height:90vh;overflow:auto}.deposit-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}.deposit-mode{padding:9px;border:1px solid var(--line);border-radius:10px;background:#0f172a;color:var(--muted)}.deposit-mode.active{border-color:var(--cyan);background:#0ea5e91c;color:#e0f2fe;box-shadow:0 0 16px #38bdf822}.deposit-panel{display:grid;gap:11px}.wallet-card{display:grid;grid-template-columns:84px 1fr;align-items:center;gap:12px;padding:11px;border:1px solid var(--line-soft);border-radius:12px;background:#02061780}.wallet-card code,.bank-card code{display:block;margin-top:5px;color:#bae6fd;direction:ltr;text-align:left;overflow-wrap:anywhere;font-family:var(--mono)}.wallet-qr{width:84px;aspect-ratio:1;display:grid;place-items:center;border:7px solid #e2e8f0;border-radius:9px;background:repeating-conic-gradient(#0f172a 0 25%,#e2e8f0 0 50%) 50%/18px 18px;color:#0f172a;font:900 12px var(--mono)}.deposit-calculation{display:grid;grid-template-columns:1fr 1fr;gap:8px}.deposit-calculation span,.bank-card{padding:10px;border:1px solid var(--line-soft);border-radius:10px;background:#0f172a80;color:var(--muted);font-size:10px}.deposit-calculation strong,.bank-card strong{display:block;margin-top:5px;color:var(--text);font-size:12px}.bank-card{display:grid;gap:5px}
@media(max-width:1320px){.profile-box{grid-column:1/-1;width:min(320px,100%);justify-self:start}.profile-menu{right:0;left:auto}}
.wallet-qr{background:#0f172a center/cover no-repeat;color:var(--muted);font:700 9px var(--font);text-align:center}.wallet-qr.configured{background-color:#fff;color:transparent}
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.user-menu { position: relative; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.dropdown-content {
    display: none; position: absolute; top: 100%; right: 0;
    background: var(--panel); border: 1px solid var(--line);
    min-width: 160px; z-index: 100; border-radius: 8px;
}
.user-menu:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 10px; color: var(--text); text-decoration: none; }
.dropdown-content a:hover { background: var(--panel-strong); }
.total-equity strong { font-size: 1.5rem; color: var(--green); }
.signal-row strong { font-size: 12px; color: var(--text); }
:root { --font-body: 'Vazirmatn', 'IRANSans', tahoma, sans-serif; }
body { font-family: var(--font-body); }
.status-strip { display: flex; gap: 10px; margin-bottom: 12px; direction: rtl; }
.status-pill { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(15, 23, 42, 0.7); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; }
.status-text { display: flex; flex-direction: column; gap: 2px; }
.status-text.centered { align-items: center; text-align: center; width: 100%; }
.status-pill small { font-family: var(--font-body); font-size: 10.5px; font-weight: 500; color: #94a3b8; letter-spacing: 0; }
.status-pill strong { font-family: var(--font-body); font-size: 15px; font-weight: 800; color: #f1f5f9; }
.fa-num { font-variant-numeric: tabular-nums; }
.exchange-balances{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}.exchange-balance-card{direction:rtl;border:1px solid var(--line-soft);border-radius:13px;background:#0f172a80;overflow:hidden}.ex-card-header,.portfolio-item-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.ex-card-header{padding:11px 12px;border-bottom:1px solid var(--line-soft)}.ex-name{font-weight:800;color:var(--text)}.ex-total-badge{direction:ltr;unicode-bidi:isolate;padding:4px 7px;border-radius:999px;background:#38bdf815;color:var(--cyan)}.ex-items-list{display:grid}.portfolio-item-row{padding:10px 12px;border-bottom:1px solid var(--line-soft)}.portfolio-item-row:last-child{border-bottom:0}.asset-col,.val-col{display:flex;flex-direction:column;gap:3px;min-width:0}.asset-col{align-items:flex-start}.val-col{align-items:flex-end;text-align:left}.asset-symbol{direction:ltr;unicode-bidi:isolate;font-weight:700;color:var(--text)}.crypto-amount,.usdt-val,.ex-total-badge{font-variant-numeric:tabular-nums}.crypto-amount,.usdt-val{direction:ltr;unicode-bidi:isolate}.num-persian,.irt-approx{direction:rtl;unicode-bidi:isolate}.unit-label,.irt-approx{color:var(--muted);font-size:10px}.portfolio-item-empty{padding:18px;text-align:center;color:var(--muted)}.font-mono{font-family:var(--mono)}
.exchange-balances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; direction: rtl; }
.exchange-balance-card { min-width: 0; background: rgba(15, 23, 42, 0.7); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ex-card-header { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding-bottom: 6px; }
.ex-name { min-width: 0; font-weight: 700; font-size: 13px; color: #f1f5f9; }
.ex-total-badge { min-width: 0; max-width: 65%; flex-shrink: 1; display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .2px; color: #38bdf8; direction: rtl; unicode-bidi: isolate; }
.ex-total-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-total-unit { flex-shrink: 0; font-size: 10px; color: #94a3b8; }
.ex-items-list { display: flex; flex-direction: column; }
.portfolio-item-row { display: grid; grid-template-columns: minmax(58px, auto) minmax(76px, 1fr) minmax(104px, auto); align-items: center; gap: 8px; min-width: 0; font-size: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.portfolio-item-row:last-child { border-bottom: 0; }
.asset-symbol { min-width: 58px; flex-shrink: 0; font-weight: 600; color: #e2e8f0; direction: ltr; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crypto-amount { min-width: 76px; flex-shrink: 0; color: #94a3b8; font-size: 12px; direction: ltr; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono, monospace); font-variant-numeric: tabular-nums; }
.portfolio-placeholder { color: #475569; }
.val-col { min-width: 104px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; overflow: hidden; }
.usdt-val { max-width: 100%; color: #34d399; font-weight: 600; font-size: 12px; direction: ltr; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono, monospace); font-variant-numeric: tabular-nums; }
.num-persian { max-width: 100%; color: #34d399; font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .2px; direction: rtl; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irt-approx { max-width: 100%; font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: 10px; letter-spacing: .2px; color: #64748b; direction: rtl; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit-label { font-size: 9px; color: #94a3b8; margin-right: 2px; }
.toman-unit { direction: rtl; unicode-bidi: isolate; }
.portfolio-item-empty { font-size: 11px; color: #64748b; text-align: center; padding: 10px 0; }
.font-mono { font-family: 'Consolas', 'Fira Code', var(--mono, monospace); font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
@media (max-width: 600px) { .exchange-balances { grid-template-columns: 1fr; } }
/* Fix User Dropdown Overlay & Interactivity */
.user-menu {
  position: relative;
  z-index: 9999 !important;
  pointer-events: auto !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-dropdown, #user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9999 !important;
  pointer-events: auto !important;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  backdrop-filter: none !important;
  min-width: 190px;
  padding: 8px;
  opacity: 1 !important;
}
.user-dropdown .menu-item,
.user-dropdown button,
.user-dropdown a,
.user-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 10px 14px;
  color: #f1f5f9 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  text-align: right;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.user-dropdown .menu-item:hover,
.user-dropdown button:hover,
.user-dropdown a:hover,
.user-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
}
.user-dropdown hr { border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: 4px 0 8px; }
.dropdown-backdrop { z-index: 9998 !important; }
.topbar { overflow: visible; }
.profile-box { position: relative; z-index: 100; overflow: visible; }
.profile-trigger { position: relative; z-index: 1; opacity: 1; pointer-events: auto; }
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 9999;
  width: 220px;
  padding: 8px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(0,0,0,.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
  pointer-events: auto;
}
.profile-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  margin: 0 0 6px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: #1e293b;
  color: #f1f5f9;
  text-align: right;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
}
.profile-menu button:last-child { margin-bottom: 0; }
.profile-menu button:hover,
.profile-menu button:focus-visible {
  color: #38bdf8;
  background: #173047;
  border-color: rgba(56,189,248,.35);
  outline: none;
}

.thought-symbol{display:inline-flex;align-items:center;margin-right:6px;padding:2px 7px;border:1px solid #38bdf84d;border-radius:999px;background:#38bdf814;color:#bae6fd;font:700 10px var(--mono);unicode-bidi:isolate;white-space:nowrap}
.agent-radar.stream-idle{box-shadow:inset 0 0 0 1px #f59e0b26}
.agent-radar.stream-offline{box-shadow:inset 0 0 0 1px #ef44444d;opacity:.72}

.signals-card .signal-row{align-items:flex-start}
.signals-card .signal-val{max-width:68%;white-space:normal;text-align:right;overflow-wrap:anywhere}
.gauge-core #brain-direction{max-width:112px}

.metric-value,.balance-val,#total-equity{font-variant-numeric:tabular-nums;font-family:var(--mono)}

/* Surgical glass cockpit refinement */
:root{--green:#0ECB81;--red:#F6465D}
.glass-card,.status-pill,.exchange-balance-card,.exchange-balance,.market-metrics div,.signal-row,.identity-summary,.plan-card{background:rgba(18,22,34,.75);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.status-strip{display:flex;align-items:center;gap:6px;margin-bottom:0;padding:4px 6px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(18,22,34,.75);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.status-strip .status-pill{flex:0 1 auto;min-height:34px;gap:7px;padding:5px 9px;border:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;border-radius:999px}
.status-strip .status-text{gap:0}.status-strip .status-pill small{font-size:9px}.status-strip .status-pill strong{font-size:11px}.status-strip .regime-status{min-width:0}.status-strip .button{padding:4px 9px;font-size:10px}
.total-equity{position:relative;display:grid;justify-items:center;gap:2px;padding:16px 14px;border:1px solid rgba(14,203,129,.22);border-radius:16px;background:linear-gradient(145deg,rgba(14,203,129,.12),rgba(18,22,34,.82));box-shadow:0 12px 28px rgba(0,0,0,.2)}
.total-equity strong,#total-equity{font-variant-numeric:tabular-nums;font-family:var(--mono);font-size:1.85rem;font-weight:700;color:#0ECB81;line-height:1.2}
.total-equity .equity-usd-estimate{display:block;color:rgba(255,255,255,.6);font:10px var(--mono);direction:ltr}
.table-wrap{max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.positions-table{min-width:850px}
@media (max-width:768px){.status-strip{width:100%;gap:2px;padding:3px}.status-strip .status-pill{min-width:0;padding:5px 6px}.status-strip .status-pill small{font-size:8px}.status-strip .status-pill strong{font-size:10px}.exchange-balances{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.exchange-balance-card{min-width:0}.total-equity{padding:14px 10px}.table-wrap{width:100%}}

/* Timestamp and profile typography refinement */
.thought-time,
#agent-last-time,
#market-time {
  direction: ltr;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.profile-box,
.profile-trigger,
.profile-copy {
  font-size: 0.92rem;
  font-weight: 600;
  color: #F3F4F6;
}

.profile-box,
.profile-trigger {
  gap: 10px;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Radar Trade Intelligence visual system */
:root {
  --bg: oklch(14% 0.025 255);
  --panel: oklch(19% 0.035 255 / 0.78);
  --panel-strong: oklch(16% 0.04 255 / 0.94);
  --line: oklch(62% 0.08 255 / 0.28);
  --line-soft: oklch(82% 0.04 255 / 0.1);
  --text: oklch(96% 0.018 255);
  --muted: oklch(76% 0.035 255);
  --cyan: oklch(78% 0.12 225);
  --blue: oklch(69% 0.14 255);
  --green: oklch(76% 0.16 155);
  --yellow: oklch(82% 0.15 85);
  --red: oklch(70% 0.18 25);
  --violet: oklch(76% 0.13 300);
  --shadow: 0 18px 48px oklch(5% 0.03 255 / 0.34);
  --radius: 16px;
}

body {
  background:
    radial-gradient(circle at 72% -12%, oklch(37% 0.12 255 / 0.24), transparent 38%),
    radial-gradient(circle at 0% 88%, oklch(42% 0.1 215 / 0.16), transparent 34%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.glass-card,
.topbar,
.workspace-tabs,
.auth-modal {
  background: linear-gradient(145deg, oklch(22% 0.045 255 / 0.86), oklch(15% 0.035 255 / 0.9));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow), inset 0 1px 0 oklch(96% 0.02 255 / 0.05);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.topbar {
  isolation: isolate;
  gap: 16px;
}

.brand-text,
.brand h1 {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status-strip {
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: oklch(11% 0.03 255 / 0.54);
}

.status-pill {
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  background: oklch(24% 0.04 255 / 0.42);
}

.profile-box,
.profile-trigger,
.profile-copy {
  color: var(--text);
}

.profile-trigger {
  min-height: 46px;
  border-color: var(--line-soft);
  background: oklch(24% 0.04 255 / 0.52);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.profile-trigger:hover,
.profile-trigger:focus-visible,
.workspace-tab:hover,
.workspace-tab:focus-visible,
.button:hover,
.button:focus-visible {
  border-color: oklch(78% 0.12 225 / 0.58);
  outline: none;
}

.profile-trigger:active,
.workspace-tab:active,
.button:active {
  transform: translateY(1px);
}

.workspace-tabs {
  gap: 8px;
  padding: 8px;
}

.workspace-tab {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.workspace-tab.active {
  color: var(--text);
  border-color: oklch(78% 0.12 225 / 0.38);
  background: oklch(35% 0.09 255 / 0.28);
  box-shadow: 0 0 20px oklch(68% 0.13 235 / 0.12);
}

.section-heading h2 {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.3;
}

.eyebrow,
.counter,
.status-item small,
.profile-box small {
  letter-spacing: 0.08em;
}

.brain-card,
.signals-card,
.portfolio-card,
.order-card,
.kill-card,
.chart-card,
.radar-column,
.trades-card,
.identity-summary,
.plan-card,
.exchange-connections {
  overflow: hidden;
}

#brain-score,
#total-equity,
.metric-value,
.balance-val,
.num-persian,
.font-mono,
.raw-value {
  font-variant-numeric: tabular-nums;
}

#brain-score {
  color: var(--text);
  text-shadow: 0 0 18px oklch(78% 0.12 225 / 0.34);
}

.button {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, filter 180ms ease;
}

.button:focus-visible,
.profile-menu button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid oklch(78% 0.12 225 / 0.72);
  outline-offset: 2px;
}

.profile-menu {
  background: oklch(14% 0.035 255 / 0.98);
  border-color: var(--line);
  box-shadow: 0 20px 48px oklch(5% 0.03 255 / 0.58);
}

.table-wrap,
.positions-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

@media (max-width: 1320px) {
  .cockpit-grid {
    grid-template-columns: minmax(280px, 0.85fr) minmax(480px, 1.4fr);
  }
  .action-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
  }
  .status-strip {
    justify-content: stretch;
    width: 100%;
  }
  .status-pill {
    flex: 1 1 0;
  }
  .cockpit-grid {
    grid-template-columns: 1fr;
  }
  .radar-column {
    height: auto;
    min-height: 430px;
  }
  .market-chart {
    min-height: 280px;
  }
}

@media (max-width: 590px) {
  .cockpit {
    padding: 8px;
  }
  .topbar,
  .workspace-tabs {
    padding: 10px;
  }
  .status-strip {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 14px;
  }
  .status-pill {
    border-radius: 9px;
  }
  .workspace-tabs {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .workspace-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .action-column {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Brand tokens */
:root {
  --brand-accent: oklch(78% 0.20 195);
  --brand-bull: oklch(72% 0.18 155);
  --brand-glow: oklch(78% 0.20 195 / .18);
}

a.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  filter: drop-shadow(0 0 6px var(--brand-glow));
}

.brand-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-accent);
  letter-spacing: -.01em;
}

.brand-tagline {
  font-size: .7rem;
  font-weight: 400;
  color: oklch(75% 0.05 220);
  opacity: .75;
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-sweep {
  animation: radar-sweep 3s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep { animation: none; }
}

/* Brand SVG sizing & glow */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 5px oklch(72% 0.22 190 / 0.55));
}

/* Radar sweep animation */
@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-sweep {
  transform-origin: 20px 20px;
  animation: radar-sweep 3s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep { animation: none; }
}

/* Brand logo & radar sweep */
:root {
  --brand-accent: #38bdf8;
  --brand-glow: #34d399;
}

.brand {
  display: flex;
  align-items: center;
  gap: .625rem;
}

.brand-logo {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--brand-accent);
  letter-spacing: .01em;
}

.brand-tagline {
  font-size: .6875rem;
  color: oklch(75% .04 220);
  letter-spacing: .02em;
}

.radar-sweep {
  transform-origin: 20px 20px;
  animation: radar-spin 3s linear infinite;
}

@keyframes radar-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep { animation: none; }
}

/* Brain Conviction Arc Gauge */
.brain-gauge { --conviction: 0; --gauge-color: var(--cyan); position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding-block: .5rem 0; }
.gauge-svg { width: 100%; max-width: 220px; overflow: visible; }
.gauge-track { fill: none; stroke: color-mix(in oklch, var(--gauge-color) 15%, transparent); stroke-width: 8; stroke-linecap: round; }
.gauge-fill { fill: none; stroke: var(--gauge-color); stroke-width: 8; stroke-linecap: round; stroke-dasharray: var(--conviction) 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 5px var(--gauge-color)); transition: stroke-dasharray .55s cubic-bezier(.34,1.2,.64,1),stroke .35s ease,filter .35s ease; }
.gauge-ticks line { stroke: color-mix(in oklch, var(--cyan) 35%, transparent); stroke-width: 1.5; stroke-linecap: round; }
.gauge-needle { stroke: hsl(0 0% 92%); stroke-width: 2; stroke-linecap: round; transform-origin: 100px 100px; transform: rotate(calc(-90deg + var(--conviction) * 1.8deg)); transition: transform .55s cubic-bezier(.34,1.2,.64,1); filter: drop-shadow(0 0 3px rgb(255 255 255 / .4)); }
.gauge-cap { fill: hsl(0 0% 88%); stroke: var(--bg,#0f172a); stroke-width: 2; }
.gauge-core { display: flex; flex-direction: column; align-items: center; margin-top: -.25rem; line-height: 1.1; }
.gauge-core strong { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gauge-color); transition: color .35s ease; }
.gauge-core span { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklch, var(--gauge-color) 70%, transparent); transition: color .35s ease; }
.brain-gauge.conviction--high .gauge-fill { animation: gauge-pulse 1.4s ease-in-out infinite; }
@keyframes gauge-pulse { 0%,100% { filter: drop-shadow(0 0 4px var(--gauge-color)); } 50% { filter: drop-shadow(0 0 12px var(--gauge-color)) drop-shadow(0 0 20px var(--gauge-color)); } }
@media (prefers-reduced-motion: reduce) { .gauge-fill,.gauge-needle { transition: none; } .brain-gauge.conviction--high .gauge-fill { animation: none; } }

/* Unified subscription payment wizard */
.wizard-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:12px 0;color:var(--muted);font-size:10px;text-align:center}
.wizard-steps span{padding:7px 4px;border:1px solid var(--line-soft);border-radius:8px}
.wizard-steps span.active{color:var(--cyan);border-color:var(--cyan);background:#38bdf812}
.wizard-step{display:none;gap:12px;text-align:right}
.wizard-step.active{display:grid}
.payment-methods{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.payment-method-card{min-height:78px;border:1px solid var(--line);border-radius:12px;background:#0f172a;color:var(--text);font-weight:700}
.payment-method-card.active{border-color:var(--cyan);background:#0ea5e91c;box-shadow:0 0 18px #38bdf822;color:#e0f2fe}
.payment-summary,.payment-instructions{display:grid;gap:8px;padding:12px;border:1px solid var(--line-soft);border-radius:10px;background:#0f172a80;color:var(--muted);font-variant-numeric:tabular-nums}
.payment-instructions{direction:rtl}
.payment-instructions strong,.payment-summary strong{color:var(--text);font-family:var(--mono);font-variant-numeric:tabular-nums;direction:ltr}
.wizard-actions{display:flex;gap:8px}
.wizard-actions>*{flex:1}
#payment-txid,#payment-bank-ref,#payment-receipt,.raw-value{direction:ltr;font-variant-numeric:tabular-nums}
@media(max-width:590px){.wizard-steps{grid-template-columns:repeat(2,1fr)}.payment-methods{grid-template-columns:1fr}.wizard-actions{flex-direction:column}}
.deposit-modal{display:none!important}

/* Persian typography and explicit conviction direction */
.profile-box small,
.profile-copy,
.profile-box strong,
#profile-name {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  letter-spacing: normal;
  font-weight: 500;
}

.gauge-core strong {
  font-family: 'Vazirmatn', var(--mono);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.gauge-core span,
#brain-direction,
.empty-state {
  font-family: 'Vazirmatn', sans-serif;
  letter-spacing: normal;
  font-size: 11px;
}

.dir-tag {
  display: inline-block;
  font-family: 'Vazirmatn', sans-serif;
  letter-spacing: normal;
  font-size: 11px;
  font-weight: 600;
}
.dir-tag.buy { color: var(--green); }
.dir-tag.sell { color: var(--red); }
.dir-tag.neutral { color: #94a3b8; }

.conviction-scale {
  direction: rtl;
  font-family: 'Vazirmatn', sans-serif;
  letter-spacing: normal;
}
.conviction-scale span { font-size: 0; }
.conviction-scale span::after { font-size: 11px; }

/* Final Persian gauge typography and layout correction */
.profile-box small,
.profile-copy,
.profile-box strong,
#profile-name,
.gauge-core span,
#brain-direction,
.dir-tag,
.conviction-scale,
.conviction-scale span,
.conviction-scale span::after,
.empty-state {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  letter-spacing: normal;
}

.gauge-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  overflow: hidden;
}

.gauge-core strong {
  font-family: 'Vazirmatn', var(--mono);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  white-space: nowrap;
  line-height: 1;
}

#brain-direction {
  display: block;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.conviction-scale {
  font-size: 11px;
  font-weight: 500;
}
.conviction-scale span { font-size: 0 !important; }
.dir-tag { display: none; }
