/* =============================================
   UNILINK — Premium Design System v9
   ============================================= */

/* --- Reset & Variables --- */
:root {
  --bg: #f6f8fb;
  --bg-dark: #f6f8fb;
  --card-bg: #ffffff;
  --glass-bg: #ffffff;
  --border-color: #e2e8f0;

  --primary: #0f172a;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.12);
  --secondary: #475569;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f97316;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --input-bg: #f8fafc;
  --input-bg-focus: #ffffff;
  --btn-bg: #f1f5f9;
  --btn-border: #e2e8f0;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.2s ease;
  --transition-fast: 0.14s ease;
  --transition-normal: 0.25s ease;

  --font-family: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body, html {
  width: 100%;
  height: 100%;
  color: var(--text-main);
  overflow: hidden;
}

/* --- Landing background with subtle mesh gradient --- */
#app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--bg);
}

#landing-screen {
  background:
    radial-gradient(ellipse 70% 55% at 15% 8%,  rgba(219,234,254,0.65) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 85% 92%, rgba(254,215,170,0.50) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(240,253,244,0.30) 0%, transparent 60%),
    var(--bg);
}

.bg-glow, .bg-glow-1, .bg-glow-2 { display: none; }

/* --- Card --- */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.6) inset;
  z-index: 10;
  transition: all var(--transition);
  animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardEntrance {
  0%   { opacity: 0; transform: translateY(18px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}

.glass-card:hover {
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.85) inset;
}

.glass-panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 10;
}

/* --- Screens Handling --- */
section {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

section.active-screen {
  display: flex;
  opacity: 1;
  z-index: 5;
}

/* --- 1. Landing Screen Styles --- */
#landing-screen {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px 16px;
}

@media (max-width: 900px) {
  #landing-screen {
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
  }
}

.main-card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: auto 0;
}

/* Feature highlights panel */
.features-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 340px;
  margin: auto 0;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  animation: fadeSlideIn 0.4s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.12s; }
.feature-card:nth-child(3) { animation-delay: 0.19s; }
.feature-card:nth-child(4) { animation-delay: 0.26s; }

.feature-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.feature-text p {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .features-panel {
    display: none;
  }
}

.logo-area {
  text-align: center;
}

.logo-3d-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#companion-mascot-container {
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin: auto 0;
}

@media (max-width: 900px) {
  #companion-mascot-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
}

#landing-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-icon-fallback {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.logo-icon-fallback i {
  color: var(--primary);
  width: 32px;
  height: 32px;
}

/* --- Animated Logo --- */
.logo-area h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.ome-blue {
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gle-orange {
  background: linear-gradient(135deg, #ea580c, #f97316, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 8px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.online-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 5px 12px;
  border-radius: 20px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #059669;
}

.green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  position: relative;
  flex-shrink: 0;
}

.green-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #10b981;
  opacity: 0;
  animation: dot-ripple 2s infinite ease-out;
}

@keyframes dot-ripple {
  0%  { transform: scale(0.5); opacity: 0.8; }
  100%{ transform: scale(2);   opacity: 0; }
}

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

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

.input-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input-group input,
.glass-select {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.input-group input:focus,
.glass-select:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group input::placeholder {
  color: #94a3b8;
}

.safety-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.safety-banner i {
  color: #10b981;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.safety-banner p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.safety-banner p strong { color: var(--text-main); }
.safety-banner a { color: var(--accent); text-decoration: none; }
.safety-banner a:hover { text-decoration: underline; }

/* Premium CTA button with gradient accent */
.glow-btn {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 28px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35), 0 1px 4px rgba(37,99,235,0.2);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.glow-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.glow-btn:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4), 0 2px 8px rgba(37,99,235,0.2);
}

.glow-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
}

.glow-btn i {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.glow-btn:hover i {
  transform: translateX(4px);
}

/* --- 2. Call Screen Styles --- */
#call-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-section {
  flex-grow: 1;
  height: 100%;
  position: relative;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
}

.video-container {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: #030509;
}

.remote-container {
  width: 100%;
  height: 100%;
}

.remote-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-container {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 160px;
  height: 120px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--primary-glow);
  z-index: 20;
  overflow: hidden;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: border-color var(--transition-fast), box-shadow 0.3s ease;
}

.local-container:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 25px var(--primary-glow);
}

.local-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror self stream */
}

/* Draggable UI indicators */
.local-container.draggable {
  cursor: move;
}

