/* ═══════════════════════════════════════════
   VoxMeet — koyu "gece" teması
   ═══════════════════════════════════════════ */
:root {
  --bg0: #07090d;
  --bg1: #0c1017;
  --surface: #111722;
  --surface2: #19212f;
  --surface3: #232e42;
  --surface-h: #283349;
  --line: rgba(148, 163, 196, 0.10);
  --line2: rgba(148, 163, 196, 0.18);
  --text: #e9edf6;
  --text2: #99a3ba;
  --text3: #5c6579;
  --mint: #2de0a7;
  --mint-deep: #14b789;
  --mint-glow: rgba(45, 224, 167, 0.18);
  --danger: #ff5c6c;
  --danger-h: #e64a5b;
  --amber: #ffc24b;
  --blue: #5ea7ff;
  --r: 14px;
  --r-sm: 9px;
  --bar-h: 76px;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-disp: 'Sora', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg0);
  color: var(--text);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
svg { fill: currentColor; }
#audioContainer { display: none; }
::selection { background: var(--mint-glow); color: var(--mint); }

.noise {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.screen { height: 100vh; height: 100dvh; display: flex; flex-direction: column; position: relative; }
[hidden] { display: none !important; }

/* ── Scrollbars ── */
* { scrollbar-width: thin; scrollbar-color: var(--surface3) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 4px; }

/* ═══════════ ORTAK BİLEŞENLER ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border: none; border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer; transition: all 0.15s ease; white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-primary { background: var(--mint); color: #05221a; }
.btn-primary:hover { background: #4ce8b5; box-shadow: 0 6px 28px var(--mint-glow); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--surface3); color: var(--text3); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--line2); }
.btn-ghost:hover { background: var(--surface3); border-color: var(--text3); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.text-input {
  width: 100%; padding: 12px 15px; background: rgba(0,0,0,0.35);
  border: 1px solid var(--surface3); border-radius: var(--r-sm);
  color: var(--text); font-family: var(--font-body); font-size: 15px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.text-input::placeholder { color: var(--text3); }
.text-input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-glow); }
select.text-input { cursor: pointer; }
select.text-input option { background: var(--surface2); }

.field-label {
  display: block; font-size: 11.5px; font-weight: 800; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.07em; margin: 16px 0 7px;
}
.icon-btn {
  background: none; border: none; color: var(--text3); cursor: pointer;
  width: 32px; height: 32px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.12s;
}
.icon-btn:hover { background: var(--surface3); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }

.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 2.2s infinite; display: inline-block; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 var(--mint-glow); } 50% { opacity: 0.55; box-shadow: 0 0 0 5px transparent; } }

/* ═══════════ ANA SAYFA ═══════════ */
.home-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 700px 500px at 12% 8%, rgba(45, 224, 167, 0.07), transparent 65%),
    radial-gradient(ellipse 800px 600px at 90% 90%, rgba(94, 167, 255, 0.05), transparent 65%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}
.home-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,196,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,196,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, black 15%, transparent 75%);
}
.home-top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px; flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 20px rgba(45,224,167,0.15); }
.brand-name { font-family: var(--font-disp); font-size: 19px; font-weight: 400; letter-spacing: -0.01em; }
.brand-name b { font-weight: 800; color: var(--mint); }
.home-clock { display: flex; flex-direction: column; align-items: flex-end; }
#clockTime { font-family: var(--font-mono); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.clock-date { font-size: 12.5px; color: var(--text3); font-weight: 600; }

