@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
}

body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb));
}

a {
  color: inherit;
  text-decoration: none;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 25%, #ec4899 50%, #f59e0b 75%, #10b981 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.animated-gradient {
  background: linear-gradient(-45deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981);
  background-size: 400% 400%;
  animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

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

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.8), 0 0 60px rgba(139, 92, 246, 0.4); }
}

.background-pattern {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  background-size: 100% 100%;
  animation: pattern-move 20s ease infinite;
}

@keyframes pattern-move {
  0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%; }
  50% { background-position: 100% 100%, 0% 0%, 0% 100%; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes blob {
  0%, 100% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.glow-on-hover {
  transition: all 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
}

.card-glow {
  transition: all 0.3s ease;
}

.card-glow:hover {
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.2);
  transform: translateY(-5px);
}

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

.fade-in-delay {
  animation: fadeIn 0.6s ease-in 0.3s both;
}

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

/* Scroll animations for sliding cards */
.scroll-card {
  opacity: 0;
  transform: translateY(50px) translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-card.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.scroll-card-right {
  opacity: 0;
  transform: translateY(50px) translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-card-right.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.scroll-card-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-card-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.scroll-card:nth-child(1) { transition-delay: 0.1s; }
.scroll-card:nth-child(2) { transition-delay: 0.2s; }
.scroll-card:nth-child(3) { transition-delay: 0.3s; }
.scroll-card:nth-child(4) { transition-delay: 0.4s; }
.scroll-card-right:nth-child(1) { transition-delay: 0.1s; }
.scroll-card-right:nth-child(2) { transition-delay: 0.2s; }
.scroll-card-right:nth-child(3) { transition-delay: 0.3s; }
.scroll-card-up:nth-child(1) { transition-delay: 0.1s; }
.scroll-card-up:nth-child(2) { transition-delay: 0.2s; }
.scroll-card-up:nth-child(3) { transition-delay: 0.3s; }
.scroll-card-up:nth-child(4) { transition-delay: 0.4s; }

/* Trust Indicator Cards - Staggered fade-in animation */
.trust-indicator-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-indicator-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.trust-indicator-card:nth-child(1) { transition-delay: 0.1s; }
.trust-indicator-card:nth-child(2) { transition-delay: 0.2s; }
.trust-indicator-card:nth-child(3) { transition-delay: 0.3s; }
.trust-indicator-card:nth-child(4) { transition-delay: 0.4s; }
.trust-indicator-card:nth-child(5) { transition-delay: 0.5s; }
.trust-indicator-card:nth-child(6) { transition-delay: 0.6s; }

/* Heala Circle - Agent Character */
.heala-circle {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 
              0 0 60px rgba(139, 92, 246, 0.3),
              inset 0 0 20px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 1000;
  animation: heala-float 3s ease-in-out infinite, heala-pulse 2s ease-in-out infinite;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.heala-circle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 70%);
  animation: heala-shine 3s ease-in-out infinite;
}

.heala-circle::after {
  content: '✨';
  position: absolute;
  font-size: 32px;
  animation: heala-sparkle 2s ease-in-out infinite;
}

.heala-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.7), 
              0 0 80px rgba(139, 92, 246, 0.5),
              inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.heala-circle.talking {
  animation: heala-talk 0.5s ease-in-out infinite;
}

@keyframes heala-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes heala-pulse {
  0%, 100% { 
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 
                0 0 60px rgba(139, 92, 246, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% { 
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.7), 
                0 0 80px rgba(139, 92, 246, 0.5),
                inset 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

@keyframes heala-shine {
  0%, 100% { opacity: 0.6; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(180deg); }
}

@keyframes heala-sparkle {
  0%, 100% { opacity: 0.8; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

@keyframes heala-talk {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.05); }
  75% { transform: scale(0.95); }
}

/* Tutorial Overlay */
.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in;
}

.tutorial-overlay.active {
  display: flex;
}

.tutorial-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.4s ease-out;
}

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

.tutorial-highlight {
  position: absolute;
  border: 3px solid #3b82f6;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  pointer-events: none;
  z-index: 10000;
  animation: highlight-pulse 1.5s ease-in-out infinite;
}

@keyframes highlight-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.8); }
}

