/* ==========================================================================
   Vibe Copilot Engine — Universal Glassmorphic Chatbot UI Stylesheet
   Designed for seamless integration into any index.html / index.php
   ========================================================================== */

:root {
  --vibe-primary: #6366f1;
  --vibe-primary-hover: #4f46e5;
  --vibe-secondary: #06b6d4;
  --vibe-bg-glass: rgba(15, 23, 42, 0.88);
  --vibe-card-glass: rgba(30, 41, 59, 0.75);
  --vibe-border: rgba(255, 255, 255, 0.12);
  --vibe-text: #f8fafc;
  --vibe-text-muted: #94a3b8;
  --vibe-user-bubble: #4f46e5;
  --vibe-bot-bubble: rgba(30, 41, 59, 0.9);
  --vibe-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.2);
  --vibe-radius-lg: 20px;
  --vibe-radius-sm: 12px;
  --vibe-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --vibe-z-index: 999999;
}

/* ==========================================================================
   5 Premium UI Skins (UI/UX Pro Max System Integration)
   1. cyber-glass (Default Dark Indigo/Cyan)
   2. ferrari-red (Carbon Dark & Racing Red)
   3. emerald-luxury (Jade Emerald & Gold)
   4. nordic-light (Clean Scandinavian Light Mode)
   5. neon-synth (Midnight Purple & Synthwave Pink)
   ========================================================================== */

.vibe-copilot-root[data-skin="cyber-glass"] {
  --vibe-primary: #6366f1;
  --vibe-primary-hover: #4f46e5;
  --vibe-secondary: #06b6d4;
  --vibe-bg-glass: rgba(15, 23, 42, 0.88);
  --vibe-card-glass: rgba(30, 41, 59, 0.75);
  --vibe-border: rgba(255, 255, 255, 0.12);
  --vibe-text: #f8fafc;
  --vibe-text-muted: #94a3b8;
  --vibe-user-bubble: #4f46e5;
  --vibe-bot-bubble: rgba(30, 41, 59, 0.9);
  --vibe-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.2);
}

.vibe-copilot-root[data-skin="ferrari-red"] {
  --vibe-primary: #ef4444;
  --vibe-primary-hover: #dc2626;
  --vibe-secondary: #f59e0b;
  --vibe-bg-glass: rgba(18, 18, 20, 0.92);
  --vibe-card-glass: rgba(38, 38, 42, 0.8);
  --vibe-border: rgba(239, 68, 68, 0.25);
  --vibe-text: #ffffff;
  --vibe-text-muted: #a1a1aa;
  --vibe-user-bubble: #dc2626;
  --vibe-bot-bubble: rgba(38, 38, 42, 0.95);
  --vibe-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(239, 68, 68, 0.25);
}

.vibe-copilot-root[data-skin="emerald-luxury"] {
  --vibe-primary: #10b981;
  --vibe-primary-hover: #059669;
  --vibe-secondary: #dccbae;
  --vibe-bg-glass: rgba(6, 44, 34, 0.92);
  --vibe-card-glass: rgba(15, 62, 49, 0.8);
  --vibe-border: rgba(220, 203, 174, 0.3);
  --vibe-text: #f0fdf4;
  --vibe-text-muted: #a7f3d0;
  --vibe-user-bubble: #059669;
  --vibe-bot-bubble: rgba(15, 62, 49, 0.95);
  --vibe-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.25);
}

.vibe-copilot-root[data-skin="nordic-light"] {
  --vibe-primary: #0ea5e9;
  --vibe-primary-hover: #0284c7;
  --vibe-secondary: #6366f1;
  --vibe-bg-glass: rgba(255, 255, 255, 0.94);
  --vibe-card-glass: rgba(241, 245, 249, 0.9);
  --vibe-border: rgba(148, 163, 184, 0.3);
  --vibe-text: #0f172a;
  --vibe-text-muted: #64748b;
  --vibe-user-bubble: #0284c7;
  --vibe-bot-bubble: #f1f5f9;
  --vibe-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), 0 0 20px rgba(14, 165, 233, 0.15);
}

