/* ===========================================================================
   İçelim mi? Sohbet — amber & teal içecek teması
   Marka: İçelim mi? (amber #f5a623 / teal #0d9488)
   =========================================================================== */
:root {
  --rl-purple: #0d9488;        /* teal — birincil vurgu */
  --rl-purple-deep: #0a1f22;   /* koyu teal — giriş arka planı */
  --rl-purple-700: #115e59;
  --rl-yellow: #f5a623;        /* amber — parlak CTA */
  --rl-yellow-dim: #d98a12;

  --bg: #0e1719;
  --bg-2: #132023;
  --panel: #111e21;
  --panel-2: #1a2b2f;
  --panel-3: #22383d;
  --composer-bg: #15282b;
  --bubble-out: #115e59;
  --bubble-in: #172a2e;
  --sys-bg: rgba(45, 212, 191, 0.14);

  --text: #eafbf7;
  --text-dim: #9fc4bf;
  --text-dimmer: #6f958f;
  --border: #244247;
  --border-soft: #1d3337;
  --accent: var(--rl-yellow);
  --danger: #f1607a;
  --online: #34d399;

  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .5);
  --chat-bg:
    radial-gradient(circle at 18% 12%, rgba(13, 148, 136, .16), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(245, 166, 35, .07), transparent 42%),
    #0f1b1d;
  font-size: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
a { color: var(--rl-yellow); }
.hidden { display: none !important; }
.dim { color: var(--text-dim); }
.small { font-size: 12px; }
::selection { background: rgba(245, 166, 35, .3); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #234a44; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- Giriş / kayıt ---------------- */
.auth-wrap {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(20px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 20% 0%, rgba(13, 148, 136, .4), transparent 55%),
    radial-gradient(circle at 85% 100%, rgba(245, 166, 35, .12), transparent 50%),
    var(--rl-purple-deep);
}
.auth-card {
  width: 100%; max-width: 410px;
  background: linear-gradient(180deg, rgba(26, 43, 47, .92), rgba(17, 30, 33, .96));
  border: 1px solid var(--border);
  border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.auth-logo-img { width: 76px; height: 76px; border-radius: 20px; display: block; margin: 0 auto 14px; box-shadow: 0 8px 24px rgba(13, 148, 136, .5); }
.auth-card h1 { text-align: center; font-size: 23px; margin: 0 0 4px; letter-spacing: -.3px; }
.auth-card .sub { text-align: center; color: var(--text-dim); font-size: 13.5px; margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border);
  background: #0c1618; color: var(--text); font-size: 16px; outline: none; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--rl-purple); box-shadow: 0 0 0 3px rgba(109, 40, 217, .25); }
.remember-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-dim); margin: 4px 0 14px; cursor: pointer; user-select: none; }
.remember-row input { width: 17px; height: 17px; accent-color: var(--rl-yellow); flex-shrink: 0; margin: 0; }
.terms-row { align-items: flex-start; }
.terms-row span { line-height: 1.4; }
.terms-row a { color: var(--rl-yellow); }
.btn {
  width: 100%; padding: 13px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--rl-yellow), var(--rl-yellow-dim));
  color: #0a1f22; font-weight: 700; font-size: 15.5px; transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; }
.btn.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--panel-3); }
.btn.wa { background: #25d366; color: #063; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.btn.auto { width: auto; }
.btn.danger-text { color: var(--danger); }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-dim); }
.auth-switch span { cursor: pointer; }
.auth-switch b { color: var(--rl-yellow); }
.auth-foot { text-align: center; font-size: 12px; color: var(--text-dimmer); margin: 14px 0 0; line-height: 1.5; }
.error-msg { background: rgba(241, 96, 122, .14); color: var(--danger); padding: 11px 13px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; display: none; }

/* ---------------- Uygulama düzeni ---------------- */
.app {
  height: 100vh; height: var(--app-height, 100dvh);
  display: grid; grid-template-columns: 370px 1fr; overflow: hidden;
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar.hide-mobile, .chat-area.hide-mobile { display: none; }
}

.sidebar {
  background: var(--panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; min-width: 0; position: relative;
  padding-top: env(safe-area-inset-top);
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.me { display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }
.me-info { min-width: 0; }
.me-name { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-id { font-size: 11px; color: var(--rl-yellow); cursor: pointer; user-select: none; opacity: .9; }
.head-btns { display: flex; gap: 2px; flex-shrink: 0; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--panel-3);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  color: var(--rl-yellow); flex-shrink: 0; font-size: 15px; overflow: hidden;
  border: 1px solid var(--border-soft);
}
.avatar.sm { width: 40px; height: 40px; font-size: 14px; }
.avatar img, .profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-wrap { position: relative; flex-shrink: 0; }
.dot-online { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--online); border: 2.5px solid var(--panel); }

.icon-btn { background: transparent; border: none; color: var(--text-dim); font-size: 19px; width: 40px; height: 40px; border-radius: 50%; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--panel-3); color: var(--text); }

