:root {
  --bg: #f7f6f4;
  --panel: #ffffff;
  --panel-2: #f1efec;
  --border: #e6e2db;
  --border-soft: #d9d3c8;
  --primary: #0e7490;
  --primary-2: #155e75;
  --primary-soft: #06b6d4;
  --primary-soft-2: #0891b2;
  --text: #18140f;
  --text-dim: #6e675d;
  --danger: #e11d48;
  --ok: #22c55e;
  --dark: #1c1c1c;
  --dark-2: #262524;
  --on-dark-text: #f2efe9;
  --on-dark-text-dim: #a89f92;
  --radius: 14px;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  --grad-soft: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-soft-2) 100%);
  --glow: 0 6px 20px rgba(21,94,117,0.28);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  height: 100%;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 6px var(--ok); opacity: 1; }
  50% { box-shadow: 0 0 12px var(--ok); opacity: 0.55; }
}

.wrap, .room-page { position: relative; z-index: 1; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
* { scrollbar-width: thin; scrollbar-color: var(--border-soft) transparent; }

a { color: var(--primary-2); text-decoration: none; }

.wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.topbar-left { display: flex; align-items: center; }
.topbar-right { display: flex; align-items: center; }

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.brand span { color: var(--primary-2); }

/* Logo (uygulama adı) - üst ortada, tüm sayfalarda tutarlı */
.logo-mark { display: flex; align-items: center; gap: 9px; }
.logo-icon {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: var(--grad); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(21,94,117,0.32);
}
.logo-icon svg { width: 16px; height: 16px; display: block; }
.logo-text {
  font-weight: 800; font-size: 19px; letter-spacing: -0.4px; color: var(--text);
  white-space: nowrap;
}
.logo-text .accent { color: var(--primary-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: var(--grad);
  color: white;
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
  pointer-events: none;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 8px 24px rgba(21,94,117,0.38); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); filter: brightness(0.98); }
.btn.secondary { background: var(--panel-2); color: var(--text); box-shadow: none; border: 1px solid var(--border); }
.btn.secondary::before { display: none; }
.btn.secondary:hover { border-color: var(--border-soft); box-shadow: none; transform: none; background: var(--panel-2); filter: none; }
.btn.ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border-soft); box-shadow: none; }
.btn.ghost::before { display: none; }
.btn.ghost:hover { color: var(--text); border-color: var(--primary); box-shadow: none; transform: none; filter: none; }
.btn.danger { background: var(--danger); box-shadow: 0 3px 10px rgba(225,29,72,0.25); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; filter: none; }

.auth-card {
  width: 100%;
  max-width: 380px;
  flex-shrink: 0;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(24,20,15,0.08);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.4s ease both;
  z-index: 1;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
}
.auth-card h1 { font-size: 23px; margin: 0 0 4px; font-weight: 800; color: var(--text); }
.auth-card p.sub { color: var(--text-dim); margin: 0 0 20px; font-size: 14px; }
.auth-logo { display: block; width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 18px; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.switch-link { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--text-dim); }
.switch-link a { color: var(--primary); font-weight: 700; text-decoration: none; }
.switch-link a:hover { text-decoration: underline; }