.video-overlay {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.remote-info {
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.local-info {
  bottom: 8px;
  left: 8px;
}

.name-tag {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.name-tag.hidden {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-pill.waiting .pulse-dot {
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-ring 1.5s infinite;
}

.status-pill.connected .pulse-dot {
  background-color: #10b981;
}

/* Quick Emojis Reaction Bar overlay */
.quick-emojis-bar {
  position: absolute;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  padding: 8px 18px;
  border-radius: 20px;
  z-index: 45;
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all var(--transition-medium);
}

.quick-emojis-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

.emoji-react-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.emoji-react-btn:hover {
  transform: scale(1.3) translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.emoji-react-btn:active {
  transform: scale(0.95);
}

/* Floating reaction animation styles */
.floating-heart {
  position: absolute;
  bottom: 20px;
  left: var(--start-x, 50%);
  font-size: 2.2rem;
  pointer-events: none;
  animation: floatUp 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 10;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  user-select: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  15% {
    transform: translateY(-40px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateY(-320px) scale(0.8) rotate(var(--drift-rotation, 15deg));
    opacity: 0;
  }
}

/* Controls Panel */
.controls-panel {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-radius: 24px;
  z-index: 30;
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.control-btn:hover {
  background: var(--btn-hover-bg);
  transform: scale(1.1) translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 15px var(--primary-glow);
}

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

.control-btn i {
  width: 20px;
  height: 20px;
}

.control-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.control-btn.active:hover {
  background: var(--primary);
  box-shadow: 0 8px 22px var(--primary-glow);
}

.control-btn.danger {
  color: var(--danger);
  border-color: rgba(255, 51, 102, 0.2);
  background: rgba(255, 51, 102, 0.08);
}

.control-btn.danger:hover {
  background: var(--danger);
  color: #ffffff;
  box-shadow: 0 0 15px var(--danger-glow);
}

/* Skip Button (Wide styling) */
.control-btn.skip-btn {
  width: auto;
  border-radius: 24px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #000000;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  gap: 8px;
  border: none;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.control-btn.skip-btn:hover {
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.5);
}

/* --- Chat Sidebar Styles --- */
#chat-sidebar {
  width: 320px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-right: none;
  z-index: 15;
  transition: transform var(--transition-normal);
}

#chat-sidebar.minimized {
  transform: translateX(100%);
  width: 0;
  border-left: none;
}

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

.chat-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.icon-btn i {
  width: 18px;
  height: 18px;
}

.messages-container {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

/* Chat bubble styling */
.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
  animation: pop-in 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.msg-partner {
  background: #ffffff;
  border: 1px solid var(--border-color);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  color: var(--text-main);
}

.msg-self {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  color: var(--text-main);
}

.system-msg {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 12px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  align-self: center;
}

.system-msg.connected {
  border-color: rgba(16, 185, 129, 0.15);
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}

.system-msg.disconnected {
  border-color: rgba(255, 51, 102, 0.15);
  background: rgba(255, 51, 102, 0.08);
  color: var(--danger);
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-input-area input {
  flex-grow: 1;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.chat-input-area input:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.chat-input-area input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-input-area button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chat-input-area button:hover:not(:disabled) {
  transform: scale(1.05);
}

.chat-input-area button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #e2e8f0;
  color: #94a3b8;
}

.chat-input-area button i {
  width: 16px;
  height: 16px;
}

/* Chat Toggle Buttons (When minimized) */
#chat-open-btn {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
}

#chat-open-btn i {
  width: 22px;
  height: 22px;
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--danger);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge.hidden {
  display: none;
}

/* --- 3. Blocking Overlay Screen Styles --- */
.overlay-screen {
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.95);
  backdrop-filter: blur(12px);
}

.danger-card {
  max-width: 440px;
  text-align: center;
  border-color: rgba(255, 51, 102, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.warning-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 51, 102, 0.08);
  border: 1px solid rgba(255, 51, 102, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  animation: shake 0.5s ease-in-out;
}

.warning-icon-wrapper i {
  width: 36px;
  height: 36px;
  color: var(--danger);
}

.danger-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}

.danger-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.glow-btn.danger-btn {
  background: linear-gradient(135deg, var(--danger) 0%, #db2777 100%);
  box-shadow: 0 4px 15px var(--danger-glow);
  color: #ffffff;
  padding: 14px 28px;
}

.glow-btn.danger-btn:hover {
  box-shadow: 0 8px 20px rgba(255, 51, 102, 0.6);
}

/* --- Keyframes & Animations --- */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(249, 115, 22, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0   rgba(249, 115, 22, 0); }
}

@keyframes searching-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes pop-in {
  0%   { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes fadeSlideIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media(max-width: 768px) {
  #call-screen {
    position: relative;
    overflow: hidden;
  }
  
  #chat-sidebar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 50;
    border-left: none;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    transition: transform 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  }
  
  #chat-sidebar.minimized {
    transform: translateY(100%) !important;
    height: 60% !important;
  }

  .video-section {
    width: 100%;
    height: 100%;
  }

  #chat-open-btn {
    bottom: 24px;
    right: 24px;
    left: auto;
    top: auto;
    z-index: 40;
  }

  .local-container {
    width: 110px;
    height: 82px;
    top: 20px;
    right: 20px;
  }
  
  .game-choices {
    gap: 6px;
  }
  
  .choice-btn {
    padding: 10px 4px;
    font-size: 0.75rem;
    min-width: 60px;
  }

  /* Compact controls tray on mobile screens */
  .controls-panel {
    bottom: 16px;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    max-width: 95%;
    width: auto;
  }
  
  .control-btn {
    width: 38px;
    height: 38px;
  }
  
  .control-btn i {
    width: 16px;
    height: 16px;
  }
  
  #screenshare-btn {
    display: none !important;
  }
  
  .skip-btn {
    padding: 0 12px;
    border-radius: 19px;
    width: auto;
  }
  
  .skip-btn span {
    font-size: 0.75rem;
  }
}

/* --- Group Match Styles --- */
.video-section.group-mode {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  background: #080b12;
  align-content: center;
  justify-content: center;
}

/* 2 peers in group (self + 1) -> side-by-side */
.video-section.group-mode.peers-2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
}

