/* Reserved right sidebar column — layout inset, not overlay over page content. */

:root {
  --zs-right-utility-rail-width: 60px;
  --zs-right-sidebar-width: var(--zs-right-utility-rail-width);
  --zs-sidebar-brand-slot: var(--zs-right-utility-rail-width);
  --zs-header-height: 72px;
  --zs-tt-header-height: var(--zs-header-height);
  --zs-header-brand-width: var(--zs-right-sidebar-width);
  --zs-layout-sidebar-inset: 0px;
  --zs-right-sidebar-bg: #000000;
  --zs-right-sidebar-fg: #f8fafc;
  --zs-right-sidebar-border: rgba(255, 255, 255, 0.1);
}

html.light,
html[data-theme='light'] {
  --zs-right-sidebar-bg: #ffffff;
  --zs-right-sidebar-fg: #0f172a;
  --zs-right-sidebar-border: rgba(15, 23, 42, 0.1);
}

html.dark,
html[data-theme='dark'] {
  --zs-right-sidebar-bg: #000000;
  --zs-right-sidebar-fg: #f8fafc;
  --zs-right-sidebar-border: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  body.has-right-sidebar-open {
    --zs-layout-sidebar-inset: var(--zs-right-utility-rail-width);
  }

  html:has(.zsTradingToolbar),
  body:has(.zsTradingToolbar) {
    --zs-layout-sidebar-inset: var(--zs-right-utility-rail-width);
  }

  body.has-right-sidebar-layout {
    overflow-x: clip;
    max-width: 100%;
  }

  /* Header canvas ends at the rail. Physical right — do not use logical inset. */
  html:has(.zsTradingToolbar) .zs-header-p0 .zs-site-header,
  body.has-right-sidebar-open .zs-header-p0 .zs-site-header {
    left: 0 !important;
    right: var(--zs-right-utility-rail-width, 52px) !important;
    width: auto !important;
    max-width: none !important;
  }

  /* Header mega-menu must clear the reserved sidebar column. */
  body.has-right-sidebar-layout:not(.zs-is-home-page) .navArea .mega-menu-panel {
    max-width: calc(100% - var(--zs-right-utility-rail-width) - 24px);
    box-sizing: border-box;
  }

  /* Application canvas terminates at the physical left edge of the rail.
     Use margin-right (not width calc): in RTL, a specified width aligns to the
     right and would leave the gap on the left. */
  body.has-right-sidebar-open main,
  html:has(.zsTradingToolbar) main,
  body:has(.zsTradingToolbar) main {
    width: auto !important;
    max-width: none;
    margin-right: var(--zs-right-utility-rail-width, 52px) !important;
    box-sizing: border-box;
  }

  body.has-right-sidebar-open footer[role='contentinfo'],
  html:has(.zsTradingToolbar) footer[role='contentinfo'],
  body:has(.zsTradingToolbar) footer[role='contentinfo'] {
    width: auto !important;
    max-width: none;
    margin-right: var(--zs-right-utility-rail-width, 52px) !important;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  html:has(.zsTradingToolbar),
  body:has(.zsTradingToolbar),
  body.has-right-sidebar-open,
  body.has-right-sidebar-layout {
    --zs-layout-sidebar-inset: 0px;
  }
}

/* Full-viewport right workspace: the shell owns y-axis from 0 → 100dvh and
   stacks above .zs-site-header (z-50). The rail stays above the workspace. */
html:has(.zsTradingToolbar) .zsTradingPanel,
html:has(.zsTradingToolbar) .zsWl,
html:has(.zsTradingToolbar) .ntfShell,
html:has(.zsTradingToolbar) .altShell,
html:has(.zsTradingToolbar) .recShell,
html:has(.zsTradingToolbar) .ecdShell,
html:has(.zsTradingToolbar) .mrdShell {
  top: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  z-index: 51;
}

html:has(.zsTradingToolbar) .mrdBackdrop {
  top: 0;
}

/* Temporary global disable. Matches html[data-zs-intelligence-rail="off"]
   from the root layout when GLOBAL_INTELLIGENCE_RAIL_ENABLED is false.
   Collapses leftover rail-width tokens (search, news article) without
   per-page display rules. Setting the flag back to true removes the attribute. */
html[data-zs-intelligence-rail='off'] {
  --zs-right-utility-rail-width: 0px;
  --zs-right-sidebar-width: 0px;
  --zs-layout-sidebar-inset: 0px;
  --zs-sidebar-brand-slot: 0px;
}

/* ZeroSpread — TradingView-style right utility rail (60px, icons only).
   Full-height viewport chrome (y = 0 → viewport bottom). Always white. */

.zsTradingToolbar {
  --zs-rail-icon: #2d3338;
  --zs-rail-hover: #f4f4f5;
  --zs-rail-active: #242424;
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  bottom: 0;
  width: var(--zs-right-utility-rail-width, var(--zs-right-sidebar-width, 60px));
  min-width: var(--zs-right-utility-rail-width, var(--zs-right-sidebar-width, 60px));
  max-width: var(--zs-right-utility-rail-width, var(--zs-right-sidebar-width, 60px));
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  z-index: 52;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  background-color: #ffffff;
  color: var(--zs-rail-icon);
  border: 0;
  border-left: 1px solid #e5e7eb;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  overflow: visible;
  -webkit-user-select: none;
  user-select: none;
}

html.light .zsTradingToolbar,
html[data-theme='light'] .zsTradingToolbar,
html.dark .zsTradingToolbar,
html[data-theme='dark'] .zsTradingToolbar {
  background: #ffffff;
  background-color: #ffffff;
  color: #2d3338;
  border: 0;
  border-left: 1px solid #e5e7eb;
  box-shadow: none;
}

.zsTradingToolbarTop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 10px;
  flex: 0 0 auto;
  background: transparent;
}

