.hero-visual {
  position: relative;
  width: min(100%, 560px);
  margin-left: auto;
  padding: 32px;
  z-index: 2;
}

.chat-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(20, 24, 38, 0.78);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.chat-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.live-status,
.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.connection-status {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.live-dot,
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #49e58f;
  box-shadow: 0 0 14px rgba(73, 229, 143, 0.75);
}

.video-grid {
  position: relative;
  min-height: 380px;
  padding: 16px;
}

.video-panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.video-panel-main {
  min-height: 348px;
  background:
    radial-gradient(circle at 30% 20%, rgba(119, 93, 255, 0.45), transparent 38%),
    radial-gradient(circle at 75% 75%, rgba(0, 207, 255, 0.25), transparent 42%),
    linear-gradient(145deg, #222842, #111521);
}

.video-panel-self {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 130px;
  height: 165px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 151, 198, 0.5), transparent 45%),
    linear-gradient(145deg, #413652, #1e1a2b);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.video-placeholder {
  display: flex;
  height: 100%;
  min-height: inherit;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.video-panel-self .video-placeholder {
  min-height: 100%;
  font-size: 13px;
}

.avatar {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 42px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.video-panel-self .avatar {
  width: 58px;
  height: 58px;
  font-size: 28px;
}

.video-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 19, 0.58);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.chat-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.control-button,
.next-chat-button {
  border: 0;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.control-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.control-button:hover,
.next-chat-button:hover {
  transform: translateY(-2px);
}

.control-button-danger {
  background: rgba(255, 82, 112, 0.18);
  color: #ff7890;
}

.next-chat-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #755cff, #18bff5);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(80, 98, 255, 0.3);
}

.floating-chat-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(10, 16, 40, 0.2);
  backdrop-filter: blur(12px);
}

.floating-chat-card strong,
.floating-chat-card span {
  display: block;
}

.floating-chat-card strong {
  color: #171a2c;
  font-size: 14px;
}

.floating-chat-card div > span {
  margin-top: 3px;
  color: #687086;
  font-size: 11px;
}

.avatar-one i { color: rgba(160, 196, 255, 0.9); }
.avatar-two i { color: rgba(249, 168, 212, 0.9); }

.control-button i { font-size: 18px; color: #fff; }
.control-button-danger i { color: #ff7890; }

.floating-card-icon {
  font-size: 24px;
}
.floating-card-icon i { color: var(--theme-color, #f4196d); font-size: 22px; }

.floating-card-one {
  top: 78px;
  left: -32px;
}

.floating-card-two {
  right: -20px;
  bottom: 86px;
}

@media (max-width: 991px) {
  .hero-visual {
    margin: 40px auto 0;
    padding: 18px;
  }

  .floating-card-one {
    left: 0;
  }

  .floating-card-two {
    right: 0;
  }
}

@media (max-width: 575px) {
  .hero-visual {
    padding: 6px;
  }

  .video-grid {
    min-height: 310px;
  }

  .video-panel-main {
    min-height: 280px;
  }

  .video-panel-self {
    width: 98px;
    height: 125px;
    right: 22px;
    bottom: 22px;
  }

  .floating-chat-card {
    display: none;
  }

  .chat-controls {
    gap: 8px;
  }

  .next-chat-button {
    padding: 12px 15px;
    font-size: 13px;
  }
}
