/* AxWindow — کامپوننت پنجره شناور (کاملاً scoped) */
.ax-win{
  position:fixed;display:flex;flex-direction:column;
  min-width:280px;min-height:160px;
  background:#fff;border:1px solid #e5e7eb;border-radius:14px;
  box-shadow:0 26px 70px rgba(0,0,0,.20);
  overflow:visible;transition:box-shadow .18s ease;
  direction:rtl;font-family:'Vazirmatn','DM Sans',Tahoma,sans-serif;
}
.ax-win.is-dragging,.ax-win.is-resizing{box-shadow:0 32px 90px rgba(0,0,0,.28);transition:none}
.ax-win__bar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  height:44px;min-height:44px;padding:0 8px 0 10px;
  border-bottom:1px solid #e5e7eb;background:#f5f6f7;
  border-radius:13px 13px 0 0;cursor:move;user-select:none;touch-action:none;
}
.ax-win__heading{display:flex;align-items:center;gap:8px;min-width:0}
.ax-win__dot{width:8px;height:8px;border-radius:50%;background:#14161a;flex:none}
.ax-win__title{font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ax-win__sub{font-size:10.5px;color:#6b7280;white-space:nowrap}
.ax-win__controls{display:flex;gap:3px;flex:none}
.ax-win__btn{
  width:28px;height:28px;display:grid;place-items:center;
  border:0;border-radius:8px;background:transparent;color:#6b7280;
  font:600 15px/1 Tahoma,sans-serif;cursor:pointer;transition:background .14s,color .14s;
}
.ax-win__btn:hover{background:#fff;color:#14161a}
.ax-win__btn[data-act="close"]:hover{background:#dc2626;color:#fff}
.ax-win__btn[data-act="share"]{font-size:14px}
.ax-win__body{flex:1;min-height:0;overflow:auto;padding:0;background:#fff;border-radius:0 0 13px 13px;font-size:13px;line-height:1.8}
.ax-win__handle{position:absolute;z-index:3}
.ax-win__handle[data-dir="n"]{top:-4px;right:12px;left:12px;height:8px;cursor:ns-resize}
.ax-win__handle[data-dir="s"]{bottom:-4px;right:12px;left:12px;height:8px;cursor:ns-resize}
.ax-win__handle[data-dir="w"]{left:-4px;top:12px;bottom:12px;width:8px;cursor:ew-resize}
.ax-win__handle[data-dir="e"]{right:-4px;top:12px;bottom:12px;width:8px;cursor:ew-resize}
.ax-win__handle[data-dir="nw"]{top:-5px;left:-5px;width:16px;height:16px;cursor:nwse-resize}
.ax-win__handle[data-dir="ne"]{top:-5px;right:-5px;width:16px;height:16px;cursor:nesw-resize}
.ax-win__handle[data-dir="sw"]{bottom:-5px;left:-5px;width:16px;height:16px;cursor:nesw-resize}
.ax-win__handle[data-dir="se"]{bottom:-5px;right:-5px;width:16px;height:16px;cursor:nwse-resize}
.ax-win.is-min{width:290px !important;height:auto !important;min-height:0;border-radius:11px}
.ax-win.is-min .ax-win__bar{border-bottom:0;border-radius:10px;cursor:pointer}
.ax-win.is-min .ax-win__body,.ax-win.is-min .ax-win__handle{display:none}
.ax-win.is-max{border-radius:0;border-color:transparent;box-shadow:none}
.ax-win.is-max .ax-win__bar,.ax-win.is-max .ax-win__body{border-radius:0}
.ax-win.is-max .ax-win__handle{display:none}
.ax-win.ax-win--dark{--ax-bg:#14171c;--ax-ink:#f3f4f6;--ax-muted:#9ca3af;--ax-line:#2a2f37;--ax-soft:#1b1f26}
.ax-win.ax-win--dark .ax-win__bar{background:#1b1f26;border-color:#2a2f37;color:#f3f4f6}
.ax-win.ax-win--dark .ax-win__body{background:#14171c;color:#f3f4f6}
.ax-win.ax-win--dark .ax-win__btn{color:#9ca3af}
.ax-win.ax-win--dark .ax-win__btn:hover{background:#14171c;color:#f3f4f6}

/* محتوای پنجرههای عمومی */
.ax-doc{padding:18px 20px 24px;line-height:1.9;color:#1f2937;font-size:13px}
.ax-doc h3{margin:0 0 10px;font-size:16px}
.ax-doc pre{white-space:pre-wrap;word-break:break-word;font-family:inherit;background:#f5f6f7;padding:12px;border-radius:10px;border:1px solid #e5e7eb}
.ax-doc .ax-meta{font-size:11px;color:#6b7280;margin-bottom:12px}
.ax-doc input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:9px;font:inherit}
.ax-doc .ax-run{margin-top:8px;border:0;background:#14161a;color:#fff;border-radius:9px;padding:9px 16px;font:700 12px inherit;cursor:pointer}
.ax-doc iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.ax-win__body.is-frame{overflow:hidden;padding:0}
.ax-loading{color:#6b7280;font-weight:600}
.ax-err{color:#dc2626;font-weight:600}
.ax-win__body .armix-gold-chart{border:0;border-radius:0;max-width:none;margin:0}
.ax-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:99999;background:#14161a;color:#fff;padding:9px 16px;border-radius:10px;font:600 12px inherit;box-shadow:0 10px 30px rgba(0,0,0,.25)}
@media(max-width:640px){.ax-win__sub{display:none}}