/* Giriş sayfası: hero + kart yan yana */
.auth-page {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 72px; flex-wrap: wrap; padding: 48px 24px; position: relative; z-index: 1;
}
.auth-hero { max-width: 420px; animation: fadeInUp 0.4s ease both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--primary-2); background: var(--panel-2); margin-bottom: 18px;
}
.hero-title {
  font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -1px;
  margin: 0 0 16px; color: var(--text);
}
.hero-title span { color: var(--primary); }
.hero-sub { font-size: 16px; line-height: 1.6; color: var(--text-dim); margin: 0 0 36px; max-width: 380px; }
.hero-visual { position: relative; height: 160px; }
.hero-visual::before {
  content: ''; position: absolute; top: -30px; left: 30px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(14,116,144,0.16) 0%, rgba(14,116,144,0) 70%);
  pointer-events: none; z-index: -1;
}
.hero-tile {
  position: absolute; width: 80px; height: 80px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  box-shadow: 0 10px 24px rgba(24,20,15,0.1), 0 0 0 1px rgba(255,255,255,0.5) inset;
}
.hero-tile.t2 { box-shadow: 0 10px 24px rgba(21,94,117,0.18), 0 0 0 1px rgba(255,255,255,0.5) inset; }
.hero-tile.t1 { top: 0; left: 10px; animation: floatTile 4.2s ease-in-out infinite; }
.hero-tile.t2 { top: 42px; left: 136px; animation: floatTile 4.8s ease-in-out infinite 0.4s; }
.hero-tile.t3 { top: 100px; left: 48px; animation: floatTile 5.2s ease-in-out infinite 0.8s; }
@keyframes floatTile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,116,144,0.15); }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tabs button {
  flex: 1;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tabs button.active { background: var(--grad); color: white; border-color: var(--primary); box-shadow: 0 3px 10px rgba(21,94,117,0.28); }

.error-msg { color: var(--danger); font-size: 13px; margin: -6px 0 14px; min-height: 16px; }
.success-msg { color: #22c55e; font-size: 13px; margin: -6px 0 14px; line-height: 1.5; }

.container { max-width: 900px; margin: 0 auto; padding: 24px 18px; width: 100%; flex: 1; position: relative; z-index: 1; }
.container h1 { font-weight: 800; letter-spacing: -0.5px; color: var(--text); }

.room-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.room-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(24,20,15,0.04), 0 1px 0 rgba(255,255,255,0.6) inset;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  animation: fadeInUp 0.35s ease both;
}
.room-row:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(21,94,117,0.14), 0 1px 0 rgba(255,255,255,0.6) inset; }
.room-row button.btn.secondary { transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.room-row:hover button.btn.secondary { background: var(--grad); color: white; border-color: transparent; }
.room-row .meta { font-size: 13px; color: var(--text-dim); }
.room-row h3 { margin: 0 0 4px; font-size: 16px; }

.new-room-box { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.new-room-box input { flex: 1; min-width: 180px; }

.empty { color: var(--text-dim); text-align: center; padding: 40px 0; animation: fadeInUp 0.35s ease both; }

/* Skeleton yükleme kartları */
.skeleton-row {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; position: relative; overflow: hidden;
}
.skeleton-bar { height: 12px; border-radius: 6px; background: var(--panel-2); width: 45%; }
.skeleton-bar.short { width: 25%; height: 10px; }
.skeleton-row::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(24,20,15,0.05), transparent);
  animation: shimmer 1.4s infinite;
}

/* ================= Room / call page ================= */
.room-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--bg); }

.room-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--grad-soft);
  box-shadow: 0 4px 16px rgba(21,94,117,0.18);
  position: relative; z-index: 2;
}
.room-header .header-left { display: flex; align-items: center; gap: 14px; }
.room-header .header-left .room-meta { display: flex; flex-direction: column; }
.room-header .header-divider { width: 1px; height: 26px; background: rgba(28,28,28,0.15); flex: 0 0 auto; }
.room-header .logo-icon { box-shadow: 0 3px 8px rgba(21,94,117,0.28), 0 0 0 2px rgba(255,255,255,0.4); }
.room-header .brand { color: var(--dark); }
.room-header .brand::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--dark); margin-right: 8px; vertical-align: middle;
  animation: pulseDotDark 1.8s ease-in-out infinite;
}
.live-badge {
  display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px;
  background: var(--danger); color: white !important; font-size: 11px; font-weight: 800;
  letter-spacing: 0.03em; vertical-align: middle;
  animation: pulseLiveBadge 1.8s ease-in-out infinite;
}
@keyframes pulseLiveBadge {
  0%, 100% { box-shadow: 0 2px 8px rgba(225,29,72,0.45); }
  50% { box-shadow: 0 2px 14px rgba(225,29,72,0.85); }
}
@keyframes pulseDotWhite {
  0%, 100% { box-shadow: 0 0 6px rgba(255,255,255,0.8); opacity: 1; }
  50% { box-shadow: 0 0 10px rgba(255,255,255,0.4); opacity: 0.6; }
}
@keyframes pulseDotDark {
  0%, 100% { box-shadow: 0 0 6px rgba(28,28,28,0.5); opacity: 1; }
  50% { box-shadow: 0 0 10px rgba(28,28,28,0.25); opacity: 0.6; }
}
.room-header #roomStatus { color: rgba(28,28,28,0.72); }

.header-right { display: flex; align-items: center; gap: 10px; }
.online-badge {
  display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(21,94,117,0.15);
  font-size: 13px; font-weight: 700; color: var(--dark);
}
.online-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: 0 0 auto;
  animation: pulseDot 1.8s ease-in-out infinite;
}
.room-header .header-right .btn.ghost {
  color: var(--dark); background: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(21,94,117,0.15);
}
.room-header .header-right .btn.ghost:hover { color: var(--dark); border-color: white; background: white; }

