/* Capyol unified dialog skin (2026-10-03).
   Ahmed: "قايمه اندكيتورز عايزها نفس روح والوان وتبويبات قايمه ال chart setting ... وكل القوايم لازم تكون زي بعض".
   Same visual language as the chart-settings skin injected into the chart iframe by app.js
   (brandChartSettingsDialog): neutral dark/white surface, gold-gradient underline top-tabs, gold tick before
   headings/section captions, pill buttons (gold primary / outline secondary), rounded setting cards.
   Paint only -- no markup/behaviour changes. Loaded AFTER the page's inline <style>, so same-specificity rules win. */

:root {
  --vk-bg: #ffffff; --vk-bg2: #f8f9fb; --vk-card: #f4f5f7;
  --vk-line: rgba(16,18,21,.07); --vk-line2: rgba(16,18,21,.13);
  --vk-ink: #15181c; --vk-mute: #6b7280; --vk-accent: #B8921F; --vk-gold: #E9C766;
  --vk-shadow: 0 40px 90px rgba(16,24,40,.22), 0 2px 6px rgba(16,24,40,.06);
  --vk-edge: #e3e5e9;
  --vk-grad: linear-gradient(145deg, #F5DC8E, #C9A53D);
}
:root[data-theme="dark"] {
  --vk-bg: #101215; --vk-bg2: #15181c; --vk-card: #1a1d21;
  --vk-line: rgba(255,255,255,.07); --vk-line2: rgba(255,255,255,.12);
  --vk-ink: #eceff3; --vk-mute: #8b929d; --vk-accent: #E9C766;
  --vk-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  --vk-edge: rgba(255,255,255,.09);
}

/* ---------- shared pieces ---------- */
#vtx_ind_overlay, #vtx_ind_info_overlay, #vtx_ind_settings_overlay { background: rgba(6,10,16,.55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }

#vtx_ind_dialog, #vtx_ind_info_card, #vtx_ind_settings_card {
  background: var(--vk-bg); color: var(--vk-ink);
  border: 1px solid var(--vk-edge); border-radius: 20px; box-shadow: var(--vk-shadow);
}
#vtx_ind_dialog::before, #vtx_ind_info_card::before { display: none; }
#vtx_ind_dialog { width: 790px; }

/* ---------- Indicators dialog ---------- */
#vtx_ind_header {
  display: flex; align-items: center; gap: 14px; padding: 18px 24px 14px; border-bottom: 0;
  background: linear-gradient(180deg, var(--vk-bg2), var(--vk-bg));
}
#vtx_ind_header::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #F5DC8E, #B8921F); flex: none; margin-right: -4px; }
#vtx_ind_title { font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--vk-ink); }
#vtx_ind_count { font-size: 11.5px; color: var(--vk-mute); margin-left: 8px; }
#vtx_ind_search {
  background: var(--vk-card); border: 1px solid var(--vk-line2); border-radius: 999px; color: var(--vk-ink);
  padding: 9px 16px 9px 36px; font-size: 14px;
}
#vtx_ind_search:focus { border-color: var(--vk-gold); box-shadow: 0 0 0 3px rgba(233,199,102,.18); outline: none; }
#vtx_ind_search_icon { color: var(--vk-mute); }
#vtx_ind_close { color: var(--vk-mute); border-radius: 10px; }
#vtx_ind_close:hover { background: var(--vk-card); color: var(--vk-ink); }

/* body: categories become a TOP tab bar, exactly like Chart settings */
#vtx_ind_body { flex-direction: column; }
#vtx_ind_nav {
  width: auto; flex: none; display: flex; flex-direction: row; gap: 0; padding: 0 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  background: var(--vk-bg); border-right: 0; border-bottom: 1px solid var(--vk-line);
}
#vtx_ind_nav .vtx-ind-nav-btn {
  width: auto; flex: none; height: 42px; margin: 0; padding: 0 9px; gap: 7px; border: 0; border-radius: 0; background: transparent;
  color: var(--vk-mute); font-size: 13px; font-weight: 500; white-space: nowrap; position: relative; box-shadow: none;
}
#vtx_ind_nav .vtx-ind-nav-btn:hover { background: transparent; color: var(--vk-ink); }
#vtx_ind_nav .vtx-ind-nav-btn::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #F5DC8E, #C9A53D); transform: scaleX(0); transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
#vtx_ind_nav .vtx-ind-nav-btn.active { background: transparent; color: var(--vk-ink); font-weight: 600; border: 0; }
#vtx_ind_nav .vtx-ind-nav-btn.active::after { transform: scaleX(1); }
#vtx_ind_nav .vtx-ind-nav-btn.active .vtx-ind-nav-icon { color: var(--vk-accent); }