/* 3 peers in group (self + 2) -> 2 top, 1 bottom centered */
.video-section.group-mode.peers-3 {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.video-section.group-mode.peers-3 .video-container:nth-child(1) {
  grid-column: span 3;
}
.video-section.group-mode.peers-3 .video-container:nth-child(2) {
  grid-column: span 3;
}
.video-section.group-mode.peers-3 .video-container:nth-child(3) {
  grid-column: 2 / span 4;
}

/* 4 peers in group -> 2x2 */
.video-section.group-mode.peers-4 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.video-section.group-mode > .remote-container {
  display: none !important;
}

.video-section.group-mode .local-container {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 4/3;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.1);
  transform: none !important;
}

.video-section.group-mode .video-container {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #04060b;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-section.group-mode .video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gender & Preference selection layout */
.gender-filters-row {
  display: flex;
  gap: 15px;
  width: 100%;
  margin-top: 15px;
}

.select-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Custom select with arrow */
.glass-select {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 40px 13px 16px;
  color: var(--text-main);
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font-family);
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.glass-select:focus {
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.glass-select option {
  background: #ffffff;
  color: #0f172a;
}

/* Mode Selector Switch on Landing Card */
.mode-toggle-container {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 4px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.mode-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.18s ease;
}

.mode-tab.active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* --- Camera-off Placeholder Styles --- */
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #060910;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.video-placeholder.hidden {
  display: none !important;
}

#remote-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

.avatar-circle span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: #000;
}

/* Guidelines Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 9, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-card {
  width: 90%;
  max-width: 500px;
  padding: 30px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--neon-blue);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guideline-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guideline-item .icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guideline-item .icon-title i {
  width: 20px;
  height: 20px;
}

.guideline-item .icon-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.guideline-item p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.chat-input-wrapper {
  display: flex;
  gap: 10px;
  width: 100%;
}

/* Emoji Tray Styles */
.emoji-tray {
  display: flex;
  justify-content: space-around;
  padding: 5px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin-bottom: 2px;
}

.emoji-item {
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

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

/* Typing Indicator Styles */
.typing-indicator-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* CSS Video Filter Classes */
.filter-vintage video {
  filter: sepia(0.5) contrast(1.1) brightness(0.95) saturate(1.2) !important;
}

.filter-cyberpunk video {
  filter: hue-rotate(90deg) contrast(1.3) brightness(1.05) saturate(1.5) !important;
}

.filter-noir video {
  filter: grayscale(1) contrast(1.4) brightness(0.9) !important;
}

.filter-dreamy video {
  filter: blur(0.4px) saturate(1.25) contrast(0.95) brightness(1.03) !important;
}

/* Make filter cycling buttons glow on cycle */
.control-btn.active-filter {
  color: var(--neon-blue) !important;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3) !important;
  border-color: rgba(0, 242, 254, 0.4) !important;
}

/* --- Sidebar Tabs --- */
.chat-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}

.chat-tab {
  background: none;
  border: none;
  padding: 6px 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.2s ease;
}

.chat-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--neon-blue);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tab-panel.hidden {
  display: none !important;
}

.tab-panel {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
}

/* --- Heart Action Button --- */
.chat-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.2);
  color: #ff3366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-action-btn:hover:not(:disabled) {
  transform: scale(1.05);
  background: rgba(255, 51, 102, 0.2);
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.4);
}

.chat-action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- Floating Hearts Animation --- */
.floating-heart {
  position: absolute;
  bottom: 20px;
  font-size: 24px;
  pointer-events: none;
  z-index: 15;
  animation: float-up 2.2s linear forwards;
  opacity: 0.8;
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0.8;
    left: var(--start-x, 50%);
  }
  20% {
    transform: translateY(-50px) scale(1) rotate(15deg);
    left: calc(var(--start-x, 50%) + 15px);
  }
  40% {
    left: calc(var(--start-x, 50%) - 15px);
  }
  60% {
    left: calc(var(--start-x, 50%) + 10px);
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-350px) scale(0.8) rotate(-20deg);
    opacity: 0;
    left: calc(var(--start-x, 50%) - 10px);
  }
}

/* --- Rock Paper Scissors Game --- */
.game-container {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.game-container h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.game-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.game-choices {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 10px;
  margin: 15px 0;
}

.choice-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 75px;
  position: relative;
  overflow: hidden;
}

.choice-btn:hover:not(:disabled) {
  background: rgba(0, 242, 254, 0.06);
  border-color: var(--neon-blue);
  color: #fff;
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.2);
}

.choice-btn.selected {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(188, 0, 254, 0.15) 100%) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 0 15px var(--primary-glow) !important;
  transform: scale(1.05);
}

.choice-btn:disabled:not(.selected) {
  opacity: 0.4;
  cursor: not-allowed;
}

.game-status-box {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.game-results-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

.result-players {
  display: flex;
  width: 100%;
  gap: 12px;
}

.result-tile {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.move-label {
  display: block;
  font-size: 1.8rem;
  margin-top: 5px;
}

.verdict-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(186, 85, 211, 0.4);
  letter-spacing: 1px;
}

/* Chat bubble with Text-to-Speech */
.msg {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px;
}

.msg-content {
  flex-grow: 1;
  word-break: break-word;
}

.tts-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  opacity: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg:hover .tts-btn {
  opacity: 0.8;
}

.tts-btn:hover {
  color: var(--neon-blue);
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.1);
}

