:root {
  --bg-main: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-panel: #1e293b;
  --bg-element: #334155;
  --bg-element-hover: #475569;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.45);
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --warning: #f59e0b;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0b0f19;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(217, 70, 239, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-element);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-element-hover);
}

/* Toast Bildirim */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--bg-card-border);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success { border-color: var(--success); color: #34d399; }
.toast.error { border-color: var(--danger); color: #f87171; }

/* GİRİŞ EKRANI */
.join-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.join-card {
  width: 100%;
  max-width: 480px;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 38px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.join-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.join-header {
  text-align: center;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.brand-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.brand-icon:hover {
  transform: scale(1.06) rotate(3deg);
}

.brand-icon svg {
  width: 34px;
  height: 34px;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  line-height: 1.1;
}

.brand-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 60%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.password-box input {
  padding-right: 42px;
}

.icon-btn-inline {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: var(--transition);
  padding: 4px;
}
.icon-btn-inline:hover {
  opacity: 1;
}

.hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--c);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 10px var(--c);
}

.error-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 22px;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.55), 0 0 15px rgba(217, 70, 239, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-primary:hover .arrow-icon {
  transform: translateX(4px);
}

/* Giriş ekranı özellik etiketleri */
.join-features-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.feat-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ODA EKRANI */
.room-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Üst Bar */
.room-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 64px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 20;
}

.room-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.room-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-card-border);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.lock-icon {
  font-size: 0.85rem;
}

.room-badge h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.user-count-badge {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.link-btn {
  background: var(--primary-light);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
}
.link-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

.leave-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}
.leave-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* ODA İÇERİĞİ */
.room-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* SOL PANEL: SES VE KATILIMCILAR */
.voice-panel {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.5);
  border-right: 1px solid var(--bg-card-border);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-card-border);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.section-title h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.status-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.status-indicator.online {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* Katılımcı Izgarası (Ses Kartları) */
.members-grid {
  flex: 1;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  align-content: start;
  overflow-y: auto;
}

.member-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.member-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(99, 102, 241, 0.15);
}

/* Konuşurken avatar efekti */
.member-avatar-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  background-color: var(--avatar-color, #6366f1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
  z-index: 1;
}

/* Konuşma halkası */
.member-card.speaking .member-avatar {
  box-shadow: 0 0 0 4px var(--success), 0 0 20px var(--success-glow);
  transform: scale(1.04);
}

.speaking-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  z-index: 2;
  border: 2px solid var(--bg-panel);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.member-card.speaking .speaking-badge {
  opacity: 1;
}

.member-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.member-audio-badges {
  display: flex;
  gap: 4px;
}

.audio-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
}
.audio-tag.muted {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* ALT KULLANICI DOCK (KONTROLLER) */
.voice-dock {
  background: #111827;
  border-top: 1px solid var(--bg-card-border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.self-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.self-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  background: var(--primary);
}

.self-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.self-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.mic-level-wrapper {
  width: 110px;
  height: 6px;
  background: var(--bg-element);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.mic-meter-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--success);
  border-radius: var(--radius-full);
  transition: width 0.05s ease;
}

.mic-threshold-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f59e0b;
  left: 33%;
  z-index: 2;
  box-shadow: 0 0 4px #f59e0b;
}

/* Gürültü ve Klavye Filtre Kutusu */
.noise-filter-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-toggle.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.filter-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.filter-slider-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.filter-slider-wrap input[type="range"] {
  width: 70px;
  height: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

.slider-num {
  font-family: monospace;
  font-weight: 700;
  color: #38bdf8;
  min-width: 18px;
}

.dock-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-element);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.control-btn:hover {
  background: var(--bg-element-hover);
}

.control-btn.muted {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.control-btn.muted:hover {
  background: rgba(239, 68, 68, 0.3);
}

.ctrl-icon {
  font-size: 1.1rem;
}

/* SAĞ PANEL: CHAT */
.chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  height: 100%;
  overflow: hidden;
}

.chat-header {
  background: rgba(15, 23, 42, 0.4);
}

.chat-encryption-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Canlı Konuşan Gösterge Barı */
.chat-speaker-banner {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18) 0%, rgba(99, 102, 241, 0.12) 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.speaker-wave-icon {
  font-size: 1rem;
  animation: pulse-dot 1.2s infinite;
}

.speaker-live-text strong {
  color: #f8fafc;
}

/* Kart Spotlight / Büyütme Modu */
.member-card {
  cursor: pointer;
}

