/* HYC AI assistant */
.hyc-chatbot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 3600;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.hyc-chatbot * { box-sizing: border-box; }

.hyc-chatbot__bubble {
  width: 78px;
  height: 92px;
  border: 0;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 18%, rgba(36,184,255,.28), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
  box-shadow: 0 22px 48px rgba(15,23,42,.26), 0 0 0 1px rgba(226,232,240,.84) inset;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: hycMascotHover 4.8s ease-in-out infinite;
}

.hyc-chatbot__bubble:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 28px 60px rgba(15,23,42,.32), 0 0 0 1px rgba(249,115,22,.22) inset;
  animation-play-state: paused;
}

@keyframes hycMascotHover {
  0%, 100% { transform: translateY(0); }
  48% { transform: translateY(-5px); }
}

.hyc-chatbot__pulse {
  position: absolute;
  inset: 4px -4px -4px;
  border-radius: 28px;
  border: 1px solid rgba(249,115,22,.28);
  animation: hycChatPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes hycChatPulse {
  0% { opacity: .85; transform: scale(.9); }
  80%, 100% { opacity: 0; transform: scale(1.28); }
}

.hyc-chatbot__thought {
  position: absolute;
  right: 10px;
  bottom: 104px;
  width: min(320px, calc(100vw - 36px));
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 16px 16px 4px 16px;
  background: rgba(255,255,255,.97);
  color: #334155;
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
  font-size: .84rem;
  line-height: 1.35;
}

.hyc-chatbot__thought::after {
  content: '';
  position: absolute;
  right: 22px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-right: 1px solid rgba(226,232,240,.95);
  border-bottom: 1px solid rgba(226,232,240,.95);
  transform: rotate(45deg);
}

.hyc-chatbot__thought strong {
  color: #0f172a;
  font-family: 'Oxanium', sans-serif;
  font-size: .8rem;
}

.hyc-chatbot__thought.is-visible {
  display: block;
  animation: hycChatFloat .36s ease both;
}

@keyframes hycChatFloat {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hyc-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(390px, calc(100vw - 28px));
  height: min(610px, calc(100vh - 120px));
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15,23,42,.28);
}

.hyc-chatbot.is-open .hyc-chatbot__panel { display: grid; }
.hyc-chatbot.is-open .hyc-chatbot__thought { display: none; }

.hyc-chatbot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  background:
    radial-gradient(circle at 22% -20%, rgba(36,184,255,.34), transparent 120px),
    linear-gradient(135deg, #061326, #0a1f38);
  color: #fff;
}

.hyc-chatbot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hyc-chatbot__mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.hyc-mascot {
  --mascot-scale: 1;
  position: relative;
  width: calc(54px * var(--mascot-scale));
  height: calc(70px * var(--mascot-scale));
  display: inline-block;
  color: #0f172a;
  filter: drop-shadow(0 10px 14px rgba(15,23,42,.22));
}

.hyc-mascot--sm { --mascot-scale: .58; }
.hyc-mascot--md { --mascot-scale: .82; }
.hyc-mascot--lg { --mascot-scale: 1; }

.hyc-mascot__antenna {
  position: absolute;
  left: 50%;
  top: calc(-7px * var(--mascot-scale));
  width: calc(2px * var(--mascot-scale));
  height: calc(12px * var(--mascot-scale));
  background: linear-gradient(#24b8ff, #0f172a);
  transform: translateX(-50%);
  border-radius: 999px;
}

.hyc-mascot__antenna span {
  position: absolute;
  left: 50%;
  top: calc(-5px * var(--mascot-scale));
  width: calc(9px * var(--mascot-scale));
  height: calc(9px * var(--mascot-scale));
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 14px rgba(249,115,22,.82);
  transform: translateX(-50%);
}

.hyc-mascot__ears {
  position: absolute;
  left: calc(4px * var(--mascot-scale));
  right: calc(4px * var(--mascot-scale));
  top: calc(18px * var(--mascot-scale));
  height: calc(18px * var(--mascot-scale));
  border-radius: 999px;
  background: linear-gradient(90deg, #24b8ff, #061326 18%, #061326 82%, #24b8ff);
}

.hyc-mascot__head {
  position: absolute;
  left: 50%;
  top: calc(4px * var(--mascot-scale));
  width: calc(46px * var(--mascot-scale));
  height: calc(44px * var(--mascot-scale));
  border-radius: 42% 42% 38% 38%;
  background:
    radial-gradient(circle at 32% 20%, rgba(255,255,255,.92), transparent 22%),
    linear-gradient(145deg, #0b2442, #061326 58%, #020617);
  border: calc(2px * var(--mascot-scale)) solid rgba(36,184,255,.72);
  transform: translateX(-50%);
  box-shadow: inset 0 -8px 16px rgba(0,0,0,.28), 0 0 18px rgba(36,184,255,.32);
}

.hyc-mascot__visor {
  position: absolute;
  left: 50%;
  top: calc(13px * var(--mascot-scale));
  width: calc(32px * var(--mascot-scale));
  height: calc(14px * var(--mascot-scale));
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(36,184,255,.2), rgba(36,184,255,.92), rgba(249,115,22,.86));
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(36,184,255,.48);
  overflow: hidden;
}

.hyc-mascot__visor::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,.55) 42%, transparent 52%);
  animation: hycMascotScan 3.2s ease-in-out infinite;
}