.tts-btn i {
  width: 14px;
  height: 14px;
}

/* Premium interest pill chips */
.interests-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.interest-pill {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  letter-spacing: 0.01em;
}

.interest-pill:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  transform: translateY(-1px);
}

.interest-pill.selected {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Icebreaker prompt banner styling */
.icebreaker-banner {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 90%;
  max-width: 580px;
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.15);
  padding: 10px 16px;
  border-radius: 16px;
  z-index: 25;
  transition: all var(--transition-medium);
}

.icebreaker-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -20px);
}

.icebreaker-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.icebreaker-tag {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #0a0f1e;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.05em;
 white-space: nowrap;
}

#icebreaker-text {
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}

#icebreaker-next-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

#icebreaker-next-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  transform: rotate(180deg);
}

/* Synthesized soundboard bar styling */
.soundboard-bar {
  position: absolute;
  bottom: 145px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 16px;
  z-index: 45;
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-medium);
}

.soundboard-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

.sound-react-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sound-react-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Invite status badge on landing header */
.invite-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
  animation: pulseGlow 2s infinite alternate;
}

.invite-status-badge.hidden {
  display: none !important;
}

.invite-status-badge i {
  width: 14px;
  height: 14px;
}

/* Shared interest micro tags in video frame */
.remote-interests-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  pointer-events: none;
}

.remote-interests-tags.hidden {
  display: none !important;
}

.remote-interests-tags .micro-interest-tag {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  text-shadow: 0 0 5px rgba(0, 242, 254, 0.2);
  text-transform: capitalize;
}

/* Sliding Invite Drawer Overlay */
.invite-drawer {
  position: absolute;
  bottom: 24px;
  left: 54%;
  transform: translateX(-54%);
  width: 90%;
  max-width: 440px;
  padding: 16px 20px;
  border-radius: 20px;
  z-index: 50;
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-medium);
}

.invite-drawer.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-54%, 30px);
}

.invite-drawer-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.invite-drawer-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.invite-link-row {
  display: flex;
  gap: 8px;
}

#invite-link-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  outline: none;
}

#copy-invite-btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: 12px;
}

#copy-invite-btn i {
  width: 14px;
  height: 14px;
}

.close-drawer-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.close-drawer-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

/* --- Interactive Background Particle Constellation --- */
#bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* --- Sound Wave Reaction Pulse --- */
.sound-wave-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  opacity: 0;
  transform: scale(0.2);
  animation: pulse-expand 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.pulse-ring.ring-2 {
  animation-delay: 0.3s;
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(188, 0, 254, 0.4);
}

.pulse-text {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  padding: 8px 16px;
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  white-space: nowrap;
  animation: pulse-fade-up 1.5s ease-out forwards;
}

