/* Parvenu Hostess Chat Widget (NuNu Edition) */
.nunu-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: #16151b;
  border: 1px solid #b08d57;
  color: #d4b98a;
  padding: 8px 18px 8px 10px;
  border-radius: 30px;
  font-family: Georgia, serif;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5), 0 0 14px rgba(176,141,87,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}
.nunu-toggle-btn:hover {
  background: #1f1e26;
  border-color: #d4b98a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 20px rgba(212,185,138,0.35);
}
.nunu-btn-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #b08d57;
}
.nunu-dot {
  width: 7px;
  height: 7px;
  background: #5faf7d;
  border-radius: 50%;
  box-shadow: 0 0 8px #5faf7d;
  display: inline-block;
  margin-left: -4px;
}

/* Chat Window Modal */
.nunu-chat-window {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 375px;
  max-width: calc(100vw - 32px);
  height: 530px;
  max-height: calc(100vh - 100px);
  z-index: 99999;
  background: rgba(14, 13, 18, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid #b08d57;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 24px rgba(176,141,87,0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.nunu-chat-window.open {
  display: flex;
  animation: nunuSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes nunuSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Background portrait with 2px blur and transparency */
.nunu-chat-bg {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 60px;
  background-image: url('../images/nunu-bg.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.14;
  filter: blur(2px);
  pointer-events: none;
  z-index: 1;
}

/* Header */
.nunu-header {
  background: #17161e;
  border-bottom: 1px solid #2c2c34;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}
.nunu-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nunu-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #b08d57;
  box-shadow: 0 0 10px rgba(176,141,87,0.3);
}
.nunu-title {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nunu-subtitle {
  font-size: 0.68rem;
  color: #9a948a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nunu-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nunu-reset-btn {
  background: none;
  border: none;
  color: #9a948a;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: all 0.25s;
}
.nunu-reset-btn:hover {
  color: #d4b98a;
  transform: rotate(180deg);
}
.nunu-close-btn {
  background: none;
  border: none;
  color: #9a948a;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.nunu-close-btn:hover {
  color: #d4b98a;
}

/* Messages Area */
.nunu-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}
.nunu-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 12px;
  word-break: break-word;
  white-space: pre-wrap;
}
.nunu-bubble.bot {
  align-self: flex-start;
  background: rgba(29, 28, 36, 0.92);
  border: 1px solid rgba(176, 141, 87, 0.35);
  color: #e8e4dc;
  border-bottom-left-radius: 3px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.nunu-bubble.user {
  align-self: flex-end;
  background: #252430;
  border: 1px solid #383742;
  color: #fff;
  border-bottom-right-radius: 3px;
}
.nunu-bubble .sender-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4b98a;
  margin-bottom: 4px;
  font-family: Georgia, serif;
}

/* Chips */
.nunu-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.nunu-chip {
  background: #17161f;
  border: 1px solid #2c2c34;
  color: #d4b98a;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.nunu-chip:hover {
  background: #211f2c;
  border-color: #b08d57;
  color: #fff;
}

/* Footer / Input */
.nunu-footer {
  background: #17161e;
  border-top: 1px solid #2c2c34;
  padding: 12px 14px;
  position: relative;
  z-index: 2;
}
.nunu-form {
  display: flex;
  gap: 8px;
}
.nunu-input {
  flex: 1;
  background: #0d0c10;
  border: 1px solid #2c2c34;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.nunu-input:focus {
  border-color: #b08d57;
}
.nunu-send-btn {
  background: #b08d57;
  color: #0d0c10;
  border: none;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.2s;
}
.nunu-send-btn:hover {
  background: #d4b98a;
}
.nunu-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nunu-handoff-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d36622;
  border: 1px solid #25d36655;
  color: #7fe3a4;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.78rem;
  margin-top: 10px;
  font-weight: 500;
  transition: background 0.2s;
}
.nunu-handoff-btn:hover {
  background: #25d36638;
}

@media(max-width: 600px) {
  .nunu-toggle-btn {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 0.78rem;
    gap: 8px;
  }
  .nunu-btn-avatar {
    width: 22px;
    height: 22px;
  }
  .nunu-chat-window {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    height: calc(100vh - 80px);
  }
}
