/* ==========================================================================
   Ravi Kumar Gupta Portfolio - AI Chat Assistant Widget Styles
   ========================================================================== */

:root {
  --chat-vh: 100dvh;
  --chat-top: 0px;
  --chat-accent: #b5956e;
  --chat-gold: #c8a97a;
  --chat-dark: #232323;
  --chat-dark-rgb: 35, 35, 35;
  --chat-bg: #f6f4ef;
  --chat-card-bg: #ffffff;
  --chat-text: #2b2b2b;
  --chat-muted: #737373;
  --chat-border: rgba(43, 43, 43, 0.1);
  --chat-gold-glow: rgba(181, 149, 110, 0.25);
  --chat-radius: 20px;
  --chat-font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --chat-font-serif: 'Playfair Display', Georgia, serif;
}

/* Floating Launchers Stack (WhatsApp on Top, Chatbot on Bottom) */
.chat-launcher-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--chat-font);
}

/* Floating WhatsApp Action Button (Right above Chatbot) */
.chat-wa-launcher-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.chat-wa-launcher-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #1ea952 100%);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 3px rgba(37, 211, 102, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
}

.chat-wa-launcher-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55), 0 0 0 5px rgba(37, 211, 102, 0.3);
}

.chat-wa-tooltip {
  position: absolute;
  right: 60px;
  background: rgba(35, 35, 35, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
}

.chat-wa-launcher-wrap:hover .chat-wa-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Chatbot Floating Row */
.chat-launcher-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-launcher-badge {
  background: rgba(35, 35, 35, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(181, 149, 110, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transform-origin: right center;
  animation: launcherBadgePulse 4s ease-in-out infinite;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.4, 1),
              transform 0.35s cubic-bezier(0.2, 0.8, 0.4, 1),
              visibility 0.35s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  user-select: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chat-launcher-badge.is-scrolled-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(12px) scale(0.92) !important;
  pointer-events: none !important;
}

.chat-launcher-badge:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--chat-gold);
  box-shadow: 0 10px 28px rgba(181, 149, 110, 0.3);
}

.chat-pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.chat-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.5);
  animation: chatDotGlow 2s infinite;
}

@keyframes chatDotGlow {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes launcherBadgePulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.chat-launcher-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b2b2b 0%, #151515 100%);
  border: 2px solid var(--chat-accent);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(181, 149, 110, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.chat-launcher-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(181, 149, 110, 0.38), 0 0 0 6px rgba(181, 149, 110, 0.25);
  border-color: var(--chat-gold);
  color: var(--chat-gold);
}

.chat-launcher-btn:active {
  transform: scale(0.95);
}

.chat-launcher-btn .chat-icon-open,
.chat-launcher-btn .chat-icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.chat-launcher-btn .chat-icon-close {
  position: absolute;
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

.chat-launcher-btn.is-active .chat-icon-open {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

.chat-launcher-btn.is-active .chat-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Chat Container Window */
.chat-window {
  position: fixed;
  bottom: 94px;
  right: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: var(--chat-bg);
  border-radius: var(--chat-radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(181, 149, 110, 0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--chat-font);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.32s;
}

.chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, #242424 0%, #151515 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(181, 149, 110, 0.2);
  position: relative;
  flex-shrink: 0;
}

.chat-header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  border: 1.5px solid var(--chat-accent);
}

.chat-header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}

.chat-header-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #22c55e;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-name {
  font-family: var(--chat-font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-header-sub {
  font-size: 0.72rem;
  color: var(--chat-gold);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-head-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chat-head-btn:hover {
  background: rgba(181, 149, 110, 0.25);
  border-color: var(--chat-accent);
  color: var(--chat-gold);
  transform: translateY(-1px);
}

/* Chat Messages Stream */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  background: radial-gradient(circle at top right, rgba(200, 169, 122, 0.06), transparent 70%), var(--chat-bg);
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(181, 149, 110, 0.3);
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(181, 149, 110, 0.6);
}

/* Welcome Card */
.chat-welcome-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--chat-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 6px;
  animation: chatFadeUp 0.35s ease;
}

.chat-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(181, 149, 110, 0.12);
  color: #8c6e49;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.chat-welcome-card h4 {
  font-size: 0.95rem;
  color: var(--chat-text);
  margin-bottom: 6px;
  font-weight: 600;
}