@keyframes pulse-expand {
  0% {
    transform: scale(0.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes pulse-fade-up {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  15% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-20px);
    opacity: 0;
  }
}
/* --- App Theme Overrides --- */
body.theme-ruby {
  --primary: #db2777;
  --neon-blue: #4f46e5;
  --neon-purple: #9333ea;
  --primary-glow: rgba(219, 39, 119, 0.3);
}

body.theme-emerald {
  --primary: #16a34a;
  --neon-blue: #0d9488;
  --neon-purple: #16a34a;
  --primary-glow: rgba(22, 163, 74, 0.3);
}

body.theme-gold {
  --primary: #d97706;
  --neon-blue: #ea580c;
  --neon-purple: #ca8a04;
  --primary-glow: rgba(217, 119, 6, 0.3);
}

body.theme-classic {
  --primary: #000000;
  --neon-blue: #475569;
  --neon-purple: #64748b;
  --primary-glow: rgba(0, 0, 0, 0.3);
}

body {
  transition: background-color 0.5s ease, color 0.5s ease;
}

.glass-card, .glow-btn, .status-pill, .control-btn, .mode-tab, .interest-pill {
  transition: all 0.3s ease, border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

/* --- Theme Selector Swatches --- */
.theme-picker-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.theme-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.theme-swatch:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.theme-swatch.active {
  border-color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* --- Video Shader Tray Overlay --- */
.shader-tray {
  position: absolute;
  bottom: 155px; /* Float right above soundboard-bar */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: 90%;
  overflow-x: auto;
}

.shader-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.shader-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.shader-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #050811;
  font-weight: 600;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* --- Webcam Video Shaders CSS Filters --- */
.shader-sepia {
  filter: sepia(0.85) contrast(1.1) brightness(0.95);
}

.shader-matrix {
  filter: hue-rotate(60deg) saturate(2.5) contrast(1.4) brightness(0.9) grayscale(0.15);
}

.shader-cyberpunk {
  filter: hue-rotate(180deg) saturate(2) contrast(1.2);
}

.shader-vintage {
  filter: grayscale(1) contrast(1.3) brightness(0.9);
}

.shader-blur {
  filter: blur(4px) saturate(1.2);
}

#local-video, #remote-video {
  transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Real-Time Audio Frequency Spectrums --- */
.audio-spectrum-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  z-index: 5;
}

/* --- Floating Speech Captions --- */
.speech-captions-overlay {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  max-width: 80%;
  min-width: 120px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 242, 254, 0.1);
  pointer-events: none;
  z-index: 6;
  white-space: normal;
  word-wrap: break-word;
  animation: captions-slide-up 0.3s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

/* Local PIP offset captions higher up */
.local-container .speech-captions-overlay {
  bottom: 40px;
  font-size: 0.75rem;
  padding: 4px 10px;
  min-width: 80px;
}

@keyframes captions-slide-up {
  0% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* --- Lofi Headphones Active Glow --- */
#lofi-btn.active {
  background: var(--primary);
  color: #050811;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* --- Holographic Searching Scan Bar --- */
.scanning-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 15px var(--primary);
  opacity: 0.85;
  animation: scan-loop 3s infinite ease-in-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes scan-loop {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* --- Exciting Games Verdict Animations --- */
.verdict-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  transition: all 0.3s ease;
}

.verdict-draw {
  color: var(--neon-blue) !important;
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.verdict-win {
  color: #39ff14 !important;
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
  animation: win-bounce 0.5s ease infinite alternate;
}

.verdict-lose {
  color: var(--danger) !important;
  text-shadow: 0 0 15px rgba(255, 51, 102, 0.4);
}

@keyframes win-bounce {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* --- WebRTC Call Diagnostics Stats Card --- */
.stats-overlay {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 230px;
  padding: 16px;
  border-radius: 16px;
  z-index: 25;
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.1);
  animation: fadeIn 0.3s ease-out;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.stats-header h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}

.stats-header h4 i {
  width: 14px;
  height: 14px;
}

.icon-only-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.icon-only-btn:hover {
  color: #fff;
}

.icon-only-btn i {
  width: 14px;
  height: 14px;
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  font-family: monospace;
  font-weight: 600;
  color: #fff;
}

/* --- Interactive Games Selector --- */
.games-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.game-selector-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.game-selector-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.game-selector-btn.active {
  background: var(--primary);
  color: #050811;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* --- Tic-Tac-Toe Board & Grid Cells --- */
.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  width: 100%;
  max-width: 220px;
  margin: 15px auto;
}

.ttt-cell {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.ttt-cell:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  transform: translateY(-2px);
}

.ttt-cell[data-symbol="X"] {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.ttt-cell[data-symbol="O"] {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(188, 0, 254, 0.4);
}

.ttt-cell:disabled {
  cursor: not-allowed;
}

/* =====================================================
   UNILINK CALL SCREEN — COMPLETE UI OVERHAUL
   Clean, light, premium aesthetic
   ===================================================== */

/* ── Header ── */
.classic-header {
  height: 56px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 24px !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  z-index: 100 !important;
}

.header-logo-group {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}

.omegle-logo {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -1px !important;
  margin: 0 !important;
  text-transform: none !important;
}

.ome-blue {
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.gle-orange {
  background: linear-gradient(135deg, #ea580c, #f97316, #fb923c) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.header-tagline {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

.header-status-group {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.82rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.online-dot {
  width: 7px !important;
  height: 7px !important;
  background: #10b981 !important;
  border-radius: 50% !important;
  display: inline-block !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* ── Landing Screen fine-tuning ── */
#landing-screen .tagline {
  color: #64748b !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

.online-count-badge {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  color: #059669 !important;
  box-shadow: none !important;
}

.green-dot {
  background-color: #10b981 !important;
}

.green-dot::after {
  border-color: #10b981 !important;
}

/* ── Main split layout ── */
#call-screen {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100vh !important;
  overflow: hidden !important;
}

/* ── Main layout: column stack ── */
.call-main-layout {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
  width: 100% !important;
  position: relative !important;
  box-sizing: border-box !important;
  background: #f1f5f9 !important;
  overflow: hidden !important;
}

/* ── Video section: cameras side by side (portrait) ── */
.video-section {
  width: 100% !important;
  flex: 0 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: auto auto !important;
  gap: 12px !important;
  padding: 14px 14px 0 14px !important;
  background: #f1f5f9 !important;
  position: relative !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  align-items: start !important;
}

/* ── Video cards: portrait 3:4 ratio (height > width) ── */
.remote-container,
.local-container {
  position: relative !important;
  background: #1e293b !important;
  border-radius: 16px !important;
  border: 1px solid rgba(203, 213, 225, 0.5) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.07) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transform: none !important;
  transition: box-shadow 0.25s ease !important;
  grid-row: 1 !important;
  width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 62vh !important;
}

.remote-container:hover,
.local-container:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

/* ── Controls bar: spans both columns ── */
.video-utility-bar {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  height: 64px !important;
  margin: 10px 0 12px !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  z-index: 10 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0,0,0,0.04) !important;
  padding: 0 20px !important;
}

/* Grouped media buttons */
.ctrl-group {
  display: flex !important;
  gap: 4px !important;
}

/* Vertical divider */
.ctrl-divider {
  width: 1px !important;
  height: 28px !important;
  background: #e2e8f0 !important;
  flex-shrink: 0 !important;
  margin: 0 4px !important;
}

/* Base control button */
.ctrl-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  height: 48px !important;
  padding: 0 14px !important;
  border: none !important;
  border-radius: 14px !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  font-family: 'Inter', sans-serif !important;
  letter-spacing: 0.01em !important;
  background: transparent !important;
  color: #64748b !important;
}

.ctrl-btn i {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

.ctrl-btn span {
  line-height: 1 !important;
}

/* Media buttons (Mute/Camera/Screen) */
.ctrl-btn.ctrl-media {
  color: #475569 !important;
}

.ctrl-btn.ctrl-media:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

.ctrl-btn.ctrl-media.active {
  background: #0f172a !important;
  color: #ffffff !important;
}

/* Skip button — blue accent */
.ctrl-btn.ctrl-skip {
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  padding: 0 18px !important;
}

.ctrl-btn.ctrl-skip:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

/* End button — red */
.ctrl-btn.ctrl-end {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  padding: 0 18px !important;
}

.ctrl-btn.ctrl-end:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

/* Report button — orange warning */
.ctrl-btn.ctrl-report {
  color: #d97706 !important;
}

.ctrl-btn.ctrl-report:hover {
  background: #fff7ed !important;
  color: #b45309 !important;
  transform: translateY(-1px) !important;
}

.video-container video,
.remote-container video,
.local-container video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  background: #000 !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* ── Name tags ── */
.name-tag {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(6px) !important;
  color: #ffffff !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
}

/* local-info: bottom-left label inside the local video card */
.video-overlay.local-info {
  position: absolute !important;
  bottom: 8px !important;
  left: 8px !important;
  top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

/* remote-info: full-card centered overlay for status pill */
.video-overlay.remote-info {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}

/* Status pill */
#remote-status {
  position: relative !important;
  background: rgba(255, 255, 255, 0.93) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #0f172a !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14) !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
}

#remote-status .pulse-dot {
  background: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25) !important;
  animation: pulse-ring 1.5s infinite !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

#remote-status.connected {
  display: none !important;
}

#remote-name {
  position: absolute !important;
  bottom: 10px !important;
  left: 10px !important;
  top: auto !important;
}

#remote-interests {
  position: absolute !important;
  bottom: 10px !important;
  right: 10px !important;
  left: auto !important;
  display: flex !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}

/* Connected state: green border ring on remote container */
.remote-container.has-stream {
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06),
              0 0 0 2px rgba(16, 185, 129, 0.15) !important;
  animation: none !important;
  background: #000 !important;
}

/* Searching state: shimmer on remote card */
.remote-container:not(.has-stream) {
  background: linear-gradient(
    110deg,
    #1e293b 30%,
    #293548 50%,
    #1e293b 70%
  ) !important;
  background-size: 200% 100% !important;
  animation: shimmer 2s infinite linear !important;
}
.video-utility-bar {
  height: 52px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  z-index: 10 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.04) !important;
  padding: 0 12px !important;
}

.util-btn {
  background: transparent !important;
  border: none !important;
  color: #475569 !important;
  cursor: pointer !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

.util-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  transform: scale(1.1) !important;
}

.util-btn i {
  width: 18px !important;
  height: 18px !important;
}

.util-btn.active {
  color: #ffffff !important;
  background: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15,23,42,0.2) !important;
}

