:root {
  --bg: #0b0e14;
  --surface: #151922;
  --surface-hover: #1f2430;
  --accent: #00d166;
  --danger: #ff3b30;
  --expert: #00b4d8;
  --text: #ffffff;
  --text-muted: #8e95a5;
  --border: #242b3a;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
body { background: var(--bg); color: var(--text); height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.hidden { display: none !important; }

/* Giriş Kartı */
.auth-wrapper { margin: auto; background: var(--surface); padding: 32px; border-radius: 16px; width: 90%; max-width: 420px; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.5); text-align: center; }
.auth-wrapper h1 { color: var(--accent); font-size: 28px; margin-bottom: 6px; }
.tab-row { display: flex; gap: 10px; margin: 20px 0 15px 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tab-btn { flex: 1; background: transparent; border: none; color: var(--text-muted); font-size: 15px; font-weight: bold; cursor: pointer; padding: 6px 0; }
.tab-btn.active { color: var(--accent); border-bottom: 2px solid var(--accent); }

.input-field { width: 100%; height: 46px; background: var(--surface-hover); border: 1px solid var(--border); border-radius: 10px; color: var(--text); padding: 0 14px; margin-bottom: 12px; font-size: 14px; outline: none; transition: 0.2s; }
.input-field:focus { border-color: var(--accent); }

.action-btn { width: 100%; height: 46px; border: none; border-radius: 10px; background: var(--accent); color: #fff; font-weight: bold; font-size: 15px; cursor: pointer; transition: 0.2s; }
.action-btn:hover { opacity: 0.9; }
.action-btn:active { transform: scale(0.98); }

.status-msg { margin-top: 12px; font-size: 13px; line-height: 1.4; }
.status-msg.error { color: var(--danger); }
.status-msg.success { color: var(--accent); }

/* Ana Düzen */
header { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.app-title { font-weight: 800; color: var(--accent); letter-spacing: 0.5px; }
.user-badge { font-size: 13px; background: var(--surface-hover); padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border); }

.layout-body { flex: 1; display: flex; overflow: hidden; }

/* Kenar Çubuğu (Arkadaşlar) */
.sidebar-panel { width: 320px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.friend-input-bar { padding: 12px; display: flex; gap: 8px; border-bottom: 1px solid var(--border); }
.friend-list { flex: 1; overflow-y: auto; list-style: none; }
.friend-row { padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.15s; }
.friend-row:hover, .friend-row.active { background: var(--surface-hover); }

/* Sohbet Alanı */
.chat-window { flex: 1; display: flex; flex-direction: column; background: var(--bg); }
.chat-nav { height: 55px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.feed-box { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 65%; padding: 10px 14px; border-radius: 12px; font-size: 14px; word-break: break-word; }
.chat-bubble.mine { background: var(--accent); color: #fff; align-self: flex-end; }
.chat-bubble.other { background: var(--surface-hover); color: #fff; align-self: flex-start; }
.input-dock { height: 65px; background: var(--surface); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; padding: 0 16px; }

/* Görüntülü Arama Görünümü */
.call-stage { flex: 1; position: relative; background: #000; display: flex; justify-content: center; align-items: center; }
#renderCanvas { width: 100%; height: 100%; object-fit: contain; }
.control-dock { position: absolute; bottom: 24px; display: flex; gap: 14px; z-index: 50; }
.btn-round { width: 56px; height: 56px; border-radius: 28px; border: none; font-size: 20px; cursor: pointer; background: var(--surface-hover); color: #fff; display: flex; align-items: center; justify-content: center; }
.btn-round.danger { background: var(--danger); }

/* HUD Panel */
.hud-box { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,0.85); border: 1px solid var(--expert); border-radius: 8px; padding: 10px 14px; font-family: monospace; font-size: 12px; color: var(--expert); pointer-events: none; z-index: 60; line-height: 1.5; }