:root {
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-soft: #f7fbff;
  --text: #162033;
  --muted: #64748b;
  --line: rgba(210, 224, 242, 0.9);
  --primary: #3b82f6;
  --primary-deep: #1d4ed8;
  --accent: #ff8a1f;
  --accent-deep: #ea580c;
  --green: #22c55e;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background: linear-gradient(
    135deg,
    #020617,
    #0f172a,
    #1e293b
  );
}.page { position: relative; max-width: 1400px; margin: 0 auto; padding: 24px; overflow: hidden; }
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
}.glass-strong {
  background: var(--surface-strong);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}
.bg-orb { position: absolute; border-radius: 999px; filter: blur(28px); pointer-events: none; opacity: 0.55; }
.orb-one { width: 280px; height: 280px; top: -60px; right: -60px; background: radial-gradient(circle, rgba(59,130,246,0.30), rgba(59,130,246,0.02)); }
.orb-two { width: 240px; height: 240px; left: -80px; bottom: 120px; background: radial-gradient(circle, rgba(255,138,31,0.25), rgba(255,138,31,0.02)); }
.hero { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; margin-bottom: 22px; padding: 26px; border-radius: 32px; }
.logo-wrap { display: flex; align-items: center; gap: 18px; }
.logo {
  width: 78px; height: 78px; display: grid; place-items: center; border-radius: 24px; color: white;
  font-size: 40px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.24), inset 0 1px 0 rgba(255,255,255,0.35);
}
.hero h1 { margin: 0 0 6px; font-size: 36px; line-height: 1.03; letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-badges span, .tiny-pill {
  padding: 10px 14px; font-size: 13px; font-weight: 800; color: var(--primary-deep);
  background: linear-gradient(180deg, #eef5ff, #e8f1ff); border: 1px solid #d6e6ff; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.tiny-pill { font-size: 12px; padding: 8px 12px; }
.hero-side { display: grid; gap: 14px; align-content: center; }
.status-box, .server-box { min-height: 84px; padding: 18px; border-radius: 22px; }
.status-box { display: flex; align-items: center; gap: 12px; }
.server-box { display: grid; gap: 6px; }
.server-box span, .status-box span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-box strong, .server-box strong { font-size: 13px; }
.status-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.14); flex: 0 0 auto; }
.main-grid { display: grid; grid-template-columns: 1.48fr 0.82fr; gap: 22px; }
.video-area, .chat-area { position: relative; border-radius: var(--radius-xl); padding: 18px; }
.section-head, .chat-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.section-head h2, .chat-header h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.section-head p, .chat-header p { margin: 0; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.video-card { padding: 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.local-card { background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,250,255,0.96)); }
.remote-card { background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,247,239,0.96)); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-top h3 { margin: 0; font-size: 18px; }
video {
  width: 100%; min-height: 360px; border-radius: 20px;
  background: radial-gradient(circle at top, rgba(59,130,246,0.18), transparent 30%), linear-gradient(135deg, #0b1220, #111827);
  border: 1px solid #1f2937; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.video-footer { margin-top: 16px; }
.info-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.chip { padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.chip-blue { color: var(--primary-deep); background: #eaf2ff; border: 1px solid #d7e7ff; }
.chip-accent { color: var(--accent-deep); background: #fff0e5; border: 1px solid #ffd7bd; }
.action-row { display: flex; gap: 12px; margin-top: 16px; }
.mobile-actions { display: none; }
.btn {
  border: 0; border-radius: 18px; padding: 14px 22px; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-2px); opacity: 0.99; filter: saturate(1.05); }
.btn[disabled] { cursor: not-allowed; opacity: 0.72; transform: none; }
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); box-shadow: 0 14px 28px rgba(59, 130, 246, 0.24), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-accent { color: white; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); box-shadow: 0 14px 28px rgba(255, 138, 31, 0.24), inset 0 1px 0 rgba(255,255,255,0.25); }
.chat-area { display: flex; flex-direction: column; }
.messages { flex: 1; min-height: 530px; max-height: 650px; overflow: auto; padding: 10px 2px; }
.messages::-webkit-scrollbar { width: 10px; }
.messages::-webkit-scrollbar-thumb { background: rgba(164, 181, 203, 0.65); border-radius: 999px; }
.empty-state {
  display: grid; place-items: center; gap: 8px; min-height: 230px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 20px; background: linear-gradient(180deg, #fbfdff, #f5f9ff); padding: 20px;
}
.empty-icon { font-size: 30px; }
.bubble { max-width: 88%; padding: 13px 15px; margin-bottom: 12px; border-radius: 20px; line-height: 1.45; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05); }
.bubble-title { display: block; font-size: 12px; font-weight: 800; margin-bottom: 6px; opacity: 0.82; }
.bubble.me { margin-left: auto; background: linear-gradient(135deg, #dcebff, #eff6ff); border: 1px solid #bfd7ff; border-bottom-right-radius: 8px; }
.bubble.stranger { margin-right: auto; background: linear-gradient(135deg, #fff2e8, #fff8f3); border: 1px solid #ffd7bd; border-bottom-left-radius: 8px; }
.typing-wrap { padding: 0 2px 10px; }
.typing-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 999px; background: rgba(255,255,255,0.92); border: 1px solid #dbe5f1; color: var(--muted); box-shadow: var(--shadow-soft); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--primary); display: block; animation: bounce 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.45; } 40% { transform: translateY(-4px); opacity: 1; } }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(216, 226, 239, 0.9); }
.composer input { width: 100%; border: 1px solid #d8e2ef; border-radius: 18px; padding: 15px 16px; font-size: 15px; outline: none; background: rgba(255,255,255,0.96); box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02); }
.composer input:focus { border-color: #aac7ff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08); }
.send-btn { min-width: 108px; }
.footer { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.footer-card { padding: 18px 20px; border-radius: 22px; }
.footer-card strong { display: block; margin-bottom: 6px; }
.footer-card span { color: var(--muted); }
@media (max-width: 1120px) {
  .hero, .main-grid, .video-grid, .footer { grid-template-columns: 1fr; }
  .desktop-actions { display: none; }
  .mobile-actions { display: flex; }
  video { min-height: 260px; }
}
@media (max-width: 700px) {
  .page { padding: 14px; }
  .hero { padding: 18px; border-radius: 24px;}
  .logo { width: 60px; height: 60px; font-size: 30px; border-radius: 18px; }
  .hero h1 { font-size: 27px; color: #ffffff; }
  .logo-wrap { align-items: flex-start; }
  .action-row, .composer, .footer { grid-template-columns: 1fr; display: grid; }
  .hero-badges, .info-pills { gap: 8px; }
  .btn, .send-btn { width: 100%; }
  .messages { min-height: 360px; }
  video { min-height: 220px; }
}
