/* ================================================================
   Anonymous Chat - עיצוב ראשי (RTL, כהה, רספונסיבי)
   ================================================================ */
:root {
  --bg:            #0e1117;
  --bg-2:          #151a23;
  --bg-3:          #1c2430;
  --bg-hover:      #222c3a;
  --line:          #2a3442;
  --text:          #e8edf4;
  --text-dim:      #94a3b8;
  --text-faint:    #64748b;
  --brand:         #6c5ce7;
  --brand-2:       #8b7cf6;
  --ok:            #10b981;
  --warn:          #f59e0b;
  --danger:        #ef4444;
  --bubble-me:     #4c3fd1;
  --bubble-other:  #222c3a;
  --radius:        14px;
  --radius-sm:     9px;
  --shadow:        0 10px 30px rgba(0,0,0,.45);
  --sidebar-w:     320px;
  --header-h:      60px;
}

@media (prefers-color-scheme: light) {
  :root.auto-theme {
    --bg: #f4f6fa; --bg-2: #ffffff; --bg-3: #eef1f7; --bg-hover: #e5e9f2;
    --line: #d8dfe9; --text: #1a2233; --text-dim: #55617a; --text-faint: #8a94a8;
    --bubble-other: #e9edf5; --shadow: 0 10px 30px rgba(20,30,60,.12);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: "Segoe UI", "Rubik", "Heebo", system-ui, -apple-system, "Noto Sans Hebrew", Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
  direction: rtl;
  overscroll-behavior: none;
}

button, input, select, textarea { font: inherit; color: inherit; direction: rtl; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--brand-2); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

.hidden { display: none !important; }

/* ---------------------------------------------------------------- כפתורים */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--bg-3); color: var(--text);
  font-weight: 600; font-size: 14px;
  transition: background .15s, transform .1s, opacity .15s;
  border: 1px solid transparent;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-3); }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.btn-icon:hover { background: var(--bg-hover); }

/* ---------------------------------------------------------------- שדות */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 5px; line-height: 1.45; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108,92,231,.18);
}
.textarea { resize: vertical; min-height: 72px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; margin-bottom: 9px; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }

.error-box {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35);
  color: #fca5a5; padding: 10px 13px; border-radius: var(--radius-sm);
  font-size: 13.5px; margin-bottom: 12px;
}
.info-box {
  background: rgba(108,92,231,.12); border: 1px solid rgba(108,92,231,.3);
  padding: 11px 13px; border-radius: var(--radius-sm); font-size: 13.5px;
  color: var(--text-dim); margin-bottom: 12px; line-height: 1.55;
}

/* ---------------------------------------------------------------- אווטאר */
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--brand); color: #fff;
  position: relative; user-select: none;
}
.avatar.sm { width: 32px; height: 32px; font-size: 15px; }
.avatar.lg { width: 68px; height: 68px; font-size: 32px; }
.avatar .dot {
  position: absolute; inset-block-end: -1px; inset-inline-end: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-faint); border: 2.5px solid var(--bg-2);
}
.avatar .dot.on { background: var(--ok); }

.badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; padding: 1.5px 6px;
  border-radius: 5px; vertical-align: middle;
}
.badge-bot   {
  background: transparent; color: var(--text-faint);
  border: 1px solid var(--line); font-weight: 600;
  font-size: 9.5px; letter-spacing: .02em; opacity: .8;
}
.badge-admin { background: rgba(239,68,68,.2); color: #fca5a5; border: 1px solid rgba(239,68,68,.4); }
.badge-lock  { background: rgba(245,158,11,.18); color: #fcd34d; }
.badge-count {
  background: var(--brand); color: #fff; border-radius: 11px;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
}

/* ================================================================ מסך כניסה */
#auth-screen {
  min-height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(108,92,231,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(16,185,129,.13), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 430px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo .mark { font-size: 44px; line-height: 1; }
.auth-logo h1 { margin: 8px 0 4px; font-size: 25px; letter-spacing: -.5px; }
.auth-logo p { margin: 0; color: var(--text-dim); font-size: 13.5px; }

.tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 11px; margin-bottom: 20px; }
.tabs button {
  flex: 1; padding: 9px; border-radius: 8px; font-size: 14px;
  font-weight: 600; color: var(--text-dim); transition: .15s;
}
.tabs button.active { background: var(--brand); color: #fff; }

.avatar-picker { display: flex; flex-wrap: wrap; gap: 7px; max-height: 108px; overflow-y: auto; padding: 4px; }
.avatar-picker button {
  width: 38px; height: 38px; border-radius: 50%; font-size: 19px;
  background: var(--bg); border: 2px solid transparent; transition: .15s;
}
.avatar-picker button:hover { background: var(--bg-hover); }
.avatar-picker button.sel { border-color: var(--brand); background: var(--bg-hover); }

.color-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.color-picker button { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid transparent; }
.color-picker button.sel { border-color: var(--text); }

/* ================================================================ מבנה ראשי */
#app { display: none; height: 100%; }
#app.on { display: flex; }

#sidebar {
  width: var(--sidebar-w); flex: none;
  background: var(--bg-2); border-inline-start: 1px solid var(--line);
  display: flex; flex-direction: column; height: 100%;
}
.side-head {
  height: var(--header-h); flex: none; padding: 0 12px;
  display: flex; align-items: center; gap: 10px;
  border-block-end: 1px solid var(--line);
}
.side-head .me { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; cursor: pointer; border-radius: 10px; padding: 4px; }
.side-head .me:hover { background: var(--bg-3); }
.side-head .me .nm { min-width: 0; }
.side-head .me .nm b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-head .me .nm span { font-size: 11.5px; color: var(--text-faint); }

.side-tabs { display: flex; border-block-end: 1px solid var(--line); flex: none; }
.side-tabs button {
  flex: 1; padding: 11px 4px; font-size: 13.5px; font-weight: 600;
  color: var(--text-dim); border-block-end: 2.5px solid transparent; position: relative;
}
.side-tabs button.active { color: var(--text); border-block-end-color: var(--brand); }
.side-tabs .badge-count { position: absolute; top: 5px; inset-inline-end: 10px; }

.side-search { padding: 10px 12px; flex: none; }
.side-list { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.side-foot { flex: none; padding: 10px 12px; border-block-start: 1px solid var(--line); display: flex; gap: 8px; }

.list-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px; border-radius: 12px; cursor: pointer;
  transition: background .13s; margin-bottom: 2px;
}
.list-item:hover { background: var(--bg-3); }
.list-item.active { background: var(--bg-hover); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; }
.list-item .title span.t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub {
  font-size: 12.5px; color: var(--text-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
}
.list-item .meta { text-align: end; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.list-item .meta .time { font-size: 11px; color: var(--text-faint); }

.section-title {
  font-size: 11.5px; font-weight: 700; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .6px;
  padding: 14px 10px 6px;
}
.empty-note { padding: 26px 16px; text-align: center; color: var(--text-faint); font-size: 13.5px; line-height: 1.7; }

/* ================================================================ אזור צ'אט */
#main { flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100%; position: relative; }

.chat-head {
  height: var(--header-h); flex: none; padding: 0 14px;
  display: flex; align-items: center; gap: 11px;
  border-block-end: 1px solid var(--line); background: var(--bg-2);
}
.chat-head .info { flex: 1; min-width: 0; cursor: pointer; }
.chat-head .info h3 { margin: 0; font-size: 15.5px; display: flex; align-items: center; gap: 6px; }
.chat-head .info p { margin: 1px 0 0; font-size: 12px; color: var(--text-faint); }
#btn-back { display: none; }

.expiry-bar {
  flex: none; padding: 6px 14px; font-size: 12px; color: var(--warn);
  background: rgba(245,158,11,.09); border-block-end: 1px solid rgba(245,158,11,.2);
  display: flex; align-items: center; gap: 7px;
}

#messages {
  flex: 1; overflow-y: auto; padding: 16px 14px 8px;
  display: flex; flex-direction: column; gap: 3px;
  position: relative;
}
#messages.blurred > * { filter: blur(13px); pointer-events: none; }

.privacy-veil {
  position: absolute; inset: 0; z-index: 40;
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  background: rgba(14,17,23,.86); backdrop-filter: blur(6px);
  text-align: center; padding: 24px; color: var(--text-dim); font-size: 14px;
}
.privacy-veil.on { display: flex; }
.privacy-veil .big { font-size: 42px; }

.msg { display: flex; gap: 9px; max-width: 78%; margin-bottom: 7px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.other { align-self: flex-start; }
.msg .avatar { align-self: flex-end; }
.msg .bubble {
  background: var(--bubble-other); padding: 8px 12px;
  border-radius: 16px; position: relative; min-width: 0;
  word-break: break-word; overflow-wrap: anywhere;
}
.msg.me .bubble { background: var(--bubble-me); color: #fff; border-end-end-radius: 5px; }
.msg.other .bubble { border-end-start-radius: 5px; }
.msg .who { font-size: 12px; font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 5px; }
.msg .txt { white-space: pre-wrap; font-size: 14.5px; }
.msg .time { font-size: 10.5px; opacity: .65; margin-top: 3px; text-align: start; }
.msg .flag { font-size: 11px; color: var(--warn); margin-top: 3px; }
.msg.deleted .txt { font-style: italic; opacity: .55; }

.msg-actions {
  position: absolute; top: -11px; inset-inline-start: -8px;
  display: none; gap: 3px; background: var(--bg-3);
  border: 1px solid var(--line); border-radius: 8px; padding: 2px;
}
.msg:hover .msg-actions { display: flex; }
.msg-actions button { padding: 3px 6px; font-size: 12px; border-radius: 5px; }
.msg-actions button:hover { background: var(--bg-hover); }

.msg-system {
  align-self: center; max-width: 90%; text-align: center;
  font-size: 12.5px; color: var(--text-faint);
  background: var(--bg-3); padding: 6px 13px; border-radius: 20px; margin: 8px 0;
}

/* תמונות */
.msg-image { border-radius: 11px; overflow: hidden; max-width: 260px; margin-top: 4px; }
.msg-image img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.onetime-card {
  display: flex; align-items: center; gap: 11px;
  background: rgba(0,0,0,.25); border: 1px dashed var(--line);
  border-radius: 11px; padding: 11px 13px; cursor: pointer; margin-top: 4px;
  min-width: 190px; transition: .15s;
}
.onetime-card:hover { background: rgba(0,0,0,.4); }
.onetime-card.spent { opacity: .55; cursor: default; border-style: solid; }
.onetime-card .ico { font-size: 24px; }
.onetime-card b { display: block; font-size: 13.5px; }
.onetime-card small { font-size: 11.5px; opacity: .75; }

.typing-row { font-size: 12.5px; color: var(--text-faint); padding: 2px 8px 6px; font-style: italic; }

/* ================================================================ תיבת כתיבה */
.composer {
  flex: none; padding: 10px 12px; border-block-start: 1px solid var(--line);
  background: var(--bg-2);
}
.composer-inner { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea {
  flex: 1; max-height: 130px; min-height: 42px; padding: 10px 13px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 21px; outline: none; resize: none; line-height: 1.45;
}
.composer textarea:focus { border-color: var(--brand); }
.composer .btn-send {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--brand); color: #fff; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center;
}
.composer .btn-send:disabled { background: var(--bg-3); color: var(--text-faint); }
.composer-note { font-size: 11.5px; color: var(--text-faint); margin-top: 6px; text-align: center; }

.attach-preview {
  display: flex; align-items: center; gap: 11px;
  background: var(--bg-3); border-radius: 11px; padding: 9px; margin-bottom: 9px;
}
.attach-preview img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.attach-preview .opts { flex: 1; font-size: 12.5px; color: var(--text-dim); }

/* ================================================================ מסך פתיחה */
.welcome {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px; gap: 10px;
}
.welcome .mark { font-size: 60px; }
.welcome h2 { margin: 0; font-size: 22px; }
.welcome p { margin: 0; color: var(--text-dim); max-width: 400px; line-height: 1.7; font-size: 14px; }

/* ================================================================ מודאלים */
.modal-back {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.68); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fade .15s;
}
@keyframes fade { from { opacity: 0 } }
.modal {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 18px; width: 100%; max-width: 470px;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow); animation: pop .18s;
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0 } }
.modal.wide { max-width: 880px; }
.modal-head {
  padding: 16px 18px; border-block-end: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex: none;
}
.modal-head h3 { margin: 0; font-size: 17px; flex: 1; }
.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-foot {
  padding: 14px 18px; border-block-start: 1px solid var(--line);
  display: flex; gap: 9px; justify-content: flex-start; flex: none;
}

/* ================================================================ צופה תמונה */
#viewer {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
#viewer.on { display: flex; }
#viewer img {
  max-width: 94vw; max-height: 78vh; object-fit: contain;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
#viewer.veiled img { filter: blur(30px); }
#viewer .bar {
  position: absolute; top: 0; inset-inline: 0; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.85), transparent);
  color: #fff; font-size: 14px;
}
#viewer .countdown {
  font-variant-numeric: tabular-nums; font-weight: 700;
  background: rgba(239,68,68,.9); padding: 4px 12px; border-radius: 20px;
}
#viewer .foot {
  position: absolute; bottom: 0; inset-inline: 0; padding: 16px;
  text-align: center; color: #d1d5db; font-size: 12.5px;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
}

