:root {
  --bg: #fdf6ec;
  --bg-soft: #fbeede;
  --card: #ffffff;
  --primary: #e8893a;
  --primary-dark: #d2762a;
  --accent: #f6c177;
  --text: #4a3b2f;
  --text-soft: #8a7967;
  --border: #f0e0cd;
  --shadow: 0 6px 24px rgba(180, 130, 70, 0.12);
  --radius: 16px;
}

/* ---------- KARANLIK TEMA ---------- */
body.dark {
  --bg: #1c1714;
  --bg-soft: #241d18;
  --card: #2b2219;
  --primary: #ef9447;
  --primary-dark: #e08436;
  --accent: #c98a3c;
  --text: #f1e7db;
  --text-soft: #b3a08c;
  --border: #3c3026;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Quicksand', system-ui, sans-serif;
  background: linear-gradient(160deg, #fdf6ec 0%, #fbeede 100%);
  color: var(--text);
  min-height: 100vh;
  transition: background .25s, color .25s;
}
body.dark { background: linear-gradient(160deg, #1c1714 0%, #241d18 100%); }
body.dark input[type="text"], body.dark input[type="password"] { background: #221a13; color: var(--text); }
body.dark .msg-quote { background: rgba(255,255,255,.06); }
body.dark .msg.me .msg-quote { background: rgba(0,0,0,.18); }
body.dark .mini-btn, body.dark .load-more { background: var(--card); color: var(--text); }
body.dark .tab.active { color: #1c1714; }
body.dark .attach-btn { background: #221a13; }
body.dark .msg-file { background: rgba(255,255,255,.08); color: var(--accent); }
body.dark .reply-bar { background: var(--bg-soft); }
body.dark .msg-reply { background: rgba(255,255,255,.12); color: var(--text); }
/* Karanlık tema: okundu = parlak mavi, iletildi (tek tik) = açık krem (silik değil) */
body.dark .msg-receipt .tick.read { color: #5cc8ff; }
body.dark .msg-receipt .seen-names { color: #7fd4ff; font-weight: 600; }
body.dark .msg-receipt .tick { color: rgba(255, 248, 238, 0.85); }
body.dark .msg.me .msg-time { color: rgba(255, 248, 238, 0.7); }
body.dark .msg.them .msg-time { color: var(--text-soft); }

.theme-toggle {
  font-size: 18px; line-height: 1; background: transparent; border: none;
  cursor: pointer; padding: 6px 8px; border-radius: 10px; transition: background .15s;
}
.theme-toggle:hover { background: var(--bg-soft); }

.hidden { display: none !important; }

/* ---------- GİRİŞ ---------- */
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
}
.login-card {
  background: var(--card);
  padding: 40px 34px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.login-emoji { font-size: 56px; }
.login-card h1 { font-size: 30px; margin: 6px 0 4px; color: var(--primary-dark); }
.login-sub { color: var(--text-soft); margin-bottom: 24px; font-size: 14px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.login-foot { color: var(--text-soft); font-size: 13px; max-width: 360px; text-align: center; }

input[type="text"], input[type="password"] {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fffdf9;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
input:focus { border-color: var(--accent); }

.btn-primary {
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .12s, filter .12s;
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  font-family: inherit;
  font-weight: 600;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.btn-ghost:hover { background: var(--bg-soft); }

.form-error { color: #c0392b; font-size: 13px; min-height: 18px; margin-top: 4px; }

/* ---------- ÜST BAR ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--card);
  box-shadow: 0 2px 12px rgba(180,130,70,.08);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 20px; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; }
.brand-logo { height: 38px; width: 38px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 2px 8px rgba(180,130,70,.25); }
.tabs { display: flex; gap: 6px; margin: 0 auto; }
.tab {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  border: none;
  color: var(--text-soft);
  padding: 9px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
}
.tab:hover { background: var(--bg-soft); }
.tab.active { background: var(--accent); color: var(--text); }
.user-box { display: flex; align-items: center; gap: 8px; }
.whoami { font-weight: 600; font-size: 14px; color: var(--text); }

/* ---------- AVATAR ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; background: var(--accent); color: #fff; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.avatar-letter { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.avatar-xs { width: 26px; height: 26px; font-size: 12px; }
.avatar-sm { width: 30px; height: 30px; font-size: 13px; }
.avatar-lg { width: 96px; height: 96px; font-size: 38px; }
img.avatar { object-fit: cover; }
.ava-holder, .ava-holder-lg { display: inline-flex; }

.profile-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: none; cursor: pointer; padding: 2px 4px; border-radius: 10px; }
.profile-btn:hover { background: var(--bg-soft); }

/* ---------- SESLİ SOHBET ---------- */
.voice-bar { margin-bottom: 10px; }
.voice-btn {
  font-family: inherit; font-weight: 700; font-size: 14px;
  width: 100%; background: var(--card); color: var(--primary-dark);
  border: 2px solid var(--border); padding: 11px 14px; border-radius: var(--radius);
  cursor: pointer; box-shadow: var(--shadow); transition: background .15s;
}
.voice-btn:hover { background: var(--bg-soft); }
.voice-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.voice-live { font-size: 13px; font-weight: 700; color: #c0392b; display: flex; align-items: center; gap: 6px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #c0392b; animation: recpulse 1s infinite; }
.voice-parts { display: flex; gap: 12px; flex: 1; flex-wrap: wrap; }
.voice-person { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); background: var(--bg-soft); padding: 4px 10px 4px 4px; border-radius: 999px; }
.voice-actions { display: flex; gap: 8px; margin-left: auto; }
.voice-mini { font-family: inherit; font-weight: 600; font-size: 14px; border: 2px solid var(--border); background: var(--card); color: var(--text); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.voice-mini.muted { background: #c0392b; color: #fff; border-color: #c0392b; }
.voice-mini.leave { color: #c0392b; border-color: #f3c9c2; }
.voice-mini.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.voice-mini:hover { filter: brightness(.97); }

/* Ekran paylaşımı görüntüleri */
.screen-area {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px; margin-bottom: 10px;
  max-height: 32vh; overflow-y: auto; flex-shrink: 0;
}
.screen-item { background: #000; border-radius: 12px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.screen-item video { width: 100%; display: block; max-height: 28vh; object-fit: contain; background: #000; cursor: zoom-in; }
.screen-label { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; }

/* ---------- ÇEVRİMİÇİ ÇUBUĞU ---------- */
.online-bar { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; margin-bottom: 10px; }
.online-head { font-size: 13px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.online-people { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 2px; }
.online-person { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 54px; }
.online-ava { position: relative; }
.online-ava .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #36c26b; border: 2px solid var(--card); }
.online-ava .dot.off { background: #bbb; }
.online-person { min-width: 60px; }
.online-name { font-size: 11px; font-weight: 600; color: var(--text); text-align: center; max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-seen { font-size: 9px; color: var(--text-soft); text-align: center; max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-seen.on { color: #36c26b; font-weight: 600; }

/* ---------- MESAJ AVATAR + GÖRÜLDÜ ---------- */
.msg-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.msg-receipt { margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; }
.msg-receipt .tick { font-size: 13px; font-weight: 700; color: var(--text-soft); letter-spacing: -2px; }
.msg-receipt .tick.read { color: #34b7f1; }
.msg-receipt .seen-names { font-size: 10px; color: #34b7f1; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- PROFİL MODAL ---------- */
.profile-pic-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 14px; }
.profile-name { text-align: center; font-weight: 700; font-size: 18px; color: var(--text); margin-bottom: 8px; }

/* ---------- İÇERİK ---------- */
.tab-content { display: none; max-width: 980px; margin: 0 auto; padding: 22px 18px 60px; }
.tab-content.active { display: block; }

/* ---------- ANILAR ---------- */
.upload-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--card);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.file-label { cursor: pointer; white-space: nowrap; }
.upload-bar input[type="text"] { flex: 1; min-width: 200px; }
.upload-status { font-size: 13px; color: var(--text-soft); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.photo-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s;
  display: flex;
  flex-direction: column;
}
.photo-card:hover { transform: translateY(-3px); }
.photo-imgwrap { position: relative; }
.photo-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; cursor: zoom-in; background: var(--bg-soft); display: block; }
.photo-meta { padding: 12px 14px; }
.photo-caption { font-size: 14px; color: var(--text); word-break: break-word; }
.photo-del {
  position: absolute; top: 8px; right: 8px;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, background .15s;
}
.photo-card:hover .photo-del { opacity: 1; }
.photo-del:hover { background: #c0392b; }
@media (max-width: 480px) { .photo-del { opacity: 1; } }

.empty-state { text-align: center; color: var(--text-soft); padding: 50px 20px; font-size: 16px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.load-more {
  font-family: inherit; font-weight: 600; font-size: 15px;
  background: var(--bg-soft); color: var(--primary-dark);
  border: 2px solid var(--border); padding: 12px 30px; border-radius: 12px;
  cursor: pointer; transition: background .15s, transform .12s;
}
.load-more:hover { background: var(--card); transform: translateY(-1px); }
.load-more:active { transform: translateY(0); }

/* ---------- SOHBET ---------- */
#tab-sohbet { display: none; }
#tab-sohbet { padding-top: 12px; padding-bottom: 6px; }
#tab-sohbet.active { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h, 70px)); height: calc(100dvh - var(--topbar-h, 70px)); }
#tab-sohbet .chat-input { padding-bottom: 4px; }
#chatFileStatus:empty { display: none; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 4px;
}
.msg { max-width: 72%; padding: 9px 14px; border-radius: 16px; box-shadow: var(--shadow); }
.msg .msg-author { font-size: 11px; font-weight: 700; color: var(--primary-dark); margin-bottom: 2px; }
.msg .msg-text { font-size: 15px; word-break: break-word; }
.msg .msg-time { font-size: 10px; color: var(--text-soft); text-align: right; margin-top: 3px; }
.msg.them { align-self: flex-start; background: var(--card); }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--accent), #f3b75e); }
.msg.me .msg-author { color: var(--primary-dark); }
/* Yanıt önizleme çubuğu */
.reply-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-left: 4px solid var(--primary);
  border-radius: 10px; padding: 8px 12px; margin: 0 4px 6px;
}
.reply-bar-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.reply-bar-author { font-size: 12px; font-weight: 700; color: var(--primary-dark); }
.reply-bar-text { font-size: 13px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-cancel { border: none; background: transparent; font-size: 16px; cursor: pointer; color: var(--text-soft); }

/* Mesaj içindeki alıntı bloğu */
.msg { position: relative; }
.msg-quote {
  border-left: 3px solid var(--primary); background: rgba(0,0,0,.05);
  border-radius: 8px; padding: 5px 9px; margin-bottom: 5px; display: flex; flex-direction: column;
}
.msg.me .msg-quote { background: rgba(255,255,255,.4); }
.msg-quote-author { font-size: 11px; font-weight: 700; color: var(--primary-dark); }
.msg-quote-text { font-size: 12px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }

/* Yanıtla butonu (mesaja gelince çıkar) */
.msg-reply {
  position: absolute; top: 5px; right: 5px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: rgba(255,255,255,.55); color: var(--text-soft);
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
  backdrop-filter: blur(2px);
  opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s, background .15s, color .15s;
}
.msg-reply:hover { background: rgba(255,255,255,.85); color: var(--primary); }
.msg:hover .msg-reply { opacity: 1; transform: scale(1); }
@media (max-width: 480px) { .msg-reply { opacity: .7; transform: scale(1); } }

.chat-input { display: flex; gap: 10px; padding: 12px 4px; align-items: center; }
.chat-input input[type="text"] { flex: 1; }
.attach-btn {
  font-size: 20px; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid var(--border);
  border-radius: 12px; background: #fffdf9; transition: background .15s;
}
.attach-btn:hover { background: var(--bg-soft); }
.msg-img { max-width: 220px; border-radius: 12px; margin-bottom: 4px; cursor: zoom-in; display: block; }
.msg-file {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.55); padding: 8px 12px; border-radius: 10px;
  text-decoration: none; color: var(--primary-dark); font-weight: 600;
  font-size: 14px; margin-bottom: 4px; word-break: break-all;
}
.msg-file:hover { text-decoration: underline; }
/* Özel sesli mesaj oynatıcısı */
.audio-player {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.55); padding: 7px 12px 7px 8px;
  border-radius: 999px; margin-bottom: 4px; width: 230px; max-width: 100%;
}
.msg.me .audio-player { background: rgba(255,255,255,.32); }
.audio-player audio { display: none; }
.ap-play {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--primary); color: #fff; cursor: pointer; flex-shrink: 0;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
  transition: filter .12s, transform .1s;
}
.ap-play:hover { filter: brightness(1.06); }
.ap-play:active { transform: scale(.94); }
.ap-bar { flex: 1; height: 6px; background: rgba(0,0,0,.16); border-radius: 4px; cursor: pointer; position: relative; }
.ap-fill { height: 100%; width: 0; background: var(--primary); border-radius: 4px; transition: width .1s linear; }
.ap-time { font-size: 11px; font-weight: 600; color: var(--text-soft); min-width: 32px; text-align: right; }
body.dark .audio-player { background: rgba(255,255,255,.1); }
body.dark .msg.me .audio-player { background: rgba(0,0,0,.2); }
body.dark .ap-bar { background: rgba(255,255,255,.2); }
.attach-btn.recording {
  background: #c0392b; color: #fff; border-color: #c0392b;
  animation: recpulse 1s infinite;
}
@keyframes recpulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- ADMIN ---------- */
.admin-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--card); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card h2 { font-size: 18px; margin-bottom: 14px; color: var(--primary-dark); }
.add-user-form { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 2px solid var(--border); border-radius: 12px;
}
.user-row .uname { font-weight: 600; }
.uname-sub { font-weight: 500; font-size: 12px; color: var(--text-soft); }
.badge { font-size: 11px; background: var(--accent); color: var(--text); padding: 2px 8px; border-radius: 8px; margin-left: 6px; }
.user-actions { display: flex; gap: 6px; }
.mini-btn { font-family: inherit; font-size: 12px; font-weight: 600; border: 2px solid var(--border); background: #fff; border-radius: 9px; padding: 5px 9px; cursor: pointer; }
.mini-btn.danger { color: #c0392b; border-color: #f3c9c2; }
.mini-btn:hover { background: var(--bg-soft); }

/* ---------- MODAL & LIGHTBOX ---------- */
.modal { position: fixed; inset: 0; background: rgba(74,59,47,.45); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal-card { background: var(--card); padding: 26px; border-radius: 20px; width: 90%; max-width: 340px; box-shadow: var(--shadow); }
.modal-card h3 { margin-bottom: 14px; color: var(--primary-dark); }
.modal-card input { width: 100%; margin-bottom: 12px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

.lightbox { position: fixed; inset: 0; background: rgba(40,30,20,.85); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; padding: 30px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* ---------- TABLET ---------- */
@media (max-width: 720px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .topbar { gap: 10px; padding: 10px 14px; }
  .tabs { order: 3; width: 100%; justify-content: center; margin: 0; }
  .brand { font-size: 18px; }
  .user-box { margin-left: auto; }
  .tab-content { padding: 16px 12px 50px; }
}

/* ---------- TELEFON ---------- */
@media (max-width: 480px) {
  /* iOS'ta input'a tıklayınca yakınlaşmayı önlemek için 16px */
  input[type="text"], input[type="password"] { font-size: 16px; }

  /* Üst bar: marka + tema solda, profil/çıkış sağda, sekmeler altta tam genişlik */
  .topbar { padding: 8px 10px; row-gap: 8px; column-gap: 6px; }
  .brand { font-size: 16px; order: 1; }
  .theme-toggle { order: 2; padding: 4px 6px; font-size: 17px; }
  .user-box { order: 3; margin-left: auto; gap: 5px; }
  .tabs {
    order: 4; width: 100%; margin: 0; justify-content: center;
    flex-wrap: nowrap; overflow-x: auto; gap: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 8px 12px; font-size: 13px; white-space: nowrap; }

  /* Profil: telefonda sadece avatar (isim gizli, yer kazanmak için) */
  .profile-btn { gap: 0; padding: 2px; }
  .profile-btn .whoami { display: none; }
  .btn-ghost { padding: 7px 8px; font-size: 13px; }
  #logoutBtn { font-size: 12px; padding: 7px 8px; }

  /* Çevrimiçi çubuğu: kompakt */
  .online-bar { padding: 8px 10px; margin-bottom: 8px; }
  .online-head { font-size: 12px; margin-bottom: 6px; }
  .online-people { gap: 10px; }
  .online-person { min-width: 50px; }
  .online-name { font-size: 10px; max-width: 56px; }
  .online-seen { font-size: 9px; max-width: 56px; }

  /* Anılar: telefonda 2 sütun */
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo-meta { padding: 9px 10px; }
  .photo-caption { font-size: 13px; }

  /* Yükleme kutusu alt alta */
  .upload-bar { padding: 12px; gap: 8px; }
  .upload-bar .file-label, .upload-bar input[type="text"] { width: 100%; min-width: 0; }

  /* Sohbet */
  .msg { max-width: 86%; }
  .msg-img { max-width: 180px; }
  .msg-receipt .seen-names { max-width: 90px; }
  .chat-input { gap: 6px; padding: 10px 2px; }
  .attach-btn { width: 40px; height: 40px; font-size: 18px; flex-shrink: 0; }
  .chat-input .btn-primary { padding: 11px 13px; }

  /* Admin formları rahat */
  .card { padding: 16px; }
  .user-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .user-actions { width: 100%; }
  .mini-btn { flex: 1; }

  /* Modal taşmasın */
  .avatar-lg { width: 84px; height: 84px; font-size: 34px; }

  /* Sesli sohbet + ekran paylaşımı telefonda */
  .voice-panel { padding: 10px; gap: 8px; }
  .voice-actions { width: 100%; margin-left: 0; }
  .voice-mini { flex: 1; padding: 9px 8px; font-size: 13px; }
  .screen-area { grid-template-columns: 1fr; gap: 8px; max-height: 30vh; }
  .screen-item video { max-height: 26vh; }
}