.chat-welcome-card p {
  font-size: 0.82rem;
  color: var(--chat-muted);
  line-height: 1.45;
  margin: 0;
}

/* Message Rows */
.chat-msg-row {
  display: flex;
  gap: 9px;
  max-width: 88%;
  animation: chatMsgAppear 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.chat-msg-row.bot {
  align-self: flex-start;
}

.chat-msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  border: 1px solid var(--chat-accent);
}

.chat-msg-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}

.chat-msg-bubble {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.52;
  word-break: break-word;
  position: relative;
}

.chat-msg-row.bot .chat-msg-bubble {
  background: #ffffff;
  color: var(--chat-text);
  border-top-left-radius: 4px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.chat-msg-row.user .chat-msg-bubble {
  background: linear-gradient(135deg, #2e2e2e 0%, #1e1e1e 100%);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.chat-msg-time {
  font-size: 0.65rem;
  color: rgba(43, 43, 43, 0.4);
  margin-top: 4px;
  display: block;
  text-align: right;
}

.chat-msg-row.user .chat-msg-time {
  color: rgba(255, 255, 255, 0.5);
}

.chat-msg-bubble a {
  color: #8c6e49;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}

.chat-msg-bubble strong {
  font-weight: 600;
  color: #1a1a1a;
}

.chat-msg-row.user .chat-msg-bubble strong {
  color: #ffffff;
}

.chat-para-break {
  height: 8px;
}

.chat-bullet-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 4px 0;
  line-height: 1.45;
}

.chat-bullet-dot {
  color: var(--chat-accent);
  font-size: 0.95rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.chat-bullet-text {
  flex: 1;
}

/* WhatsApp Link Button inside Bubble */
.chat-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 24px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
  transition: all 0.22s ease;
}

.chat-wa-cta:hover {
  background: #1eb954;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.45);
}

/* Quick Suggestion Pills Container */
.chat-suggestions {
  padding: 8px 14px 4px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  background: var(--chat-bg);
  border-top: 1px solid rgba(43, 43, 43, 0.06);
  flex-shrink: 0;
}

.chat-suggestions::-webkit-scrollbar {
  display: none;
}

.chat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid rgba(181, 149, 110, 0.3);
  color: var(--chat-text);
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  user-select: none;
}

.chat-pill:hover {
  background: linear-gradient(135deg, rgba(181, 149, 110, 0.15) 0%, rgba(200, 169, 122, 0.1) 100%);
  border-color: var(--chat-accent);
  color: var(--chat-accent);
  transform: translateY(-1px);
}

/* Interactive Details Confirmation Card */
.chat-confirm-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  border: 1.5px solid rgba(181, 149, 110, 0.35);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.chat-confirm-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--chat-text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-confirm-row {
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 5px;
  line-height: 1.4;
}

.chat-confirm-row strong {
  color: var(--chat-text);
}

.chat-confirm-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.chat-confirm-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.chat-confirm-btn.send {
  background: linear-gradient(135deg, var(--chat-accent), var(--chat-gold));
  color: #fff;
  box-shadow: 0 3px 10px rgba(181, 149, 110, 0.35);
}

.chat-confirm-btn.send:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.chat-confirm-btn.edit {
  background: #f0ede6;
  color: #555;
}

.chat-confirm-btn.edit:hover {
  background: #e5e0d5;
  color: #2b2b2b;
}

/* Quick Selection Options */
.chat-choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chat-choice-btn {
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(181, 149, 110, 0.1);
  border: 1px solid rgba(181, 149, 110, 0.3);
  color: var(--chat-text);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-choice-btn:hover {
  background: var(--chat-accent);
  color: #fff;
  border-color: var(--chat-accent);
}

/* Typing Indicator Animation */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  width: fit-content;
}

.chat-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--chat-accent);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.chat-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes chatMsgAppear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chatFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Chat Input Area */
.chat-input-area {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid var(--chat-border);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
}

.chat-input-area textarea {
  flex: 1;
  border: 1px solid rgba(43, 43, 43, 0.15);
  border-radius: 22px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-family: var(--chat-font);
  color: var(--chat-text);
  background: var(--chat-bg);
  resize: none;
  outline: none;
  max-height: 90px;
  min-height: 38px;
  line-height: 1.35;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.chat-input-area textarea:focus {
  border-color: var(--chat-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(181, 149, 110, 0.15);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--chat-accent), var(--chat-gold));
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(181, 149, 110, 0.35);
  transition: all 0.22s ease;
}