.home-main {
  position: relative; z-index: 1; flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 60px;
  padding: 0 40px 40px; overflow-y: auto;
}
.home-copy { max-width: 530px; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.home-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid rgba(45,224,167,0.25); border-radius: 999px;
  background: rgba(45,224,167,0.06);
  font-size: 12px; font-weight: 800; color: var(--mint);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 22px;
}
.home-copy h1 {
  font-family: var(--font-disp); font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 18px;
}
.home-copy h1 em {
  font-style: normal; color: var(--mint); position: relative;
}
.home-copy h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: var(--mint-glow); z-index: -1; border-radius: 3px;
}
.home-sub { color: var(--text2); font-size: 16px; line-height: 1.65; margin-bottom: 30px; max-width: 460px; }
.home-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-bottom: 40px; }
.join-inline {
  display: flex; gap: 8px; flex: 1; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 5px 5px 5px 16px;
  transition: border-color 0.15s;
}
.join-inline:focus-within { border-color: var(--mint); }
.join-inline input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; min-width: 0;
}
.join-inline input::placeholder { color: var(--text3); font-weight: 500; }
.home-feats { display: flex; flex-direction: column; gap: 14px; }
.feat { display: flex; align-items: center; gap: 13px; }
.feat-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--surface2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.feat-ic svg { width: 18px; height: 18px; fill: var(--mint); }
.feat b { display: block; font-size: 14px; font-weight: 700; }
.feat span { font-size: 12.5px; color: var(--text3); }