.zsTradingToolbarSpacer {
  flex: 1 1 auto;
  min-height: 24px;
  width: 100%;
  background: transparent;
}

.zsTradingToolbarBottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 0;
  flex: 0 0 auto;
  background: transparent;
}

.zsTradingToolbarHelp {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 0;
  background: transparent;
}

.zsTradingToolbarHelp::before {
  content: '';
  width: 28px;
  height: 1px;
  background: #e5e7eb;
  margin-bottom: 10px;
  flex: 0 0 auto;
}

.zsTradingToolbarButton {
  position: relative;
  isolation: isolate;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--zs-rail-icon);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 140ms ease;
}

.zsTradingToolbarButton::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  z-index: 0;
  pointer-events: none;
  transition: background-color 140ms ease;
}

.zsTradingToolbarButton .zsTtUnreadDot {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--zs-light-primary);
  box-shadow: 0 0 0 1.5px #ffffff;
  z-index: 2;
  pointer-events: none;
}

.zsTradingToolbarButton[data-active='true'] .zsTtUnreadDot,
.zsTradingToolbarButton[aria-pressed='true'] .zsTtUnreadDot {
  background: #ffffff;
  box-shadow: 0 0 0 1.5px #242424;
}

.zsTradingToolbarButton svg {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  stroke: currentColor;
  fill: none;
  opacity: 1;
}

html.light .zsTradingToolbarButton svg,
html[data-theme='light'] .zsTradingToolbarButton svg,
html.dark .zsTradingToolbarButton svg,
html[data-theme='dark'] .zsTradingToolbarButton svg {
  stroke: currentColor;
}

.zsTradingToolbarButton:hover::before {
  background: #f4f4f5;
}

.zsTradingToolbarButton[data-active='true'] {
  color: #ffffff;
}

.zsTradingToolbarButton[data-active='true']::before,
.zsTradingToolbarButton[data-active='true']:hover::before,
.zsTradingToolbarButton[aria-pressed='true']::before,
.zsTradingToolbarButton[aria-pressed='true']:hover::before {
  background: #242424;
}

html.light .zsTradingToolbarButton[data-active='true'],
html[data-theme='light'] .zsTradingToolbarButton[data-active='true'],
html.dark .zsTradingToolbarButton[data-active='true'],
html[data-theme='dark'] .zsTradingToolbarButton[data-active='true'] {
  color: #ffffff;
}