.tutorial-step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.tutorial-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: all 0.3s ease;
}

.tutorial-step-dot.active {
  background: #3b82f6;
  width: 24px;
  border-radius: 4px;
}

/* Clickable Card Styles */
.clickable-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Full Screen Card Modal */
.card-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.card-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.card-modal-content {
  background: white;
  border-radius: 24px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  animation: cardModalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.card-modal-overlay.active .card-modal-content {
  transform: scale(1);
}

@keyframes cardModalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.card-modal-header {
  padding: 32px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 24px 24px 0 0;
}

.card-modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.card-modal-close {
  background: #f3f4f6;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}

.card-modal-close:hover {
  background: #e5e7eb;
  color: #111827;
  transform: rotate(90deg);
}

.card-modal-body {
  padding: 32px;
}

.card-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-modal-expanded-content {
  color: #4b5563;
  line-height: 1.8;
}

.card-modal-expanded-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-top: 32px;
  margin-bottom: 16px;
}

.card-modal-expanded-content h3:first-child {
  margin-top: 0;
}

.card-modal-expanded-content p {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.card-modal-expanded-content ul {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}

.card-modal-expanded-content li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid #f3f4f6;
}

.card-modal-expanded-content li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.2rem;
}

.card-modal-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card-modal-feature-item {
  background: #f9fafb;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.card-modal-feature-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.card-modal-feature-item p {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-modal-content {
    max-height: 95vh;
    border-radius: 16px;
  }
  
  .card-modal-header {
    padding: 24px;
  }
  
  .card-modal-title {
    font-size: 1.5rem;
  }
  
  .card-modal-body {
    padding: 24px;
  }
  
  .card-modal-features {
    grid-template-columns: 1fr;
  }
}

/* Chat Widget Styles */
.chat-widget {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 400px;
  max-width: calc(100vw - 60px);
  height: 600px;
  max-height: calc(100vh - 40px);
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
              0 0 40px rgba(59, 130, 246, 0.2);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-widget.active {
  display: flex;
  transform: scale(1) translateY(0);
  opacity: 1;
}

.chat-widget-header {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 24px 24px 0 0;
}

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

.chat-widget-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  backdrop-filter: blur(10px);
}

.chat-widget-header-info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.chat-widget-header-info p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.chat-widget-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.chat-widget-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.chat-widget-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-disclaimer {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  padding: 12px 16px;
  border-left: 4px solid #f59e0b;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: slideInMessage 0.4s ease-out;
}

.chat-disclaimer i {
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-disclaimer p {
  margin: 0;
  color: #92400e;
  line-height: 1.5;
  font-size: 0.85rem;
}

.chat-disclaimer p strong {
  color: #78350f;
  font-weight: 600;
}

.chat-welcome-message {
  background: linear-gradient(135deg, #eff6ff 0%, #f3e8ff 100%);
  border-radius: 20px;
  padding: 20px;
  border-left: 4px solid #3b82f6;
  animation: slideInMessage 0.4s ease-out;
}

.chat-welcome-message h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-welcome-message p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.95rem;
}

.chat-recommendations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-recommendations-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-recommendation-chip {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 0.9rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInMessage 0.4s ease-out;
  animation-fill-mode: both;
}

.chat-recommendation-chip:nth-child(1) { animation-delay: 0.1s; }
.chat-recommendation-chip:nth-child(2) { animation-delay: 0.2s; }
.chat-recommendation-chip:nth-child(3) { animation-delay: 0.3s; }
.chat-recommendation-chip:nth-child(4) { animation-delay: 0.4s; }
.chat-recommendation-chip:nth-child(5) { animation-delay: 0.5s; }

.chat-recommendation-chip:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.chat-recommendation-chip-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chat-message {
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  max-width: 85%;
  animation: slideInMessage 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  line-height: 1.6;
  word-wrap: break-word;
}

.chat-message.user {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  margin-left: auto;
  border-radius: 16px 16px 4px 16px;
}

.chat-message.assistant {
  background: white;
  color: #374151;
  margin-right: auto;
  border-radius: 16px 16px 16px 4px;
}

/* Style links in chat messages to make them clearly clickable */
.chat-message a {
  color: #3b82f6;
  text-decoration: underline;
  text-decoration-color: #3b82f6;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chat-message a:hover {
  color: #2563eb;
  text-decoration-color: #2563eb;
  text-decoration-thickness: 2px;
}

.chat-message a:visited {
  color: #7c3aed;
}

/* Links in user messages (gradient background) */
.chat-message.user a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.8);
  text-underline-offset: 2px;
  font-weight: 600;
}

