/* Floating AI chat widget — China Club */
.cc-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #9A0200;
  color: #FFEDCC;
  border: none;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-family: 'Glacial Indifference', 'Segoe UI', Arial, sans-serif;
  transition: transform 0.15s ease;
}
.cc-chat-launcher:hover {
  transform: scale(1.06);
}

.cc-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 140px));
  background: #101010;
  border: 1px solid #9A0200;
  border-radius: 14px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-family: 'Glacial Indifference', 'Segoe UI', Arial, sans-serif;
}
.cc-chat-panel.cc-open {
  display: flex;
}

.cc-chat-header {
  background: #9A0200;
  color: #FFEDCC;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cc-chat-header-title {
  font-family: 'The Seasons', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.cc-chat-header-sub {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}
.cc-chat-close {
  background: none;
  border: none;
  color: #FFEDCC;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

.cc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #101010;
}

.cc-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.cc-msg-bot {
  align-self: flex-start;
  background: #1d1d1d;
  color: #FFEDCC;
  border: 1px solid rgba(255, 237, 204, 0.15);
}
.cc-msg-user {
  align-self: flex-end;
  background: #9A0200;
  color: #FFEDCC;
}
.cc-msg-error {
  align-self: flex-start;
  background: #3a1010;
  color: #ffb3ab;
  border: 1px solid #5c1a12;
}

.cc-chat-typing {
  align-self: flex-start;
  color: #FFEDCC;
  opacity: 0.6;
  font-size: 12px;
  padding: 0 4px;
}

.cc-chat-form {
  display: flex;
  border-top: 1px solid rgba(255, 237, 204, 0.15);
  background: #101010;
}
.cc-chat-input {
  flex: 1;
  background: #1a1a1a;
  border: none;
  color: #fff;
  padding: 12px 14px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
}
.cc-chat-input::placeholder {
  color: #8a8a8a;
}
.cc-chat-send {
  background: #9A0200;
  color: #FFEDCC;
  border: none;
  padding: 0 18px;
  cursor: pointer;
  font-size: 13.5px;
  font-family: inherit;
}
.cc-chat-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.cc-chat-mic {
  background: #1a1a1a;
  color: #FFEDCC;
  border: none;
  border-left: 1px solid rgba(255, 237, 204, 0.15);
  padding: 0 14px;
  cursor: pointer;
  font-size: 15px;
}
.cc-chat-mic.cc-mic-active {
  background: #9A0200;
  animation: cc-mic-pulse 1.4s ease-in-out infinite;
}
.cc-chat-mic:disabled {
  opacity: 0.5;
  cursor: default;
}
@keyframes cc-mic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.cc-voice-status {
  background: #1a1a1a;
  color: #FFEDCC;
  font-size: 11.5px;
  text-align: center;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 237, 204, 0.15);
}

@media (max-width: 480px) {
  .cc-chat-panel {
    right: 16px;
    bottom: 88px;
  }
  .cc-chat-launcher {
    right: 16px;
    bottom: 16px;
  }
}
