/* Chat widget (matches landing palette) */

:root {
  --chat-bg: #10100f;
  --chat-card: #2a2a27;
  --chat-card2: #141413;
  --chat-text: #e1e1e1;
  --chat-muted: #9d9d9b;
  --chat-accent: #c7f829;
  --chat-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.ee-chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid #2a2a27;
  background: rgba(16, 16, 15, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: var(--chat-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.ee-chat-fab:hover {
  transform: scale(0.96);
}
.ee-chat-fab svg {
  width: 26px;
  height: 26px;
  fill: var(--chat-accent);
}

.ee-chat-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--chat-accent);
  color: #1a1a18;
  font-size: 12px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--chat-bg);
}

.ee-chat {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 140px);
  border-radius: 20px;
  border: 1px solid #2a2a27;
  background: rgba(16, 16, 15, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: var(--chat-shadow);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.ee-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid #2a2a27;
}

.ee-chat__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ee-chat__title strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.ee-chat__title span {
  color: var(--chat-muted);
  font-size: 12px;
  letter-spacing: 0px;
}

.ee-chat__close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #2a2a27;
  background: var(--chat-card2);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ee-chat__body {
  padding: 14px;
  overflow: auto;
  flex: 1;
}

.ee-msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.ee-msg__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--chat-muted);
}

.ee-msg__bubble {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #2a2a27;
  background: var(--chat-card);
  color: var(--chat-text);
  font-size: 14px;
  letter-spacing: 0px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.ee-msg--me {
  align-items: flex-end;
}
.ee-msg--me .ee-msg__bubble {
  background: #171716;
  border-color: rgba(199, 248, 41, 0.35);
}

.ee-msg--system .ee-msg__bubble {
  background: rgba(199, 248, 41, 0.12);
  border-color: rgba(199, 248, 41, 0.35);
  color: #fff;
}

.ee-chat__footer {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #2a2a27;
}

.ee-chat__input {
  flex: 1;
  border: 1px solid #2a2a27;
  background: #0f0f0e;
  border-radius: 14px;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
  letter-spacing: 0px;
}

.ee-chat__send {
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--chat-accent);
  color: #1a1a18;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.ee-chat__send:hover {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .ee-chat {
    right: 16px;
    left: 16px;
    width: auto;
  }
  .ee-chat-fab {
    right: 16px;
    bottom: 16px;
  }
}