.chat-message.user a:hover {
  text-decoration-color: #ffffff;
  text-decoration-thickness: 2px;
  opacity: 0.9;
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.loading-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #9ca3af;
  animation: loading-dot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loading-dot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.chat-widget-input-area {
  padding: 20px;
  background: white;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-input-wrapper {
  flex: 1;
  position: relative;
}

.chat-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.95rem;
  resize: none;
  max-height: 120px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.chat-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-send-button {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.chat-send-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.chat-send-button:active {
  transform: scale(0.95);
}

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

/* Mobile Responsive */
@media (max-width: 640px) {
  .chat-widget {
    bottom: 100px;
    right: 15px;
    left: 15px;
    width: auto;
    height: calc(100vh - 120px);
    max-height: calc(100vh - 20px);
  }
  
  .chat-widget-header {
    padding: 16px;
  }
  
  .chat-widget-body {
    padding: 16px;
  }
  
  .chat-recommendation-chip {
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  /* Responsive icon sizes for mobile */
  [data-lucide] {
    max-width: 100%;
    height: auto;
  }

  /* Responsive button groups */
  .flex.items-center.gap-3 {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Ensure buttons don't overflow */
  button,
  a[class*="px-"] {
    max-width: 100%;
  }

  /* Stack button groups vertically on mobile */
  .flex.gap-2,
  .flex.gap-3,
  .flex.gap-4 {
    flex-wrap: wrap;
  }
}

/* Tablet and small mobile adjustments */
@media (max-width: 768px) {
  /* Reduce icon sizes in headers */
  header [data-lucide] {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  /* Make navigation items more compact */
  nav.flex.items-center.gap-6 {
    gap: 12px;
  }

  /* Responsive button text */
  button span:not(.sr-only),
  a span:not(.sr-only) {
    font-size: 0.875rem;
  }

  /* Stack report cards vertically */
  .grid.md\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  /* Make action button groups wrap */
  .flex.items-center.gap-3 button {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Very small screens (phones in portrait) */
@media (max-width: 480px) {
  /* Ensure header logo icon fits */
  header .flex.items-center.space-x-2 [data-lucide] {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  /* Make buttons more compact */
  button[class*="px-"],
  a[class*="px-"] {
    padding: 8px 12px;
    font-size: 0.875rem;
  }

  /* Ensure icons in buttons are appropriately sized */
  button [data-lucide],
  a [data-lucide] {
    width: 1rem !important;
    height: 1rem !important;
  }
}

/* Hamburger Menu Styles */
.mobile-menu-button {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
  transition: transform 0.3s ease;
}

.mobile-menu-button.active {
  transform: rotate(90deg);
}

@media (max-width: 767px) {
  .mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu-drawer.active {
  right: 0;
}

.mobile-menu-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  color: white;
}

.mobile-menu-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 1.25rem;
}

.mobile-menu-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.mobile-menu-content {
  flex: 1;
  padding: 20px 0;
}

.mobile-menu-item {
  display: block;
  padding: 16px 20px;
  color: #374151;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
  background: #f9fafb;
  color: #3b82f6;
  padding-left: 24px;
}

.mobile-menu-auth {
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.mobile-menu-auth-item {
  display: block;
  padding: 12px 20px;
  text-align: center;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-menu-auth-item:hover {
  background: #eff6ff;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}