@keyframes hycMascotScan {
  0%, 46% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

.hyc-mascot__eye {
  position: absolute;
  top: calc(5px * var(--mascot-scale));
  width: calc(4px * var(--mascot-scale));
  height: calc(4px * var(--mascot-scale));
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

.hyc-mascot__eye--left { left: calc(9px * var(--mascot-scale)); }
.hyc-mascot__eye--right { right: calc(9px * var(--mascot-scale)); }

.hyc-mascot__smile {
  position: absolute;
  left: 50%;
  bottom: calc(8px * var(--mascot-scale));
  width: calc(14px * var(--mascot-scale));
  height: calc(6px * var(--mascot-scale));
  border-bottom: calc(2px * var(--mascot-scale)) solid rgba(255,255,255,.78);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.hyc-mascot__body {
  display: none;
}

.hyc-mascot__body span {
  display: none;
}

.hyc-mascot__hand {
  position: absolute;
  right: calc(1px * var(--mascot-scale));
  bottom: calc(22px * var(--mascot-scale));
  width: calc(13px * var(--mascot-scale));
  height: calc(8px * var(--mascot-scale));
  border-radius: 999px;
  background: #24b8ff;
  transform-origin: 0 50%;
  transform: rotate(-22deg);
  animation: hycMascotWave 2.4s ease-in-out infinite;
}

@keyframes hycMascotWave {
  0%, 60%, 100% { transform: rotate(-22deg); }
  68% { transform: rotate(-48deg); }
  76% { transform: rotate(-14deg); }
  84% { transform: rotate(-42deg); }
}

.hyc-chatbot__title {
  margin: 0;
  font-family: 'Oxanium', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.hyc-chatbot__sub {
  margin-top: 2px;
  color: rgba(226,232,240,.78);
  font-size: .72rem;
}

.hyc-chatbot__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.hyc-chatbot__messages {
  padding: 14px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px),
    #f8fafc;
  background-size: 34px 34px;
}

.hyc-chatbot__msg {
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  white-space: pre-wrap;
  font-size: .84rem;
  line-height: 1.38;
}

.hyc-chatbot__msg--assistant {
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.hyc-chatbot__msg--user {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-bottom-right-radius: 4px;
  box-shadow: 0 10px 24px rgba(249,115,22,.22);
}

.hyc-chatbot__typing {
  display: none;
  width: fit-content;
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-size: .75rem;
}

.hyc-chatbot.is-thinking .hyc-chatbot__typing { display: block; }

.hyc-chatbot__quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 14px 10px;
  background: #f8fafc;
}

.hyc-chatbot__quick button {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 6px 10px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

.hyc-chatbot__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.hyc-chatbot__input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  padding: 0 12px;
  font-size: .86rem;
  outline: none;
}

.hyc-chatbot__input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}

.hyc-chatbot__send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  cursor: pointer;
}

@media (max-width: 760px) {
  .hyc-chatbot {
    right: 12px;
    bottom: 12px;
  }
  .hyc-chatbot__bubble {
    width: 70px;
    height: 84px;
  }
  .hyc-chatbot__panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 82px;
    width: auto;
    height: min(590px, calc(100dvh - 100px));
  }
  .hyc-chatbot__thought {
    right: 2px;
    bottom: 96px;
  }
}