.util-btn.danger-util {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.06) !important;
}

.util-btn.danger-util:hover {
  color: #ffffff !important;
  background: #ef4444 !important;
  transform: scale(1.1) !important;
}

/* ── Chat Sidebar: full width at bottom ── */
#chat-sidebar {
  flex: 1 !important;
  width: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-left: none !important;
  border-top: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Hide chat tabs but show a styled Chat header label */
.chat-tabs {
  display: none !important;
}

.chat-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
}

.chat-header::before {
  content: 'Chat' !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
}

.chat-header > * {
  display: none !important;
}

#companion-mascot-container {
  display: none !important;
}

/* ── Messages area ── */
.messages-container {
  flex-grow: 1 !important;
  padding: 16px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  background: #f8fafc !important;
  scroll-behavior: smooth !important;
}

/* Custom scrollbar */
.messages-container::-webkit-scrollbar {
  width: 4px !important;
}
.messages-container::-webkit-scrollbar-track {
  background: transparent !important;
}
.messages-container::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 4px !important;
}
.messages-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

/* ── Message bubbles ── */
.msg {
  max-width: 80% !important;
  padding: 9px 14px !important;
  border-radius: 16px !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
  word-break: break-word !important;
  animation: pop-in 0.18s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
  display: block !important;
}

.msg-self {
  align-self: flex-end !important;
  background: #dbeafe !important;
  border: 1px solid #bfdbfe !important;
  border-bottom-right-radius: 4px !important;
  color: #1e3a5f !important;
}

.msg-self strong {
  color: #1d4ed8 !important;
  font-weight: 600 !important;
  display: block !important;
  font-size: 0.75rem !important;
  margin-bottom: 2px !important;
}

.msg-partner {
  align-self: flex-start !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-bottom-left-radius: 4px !important;
  color: #1e293b !important;
}

.msg-partner strong {
  color: #64748b !important;
  font-weight: 600 !important;
  display: block !important;
  font-size: 0.75rem !important;
  margin-bottom: 2px !important;
}

.tts-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 6px !important;
  border-radius: 50% !important;
  transition: color 0.15s ease !important;
  opacity: 0.7 !important;
  vertical-align: middle !important;
}