/* Katilimci sayaci + acilir liste (masaustu: badge altinda dropdown, mobil: alttan kaydirmali panel) */
.online-badge-wrap { position: relative; }
.online-badge { cursor: pointer; font-family: inherit; }

.dropdown-backdrop { display: none; }

.participants-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 260px; max-height: 340px; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 32px rgba(24,20,15,0.18);
  padding: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 30;
}
.participants-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.participants-dropdown .dropdown-handle { display: none; }
.participants-dropdown h4 {
  margin: 0 0 10px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); font-weight: 700;
}
.participants-dropdown ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.participants-dropdown li {
  font-size: 13px; font-weight: 600;
  background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.participants-dropdown li:hover { border-color: var(--primary); }
.participants-dropdown .p-row { display: flex; align-items: center; gap: 10px; }
.participants-dropdown .p-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.participants-dropdown .p-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.participants-dropdown li .avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 11px; font-weight: 800; color: var(--text-dim); background: var(--panel-2);
  border: 1px solid var(--border); text-decoration: none;
}
.participants-dropdown li .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.participants-dropdown li .avatar svg { width: 60%; height: 60%; color: var(--text-dim); }
.participants-dropdown li .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: 0 0 auto;
  margin-left: auto; animation: pulseDot 1.8s ease-in-out infinite;
}
.role-badge {
  display: inline-flex; align-items: center; gap: 3px; width: fit-content; font-size: 10px; font-weight: 800;
  padding: 1px 7px; border-radius: 999px; letter-spacing: 0.02em;
}
.role-badge .role-icon { font-size: 10px; line-height: 1; }
.role-badge.role-admin { background: var(--dark); color: white; }
.role-badge.role-creator { background: var(--grad); color: white; }
.role-badge.role-moderator { background: var(--panel); color: var(--primary-2); border: 1px solid var(--primary-2); }
.role-badge.role-member { background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--border); }

.mod-menu-btn {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: none;
  background: var(--panel); color: var(--text-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.mod-menu-btn:hover { background: var(--border); color: var(--text); }

.mod-actions {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.mod-action-btn {
  text-align: left; border: none; background: transparent; color: var(--text);
  font-size: 12px; font-weight: 600; padding: 6px 8px; border-radius: 8px; cursor: pointer;
  transition: background 0.12s ease;
}
.mod-action-btn:hover { background: var(--panel); }
.mod-action-btn.danger { color: var(--danger); }

.requests-badge { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; border: 1px solid rgba(255,255,255,0.5); }
.requests-badge .dot { display: none; }
.request-actions { display: flex; gap: 8px; margin-top: 8px; }
.request-actions button {
  flex: 1; border: none; border-radius: 8px; padding: 7px 0; font-size: 12px; font-weight: 700; cursor: pointer;
}
.request-actions .approve { background: var(--ok); color: white; }
.request-actions .reject { background: var(--danger); color: white; }

/* "Yerini Değiştir": 3x3 kare kutucuklu, numaralı koltuk seçici modal */
.seat-picker-backdrop {
  position: fixed; inset: 0; background: rgba(24,20,15,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 16px;
}
.seat-picker-modal {
  background: var(--panel); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(24,20,15,0.28);
  padding: 20px; width: 100%; max-width: 320px;
}
.seat-picker-modal h4 {
  margin: 0 0 14px; font-size: 14px; font-weight: 800; color: var(--text); text-align: center;
}
.seat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.seat-btn {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.seat-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.seat-btn .seat-num { font-size: 18px; font-weight: 800; line-height: 1; }
.seat-btn .seat-name { font-size: 10px; font-weight: 600; color: var(--text-dim); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; padding: 0 4px; }
.seat-btn.occupied { background: rgba(225,29,72,0.08); border-color: rgba(225,29,72,0.25); }
.seat-btn.occupied .seat-name { color: var(--danger); }
.seat-btn.current { background: rgba(14,116,144,0.1); border-color: var(--primary); cursor: default; }
.seat-btn.current .seat-name { color: var(--primary-2); }
.seat-picker-close {
  display: block; width: 100%; margin-top: 14px; padding: 9px 0;
  border: none; border-radius: 10px; background: var(--panel-2); color: var(--text);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.seat-picker-close:hover { background: var(--border); }

/* Canli yayin daveti penceresi - daha "kibar" gorunum: yumusak golge,
   yuvarlak avatar rozeti ve ozel tasarim checkbox ile. */
.invite-dialog-modal {
  max-width: 300px; padding: 26px 22px 20px; text-align: center;
  box-shadow: 0 24px 60px rgba(24,20,15,0.22);
}
.invite-dialog-modal h4 {
  font-size: 16px; margin: 0 0 8px;
}
.invite-dialog-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--primary), var(--primary-2));
  color: white; font-size: 22px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(14,116,144,0.28);
}
.invite-dialog-icon.media-request-icon svg {
  width: 26px; height: 26px; stroke: white;
}
.invite-dialog-text {
  font-size: 13.5px; color: var(--text-dim); margin: 0 0 18px; text-align: center; line-height: 1.5;
}
.invite-dialog-check {
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-dim);
  margin-bottom: 18px; cursor: pointer; text-align: left;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px;
}
.invite-dialog-check input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.invite-dialog-check-box {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--border); background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.invite-dialog-check-box::after {
  content: ''; width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px); opacity: 0; transition: opacity 0.1s ease;
}
.invite-dialog-check input[type="checkbox"]:checked ~ .invite-dialog-check-box {
  background: var(--primary); border-color: var(--primary);
}
.invite-dialog-check input[type="checkbox"]:checked ~ .invite-dialog-check-box::after { opacity: 1; }
.invite-dialog-actions { display: flex; gap: 10px; }
.invite-dialog-btn {
  flex: 1; border: none; border-radius: 12px; padding: 11px 0;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.invite-dialog-btn.join { background: var(--primary); color: white; box-shadow: 0 6px 16px rgba(14,116,144,0.25); }
.invite-dialog-btn.join:hover { background: var(--primary-2); transform: translateY(-1px); }
.invite-dialog-btn.decline { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.invite-dialog-btn.decline:hover { background: var(--border); }

/* Mobil: dropdown yerine alttan acilan kaydirmali panel */
@media (max-width: 760px) {
  .participants-dropdown {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0;
    width: auto; max-height: 65vh;
    border-radius: 20px 20px 0 0;
    border-left: none; border-right: none; border-bottom: none;
    padding: 10px 16px 20px;
    transform: translateY(100%);
    box-shadow: 0 -12px 32px rgba(24,20,15,0.28);
    z-index: 60;
  }
  .participants-dropdown.open { transform: translateY(0); }
  .participants-dropdown .dropdown-handle {
    display: block; width: 40px; height: 4px; border-radius: 999px;
    background: var(--border-soft); margin: 4px auto 14px;
  }
  .dropdown-backdrop.open {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 55;
  }
}

/* Profil fotografi (topbar butonu + yukleme modali) */
.profile-avatar-btn {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--border); background: var(--panel-2); cursor: pointer;
  padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease, transform 0.15s ease; margin-right: 10px;
}
.profile-avatar-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.profile-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-fallback-icon { width: 20px; height: 20px; color: var(--text-dim); }
.profile-modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(24,20,15,0.5); z-index: 90;
  align-items: center; justify-content: center;
}
.profile-modal-backdrop.open { display: flex; }
.profile-modal {
  background: var(--panel); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(24,20,15,0.28); padding: 24px; width: 300px; text-align: center;
}
.profile-modal h3 { margin: 0 0 16px; font-size: 16px; }
.profile-modal-avatar {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden;
  background: var(--panel-2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.profile-modal-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-modal-avatar .avatar-fallback-icon { width: 46px; height: 46px; }
.profile-modal-error { color: var(--danger); font-size: 12px; min-height: 16px; margin-bottom: 4px; }
.profile-modal-actions { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.profile-modal-close { margin-top: 14px; width: 100%; }

/* Profil sayfasi (profile.html): avatar + takipci/takip sayaclari +
   takip et butonu + takip ettikleri listesi. */
.profile-page-card {
  max-width: 420px; margin: 24px auto 40px; text-align: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(24,20,15,0.06); padding: 28px 24px;
  animation: fadeInUp 0.25s ease both;
}
.profile-page-avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto; overflow: hidden;
  background: var(--panel-2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.profile-page-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-page-avatar .avatar-fallback-icon { width: 42px; height: 42px; }
.profile-page-stats { display: flex; justify-content: center; gap: 36px; margin-top: 14px; }
.profile-page-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.profile-page-stat .num { font-size: 20px; font-weight: 800; color: var(--text); }
.profile-page-stat .label { font-size: 12px; color: var(--text-dim); }
.profile-following-list { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.profile-following-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  text-decoration: none; color: var(--text); transition: background 0.12s ease;
}
.profile-following-row:hover { background: var(--panel-2); }
.profile-following-avatar {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--panel-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.profile-following-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-following-avatar .avatar-fallback-icon { width: 16px; height: 16px; color: var(--text-dim); }
.profile-following-name { font-size: 13px; font-weight: 600; }

/* Katilimci listesindeki minik takip et butonu */
.participant-follow-btn {
  border: 1px solid var(--border); background: var(--panel); color: var(--primary-2);
  font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px;
  cursor: pointer; flex: 0 0 auto; transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.participant-follow-btn:hover { background: var(--panel-2); }
.participant-follow-btn.following { background: var(--grad); color: white; border-color: transparent; }

/* Üst: küçük kamera kutucukları (en fazla 9 slot) - referans gorseldeki
   gibi tum izgara alani (dolu karolar + davet kutulari) koyu/gri, sahnenin
   kendisi siyah - eskiden burasi acik camgobegi renkteydi, dolu karolarla
   (koyu) tutarsizdi. */
.cam-strip {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px; background: var(--dark);
  border-bottom: 1px solid #000;
  box-shadow: 0 6px 14px -8px rgba(0,0,0,0.4);
  position: relative; z-index: 1;
}
.cam-slot {
  position: relative; flex: 0 0 auto;
  width: 130px; height: 130px;
  background: var(--dark-2); border-radius: 12px; overflow: hidden; border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  animation: popIn 0.25s ease both;
}
.cam-slot:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(24,20,15,0.18); }
.cam-slot.is-local { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(14,116,144,0.35), 0 2px 6px rgba(24,20,15,0.12); }
.cam-slot.speaking {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(225,29,72,0.85), inset 0 0 0 1px rgba(225,29,72,0.45), 0 2px 6px rgba(24,20,15,0.12);
}
.cam-slot video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1.18) contrast(1.08) saturate(1.12);
}
.cam-slot::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,205,165,0.22), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,0) 54%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.cam-slot .name-tag {
  position: absolute; left: 6px; bottom: 6px; background: transparent;
  padding: 3px 9px 3px 0; border-radius: 999px; font-size: 11px; font-weight: 700; color: white; max-width: calc(100% - 12px);
  z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  display: inline-flex; align-items: center; gap: 4px;
}
.cam-slot .name-tag .name-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
/* Kamera kapaliyken (avatar karti gorunumu) isim ortalanip pilin altina
   duz beyaz metin olarak yerlesiyor - ornek gorseldeki karti taklit ediyor. */
.cam-slot.cam-off .name-tag {
  left: 50%; right: auto; bottom: 8px; transform: translateX(-50%);
  max-width: calc(100% - 10px); font-size: 10.5px; justify-content: center;
}
/* Yayindaki kisinin nicki yaninda minik takip et butonu - "yayindayken
   nickin yaninda" istegine gore, katilimcilar panelinden ayri olarak
   direkt karonun uzerinde de gosteriliyor. */
.cam-slot .tile-follow-btn {
  flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.25); color: white; font-size: 10px; font-weight: 800;
  line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; text-shadow: none; transition: background 0.12s ease;
}
.cam-slot .tile-follow-btn:hover { background: rgba(255,255,255,0.4); }
.cam-slot .tile-follow-btn.following { background: var(--danger); }
.cam-slot .muted-badge, .cam-slot .camoff-badge {
  position: absolute; padding: 4px; border-radius: 999px; color: white; display: flex;
  box-shadow: 0 2px 5px rgba(0,0,0,0.35); z-index: 3;
}
.cam-slot .muted-badge { right: 6px; top: 6px; background: var(--danger); }
.cam-slot .camoff-badge { left: 6px; top: 6px; background: rgba(0,0,0,0.5); }
.cam-slot .muted-badge svg, .cam-slot .camoff-badge svg { width: 12px; height: 12px; display: block; }
/* Kamera kapaliyken mikrofon rozeti, avatar dairesinin sag-alt kenarina
   binecek sekilde tasiniyor - ornek gorseldeki gibi. */
.cam-slot.cam-off .muted-badge { left: 78px; top: 58px; right: auto; }
.cam-slot.cam-off video { display: none; }

/* Kamera kapaliyken gosterilen avatar: fotograf varsa fotograf, yoksa genel
   kisi silueti ikonu. Ornek gorseldeki gibi kucuk, dairesel ve karonun ust
   kismina ortalanmis - artik karonun tamamini kaplamiyor. */
.cam-slot .avatar-placeholder {
  display: none; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 58px; height: 58px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--dark-2); overflow: hidden; border: 2px solid rgba(255,255,255,0.12);
}
.cam-slot.cam-off .avatar-placeholder { display: flex; }
.cam-slot .avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-slot .avatar-placeholder-icon { width: 52%; color: var(--on-dark-text-dim); display: flex; }
.cam-slot .avatar-placeholder-icon svg { width: 100%; height: 100%; display: block; }