.zsTradingToolbarButton[data-active='true'] svg,
html.light .zsTradingToolbarButton[data-active='true'] svg,
html[data-theme='light'] .zsTradingToolbarButton[data-active='true'] svg,
html.dark .zsTradingToolbarButton[data-active='true'] svg,
html[data-theme='dark'] .zsTradingToolbarButton[data-active='true'] svg {
  stroke: #ffffff;
}

.zsTradingToolbarButton--help svg {
  width: 24px;
  height: 24px;
}

.zsTradingToolbarButton--launcher {
  color: #ffffff;
}

.zsTradingToolbarButton--launcher::before,
.zsTradingToolbarButton--launcher:hover::before,
.zsTradingToolbarButton--launcher[data-active='true']::before,
.zsTradingToolbarButton--launcher[data-active='true']:hover::before,
.zsTradingToolbarButton--launcher[aria-pressed='true']::before,
.zsTradingToolbarButton--launcher[aria-pressed='true']:hover::before {
  width: 36px;
  height: 36px;
  background: #242424;
}

.zsTradingToolbarWaffle {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  pointer-events: none;
}

.zsTradingToolbarWaffle > span {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #ffffff;
}

.zsTradingToolbarButton:focus {
  outline: none;
  box-shadow: none;
}

.zsTradingToolbarButton:focus-visible {
  outline: 2px solid #2d3338;
  outline-offset: 2px;
  box-shadow: none;
  border-radius: 50%;
}

.zsTradingToolbarButton[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  left: auto;
  transform: translateY(-50%);
  padding: 5px 8px;
  background: #242424;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 4px;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 140ms ease;
}

.zsTradingToolbarButton:hover::after,
.zsTradingToolbarButton:focus-visible::after {
  opacity: 1;
}

/* Small accent dot (e.g. unseen activity) */
.zsTradingToolbarDot {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #00d26a;
  pointer-events: none;
  z-index: 2;
}