.tts-btn:hover {
  opacity: 1 !important;
  color: #475569 !important;
}

.tts-btn i {
  width: 12px !important;
  height: 12px !important;
}

/* ── System messages ── */
.system-msg {
  align-self: center !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
  border: 1px solid #fed7aa !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  margin: 4px 0 !important;
  max-width: 88% !important;
}

.system-msg.connected {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border-color: #bbf7d0 !important;
}

.system-msg.disconnected {
  background: #fff1f2 !important;
  color: #9f1239 !important;
  border-color: #fecdd3 !important;
}

/* ── Typing indicator ── */
.typing-indicator-container {
  padding: 8px 16px 4px !important;
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
}

.typing-dots {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.typing-dots span {
  width: 5px !important;
  height: 5px !important;
  background: #94a3b8 !important;
  border-radius: 50% !important;
  animation: typing-bounce 1.2s infinite ease-in-out both !important;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s !important; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s !important; }

/* ── Emoji tray ── */
.emoji-tray {
  display: flex !important;
  gap: 6px !important;
  padding: 8px 16px 0 !important;
  background: #ffffff !important;
}

.emoji-item {
  cursor: pointer !important;
  font-size: 1.15rem !important;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  transition: transform 0.15s ease !important;
  user-select: none !important;
}

.emoji-item:hover {
  transform: scale(1.25) translateY(-2px) !important;
}

/* ── Chat input bar ── */
.chat-input-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 16px 16px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

.chat-input-wrapper input {
  flex-grow: 1 !important;
  height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 21px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 0.9rem !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  font-family: 'Inter', sans-serif !important;
}

.chat-input-wrapper input:focus {
  border-color: #94a3b8 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15) !important;
}

.chat-input-wrapper input:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

.skip-btn-classic {
  height: 42px !important;
  padding: 0 18px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 21px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  cursor: pointer !important;
  font-size: 0.85rem !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.skip-btn-classic:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.skip-btn-classic.confirming {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

.skip-btn-classic.new-match {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #2563eb !important;
}

.send-btn-classic {
  height: 42px !important;
  width: 42px !important;
  padding: 0 !important;
  background: #0f172a !important;
  border: none !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.send-btn-classic:hover:not(:disabled) {
  background: #1e293b !important;
  transform: scale(1.05) !important;
}

.send-btn-classic:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Send button text is provided by the HTML */
.send-btn-classic::after {
  content: none !important;
}

/* ── Icebreaker banner ── */
.icebreaker-banner {
  position: absolute !important;
  top: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 20 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  white-space: nowrap !important;
  font-size: 0.85rem !important;
  color: #334155 !important;
}


/* =======================================================
   RESPONSIVE DESIGN
   - Laptop   : 1024px+  (default, no query needed)
   - Tablet   : 640px – 1024px
   - Phone L  : 480px – 640px
   - Phone S  : < 480px
   ======================================================= */

/* ── TABLET (640px – 1024px) ──────────────────────────── */
@media (min-width: 640px) and (max-width: 1024px) {

  /* Landing */
  #landing-screen {
    gap: 32px !important;
    padding: 32px 20px !important;
  }

  .glass-card {
    padding: 32px !important;
  }

  .features-panel {
    display: flex !important;
    max-width: 280px !important;
    gap: 10px !important;
  }

  .feature-card {
    padding: 13px 15px !important;
  }

  .feature-text h3 {
    font-size: 0.85rem !important;
  }

  /* Call page */
  .classic-header {
    height: 52px !important;
    padding: 0 18px !important;
  }

  .video-section {
    flex: 0 0 auto !important;
    grid-template-columns: 1fr 1fr !important;
    padding: 10px 10px 0 10px !important;
    gap: 8px !important;
  }

  .video-utility-bar {
    height: 58px !important;
    border-radius: 29px !important;
    gap: 6px !important;
    padding: 0 14px !important;
    margin: 8px 0 10px !important;
  }

  .ctrl-btn {
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 0.66rem !important;
  }

  .ctrl-btn.ctrl-skip,
  .ctrl-btn.ctrl-end {
    padding: 0 16px !important;
  }

  #chat-sidebar {
    flex: 1 !important;
  }

  .chat-input-wrapper input {
    font-size: 0.88rem !important;
  }
}

/* ── PHONE LARGE (480px – 640px) ─────────────────────── */
@media (min-width: 480px) and (max-width: 639px) {

  /* Landing */
  #landing-screen {
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    padding: 24px 16px !important;
    align-items: center !important;
  }

  .glass-card {
    padding: 28px 24px !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 440px !important;
  }

  .features-panel {
    display: none !important;
  }

  .logo-area h1 {
    font-size: 2.6rem !important;
  }

  /* Call: remote full-width, local as PIP corner */
  .classic-header {
    height: 48px !important;
    padding: 0 14px !important;
  }

  .omegle-logo {
    font-size: 1.25rem !important;
  }

  .call-main-layout {
    flex-direction: column !important;
  }

  .video-section {
    width: 100% !important;
    flex: 0 0 44% !important;
    display: block !important;
    position: relative !important;
    padding: 8px !important;
    background: #0f172a !important;
  }

  /* Remote fills the video section */
  .remote-container {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    border-radius: 0 !important;
    animation: none !important;
  }

  /* Local as small PIP in top-right corner */
  .local-container {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 100px !important;
    height: 75px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
    z-index: 10 !important;
    cursor: move !important;
    flex: none !important;
    min-height: unset !important;
    background: #1e293b !important;
  }

  /* Controls bar below video section */
  .video-utility-bar {
    position: static !important;
    display: flex !important;
    grid-column: unset !important;
    grid-row: unset !important;
    width: calc(100% - 16px) !important;
    height: 50px !important;
    margin: 6px 8px !important;
    border-radius: 25px !important;
    gap: 4px !important;
    padding: 0 10px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
  }

  .ctrl-btn {
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 0 !important; /* hide label on small phones */
    border-radius: 10px !important;
    gap: 0 !important;
  }

  .ctrl-btn i {
    width: 20px !important;
    height: 20px !important;
  }

  .ctrl-btn.ctrl-skip,
  .ctrl-btn.ctrl-end {
    padding: 0 14px !important;
    font-size: 0.7rem !important;
    gap: 4px !important;
  }

  .ctrl-btn.ctrl-skip span,
  .ctrl-btn.ctrl-end span {
    font-size: 0.7rem !important;
  }

  .ctrl-divider {
    height: 22px !important;
    margin: 0 2px !important;
  }

  #chat-sidebar {
    flex: 1 !important;
    width: 100% !important;
    min-height: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-left: none !important;
  }

  .chat-input-wrapper {
    padding: 8px 10px 12px !important;
    gap: 6px !important;
  }

  .skip-btn-classic {
    display: none !important; /* Skip is in toolbar now */
  }
}