/* Karonun ustundeki kucuk durum rozeti: rolu varsa rolu, konusuyorsa
   "Konuşuyor", yoksa varsayilan "Dinliyor" - gonderilen ornek gorseldeki
   konusmaci kartlarindaki rozetlerle ayni fikir. Kamera kapaliyken avatarin
   hemen altina, kamera aciksa videonun ustune bindirilmis sekilde durur. */
.cam-slot .status-pill {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.02em; color: white;
  padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,0.5);
  z-index: 2; white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.cam-slot.cam-off .status-pill { top: 78px; }
.cam-slot .status-pill.speaking-pill { background: var(--danger); }
/* Admin/Moderatör rozeti: digerlerinden daha kucuk ve yari saydam dursun
   diye (kullanici istegi) - normal "Dinliyor/Konuşuyor" pilinden ayri stil. */
.cam-slot .status-pill.role { background: rgba(14,116,144,0.75); font-size: 7px; padding: 1.5px 7px; }

/* Boş slotlar gizli; tek bir özet davet kutusu gösteriliyor. Karonun kendisiyle
   (.cam-slot) ayni koyu gri zemin - referans gorseldeki gibi tum izgara
   tutarli gri/siyah dursun diye, eskiden acik/yari saydam beyazdi. */
.cam-slot.empty-hidden { display: none; }
.invite-tile {
  width: 130px; height: 130px; flex: 0 0 auto; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark-2); border: 1.5px dashed rgba(255,255,255,0.16);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  animation: popIn 0.25s ease both;
}
.invite-tile.hidden { display: none; }
.invite-tile:hover { border-color: var(--danger); background: var(--dark-2); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.35); }
.invite-tile button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: transparent; border: none; color: var(--on-dark-text-dim);
  border-radius: 8px; padding: 6px 10px; cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.invite-tile button:hover { color: var(--on-dark-text); transform: scale(1.05); }
