.chat-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.chat-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 228, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 255, 180, 0.05) 0%, transparent 40%);
  z-index: 0;
}

.chat-window {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 0 40px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.msg-row {
  display: flex;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.msg-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.msg-row.user { 
  justify-content: flex-end; 
}

.msg-row.centre { 
  justify-content: flex-start; 
}

.bubble {
  max-width: 75%;
  padding: 18px 22px;
  border-radius: 22px;
  font-size: 18px;
  line-height: 1.6;
  position: relative;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.bubble.blue {
  background: linear-gradient(135deg, #2B9CFF, #00e4ff);
  color: var(--white);
  border-bottom-right-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bubble.blue::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 18px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #2B9CFF, #00e4ff);
  transform: rotate(45deg);
  border-bottom-right-radius: 4px;
  z-index: 1;
}

.bubble.grey {
  background: linear-gradient(135deg, #f8f9ff, #eef3ff);
  color: var(--text-dark);
  border-bottom-left-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.bubble.grey::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 18px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #f8f9ff, #eef3ff);
  transform: rotate(45deg);
  border-bottom-left-radius: 4px;
  z-index: 1;
}

@media (max-width: 880px) {
  .bubble { 
    max-width: 92%; 
    padding: 16px 20px;
    font-size: 17px;
  }
}