/* zonealert «هشدار قیمت» (zone-alert.js): the bell button beside the live/backtest switch, the pick mode over the plot,
   the visitor's active alerts as dashed bands, and the small window. */
.za-top { position:relative; flex:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; cursor:pointer;
  height:30px; padding:0 10px; border:1px solid #e9b24a; border-radius:8px; background:#fff8e8; color:#b7791f;
  font:600 12.5px/1 Vazirmatn, IRANSans, Tahoma, sans-serif; white-space:nowrap; }
.za-top[hidden] { display:none; }
.za-top:hover, .za-top:focus-visible, .za-top.is-on { background:#e9b24a; color:#fff; outline:none; }
.za-top .za-n { position:absolute; top:-6px; left:-6px; min-width:16px; height:16px; padding:0 4px; border-radius:8px; background:#e5484d;
  color:#fff; font:700 10px/16px Vazirmatn, Tahoma, sans-serif; font-style:normal; text-align:center; }
.za-top .za-n[hidden] { display:none; }
/* In the desktop filter bar: the bar's height and radius, 8px after the switch. */
#filterBar > .za-top { align-self:flex-start; margin:2px 0 0; margin-inline-start:8px; height:var(--fb-h, 28px); border-radius:var(--fb-r, 8px);
  font-size:var(--fb-fs, 12.5px); }
/* The map's one-row desktop bar (#wb[data-mc]): the switch takes the row's free space (margin-inline-start:auto); the bell
   takes it instead and the switch follows 8px after it — «نظر جمعی» … [هشدار قیمت] [بکتست | ریل]. */
#wb[data-mc] #filterBar > .za-top { align-self:center; margin:0; margin-inline:auto 8px; }
#wb[data-mc] #filterBar > .za-top + .mode-switch { margin-inline-start:0; }
@media (min-width:900px) and (max-width:1023px) { #filterBar > .za-top .za-top-t { display:none; } #filterBar > .za-top { padding:0 8px; } }
/* In the chart's corner (a phone): a round icon after the switch. */
.za-top[data-where="corner"] { width:30px; height:30px; padding:0; border-radius:50%; margin-inline-start:6px; }
.za-top[data-where="corner"] .za-top-t { display:none; }

.za-layer { position:absolute; inset:0; pointer-events:none; z-index:6; }
.za-band { position:absolute; border-top:1.5px dashed #e9b24a; border-bottom:1.5px dashed #e9b24a; background:rgba(233,178,74,.08); }
.za-band-tag { position:absolute; left:6px; top:-11px; display:inline-flex; align-items:center; gap:4px; background:#fff8e8; color:#b7791f;
  border:1px solid #e9b24a; border-radius:999px; padding:1px 4px 1px 8px; font:700 11px/1.6 Vazirmatn, IRANSans, Tahoma, sans-serif; pointer-events:auto; direction:ltr; }
.za-band-tag button { border:0; background:none; color:#b7791f; font-size:14px; line-height:1; cursor:pointer; padding:0 4px; }

/* Pick mode: the plot takes the pointer; a crosshair, a hint on top, the picked band. */
.za-pick { position:absolute; z-index:8; cursor:crosshair; touch-action:none; background:rgba(233,178,74,.04); outline:1.5px dashed rgba(233,178,74,.7); outline-offset:-1px; }
.za-hint { position:absolute; top:8px; left:50%; transform:translateX(-50%); max-width:calc(100% - 16px); display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:6px 8px; padding:7px 10px; border-radius:12px; background:#fff; color:#0f1b2d; border:1px solid #e9b24a; cursor:default;
  box-shadow:0 8px 24px rgba(15,27,45,.18); font:13px/1.5 Vazirmatn, IRANSans, Tahoma, sans-serif; }
.za-hint .za-ico { color:#b7791f; display:flex; }
.za-hint-s { color:#64748b; font-size:12px; }
.za-chip { border:1px solid #e9b24a; background:#fff8e8; color:#8a5a12; border-radius:999px; padding:2px 10px; font:600 11.5px/1.6 inherit; cursor:pointer; }
.za-chip:hover { background:#e9b24a; color:#fff; }
.za-cancel { border:1px solid #e2e8f0; background:#fff; color:#e5484d; border-radius:8px; padding:3px 12px; font:700 12.5px/1.6 inherit; cursor:pointer; }
.za-cancel:hover { background:#fdecec; border-color:#e5484d; }
.za-sel { position:absolute; left:0; right:0; background:rgba(233,178,74,.22); border-top:2px solid #e9b24a; border-bottom:2px solid #e9b24a; pointer-events:none; }
.za-sel[hidden] { display:none; }
.za-sel-x { position:absolute; left:6px; top:50%; transform:translateY(-50%); width:24px; height:24px; border-radius:50%; border:0; padding:0;
  background:#e5484d; color:#fff; font:700 16px/24px Tahoma, sans-serif; cursor:pointer; pointer-events:auto; box-shadow:0 2px 6px rgba(0,0,0,.2); }
.za-sel-t { position:absolute; right:6px; top:50%; transform:translateY(-50%); background:#e9b24a; color:#fff; border-radius:6px; padding:1px 7px;
  font:700 11.5px/1.6 Vazirmatn, Tahoma, sans-serif; direction:ltr; white-space:nowrap; }

.za-pop { position:fixed; z-index:1000; background:#fff; color:#0f1b2d; border:1px solid #e2e8f0; border-radius:16px; padding:14px;
  box-shadow:0 18px 50px rgba(15,27,45,.22); font:14px/1.7 Vazirmatn, IRANSans, Tahoma, sans-serif; }
.za-h { display:flex; align-items:center; gap:8px; }
.za-h b { flex:1; font-size:15px; }
.za-ico { color:#b7791f; display:flex; }
.za-x { border:0; background:none; font-size:20px; line-height:1; color:#64748b; cursor:pointer; }
.za-zone { margin:10px 0 2px; display:flex; flex-direction:column; }
.za-zone b { font-size:18px; }
.za-to { font-size:13px; font-weight:600; color:#64748b; margin:0 6px; }
.za-zone span { font-size:12px; color:#64748b; }
.za-gap { margin:0 0 10px; font-size:13px; color:#4b5b70; }
.za-note { margin:0 0 10px; font-size:13px; color:#4b5b70; }
.za-note.small { font-size:11.5px; margin:8px 0 0; }
.za-steps { margin:0 0 10px; padding-inline-start:18px; font-size:12.5px; color:#4b5b70; }
.za-btn { display:block; width:100%; text-align:center; border:0; border-radius:12px; padding:10px 12px; margin-top:6px;
  background:linear-gradient(270deg,#1769FF,#22C7C7); color:#fff; font:800 13.5px/1.5 inherit; cursor:pointer; text-decoration:none; }
.za-btn.za-ghost { background:#f1f5f9; color:#0f1b2d; }
.za-link-btn { display:block; margin:8px auto 0; border:0; background:none; color:#1769FF; font:600 12.5px/1.6 inherit; cursor:pointer; }
.za-msg { margin:8px 0 0; font-size:12.5px; color:#0f8f9a; min-height:1px; }
.za-msg.bad { color:#e5484d; }
:root[data-theme="dark"] .za-pop, :root[data-theme="dark"] .za-hint { background:#121a24; color:#e6f1f2; border-color:#26313d; }
:root[data-theme="dark"] .za-hint { border-color:#e9b24a; }
:root[data-theme="dark"] .za-btn.za-ghost { background:#1d2733; color:#e6f1f2; }
:root[data-theme="dark"] .za-cancel { background:#1d2733; border-color:#26313d; color:#ff8a8d; }
:root[data-theme="dark"] .za-top, :root[data-theme="dark"] .za-band-tag, :root[data-theme="dark"] .za-chip { background:#2a2210; color:#f0c36a; }
:root[data-theme="dark"] .za-top:hover, :root[data-theme="dark"] .za-top.is-on { background:#e9b24a; color:#1a1406; }
