.gc-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 9990;
  width: 52px; height: 52px; border-radius: 50%;
  background: #7C6FFF; box-shadow: 0 4px 20px rgba(124,111,255,.45);
  cursor: pointer; border: none; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
  animation: gcPop .4s cubic-bezier(.34,1.56,.64,1) both;
}
.gc-bubble:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(124,111,255,.55); }
.gc-bubble img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.gc-notif {
  position: absolute; top: -2px; right: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #ef4444; border: 2px solid #fff; display: none;
}
.gc-notif.show { display: block; }
@keyframes gcPop { from{opacity:0;transform:scale(.5)} to{opacity:1;transform:scale(1)} }

.gc-panel {
  position: fixed; bottom: 88px; right: 24px; z-index: 9991;
  width: min(380px, calc(100vw - 32px));
  background: #fff; border-radius: 20px;
  box-shadow: 0 16px 60px rgba(124,111,255,.18), 0 2px 8px rgba(0,0,0,.08);
  border: 1px solid rgba(124,111,255,.15);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: scale(.92) translateY(16px); opacity: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.34,1.2,.64,1), opacity .2s;
  max-height: calc(100vh - 120px);
}
.gc-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.gc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid rgba(124,111,255,.1);
  background: linear-gradient(135deg, #7C6FFF 0%, #6a5dee 100%);
  flex-shrink: 0;
}
.gc-head-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.4); flex-shrink: 0; }
.gc-head-info { flex: 1; min-width: 0; }
.gc-head-name { font-size: 13px; font-weight: 700; color: #fff; }
.gc-head-status { font-size: 10px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.gc-head-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex-shrink: 0; animation: gcDotPulse 2s infinite; }
@keyframes gcDotPulse { 0%,100%{box-shadow:0 0 0 0 rgba(74,222,128,.4)} 50%{box-shadow:0 0 0 4px rgba(74,222,128,0)} }
.gc-close-btn { background: rgba(255,255,255,.15); border: none; cursor: pointer; color: #fff; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; transition: background .15s; line-height: 1; }
.gc-close-btn:hover { background: rgba(255,255,255,.25); }
.gc-clear-btn { background: none; border: none; cursor: pointer; color: rgba(255,255,255,.5); font-size: 10px; font-weight: 600; padding: 0 4px; transition: color .15s; white-space: nowrap; }
.gc-clear-btn:hover { color: #fff; }

.gc-msgs {
  flex: 1; overflow-y: auto; padding: 14px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: rgba(124,111,255,.15) transparent;
}
.gc-msg { display: flex; gap: 8px; align-items: flex-end; animation: gcMsgIn .25s ease both; }
@keyframes gcMsgIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.gc-msg.user { flex-direction: row-reverse; }
.gc-msg-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.gc-msg-user-av { width: 26px; height: 26px; border-radius: 50%; background: #7C6FFF; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.gc-bubble-msg { max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.55; word-break: break-word; }
.gc-msg.bot .gc-bubble-msg { background: #f5f3ff; color: #1a1040; border-bottom-left-radius: 4px; border: 1px solid rgba(124,111,255,.1); }
.gc-msg.user .gc-bubble-msg { background: #7C6FFF; color: #fff; border-bottom-right-radius: 4px; }

.gc-nav-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 7px; padding: 6px 12px;
  background: #7C6FFF; color: #fff;
  border-radius: 20px; font-size: 11px; font-weight: 700;
  text-decoration: none; transition: background .15s;
}
.gc-nav-btn:hover { background: #6a5dee; color: #fff; }

.gc-typing { display: flex; gap: 4px; align-items: center; padding: 10px 13px; }
.gc-typing span { width: 6px; height: 6px; border-radius: 50%; background: #7C6FFF; opacity: .4; animation: gcType 1.2s infinite; }
.gc-typing span:nth-child(2) { animation-delay: .2s; }
.gc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes gcType { 0%,60%,100%{transform:translateY(0);opacity:.4} 30%{transform:translateY(-5px);opacity:1} }

.gc-foot {
  padding: 10px 12px; border-top: 1px solid rgba(124,111,255,.08);
  display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0;
  background: #fff;
}
.gc-input {
  flex: 1; border: 1.5px solid rgba(124,111,255,.2); border-radius: 12px;
  padding: 9px 12px; font-size: 13px; font-family: inherit;
  color: #1a1040; background: #faf9ff; outline: none; resize: none;
  max-height: 100px; line-height: 1.4; transition: border-color .15s;
}
.gc-input:focus { border-color: #7C6FFF; background: #fff; }
.gc-input::placeholder { color: #a09cc0; }
.gc-send-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: #7C6FFF; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, transform .1s;
}
.gc-send-btn:hover { background: #6a5dee; transform: scale(1.05); }
.gc-send-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }