* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: #0b0e1a;
  color: #f0f4ff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(circle at 20% 30%, #162044 0%, #070a12 90%);
  padding: 16px;
}
.glow-orb {
  position: fixed;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.06) 0%, transparent 70%);
  top: -20%;
  right: -20%;
  pointer-events: none;
  z-index: 0;
}
.container { max-width: 900px; width: 100%; z-index: 1; position: relative; }
.brand { text-align: center; margin-bottom: 3rem; }
.logo-icon { display: inline-block; filter: drop-shadow(0 0 20px rgba(0,243,255,0.3)); }
.brand h1 {
  font-size: 3rem; font-weight: 700; letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, #94b8ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-top: 8px;
}
.brand h1 span { font-weight: 300; -webkit-text-fill-color: #00f3ff; }
.tagline { color: #8892b0; letter-spacing: 2px; font-size: 0.9rem; margin-top: 6px; }
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 2rem 0;
}
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.action-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
}
.action-card:hover { border-color: rgba(0, 243, 255, 0.2); transform: translateY(-4px); }
.icon-circle {
  width: 64px; height: 64px;
  background: rgba(0, 243, 255, 0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.action-card h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
.action-card p { color: #8892b0; font-size: 0.9rem; line-height: 1.5; margin-bottom: 20px; }
.btn-primary, .btn-secondary {
  border: none;
  padding: 14px 28px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, #00f3ff, #0066ff);
  color: #0b0e1a;
  box-shadow: 0 8px 24px rgba(0, 243, 255, 0.2);
}
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 12px 32px rgba(0, 243, 255, 0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.1);
  flex: 1;
}
.join-input-group {
  display: flex;
  gap: 8px;
}
.join-input-group input {
  flex: 2;
  padding: 14px 16px;
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1rem;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.join-input-group input:focus { border-color: #00f3ff; }
.footer-status {
  text-align: center;
  font-size: 0.75rem;
  color: #4a5278;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.status-dot {
  width: 6px; height: 6px; background: #00ff88; border-radius: 50%;
  display: inline-block; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; } }

/* ROOM PAGE */
#roomContainer {
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.video-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 0;
}
@media (max-width: 700px) { .video-grid { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } }
.video-wrapper {
  background: #111624;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 16px 48px -12px rgba(0,0,0,0.8);
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0c14;
}
.video-wrapper .label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ccd6f6;
  pointer-events: none;
}
.remote .label { background: rgba(0, 243, 255, 0.15); border: 1px solid rgba(0, 243, 255, 0.2); }
.control-bar {
  background: rgba(20, 28, 48, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 60px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
}
.ctrl-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.ctrl-btn:hover { background: rgba(255,255,255,0.12); transform: scale(1.05); }
.ctrl-btn.danger { background: rgba(255, 50, 70, 0.2); color: #ff5a6e; }
.ctrl-btn.danger:hover { background: rgba(255, 50, 70, 0.5); }
.room-code-badge {
  background: rgba(0,0,0,0.3);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #00f3ff;
  margin-left: auto;
}