.invite-tile .invite-icon {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: white; margin-bottom: 2px;
  box-shadow: 0 3px 8px rgba(21,94,117,0.3);
}
.invite-tile .invite-icon svg { width: 14px; height: 14px; }
.invite-tile .invite-text { font-size: 11px; font-weight: 700; }
.invite-tile .invite-count { font-size: 10px; color: var(--on-dark-text-dim); font-weight: 500; }

/* Orta: sol sohbet + sağ katılımcı listesi */
.main-area { flex: 1; display: flex; overflow: hidden; }

.chat-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.chat-empty {
  margin: auto; text-align: center; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  animation: fadeInUp 0.3s ease both;
}
.chat-empty-icon {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--border); font-size: 22px; margin-bottom: 6px;
}
.chat-empty-sub { font-size: 12px; color: var(--text-dim); opacity: 0.8; }
.chat-msg {
  font-size: 13px; line-height: 1.45; word-break: break-word;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 7px 12px; max-width: 82%; align-self: flex-start;
  box-shadow: 0 1px 4px rgba(24,20,15,0.04), 0 1px 0 rgba(255,255,255,0.6) inset;
  animation: fadeInUp 0.2s ease both;
}
.chat-msg.me {
  background: linear-gradient(135deg, #ecfdf9 0%, #ccfbf1 100%);
  border-color: #99f6e4; align-self: flex-end;
}
.chat-msg .who { color: var(--primary-2); font-weight: 700; margin-right: 6px; }
.chat-msg .who.me { color: var(--primary-2); }
.chat-msg .time { color: var(--text-dim); font-size: 10px; margin-left: 6px; }
.chat-msg.system { color: var(--text-dim); font-style: italic; background: transparent; border: none; align-self: center; box-shadow: none; }
.chat-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--panel); }
.chat-input-row input {
  flex: 1; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border-soft);
  background: #ffffff; color: var(--text); font-size: 14px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chat-input-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,116,144,0.15); }
.chat-input-row > button {
  border: none; border-radius: 999px; padding: 10px 18px; background: var(--primary);
  color: white; font-weight: 700; cursor: pointer; box-shadow: 0 3px 10px rgba(21,94,117,0.25);
  transition: transform 0.1s ease, background 0.15s ease;
}
.chat-input-row > button:hover { background: var(--primary-2); }
.chat-input-row > button:active { transform: scale(0.96); }

