/* TradeChat – ערכת נושא כהה בסגנון טלגרם */
:root {
  --bg: #181818; --surface: #242424; --surface2: #2f2f2f;
  --text: #ffffff; --muted: #9b9b9b; --sub: #b8b8b8;
  --accent: #50a8eb; --accent-2: #6ab3f3; --accent-soft: #233646;
  --in: #212121; --out: #2b5278; --chip: rgba(0, 0, 0, .55);
  --danger: #ff6464; --buy: #4cd37c; --sell: #ff6b6b;
  --chat-bg: #0e0e0e;
  --font: "Roboto", "Noto Sans Hebrew", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.4 var(--font); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
svg { display: block; }
#app { position: relative; height: 100dvh; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top); overflow: hidden; }
.screen { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---------- טפסים ---------- */
.center-box { margin: auto; width: 100%; max-width: 380px; padding: 24px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.center-box h1 { margin: 6px 0 0; font-size: 22px; font-weight: 700; }
.logo-circle { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 4px; display: grid; place-items: center;
  background: linear-gradient(180deg, #62bdf6, #2a8fe0); color: #fff; }
.logo-circle svg { width: 42px; height: 42px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.field { width: 100%; background: var(--surface); color: var(--text); border: 1.5px solid transparent; border-radius: 14px;
  padding: 12px 14px; font-size: 16px; outline: none; resize: none; }
.field:focus { border-color: var(--accent); }
.field.code { text-align: center; letter-spacing: 8px; font-size: 22px; }
.primary { background: var(--accent); color: #fff; border: 0; border-radius: 12px; padding: 12px; font-size: 15px; font-weight: 600; }
.primary:disabled { opacity: .5; }
.link { background: none; border: 0; color: var(--accent-2); padding: 10px; font-weight: 500; }
.error { color: var(--danger); font-size: 14px; min-height: 18px; }
.muted { color: var(--muted); line-height: 1.6; margin: 0; }
#recaptcha-wrap { display: flex; justify-content: center; }

/* ---------- רשימת צ'אטים ---------- */
.list-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px 4px; }
.list-head h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #62bdf6, #2a8fe0); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #3fa85f; }
.brand-logo svg { width: 20px; height: 20px; }
.search { margin: 6px 12px 2px; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 22px;
  padding: 0 14px; height: 42px; color: var(--muted); }
.search svg { width: 19px; height: 19px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15.5px; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: invert(.6); }
.filter-tabs { display: flex; margin: 8px 12px 4px; background: var(--surface); border-radius: 22px; padding: 3px; }
.ftab { flex: 1; height: 36px; border: 0; border-radius: 19px; background: none; color: var(--muted); font-size: 15px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.ftab.active { background: var(--accent-soft); color: var(--accent-2); }
.count { min-width: 20px; height: 20px; border-radius: 10px; background: #4a4a4a; color: #fff; font-size: 12px; font-weight: 600;
  display: inline-grid; place-items: center; padding: 0 6px; }
.ftab.active .count { background: var(--accent); }
.count:empty { display: none; }

.list { list-style: none; margin: 0; padding: 2px 0 100px; overflow-y: auto; flex: 1; }
.row { display: flex; gap: 12px; align-items: center; padding: 6px 14px; cursor: pointer; }
.row:active { background: var(--surface); }
.avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600;
  font-size: 18px; flex-shrink: 0; background: #555; text-transform: uppercase; }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; }
.avatar.xl { width: 80px; height: 80px; font-size: 30px; }
.row-main { flex: 1; min-width: 0; }
.row-top, .row-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-bottom { margin-top: 2px; }
.row-name { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.row.unread .row-time { color: var(--accent); }
.row-last { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-last b { color: #e2e2e2; font-weight: 500; }
.row-phone { color: var(--muted); font-size: 13px; direction: ltr; text-align: right; }
.badge { min-width: 21px; height: 21px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  padding: 0 6px; display: inline-grid; place-items: center; flex-shrink: 0; }
.empty { position: absolute; top: 280px; left: 0; right: 0; text-align: center; color: var(--muted); line-height: 1.7; padding: 0 30px; }
#screen-contacts .empty { top: 120px; }
.fab { position: absolute; inset-inline-end: 16px; bottom: calc(90px + env(safe-area-inset-bottom)); width: 52px; height: 52px;
  border-radius: 50%; background: var(--accent); color: #fff; border: 0; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); z-index: 4; }
.fab svg { width: 25px; height: 25px; }

/* ---------- תפריט תחתון ---------- */
#bottom-nav { position: absolute; left: 12px; right: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); display: flex; gap: 4px;
  background: rgba(36, 36, 36, .97); border-radius: 30px; padding: 4px; box-shadow: 0 6px 24px rgba(0, 0, 0, .55); z-index: 6; }
.nav-btn { position: relative; flex: 1; border: 0; background: none; color: var(--text); display: flex; flex-direction: column;
  align-items: center; gap: 1px; padding: 5px 0 4px; border-radius: 26px; font-size: 11.5px; font-weight: 500; }
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn.active { background: #2e3943; color: var(--accent); }
.nav-btn .badge { position: absolute; top: 0; left: calc(50% - 28px); min-width: 18px; height: 18px; font-size: 11px;
  box-shadow: 0 0 0 2px #2e3943; }

/* ---------- דפים ---------- */
.page-head { padding: 12px 16px 8px; font-size: 22px; font-weight: 700; }
.me-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 24px 8px; }
.me-name { font-size: 19px; font-weight: 700; margin-top: 6px; }
.me-phone { color: var(--muted); direction: ltr; }
.edit-box { margin: 8px 14px 0; }
.menu-list { margin: 12px 12px; background: var(--surface); border-radius: 18px; overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; background: none; border: 0;
  color: var(--text); font-size: 15px; text-align: start; }
.menu-item svg { width: 20px; height: 20px; color: var(--muted); }
.menu-item + .menu-item { border-top: 1px solid #2f2f2f; }
.menu-item.danger, .menu-item.danger svg { color: var(--danger); }

/* ---------- מסך צ'אט ---------- */
#screen-chat { background-color: var(--chat-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 18v44M23 28h14v22H23z'/%3E%3Cpath d='M52 30v30M46 36h12v14H46z'/%3E%3Cpath d='M118 62l16-16 12 10 22-24M160 32h8v8'/%3E%3Ccircle cx='62' cy='128' r='14'/%3E%3Cpath d='M66 121h-6a3.5 3.5 0 0 0 0 7h4a3.5 3.5 0 0 1 0 7h-7M62 117v4M62 135v4'/%3E%3Cpath d='M170 116l5 10 11 2-8 8 2 11-10-5-10 5 2-11-8-8 11-2z'/%3E%3Cpath d='M104 176l12-12 12 12M116 164v30'/%3E%3Ccircle cx='190' cy='196' r='6'/%3E%3Cpath d='M14 168l12 20H2z'/%3E%3Cpath d='M120 112h30M120 104h20' /%3E%3Cpath d='M196 70a12 12 0 1 1-12 12'/%3E%3C/g%3E%3C/svg%3E"); }
.chat-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px 4px; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 0; color: var(--text);
  display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.round-btn svg { width: 22px; height: 22px; }
.head-pill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 22px;
  padding: 3px; padding-inline-end: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.chat-title { flex: 1; min-width: 0; }
#chat-name { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chat-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pinned { display: flex; align-items: center; gap: 8px; margin: 2px 8px 4px; padding: 5px 12px; background: var(--surface);
  border-radius: 22px; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.pin-line { width: 3px; align-self: stretch; background: var(--accent-2); border-radius: 2px; }
.pin-text { flex: 1; min-width: 0; }
.pin-title { color: var(--accent-2); font-weight: 600; font-size: 13.5px; }
#pin-preview { color: var(--sub); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-x { background: none; border: 0; color: var(--muted); width: 36px; height: 36px; display: grid; place-items: center; }
.pin-x svg { width: 20px; height: 20px; }

#messages { flex: 1; overflow-y: auto; padding: 6px 10px 10px; display: flex; flex-direction: column; overscroll-behavior: contain; }
.day-chip { align-self: center; background: var(--chip); color: #fff; font-size: 13px; font-weight: 500; padding: 4px 12px;
  border-radius: 14px; margin: 10px 0 4px; }
.unread-div { margin: 10px -10px 6px; background: rgba(34, 34, 34, .92); color: #e6e6e6; text-align: center; padding: 7px;
  font-size: 14px; font-weight: 500; }

.msg { position: relative; max-width: min(82%, 520px); padding: 6px 10px 5px; border-radius: 16px; background: var(--in);
  align-self: flex-start; margin-top: 6px; line-height: 1.36; font-size: 15px; overflow-wrap: anywhere; }
.msg.cont { margin-top: 2px; }
.msg.tail { border-end-start-radius: 5px; }
.msg.mine { background: var(--out); align-self: flex-end; }
.msg.mine.tail { border-end-start-radius: 18px; border-end-end-radius: 5px; }
.msg::after { content: ""; display: block; clear: both; }
.msg .sender { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.msg .text { white-space: pre-wrap; }
.msg .text a { color: var(--accent-2); }
.meta { float: left; font-size: 11.5px; color: rgba(255, 255, 255, .5); margin: 9px 10px -3px 0; direction: ltr; white-space: nowrap;
  user-select: none; }
.msg.mine .meta { color: rgba(255, 255, 255, .62); }
.meta .ticks { color: #8fd0ff; margin-left: 3px; letter-spacing: -3px; }
.msg.media { padding: 3px; }
.msg.media .text, .msg.media .sender { padding: 3px 8px; }
.msg.media .meta { margin-left: 8px; margin-bottom: 2px; }
.meta.on-media { position: absolute; left: 10px; bottom: 10px; margin: 0; float: none; background: rgba(0, 0, 0, .5); color: #fff;
  padding: 2px 8px; border-radius: 11px; }
.msg img, .msg video { display: block; width: 100%; max-height: 380px; object-fit: cover; border-radius: 15px; background: #000; }
.msg img { cursor: zoom-in; }
.file-link { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; padding: 4px 2px; min-width: 200px; }
.file-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.msg.mine .file-icon { background: #fff; color: var(--out); }
.file-icon svg { width: 24px; height: 24px; }
.file-name { font-weight: 600; font-size: 14.5px; }
.file-size { font-size: 13px; color: var(--muted); direction: ltr; text-align: right; }
.msg.mine .file-size { color: rgba(255, 255, 255, .6); }

.trade { background: rgba(76, 211, 124, .1); border-inline-start: 3px solid var(--buy); border-radius: 6px; padding: 6px 10px 8px;
  margin: 2px 0 2px; min-width: 220px; }
.trade.sell { background: rgba(255, 107, 107, .1); border-color: var(--sell); }
.trade-head { font-weight: 700; font-size: 15px; color: var(--buy); margin-bottom: 4px; }
.trade.sell .trade-head { color: var(--sell); }
.trade-grid { display: grid; grid-template-columns: auto 1fr; gap: 1px 12px; font-size: 14px; }
.trade-grid span:nth-child(odd) { color: var(--muted); }
.trade-grid span:nth-child(even) { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }

.msg.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent-2); } 100% { box-shadow: 0 0 0 0 transparent; } }

.to-bottom { position: absolute; inset-inline-end: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 3; }
.to-bottom .badge { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); }

#composer { display: flex; align-items: flex-end; gap: 6px; padding: 4px 8px calc(8px + env(safe-area-inset-bottom)); }
.input-pill { flex: 1; min-width: 0; display: flex; align-items: flex-end; background: var(--surface); border-radius: 26px;
  padding: 0 12px 0 4px; padding-inline-start: 14px; padding-inline-end: 2px; min-height: 44px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
#msg-input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 11px 0; resize: none; max-height: 140px;
  font-size: 16px; color: var(--text); line-height: 1.4; }
#msg-input::placeholder { color: var(--muted); }
.pill-icon { width: 38px; height: 44px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.pill-icon svg { width: 22px; height: 22px; }
.send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); border: 0; color: #fff; display: grid;
  place-items: center; flex-shrink: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.send-btn svg { width: 21px; height: 21px; transform: scaleX(-1); }

#upload-bar { margin: 0 10px; padding: 8px 14px; background: var(--surface); border-radius: 14px; font-size: 13px; color: var(--sub); }
.progress { height: 4px; background: #3a3a3a; border-radius: 2px; margin-top: 6px; overflow: hidden; }
#upload-progress { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ---------- דיאלוג, תפריט, תצוגה ---------- */
dialog { background: var(--surface); color: var(--text); border: 0; border-radius: 20px; width: min(92vw, 420px); padding: 18px; }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
.dlg-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; background: var(--bg); border-radius: 24px; padding: 4px; }
.tab { flex: 1; background: none; color: var(--muted); border: 0; border-radius: 20px; padding: 9px; font-weight: 500; }
.tab.active { color: var(--accent-2); background: var(--accent-soft); }
.tab-body { display: flex; flex-direction: column; gap: 8px; }
dialog .field { background: var(--bg); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.dialog-actions .primary { padding: 11px 26px; }

.sheet-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); display: flex; align-items: flex-end; justify-content: center; z-index: 30; }
.sheet-box { width: min(100%, 560px); background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.sheet-box button { display: flex; gap: 16px; align-items: center; width: 100%; background: none; border: 0; color: var(--text);
  font-size: 15px; padding: 11px 20px; text-align: start; }
.sheet-title { padding: 8px 22px 10px; font-weight: 700; font-size: 17px; }
.sheet-box .avatar { width: 36px; height: 36px; font-size: 14px; }
.sheet-box svg { width: 22px; height: 22px; color: var(--muted); }

#viewer { position: fixed; inset: 0; background: rgba(0, 0, 0, .94); display: grid; place-items: center; z-index: 40; cursor: zoom-out; }
#viewer img { max-width: 100vw; max-height: 100dvh; }
#toast { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%); background: #3a3a3a; color: #fff; padding: 11px 18px;
  border-radius: 14px; font-size: 14px; z-index: 50; max-width: 90vw; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- תפקידים ---------- */
.role-chip { margin-top: 6px; background: var(--accent-soft); color: var(--accent-2); font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 12px; }
.admin-tag { color: var(--muted); font-size: 12.5px; font-weight: 400; margin-inline-start: 8px; }
.msg .sender { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

/* ---------- גרף ---------- */
.chart-pane { flex: 1; min-height: 0; display: flex; padding: 2px 8px calc(78px + env(safe-area-inset-bottom)); }
.cv { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #121212; border-radius: 20px; overflow: hidden;
  border: 1px solid #262626; }
.cv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px 4px; }
.cv-name { font-weight: 700; font-size: 16px; direction: ltr; text-align: right; }
.cv-src { font-size: 12px; color: var(--muted); direction: ltr; text-align: right; }
.cv-live { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 9px; background: #333; color: #bbb; vertical-align: 2px; margin-inline-start: 6px; }
.cv-live.live { background: rgba(76, 211, 124, .16); color: var(--buy); }
.cv-live.offline { background: rgba(255, 107, 107, .16); color: var(--sell); }
.cv-quote { text-align: left; direction: ltr; }
.cv-price { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cv-chg { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cv-chg.up { color: var(--buy); } .cv-chg.down { color: var(--sell); }
.cv-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 6px; border-bottom: 1px solid #222; overflow-x: auto; }
.cv-tfs { display: flex; gap: 2px; background: var(--surface); border-radius: 18px; padding: 3px; direction: ltr; }
.cv-tfs button { border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 5px 8px; border-radius: 14px; }
.cv-tfs button.active { background: var(--accent-soft); color: var(--accent-2); }
.cv-chip { border: 0; background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 18px;
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cv-share { background: var(--accent); color: #fff; margin-inline-start: auto; }
.cv-chip svg { width: 16px; height: 16px; }
.cv-body { flex: 1; min-height: 0; display: flex; }
.cv-tools { width: 42px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0;
  border-right: 1px solid #222; overflow-y: auto; background: #161616; }
.cv-tools button { width: 36px; height: 36px; border: 0; border-radius: 12px; background: none; color: #cfcfcf; display: grid; place-items: center; flex-shrink: 0; }
.cv-tools button svg { width: 19px; height: 19px; }
.cv-tools button.active { background: var(--accent-soft); color: var(--accent-2); }
.cv-tools button.armed { background: rgba(255, 100, 100, .2); color: var(--danger); }
.cv-sep { width: 26px; height: 1px; background: #2c2c2c; margin: 4px 0; flex-shrink: 0; }
.cv-swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; display: block; }
.cv-wrap { position: relative; flex: 1; min-width: 0; }
.cv-wrap canvas { position: absolute; inset: 0; touch-action: none; display: block; }
.cv-palette { position: absolute; left: 6px; top: 150px; display: grid; grid-template-columns: repeat(4, 30px); gap: 8px; padding: 10px;
  background: var(--surface); border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); z-index: 3; }
.cv-palette button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.cv-textpop { position: absolute; width: 232px; background: var(--surface); border-radius: 14px; padding: 10px; z-index: 3;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.cv-textpop input { width: 100%; background: var(--bg); border: 1.5px solid var(--accent); border-radius: 10px; padding: 9px 10px; color: var(--text); font-size: 16px; outline: none; }
.cv-textpop-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.cv-textpop-actions button { border: 0; background: none; color: var(--muted); padding: 7px 12px; border-radius: 10px; font-weight: 600; }
.cv-textpop-actions .ok { background: var(--accent); color: #fff; }
.cv-hint { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: rgba(35, 54, 70, .95); color: var(--accent-2);
  font-size: 13px; padding: 5px 12px; border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity .2s; white-space: nowrap; direction: rtl; }
.cv-hint.show { opacity: 1; }

/* ---------- חשבון מסחר ---------- */
.section-title { margin: 14px 26px -6px; color: var(--accent-2); font-size: 14px; font-weight: 600; }
.acc-status { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.acc-dot { width: 10px; height: 10px; border-radius: 50%; background: #555; flex-shrink: 0; }
.acc-dot.on { background: var(--buy); box-shadow: 0 0 0 4px rgba(76, 211, 124, .18); }
.acc-dot.off { background: #d9a441; }
.acc-text { min-width: 0; }
.acc-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.acc-status + .menu-item { border-top: 1px solid #2f2f2f; }
.mt5-setup { padding: 4px 16px 12px; border-top: 1px solid #2f2f2f; font-size: 13.5px; }
.mt5-setup ol { margin: 8px 0 10px; padding-inline-start: 18px; color: var(--sub); line-height: 1.55; }
.copy-row { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 10px; padding: 6px 6px 6px 10px; margin-top: 6px; }
.copy-label { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.copy-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text); }
.copy-row button { border: 0; background: var(--accent-soft); color: var(--accent-2); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; }
.small { font-size: 12.5px; margin-top: 8px; }
.cv-acc { display: flex; gap: 6px; padding: 2px 12px 6px; }
.cv-acc > div { flex: 1; background: var(--surface); border-radius: 10px; padding: 4px 8px; display: flex; flex-direction: column; }
.cv-acc span { font-size: 11px; color: var(--muted); }
.cv-acc b { font-size: 13.5px; font-weight: 700; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.cv-acc b.up { color: var(--buy); } .cv-acc b.down { color: var(--sell); }

.cv-auto { position: absolute; right: 70px; bottom: 34px; border: 0; background: var(--accent-soft); color: var(--accent-2); font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 12px; z-index: 2; }

/* ---------- שורת מחיר במסך הצ'אטים ---------- */
.ticker { overflow: hidden; margin: 10px 12px 2px; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 22px;
  padding: 0 12px; height: 40px; cursor: pointer; border: 0; color: var(--text); width: calc(100% - 24px); text-align: start; }
.tk-live { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 9px; background: #333; color: #bbb; flex-shrink: 0; }
.tk-live.live { background: rgba(76, 211, 124, .16); color: var(--buy); }
.tk-live.offline { background: rgba(255, 107, 107, .16); color: var(--sell); }
.tk-sym { font-weight: 700; font-size: 14px; direction: ltr; }
.tk-price { font-weight: 700; font-size: 15.5px; direction: ltr; font-variant-numeric: tabular-nums; transition: color .25s; }
.tk-price.flash-up { color: var(--buy); } .tk-price.flash-down { color: var(--sell); }
.tk-chg { font-size: 12.5px; font-weight: 600; direction: ltr; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-sym, .tk-price { white-space: nowrap; }
.tk-pnl b { direction: ltr; unicode-bidi: isolate; font-weight: 700; }
.tk-chg.up, .tk-pnl.up { color: var(--buy); } .tk-chg.down, .tk-pnl.down { color: var(--sell); }
.tk-pnl { margin-inline-start: auto; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-pnl small { color: var(--muted); font-weight: 500; margin-inline-end: 5px; }

.ticker { gap: 8px; } .ticker > span { flex-shrink: 0; } .tk-chg { flex-shrink: 1 !important; overflow: hidden; }

/* ---------- מתגים בהגדרות ---------- */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; cursor: pointer; }
.toggle-row + .toggle-row { border-top: 1px solid #2f2f2f; }
.toggle-row > span:first-child { display: flex; flex-direction: column; font-size: 15px; }
.toggle-row small { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.toggle-row input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 40px; height: 24px; border-radius: 12px; background: #4a4a4a; position: relative; flex-shrink: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle-row input:checked + .switch { background: var(--accent); }
.toggle-row input:checked + .switch::after { transform: translateX(-16px); }
.toggle-row input:focus-visible + .switch { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.toggle-row select { background: var(--bg); color: var(--text); border: 1px solid #3a3a3a; border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 14px; max-width: 45%; }
#screen-me, #screen-contacts { overflow-y: auto; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- תפקידים, ערוצים, פרטי קבוצה ---------- */
.toggle-row.compact { padding: 8px 2px; }
.channel-bar { margin: 4px 10px calc(10px + env(safe-area-inset-bottom)); padding: 12px; text-align: center; background: var(--surface); border-radius: 22px; color: var(--muted); font-size: 14px; }
.sheet-box button.danger, .sheet-box button.danger svg { color: var(--danger); }
.head-pill { cursor: pointer; }
.gs-sub { padding: 0 22px 8px; color: var(--muted); font-size: 13px; margin-top: -6px; }
.gs-members { max-height: 45vh; overflow-y: auto; }
.gs-member { display: flex; align-items: center; gap: 12px; padding: 8px 20px; }
.gs-member .avatar { width: 38px; height: 38px; font-size: 14px; }
.gs-member .gs-name { flex: 1; min-width: 0; font-size: 15px; }
.gs-member .gs-role { color: var(--accent-2); font-size: 12px; }
.sheet-box .gs-member .gs-remove { width: auto; padding: 6px 10px; border-radius: 10px; background: rgba(255,100,100,.12); color: var(--danger); font-size: 13px; }
.gs-add { display: flex; gap: 8px; padding: 8px 16px; }
.gs-add .field { flex: 1; min-width: 0; padding: 10px 12px; font-size: 15px; }
.gs-add .primary { padding: 10px 16px; }
.perm-btn { border: 0; background: var(--accent-soft); color: var(--accent-2); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.perm-list { background: var(--bg); border-radius: 14px; overflow: hidden; }
.perm-list .toggle-row + .toggle-row, #perm-items .toggle-row { border-top: 1px solid #2f2f2f; }
#perm-items.off { opacity: .4; pointer-events: none; }
.role-chip.owner { background: rgba(245,178,78,.15); color: #f5b24e; }
.admin-tag.owner { color: #f5b24e; }
.gs-add .field { background: var(--bg); border-color: #3a3a3a; }

/* ================= סרגל תחתון עם תמונת פרופיל במרכז ================= */
#bottom-nav { overflow: visible; }
.nav-btn { min-width: 0; font-size: 11px; }
.nav-btn .badge.red { background: var(--danger); }
.nav-center { flex: 0 0 64px; position: relative; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; }
.nav-center .avatar { position: absolute; bottom: 4px; width: 62px; height: 62px; font-size: 22px;
  box-shadow: 0 0 0 4px var(--nav-bg), 0 6px 16px rgba(0,0,0,.35); }
.nav-center.active .avatar { box-shadow: 0 0 0 4px var(--nav-bg), 0 0 0 6px var(--accent), 0 6px 16px rgba(0,0,0,.35); }

/* ================= הגדרות ================= */
.settings-scroll { flex: 1; overflow-y: auto; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
#screen-me { overflow: hidden; padding-bottom: 0; }
.avatar-btn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; margin: 0 auto; display: block; }
.avatar-btn .cam { position: absolute; bottom: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.avatar-btn .cam svg { width: 16px; height: 16px; }
.set-item .chev { margin-inline-start: auto; color: var(--muted); transition: transform .2s; }
.set-item .chev svg { width: 18px; height: 18px; }
.set-item.open .chev { transform: rotate(180deg); }
.item-val { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.item-val + .chev { margin-inline-start: 8px; }
.set-panel { padding: 4px 16px 14px; border-top: 1px solid var(--line); }
.set-panel .toggle-row { padding-inline: 0; }
.mini-label { color: var(--muted); font-size: 12.5px; margin: 6px 0 -4px; }
.btn-row { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.chip-btn { border: 0; background: var(--accent-soft); color: var(--accent-2); border-radius: 12px; padding: 9px 14px; font-size: 14px; font-weight: 600; margin-top: 6px; }
.chip-btn.danger { background: rgba(255,100,100,.12); color: var(--danger); }
.seg { display: flex; gap: 6px; background: var(--bg); border-radius: 14px; padding: 4px; margin-top: 8px; }
.seg button { flex: 1; border: 0; background: none; color: var(--muted); padding: 10px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.seg button.active { background: var(--accent); color: #fff; }
.lang-list { display: flex; flex-direction: column; margin-top: 6px; }
.lang-list button { display: flex; justify-content: space-between; border: 0; background: none; color: var(--text); padding: 11px 4px; font-size: 15px; border-bottom: 1px solid var(--line); text-align: start; }
.lang-list button.active { color: var(--accent-2); font-weight: 700; }
.device-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.device-row .dev-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex-shrink: 0; }
.device-row .dev-ico svg { width: 20px; height: 20px; }
.device-row .dev-main { flex: 1; min-width: 0; }
.device-row .dev-name { font-size: 15px; font-weight: 500; }
.device-row .dev-sub { font-size: 12.5px; color: var(--muted); }
.device-row .this { color: var(--buy); font-size: 12px; font-weight: 600; }
.app-ver { text-align: center; color: var(--muted); font-size: 12px; margin: 18px 0; }
.page-sub { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* ================= פורומים ================= */
.head-pill.static { cursor: default; }
.ht { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; font-size: 22px; font-weight: 700; }
.thread-meta { display: flex; gap: 10px; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.thread-meta b { color: var(--accent-2); font-weight: 600; }
.thread-body { flex: 1; overflow-y: auto; padding: 6px 10px 10px; display: flex; flex-direction: column; }
.op-card { background: var(--surface); border-radius: 18px; padding: 14px; margin: 4px 0 10px; border: 1px solid var(--line); }
.op-card .op-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.op-card .op-author { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.op-card .op-author .avatar { width: 28px; height: 28px; font-size: 12px; }
.op-card .op-text { white-space: pre-wrap; line-height: 1.5; font-size: 15.5px; }
.replies-title { color: var(--muted); font-size: 13px; margin: 4px 6px 2px; }
#post-composer { display: flex; align-items: flex-end; gap: 6px; padding: 4px 8px calc(8px + env(safe-area-inset-bottom)); }
#post-input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 11px 0; resize: none; max-height: 140px; font-size: 16px; color: var(--text); line-height: 1.4; }

/* ================= עדכונים (דוחות) ================= */
.news-list { flex: 1; overflow-y: auto; padding: 0 12px calc(110px + env(safe-area-inset-bottom)); }
.news-day { color: var(--muted); font-size: 13px; font-weight: 600; margin: 14px 4px 6px; }
.news-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 16px; padding: 12px; margin-bottom: 8px; border: 1px solid transparent; }
.news-card.next { border-color: var(--danger); }
.news-card.past { opacity: .6; }
.news-time { min-width: 52px; text-align: center; }
.news-time b { display: block; font-size: 17px; direction: ltr; }
.news-time span { font-size: 11px; color: var(--muted); }
.news-main { flex: 1; min-width: 0; }
.news-title { font-weight: 600; font-size: 15px; direction: ltr; text-align: right; }
.news-tags { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 12px; color: var(--muted); }
.impact { display: inline-flex; align-items: center; gap: 4px; color: var(--danger); font-weight: 700; }
.impact::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--danger); }
.news-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.news-vals div { background: var(--bg); border-radius: 10px; padding: 5px 6px; text-align: center; }
.news-vals span { display: block; font-size: 10.5px; color: var(--muted); }
.news-vals b { font-size: 13.5px; direction: ltr; display: block; }
.countdown { color: var(--danger); font-weight: 700; font-size: 12px; }

/* ================= אנשי קשר וניטור ================= */
.contacts-perm { margin: 4px 14px 8px; padding: 12px 14px; background: var(--surface); border-radius: 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.contacts-perm .primary { padding: 9px 14px; white-space: nowrap; }
.list-section { color: var(--accent-2); font-size: 13px; font-weight: 600; padding: 12px 18px 4px; list-style: none; }
.invite-btn { border: 0; background: var(--surface); color: var(--accent-2); border-radius: 10px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.monitor-body { padding: 8px 14px; overflow-y: auto; flex: 1; }
.kw-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kw-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-2); border-radius: 16px; padding: 6px 6px 6px 12px; padding-inline-start: 12px; padding-inline-end: 6px; font-weight: 600; font-size: 14px; }
.kw-chip button { border: 0; background: rgba(0,0,0,.15); color: inherit; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.kw-chip button svg { width: 13px; height: 13px; }
.avatar-btn.big { margin-bottom: 4px; }
.system-badge { color: var(--accent-2); font-size: 11px; font-weight: 700; margin-inline-start: 6px; }

/* ================= משתנים משותפים לשתי הערכות ================= */
:root { --line: #2f2f2f; --nav-bg: rgba(36, 36, 36, .97); --switch-off: #4a4a4a; --meta: rgba(255,255,255,.5); --meta-mine: rgba(255,255,255,.62); }

/* ================= ערכת נושא בהירה ================= */
:root[data-theme="light"] {
  --bg: #ffffff; --surface: #f1f3f5; --surface2: #e7eaee;
  --text: #111418; --muted: #707a84; --sub: #4a525a;
  --accent: #3390ec; --accent-2: #2481d6; --accent-soft: #e4f0fc;
  --in: #ffffff; --out: #e1f6d3; --chip: rgba(70, 90, 70, .35);
  --danger: #e53935; --buy: #20a35a; --sell: #e53935;
  --chat-bg: #d9e4c8; --line: #e6e8eb; --nav-bg: rgba(255,255,255,.97); --switch-off: #c8ccd1;
  --meta: rgba(0,0,0,.45); --meta-mine: #4fae4e;
  color-scheme: light;
}
:root[data-theme="light"] body { background: var(--bg); color: var(--text); }
:root[data-theme="light"] #bottom-nav { background: var(--nav-bg); box-shadow: 0 6px 24px rgba(0,0,0,.14); }
:root[data-theme="light"] .nav-btn { color: #1c2329; }
:root[data-theme="light"] .nav-btn.active { background: var(--accent-soft); color: var(--accent); }
:root[data-theme="light"] .nav-btn .badge { box-shadow: 0 0 0 2px #fff; }
:root[data-theme="light"] .menu-item + .menu-item, :root[data-theme="light"] .toggle-row + .toggle-row { border-color: var(--line); }
:root[data-theme="light"] .switch { background: var(--switch-off); }
:root[data-theme="light"] .count { background: #c4c9cf; }
:root[data-theme="light"] .msg { box-shadow: 0 1px 1px rgba(0,0,0,.12); }
:root[data-theme="light"] .meta { color: var(--meta); }
:root[data-theme="light"] .msg.mine .meta { color: var(--meta-mine); }
:root[data-theme="light"] .meta .ticks { color: #4fae4e; }
:root[data-theme="light"] .msg.mine .file-icon { background: #4fae4e; color: #fff; }
:root[data-theme="light"] .msg.mine .file-size { color: var(--meta-mine); }
:root[data-theme="light"] .round-btn, :root[data-theme="light"] .head-pill, :root[data-theme="light"] .pinned,
:root[data-theme="light"] .input-pill, :root[data-theme="light"] .send-btn { box-shadow: 0 1px 4px rgba(0,0,0,.15); }
:root[data-theme="light"] .round-btn, :root[data-theme="light"] .head-pill, :root[data-theme="light"] .pinned, :root[data-theme="light"] .input-pill { background: #fff; }
:root[data-theme="light"] .unread-div { background: rgba(255,255,255,.85); color: #4a525a; }
:root[data-theme="light"] #screen-chat { background-color: var(--chat-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23384a20' stroke-opacity='0.12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 18v44M23 28h14v22H23z'/%3E%3Cpath d='M52 30v30M46 36h12v14H46z'/%3E%3Cpath d='M118 62l16-16 12 10 22-24M160 32h8v8'/%3E%3Ccircle cx='62' cy='128' r='14'/%3E%3Cpath d='M170 116l5 10 11 2-8 8 2 11-10-5-10 5 2-11-8-8 11-2z'/%3E%3Cpath d='M104 176l12-12 12 12M116 164v30'/%3E%3Ccircle cx='190' cy='196' r='6'/%3E%3Cpath d='M14 168l12 20H2z'/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-theme="light"] .tk-live { background: #e7eaee; color: #707a84; }
:root[data-theme="light"] .tk-live.live { background: rgba(32,163,90,.12); }
:root[data-theme="light"] .ftab.active .count { background: var(--accent); }
:root[data-theme="light"] .sheet-overlay, :root[data-theme="light"] dialog::backdrop { background: rgba(0,0,0,.35); }
:root[data-theme="light"] .sheet-box, :root[data-theme="light"] dialog { background: #fff; box-shadow: 0 -4px 24px rgba(0,0,0,.12); }
:root[data-theme="light"] dialog .field, :root[data-theme="light"] .tabs { background: var(--surface); }
:root[data-theme="light"] #toast { background: #323a42; }
:root[data-theme="light"] .cv { border-color: var(--line); }
:root[data-theme="light"] .copy-row, :root[data-theme="light"] .news-vals div, :root[data-theme="light"] .seg { background: #fff; }
:root[data-theme="light"] .trade { background: rgba(32,163,90,.08); }
:root[data-theme="light"] .trade.sell { background: rgba(229,57,53,.08); }
:root[data-theme="light"] .row:active { background: var(--surface); }
:root[data-theme="light"] .avatar-btn .cam { box-shadow: 0 0 0 3px #fff; }

.monitor-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12.5px; text-align: center; }
#screen-contacts .empty { position: static; margin-top: 24px; }

/* בחירת סימול בגרף */
.cv { position: relative; }
.cv-sym.pick { cursor: pointer; }
.cv-caret { color: var(--muted); font-size: 12px; margin-left: 4px; }
.cv-symmenu { position: absolute; top: 52px; right: 10px; z-index: 30; background: var(--surface); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35); padding: 6px; min-width: 190px; display: flex; flex-direction: column; }
.cv-symmenu.hidden { display: none; }
.cv-symmenu button { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0;
  color: var(--text); padding: 10px 12px; border-radius: 8px; font: inherit; text-align: right; }
.cv-symmenu button b { direction: ltr; font-weight: 600; }
.cv-symmenu button span { color: var(--muted); font-size: 13px; }
.cv-symmenu button.on { background: rgba(80,168,235,.15); }
.cv-symmenu button.on b { color: var(--accent, #50a8eb); }
/* הגרף תמיד כהה – גם בערכת נושא בהירה */
.cv-top, .cv-symmenu { --text: #ffffff; --muted: #9b9b9b; color: #fff; }
.cv-symmenu { background: #1f1f1f; }

/* עדכון אפליקציה */
.update-notes { white-space: pre-line; margin: 12px 0; line-height: 1.5; }
.update-progress { height: 6px; border-radius: 3px; background: rgba(127,127,127,.25); overflow: hidden; margin: 10px 0 4px; }
.update-progress.hidden { display: none; }
#update-bar { height: 100%; width: 0; background: var(--accent, #3390ec); transition: width .2s; }

/* נעילת מסך הכניסה בזמן אימות */
.verify-lock { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 17px; text-align: center; }
.verify-lock.hidden { display: none; }
.verify-lock .muted { color: rgba(255,255,255,.75); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255,255,255,.3); border-top-color: #fff; animation: tc-spin 0.9s linear infinite; }
@keyframes tc-spin { to { transform: rotate(360deg); } }
#resend-btn:disabled { opacity: .5; }

/* חלונית "קיים עדכון חדש" */
.update-card { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 900;
  background: var(--surface, #fff); color: var(--text); border-radius: 16px; padding: 14px 16px 16px;
  box-shadow: 0 10px 34px rgba(0,0,0,.28); transform: translateY(0); opacity: 1; transition: transform .28s ease, opacity .28s ease; }
.update-card.hidden { display: block; transform: translateY(140%); opacity: 0; pointer-events: none; }
.uc-head { display: flex; align-items: center; gap: 12px; }
.uc-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--accent, #3390ec); color: #fff; display: grid; place-items: center; flex: none; }
.uc-icon svg { width: 20px; height: 20px; }
.uc-titles { flex: 1; min-width: 0; }
.uc-title { font-weight: 600; font-size: 16px; }
.uc-close { background: none; border: 0; color: var(--muted); font-size: 16px; padding: 6px; }
.uc-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; background: none; border: 0; padding: 4px 0;
  color: var(--accent, #3390ec); font: inherit; font-weight: 600; direction: ltr; }
.uc-arrow { display: inline-block; transition: transform .25s ease; font-size: 13px; }
.uc-toggle[aria-expanded="true"] .uc-arrow { transform: rotate(180deg); }
.uc-notes-wrap { height: 0; overflow: hidden; transition: height .28s ease; }
.uc-notes { margin: 6px 0 2px; padding-inline-start: 20px; line-height: 1.55; max-height: 45vh; overflow-y: auto; }
.uc-notes li { margin: 2px 0; }
.uc-go { width: 100%; margin-top: 12px; }

/* כפתור התנתקות בתחתית מסך הפרופיל */
.logout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 32px); margin: 18px 16px 6px;
  padding: 13px; border: 0; border-radius: 12px; background: rgba(229,57,53,.1); color: #e53935; font: inherit; font-weight: 600; font-size: 16px; }
.logout-btn:active { background: rgba(229,57,53,.2); }
.logout-btn svg { width: 20px; height: 20px; }