.vibe-copilot-root[data-skin="neon-synth"] {
  --vibe-primary: #8b5cf6;
  --vibe-primary-hover: #7c3aed;
  --vibe-secondary: #ec4899;
  --vibe-bg-glass: rgba(24, 15, 46, 0.92);
  --vibe-card-glass: rgba(43, 27, 80, 0.8);
  --vibe-border: rgba(236, 72, 153, 0.3);
  --vibe-text: #faf5ff;
  --vibe-text-muted: #d8b4fe;
  --vibe-user-bubble: #7c3aed;
  --vibe-bot-bubble: rgba(43, 27, 80, 0.95);
  --vibe-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(236, 72, 153, 0.3);
}

/* 6. Austral Drone Official Skin (Light Titanium Grey macOS Ultra Blur Glass) */
.vibe-copilot-root[data-skin="austral-drone"] {
  --vibe-primary: #1D1D1F;
  --vibe-primary-hover: #3A3A3C;
  --vibe-secondary: #D1C4AC;
  --vibe-bg-glass: rgba(240, 240, 243, 0.76);
  --vibe-card-glass: rgba(255, 255, 255, 0.65);
  --vibe-border: rgba(255, 255, 255, 0.9);
  --vibe-text: #1D1D1F;
  --vibe-text-muted: #6E6E73;
  --vibe-user-bubble: #1D1D1F;
  --vibe-bot-bubble: rgba(255, 255, 255, 0.9);
  --vibe-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-copilot-drawer {
  background: rgba(240, 240, 243, 0.76);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-copilot-header {
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(209, 196, 172, 0.2);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-header-title {
  color: #1D1D1F;
  font-weight: 700;
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-header-subtitle {
  color: #6E6E73;
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-badge-intel {
  background: rgba(209, 196, 172, 0.2);
  color: #8C7B5D;
  border: 1px solid rgba(209, 196, 172, 0.4);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-lead-badge {
  background: rgba(0, 0, 0, 0.05);
  color: #3A3A3C;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-btn-icon {
  background: rgba(0, 0, 0, 0.05);
  color: #1D1D1F;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-copilot-bubble {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-copilot-bubble svg {
  stroke: #1D1D1F;
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-btn-cta {
  background: linear-gradient(135deg, #D1C4AC, #C5B598);
  color: #1D1D1F;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(209, 196, 172, 0.4);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-msg-user .vibe-msg-bubble {
  background: linear-gradient(135deg, #3A3A3C, #1D1D1F);
  border: 1px solid rgba(209, 196, 172, 0.3);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-msg-bot .vibe-msg-bubble {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 196, 172, 0.25);
  color: #1D1D1F;
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-pills-nav-wrapper {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-pill {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(209, 196, 172, 0.3);
  color: #1D1D1F;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-pill:hover {
  background: #1D1D1F;
  color: #FFFFFF;
  border-color: #1D1D1F;
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-pills-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1D1D1F;
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-copilot-input-area {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-input-field {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1D1D1F;
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-input-field::placeholder {
  color: #8E8E93;
}

.vibe-copilot-root[data-skin="austral-drone"] .vibe-btn-send {
  background: linear-gradient(135deg, #D1C4AC, #C5B598);
  color: #1D1D1F;
  box-shadow: 0 4px 12px rgba(209, 196, 172, 0.4);
}

/* 7. macOS Sonoma Liquid Glassmorphism (Ultra-Premium Light Glass for White Websites) */
.vibe-copilot-root[data-skin="macos-glass"] {
  --vibe-primary: #1D1D1F;
  --vibe-primary-hover: #3A3A3C;
  --vibe-secondary: #0A84FF;
  --vibe-bg-glass: rgba(245, 245, 247, 0.74);
  --vibe-card-glass: rgba(255, 255, 255, 0.7);
  --vibe-border: rgba(255, 255, 255, 0.95);
  --vibe-text: #1D1D1F;
  --vibe-text-muted: #6E6E73;
  --vibe-user-bubble: #1D1D1F;
  --vibe-bot-bubble: rgba(255, 255, 255, 0.9);
  --vibe-shadow: 0 25px 60px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-copilot-drawer {
  background: rgba(245, 245, 247, 0.74);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-copilot-header {
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-header-title {
  color: #1D1D1F;
  font-weight: 700;
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-header-subtitle {
  color: #6E6E73;
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-badge-intel {
  background: rgba(10, 132, 255, 0.1);
  color: #0066CC;
  border: 1px solid rgba(10, 132, 255, 0.2);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-lead-badge {
  background: rgba(0, 0, 0, 0.04);
  color: #3A3A3C;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-btn-icon {
  background: rgba(0, 0, 0, 0.05);
  color: #1D1D1F;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-msg-bot .vibe-msg-bubble {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1D1D1F;
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-msg-user .vibe-msg-bubble {
  background: linear-gradient(135deg, #1D1D1F, #3A3A3C);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-pills-nav-wrapper {
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-pill {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1D1D1F;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-pill:hover {
  background: #1D1D1F;
  color: #FFFFFF;
  border-color: #1D1D1F;
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-pills-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1D1D1F;
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-copilot-input-area {
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-input-field {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1D1D1F;
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-input-field::placeholder {
  color: #8E8E93;
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-btn-send {
  background: linear-gradient(135deg, #007AFF, #0051A8);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-copilot-bubble {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Interactive Calendar & VIP Lead 100 Styles */
.vibe-cal-widget {
  background: var(--vibe-card-glass);
  border: 1px solid var(--vibe-border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
}

.vibe-cal-tag, .vibe-cal-slot {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--vibe-text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vibe-cal-tag:hover, .vibe-cal-slot:hover {
  border-color: var(--vibe-primary);
}

.vibe-cal-tag.active, .vibe-cal-slot.active {
  background: linear-gradient(135deg, #D1C4AC, #C5B598);
  color: #1D1D1F;
  font-weight: 700;
  border-color: #D1C4AC;
  box-shadow: 0 2px 8px rgba(209, 196, 172, 0.3);
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-cal-tag,
.vibe-copilot-root[data-skin="macos-glass"] .vibe-cal-slot {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1D1D1F;
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-cal-tag.active,
.vibe-copilot-root[data-skin="macos-glass"] .vibe-cal-slot.active {
  background: #1D1D1F;
  color: #FFFFFF;
  border-color: #1D1D1F;
}

.vibe-vip-card {
  background: linear-gradient(135deg, rgba(209, 196, 172, 0.25), rgba(15, 23, 42, 0.95));
  border: 1px solid #D1C4AC;
  border-radius: 14px;
  padding: 16px;
  margin-top: 10px;
  box-shadow: 0 8px 24px rgba(209, 196, 172, 0.2);
}

/* Light Glassmorphism Card Overrides for macos-glass & austral-drone (Contrast & Clarity) */
.vibe-copilot-root[data-skin="macos-glass"] .vibe-widget-card,
.vibe-copilot-root[data-skin="macos-glass"] .vibe-cta-card,
.vibe-copilot-root[data-skin="macos-glass"] .vibe-vip-card,
.vibe-copilot-root[data-skin="macos-glass"] .vibe-cal-widget,
.vibe-copilot-root[data-skin="austral-drone"] .vibe-widget-card,
.vibe-copilot-root[data-skin="austral-drone"] .vibe-cta-card,
.vibe-copilot-root[data-skin="austral-drone"] .vibe-vip-card,
.vibe-copilot-root[data-skin="austral-drone"] .vibe-cal-widget {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
  color: #1D1D1F !important;
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-cta-title,
.vibe-copilot-root[data-skin="macos-glass"] .vibe-widget-title,
.vibe-copilot-root[data-skin="austral-drone"] .vibe-cta-title,
.vibe-copilot-root[data-skin="austral-drone"] .vibe-widget-title {
  color: #1D1D1F !important;
  font-weight: 700 !important;
}

.vibe-copilot-root[data-skin="macos-glass"] .vibe-btn-cta,
.vibe-copilot-root[data-skin="austral-drone"] .vibe-btn-cta {
  background: linear-gradient(135deg, #1D1D1F, #3A3A3C) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Base Reset for Vibe Copilot Widget */
.vibe-copilot-root * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--vibe-font);
  -webkit-font-smoothing: antialiased;
}

/* Floating Trigger Bubble */
.vibe-copilot-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vibe-primary), var(--vibe-secondary));
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: var(--vibe-z-index);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.vibe-copilot-bubble:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.vibe-copilot-bubble svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Notification Badge */
.vibe-copilot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  animation: vibePulse 2s infinite;
}

@keyframes vibePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Main Chat Drawer Container */
.vibe-copilot-drawer {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 120px);
  background: var(--vibe-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--vibe-border);
  border-radius: var(--vibe-radius-lg);
  box-shadow: var(--vibe-shadow);
  z-index: var(--vibe-z-index);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vibe-copilot-drawer.vibe-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header Area */
.vibe-copilot-header {
  padding: 16px 20px;
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid var(--vibe-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vibe-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vibe-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--vibe-primary);
  background: #1e293b;
}

.vibe-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vibe-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #0f172a;
}

.vibe-header-title {
  color: var(--vibe-text);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vibe-header-subtitle {
  color: var(--vibe-text-muted);
  font-size: 12px;
}

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

/* Minimalist Status LED Pill & Score Pill */
.vibe-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  white-space: nowrap;
}

.vibe-pulse-led {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: vibeLedGlow 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes vibeLedGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #10b981;
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
    box-shadow: 0 0 3px #10b981;
  }
}

.vibe-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--vibe-text);
  white-space: nowrap;
}

.vibe-btn-icon {
  background: transparent;
  border: none;
  color: var(--vibe-text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.vibe-btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--vibe-text);
}

/* Chat Messages Log Area */
.vibe-copilot-log {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.vibe-copilot-log::-webkit-scrollbar {
  width: 5px;
}
.vibe-copilot-log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Message Item Styling */
.vibe-msg {
  display: flex;
  flex-direction: column;
  max-width: 84%;
  animation: vibeSlideIn 0.3s ease-out forwards;
}

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

.vibe-msg-user {
  align-self: flex-end;
}

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

.vibe-msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--vibe-text);
  word-break: break-word;
}

.vibe-msg-user .vibe-msg-bubble {
  background: var(--vibe-user-bubble);
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.vibe-msg-bot .vibe-msg-bubble {
  background: var(--vibe-bot-bubble);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--vibe-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vibe-msg-time {
  font-size: 10px;
  color: var(--vibe-text-muted);
  margin-top: 4px;
  align-self: flex-end;
}

/* Typing Indicator Animation */
.vibe-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: var(--vibe-bot-bubble);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  border: 1px solid var(--vibe-border);
}

.vibe-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--vibe-text-muted);
  border-radius: 50%;
  animation: vibeBlink 1.4s infinite both;
}

.vibe-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.vibe-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes vibeBlink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* Quick Action Pills */
.vibe-quick-pills {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.vibe-quick-pills::-webkit-scrollbar {
  display: none;
}

.vibe-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--vibe-border);
  color: var(--vibe-text);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vibe-pill:hover {
  background: var(--vibe-primary);
  border-color: var(--vibe-primary-hover);
  transform: translateY(-1px);
}

/* Conversion CTA Card (Lead / WhatsApp / Calendly) */
.vibe-cta-card {
  margin-top: 10px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--vibe-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vibe-cta-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.vibe-btn-cta {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.vibe-btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

/* Input Area Container */
.vibe-copilot-input-area {
  padding: 14px 16px;
  background: rgba(30, 41, 59, 0.8);
  border-top: 1px solid var(--vibe-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vibe-input-field {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--vibe-border);
  border-radius: 24px;
  padding: 10px 16px;
  color: var(--vibe-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.vibe-input-field:focus {
  border-color: var(--vibe-primary);
}

.vibe-btn-mic {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--vibe-border);
  color: var(--vibe-text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vibe-btn-mic.vibe-recording {
  background: #ef4444;
  color: white;
  animation: vibeMicPulse 1.2s infinite;
}

@keyframes vibeMicPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.vibe-btn-send {
  background: var(--vibe-primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vibe-btn-send:hover {
  background: var(--vibe-primary-hover);
  transform: scale(1.05);
}

/* Modal Form for Lead Capture */
.vibe-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: calc(var(--vibe-z-index) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vibe-modal-overlay.vibe-active {
  opacity: 1;
  pointer-events: all;
}

.vibe-modal-content {
  background: var(--vibe-bg-glass);
  border: 1px solid var(--vibe-border);
  border-radius: var(--vibe-radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 420px;
  box-shadow: var(--vibe-shadow);
  color: var(--vibe-text);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vibe-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vibe-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vibe-text-muted);
}

.vibe-form-input {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--vibe-border);
  border-radius: var(--vibe-radius-sm);
  padding: 10px 14px;
  color: white;
  font-size: 14px;
  outline: none;
}

.vibe-form-input:focus {
  border-color: var(--vibe-primary);
}

/* Responsive Mobile Adjustments */
@media (max-width: 480px) {
  .vibe-copilot-drawer {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
    height: calc(100vh - 100px);
  }
}

/* ==========================================================================
   New Extensions: SalesGPT Sales Stages, Lead Scoring & GStack Widgets
   ========================================================================== */

.vibe-sales-stage-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  overflow: hidden;
}

.vibe-stage-progress {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4, #6366f1);
  transition: width 0.4s ease;
}

/* Header Actions & Harmonious Badges */
.vibe-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vibe-header-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vibe-badge-intel {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}

.vibe-lead-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid var(--vibe-border);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

/* Quick Pills Section con Botones Premium en Extremos */
.vibe-pills-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.vibe-pills-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--vibe-border);
  color: var(--vibe-text);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.vibe-pills-nav-btn:hover {
  background: linear-gradient(135deg, var(--vibe-primary), var(--vibe-secondary));
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

.vibe-quick-pills {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 0;
}

.vibe-quick-pills::-webkit-scrollbar {
  display: none;
}

/* GStack Interactive Widgets */
.vibe-widget-card {
  margin-top: 10px;
  padding: 16px;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--vibe-border);
  border-radius: var(--vibe-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: vibeSlideIn 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.vibe-widget-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.vibe-widget-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vibe-widget-btn {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vibe-widget-btn:hover {
  background: linear-gradient(135deg, var(--vibe-primary), var(--vibe-secondary));
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Universal Mobile Scaling & Responsive Adaptations */
@media (max-width: 600px) {
  .vibe-copilot-drawer {
    width: calc(100vw - 20px) !important;
    max-width: 100vw !important;
    height: calc(100dvh - 24px) !important;
    max-height: 86vh !important;
    bottom: 10px !important;
    right: 10px !important;
    left: 10px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35) !important;
  }

  .vibe-copilot-header {
    padding: 10px 12px !important;
  }

  .vibe-avatar-wrap {
    width: 34px !important;
    height: 34px !important;
  }

  .vibe-header-title {
    font-size: 13px !important;
  }

  .vibe-header-subtitle {
    font-size: 10px !important;
  }

  .vibe-status-pill, .vibe-score-pill {
    padding: 2px 7px !important;
    font-size: 10px !important;
  }

  .vibe-copilot-bubble {
    width: 52px !important;
    height: 52px !important;
    bottom: 14px !important;
    right: 14px !important;
  }

  .vibe-copilot-bubble svg {
    width: 22px !important;
    height: 22px !important;
  }

  .vibe-input-field {
    font-size: 13px !important;
    padding: 8px 10px !important;
  }

  .vibe-copilot-log {
    padding: 12px !important;
    gap: 10px !important;
  }
}