.emoji-wrap { position: relative; flex: 0 0 auto; }
#emojiBtn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-soft);
  background: var(--panel-2); font-size: 19px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: transform 0.15s ease, border-color 0.15s ease;
}
#emojiBtn:hover { transform: translateY(-1px); border-color: var(--primary); }
.emoji-picker {
  display: none; position: absolute; bottom: calc(100% + 10px); left: 0;
  grid-template-columns: repeat(6, 1fr); gap: 4px;
  background: var(--panel);
  border: 1px solid var(--border-soft); border-radius: 14px; padding: 10px;
  box-shadow: 0 10px 26px rgba(24,20,15,0.16); z-index: 5; width: 216px;
}
.emoji-picker.open { display: grid; }
.emoji-picker button {
  background: transparent; border: none; font-size: 19px; cursor: pointer;
  border-radius: 8px; padding: 5px; line-height: 1; transition: background 0.12s ease, transform 0.12s ease;
}
.emoji-picker button:hover { background: var(--panel-2); transform: scale(1.12); }

.participants-panel {
  width: 230px; flex: 0 0 auto; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 16px; overflow-y: auto;
  background: var(--panel-2);
  border-left: 1px solid var(--border);
  box-shadow: -6px 0 14px -10px rgba(24,20,15,0.15);
}
.participants-panel h4 {
  margin: 0 0 10px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); font-weight: 700;
}
.participants-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.participants-panel li {
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.participants-panel li:hover { transform: translateX(-2px); border-color: var(--primary); box-shadow: 0 4px 12px rgba(21,94,117,0.1); }
.participants-panel li .avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 11px; font-weight: 800; color: white; background: var(--grad);
  box-shadow: 0 2px 6px rgba(21,94,117,0.3);
}
.participants-panel li .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.participants-panel li .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: 0 0 auto;
  margin-left: auto; animation: pulseDot 1.8s ease-in-out infinite;
}