/* home görsel */
.home-visual { position: relative; animation: rise 0.7s 0.15s cubic-bezier(0.2,0.7,0.2,1) both; }
.mock-window {
  width: 420px; background: var(--surface); border: 1px solid var(--line2);
  border-radius: 18px; padding: 14px; box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 80px rgba(45,224,167,0.05);
  transform: rotate(1.5deg);
}
.mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-tile {
  aspect-ratio: 16/10; border-radius: 11px; position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent;
}
.mock-tile span {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-disp); font-weight: 800; font-size: 18px; color: #06281e;
}
.mt-a { background: #1b2436; } .mt-a span { background: #7ce3ff; }
.mt-b { background: #1f2233; } .mt-b span { background: #ffb86c; }
.mt-c { background: #1a2b2c; } .mt-c span { background: #ff9ecd; }
.mt-d { background: #202a3d; } .mt-d span { background: var(--mint); }
.mock-tile.speaking { border-color: var(--mint); box-shadow: 0 0 20px var(--mint-glow); }
.mock-bar { display: flex; justify-content: center; gap: 8px; margin-top: 13px; }
.mock-bar i { width: 34px; height: 34px; border-radius: 50%; background: var(--surface3); }
.mock-bar i.red { background: var(--danger); }
.orbit { position: absolute; color: var(--mint); opacity: 0.6; animation: float 5s ease-in-out infinite; }
.orbit-1 { top: -22px; right: -14px; font-size: 22px; }
.orbit-2 { bottom: -10px; left: -26px; font-size: 15px; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* ═══════════ ÖN İZLEME ═══════════ */
.prejoin-main {
  position: relative; z-index: 1; flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 54px;
  padding: 0 40px 50px; overflow-y: auto;
}
.prejoin-preview { animation: rise 0.5s cubic-bezier(0.2,0.7,0.2,1) both; }
.preview-box {
  position: relative; width: min(640px, 58vw); aspect-ratio: 16/9;
  background: #0a0d13; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line2); box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.preview-box video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.preview-off {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(150deg, #10151f, #0b1521); color: var(--text2); font-size: 14px; font-weight: 600;
}
.preview-name {
  position: absolute; top: 12px; left: 14px; font-size: 13.5px; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7); color: #fff;
}
.preview-ctrl { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.mic-meter {
  position: absolute; bottom: 18px; left: 16px; display: flex; gap: 3px; align-items: flex-end; height: 26px;
}
.mic-meter i {
  width: 4px; height: 4px; border-radius: 2px; background: var(--mint);
  transition: height 0.09s ease; opacity: 0.9;
}
.device-row { display: flex; gap: 9px; margin-top: 14px; }
.device-sel {
  flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0 10px; transition: border-color 0.15s;
}
.device-sel:hover { border-color: var(--line2); }
.device-sel svg { width: 15px; height: 15px; fill: var(--text3); flex-shrink: 0; }
.device-sel select {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text2); font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  padding: 10px 0; cursor: pointer; text-overflow: ellipsis;
}
.device-sel select option { background: var(--surface2); color: var(--text); }

.prejoin-side {
  align-self: stretch; display: flex; align-items: center;
  animation: rise 0.5s 0.1s cubic-bezier(0.2,0.7,0.2,1) both;
}
.prejoin-card {
  width: 360px; text-align: center;
  background: var(--surface); border: 1px solid var(--line2); border-radius: 22px;
  padding: 38px 32px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  position: relative; overflow: hidden;
}
.prejoin-card::before {
  content: ''; position: absolute; top: 0; left: 18%; right: 18%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
}
.prejoin-card h2 {
  font-family: var(--font-disp); font-size: 24px; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.room-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--line2); border-radius: 999px;
  padding: 7px 15px; font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; color: var(--text2);
  transition: all 0.15s; margin-bottom: 6px;
}
.room-chip:hover { color: var(--mint); border-color: rgba(45,224,167,0.4); }
.room-chip svg { width: 15px; height: 15px; fill: var(--mint); flex-shrink: 0; }
.prejoin-card .field-label { text-align: left; margin-top: 20px; }
.prejoin-card .text-input { text-align: center; font-weight: 600; }
.prejoin-card .btn-block { margin-top: 18px; }
.prejoin-hint { margin-top: 14px; font-size: 12px; color: var(--text3); }

/* ═══════════ TOPLANTI ═══════════ */
.call { background: var(--bg0); }
.call-stage-wrap { flex: 1; position: relative; overflow: hidden; display: flex; }
.call-stage { flex: 1; display: flex; overflow: hidden; padding: 10px; gap: 10px; }

/* Izgara */
.call-grid {
  flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
  gap: 10px; overflow: hidden; min-width: 0;
}
/* Sahne (sabitlenen / ekran paylaşımı) */
.stage-main { flex: 1; display: flex; min-width: 0; position: relative; }
.stage-strip {
  display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overflow-x: hidden;
  width: var(--strip-w, 232px); flex-shrink: 0; padding-right: 2px;
}
.stage-strip .tile { width: 100%; aspect-ratio: 16/9; flex-shrink: 0; }
.stage-strip.collapsed { display: none; }
.strip-divider {
  width: 6px; flex-shrink: 0; cursor: col-resize; border-radius: 3px;
  background: transparent; transition: background 0.15s; position: relative;
}
.strip-divider:hover, .strip-divider.dragging { background: var(--mint-glow); }
.strip-divider::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 3px; height: 38px; border-radius: 2px; background: var(--surface3);
}

/* Kutucuk */
.tile {
  position: relative; background: var(--surface); border-radius: var(--r);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent; transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 0; min-height: 0; container-type: size;
}
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.fit-contain video { object-fit: contain; background: #000; }
.tile.mirror video { transform: scaleX(-1); }
.tile.speaking { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint), 0 0 24px var(--mint-glow); }
.tile.cam-off { background: linear-gradient(150deg, #121826, #0d1520); }

.avatar {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-disp); font-weight: 800; color: #fff; user-select: none;
  width: clamp(40px, 26cqmin, 110px); height: clamp(40px, 26cqmin, 110px);
  font-size: clamp(16px, 11cqmin, 44px);
  box-shadow: 0 6px 30px rgba(0,0,0,0.4); position: relative; z-index: 1;
}
.avatar-lg { width: 96px; height: 96px; font-size: 38px; }

.nameplate {
  position: absolute; left: 8px; bottom: 8px; z-index: 3;
  display: flex; align-items: center; gap: 6px; max-width: calc(100% - 16px);
  background: rgba(5, 8, 12, 0.62); backdrop-filter: blur(8px);
  border-radius: 7px; padding: 4px 9px;
}
.nameplate span {
  font-size: 12.5px; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nameplate .np-you { color: var(--mint); font-weight: 800; flex-shrink: 0; }
.nameplate svg { width: 13px; height: 13px; flex-shrink: 0; }
.np-mic-off { fill: var(--danger); }
.np-mic-on { fill: var(--text2); }
.np-speak { fill: var(--mint); }

.hand-flag {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  background: var(--amber); color: #402b00; border-radius: 7px;
  padding: 3px 8px; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; gap: 4px;
  animation: handWave 1.4s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(255,194,75,0.35);
}
@keyframes handWave { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 60% { transform: rotate(8deg); } }

.quality {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex; align-items: flex-end; gap: 2px; height: 12px;
  opacity: 0.85; padding: 3px 4px; background: rgba(5,8,12,0.45); border-radius: 5px;
  box-sizing: content-box;
}
.quality i { width: 3px; border-radius: 1px; background: var(--surface3); }
.quality i:nth-child(1) { height: 4px; } .quality i:nth-child(2) { height: 8px; } .quality i:nth-child(3) { height: 12px; }
.quality.q3 i { background: var(--mint); }
.quality.q2 i:nth-child(-n+2) { background: var(--amber); }
.quality.q1 i:nth-child(1) { background: var(--danger); }
.quality[hidden] { display: none; }

.tile-actions {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(5, 8, 12, 0.35); opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
/* Kontroller yalnızca .show-actions sınıfıyla görünür; JS fare durunca /
   dokunmadan 4 sn sonra kaldırır. Böylece tam ekranda gri katman asılı kalmaz. */
.tile.show-actions .tile-actions { opacity: 1; pointer-events: auto; }
.ta-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(20, 26, 38, 0.85); backdrop-filter: blur(6px); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: all 0.12s;
}
.ta-btn:hover { background: var(--mint); color: #05221a; transform: scale(1.08); }
.ta-btn svg { width: 19px; height: 19px; }
.tile.is-pinned .ta-pin { background: var(--mint); color: #05221a; }

.screen-label {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  background: rgba(5,8,12,0.62); backdrop-filter: blur(8px);
  border-radius: 7px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: #fff;
}
.screen-label svg { width: 13px; height: 13px; fill: var(--mint); }

.more-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--text2); font-weight: 800; font-size: 15px; cursor: pointer;
}

/* sahnedeki etiketler üstteki çiplerle çakışmasın */
.stage-main .tile .hand-flag,
.stage-main .tile .screen-label { top: 52px; }

/* çipler */
.chip {
  position: absolute; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  background: rgba(12, 16, 23, 0.72); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; color: var(--text2);
}
.chip svg { width: 14px; height: 14px; fill: var(--text3); }
.chip-tl { top: 16px; left: 16px; cursor: pointer; font-family: var(--font-mono); transition: all 0.15s; }
.chip-tl:hover { color: var(--mint); border-color: rgba(45,224,167,0.4); }
.chip-tl:hover svg { fill: var(--mint); }
.chip-tr { top: 16px; right: 16px; }
.chip-sep { width: 1px; height: 12px; background: var(--line2); }
#callDur { font-family: var(--font-mono); }

/* tepkiler katmanı */
.reactions-layer { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.float-emoji {
  position: absolute; bottom: -50px; font-size: 38px;
  animation: floatUp 3.4s cubic-bezier(0.2, 0.5, 0.6, 1) forwards;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.float-emoji small {
  display: block; text-align: center; font-size: 10.5px; font-weight: 800;
  color: #fff; background: rgba(5,8,12,0.65); border-radius: 999px; padding: 2px 7px; margin-top: 2px;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  10% { opacity: 1; transform: translateY(-8vh) scale(1.1); }
  100% { transform: translateY(-78vh) scale(0.95); opacity: 0; }
}

/* yeniden bağlanma */
.reconnect-veil {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(7, 9, 13, 0.82); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  font-size: 15px; font-weight: 700; color: var(--text2);
}
.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--surface3); border-top-color: var(--mint);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.audio-unlock {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 21;
  display: flex; align-items: center; gap: 9px;
  background: var(--mint); color: #05221a; border: none; border-radius: 999px;
  padding: 11px 20px; font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 40px var(--mint-glow); animation: rise 0.4s both;
}
.audio-unlock svg { width: 18px; height: 18px; }

/* ── Alt bar ── */
.call-bar {
  height: var(--bar-h); flex-shrink: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 20px; background: var(--bg1); border-top: 1px solid var(--line);
}
.bar-left { display: flex; align-items: center; gap: 12px; }
.bar-clock { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text3); }
.bar-center { display: flex; align-items: center; gap: 10px; }
.bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.ctl {
  position: relative; width: 50px; height: 50px; border-radius: 50%;
  border: none; cursor: pointer; flex-shrink: 0;
  background: var(--surface2); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.14s ease;
}
.ctl:hover { background: var(--surface3); transform: translateY(-2px); }
.ctl:active { transform: translateY(0); }
.ctl svg { width: 21px; height: 21px; }
.ctl .ic-off { display: none; }
.ctl.off { background: var(--danger); color: #fff; }
.ctl.off:hover { background: var(--danger-h); }
.ctl.off .ic-on { display: none; }
.ctl.off .ic-off { display: block; }
.ctl.on-mint { background: var(--mint); color: #05221a; }
.ctl.on-mint:hover { background: #4ce8b5; }
.ctl.on-amber { background: var(--amber); color: #402b00; }
.ctl-leave { background: var(--danger); color: #fff; width: 62px; border-radius: 26px; }
.ctl-leave:hover { background: var(--danger-h); }
.ctl-flat { border-radius: 14px; }
.ctl-flat.active { background: var(--surface3); color: var(--mint); }
.ctl-sm { width: 46px; height: 46px; background: rgba(16, 21, 31, 0.75); backdrop-filter: blur(8px); border: 1px solid var(--line2); }
.ctl-sm:hover { background: rgba(35, 46, 66, 0.9); }

.badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px;
  border-radius: 9px; padding: 0 5px; background: var(--danger); color: #fff;
  font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg1);
}
.badge-hand { background: var(--amber); font-size: 9px; }

/* ── Paneller ── */
.panel {
  position: absolute; top: 10px; right: 10px; bottom: calc(var(--bar-h) + 10px); z-index: 15;
  width: 350px; display: flex; flex-direction: column;
  background: var(--bg1); border: 1px solid var(--line2); border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  animation: panelIn 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes panelIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.panel-hd h3 { font-family: var(--font-disp); font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel-count {
  background: var(--surface3); border-radius: 999px; padding: 2px 9px;
  font-size: 12px; font-weight: 800; color: var(--text2);
}
.panel-ft { padding: 12px; border-top: 1px solid var(--line); flex-shrink: 0; }

.chat-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; }
.chat-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text3); font-size: 13.5px; font-weight: 600; text-align: center;
}
.chat-empty svg { width: 34px; height: 34px; fill: var(--surface3); }
.chat-empty small { font-size: 11.5px; font-weight: 500; }
.chat-msg { margin-bottom: 4px; animation: msgIn 0.18s ease both; }
.chat-msg.first { margin-top: 12px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-msg-hd { display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px; }
.chat-msg-who { font-size: 12.5px; font-weight: 800; color: var(--mint); }
.chat-msg-who.me { color: var(--blue); }
.chat-msg-t { font-size: 10.5px; color: var(--text3); font-family: var(--font-mono); }
.chat-msg-txt {
  display: inline-block; font-size: 14px; color: var(--text); line-height: 1.45;
  word-break: break-word; background: var(--surface2); border-radius: 4px 12px 12px 12px;
  padding: 8px 12px; max-width: 92%;
}
.chat-in {
  display: flex; gap: 7px; padding: 12px; border-top: 1px solid var(--line); flex-shrink: 0;
}
.chat-in input {
  flex: 1; background: var(--surface2); border: 1px solid transparent; border-radius: 999px;
  padding: 11px 17px; color: var(--text); font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color 0.15s;
}
.chat-in input:focus { border-color: var(--mint); }
.chat-in input::placeholder { color: var(--text3); }
.chat-in button {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--mint); color: #05221a; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: all 0.12s;
}
.chat-in button:hover { background: #4ce8b5; }
.chat-in button svg { width: 17px; height: 17px; }

.people-body { flex: 1; overflow-y: auto; padding: 10px; }
.person { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; transition: background 0.12s; }
.person:hover { background: var(--surface); }
.person .avatar { width: 38px; height: 38px; font-size: 15px; flex-shrink: 0; box-shadow: none; }
.person-info { flex: 1; min-width: 0; }
.person-name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-sub { font-size: 11.5px; color: var(--text3); font-weight: 600; }
.person-icons { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.person-icons svg { width: 16px; height: 16px; }
.pi-off { fill: var(--danger); } .pi-on { fill: var(--text3); } .pi-hand { font-size: 15px; }

/* menüler & popover */
.menu {
  position: absolute; z-index: 30; min-width: 250px;
  background: var(--surface2); border: 1px solid var(--line2); border-radius: 13px;
  padding: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  animation: menuIn 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.menu-title { padding: 9px 12px 5px; font-size: 11px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; }
.menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 12px; border: none; border-radius: 8px; cursor: pointer;
  background: none; color: var(--text); font-family: var(--font-body);
  font-size: 14px; font-weight: 600; text-align: left; transition: background 0.1s;
}
.menu-item:hover { background: var(--surface3); }
.menu-item svg { width: 18px; height: 18px; fill: var(--text2); flex-shrink: 0; }
.menu-item b { color: var(--mint); font-weight: 800; }
.menu-item small { display: block; font-size: 11.5px; color: var(--text3); font-weight: 500; }
.menu-item .radio {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text3); flex-shrink: 0;
  display: inline-block; position: relative; transition: border-color 0.12s;
}
.menu-item.checked .radio { border-color: var(--mint); }
.menu-item.checked .radio::after {
  content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--mint);
}

.react-pop {
  position: absolute; z-index: 30; display: flex; gap: 4px;
  background: var(--surface2); border: 1px solid var(--line2); border-radius: 999px;
  padding: 7px 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  animation: menuIn 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.react-pop button {
  width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer;
  background: none; font-size: 24px; transition: all 0.12s; line-height: 1;
}
.react-pop button:hover { background: var(--surface3); transform: scale(1.22) translateY(-3px); }

/* ═══════════ KAYIT ROZETİ ═══════════ */
.chip-tc { top: 16px; left: 50%; transform: translateX(-50%); }
.rec-chip { color: #fff; border-color: rgba(255,92,108,0.5); font-weight: 800; letter-spacing: 0.08em; font-size: 11px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: pulse 1.6s infinite; }

/* ═══════════ BEYAZ TAHTA ═══════════ */
.wb {
  position: absolute; inset: 10px; z-index: 12;
  background: #10151f; border: 1px solid var(--line2); border-radius: 16px;
  overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
}
.wb canvas { flex: 1; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.wb-bar {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  background: rgba(12,16,23,0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--line2); border-radius: 999px; padding: 7px 12px;
}
.wb-colors { display: flex; gap: 5px; }
.wb-c {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.12s;
}
.wb-c:hover { transform: scale(1.15); }
.wb-c.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.wb-sep { width: 1px; height: 20px; background: var(--line2); }
.wb-t {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: none; color: var(--text2);
  display: flex; align-items: center; justify-content: center; transition: all 0.12s;
}
.wb-t:hover { background: var(--surface3); color: var(--text); }
.wb-t.active { background: var(--mint); color: #05221a; }
.wb-t.active i { background: #05221a; }
.wb-t i { border-radius: 50%; background: var(--text2); display: block; }
.wb-t svg { width: 17px; height: 17px; }

/* ═══════════ KATILIM İSTEKLERİ ═══════════ */
.knock-host {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  z-index: 25; display: flex; flex-direction: column; gap: 8px; width: min(400px, 92vw);
}
.knock-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--bg1); border: 1px solid rgba(45,224,167,0.35); border-radius: 14px;
  padding: 12px 14px; box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  animation: rise 0.3s cubic-bezier(0.2,0.7,0.2,1) both;
}
.knock-item .t-av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex-shrink: 0; }
.knock-item .k-info { flex: 1; min-width: 0; }
.knock-item .k-name { font-size: 14px; font-weight: 800; }
.knock-item .k-sub { font-size: 11.5px; color: var(--text3); }
.knock-item .btn { padding: 8px 13px; font-size: 12.5px; }
.knock-deny { background: var(--surface3) !important; }

/* ═══════════ SAHİP DENETİMLERİ ═══════════ */
.host-tools { padding: 12px 14px; border-top: 1px solid var(--line); flex-shrink: 0; display: flex; flex-direction: column; gap: 9px; }
.host-tools-title { font-size: 11px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; }
.host-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; user-select: none;
}
.host-toggle span { font-size: 13.5px; font-weight: 700; }
.host-toggle small { display: block; font-size: 11px; color: var(--text3); font-weight: 500; }
.host-toggle input { display: none; }
.host-toggle i {
  width: 40px; height: 22px; border-radius: 11px; background: var(--surface3);
  position: relative; transition: background 0.15s; flex-shrink: 0;
}
.host-toggle i::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--text2); transition: all 0.15s;
}
.host-toggle input:checked + i { background: var(--mint); }
.host-toggle input:checked + i::after { left: 21px; background: #05221a; }
.person-act {
  display: none; gap: 4px; flex-shrink: 0;
}
.person:hover .person-act { display: flex; }
@media (hover: none) { .person-act { display: flex; } }
.pa-btn {
  width: 30px; height: 30px; border-radius: 7px; border: none; cursor: pointer;
  background: var(--surface2); color: var(--text2);
  display: flex; align-items: center; justify-content: center; transition: all 0.12s;
}
.pa-btn:hover { background: var(--danger); color: #fff; }
.pa-btn svg { width: 15px; height: 15px; }
.person-crown { font-size: 13px; }

/* ═══════════ SOHBET DOSYALARI ═══════════ */
.chat-attach {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--surface2); color: var(--text2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: all 0.12s;
}
.chat-attach:hover { background: var(--surface3); color: var(--mint); }
.chat-attach svg { width: 18px; height: 18px; }
.chat-img { max-width: 100%; max-height: 220px; border-radius: 10px; display: block; cursor: zoom-in; }
.chat-filecard {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 13px; text-decoration: none; color: var(--text); max-width: 92%;
}
.chat-filecard:hover { border-color: var(--mint); }
.chat-filecard svg { width: 22px; height: 22px; fill: var(--mint); flex-shrink: 0; }
.chat-filecard .f-name { font-size: 13px; font-weight: 700; word-break: break-all; }
.chat-filecard .f-size { font-size: 11px; color: var(--text3); }
.chat-drop { outline: 2px dashed var(--mint); outline-offset: -8px; }

/* ═══════════ İSTATİSTİK KUTUSU ═══════════ */
.tile-stats {
  position: absolute; left: 8px; top: 8px; z-index: 5;
  background: rgba(5,8,12,0.8); backdrop-filter: blur(8px);
  border: 1px solid var(--line2); border-radius: 8px;
  padding: 7px 10px; font-family: var(--font-mono); font-size: 10.5px;
  color: var(--text2); line-height: 1.55; white-space: pre; pointer-events: none;
}
.stage-main .tile .tile-stats { top: 52px; }

/* kayıt listesi */
.rec-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.rec-row:last-child { border-bottom: none; }
.rec-row svg { width: 20px; height: 20px; fill: var(--danger); flex-shrink: 0; }
.rec-row .r-info { flex: 1; min-width: 0; }
.rec-row .r-name { font-size: 13px; font-weight: 700; word-break: break-all; }
.rec-row .r-meta { font-size: 11px; color: var(--text3); font-family: var(--font-mono); }
.rec-empty { text-align: center; color: var(--text3); font-size: 13px; padding: 26px 0; }

/* ═══════════ AYRILDIN ═══════════ */
#left { align-items: center; justify-content: center; }
.left-card {
  position: relative; z-index: 1; text-align: center;
  animation: rise 0.5s cubic-bezier(0.2,0.7,0.2,1) both;
}
.left-ic {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--mint-glow); border: 1px solid rgba(45,224,167,0.35);
  display: flex; align-items: center; justify-content: center;
}
.left-ic svg { width: 34px; height: 34px; fill: var(--mint); }
.left-card h2 { font-family: var(--font-disp); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.left-card p { color: var(--text2); font-size: 14.5px; margin-bottom: 28px; }
#leftDur { font-family: var(--font-mono); color: var(--mint); font-weight: 700; }
.left-actions { display: flex; gap: 12px; justify-content: center; }

/* ═══════════ MODALLAR ═══════════ */
.modal-veil {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(4, 6, 9, 0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: veilIn 0.18s ease both;
}
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 440px; max-width: 100%; max-height: 88vh; overflow-y: auto;
  background: var(--bg1); border: 1px solid var(--line2); border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: rise 0.25s cubic-bezier(0.2,0.7,0.2,1) both;
}
.modal-sm { width: 400px; }
.modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 0;
}
.modal-hd h3 { font-family: var(--font-disp); font-size: 18px; font-weight: 800; }
.modal-body { padding: 6px 22px 24px; }
.modal-body .field-label:first-child { margin-top: 10px; }
.invite-desc { font-size: 13.5px; color: var(--text2); line-height: 1.6; margin: 12px 0 16px; }
.invite-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line2); border-radius: 11px;
  padding: 9px 9px 9px 15px;
}
.invite-link span {
  flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  color: var(--mint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.seg { display: flex; gap: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.seg button {
  flex: 1; padding: 9px 0; border: none; border-radius: 7px; cursor: pointer;
  background: none; color: var(--text2); font-family: var(--font-body); font-size: 13px; font-weight: 700;
  transition: all 0.12s;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--mint); color: #05221a; }
.seg-hint { font-size: 11.5px; color: var(--text3); line-height: 1.5; margin-top: 7px; }

/* ═══════════ TOAST ═══════════ */
#toastHost {
  position: fixed; bottom: calc(var(--bar-h) + 18px); left: 50%; transform: translateX(-50%);
  z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--line2);
  padding: 11px 19px; border-radius: 12px;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  box-shadow: 0 14px 44px rgba(0,0,0,0.5);
  animation: toastIn 0.25s cubic-bezier(0.2,0.7,0.2,1) both;
}
.toast.out { animation: toastOut 0.3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(8px); } }
.toast .t-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; color: #fff;
}
.toast small { color: var(--text3); font-weight: 600; }

/* ═══════════ MOBİL ═══════════ */
@media (max-width: 980px) {
  .home-visual { display: none; }
  .home-main { padding: 0 24px 32px; }
  .home-top { padding: 18px 24px; }
  .prejoin-main { flex-direction: column; gap: 22px; padding: 12px 20px 40px; justify-content: flex-start; }
  .preview-box { width: min(640px, 92vw); }
  .prejoin-side { align-self: center; }
  .prejoin-card { width: min(420px, 92vw); }
  .panel { top: 0; right: 0; bottom: 0; left: 0; width: 100%; border-radius: 0; border: none; }
  .call-stage { flex-direction: column; padding: 8px; gap: 8px; }
  .stage-strip {
    flex-direction: row; width: 100% !important; height: 96px; overflow-x: auto; overflow-y: hidden;
    padding-right: 0; padding-bottom: 2px;
  }
  .stage-strip .tile { width: 150px; height: 88px; aspect-ratio: auto; }
  .strip-divider { display: none !important; }
  .chip-tl { top: 10px; left: 10px; max-width: 46vw; overflow: hidden; }
  .chip-tr { top: 10px; right: 10px; }
  .bar-left { display: none; }
  .call-bar { grid-template-columns: 1fr auto; padding: 0 10px; --bar-h: 68px; }
  .ctl { width: 46px; height: 46px; }
  .ctl svg { width: 19px; height: 19px; }
  .bar-center { gap: 7px; }
  #handBtn { display: none; }
}
@media (max-width: 480px) {
  #wbBtn { display: none; }
  .wb-bar { flex-wrap: wrap; justify-content: center; border-radius: 16px; max-width: 94%; }
  .home-copy h1 { font-size: 32px; }
  .home-actions { flex-direction: column; }
  .join-inline { min-width: 0; }
  .ctl { width: 42px; height: 42px; }
  .ctl-leave { width: 52px; }
  .bar-center { gap: 5px; }
  .left-actions { flex-direction: column; }
}