.add-menu {
  position: absolute; top: calc(58px + env(safe-area-inset-top)); right: 12px; z-index: 60;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow); min-width: 230px;
}
.add-menu-item { padding: 13px 16px; font-size: 14.5px; cursor: pointer; }
.add-menu-item:hover { background: var(--panel-3); }
.add-menu-item.danger { color: var(--danger); border-top: 1px solid var(--border-soft); }

.banner { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--panel-2); border-bottom: 1px solid var(--border); font-size: 13px; }
.banner span { flex: 1; }
.mini-btn { background: var(--rl-yellow); color: #0a1f22; border: none; border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 12.5px; }
.mini-btn.ghost { background: var(--panel-3); color: var(--text); }
.mini-btn.danger { background: rgba(241, 96, 122, .16); color: var(--danger); }
.mini-x { background: transparent; border: none; color: var(--text-dim); font-size: 14px; padding: 4px; }

.side-tabs { display: flex; padding: 0 8px; border-bottom: 1px solid var(--border); gap: 2px; }
.side-tab { flex: 1; background: transparent; border: none; color: var(--text-dim); padding: 12px 4px; font-size: 13.5px; font-weight: 600; border-bottom: 2.5px solid transparent; position: relative; }
.side-tab.active { color: var(--rl-yellow); border-color: var(--rl-yellow); }
.tab-badge { background: var(--rl-yellow); color: #0a1f22; font-size: 10.5px; font-weight: 800; border-radius: 9px; padding: 0 6px; margin-left: 2px; }

.search-box { padding: 10px 12px; }
.search-box input { width: 100%; padding: 10px 14px; border-radius: 22px; border: 1px solid var(--border-soft); background: #0c1618; color: var(--text); font-size: 15px; outline: none; }
.search-box input:focus { border-color: var(--rl-purple); }

.user-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.community-head { padding: 12px 16px 6px; font-size: 12px; color: var(--text-dimmer); font-weight: 600; }
.list-empty { padding: 36px 20px; text-align: center; color: var(--text-dimmer); font-size: 13.5px; line-height: 1.6; }
.user-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--border-soft); }
.user-item:hover, .user-item.active { background: var(--panel-2); }
.user-item.active { box-shadow: inset 3px 0 0 var(--rl-yellow); }
.user-item .info { min-width: 0; flex: 1; }
.user-item .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.user-item .row2 { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.user-item .name { font-size: 15px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-item .time { font-size: 11px; color: var(--text-dimmer); flex-shrink: 0; }
.user-item.has-unread .time { color: var(--rl-yellow); }
.user-item .last-msg { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.user-item .last-msg i { color: var(--text-dimmer); }
.user-item .muted-ic { font-size: 12px; opacity: .6; }
.badge { background: var(--rl-yellow); color: #0a1f22; font-size: 11px; font-weight: 800; border-radius: 11px; padding: 1px 7px; min-width: 20px; text-align: center; flex-shrink: 0; }
.badge.muted { background: var(--panel-3); color: var(--text-dim); }
.role-chip { display: inline-block; background: rgba(245, 166, 35, .16); color: var(--rl-yellow); font-size: 10.5px; font-weight: 700; border-radius: 8px; padding: 1px 8px; }
.role-chip.owner { background: rgba(13, 148, 136, .3); color: #7ff0dd; }

/* ---------------- Sohbet alanı ---------------- */
.chat-area { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--chat-bg); }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-dim); flex-direction: column; gap: 8px; text-align: center; padding: 24px; }
.empty-logo { width: 84px; height: 84px; border-radius: 22px; opacity: .85; margin-bottom: 6px; }
.chat-active { display: flex; flex-direction: column; height: 100%; min-height: 0; }

.chat-header {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--panel-2), var(--panel)); flex-shrink: 0;
}
.chat-header .avatar { width: 42px; height: 42px; cursor: pointer; }
.chat-header .info { flex: 1; min-width: 0; cursor: pointer; }
.chat-header .name { font-weight: 650; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-header .status { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: flex; gap: 2px; flex-shrink: 0; }
.back-btn { display: none; }
@media (max-width: 820px) { .back-btn { display: inline-flex; } }

.messages { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px clamp(10px, 5%, 70px); display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.loading { text-align: center; color: var(--text-dim); font-size: 13px; padding: 20px; }
.load-older { align-self: center; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); border-radius: 18px; padding: 7px 16px; font-size: 12.5px; margin: 6px 0 12px; }
.day-sep { text-align: center; margin: 14px 0 8px; }
.day-sep span { background: var(--panel-2); color: var(--text-dim); font-size: 11.5px; padding: 4px 13px; border-radius: 9px; }
.sys-msg { text-align: center; margin: 6px 0; }
.sys-msg span { background: var(--sys-bg); color: var(--text-dim); font-size: 11.5px; padding: 4px 12px; border-radius: 9px; display: inline-block; }

.msg-row { display: flex; }
.msg-row.out { justify-content: flex-end; }
.bubble {
  max-width: min(78%, 560px); padding: 7px 10px 5px; border-radius: 12px; font-size: 14.8px;
  line-height: 1.38; position: relative; margin: 1.5px 0; word-wrap: break-word; overflow-wrap: anywhere;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, .25);
}
.msg-row.in .bubble { background: var(--bubble-in); border-top-left-radius: 3px; }
.msg-row.out .bubble { background: var(--bubble-out); border-top-right-radius: 3px; }
.bubble .sender { font-size: 12.5px; font-weight: 650; margin-bottom: 2px; cursor: pointer; }
.bubble-body a { color: #cbb6ff; word-break: break-all; }
.msg-row.out .bubble-body a { color: #ffe9a8; }
.bubble .meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 10.5px; color: var(--text-dimmer); margin-top: 2px; }
.msg-row.out .bubble .meta { color: rgba(243, 238, 255, .55); }
.msg-more { background: transparent; border: none; color: inherit; opacity: .45; font-size: 13px; padding: 0 2px; line-height: 1; }
.msg-more:hover { opacity: 1; }
.ticks.read { color: #7dd8ff; }
.msg-row.is-deleted .bubble { opacity: .75; }
.deleted { font-style: italic; color: var(--text-dim); }
.bubble .msg-media { max-width: 100%; max-height: 340px; border-radius: 8px; display: block; margin-bottom: 3px; cursor: pointer; }
.bubble audio { max-width: 240px; margin-bottom: 2px; }
.bubble .file-chip, .bubble .location-chip { display: flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .06); padding: 9px 11px; border-radius: 9px; text-decoration: none; color: inherit; }
.bubble .location-chip small { color: var(--text-dim); }
.view-once-chip { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: 9px; background: rgba(255, 255, 255, .06); min-width: 170px; }
.view-once-chip small { opacity: .7; font-size: 11px; }
.view-once-chip.locked { cursor: pointer; border: 1px dashed var(--rl-yellow); }
.view-once-chip.viewed { color: var(--text-dim); font-style: italic; }
.view-once-badge { position: absolute; top: 6px; left: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 6px; }

.typing-indicator { font-size: 12px; color: var(--rl-yellow); padding: 1px 16px; height: 16px; flex-shrink: 0; }
.readonly-note { text-align: center; color: var(--text-dim); font-size: 13px; padding: 14px; background: var(--panel); border-top: 1px solid var(--border); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

.composer {
  display: flex; align-items: flex-end; gap: 6px; padding: 9px 10px;
  padding-bottom: calc(9px + env(safe-area-inset-bottom));
  background: var(--composer-bg); border-top: 1px solid var(--border); flex-shrink: 0;
}
.composer .icon-btn { font-size: 21px; flex-shrink: 0; margin-bottom: 1px; }
.composer textarea {
  flex: 1; min-width: 0; resize: none; max-height: 140px; padding: 11px 15px; border-radius: 22px;
  border: 1px solid var(--border-soft); background: #0c1618; color: var(--text); font-size: 16px; outline: none; line-height: 1.35;
}
.composer textarea:focus { border-color: var(--rl-purple); }
.send-btn { background: linear-gradient(135deg, var(--rl-yellow), var(--rl-yellow-dim)); color: #0a1f22; border: none; width: 44px; height: 44px; min-width: 44px; border-radius: 50%; font-size: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

/* ---------------- Modallar ---------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10, 5, 24, .72); z-index: 900; display: none; align-items: center; justify-content: center; padding: 18px; padding-top: calc(18px + env(safe-area-inset-top)); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.modal-overlay.show { display: flex; }
.modal-box { background: var(--panel-2); border: 1px solid var(--border); border-radius: 18px; padding: 22px; width: 100%; max-width: 400px; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal-box.wide { max-width: 520px; }
.modal-box.center { text-align: center; }
.modal-box.media-box { max-width: 560px; padding: 10px; background: #000; }
.modal-box h3 { margin: 0 0 8px; font-size: 18px; }
.modal-sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 14px; line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.modal-actions.col { flex-direction: column; }
.modal-actions .btn { flex: 1; }
.terms-text { font-size: 13px; color: var(--text-dim); line-height: 1.6; max-height: 56vh; overflow-y: auto; }
.terms-text b { color: var(--text); }
.terms-text p { margin: 0 0 12px; }

.profile-photo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.profile-photo-preview { width: 64px; height: 64px; border-radius: 50%; background: var(--panel-3); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--rl-yellow); flex-shrink: 0; }
.profile-photo-preview.big { width: 92px; height: 92px; font-size: 32px; margin: 0 auto 12px; }
.status-photo { max-width: 100%; border-radius: 10px; margin-top: 10px; }
.pw-details { margin: 6px 0 8px; border-top: 1px solid var(--border-soft); padding-top: 10px; }
.pw-details summary { cursor: pointer; font-size: 13.5px; color: var(--text-dim); margin-bottom: 10px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.setting-row:last-of-type { border-bottom: none; }

.switch { position: relative; width: 46px; height: 27px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--panel-3); border-radius: 20px; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--rl-purple); }
.switch input:checked + span::before { transform: translateX(19px); }

.pricing-card { background: var(--panel-3); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; text-align: left; }
.pricing-card .pname { font-weight: 700; font-size: 15px; }
.pricing-card .pprice { color: var(--rl-yellow); font-weight: 700; margin: 4px 0; }
.pricing-card .pdesc { font-size: 12.5px; color: var(--text-dim); margin-bottom: 10px; }

.gi-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.gi-settings { margin-bottom: 10px; }
.gi-search { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-soft); background: #0c1618; color: var(--text); font-size: 14px; outline: none; margin-bottom: 8px; }
.gi-members { max-height: 44vh; overflow-y: auto; }
.gi-member { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.gi-name { flex: 1; min-width: 0; font-size: 14px; cursor: pointer; }
.gi-name > div { margin-top: 2px; display: flex; gap: 4px; flex-wrap: wrap; }
.gi-acts { display: flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

#viewOnceMediaHolder { max-height: 78vh; overflow: hidden; border-radius: 10px; text-align: center; }
#viewOnceMediaHolder img, #viewOnceMediaHolder video { max-width: 100%; max-height: 78vh; }
#viewOnceMediaHolder.no-save img { pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.install-icon { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 10px; display: block; }
.install-steps { text-align: left; font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin-top: 12px; background: var(--panel); border-radius: 10px; padding: 12px 14px; }
.install-steps ol { margin: 6px 0 0; padding-left: 20px; }
.install-steps b { color: var(--text); }
.ios-share { display: inline-block; transform: translateY(1px); }

/* ---------------- Arama katmanı ---------------- */
.call-overlay {
  position: fixed; inset: 0; z-index: 999; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(circle at 50% 30%, #0a1f22, #071416 75%);
  color: var(--text); text-align: center;
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto;
}
.call-overlay.show { display: flex; }
#callHeaderInfo { position: relative; }
.call-avatar { width: 108px; height: 108px; border-radius: 50%; background: var(--panel-3); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--rl-yellow); margin: 0 auto; overflow: hidden; box-shadow: 0 0 0 6px rgba(13, 148, 136, .25); }
.call-avatar img { width: 100%; height: 100%; object-fit: cover; }
.call-name { font-size: 22px; font-weight: 650; margin-top: 10px; }
.call-status { color: var(--text-dim); font-size: 14px; margin-top: 2px; }
.rec-indicator { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: #ff9eb1; background: rgba(241, 96, 122, .14); padding: 3px 10px; border-radius: 10px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #f1607a; animation: recblink 1.2s infinite; }
@keyframes recblink { 50% { opacity: .25; } }

.call-video-grid { display: none; width: 100%; max-width: 1000px; flex: 1; max-height: 62vh; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-content: center; }
.call-video-grid.show { display: grid; }
.video-tile { position: relative; background: #1a0f36; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.video-tile video { width: 100%; height: 100%; object-fit: cover; }
.video-tile .tile-name { position: absolute; bottom: 7px; left: 9px; font-size: 12px; background: rgba(0, 0, 0, .5); padding: 2px 9px; border-radius: 7px; }
.video-tile.audio-only { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.video-tile.audio-only .avatar { width: 64px; height: 64px; font-size: 24px; }
.video-tile .tile-name.static { position: static; background: none; }
.local-video-tile { position: fixed; width: 104px; height: 142px; object-fit: cover; bottom: calc(120px + env(safe-area-inset-bottom)); right: 14px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .25); z-index: 1000; background: #000; }

.call-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.call-btn { width: 60px; height: 60px; min-width: 60px; border-radius: 50%; border: none; font-size: 23px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.call-btn.accept { background: var(--online); color: #053; }
.call-btn.reject, .call-btn.end { background: var(--danger); color: #3a0010; }
.call-btn.mute { background: rgba(255, 255, 255, .14); }
.call-btn.mute.off { background: var(--rl-yellow); color: #0a1f22; }

/* ---------------- Toast ---------------- */
#toastBox { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 1200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--panel-3); border: 1px solid var(--border); padding: 10px 18px; border-radius: 12px; font-size: 13px; box-shadow: var(--shadow); max-width: 90%; text-align: center; animation: toastIn .2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; } }