.controls {
  display: flex; align-items: flex-start; justify-content: center; gap: 26px;
  padding: 16px; background: var(--grad-soft);
  box-shadow: 0 -4px 16px rgba(21,94,117,0.18);
  position: relative; z-index: 2;
}
.ctrl { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ctrl-label { font-size: 11px; color: rgba(28,28,28,0.75); font-weight: 700; }
.round-btn {
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: white; color: var(--primary-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(21,94,117,0.3), 0 0 0 1px rgba(255,255,255,0.5) inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.round-btn svg { width: 22px; height: 22px; display: block; }
.round-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(21,94,117,0.35), 0 0 0 1px rgba(255,255,255,0.5) inset; }
.round-btn:active:not(:disabled) { transform: scale(0.94); }
.round-btn.off { background: var(--danger); color: white; box-shadow: 0 4px 12px rgba(225,29,72,0.35); }
.round-btn.leave { background: var(--dark); color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
.round-btn.leave:hover { background: #000; }
.round-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ctrl { position: relative; }
.live-controls { display: flex; gap: 26px; }
.live-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.live-cta-btn {
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--grad); color: white; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 14px rgba(21,94,117,0.35);
  transition: transform 0.15s ease;
}
.live-cta-btn:hover:not(:disabled) { transform: translateY(-2px); }
.live-cta-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.live-cta-hint { font-size: 12px; color: var(--text-dim); text-align: center; }
.perm-help {
  max-width: 280px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 8px 20px rgba(24,20,15,0.12); text-align: center;
}
.perm-help p { margin: 0 0 10px; font-size: 12px; line-height: 1.5; color: var(--text); white-space: pre-line; text-align: left; }
.perm-retry-btn {
  border: none; border-radius: 999px; padding: 8px 18px; font-size: 12px; font-weight: 700;
  background: var(--grad); color: white; cursor: pointer;
}
.filter-panel {
  display: none; position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: var(--panel); border-radius: 16px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 0 1px var(--border);
  gap: 8px; flex-wrap: wrap; width: 260px; justify-content: center; z-index: 5;
}
.filter-panel.open { display: flex; }
.filter-chip {
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--primary-2); }
.filter-chip.active { background: var(--grad); color: white; border-color: transparent; }

.hint { font-size: 12px; color: var(--text-dim); text-align: center; padding: 6px 0 0; }

/* ===== Lobi (Odalar) sayfasi - koyu/kirmizi mockup temasi =====
   Sadece .lobby-page icinde gecerli, diger sayfalarin (giris, oda, profil)
   acik temasini etkilemiyor. */
.lobby-page { background: var(--dark); min-height: 100vh; }
.lobby-page > .topbar { background: var(--dark); border-bottom: 1px solid #2a2a2a; }
.lobby-page > .topbar .logo-text { color: var(--on-dark-text); }
.lobby-page > .topbar .logo-text .accent { color: var(--danger); }
.lobby-page > .topbar .hint { color: var(--on-dark-text-dim); }
.lobby-page > .topbar .profile-avatar-btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.lobby-page > .topbar .avatar-fallback-icon { color: var(--on-dark-text-dim); }
.lobby-page > .topbar .btn.ghost { color: var(--on-dark-text-dim); border-color: rgba(255,255,255,0.18); }
.lobby-page > .topbar .btn.ghost:hover { color: var(--on-dark-text); border-color: var(--danger); }
/* Profil fotografi modali kasitli olarak acik temada kaliyor (yuzen bir
   kart), bu yuzden yukaridaki koyu tema geçersiz kılmaları .topbar ile
   sinirli - modal buraya dahil degil. */
.lobby-page .lobby-container .btn.secondary { background: rgba(255,255,255,0.08); color: var(--on-dark-text); border-color: rgba(255,255,255,0.16); }
.lobby-page .lobby-container .btn { background: var(--danger); box-shadow: 0 4px 14px rgba(225,29,72,0.3); }
.lobby-page .lobby-container .btn:hover { box-shadow: 0 8px 20px rgba(225,29,72,0.42); }
.lobby-page .lobby-container .btn.ghost {
  background: transparent; color: var(--on-dark-text-dim); border: 1px solid rgba(255,255,255,0.18); box-shadow: none;
}
.lobby-page .lobby-container .btn.ghost:hover { color: var(--on-dark-text); border-color: var(--danger); box-shadow: none; }
.lobby-page .lobby-hero .accent { color: var(--danger); }
.lobby-page .error-msg { text-align: center; }

.lobby-container { max-width: 640px; margin: 0 auto; padding: 22px 18px 100px; width: 100%; flex: 1; position: relative; z-index: 1; }

.lobby-hero { text-align: center; margin-bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.lobby-hero-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: var(--on-dark-text); }
.lobby-hero-sub { font-size: 13px; color: var(--danger); font-weight: 600; }

.lobby-create-box { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.lobby-create-box input, .lobby-create-box select {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,0.14); color: var(--on-dark-text);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: var(--font);
}
.lobby-create-box input { flex: 1; min-width: 160px; }
.lobby-create-box select { min-width: 150px; }
.lobby-invite-box { margin-top: 10px; background: var(--dark-2); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 14px; }

.lobby-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.lobby-tabs::-webkit-scrollbar { display: none; }
.lobby-tab {
  flex: 0 0 auto; background: transparent; border: none; color: var(--on-dark-text-dim);
  font-size: 14px; font-weight: 700; padding: 8px 4px; cursor: pointer; position: relative;
  border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap; margin-right: 14px;
}
.lobby-tab:hover { color: var(--on-dark-text); }
.lobby-tab.active { color: var(--danger); border-bottom-color: var(--danger); }

.lobby-room-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.lobby-featured-label { font-size: 13px; font-weight: 700; color: var(--danger); margin: 6px 0 -2px; display: flex; align-items: center; gap: 4px; }
.lobby-room-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--dark-2); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
  padding: 14px; animation: fadeInUp 0.3s ease both;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lobby-room-card:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }
.lobby-room-card.featured { border-color: var(--danger); box-shadow: 0 0 0 1px rgba(225,29,72,0.35); }
.lobby-room-icon {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.lobby-room-body { flex: 1; min-width: 0; }
.lobby-room-title-row { display: flex; align-items: center; gap: 8px; }
.lobby-room-title-row h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--on-dark-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-live-dot { font-size: 10px; font-weight: 800; color: var(--danger); letter-spacing: 0.02em; flex: 0 0 auto; }
.lobby-room-tagline { font-size: 12px; color: var(--on-dark-text-dim); margin-top: 3px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lobby-room-meta { font-size: 11.5px; color: var(--on-dark-text-dim); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.lobby-room-meta .dot-sep { opacity: 0.5; }
.lobby-join-btn { flex: 0 0 auto; padding: 8px 16px; font-size: 13px; }

.lobby-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; background: var(--dark); border-top: 1px solid #2a2a2a;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0));
}
.lobby-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--on-dark-text-dim); font-size: 11px; font-weight: 600; text-decoration: none;
  transition: color 0.15s ease;
}
.lobby-nav-item svg { width: 20px; height: 20px; }
.lobby-nav-item:hover { color: var(--on-dark-text); }
.lobby-nav-item.active { color: var(--danger); }

@media (max-width: 480px) {
  .lobby-create-box select { flex: 1 1 100%; }
}