#vtx_ind_list { background: var(--vk-bg); padding: 4px 12px 22px; }
.vtx-ind-chips { background: var(--vk-bg); padding: 14px 14px 6px; gap: 8px; }
.vtx-ind-chip {
  background: transparent; border: 1px solid var(--vk-line2); color: var(--vk-mute); border-radius: 999px; padding: 6px 16px;
  font-size: 12.5px; font-weight: 500; transition: color .2s, border-color .2s, background .2s;
}
.vtx-ind-chip:hover { background: var(--vk-card); color: var(--vk-ink); }
.vtx-ind-chip.active { background: var(--vk-grad); color: #14170f; border-color: transparent; font-weight: 700; box-shadow: 0 6px 18px rgba(201,165,61,.25); }
.vtx-ind-chip-sep { background: var(--vk-line2); }

.vtx-ind-grid { gap: 10px; padding: 8px 14px 12px; }
.vtx-ind-card, .vtx-ind-card:hover {
  background: var(--vk-card) !important; border: 1px solid var(--vk-line) !important; border-radius: 13px !important;
  padding: 13px 14px; position: relative; overflow: hidden; transition: border-color .2s, transform .15s;
}
.vtx-ind-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--vtx-cat, #C79200); opacity: .85; }
.vtx-ind-card:hover { border-color: rgba(233,199,102,.45) !important; }
.vtx-ind-card-name { font-size: 13.5px; font-weight: 600; color: var(--vk-ink); }
.vtx-ind-card-star.on { color: var(--vk-gold); }
.vtx-ind-card-star.on svg { fill: var(--vk-gold); }
.vtx-ind-tag, .vtx-ind-tag.colored {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; color: var(--vk-mute); background: transparent;
  border: 1px solid var(--vk-line2); border-radius: 999px; padding: 2px 8px; margin: 0;
}
.vtx-ind-tag.colored { color: var(--vtx-cat, var(--vk-accent)); border-color: color-mix(in srgb, var(--vtx-cat, #C79200) 45%, transparent); }

/* group headers = the same gold-tick + hairline caption used for Chart settings sections */
.vtx-ind-school-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; border-top: 0;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--vk-mute);
}
.vtx-ind-school-header::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #F5DC8E, #C9A53D); flex: none; }
.vtx-ind-school-header::after { content: ""; height: 1px; flex: 1; background: var(--vk-line2); }
.vtx-ind-section-note { margin: 10px 14px; border: 1px solid var(--vk-line); border-radius: 13px; background: var(--vk-card); color: var(--vk-mute); padding: 14px 16px; }
.vtx-ind-active-row, .vtx-ind-active-row:hover { background: var(--vk-card) !important; border: 1px solid var(--vk-line) !important; border-radius: 13px !important; margin: 8px 14px; }
.vtx-ind-active-btn { border: 1px solid var(--vk-line2); background: transparent; color: var(--vk-ink); border-radius: 999px; padding: 5px 14px; }
.vtx-ind-active-btn.danger:hover { border-color: #d6504f; color: #d6504f; }
.vtx-ind-locked-badge { background: transparent; border: 1px solid rgba(233,199,102,.45); color: var(--vk-accent); }
#vtx_ind_request_form { padding: 18px 26px; }
#vtx_ind_request_form textarea { background: var(--vk-card); border: 1px solid var(--vk-line2); border-radius: 13px; color: var(--vk-ink); }
#vtx_ind_request_form textarea:focus { border-color: var(--vk-gold); box-shadow: 0 0 0 3px rgba(233,199,102,.18); outline: none; }
#vtx_ind_request_form button { background: var(--vk-grad); color: #14170f; border-radius: 999px; padding: 10px 24px; box-shadow: 0 8px 24px rgba(201,165,61,.28); }
#vtx_ind_request_form input[type="text"], #vtx_ind_request_form input[type="email"] { background: var(--vk-card); border: 1px solid var(--vk-line2); border-radius: 13px; color: var(--vk-ink); }
#vtx_ind_request_form select { background: var(--vk-card); border: 1px solid var(--vk-line2); border-radius: 13px; color: var(--vk-ink); }
#vtx_ind_request_form input:focus, #vtx_ind_request_form select:focus { border-color: var(--vk-gold); box-shadow: 0 0 0 3px rgba(233,199,102,.18); outline: none; }
#vtx_ind_request_form button.vtx-req-secondary { background: none; color: var(--vk-ink); border: 1px solid var(--vk-line2); box-shadow: none; padding: 9px 20px; }
#vtx_ind_request_form button.vtx-req-x { background: rgba(0,0,0,.65); color: #fff; box-shadow: none; padding: 0; }

/* ---------- info + per-indicator settings popups ---------- */
#vtx_ind_info_close, #vtx_ind_settings_close { background: var(--vk-card); color: var(--vk-mute); border: 1px solid var(--vk-line); }
#vtx_ind_info_close:hover, #vtx_ind_settings_close:hover { color: var(--vk-ink); }
#vtx_ind_info_title { font-size: 15px; font-weight: 600; }
#vtx_ind_info_desc { color: var(--vk-mute); }
#vtx_ind_settings_header {
  display: flex; align-items: center; gap: 12px; padding: 18px 46px 14px 24px; border-bottom: 0; font-size: 15px; font-weight: 600; color: var(--vk-ink);
  background: linear-gradient(180deg, var(--vk-bg2), var(--vk-bg)); position: relative;
}
#vtx_ind_settings_header::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #F5DC8E, #B8921F); flex: none; }
#vtx_ind_settings_body { padding: 14px 24px 18px; gap: 8px; }
.vtx-ind-set-row { background: var(--vk-card); border: 1px solid var(--vk-line); border-radius: 13px; padding: 10px 14px; min-height: 28px; }
.vtx-ind-set-label { color: var(--vk-ink); }
.vtx-ind-set-row input[type="number"], .vtx-ind-set-row input[type="text"] {
  background: var(--vk-bg); border: 1px solid var(--vk-line2); border-radius: 10px; color: var(--vk-ink); padding: 7px 10px;
}
.vtx-ind-set-row input[type="number"]:focus, .vtx-ind-set-row input[type="text"]:focus { border-color: var(--vk-gold); box-shadow: 0 0 0 3px rgba(233,199,102,.18); outline: none; }
.vtx-ind-set-row input[type="color"] { border: 1px solid var(--vk-line2); border-radius: 10px; background: var(--vk-bg); }
.vtx-ind-set-row input[type="checkbox"] { accent-color: #C9A53D; }
#vtx_ind_settings_footer { border-top: 1px solid var(--vk-line); background: var(--vk-bg2); padding: 14px 24px; }
#vtx_ind_settings_reset { background: transparent; color: var(--vk-ink); border: 1px solid var(--vk-line2); border-radius: 999px; padding: 9px 20px; font-weight: 600; }
#vtx_ind_settings_reset:hover { background: var(--vk-card); }
#vtx_ind_settings_save { background: var(--vk-grad); color: #14170f; border: 0; border-radius: 999px; padding: 9px 24px; font-weight: 700; box-shadow: 0 8px 24px rgba(201,165,61,.28), inset 0 1px 0 rgba(255,255,255,.4); }

/* scrollbars */
#vtx_ind_nav::-webkit-scrollbar { display: none; }
#vtx_ind_list::-webkit-scrollbar, #vtx_ind_settings_card::-webkit-scrollbar { width: 8px; height: 8px; }
#vtx_ind_list::-webkit-scrollbar-thumb, #vtx_ind_nav::-webkit-scrollbar-thumb, #vtx_ind_settings_card::-webkit-scrollbar-thumb { background: var(--vk-line2); border-radius: 8px; }
#vtx_ind_list::-webkit-scrollbar-thumb:hover { background: rgba(233,199,102,.5); }

@media (max-width: 640px) {
  #vtx_ind_dialog { border-radius: 0; }
  #vtx_ind_nav { padding: 0 12px; }
  #vtx_ind_nav .vtx-ind-nav-btn { border: 0; border-radius: 0; padding: 0 12px; }
  #vtx_ind_nav .vtx-ind-nav-btn.active { background: transparent; color: var(--vk-ink); }
  #vtx_ind_nav .vtx-ind-nav-icon { display: flex; }
}

/* card action icons: crisp line icons instead of the OS emoji (same colour as the rest of the dialog) */
.vtx-ind-card-btn { font-size: 0 !important; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 8px; opacity: .65; color: var(--vk-mute); }
.vtx-ind-card-btn:hover { opacity: 1; color: var(--vk-ink); background: var(--vk-bg); }
.vtx-ind-card-btn::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--vk-ico) center / contain no-repeat; mask: var(--vk-ico) center / contain no-repeat; }
.vtx-ind-card-btn[title="Settings"] { --vk-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='4' y1='7' x2='20' y2='7'/><line x1='4' y1='17' x2='20' y2='17'/><circle cx='9' cy='7' r='2.4' fill='black'/><circle cx='15' cy='17' r='2.4' fill='black'/></svg>"); }
.vtx-ind-card-btn[title="Info"] { --vk-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><line x1='12' y1='11' x2='12' y2='16'/><circle cx='12' cy='8' r='.6' fill='black'/></svg>"); }

/* ---------- mobile edit-order dialog ---------- */
#vtx_edit_order_dialog { background: var(--vk-bg); border: 1px solid var(--vk-edge); border-radius: 20px; box-shadow: var(--vk-shadow); padding: 0 0 18px; overflow: hidden; }
#vtx_edit_order_dialog .vtx-eo-head { margin: 0 0 14px; padding: 16px 18px 12px; align-items: center; background: linear-gradient(180deg, var(--vk-bg2), var(--vk-bg)); }
#vtx_edit_order_dialog .vtx-eo-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--vk-ink); }
#vtx_edit_order_dialog .vtx-eo-title::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #F5DC8E, #B8921F); }
#vtx_eo_close { border-radius: 10px; padding: 6px; }
#vtx_eo_close:hover { background: var(--vk-card); color: var(--vk-ink); }
#vtx_edit_order_dialog > .vtx-eo-label, #vtx_edit_order_dialog > input, #vtx_edit_order_dialog > .vtx-eo-tptsl, #vtx_edit_order_dialog > .vtx-ts-error, #vtx_edit_order_dialog > .vtx-eo-actions { margin-left: 18px; margin-right: 18px; }
#vtx_edit_order_dialog > input { width: calc(100% - 36px); }
.vtx-eo-label { color: var(--vk-mute); letter-spacing: .14em; font-size: 10px; }
#vtx_edit_order_dialog .vtx-ts-input { background: var(--vk-card); border: 1px solid var(--vk-line2); border-radius: 12px; color: var(--vk-ink); padding: 10px 12px; box-sizing: border-box; }
#vtx_edit_order_dialog .vtx-ts-input:focus { border-color: var(--vk-gold); box-shadow: 0 0 0 3px rgba(233,199,102,.18); outline: none; }
#vtx_edit_order_dialog input[type="checkbox"] { accent-color: #C9A53D; }
.vtx-eo-del { border-radius: 999px; background: transparent; border: 1px solid rgba(214,80,79,.6); color: #d6504f; }
.vtx-eo-save { border-radius: 999px; background: var(--vk-grad); color: #14170f; box-shadow: 0 8px 24px rgba(201,165,61,.28), inset 0 1px 0 rgba(255,255,255,.4); }

/* ---------- header layout switch (Trader / Focus): sliding pill with a small layout icon ---------- */
#vtx_layout_tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-self: center; align-items: stretch; margin: 0 4px 0 8px; flex: none;
  padding: 3px; gap: 0; border-radius: 999px; background: var(--vk-bg); border: 1px solid var(--vk-line2);
}
#vtx_layout_tabs::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: var(--vk-card); box-shadow: inset 0 0 0 1px rgba(233,199,102,.5); transition: transform .35s cubic-bezier(.34,1.3,.5,1);
}
#vtx_layout_tabs:has(button[data-mode="compact"].active)::before { transform: translateX(100%); }
#vtx_layout_tabs button {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 92px; height: 30px;
  background: transparent; border: 0; border-radius: 999px; color: var(--vk-mute); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  padding: 0 14px; letter-spacing: .01em; transition: color .2s;
}
#vtx_layout_tabs button:hover { color: var(--vk-ink); }
#vtx_layout_tabs button.active { color: var(--vk-ink); }
#vtx_layout_tabs button.active svg { color: var(--vk-accent); }
/* compact size now that the tabs sit in the right-hand button group of the header (Ahmed, 2026-10-03): vertically centred in the bar */
#vtx_layout_tabs { padding: 2px; margin-top: 0; margin-bottom: 0; align-self: center; height: auto; }
#vtx_layout_tabs::before { top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); }
#vtx_layout_tabs button { height: 24px; min-width: 70px; padding: 0 10px; gap: 5px; font-size: 11.5px; }
#vtx_layout_tabs button svg { width: 13px; height: 11px; }
@media (max-width: 900px) { #vtx_layout_tabs { display: none; } }

/* Account-type button in the header (LIVE 100406 USD) styled exactly like the Trader / Focus pill next to it (Ahmed, 2026-10-03):
   same height, pill shape, background, hairline border and type size. */
html #vtx_topbar #vtx_topbar_account_info, html #vtx_topbar #vtx_topbar_account_info:hover {
  height: 30px !important; min-height: 0 !important; box-sizing: border-box !important; padding: 0 10px 0 3px !important; gap: 6px !important;
  border-radius: 999px !important; background: var(--vk-bg) !important; border: 1px solid var(--vk-line2) !important; align-self: center !important;
}
html #vtx_topbar #vtx_topbar_account_info:hover { border-color: rgba(233,199,102,.5) !important; }
html #vtx_topbar #vtx_topbar_account_status { font-size: 10px !important; height: 20px; box-sizing: border-box !important; align-items: center; justify-content: center; line-height: 1 !important; padding: 1px 8px 0 9px !important; border-radius: 999px !important; position: relative; top: 0; align-self: center !important; margin: 0 !important; }   /* caps-only text sits high in a line box: 2px top padding centres it optically; 9/8 side padding offsets the trailing letter-spacing */
html #vtx_topbar #vtx_topbar_account_number { font-size: 11.5px !important; font-weight: 600 !important; }
html #vtx_topbar #vtx_topbar_account_ccy { font-size: 11.5px !important; }

/* account pill internals: everything on one centred row, the LIVE chip inset from the pill's edge */
html #vtx_topbar #vtx_topbar_account_info { display: flex !important; align-items: center !important; padding-left: 5px !important; }
html #vtx_topbar #vtx_topbar_account_text { display: flex !important; align-items: center !important; height: 100%; }
html #vtx_topbar #vtx_topbar_account_line1 { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 8px !important; height: 100%; }
/* tighter spacing between the header's right-hand buttons (palette, theme, Trader/Focus, menu) */
html #vtx_topbar #vtx_topbar_account { gap: 2px !important; }
html #vtx_topbar #vtx_topbar_theme_btn, html #vtx_topbar #vtx_look_btn, html #vtx_topbar #vtx_topbar_account_btn { width: 34px !important; margin-left: 0 !important; margin-right: 0 !important; }
html #vtx_topbar #vtx_layout_tabs { margin: 0 2px !important; }
html #vtx_topbar #vtx_topbar_account_info { margin-right: 4px !important; }
/* the currency / number in the account pill were clipped to "U…" by an old fixed-width rule: let them take their natural width */
html #vtx_topbar #vtx_topbar_account_number, html #vtx_topbar #vtx_topbar_account_ccy { width: auto !important; max-width: none !important; flex: none !important; overflow: visible !important; text-overflow: clip !important; white-space: nowrap !important; }
html #vtx_topbar #vtx_topbar_account_text, html #vtx_topbar #vtx_topbar_account_info { width: auto !important; max-width: none !important; min-width: 0 !important; overflow: visible !important; }
html #vtx_topbar #vtx_topbar_actions { gap: 4px !important; }   /* smaller space between the P/L stat and the account pill */
/* LIVE: plain text (no green pill), same size and baseline as the account number next to it (Ahmed, 2026-10-03) */
html #vtx_topbar #vtx_topbar_account_status, html #vtx_topbar #vtx_topbar_account_status.live, html #vtx_topbar #vtx_topbar_account_status.demo {
  background: none !important; box-shadow: none !important; padding: 0 !important; height: auto !important; top: 0 !important;
  font-size: 11.5px !important; line-height: 1 !important; letter-spacing: .06em !important; border-radius: 0 !important;
}
html #vtx_topbar #vtx_topbar_account_status::before { display: none !important; }
html #vtx_topbar #vtx_topbar_account_line1 { align-items: center !important; }
html #vtx_topbar #vtx_topbar_account_number { line-height: 1 !important; }
/* account pill: content centred with equal space on both sides */
html #vtx_topbar #vtx_topbar_account_info, html #vtx_topbar #vtx_topbar_account_info:hover { padding: 0 12px !important; justify-content: center !important; }

/* ---- Glass hover for the header buttons (Ahmed, 2026-10-03): a clear frosted-glass plate, no colour, no gold underline ---- */
@media (min-width: 641px) {
  html #vtx_topbar #vtx_look_btn { position: relative; overflow: hidden; }
  html #vtx_topbar #vtx_topbar_theme_btn::after, html #vtx_topbar #vtx_topbar_account_btn::after, html #vtx_topbar #vtx_topbar_account_info::after { display: none !important; }
  html #vtx_topbar #vtx_topbar_theme_btn::before, html #vtx_topbar #vtx_topbar_account_btn::before, html #vtx_topbar #vtx_topbar_account_info::before, html #vtx_topbar #vtx_look_btn::before {
    content: "" !important; position: absolute !important; inset: 2px !important; pointer-events: none; border-radius: 10px !important; opacity: 0; transform: scale(.9);
    background: linear-gradient(180deg, rgba(255,255,255,.17) 0%, rgba(255,255,255,.06) 55%, rgba(255,255,255,.03) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.35) !important;
    -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
    transition: opacity .25s ease, transform .35s cubic-bezier(.2,.9,.25,1.2) !important;
  }
  html #vtx_topbar #vtx_topbar_account_info::before { inset: 0 !important; border-radius: 999px !important; }
  :root:not([data-theme="dark"]) #vtx_topbar #vtx_topbar_theme_btn::before, :root:not([data-theme="dark"]) #vtx_topbar #vtx_topbar_account_btn::before,
  :root:not([data-theme="dark"]) #vtx_topbar #vtx_topbar_account_info::before, :root:not([data-theme="dark"]) #vtx_topbar #vtx_look_btn::before {
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.55)) !important;
    box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(16,18,21,.10), 0 6px 16px rgba(16,18,21,.10) !important;
  }
  html #vtx_topbar #vtx_topbar_theme_btn:hover::before, html #vtx_topbar #vtx_topbar_account_btn:hover::before, html #vtx_topbar #vtx_topbar_account_info:hover::before, html #vtx_topbar #vtx_look_btn:hover::before, html #vtx_topbar #vtx_look_btn.open::before { opacity: 1; transform: scale(1); }
  html #vtx_topbar #vtx_look_btn:hover, html #vtx_topbar #vtx_look_btn.open { background: transparent !important; }
  html #vtx_topbar #vtx_look_btn > svg { position: relative; z-index: 1; }
  html #vtx_topbar #vtx_topbar_account_info:hover { border-color: rgba(255,255,255,.22) !important; }
  :root:not([data-theme="dark"]) #vtx_topbar #vtx_topbar_account_info:hover { border-color: rgba(16,18,21,.18) !important; }
  :root[data-theme="dark"] #vtx_topbar :is(#vtx_topbar_theme_btn, #vtx_topbar_account_btn, #vtx_look_btn):hover { color: #ffffff !important; }
  :root:not([data-theme="dark"]) #vtx_topbar :is(#vtx_topbar_theme_btn, #vtx_topbar_account_btn, #vtx_look_btn):hover { color: #15181c !important; }
}
@media (min-width: 641px) {
  /* the glass plate sits BEHIND the button's content (bare text nodes included) */
  html #vtx_topbar :is(#vtx_topbar_theme_btn, #vtx_topbar_account_btn, #vtx_topbar_account_info, #vtx_look_btn) { isolation: isolate !important; }
  html #vtx_topbar :is(#vtx_topbar_theme_btn, #vtx_topbar_account_btn, #vtx_topbar_account_info, #vtx_look_btn)::before { z-index: -1 !important; }
}
@media (min-width: 641px) { html #vtx_topbar { padding-right: 4px !important; } }   /* no empty strip right of the menu button */
@media (min-width: 641px) { html #vtx_topbar #vtx_topbar_stats .vtx-stat:last-child { width: auto !important; min-width: 0 !important; padding: 0 4px 0 10px !important; } }   /* P/L: no empty right half next to the account pill */
html #vtx_topbar #vtx_topbar_theme_btn { display: none !important; }   /* light/dark switch removed from the header (Ahmed, 2026-10-04); still in the account menu */

/* Desktop account menu (Ahmed, 2026-10-05): Economic News on/off, Market News, Economic Calendar and Live Chat are removed
   from the dropdown -- on desktop they live on the right icon rail. The PHONE Menu page (#vtx_profile_screen, where this same
   menu is moved) keeps them, since phones have no rail. The separator that sat under them goes too. */
#vtx_topbar_account_menu:not(#vtx_profile_screen #vtx_topbar_account_menu) :is(#vtx_news_toggle, #vtx_newscenter_open, #vtx_calendar_open, #vtx_topbar_livesupport_btn, #vtx_calendar_open + hr) {
  display: none !important;
}
/* Light/Dark moved to a vertical switch at the bottom of the left tool rail (tool-palette.js, Ahmed 2026-10-05): the desktop
   dropdown drops "Light Mode" too, plus the separator that would now lead the list (Dashboard / Logout stay). Phone keeps it. */
#vtx_topbar_account_menu:not(#vtx_profile_screen #vtx_topbar_account_menu) :is(#vtx_theme_toggle, #vtx_profile_youtube + hr) {
  display: none !important;
}

