/* ============================================================
   SOHBET — gizemli tema
   Gece moru, sis, yıldız tozu ve camgöbeği parıltılar
   ============================================================ */
:root {
  --bg0: #05040a;
  --bg1: #0c0a17;
  --glass: rgba(17, 13, 31, .62);
  --glass-strong: rgba(20, 15, 37, .88);
  --glass-hover: rgba(139, 92, 246, .09);
  --line: rgba(167, 139, 250, .14);
  --line-strong: rgba(167, 139, 250, .32);
  --text: #ebe7f7;
  --muted: #8a83a6;
  --accent: #8b5cf6;
  --accent-soft: #a78bfa;
  --accent2: #22d3ee;
  --accent-text: #ffffff;
  --mine-a: #6d28d9;
  --mine-b: #3730a3;
  --theirs: rgba(29, 23, 51, .78);
  --danger: #f43f5e;
  --ok: #10b981;
  --online: #22d3ee;
  --read: #67e8f9;
  --mark: rgba(34, 211, 238, .35);
  --glow: 0 0 24px rgba(139, 92, 246, .35);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}
::selection { background: rgba(139, 92, 246, .45); }

/* ---------- arka plan: sis + yıldız tozu ---------- */
body::before, body::after {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
}
body::before {
  background:
    radial-gradient(40% 35% at 20% 25%, rgba(109, 40, 217, .28), transparent 70%),
    radial-gradient(35% 30% at 80% 70%, rgba(34, 211, 238, .12), transparent 70%),
    radial-gradient(45% 40% at 60% 10%, rgba(67, 56, 202, .18), transparent 70%),
    radial-gradient(60% 60% at 50% 110%, rgba(88, 28, 135, .35), transparent 70%),
    var(--bg0);
  animation: fog 40s ease-in-out infinite alternate;
}
body::after {
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8, transparent 60%),
    radial-gradient(1px 1px at 72% 34%, #fff6, transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 72%, #c4b5fd99, transparent 60%),
    radial-gradient(1px 1px at 88% 82%, #fff7, transparent 60%),
    radial-gradient(1px 1px at 52% 46%, #67e8f977, transparent 60%),
    radial-gradient(1.5px 1.5px at 22% 88%, #fff5, transparent 60%),
    radial-gradient(1px 1px at 64% 8%, #fff6, transparent 60%),
    radial-gradient(1px 1px at 94% 52%, #c4b5fd88, transparent 60%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 300px 300px, 560px 560px, 340px 340px, 480px 480px;
  animation: twinkle 7s ease-in-out infinite alternate;
  opacity: .8;
}
@keyframes fog {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -2%) scale(1.06); }
  100% { transform: translate(-3%, 2%) scale(1.03); }
}
@keyframes twinkle { 0% { opacity: .35; } 100% { opacity: .9; } }

.hidden { display: none !important; }
.hidden-svg { position: absolute; width: 0; height: 0; overflow: hidden; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; }
.grow { flex: 1; min-width: 0; }
.small-text { font-size: 13px; }
mark { background: var(--mark); color: #fff; border-radius: 3px; padding: 0 2px; }

/* ---------- temel kontroller ---------- */
button, input, textarea { font: inherit; font-size: 16px; } /* 16px: iOS'ta otomatik yakınlaştırmayı önler */
button {
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: var(--accent-text);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 4px 18px rgba(139, 92, 246, .3);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
}
button:hover { box-shadow: 0 4px 26px rgba(139, 92, 246, .5); }
button:active { transform: scale(.97); }
button:disabled { opacity: .45; cursor: default; box-shadow: none; }
button.ghost {
  background: rgba(255, 255, 255, .03); color: var(--text);
  border: 1px solid var(--line); box-shadow: none;
}
button.ghost:hover { border-color: var(--line-strong); background: var(--glass-hover); }
button.danger { background: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: 0 4px 18px rgba(244, 63, 94, .3); color: #fff; }
button.ok { background: linear-gradient(135deg, #10b981, #0e7490); box-shadow: 0 4px 18px rgba(16, 185, 129, .35); color: #fff; }
button.small { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
input, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 6, 16, .55);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #6b648a; }
input:focus, textarea:focus { border-color: rgba(139, 92, 246, .7); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18), var(--glow); }

.banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: linear-gradient(90deg, #7c2d12ee, #9a3412ee); color: #fff;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  text-align: center; font-size: 14px; backdrop-filter: blur(8px);
}
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 80; max-width: calc(100vw - 32px);
  background: var(--glass-strong); color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 11px 18px; border-radius: 14px; font-size: 14px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5), var(--glow);
  animation: rise .25s ease;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- amblem (göz) ---------- */
.sigil { width: 112px; height: 112px; margin: 0 auto; display: block; overflow: visible; }
.sigil .ring { fill: none; stroke: var(--accent-soft); stroke-width: 1; transform-origin: 60px 60px; }
.sigil .r1 { stroke-dasharray: 2 6; opacity: .7; animation: spin 40s linear infinite; }
.sigil .r2 { stroke-dasharray: 60 14 4 14; opacity: .5; animation: spin 26s linear infinite reverse; }
.sigil .r3 { stroke: var(--accent2); stroke-dasharray: 1 10; opacity: .5; animation: spin 60s linear infinite; }
.sigil .eye { fill: rgba(139, 92, 246, .08); stroke: #c4b5fd; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(167, 139, 250, .8)); }
.sigil .iris { fill: url(#irisGrad); filter: drop-shadow(0 0 10px rgba(34, 211, 238, .8)); animation: pulse-iris 4s ease-in-out infinite; transform-origin: 60px 60px; }
.sigil .pupil { fill: #05040a; }
.sigil .glint { fill: #fff; opacity: .85; }
.sigil.small { width: 76px; height: 76px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-iris { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------- giriş / kurulum ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; overflow-y: auto; }
.card {
  width: 100%; max-width: 390px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 26px 26px;
  display: flex; flex-direction: column; gap: 13px;
  text-align: center;
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: appear .8s ease;
}
@keyframes appear { from { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(4px); } }
.card h1 {
  margin: 8px 0 0; font-family: var(--font-display); font-weight: 300;
  font-size: 26px; letter-spacing: .42em; text-transform: uppercase; padding-left: .42em;
  background: linear-gradient(90deg, #c4b5fd, #fff, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card .tagline { font-size: 13px; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; font-style: italic; }
.card p { margin: 0 0 4px; font-size: 14px; }
.card button[type=submit] { margin-top: 6px; padding: 13px; letter-spacing: .08em; }
.err { color: #fb7185; font-size: 14px; min-height: 1em; margin: 0; }

/* ---------- ana düzen ---------- */
.app {
  height: 100dvh;
  display: flex;
  max-width: 1320px; margin: 0 auto;
}
@media (min-width: 1340px) {
  .app { height: calc(100dvh - 40px); margin-top: 20px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
}
.sidebar {
  width: 370px; flex: none;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  min-height: 0;
}
.pane { flex: 1; min-width: 0; display: flex; flex-direction: column; background: rgba(6, 5, 12, .35); }
.no-chat { margin: auto; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.no-chat .whisper { font-family: var(--font-display); font-weight: 300; letter-spacing: .3em; text-transform: uppercase; font-size: 13px; color: var(--muted); padding-left: .3em; }

@media (max-width: 760px) {
  .sidebar { width: 100%; border-right: 0; }
  .pane { display: none; }
  .app.chat-open .sidebar { display: none; }
  .app.chat-open .pane { display: flex; }
}
@media (min-width: 761px) {
  .back { display: none !important; }
}

.side-head {
  display: flex; align-items: center; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}
.side-head .avatar { width: 38px; height: 38px; font-size: 15px; }
.side-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; letter-spacing: .02em; }
.brand {
  font-family: var(--font-display); font-weight: 300; font-size: 11px; letter-spacing: .38em;
  text-transform: uppercase; color: var(--accent-soft); display: block; margin-bottom: 1px;
}
.veil-btn { width: 38px; height: 38px; }
.veil-btn.on { color: var(--accent2); background: rgba(34, 211, 238, .1); box-shadow: 0 0 16px rgba(34, 211, 238, .3); }

.search-box { padding: 12px 14px 8px; }
.search-box input { padding: 10px 16px; border-radius: 999px; background: rgba(8, 6, 16, .6); }

.chat-list { list-style: none; margin: 0; padding: 4px 8px env(safe-area-inset-bottom); overflow-y: auto; flex: 1; }
.chat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px; cursor: pointer; border-radius: 14px;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.chat-item + .chat-item { margin-top: 2px; }
.chat-item:hover { background: var(--glass-hover); }
.chat-item.active { background: rgba(139, 92, 246, .14); border-color: var(--line-strong); box-shadow: inset 3px 0 0 var(--accent); }
.chat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-top, .chat-bottom { display: flex; align-items: center; gap: 8px; }
.chat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chat-time { font-size: 12px; color: var(--muted); flex: none; }
.chat-time.unread { color: var(--accent2); font-weight: 700; }
.chat-preview { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-call { flex: none; filter: drop-shadow(0 0 6px var(--ok)); }
.unread-badge {
  flex: none; min-width: 21px; height: 21px; padding: 0 6px;
  border-radius: 999px; background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #05040a;
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 14px rgba(34, 211, 238, .55);
}
.search-note { padding: 18px; text-align: center; font-size: 14px; }

/* ---------- avatar ---------- */
.avatar {
  position: relative; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 18px;
  background: var(--accent);
  user-select: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 3px rgba(5, 4, 10, .9), 0 0 0 4px var(--line-strong);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.avatar.big { width: 84px; height: 84px; font-size: 34px; }
.presence {
  position: absolute; right: -1px; bottom: -1px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--online); border: 2px solid var(--bg1);
  box-shadow: 0 0 10px var(--online);
}

/* ---------- sohbet ---------- */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat.dragging { outline: 2px dashed var(--accent2); outline-offset: -10px; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(9px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 9px max(10px, env(safe-area-inset-left));
  background: var(--glass);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
.topbar .avatar { width: 42px; height: 42px; }
.topbar .title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; letter-spacing: .02em; }
.topbar .sub { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sub.online { color: var(--accent2); }
.icon-btn {
  flex: none; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border-radius: 50%;
  background: transparent; color: var(--muted); box-shadow: none;
}
.icon-btn:hover { background: var(--glass-hover); color: var(--text); box-shadow: none; }
.icon-btn.send {
  background: linear-gradient(135deg, var(--accent), #6366f1); color: #fff;
  box-shadow: 0 0 18px rgba(139, 92, 246, .5);
}
.topbar .icon-btn { color: var(--accent-soft); }
.topbar .icon-btn:hover { color: var(--accent2); }

.call-banner {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 9px 16px; font-size: 14px;
  background: linear-gradient(90deg, rgba(16, 185, 129, .16), rgba(34, 211, 238, .08));
  border-bottom: 1px solid rgba(16, 185, 129, .35);
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px max(14px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, .3) transparent;
}
.empty { text-align: center; margin: auto; padding: 0 24px; font-style: italic; letter-spacing: .03em; line-height: 1.6; }
.day-sep { display: flex; justify-content: center; margin: 14px 0 8px; }
.day-sep span {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); padding: 4px 14px; border-radius: 999px;
  background: rgba(12, 10, 23, .7); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.msg { display: flex; margin-top: 5px; animation: msg-in .35s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
.msg.grouped { margin-top: 1px; }
.msg.mine { justify-content: flex-end; }
.msg.flash .bubble { animation: flash 2.2s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 2px var(--accent2), 0 0 30px rgba(34, 211, 238, .6); } 100% { box-shadow: none; } }
.bubble {
  max-width: min(78%, 560px);
  background: var(--theirs);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 5px;
  padding: 8px 12px 6px;
  overflow-wrap: anywhere;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
  transition: filter .35s ease;
}
.msg.grouped .bubble { border-radius: 18px; }
.msg.mine .bubble {
  background: linear-gradient(135deg, var(--mine-a), var(--mine-b));
  color: #fff; border-color: rgba(196, 181, 253, .25);
  border-radius: 18px 18px 5px 18px;
  box-shadow: 0 6px 24px rgba(109, 40, 217, .35);
}
.msg.mine.grouped .bubble { border-radius: 18px; }
.msg.mine .bubble a { color: #e0e7ff; }
.bubble a { color: var(--accent2); }
.author { font-size: 13px; font-weight: 700; margin-bottom: 2px; letter-spacing: .02em; }
.text { white-space: pre-wrap; line-height: 1.45; }
.time { font-size: 11px; opacity: .6; text-align: right; margin-top: 3px; white-space: nowrap; }
.tick { letter-spacing: -3px; margin-right: 3px; }
.tick.read { color: var(--read); opacity: 1; font-weight: 700; text-shadow: 0 0 8px var(--read); }

.file { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.preview { display: block; max-width: 100%; max-height: 320px; border-radius: 12px; background: #0006; }
.file audio { width: 250px; max-width: 100%; height: 40px; }
.voice { display: flex; align-items: center; gap: 8px; }
.voice-icon {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 16px;
  background: rgba(34, 211, 238, .12); box-shadow: 0 0 12px rgba(34, 211, 238, .35);
}
.file-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 12px;
  background: rgba(0, 0, 0, .25); color: inherit; text-decoration: none;
  border: 1px solid var(--line);
}
.msg.mine .file-card { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); }
.file-icon { font-size: 18px; }
.file-info { display: flex; flex-direction: column; min-width: 0; }
.file-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.file-size { font-size: 12px; opacity: .65; }

.upload-status {
  padding: 7px 16px; font-size: 13px;
  background: var(--glass); border-top: 1px solid var(--line);
  color: var(--accent2);
}
.composer {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 9px max(10px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: var(--glass);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
}
.composer textarea { resize: none; max-height: 140px; line-height: 1.4; border-radius: 22px; padding: 11px 16px; }
.recorder { align-items: center; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 12px var(--danger); animation: blink 1s infinite; flex: none; }
@keyframes blink { 50% { opacity: .2; } }
#rec-cancel { color: var(--danger); }

/* ---------- peçe modu: mesajlar dokununca görünür ---------- */
body.veil .bubble .text,
body.veil .bubble .file,
body.veil .chat-preview { filter: blur(7px); transition: filter .35s ease; }
body.veil .msg.revealed .bubble .text,
body.veil .msg.revealed .bubble .file { filter: none; }
@media (hover: hover) {
  body.veil .msg:hover .bubble .text,
  body.veil .msg:hover .bubble .file,
  body.veil .chat-item:hover .chat-preview { filter: none; }
}

/* ---------- aramalar ---------- */
.call-bar {
  position: fixed; top: env(safe-area-inset-top); left: 50%; transform: translateX(-50%);
  z-index: 55; margin-top: 10px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, .9), rgba(14, 116, 144, .9)); color: #fff;
  padding: 6px 8px 6px 16px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 6px 24px rgba(16, 185, 129, .45);
  backdrop-filter: blur(10px);
}
.call-bar button { background: rgba(255, 255, 255, .2); box-shadow: none; }

.incoming, .call-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(50% 40% at 50% 35%, rgba(109, 40, 217, .45), transparent 70%),
    radial-gradient(40% 30% at 50% 90%, rgba(34, 211, 238, .15), transparent 70%),
    rgba(5, 4, 10, .94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: #fff; text-align: center;
  animation: fade .3s ease;
}
@keyframes fade { from { opacity: 0; } }
.incoming .muted, .call-overlay .muted { color: #a5a0c4; letter-spacing: .05em; }
.incoming strong, .call-title { font-family: var(--font-display); font-size: 28px; font-weight: 400; letter-spacing: .06em; }
.incoming .avatar.big { animation: ripple 1.8s ease-out infinite; }
@keyframes ripple {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .7), 0 0 0 0 rgba(34, 211, 238, .4); }
  100% { box-shadow: 0 0 0 26px rgba(139, 92, 246, 0), 0 0 0 52px rgba(34, 211, 238, 0); }
}
.incoming-actions, .call-actions { display: flex; gap: 56px; margin-top: 40px; }
.round {
  width: 70px; height: 70px; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff;
  border: 1px solid rgba(255, 255, 255, .15); box-shadow: none;
}
.round.active { background: #fff; color: #1e1b4b; }
.round.ok { animation: pulse 1.3s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.minimize { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 14px; }
.call-people {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 26px;
}
.call-people li { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100px; }
.call-people .avatar.big { box-shadow: 0 0 0 3px rgba(5, 4, 10, .9), 0 0 0 4px var(--accent), 0 0 30px rgba(139, 92, 246, .5); }
.call-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.call-state { font-size: 12px; }
.call-state.bad { color: #fda4af; }

/* ---------- admin paneli ---------- */
dialog {
  width: min(500px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line-strong); border-radius: 22px;
  background: var(--glass-strong); color: var(--text);
  padding: 20px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), var(--glow);
}
dialog::backdrop { background: rgba(3, 2, 8, .75); backdrop-filter: blur(4px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; }
.dlg-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .06em; }
dialog h3 { font-size: 12px; margin: 20px 0 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); font-weight: 600; }
.user-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 7px; }
.user-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(8, 6, 16, .4);
}
.u-name { display: flex; align-items: center; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.u-actions { display: flex; gap: 6px; flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3b3556; display: inline-block; flex: none; }
.dot.on { background: var(--online); box-shadow: 0 0 8px var(--online); }
.badge { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: rgba(139, 92, 246, .25); color: #ddd6fe; border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; }
.add-user { display: flex; flex-direction: column; gap: 8px; }
.add-user .row { display: flex; gap: 8px; }
.add-user .row button { flex: none; }
.info {
  margin-top: 14px; padding: 13px; border-radius: 14px;
  background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .3);
}
.info p { margin: 6px 0; font-size: 14px; }
.info pre { margin: 0 0 9px; white-space: pre-wrap; font-size: 14px; color: #a5f3fc; }
.addresses ul { padding-left: 18px; margin: 4px 0; font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- ayarlar ---------- */
select {
  font: inherit; font-size: 15px; color: var(--text);
  background: rgba(8, 6, 16, .7); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; outline: none; max-width: 60%;
}
select:focus { border-color: rgba(139, 92, 246, .7); }
select option { background: #120e22; }
input[type=range] { accent-color: var(--accent); padding: 0; border: 0; background: transparent; box-shadow: none; max-width: 55%; }
input[type=checkbox] {
  appearance: none; -webkit-appearance: none; width: 46px; height: 26px; flex: none;
  border-radius: 999px; background: #2a2440; border: 1px solid var(--line); padding: 0;
  position: relative; cursor: pointer; transition: background .2s;
}
input[type=checkbox]::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #8a83a6; transition: transform .2s, background .2s;
}
input[type=checkbox]:checked { background: linear-gradient(135deg, var(--accent), #6366f1); box-shadow: 0 0 12px rgba(139, 92, 246, .5); }
input[type=checkbox]:checked::after { transform: translateX(20px); background: #fff; }
input[type=checkbox]:focus { box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.setting {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.setting-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(8, 6, 16, .45); border: 1px solid var(--line); }
.setting-box .row { display: flex; gap: 8px; flex-wrap: wrap; }
.push-status { margin: 0; font-size: 14px; line-height: 1.5; }
.push-status.on { color: var(--accent2); }
.note { font-size: 12px; margin: 8px 2px 0; line-height: 1.5; }
button.full { width: 100%; }

.install-hint {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 10px 12px 0; padding: 11px 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(34, 211, 238, .08));
  border: 1px solid var(--line-strong); font-size: 14px;
}
.install-hint p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
.install-hint .share-icon { display: inline-block; padding: 0 4px; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 12px; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