.chat-send-btn:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(181, 149, 110, 0.5);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-footer-note {
  font-size: 0.65rem;
  color: #8c8c8c;
  text-align: center;
  padding: 4px 10px 8px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  user-select: none;
}

/* Mobile Responsiveness & Virtual Keyboard Adaptation */
@media (max-width: 768px) {
  .chat-launcher-stack {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
  
  .chat-wa-launcher-btn {
    width: 46px;
    height: 46px;
  }

  .chat-launcher-btn {
    width: 52px;
    height: 52px;
  }

  .chat-launcher-badge {
    display: flex;
    font-size: 0.74rem;
    padding: 6px 11px;
    gap: 6px;
    max-width: 145px;
    white-space: nowrap;
  }

  .chat-expand-btn {
    display: none !important;
  }

  .chat-window {
    position: fixed;
    top: var(--chat-top, 0px);
    bottom: auto;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: var(--chat-vh, 100dvh);
    max-height: var(--chat-vh, 100dvh);
    border-radius: 0;
    border: none;
    box-shadow: none;
    transform: none;
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  .chat-window.open {
    transform: none;
  }

  .chat-header {
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    border-radius: 0;
  }

  .chat-input-area {
    padding: 10px 14px;
    background: #ffffff;
  }

  .chat-input-area textarea {
    font-size: 16px; /* Prevents iOS Safari from auto-zooming and displacing layout */
    min-height: 40px;
  }

  .chat-footer-note {
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  body.chat-modal-open {
    overflow: hidden !important;
    touch-action: none;
  }

  body.chat-keyboard-open .chat-footer-note {
    display: none !important;
  }

  body.chat-keyboard-open .chat-welcome-card {
    padding: 10px 12px;
    margin-bottom: 4px;
  }

  body.chat-keyboard-open .chat-welcome-card h4 {
    font-size: 0.88rem;
    margin-bottom: 4px;
  }

  body.chat-keyboard-open .chat-welcome-card p {
    font-size: 0.78rem;
  }
}

/* Fit in Screen (Desktop Maximized Chatbot Window) */
.chat-window.fit-screen {
  top: 24px !important;
  bottom: 24px !important;
  left: 24px !important;
  right: 24px !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  border-radius: 24px !important;
  transform: none !important;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(181, 149, 110, 0.35) !important;
  z-index: 10000;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-window.fit-screen .chat-messages {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
}

.chat-window.fit-screen .chat-suggestions {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
}

.chat-window.fit-screen .chat-input-area {
  max-width: 880px;
  width: 100%;
  margin: 0 auto 8px;
  padding: 10px 20px;
}

.chat-window.fit-screen .icon-maximize {
  display: none !important;
}

.chat-window.fit-screen .icon-restore {
  display: block !important;
}

/* Navigation Chat Trigger Link & Badges */
.nav-chat-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--text, #2b2b2b) !important;
  font-weight: 400 !important;
}

.nav-chat-link:hover {
  background: rgba(255, 255, 255, 0.45) !important;
  color: var(--text, #2b2b2b) !important;
}

.nav-chat-link.active {
  background: #ffffff !important;
  color: var(--text, #2b2b2b) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
}

.nav-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-chat-link.active .nav-chat-dot {
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.95);
  transform: scale(1.15);
}

.msb-chat-link {
  color: var(--text, #2b2b2b) !important;
  font-weight: 500 !important;
  position: relative;
}

.msb-chat-link:hover {
  background: linear-gradient(135deg, rgba(181,149,110,.1) 0%, rgba(200,169,122,.06) 100%) !important;
  color: var(--accent, #b5956e) !important;
}

.msb-chat-link.active {
  background: linear-gradient(135deg, rgba(181,149,110,.18) 0%, rgba(200,169,122,.12) 100%) !important;
  color: var(--accent, #b5956e) !important;
  font-weight: 600 !important;
}

.msb-chat-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(to bottom, var(--accent), var(--gold));
  border-radius: 0 4px 4px 0;
}

.msb-badge-live {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 2px 7px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.msb-badge-live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}