/* Phone: the header (58px) and the bottom nav bar stay visible on EVERY screen (Ahmed, 2026-10-05: "كل صفحات الموبايل يكون
   الهيدر فيها باين و الشريط السفلي باين مش متغطيين"). Full-screen windows start under the header and end above the nav bar
   (--vtx-nav-h, measured in app.js); bottom sheets rise from the top of the nav bar instead of covering it. */
@media (max-width: 699px) {
  #vtx_wl_picker, #vtx_ind_overlay, #vtx_ind_info_overlay, #vtx_ind_settings_overlay, #vtx_dialog_backdrop {
    inset: auto !important; top: 58px !important; left: 0 !important; right: 0 !important; bottom: var(--vtx-nav-h, 0px) !important; height: auto !important;
  }
  #vtx_trade_sheet, #vtx_cp_sheet, #vtx_pos_menu {
    bottom: var(--vtx-nav-h, 0px) !important; max-height: calc(100vh - 58px - var(--vtx-nav-h, 0px)) !important;
  }
  #vtx_sp_bd { inset: auto !important; top: 58px !important; left: 0 !important; right: 0 !important; bottom: var(--vtx-nav-h, 0px) !important; padding: 0 !important; }
  #vtx_sp_bd #vtx_sp { height: 100% !important; max-height: none !important; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; }
}