/* ================================================================ סימן מים */
#watermark {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .034; overflow: hidden;
  display: none;
}
#watermark.on { display: block; }
#watermark .wm-row {
  white-space: nowrap; font-size: 13px; font-weight: 600;
  color: var(--text); transform: rotate(-26deg);
  transform-origin: center; letter-spacing: 1px; line-height: 5.2;
}
@media (max-width: 860px) {
  #watermark { opacity: .026; }
  #watermark .wm-row { font-size: 11px; line-height: 6.5; }
}

/* ================================================================ הודעות צפות */
#toasts {
  position: fixed; top: 14px; inset-inline-start: 50%; transform: translateX(50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none; width: min(92vw, 420px);
}
.toast {
  background: var(--bg-3); border: 1px solid var(--line);
  padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow);
  font-size: 13.5px; animation: drop .2s; max-width: 100%;
  pointer-events: auto; display: flex; align-items: flex-start; gap: 9px;
}
@keyframes drop { from { transform: translateY(-14px); opacity: 0 } }
.toast.ok     { border-color: rgba(16,185,129,.5); }
.toast.warn   { border-color: rgba(245,158,11,.5); }
.toast.error  { border-color: rgba(239,68,68,.5); }

/* ================================================================ פאנל ניהול */
.admin-tabs { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-tabs button {
  padding: 7px 13px; border-radius: 9px; font-size: 13.5px;
  background: var(--bg-3); font-weight: 600; color: var(--text-dim);
}
.admin-tabs button.active { background: var(--brand); color: #fff; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat {
  background: var(--bg-3); border-radius: 12px; padding: 13px;
  border: 1px solid var(--line);
}
.stat b { display: block; font-size: 23px; line-height: 1.15; }
.stat span { font-size: 11.5px; color: var(--text-faint); }
.stat.alert b { color: var(--warn); }

.admin-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px; border-radius: 11px; background: var(--bg-3);
  margin-bottom: 8px; flex-wrap: wrap;
}
.admin-row .grow { flex: 1; min-width: 150px; }
.admin-row .t { font-weight: 600; font-size: 14px; }
.admin-row .s { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.admin-row .acts { display: flex; gap: 6px; flex-wrap: wrap; }

.sev { font-size: 10.5px; padding: 2px 7px; border-radius: 5px; font-weight: 700; }
.sev-info     { background: rgba(148,163,184,.2); color: var(--text-dim); }
.sev-warn     { background: rgba(245,158,11,.2); color: #fcd34d; }
.sev-high     { background: rgba(239,68,68,.2); color: #fca5a5; }
.sev-critical { background: var(--danger); color: #fff; }

.risk-bar { height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; margin-top: 5px; width: 110px; }
.risk-bar i { display: block; height: 100%; background: var(--warn); }
.risk-bar i.hot { background: var(--danger); }

/* ================================================================ רספונסיבי */
@media (max-width: 860px) {
  :root { --sidebar-h: 100%; }
  #app { position: relative; }
  #sidebar {
    width: 100%; position: absolute; inset: 0; z-index: 20;
    transform: translateX(0); transition: transform .22s ease;
  }
  #sidebar.pushed { transform: translateX(-100%); }
  html[dir="rtl"] #sidebar.pushed { transform: translateX(100%); }
  #main { position: absolute; inset: 0; z-index: 10; }
  #main.hidden-mobile { display: none; }
  #btn-back { display: inline-flex; }
  .msg { max-width: 88%; }
  .modal { max-height: 94vh; }
  .stat-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
}

@media (min-width: 861px) {
  #main.hidden-mobile { display: flex; }
}

/* מניעת בחירה והעתקה באזור התוכן הרגיש */
.no-copy {
  user-select: none; -webkit-user-select: none; -ms-user-select: none;
  -webkit-touch-callout: none;
}

/* חסימת הדפסה */
@media print {
  html, body { display: none !important; }
}


/* ================================================================ שיחות קוליות */
#call-screen {
  position: fixed; inset: 0; z-index: 250;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 11, 16, .96); backdrop-filter: blur(10px);
  padding: 24px;
}
#call-screen.on { display: flex; }

.call-card {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 14px; max-width: 340px; width: 100%;
}

.call-avatar {
  width: 116px; height: 116px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: #fff; position: relative; flex: none;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.call-pulse {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 3px solid currentColor; opacity: .55;
  animation: call-ring 1.7s ease-out infinite;
}
@keyframes call-ring {
  0%   { transform: scale(.92); opacity: .6; }
  100% { transform: scale(1.35); opacity: 0; }
}

.call-name   { font-size: 21px; font-weight: 700; }
.call-status {
  font-size: 15px; color: var(--text-dim);
  font-variant-numeric: tabular-nums; min-height: 22px;
}
.call-hint { font-size: 12.5px; color: var(--text-faint); line-height: 1.6; }

.call-actions { display: flex; gap: 22px; margin-top: 18px; }
.call-btn {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 25px; color: #fff; transition: transform .12s, filter .12s;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.call-btn:active { transform: scale(.92); }
.call-btn.accept { background: var(--ok); }
.call-btn.reject { background: var(--danger); }
.call-btn.mute   { background: var(--bg-3); border: 1px solid var(--line); }
.call-btn.mute.on { background: var(--warn); color: #1a1a1a; }

@media (max-width: 420px) {
  .call-avatar { width: 96px; height: 96px; font-size: 44px; }
  .call-btn { width: 58px; height: 58px; font-size: 22px; }
  .call-actions { gap: 18px; }
}

#call-audio { display: none; }
