:root {
  --bg: #0f1320;
  --panel: #1a2032;
  --panel-2: #232a40;
  --text: #e8ecf5;
  --muted: #8a93ab;
  --green: #2bbf6a;
  --green-d: #229c57;
  --red: #e8504f;
  --red-d: #c53e3d;
  --accent: #4c8dff;
  --border: #2c3450;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

/* Scroll ishlaydi, lekin scrollbar elementi yashiringan (hamma joyda) */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1b2236, var(--bg));
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.app {
  width: 100%;
  max-width: 390px;
  height: 88vh;
  max-height: 840px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* iPhone-style full-screen call screen */
.call-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: linear-gradient(180deg, #1d2740 0%, #0f1422 100%);
  display: flex;
  flex-direction: column;
  padding: 48px 24px 32px;
  animation: csIn .25s ease;
}
@keyframes csIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

.cs-top { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cs-avatar {
  width: 104px; height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4c8dff, #6aa0ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 600; color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  margin-bottom: 6px;
}
.cs-name { font-size: 27px; font-weight: 600; text-align: center; }
.cs-sub { font-size: 15px; color: var(--muted); }
.cs-timer { font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Second line (call waiting / held) */
.cs-second {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 8px 0;
  padding: 10px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.cs-second-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cs-second-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-second-state { font-size: 12px; color: var(--muted); }
.cs-second-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.cs-mini-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cs-mini-btn .ci { width: 20px; height: 20px; }
.cs-mini-btn.green { background: var(--green); }
.cs-mini-btn.red { background: var(--red); }
.cs-mini-btn:active { transform: scale(0.92); }

/* Actions pinned to the bottom */
.cs-actions { margin-top: auto; }
.cs-incoming { display: flex; justify-content: space-between; padding: 0 20px; }
.cs-action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: transparent; border: none; cursor: pointer; color: var(--text);
}
.cs-circle {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  background: rgba(255,255,255,.14);
  transition: transform .08s, filter .15s;
}
.cs-circle.green { background: var(--green); }
.cs-circle.red { background: var(--red); }
.cs-action:active .cs-circle { transform: scale(0.92); }
.cs-action.active .cs-circle { background: #fff; color: #1a2032; }
.cs-action.muted .cs-circle { background: var(--red); color: #fff; }
.cs-lb { font-size: 13px; color: var(--muted); }

/* Active call: 3-up grid + hangup */
.cs-active { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; max-width: 300px; }
.cs-grid .cs-action { width: 100%; }
.cs-action.hangup { margin-top: 4px; }

/* DTMF keypad inside call screen */
.call-screen.dtmf-open .cs-top { display: none; }
.call-screen.dtmf-open .cs-grid { display: none; } /* DTMF ochiq — faqat klaviatura + tugatish */
.cs-dtmf { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 4px 0 0; }
.cs-dialpad { margin: 0 auto; }
.cs-hidekp {
  background: transparent; border: none; color: var(--accent);
  font-size: 15px; cursor: pointer; padding: 6px 12px;
}

/* Views area between header and tab bar — each view manages its own scroll */
.views { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; flex: 0 0 auto; }
.logo { font-size: 20px; }
.status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;            /* flex bola qisqarishi uchun */
  overflow: hidden;
}
#statusText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* uzun matn "…" bilan kesiladi */
}
.dot {
  flex: 0 0 auto;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 0 rgba(43, 191, 106, 0.5);
}
.dot.on { background: var(--green); animation: pulse 2s infinite; }
.dot.connecting { background: #e0a23a; }
.dot.error { background: var(--red); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,191,106,.5); }
  70% { box-shadow: 0 0 0 7px rgba(43,191,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,191,106,0); }
}

.icon-btn {
  flex: 0 0 auto;          /* hech qachon qisqarmaydi / itarilmaydi */
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.icon-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* Phone */
.phone { padding: 16px; }
/* Keypad view: fit available height, no scroll, evenly distributed */
#viewDial { justify-content: space-evenly; overflow: hidden; }

.call-banner {
  background: linear-gradient(135deg, #243153, #1c2540);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}
.call-peer { font-size: 18px; font-weight: 600; }
.call-state { font-size: 13px; color: var(--muted); margin-top: 2px; }
.call-timer { font-size: 22px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }

.display {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0;
  min-height: 44px;
}
.display input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
}
.display input::placeholder { color: var(--muted); font-size: 18px; font-weight: 400; letter-spacing: 0; }
.backspace {
  position: absolute;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity .15s;
}
.display.has-input .backspace { opacity: 0.8; }
.backspace:hover { color: #fff; }

.dialpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 22px;
  justify-items: center;
  max-width: 300px;
  margin: 0 auto;
}
.key {
  width: 72px;
  height: 72px;
  background: var(--panel-2);
  border: none;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .08s, background .15s;
}
.key span { font-size: 32px; font-weight: 400; line-height: 1; }
.key small { color: var(--muted); font-size: 9px; letter-spacing: 1.5px; font-weight: 600; margin-top: 2px; height: 10px; }
.key:hover { background: #2a3350; }
.key:active { transform: scale(0.92); background: var(--accent); }

/* Call controls */
.controls { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; min-height: 72px; }

/* Big circular call/answer/hangup buttons (iPhone-like) */
.call-btn {
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 50%;
  font-size: 0; /* hide text, show icon only */
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .08s, filter .15s;
}
.call-btn:active { transform: scale(0.92); }
.call-btn.green { background: var(--green); }
.call-btn.green:hover { filter: brightness(1.08); }
.call-btn.red { background: var(--red); }
.call-btn.red:hover { filter: brightness(1.08); }

/* Inline SVG icons */
.ci { display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.ci svg { display: block; width: 100%; height: 100%; }
.call-btn .ci { width: 32px; height: 32px; color: #fff; }
.cs-circle .ci { width: 30px; height: 30px; }
.tb-ic { display: inline-flex; align-items: center; justify-content: center; }
.tb-ic[data-icon] { width: 24px; height: 24px; }
.play-btn .ci { width: 13px; height: 13px; display: inline-flex; }

.ctrl-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}
.ctrl-btn:hover { background: #2a3350; }
.ctrl-btn.active { background: var(--accent); border-color: var(--accent); }

/* Call log */
.log {
  border-top: 1px solid var(--border);
  padding: 12px 16px 16px;
}
.log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.link-btn {
  background: none; border: none; color: var(--accent);
  cursor: pointer; font-size: 12px;
}
.log-list { list-style: none; margin: 0; padding: 0; }
.log-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 14px;
  cursor: pointer;
}
.log-item:hover { background: rgba(255,255,255,.03); }
.log-icon { font-size: 14px; width: 20px; text-align: center; }
.log-icon.in { color: var(--green); }
.log-icon.out { color: var(--accent); }
.log-icon.missed { color: var(--red); }
.log-num { flex: 1; }
.log-time { color: var(--muted); font-size: 12px; }

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 50;
}
.modal-card {
  width: 100%; max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  max-height: 90vh; overflow-y: auto;
}
.modal-card h2 { margin: 0 0 6px; font-size: 18px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0 0 16px; }
.modal-card label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.modal-card label input[type="text"],
.modal-card label input[type="password"] {
  width: 100%;
  margin-top: 5px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.modal-card label input:focus { border-color: var(--accent); }
.check { display: flex !important; align-items: center; gap: 8px; color: var(--text) !important; }
.check input { width: auto !important; margin: 0 !important; }

.modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.btn {
  flex: 1; border: none; border-radius: 10px;
  padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn.small { padding: 9px; font-size: 13px; margin-top: 12px; width: 100%; }

/* Header user/line selector */
.user-select {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 2px 6px;
  border-radius: 10px;
}
.user-select:hover { background: rgba(255,255,255,.06); }
.us-line { display: flex; align-items: baseline; gap: 7px; }
.us-name { font-size: 18px; font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(76, 141, 255, 0.14);
  padding: 1px 7px;
  border-radius: 8px;
  flex: 0 0 auto;
}
.us-num:empty { display: none; }
.us-caret { color: var(--accent); font-size: 12px; align-self: center; }
.us-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

/* Language switcher */
.lang-switch { display: flex; gap: 6px; }
.lang-btn {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Microphone settings + test */
.mic-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mic-head { font-size: 13px; color: var(--muted); font-weight: 600; }
.mini-select.wide { width: 100%; }
.mic-row { display: flex; align-items: center; gap: 10px; }
.mic-row-lb { font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.mic-gain-val { font-size: 12px; color: var(--text); width: 42px; text-align: right; flex: 0 0 auto; }
#micGain {
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px;
  background: var(--border); border-radius: 3px; outline: none;
}
#micGain::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent); cursor: pointer;
}
#micGain::-moz-range-thumb {
  width: 18px; height: 18px; border: none; border-radius: 50%; background: var(--accent); cursor: pointer;
}
.mic-meter { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.mic-meter-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green), #e0a23a 70%, var(--red));
  transition: width .06s linear;
}
.mic-test-row { display: flex; }
.mic-test-row .btn { width: 100%; }
.mic-test-row .btn.recording { background: var(--red); color: #fff; border-color: var(--red); }
.mic-playback { width: 100%; height: 36px; }

/* Settings view scrolls when content is long */
#viewSettings { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* iOS-style toggle switch */
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; color: var(--text); font-size: 14px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.switch { position: relative; flex: 0 0 auto; width: 50px; height: 30px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sw-track { position: absolute; inset: 0; background: var(--border); border-radius: 15px; transition: background .2s; }
.sw-track::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.switch input:checked + .sw-track { background: var(--green); }
.switch input:checked + .sw-track::before { transform: translateX(20px); }

/* Settings view body */
.settings-body { display: flex; flex-direction: column; }
.settings-body .check { margin: 8px 0 16px; }
.settings-body .btn { margin-top: 8px; }

/* Recording mini-player (tab bar ustida) */
.rec-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
}
.rp-btn {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.1);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.rp-btn .ci { width: 16px; height: 16px; }
.rp-btn:hover { background: rgba(255,255,255,.18); }
.rp-time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; width: 34px; text-align: center; }
.rp-seek {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 3px; background: var(--border); outline: none; cursor: pointer;
}
.rp-seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; }
.rp-seek::-moz-range-thumb { width: 14px; height: 14px; border: none; border-radius: 50%; background: var(--accent); cursor: pointer; }
.rp-rate {
  flex: 0 0 auto;
  min-width: 36px;
  background: rgba(255,255,255,.1);
  border: none; color: var(--text);
  border-radius: 8px; padding: 5px 6px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.rp-rate:hover { background: rgba(255,255,255,.18); }

/* iPhone-style bottom tab bar */
.tabbar {
  display: flex;
  background: rgba(26, 32, 50, 0.96);
  border-top: 1px solid var(--border);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  flex: 0 0 auto;
}
.tabbtn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 0;
}
.tb-lb { font-size: 11px; font-weight: 500; }
.tabbtn.active { color: var(--accent); }
.tabbtn { position: relative; }
.tab-badge {
  position: absolute;
  top: 2px; left: 50%; margin-left: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px; font-weight: 700;
  line-height: 16px; text-align: center;
}

/* Switchable views */
.view { display: none; }
.view.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
section.view { padding: 16px; }
.view-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  flex: 0 0 auto;
}
/* Recents list scrolls inside its view, head stays put */
#viewHist .log-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
.view-title { font-weight: 600; }
.view-actions { display: flex; align-items: center; gap: 8px; }
.mini-select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 12px;
  outline: none;
}
.mini-select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 12px;
  outline: none;
}
/* Recents filter row */
.hist-filter { display: flex; gap: 8px; margin-bottom: 10px; flex: 0 0 auto; }
.hist-search {
  flex: 1; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 11px; color: var(--text); font-size: 14px; outline: none;
}
.hist-search::placeholder { color: var(--muted); }
.hist-search:focus { border-color: var(--accent); }
.filter-chip {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 9px; padding: 0 12px; font-size: 13px; font-weight: 600; cursor: pointer; flex: 0 0 auto;
}
.filter-chip.active { background: var(--red); border-color: var(--red); color: #fff; }

.hist-status { color: var(--muted); font-size: 13px; padding: 14px 4px; text-align: center; }
.hist-status.error { color: #ffb3b2; }

/* Server history item with recording */
.hist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 14px;
}
.hist-icon { font-size: 14px; width: 18px; text-align: center; flex: 0 0 auto; }
.hist-icon.in { color: var(--green); }
.hist-icon.out { color: var(--accent); }
.hist-icon.missed { color: var(--red); }
.hist-main { flex: 1; min-width: 0; cursor: pointer; }
.hist-peer { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-sub { font-size: 12px; color: var(--muted); }
.hist-dur { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.play-btn {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}
.play-btn:hover { background: var(--accent); border-color: var(--accent); }
.play-btn:disabled { opacity: .4; cursor: default; }
.player-row { padding: 6px 4px 12px; }
.player-row audio { width: 100%; height: 34px; }
.player-msg { font-size: 12px; color: var(--muted); padding: 4px; }

/* Setup: user list */
.user-list { list-style: none; margin: 4px 0 0; padding: 0; max-height: 320px; overflow-y: auto; }
.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.user-item:hover { background: #2a3350; border-color: var(--accent); }
.user-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  flex: 0 0 auto;
}
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-num { font-size: 13px; color: var(--muted); }
.user-nowebrtc { margin-left: auto; font-size: 11px; color: var(--red); }

/* Info rows (settings) */
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.info-label { color: var(--muted); font-size: 13px; }
.info-value { font-weight: 600; }

/* Error message */
.form-error {
  background: rgba(232, 80, 79, .12);
  border: 1px solid var(--red);
  color: #ffb3b2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

/* Loading / spinner */
.loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 30px 10px; color: var(--muted);
}
.spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn.primary { margin-top: 4px; }
.modal-card .btn + .btn { margin-top: 8px; }

.hidden { display: none !important; }