/* ── PHONE SMALL (< 480px) ───────────────────────────── */
@media (max-width: 479px) {

  /* Landing */
  #landing-screen {
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 16px 12px !important;
    align-items: center !important;
  }

  .glass-card {
    padding: 22px 18px !important;
    border-radius: 18px !important;
    width: 100% !important;
  }

  .features-panel {
    display: none !important;
  }

  .logo-area h1 {
    font-size: 2.4rem !important;
  }

  .form-area {
    gap: 14px !important;
  }

  .input-group input,
  .glass-select {
    padding: 11px 14px !important;
    font-size: 0.9rem !important;
  }

  .glow-btn {
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
  }

  /* Call page */
  .classic-header {
    height: 46px !important;
    padding: 0 12px !important;
  }

  .omegle-logo {
    font-size: 1.15rem !important;
  }

  .header-tagline {
    display: none !important;
  }

  .call-main-layout {
    flex-direction: column !important;
  }

  .video-section {
    width: 100% !important;
    flex: 0 0 42% !important;
    display: block !important;
    position: relative !important;
    padding: 0 !important;
    background: #0f172a !important;
    border-radius: 0 !important;
  }

  .remote-container {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
  }

  .local-container {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 84px !important;
    height: 63px !important;
    border-radius: 8px !important;
    border: 1.5px solid rgba(255,255,255,0.25) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
    z-index: 10 !important;
    flex: none !important;
    min-height: unset !important;
    background: #1e293b !important;
  }

  .video-utility-bar {
    position: static !important;
    display: flex !important;
    grid-column: unset !important;
    grid-row: unset !important;
    width: calc(100% - 12px) !important;
    height: 46px !important;
    margin: 5px 6px !important;
    border-radius: 23px !important;
    gap: 2px !important;
    padding: 0 8px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }

  /* Icon-only buttons on tiny screens */
  .ctrl-btn {
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 0 !important;
    border-radius: 8px !important;
    gap: 0 !important;
  }

  .ctrl-btn i {
    width: 19px !important;
    height: 19px !important;
  }

  /* Keep Skip & End with tiny text */
  .ctrl-btn.ctrl-skip,
  .ctrl-btn.ctrl-end {
    padding: 0 10px !important;
    font-size: 0.62rem !important;
    gap: 2px !important;
    flex-direction: row !important;
  }

  .ctrl-btn.ctrl-skip span,
  .ctrl-btn.ctrl-end span {
    font-size: 0.62rem !important;
  }

  .ctrl-divider {
    height: 20px !important;
    margin: 0 1px !important;
  }

  #chat-sidebar {
    flex: 1 !important;
    width: 100% !important;
    min-height: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-left: none !important;
  }

  .chat-header {
    padding: 10px 14px !important;
  }

  .messages-container {
    padding: 10px !important;
  }

  .chat-input-wrapper {
    padding: 6px 10px 10px !important;
    gap: 5px !important;
  }

  .chat-input-wrapper input {
    height: 38px !important;
    font-size: 0.85rem !important;
    padding: 0 12px !important;
  }

  .skip-btn-classic {
    display: none !important;
  }

  .send-btn-classic {
    width: 38px !important;
    height: 38px !important;
  }

  .msg {
    font-size: 0.85rem !important;
    padding: 7px 11px !important;
  }
}

/* ── LAPTOP / DESKTOP fine-tuning (1280px+) ─────────── */
@media (min-width: 1280px) {
  .video-section {
    max-height: 56vh !important;
  }

  .glass-card {
    max-width: 480px !important;
  }

  .features-panel {
    max-width: 360px !important;
  }

  .feature-card {
    padding: 18px 20px !important;
  }
}
