:root {
  --bg: #07111f;
  --bg-2: #101827;
  --panel: rgba(255,255,255,.08);
  --panel-strong: rgba(255,255,255,.13);
  --text: #f7fbff;
  --muted: #a9b6c7;
  --line: rgba(255,255,255,.14);
  --good: #20c997;
  --warn: #ffc107;
  --bad: #dc3545;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { color: var(--text); background: var(--bg); }
a { color: inherit; }
.app-bg, .call-bg {
  background:
    radial-gradient(circle at top left, rgba(28, 112, 255, .35), transparent 35%),
    radial-gradient(circle at 70% 5%, rgba(15, 212, 170, .22), transparent 32%),
    radial-gradient(circle at 35% 80%, rgba(111, 66, 193, .18), transparent 34%),
    var(--bg);
}
.navbar { background: rgba(0,0,0,.20); backdrop-filter: blur(16px); }
.hero-card, .glass-card, .dashboard-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), rgba(255,255,255,.045));
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  border-radius: 28px;
  backdrop-filter: blur(20px);
}
.text-secondary { color: var(--muted) !important; }
.form-control, .form-select {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,.12);
  color: var(--text);
  border-color: rgba(100, 180, 255, .8);
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.18);
}
.form-control::placeholder { color: rgba(255,255,255,.45); }
.form-select option { color: #111827; }
.btn { border-radius: 14px; }
.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}
.join-panel { max-width: 620px; }
.video-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 1rem;
}
.video-tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 62vh;
  background: #050910;
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
}
.video-tile video {
  width: 100%;
  height: 100%;
  min-height: 62vh;
  display: block;
  object-fit: cover;
  background: #050910;
}
.video-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: rgba(0,0,0,.48);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(12px);
}
.media-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.media-badge span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.13);
}
.waiting-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, rgba(0,0,0,.72), rgba(0,0,0,.42));
  padding: 2rem;
}
.control-bar {
  display: flex;
  justify-content: center;
  gap: .75rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
}
.control-btn {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.14);
  transition: transform .15s ease, background .15s ease;
}
.control-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.22); }
.control-btn.active-off { background: #6c757d; }
.control-btn.danger { background: var(--bad); }
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.status-line span { color: var(--muted); }
.status-line strong { font-size: .9rem; text-align: right; }
.chat-box {
  height: 240px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: .75rem;
  background: rgba(0,0,0,.18);
}
.chat-message { margin-bottom: .65rem; }
.chat-message .meta { font-size: .75rem; color: var(--muted); }
.chat-message .bubble {
  display: inline-block;
  max-width: 100%;
  padding: .55rem .7rem;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  word-wrap: break-word;
}
.chat-message.me { text-align: right; }
.chat-message.me .bubble { background: rgba(13,110,253,.45); }
.code-box {
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  padding: 1rem;
}
code { color: #9ad1ff; }
.table-darkish { --bs-table-bg: rgba(255,255,255,.06); --bs-table-color: #f7fbff; }
@media (max-width: 991px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-tile, .video-tile video { min-height: 42vh; }
  .control-bar { border-radius: 22px; flex-wrap: wrap; }
}
@media (max-width: 575px) {
  .video-tile, .video-tile video { min-height: 34vh; border-radius: 18px; }
  .control-btn { width: 48px; height: 48px; }
}