.member-card.spotlight {
  grid-column: 1 / -1 !important;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98)) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.45) !important;
  padding: 22px !important;
  transform: scale(1.01);
  z-index: 10;
}

.member-card.spotlight .member-avatar {
  width: 76px !important;
  height: 76px !important;
  font-size: 1.8rem !important;
}

.member-card.spotlight .member-video {
  max-height: 380px !important;
  border-radius: 14px;
}

.chat-messages {
  flex: 1;
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Mesajlar */
.message-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.msg-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 82%;
}

.msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.msg-username {
  font-size: 0.82rem;
  font-weight: 700;
}

.msg-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.msg-bubble {
  background: var(--bg-element);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 4px 12px 12px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.message-row.self {
  flex-direction: row-reverse;
}

.message-row.self .msg-bubble {
  background: var(--primary);
  border-radius: 12px 4px 12px 12px;
}

.message-row.self .msg-header {
  justify-content: flex-end;
}

.system-msg {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin: 4px auto;
  width: fit-content;
}

/* Hızlı Emojiler */
.quick-emojis {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--bg-card-border);
  overflow-x: auto;
}

.emoji-chip {
  background: transparent;
  border: 1px solid transparent;
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.emoji-chip:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.08);
}

/* Chat Gönderme Formu */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #111827;
  border-top: 1px solid var(--bg-card-border);
}

.chat-input-area input {
  flex: 1;
  background: var(--bg-panel);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--primary);
}

.send-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.send-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.send-btn svg {
  width: 18px;
  height: 18px;
}

/* Yardımcı sınıflar */
.hidden {
  display: none !important;
}

/* ========================================================
   GELİŞMİŞ MOBİL & TABLET ULTRA PREMIUM ARAYÜZ (V4 ULTRA)
   ======================================================== */

/* Mobil alt menü çubuğu - masaüstünde gizli */
.mobile-tab-bar {
  display: none;
}