/* Count badge */
.zsTradingToolbarBadge {
  position: absolute;
  right: 1px;
  top: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #00d26a;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

/* â”€â”€ Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.zsTradingPanel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: var(--zs-right-sidebar-width, 60px);
  width: 360px;
  max-width: calc(100vw - var(--zs-right-sidebar-width, 60px));
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  z-index: 51;
  background: #0b0f14;
  color: #e5e7eb;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -18px 0 40px -24px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  animation: zsTtPanelIn 0.2s ease;
  overflow: hidden;
}

html.light .zsTradingPanel {
  background: #ffffff;
  color: #0f172a;
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: -18px 0 40px -28px rgba(15, 23, 42, 0.28);
}

@keyframes zsTtPanelIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.zsTradingPanelHeader {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

html.light .zsTradingPanelHeader {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.zsTradingPanelTitle {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.zsTradingPanelSubtitle {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.62;
  line-height: 1.4;
}

.zsTradingPanelClose {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.7;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.zsTradingPanelClose:hover {
  opacity: 1;
  background: rgba(127, 127, 127, 0.14);
}

.zsTradingPanelClose:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 210, 106, 0.55);
}

.zsTradingPanelBody {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px 20px;
}

/* â”€â”€ Panel content primitives â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.zsTtRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.06);
  margin-bottom: 8px;
  font-size: 13px;
}

.zsTtRowMain {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.zsTtRowName {
  font-weight: 600;
}

.zsTtRowSub {
  font-size: 11px;
  opacity: 0.6;
}

.zsTtUp {
  color: #00d26a;
  font-variant-numeric: tabular-nums;
}

.zsTtDown {
  color: #ef4444;
  font-variant-numeric: tabular-nums;
}

.zsTtLink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  background: rgba(127, 127, 127, 0.06);
  margin-bottom: 8px;
  transition: background-color 0.15s ease;
}

.zsTtLink:hover {
  background: rgba(0, 210, 106, 0.1);
}

.zsTradingPanel[data-panel='intelligence'] {
  background: var(--zs-light-surface);
  color: var(--zs-light-text);
  border: 0;
  border-left: 1px solid var(--zs-light-border);
  box-shadow: none;
  outline: none;
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

html.light .zsTradingPanel[data-panel='intelligence'] {
  background: var(--zs-light-surface);
  color: var(--zs-light-text);
  border-left: 1px solid var(--zs-light-border);
  box-shadow: none;
}

.zsTradingPanel[data-panel='intelligence'] .zsTradingPanelHeader {
  min-height: 64px;
  max-height: 72px;
  box-sizing: border-box;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--zs-light-border);
}

.zsTradingPanel[data-panel='intelligence'] .zsTradingPanelTitle {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

.zsTradingPanel[data-panel='intelligence'] .zsTradingPanelSubtitle {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--zs-muted);
  opacity: 1;
}

.zsTradingPanel[data-panel='intelligence'] .zsTradingPanelBody {
  padding: 0;
}

.zsProdLaunch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px 0;
}

.zsProdGroup {
  margin: 0;
  width: 100%;
  background: var(--zs-light-bg-alt);
  border: 1px solid var(--zs-light-border);
  border-radius: var(--zs-radius-md);
  overflow: hidden;
}

.zsProdGroupLabel {
  margin: 0;
  padding: 12px 14px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--zs-light-secondary);
}

.zsProdList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zsProdList > li {
  margin: 0;
  padding: 0;
}

.zsProdList > li + li {
  border-top: 1px solid var(--zs-light-border);
}

.zsProdRow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  min-height: 50px;
  max-height: 54px;
  padding: 0 14px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.zsProdRow:hover {
  background: var(--zs-light-bg);
}

.zsProdRow:focus-visible {
  outline: none;
  background: var(--zs-light-bg);
  box-shadow: inset 0 0 0 2px var(--zs-light-border);
}

.zsProdRow[data-current='true'] {
  background: var(--zs-light-bg);
}

.zsProdRow[data-current='true'] .zsProdName {
  color: var(--zs-light-text-strong);
}

.zsProdRow:hover .zsProdName,
.zsProdRow:focus-visible .zsProdName {
  color: var(--zs-light-text-strong);
}

.zsProdIcon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: inherit;
}

.zsProdIcon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.zsProdName {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 24px;
  text-align: start;
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-size: 15px;
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zsProdChevron {
  flex-shrink: 0;
  display: block;
  align-self: center;
  color: var(--zs-light-secondary);
}

.zsTradingPanel[data-panel='help'] {
  background: var(--zs-light-surface);
  color: var(--zs-light-text);
  border: 0;
  border-left: 1px solid var(--zs-light-border);
  box-shadow: none;
  outline: none;
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

html.light .zsTradingPanel[data-panel='help'] {
  background: var(--zs-light-surface);
  color: var(--zs-light-text);
  border-left: 1px solid var(--zs-light-border);
  box-shadow: none;
}

.zsTradingPanel[data-panel='help'] .zsTradingPanelHeader {
  min-height: 64px;
  max-height: 72px;
  box-sizing: border-box;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--zs-light-border);
}

.zsTradingPanel[data-panel='help'] .zsTradingPanelTitle {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

.zsTradingPanel[data-panel='help'] .zsTradingPanelSubtitle {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--zs-muted);
  opacity: 1;
}

.zsTradingPanel[data-panel='help'] .zsTradingPanelBody {
  padding: 0;
}

.zsHelpLaunch {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 12px 16px;
}

.zsHelpChat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 0 14px;
  margin: 0;
  border: 1px solid var(--zs-light-border);
  border-radius: var(--zs-radius-md);
  background: var(--zs-light-bg-alt);
  color: inherit;
  text-align: start;
  cursor: pointer;
  box-sizing: border-box;
  font: inherit;
}

.zsHelpChat:hover:not(:disabled) {
  background: var(--zs-light-bg);
}

.zsHelpChat:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--zs-light-border);
}

.zsHelpChat:disabled {
  cursor: wait;
  opacity: 0.72;
}

.zsHelpChatError {
  margin: -6px 14px 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--zs-light-secondary);
}

.zsHelpFaq {
  margin: 0;
}

.zsHelpFaqHeading {
  margin: 0 2px 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--zs-light-secondary);
}

.zsHelpFaqList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zsHelpFaqItem + .zsHelpFaqItem {
  border-top: 1px solid var(--zs-light-border);
}

.zsHelpFaqQ {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  line-height: 1.35;
}

.zsHelpFaqQ:hover {
  background: var(--zs-light-bg);
}

.zsHelpFaqQ:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--zs-light-border);
}

.zsHelpFaqChevron {
  flex-shrink: 0;
  color: var(--zs-light-secondary);
}

.zsHelpFaqChevron[data-open='true'] {
  transform: rotate(180deg);
}

.zsHelpFaqA {
  padding: 0 12px 10px;
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--zs-light-secondary);
}

.zsHelpList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zsHelpList > li {
  margin: 0;
  padding: 0;
}

.zsHelpList > li + li {
  border-top: 1px solid var(--zs-light-border);
}

.zsHelpRow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  height: 62px;
  padding: 0 14px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.zsHelpRow:hover {
  background: var(--zs-light-bg);
}

.zsHelpRow:focus-visible {
  outline: none;
  background: var(--zs-light-bg);
  box-shadow: inset 0 0 0 2px var(--zs-light-border);
}

.zsHelpIcon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: inherit;
}

.zsHelpIcon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.zsHelpCopy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: start;
}

.zsHelpTitle {
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-size: 14px;
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zsHelpDesc {
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--zs-light-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zsHelpChevron {
  flex-shrink: 0;
  display: block;
  align-self: center;
  color: var(--zs-light-secondary);
}

.zsTtTabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.zsTtTab {
  flex: 1 1 auto;
  border: 0;
  border-radius: 8px;
  padding: 7px 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(127, 127, 127, 0.08);
  color: inherit;
  opacity: 0.7;
}

.zsTtTab[data-active='true'] {
  background: rgba(0, 210, 106, 0.14);
  color: #00d26a;
  opacity: 1;
}

.zsTtEmpty {
  text-align: center;
  padding: 30px 10px;
  opacity: 0.6;
  font-size: 13px;
  line-height: 1.6;
}

.zsTtCta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: #00d26a;
  color: #042713;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.zsTtCta:hover {
  filter: brightness(1.05);
}

.zsTtSectionLabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 4px 0 10px;
}

.zsTtCards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.zsTtCard {
  border-radius: 10px;
  padding: 12px;
  background: rgba(127, 127, 127, 0.06);
}

.zsTtCardLabel {
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: 4px;
}

.zsTtCardValue {
  font-size: 16px;
  font-weight: 700;
}

/* Mobile: hide toolbar on small screens */
@media (max-width: 767px) {
  .zsTradingToolbar,
  .zsTradingPanel {
    display: none !important;
  }
}

.zsMobileRadarFab {
  position: fixed;
  bottom: 16px;
  inset-inline-end: 16px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(8, 153, 129, 0.35);
  background: #ffffff;
  color: var(--radar-up, #089981);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.zsMobileRadarFab[aria-pressed='true'] {
  background: var(--radar-up, #089981);
  color: #ffffff;
  border-color: var(--radar-up, #089981);
}


/* Contextual market-category switcher — sticky under SiteHeader, content-sized pill. */

.zs-catbar-wrap {
  position: sticky;
  top: var(--zs-header-height, 72px);
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  padding: 0 8px;
  margin: 0;
  background: #ffffff;
  box-sizing: border-box;
  width: 100%;
}

.zs-catbar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 38px;
  padding: 6px 7px;
  background: #ffffff;
  border: 1px solid #e8eaee;
  border-radius: 23px;
  box-shadow: none;
  box-sizing: border-box;
}

.zs-catbar a,
.zs-catbar button {
  font-family: var(--zs-font-body, 'Tajawal', 'Cairo', 'IBM Plex Sans Arabic', sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 19px;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  height: 26px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.zs-catbar a:hover,
.zs-catbar button:hover {
  color: #334155;
  background: transparent;
}

.zs-catbar .zs-cat-active,
.zs-catbar a.zs-cat-active,
.zs-catbar button.zs-cat-active {
  color: #ffffff;
  background: #242424;
  font-weight: 500;
  border-radius: 19px;
}

.zs-catbar .zs-cat-active:hover {
  color: #ffffff;
  background: #242424;
}

@media (max-width: 767px) {
  .zs-catbar-wrap {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .zs-catbar-wrap::-webkit-scrollbar {
    display: none;
  }

  .zs-catbar {
    max-width: none;
    flex-shrink: 0;
  }
}

