/* =========================================================
   HERO HEADER
========================================================= */

.chat-hero {
  position: relative;
  min-height: 190px;
  padding: 24px 24px 34px;
  color: #ffffff;
  overflow: hidden;

  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,0.25), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(85,214,255,0.36), transparent 28%),
    linear-gradient(135deg, var(--hcb-blue-950) 0%, var(--hcb-blue-800) 55%, var(--hcb-blue-500) 100%);

  animation: hcbHeroGlow 6s ease-in-out infinite alternate;
}

.chat-hero::before {
  content: "";
  position: absolute;
  right: -95px;
  bottom: -70px;

  width: 330px;
  height: 190px;

  background: radial-gradient(circle, rgba(85,214,255,0.42), transparent 64%);
  transform: rotate(-8deg);

  animation: hcbHeroOrb 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.chat-hero::after {
  content: "";
  position: absolute;
  left: 105px;
  right: -50px;
  bottom: 28px;

  height: 88px;

  background:
    repeating-linear-gradient(
      -8deg,
      rgba(255,255,255,0.16) 0,
      rgba(255,255,255,0.16) 1px,
      transparent 1px,
      transparent 7px
    );

  opacity: 0.32;
  transform: skewY(-8deg);

  animation: hcbWaveLines 6.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hcbHeroGlow {
  from {
    filter: brightness(1);
  }

  to {
    filter: brightness(1.045);
  }
}

@keyframes hcbHeroOrb {
  from {
    transform: translateX(0) translateY(0) rotate(-8deg);
    opacity: 0.85;
  }

  to {
    transform: translateX(-20px) translateY(-8px) rotate(-4deg);
    opacity: 1;
  }
}

@keyframes hcbWaveLines {
  from {
    transform: translateX(0) skewY(-8deg);
  }

  to {
    transform: translateX(-18px) skewY(-8deg);
  }
}

.chat-hero-top {
  position: relative;
  z-index: 3;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.chat-logo {
  width: 74px;
  height: 74px;

  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 16px 28px rgba(5, 35, 70, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.85);

  flex-shrink: 0;

  animation: hcbAvatarFloat 3.8s ease-in-out infinite;
}

.chat-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* fallback if image not loaded and svg exists */
.chat-logo svg {
  width: 38px;
  height: 38px;
  fill: var(--hcb-blue-700);
}

@keyframes hcbAvatarFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.chat-brand-text {
  min-width: 0;
}

.chat-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-title {
  color: #ffffff;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.verified-badge {
  width: 22px;
  height: 22px;

  border-radius: 999px;
  background: #63c7ff;
  color: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 900;

  box-shadow: 0 6px 12px rgba(31,162,255,0.32);
  animation: hcbVerifiedPop 3s ease-in-out infinite;
}

@keyframes hcbVerifiedPop {
  0%, 88%, 100% {
    transform: scale(1);
  }

  92% {
    transform: scale(1.12);
  }

  96% {
    transform: scale(0.98);
  }
}

.chat-subtitle {
  margin-top: 8px;

  color: rgba(255,255,255,0.88);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
}

.chat-status {
  margin-top: 13px;

  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;

  color: rgba(255,255,255,0.90);
  font-size: 13px;
  line-height: 1.1;
}

.status-dot {
  width: 11px;
  height: 11px;

  border-radius: 999px;
  background: #2ee58f;

  box-shadow:
    0 0 0 4px rgba(46, 229, 143, 0.16),
    0 0 14px rgba(46, 229, 143, 0.35);

  animation: hcbOnlinePulse 1.9s ease-in-out infinite;
}

@keyframes hcbOnlinePulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(46,229,143,0.16);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(46,229,143,0.04);
  }
}

.status-separator {
  opacity: 0.6;
}

.chat-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Αν έχει μείνει κάπου το κουμπί με τις τελίτσες, το κρύβουμε */
.chat-mini-btn {
  display: none !important;
}

#close-chat {
  width: 52px;
  height: 52px;

  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;

  background: rgba(255,255,255,0.14);
  color: #ffffff;

  backdrop-filter: blur(6px);

  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 10px 20px rgba(5,35,70,0.14);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

#close-chat:hover,
#close-chat:focus,
#close-chat:focus-visible {
  background: linear-gradient(135deg, #1fa2ff 0%, #0878cf 100%) !important;
  color: #ffffff !important;
  border-color: rgba(190, 238, 255, 0.62) !important;

  outline: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    0 12px 26px rgba(14, 165, 245, 0.32),
    0 0 0 4px rgba(103, 216, 255, 0.14) !important;

  transform: translateY(-1px) scale(1.035);
}

#close-chat:active {
  transform: scale(0.97);
  outline: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 8px 18px rgba(14, 165, 245, 0.26),
    0 0 0 4px rgba(103, 216, 255, 0.16) !important;
}

#close-chat:active {
  transform: scale(0.97);
}

.hero-wave {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -42px;
  z-index: 2;

  height: 86px;
  background: #ffffff;
  border-radius: 50% 50% 0 0 / 65% 65% 0 0;

  animation: hcbWhiteWave 5s ease-in-out infinite alternate;
}

@keyframes hcbWhiteWave {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-10px);
  }
}