/* Bildirim noktası animasyonu */
@keyframes unreadPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes voiceGlowPulse {
  0% { box-shadow: 0 0 0 2px #10b981, 0 0 12px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 4px #10b981, 0 0 22px rgba(16, 185, 129, 0.6); }
  100% { box-shadow: 0 0 0 2px #10b981, 0 0 12px rgba(16, 185, 129, 0.4); }
}

@media (max-width: 768px) {
  /* Dokunmatik gecikmesini sıfırla */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  /* Ana oda kapsayıcısı: tam ekran ve modern çerçevesiz akış */
  .room-container {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #090d16;
  }

  /* =====================
     1. MOBİL ÜST BAR (GLASSMORPHISM)
     ===================== */
  .room-topbar {
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 50;
  }

  .room-identity {
    gap: 8px;
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
  }

  .room-badge {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .room-identity h2 {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    max-width: 95px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f1f5f9;
  }

  .live-dot {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 8px #10b981;
  }

  .user-count-badge {
    font-size: 0.72rem;
    padding: 4px 8px;
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-weight: 700;
  }

  .ping-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    gap: 4px;
  }

  /* Üst Aksiyon Butonları: Yuvarlak Glass İkonlar */
  .topbar-actions {
    gap: 6px;
    display: flex;
    align-items: center;
  }

  .topbar-actions .action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.15s ease, background 0.15s ease;
  }

  .topbar-actions .action-btn:active {
    transform: scale(0.92);
  }

  .topbar-actions .action-btn span:not(.btn-icon) {
    display: none;
  }

  .topbar-actions .action-btn .btn-icon {
    width: 17px;
    height: 17px;
  }

  .leave-btn {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
  }

  .link-btn {
    background: rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
    color: #38bdf8 !important;
  }

  /* =====================
     2. ODA GÖVDESİ & TAB SİSTEMİ
     ===================== */
  .room-body {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
    background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  }

  .voice-panel,
  .chat-panel {
    display: none !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-right: none;
    border-bottom: none;
    overflow: hidden;
  }

  .voice-panel.mob-active,
  .chat-panel.mob-active {
    display: flex !important;
    flex-direction: column;
  }

  .panel-header {
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
  }

  .panel-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
  }

  /* =====================
     3. KATILIMCI KARTLARI (2 SÜTUNLU MODERN DÜZEN)
     ===================== */
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    align-content: start;
  }

  .member-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px 10px 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .member-card.speaking {
    border-color: #10b981;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
    animation: voiceGlowPulse 1.5s infinite;
  }

  .member-avatar-wrapper {
    position: relative;
    margin-bottom: 8px;
  }

  .member-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
  }

  .speaking-badge {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    bottom: -2px;
    right: -2px;
  }

  .member-name {
    font-size: 0.8rem;
    font-weight: 700;
    max-width: 120px;
    margin-bottom: 4px;
    color: #f8fafc;
  }

  .member-meta {
    margin-bottom: 8px;
  }

  .audio-tag {
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
  }

  /* Kişi başı ses kontrolü (Modern Kompakt Slider) */
  .user-volume-box {
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .vol-icon-btn {
    background: transparent;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
  }

  .user-volume-box input[type="range"] {
    flex: 1;
    height: 4px;
    accent-color: #6366f1;
    cursor: pointer;
  }

  .vol-percent-label {
    font-size: 0.65rem;
    font-family: monospace;
    font-weight: 700;
    color: #94a3b8;
    min-width: 28px;
    text-align: right;
  }

  /* =====================
     4. ALT KONTROL DOKU (FLOATING GLASS DOCK)
     ===================== */
  .voice-dock {
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  }

  /* Kendi kullanıcı bilgi satırı */
  .self-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.5);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .self-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .self-details {
    flex: 1;
    min-width: 0;
  }

  .self-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f1f5f9;
  }

  .mic-level-wrapper {
    height: 4px;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.1);
  }

  /* Mobilde klavye filtre kutusu gizli kalsın */
  .noise-filter-box {
    display: none !important;
  }

  /* Dock Butonları: Dokunmatik & İkon Ağırlıklı Tasarım */
  .dock-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    width: 100%;
  }

  .control-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #e2e8f0;
    transition: transform 0.12s ease, background 0.15s ease;
  }

  .control-btn:active {
    transform: scale(0.92);
  }

  .ctrl-icon {
    font-size: 1.25rem;
  }

  .ctrl-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  /* Mikrofon butonu mobilde öne çıkan buton olsun */
  #btn-toggle-mic {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
  }

  #btn-toggle-mic.muted {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.25) 100%) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fca5a5 !important;
  }

  /* Ayarlar butonu ufak simge */
  .settings-icon-btn {
    flex: 0 0 42px;
    height: 48px;
    border-radius: 14px;
  }

  /* =====================
     5. YAZILI SOHBET (MOBİL POLİSH)
     ===================== */
  .chat-messages {
    padding: 12px 14px;
    gap: 12px;
  }

  .message-row {
    gap: 8px;
  }

  .msg-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .msg-bubble {
    font-size: 0.875rem;
    padding: 9px 13px;
    border-radius: 16px 16px 16px 4px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.4;
  }

  .message-row.self .msg-bubble {
    border-radius: 16px 16px 4px 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  }

  /* Emoji çubuğu: yatay kaydırma */
  .quick-emojis {
    padding: 6px 10px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .quick-emojis::-webkit-scrollbar {
    display: none;
  }

  .emoji-chip {
    font-size: 1.05rem;
    padding: 4px 8px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
  }

  /* Sohbet giriş çubuğu: modern yuvarlatılmış pill */
  .chat-input-area {
    padding: 8px 12px;
    gap: 8px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .attach-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .attach-btn svg {
    width: 18px;
    height: 18px;
  }

  #chat-input {
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: var(--radius-full);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  #chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  }

  .send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
  }

  .send-btn svg {
    width: 17px;
    height: 17px;
  }

  /* =====================
     6. MOBİL ALT TAB ÇUBUĞU (PREMIUM GLASS BAR)
     ===================== */
  .mobile-tab-bar {
    display: flex;
    align-items: center;
    background: rgba(11, 17, 32, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    z-index: 90;
    padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
  }

  .mob-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mob-tab-btn:active {
    transform: scale(0.95);
  }

  .mob-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
  }

  .mob-tab-icon {
    font-size: 1.15rem;
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  .mob-tab-label {
    font-size: 0.8rem;
    letter-spacing: -0.01em;
  }

  /* Okunmamış mesaj kırmızı rozeti */
  .unread-dot {
    position: absolute;
    top: -3px;
    right: -5px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0b1120;
    animation: unreadPulse 1.6s infinite;
  }

  /* =====================
     7. GİRİŞ KARTI (MOBİL POLİSH)
     ===================== */
  .join-card {
    padding: 28px 20px;
    margin: 16px;
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  }

  .brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .brand-icon svg {
    width: 28px;
    height: 28px;
  }

  .join-header h1 {
    font-size: 1.5rem;
  }

  .color-picker-grid {
    gap: 8px;
  }

  .color-swatch {
    width: 32px;
    height: 32px;
  }

  /* Modal responsive */
  .settings-card {
    width: 94vw;
    max-height: 86vh;
    border-radius: 20px;
  }
}

/* Tablet ara boyutlar (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .room-body {
    grid-template-columns: 1fr 340px;
  }

  .topbar-actions .action-btn span:not(.btn-icon) {
    display: none;
  }

  .topbar-actions .action-btn {
    padding: 8px 12px;
  }
}

/* ========================================================
   GÜÇLENDİRİLMİŞ ALTYAPI & YENİ ÖZELLİK STİLLERİ
   ======================================================== */

/* Ping / Gecikme Rozeti */
.ping-badge {
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Ekran Paylaşımı & Admin Butonları */
.screen-btn {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}
.screen-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
}
.screen-btn.active {
  background: #a855f7;
  color: white;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
}

.admin-btn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.admin-btn:hover {
  background: rgba(245, 158, 11, 0.25);
}

/* Canlı Ekran Paylaşımı Alanı */
.screen-share-container {
  margin: 16px 20px 0;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.live-tag {
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  animation: pulse-dot 1.5s infinite;
}

.screen-action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.screen-action-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.screen-video-wrapper {
  position: relative;
  width: 100%;
  max-height: 480px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-video-wrapper video {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
}

/* Bas-Konuş (PTT) Butonu */
.ptt-btn {
  background: rgba(255, 255, 255, 0.05);
}
.ptt-btn.active {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.5);
}

/* Host Rozeti */
.host-badge {
  font-size: 0.68rem;
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.self-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Kullanıcı Başına Ses Ayarı (Per-User Volume) */
.user-volume-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 150px;
}

.user-volume-box span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.user-volume-box input[type="range"] {
  flex: 1;
  height: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Yönetici Butonu (Kick) */
.card-admin-actions {
  position: absolute;
  top: 8px;
  right: 8px;
}

.kick-user-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 6px;
  font-size: 0.72rem;
  padding: 3px 6px;
  cursor: pointer;
  transition: var(--transition);
}
.kick-user-btn:hover {
  background: #ef4444;
  color: white;
}

/* Chat Dosya & Görsel Butonu */
.attach-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.attach-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}
.attach-btn svg {
  width: 20px;
  height: 20px;
}

/* Chat Görsel Önizleme */
.chat-image-preview {
  margin-top: 6px;
  max-width: 260px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease;
  display: block;
}
.chat-image-preview:hover {
  transform: scale(1.02);
}

/* Resim Modal (Lightbox) */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

/* ========================================================
   KAMERA, GELİŞMİŞ SES & AYARLAR STİLLERİ (PRO V3)
   ======================================================== */

/* Kamera Aktif Butonu */
#btn-toggle-cam.active {
  background: #10b981;
  color: white;
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.settings-icon-btn {
  padding: 10px 12px;
}

/* Üye Kamera Video Alanı */
.member-card {
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: #000;
  display: block;
}

.member-card.has-camera .member-avatar-wrapper {
  display: none;
}

.member-card.has-camera {
  padding: 12px;
}

/* Kullanıcı Başına Ses Ayarı (Gelişmiş Boost & Mute) */
.user-volume-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: 100%;
  max-width: 170px;
  border: 1px solid var(--bg-card-border);
}

.vol-icon-btn {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.vol-percent-label {
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  min-width: 32px;
  text-align: right;
}

/* Yazıyor Göstergesi */
.typing-indicator {
  padding: 4px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeIn 0.2s ease;
}

/* Ayarlar Modalı */
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.settings-card {
  width: 100%;
  max-width: 480px;
  background: #1e293b;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-card-border);
  background: rgba(15, 23, 42, 0.4);
}

.settings-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.icon-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.icon-close-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.settings-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 75vh;
  overflow-y: auto;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.settings-select {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
}
.settings-select:focus {
  outline: none;
  border-color: var(--primary);
}

.mic-test-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-meter-wrap {
  flex: 1;
  height: 8px;
  background: var(--bg-element);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.test-meter-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--success);
  border-radius: var(--radius-full);
  transition: width 0.05s ease;
}

.shortcuts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(15, 23, 42, 0.4);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

kbd {
  background: var(--bg-element);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: bold;
  border: 1px solid var(--bg-card-border);
  margin-right: 4px;
}
